@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warn: #e11d48;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(14,165,233,0.08), transparent 35%), var(--bg);
  color: var(--ink);
}

.page {
  padding: 20px;
  max-width: 960px;
  margin: 0 auto 48px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0b1220;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.4px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.hero {
  margin: 16px 0 8px;
}

.eyebrow {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-heading.space-between {
  justify-content: space-between;
}

.panel-title {
  font-weight: 600;
  margin: 0;
}

.panel-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.download-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.download-label {
  font-size: 0.9rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.download-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.download-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0f172a;
  font-weight: 500;
  font-size: 0.85rem;
}

.country-form .picker {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.country-form input[type="search"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
}

.country-options {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}

.country-option:hover { transform: translateY(-1px); border-color: var(--accent); }
.country-option.is-selected { border-color: var(--accent); background: #e0f7ff; }

.country-option .flag { font-size: 1.2rem; }
.country-option .name { flex: 1; margin-left: 10px; text-align: left; }
.country-option .code { color: var(--muted); font-weight: 500; }

.no-results {
  padding: 10px;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 12px;
}

.bank-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  position: relative;
}

.bank-card:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  pointer-events: none;
}

.card-positive:before { border-color: rgba(22, 163, 74, 0.5); }
.card-warning:before { border-color: rgba(225, 29, 72, 0.6); }
.card-neutral:before { border-color: rgba(14, 165, 233, 0.35); }

.bank-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 10px;
  align-items: center;
}

.bank-name {
  font-weight: 600;
  font-size: 1rem;
}

.bank-fee, .bank-currency {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  min-height: 52px;
}

.bank-fee .value, .bank-currency .value {
  font-weight: 700;
}

.notes-block {
  margin-top: 12px;
}

.notes-block .label {
  color: var(--muted);
  font-size: 0.9rem;
}

.note-copy {
  margin: 6px 0 0;
  line-height: 1.4;
}

.suggestion {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.suggest-toggle {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.suggest-form {
  margin-top: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.ref-link {
  color: ghostwhite;
  font-size: 12px;
}

.ref-link:hover {
  color: palevioletred;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

input, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  font-family: inherit;
}

textarea { resize: vertical; }

.submit {
  margin-top: 8px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.submit:hover { filter: brightness(0.96); }

.empty-state {
  text-align: left;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed var(--line);
}

.stack {
  display: grid;
  gap: 12px;
}

.form-errors {
  background: rgba(225, 29, 72, 0.08);
  color: #991b1b;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.messages {
  position: sticky;
  top: 60px;
  padding: 10px 0;
}

.message {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 500;
}

.message-success { background: rgba(22, 163, 74, 0.1); color: #166534; }
.message-error { background: rgba(225, 29, 72, 0.1); color: #9f1239; }

@media (max-width: 720px) {
  .bank-row { grid-template-columns: 1fr; }
  .panel, .top-bar { border-radius: 0; }
  .top-bar { position: sticky; }
  .panel-tools, .download-menu { align-items: flex-start; width: 100%; }
  .download-links { justify-content: flex-start; }
}
