/* Kartik base styles: brand colors, Vazirmatn, light/dark. See brand/README.md. */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/vazirmatn-variable.woff2') format('woff2-variations'),
       url('/static/fonts/vazirmatn-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0E9F6E;          /* icon, check marks, main buttons (white text only when large) */
  --green-dark: #057A55;     /* green text and links on light backgrounds */
  --navy: #0B1B2E;           /* main text, dark backgrounds */
  --mint: #E6F6EE;           /* calm backgrounds */
  --amber: #F5A524;          /* ONLY the "awaiting deposit" state, with navy text */

  --bg: #F3F7F5;
  --surface: #FFFFFF;
  --text: #0B1B2E;
  --muted: #4E5D6B;
  --line: #DCE6E1;
  --soft: #EEF3F1;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 27, 46, 0.05), 0 10px 30px rgba(11, 27, 46, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-dark: #3DD598;
    --mint: #12372F;
    --bg: #0B1B2E;
    --surface: #11263B;
    --text: #EDF3F0;
    --muted: #A5B4C1;
    --line: #22394F;
    --soft: #172E45;
    --danger: #FF8A80;
    --danger-bg: #3A1F24;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--green-dark); }

.ltr { direction: ltr; unicode-bidi: isolate; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  background: var(--navy); color: #fff; padding: 8px 18px; border-radius: 999px;
  font-size: 15px; opacity: 0; pointer-events: none; z-index: 10;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes pop { 0% { transform: scale(0.6); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
