/* ===========================================================
   BANKOFBELARUSSIAN — Design System
   A stack of stones, each one steady on the last.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --ink: #16211B;
  --pine: #1F4A38;
  --pine-dark: #143526;
  --pine-tint: #E7EEE9;
  --moss: #6B9080;
  --stone-bg: #EFF1EC;
  --paper: #FFFFFF;
  --line: #DCE1DA;
  --line-soft: #E9ECE7;
  --error: #A63D2F;
  --error-tint: #FBEBE8;
  --success: #2F6B4F;
  --success-tint: #E9F3EE;
  --muted: #667169;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(22, 33, 27, 0.04), 0 8px 24px rgba(22, 33, 27, 0.06);
  --shadow-pop: 0 4px 12px rgba(22, 33, 27, 0.08), 0 16px 40px rgba(22, 33, 27, 0.10);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --ink: #EAEFE9;
  --pine: #4F9179;
  --pine-dark: #0F1D16;
  --pine-tint: #16281F;
  --moss: #8DBBA3;
  --stone-bg: #10161F;
  --paper: #182019;
  --line: #2A342C;
  --line-soft: #232C25;
  --error: #E37F6C;
  --error-tint: #3A2019;
  --success: #6FBE96;
  --success-tint: #16281F;
  --muted: #93A296;
}

[data-theme="dark"] .auth-panel-foot { color: #8FA793; }
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"] { color: var(--ink); }
[data-theme="dark"] input::placeholder { color: #6B7A6E; }

/* Theme toggle switch */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
}
.theme-toggle:hover { border-color: var(--moss); }
.theme-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--stone-bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

/* ---------- Bankofbelarusian mark ---------- */
.bankofbelarusian-mark { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bankofbelarusian-mark .stone { border-radius: 999px; background: currentColor; }
.bankofbelarusian-mark .stone:nth-child(1) { width: 22px; height: 9px; }
.bankofbelarusian-mark .stone:nth-child(2) { width: 16px; height: 8px; margin-left: 4px; }
.bankofbelarusian-mark .stone:nth-child(3) { width: 11px; height: 7px; margin-right: 3px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--pine-dark);
}
.brand .bankofbelarusian-mark { color: var(--pine); }

/* ---------- Auth shell (login / signup) ---------- */
/* NOTE: Kept Cairn's auth shell structure BUT modified forms to match backend */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-panel {
  background: linear-gradient(165deg, var(--pine-dark) 0%, var(--pine) 62%, #2C5F49 100%);
  color: #F3F6F3;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
}

.auth-panel .brand { color: #F3F6F3; }
.auth-panel .brand .bankofbelarusian-mark { color: #C9DCCF; }

.auth-panel-copy h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  max-width: 9.5em;
  margin-top: 40px;
  font-weight: 500;
}

.auth-panel-copy p {
  margin-top: 16px;
  max-width: 30em;
  color: #D8E5DC;
  font-size: 0.98rem;
  line-height: 1.6;
}

.stone-stack-visual {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 40px;
}
.stone-stack-visual .plate {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #E4EDE7;
}
.stone-stack-visual .plate.a { transform: translateY(6px); opacity: 0.75; }
.stone-stack-visual .plate.b { transform: translateY(-2px); }
.stone-stack-visual .plate.c { transform: translateY(10px); opacity: 0.6; }

.auth-panel-foot { font-size: 0.82rem; color: #B7CABD; }

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-form {
  width: 100%;
  max-width: 380px;
}

/* ---------- BACKEND-COMPATIBLE FORMS (MODIFIED FROM CAIRN) ---------- */
/* Login Form */
.auth-form.login-form .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 10px;
  display: block;
}
.auth-form.login-form h2 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-form.login-form .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 30px; display: block; }

/* Signup Form */
.auth-form.signup-form .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 10px;
  display: block;
}
.auth-form.signup-form h2 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-form.signup-form .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 30px; display: block; }

/* ---------- Form elements (UNCHANGED - BACKEND COMPATIBLE) ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: 0.76rem; color: var(--muted); margin-top: 5px; display: block; }
.field .field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 5px;
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error input { border-color: var(--error); background: var(--error-tint); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
input:focus, select:focus { border-color: var(--pine); outline: none; }
input::placeholder { color: #A6AFA4; }

.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 42px; }
.input-with-icon button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 6px;
  font-family: var(--font-body);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); }
.btn-primary:disabled { background: #A9BBB0; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--pine-dark); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--pine); }

.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-switch a { color: var(--pine); font-weight: 600; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.toast {
  min-width: 280px;
  max-width: 360px;
  background: var(--ink);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toast-in 0.2s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast .toast-icon { flex-shrink: 0; font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- App shell (dashboard / send funds) ---------- */
/* NOTE: UNCHANGED FROM CAIRN - BACKEND HANDLES LOGIC */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--pine-dark);
  color: #E8EFE9;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand { color: #fff; margin-bottom: 40px; }
.sidebar .brand .bankofbelarusian-mark { color: #B9D2C1; }

.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #C7D7CC;
  font-weight: 500;
}
.nav-list a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-list a.active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-list .nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 0.82rem;
  color: #B7CABD;
}
.sidebar-foot button {
  margin-top: 10px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #E8EFE9;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  width: 100%;
}
.sidebar-foot button:hover { border-color: rgba(255,255,255,0.5); }

.main {
  padding: 36px 44px;
  max-width: 980px;
}

.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.page-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  display: block;
  margin-bottom: 6px;
}
.page-head h1 { font-size: 1.7rem; }

.balance-stack { position: relative; margin-bottom: 32px; }
.balance-card {
  background: linear-gradient(150deg, var(--pine) 0%, var(--pine-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.balance-card .label { font-size: 0.82rem; color: #C7DACC; margin-bottom: 8px; }
.balance-card .amount { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.01em; }
.balance-card .acct-row {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #DCE8DF;
}
.balance-card .acct-row .copy-btn {
  background: rgba(255,255,255,0.14);
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.balance-card .acct-row .copy-btn:hover { background: rgba(255,255,255,0.24); }

.balance-shadow-1, .balance-shadow-2 {
  position: absolute;
  left: 12px; right: 12px;
  border-radius: var(--radius-lg);
  height: 100%;
  z-index: -1;
}
.balance-shadow-1 { top: 10px; background: rgba(31,74,56,0.35); }
.balance-shadow-2 { top: 20px; background: rgba(31,74,56,0.18); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 32px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1rem; margin-bottom: 4px; }
.card .card-sub { color: var(--muted); font-size: 0.85rem; }

.quick-actions { display: flex; gap: 12px; margin-bottom: 32px; }
.quick-actions a {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-card);
}
.quick-actions a:hover { border-color: var(--moss); }
.quick-actions .qa-icon { font-size: 1.3rem; display: block; margin-bottom: 8px; }

.section-title { font-size: 1rem; margin-bottom: 14px; font-weight: 600; }

.tx-list { display: flex; flex-direction: column; gap: 0; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.tx-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.tx-row:last-child { border-bottom: none; }
.tx-row .tx-name { font-weight: 600; font-size: 0.92rem; }
.tx-row .tx-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.tx-row .tx-amount { font-family: var(--font-mono); font-weight: 600; }
.tx-amount.out { color: var(--error); }
.tx-amount.in { color: var(--success); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .bankofbelarusian-mark { color: var(--line); margin: 0 auto 14px; }

/* ---------- Send funds ---------- */
.transfer-card { max-width: 460px; }
.recipient-preview {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--pine-tint);
  border: 1px solid #CFE0D5;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.recipient-preview.show { display: flex; }
.recipient-preview .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-family: var(--font-display);
}
.recipient-preview .r-name { font-weight: 600; font-size: 0.92rem; }
.recipient-preview .r-meta { font-size: 0.76rem; color: var(--moss); font-family: var(--font-mono); }

.manual-name-field { display: none; }
.manual-name-field.show { display: block; }

.step-indicator { display: flex; gap: 6px; margin-bottom: 22px; }
.step-indicator .stone {
  height: 4px; flex: 1; border-radius: 999px; background: var(--line);
}
.step-indicator .stone.done { background: var(--pine); }

.confirm-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.confirm-row:last-child { border-bottom: none; }
.confirm-row .k { color: var(--muted); }
.confirm-row .v { font-weight: 600; }
.confirm-row .v.mono { font-family: var(--font-mono); }

.success-panel { text-align: center; padding: 20px 10px; }
.success-panel .check-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}

.result-icon-ring {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}
.result-icon-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.18;
}
.result-icon-ring.success { background: var(--success-tint); color: var(--success); }
.result-icon-ring.decline { background: var(--error-tint); color: var(--error); }
.result-icon-ring svg { width: 34px; height: 34px; }

.decline-panel { text-align: center; padding: 20px 10px; }
.decline-panel h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--error); }
.decline-panel p { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.decline-panel .decline-reason {
  background: var(--error-tint);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-align: left;
}
.success-panel h3 { font-size: 1.2rem; margin-bottom: 6px; }
.success-panel p { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.hidden { display: none !important; }

.project-note {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 26px;
}

/* ---------- Topbar (inside .main, on authenticated pages) ---------- */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 18px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
}
.icon-btn:hover { border-color: var(--moss); }
.icon-btn .badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.62rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.notif-panel {
  position: absolute;
  top: 54px; right: 0;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  z-index: 50;
  display: none;
  overflow: hidden;
}
.notif-panel.show { display: block; }
.notif-panel .notif-head { padding: 14px 16px; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--line-soft); }
.notif-panel .notif-item { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 0.84rem; }
.notif-panel .notif-item:last-child { border-bottom: none; }
.notif-panel .notif-item .n-title { font-weight: 600; margin-bottom: 2px; }
.notif-panel .notif-item .n-time { color: var(--muted); font-size: 0.74rem; }
.notif-panel .notif-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 0.84rem; }
.notif-wrap { position: relative; }

/* ---------- Cards page ---------- */
.virtual-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.6 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pine-dark) 0%, var(--pine) 55%, #2C5F49 100%);
  color: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.virtual-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
}
.virtual-card .vc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.virtual-card .vc-brand { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.virtual-card .vc-number { font-family: var(--font-mono); font-size: 1.3rem; letter-spacing: 0.06em; margin: 18px 0; }
.virtual-card .vc-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--font-mono); font-size: 0.72rem; color: #DCE8DF; }
.virtual-card .vc-bottom .vc-name { font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.03em; }

.limit-card { max-width: 380px; margin-top: 22px; }
.limit-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
input[type="range"] { width: 100%; accent-color: var(--pine); margin-top: 10px; }

/* ---------- FAQ accordion (landing page) ---------- */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--moss); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; max-width: 60ch; }

/* ---------- Landing page ---------- */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}
.landing-nav .nav-links { display: flex; gap: 28px; font-size: 0.9rem; font-weight: 500; }
.landing-nav .nav-links a:hover { color: var(--pine); }
.landing-nav .nav-actions { display: flex; align-items: center; gap: 12px; }
.landing-nav .btn { width: auto; padding: 10px 18px; }

.hero {
  padding: clamp(50px, 8vw, 96px) clamp(20px, 5vw, 64px) 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moss);
  display: block;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 500; }
.hero h1 em { font-style: normal; color: var(--pine); }
.hero p.lead { margin-top: 20px; font-size: 1.05rem; color: var(--muted); max-width: 46ch; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; }
.hero-actions .btn { width: auto; padding: 14px 26px; }

.hero-visual {
  background: linear-gradient(160deg, var(--pine-dark), var(--pine) 70%);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: #fff;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-pop);
}
.hero-visual .hv-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
}
.hero-visual .hv-card .amt { font-weight: 600; }

.section { padding: 64px clamp(20px, 5vw, 64px); }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moss);
  display: block;
  margin-bottom: 10px;
}
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.product-card .p-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pine-tint);
  color: var(--pine);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 18px;
}
.product-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-row .feature { text-align: left; }
.feature .f-num { font-family: var(--font-mono); color: var(--moss); font-size: 0.78rem; margin-bottom: 10px; display: block; }
.feature h4 { font-size: 1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

.testimonial-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--pine-tint);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.testimonial-card p.quote { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; margin-bottom: 18px; }
.testimonial-card .t-who { font-size: 0.84rem; color: var(--muted); font-weight: 600; }

.section-alt { background: var(--pine-dark); color: #EFF3F0; }
.section-alt .section-eyebrow { color: #9FCBAE; }
.section-alt .section-head p { color: #C7D7CC; }

.landing-cta {
  text-align: center;
  padding: 70px clamp(20px, 5vw, 64px);
}
.landing-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); max-width: 20ch; margin: 0 auto 20px; }
.landing-cta .btn { width: auto; padding: 14px 30px; display: inline-flex; }

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 44px clamp(20px, 5vw, 64px) 30px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}
.site-footer .f-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.site-footer .f-col a { display: block; font-size: 0.88rem; color: var(--ink); margin-bottom: 10px; }
.site-footer .f-col a:hover { color: var(--pine); }
.site-footer .f-brand p { color: var(--muted); font-size: 0.86rem; margin-top: 14px; max-width: 32ch; line-height: 1.6; }
.site-footer .f-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; padding: 16px 20px; }
  .sidebar .brand { margin-bottom: 0; }
  .nav-list { flex-direction: row; flex: none; }
  .sidebar-foot { display: none; }
  .main { padding: 24px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .quick-actions { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-wrap { padding: 28px 20px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .testimonial-row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .landing-nav .nav-links { display: none; }
  .notif-panel { width: 280px; right: -60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Language toggle + translate banner ---------- */
.lang-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.lang-toggle-btn:hover { transform: translateY(-2px); border-color: var(--pine); }

.translate-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.translate-banner.show { transform: translateY(0); }
.translate-banner-text { opacity: 0.92; }
.translate-banner-btn {
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.translate-banner-btn:hover { background: rgba(255,255,255,0.12); }
.translate-banner-btn.primary { background: var(--pine); border-color: var(--pine); }
.translate-banner-btn.primary:hover { background: var(--pine-dark, var(--pine)); opacity: 0.9; }
.translate-banner-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
}
.translate-banner-close:hover { opacity: 1; }

@media (max-width: 600px) {
  .translate-banner { font-size: 0.8rem; padding: 10px 14px; }
  .lang-toggle-btn { bottom: 14px; right: 14px; width: 40px; height: 40px; }
}
