:root {
  --bg: #0e121c;
  --bg-2: #111827;
  --panel: #161d2b;
  --panel-2: #1b2434;
  --panel-3: #222d40;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f5f8fc;
  --muted: #8f9bae;
  --muted-2: #69768a;
  --green: #18c58a;
  --green-bright: #35e6aa;
  --green-soft: rgba(24, 197, 138, .13);
  --red: #ff5e67;
  --red-soft: rgba(255, 94, 103, .13);
  --blue: #4c8dff;
  --amber: #ffba4a;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --header: 72px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.02em; }
form { margin: 0; }

.icon { flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--green-bright); background: linear-gradient(145deg, #1c2a38, #15202c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.25); }
.brand-mark svg, .brand-mark img { width: 25px; height: 25px; }
.brand-mark svg { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { font-size: 19px; font-weight: 800; letter-spacing: -.045em; }
.brand-word b { color: var(--green-bright); }

.eyebrow { color: var(--green-bright); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(24,197,138,.12); margin-right: 8px; }
.demo-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 7px; border: 1px solid rgba(76,141,255,.25); border-radius: 5px; color: #8fb6ff; background: rgba(76,141,255,.1); font-size: 9px; font-weight: 900; letter-spacing: .09em; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary { color: #071710; background: linear-gradient(135deg, var(--green-bright), var(--green)); box-shadow: 0 12px 28px rgba(24,197,138,.18); }
.button--primary:hover { box-shadow: 0 14px 34px rgba(24,197,138,.28); }
.button--ghost { color: var(--text); background: rgba(255,255,255,.035); border-color: var(--line-strong); }
.button--ghost:hover { background: rgba(255,255,255,.07); }
.button--danger { color: #fff; background: var(--red); }
.button--small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button--large { min-height: 52px; padding: 0 24px; border-radius: 12px; }
.button--wide { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.06); }

.site-header { position: relative; z-index: 20; height: var(--header); display: flex; align-items: center; gap: 40px; padding: 0 clamp(20px, 5vw, 76px); border-bottom: 1px solid var(--line); background: rgba(14,18,28,.82); backdrop-filter: blur(18px); }
.site-logo { display: flex; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; color: var(--muted); font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--green); }
.header-actions, .header-account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-account form { display: flex; }
.header-balance { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 44px; padding: 34px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); color: var(--muted); background: #0b0f17; font-size: 13px; }
.site-footer p { margin: 8px 0 0; }
.footer-note { display: flex; flex-direction: column; max-width: 440px; }
.footer-note strong { color: var(--amber); }

.field { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.field > span:first-child { color: #c3cbd8; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); outline: none; border-radius: 10px; background: #111724; color: var(--text); transition: border-color .18s ease, box-shadow .18s ease; }
.field input, .field select { height: 47px; padding: 0 13px; }
.field textarea { padding: 12px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(24,197,138,.75); box-shadow: 0 0 0 3px rgba(24,197,138,.1); }
.field input::placeholder, .field textarea::placeholder { color: #596579; }
.field small { color: var(--muted-2); font-weight: 500; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-field { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; cursor: pointer; }
.check-field input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }

.flash-stack { position: fixed; z-index: 200; top: 82px; right: 18px; width: min(390px, calc(100vw - 36px)); display: grid; gap: 8px; }
.flash { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #1b2433; box-shadow: var(--shadow); font-size: 13px; animation: flash-in .25s ease both; }
.flash--success { border-color: rgba(24,197,138,.35); color: #9ff0d0; }
.flash--error { border-color: rgba(255,94,103,.4); color: #ffb5ba; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

.status { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.status--pending, .status--open { color: #ffd083; background: rgba(255,186,74,.12); }
.status--approved, .status--won, .status--active { color: #75e6bd; background: var(--green-soft); }
.status--rejected, .status--lost, .status--blocked { color: #ff9fa5; background: var(--red-soft); }
.status--draw, .status--cancelled { color: #aab5c6; background: rgba(143,155,174,.12); }
.amount-positive { color: var(--green-bright) !important; }
.amount-negative { color: #ff7c85 !important; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #092219; background: linear-gradient(135deg, var(--green-bright), var(--green)); font-size: 14px; font-weight: 900; }

@media (max-width: 820px) {
  :root { --header: 62px; }
  .site-header { gap: 16px; padding: 0 16px; }
  .site-nav { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .button { min-height: 37px; padding: 0 12px; font-size: 12px; }
  .header-actions .button--ghost { display: none; }
  .header-account { gap: 6px; }
  .header-balance { font-size: 14px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
