/* Drexorra Finance · shared look (tokens, buttons, fields, login, sheets, toast) */
:root {
  --navy: #0a1630;
  --navy2: #122a5c;
  --navy3: #1b3f86;
  --gold: #e2b04a;
  --gold2: #f3cf7a;
  --gold3: #fff6e0;
  --ink: #0e1a33;
  --ink2: #3b4a6b;
  --muted: #6a7693;
  --line: #e1e6f0;
  --bg: #f4f6fb;
  --card: #fff;
  --blue: #2f6fed;
  --green: #12805c;
  --green2: #e3f5ee;
  --red: #c0392b;
  --red2: #fdecea;
  --amber: #b7791f;
  --amber2: #fff4dc;
  --pink: #d63384;
  --r: 18px;
  --shadow: 0 14px 40px -18px rgba(14, 26, 51, 0.35);
  --f-head: 'Outfit', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.sp { flex: 1; }
.num { font-variant-numeric: tabular-nums; }
.r { text-align: right; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; background: linear-gradient(135deg, var(--navy2), var(--navy3)); color: #fff; font-weight: 700; transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s; box-shadow: 0 8px 20px -12px rgba(18, 42, 92, 0.9); white-space: nowrap; text-decoration: none; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.big { width: 100%; padding: 14px; font-size: 16px; border-radius: 14px; }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(226, 176, 74, 0.9); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: #f6f8fc; }
.btn.danger { background: var(--red); box-shadow: none; }
.btn.ok { background: var(--green); box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.link { color: var(--blue); font-weight: 600; }
.ib { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); }

/* fields */
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.inp { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.inp:focus { outline: none; border-color: var(--navy3); box-shadow: 0 0 0 4px rgba(27, 63, 134, 0.12); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.inp { resize: vertical; min-height: 70px; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--navy3); padding: 6px 8px; }
.otp { letter-spacing: 10px; font-size: 24px; text-align: center; font-weight: 700; }
.err { color: var(--red); font-weight: 600; min-height: 1.2em; margin: 6px 0 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 13px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; transition: 0.15s; }
.chip:hover { border-color: #c4cde0; }
.chip.on { background: var(--navy2); border-color: var(--navy2); color: #fff; }
.seg { display: inline-flex; background: #e9edf6; border-radius: 12px; padding: 4px; gap: 3px; }
.seg button { padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(14, 26, 51, 0.3); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef1f7; color: var(--ink2); white-space: nowrap; }
.tag.ok { background: var(--green2); color: var(--green); }
.tag.bad { background: var(--red2); color: var(--red); }
.tag.warn { background: var(--amber2); color: var(--amber); }
.tag.blue { background: #e8f0ff; color: var(--blue); }
.tag.gold { background: var(--gold3); color: #8a5f12; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--bg); }
.login.solo { grid-template-columns: 1fr; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 80% -10%, rgba(226, 176, 74, 0.25), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy2) 60%, var(--navy3)); }
.lg-art { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 90% -10%, rgba(226, 176, 74, 0.28), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(47, 111, 237, 0.35), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy2) 60%, var(--navy3)); color: #f4f6fb; padding: 44px 56px; display: flex; flex-direction: column; }
.lg-logo { height: 92px; width: auto; align-self: flex-start; }
.lg-copy { margin: auto 0; max-width: 520px; position: relative; z-index: 1; }
.kick { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.lg-copy h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; font-weight: 800; margin: 12px 0 14px; }
.lg-copy h1 em { font-style: normal; color: var(--gold2); }
.lg-copy p { color: #b9c6e4; font-size: 17px; }
.lg-coins i { position: absolute; font-style: normal; font-family: var(--f-head); font-weight: 800; color: rgba(243, 207, 122, 0.16); animation: float 9s ease-in-out infinite; }
.lg-coins i:nth-child(1) { font-size: 140px; right: 8%; top: 12%; }
.lg-coins i:nth-child(2) { font-size: 70px; right: 30%; top: 62%; animation-delay: -2s; }
.lg-coins i:nth-child(3) { font-size: 100px; right: 6%; bottom: 8%; animation-delay: -4s; }
.lg-coins i:nth-child(4) { font-size: 54px; left: 46%; top: 20%; animation-delay: -6s; }
.lg-coins i:nth-child(5) { font-size: 40px; left: 10%; bottom: 14%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-22px) rotate(8deg); } }
.lg-card { align-self: center; justify-self: center; width: min(420px, 92vw); background: #fff; border-radius: 26px; padding: 34px 32px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; animation: rise 0.5s both; }
.lg-card h2 { font-size: 26px; font-weight: 800; }
.lg-card .muted { margin: -6px 0 4px; }
.lg-mark { width: 54px; height: 54px; border-radius: 16px; background: var(--navy); padding: 7px; }
.lg-card .foot { text-align: center; color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.steps { margin: 0; padding-left: 20px; color: var(--ink2); }
.qr { display: grid; place-items: center; padding: 10px; border: 1px dashed var(--line); border-radius: 16px; }
.key summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; }
.key code { display: block; margin-top: 8px; padding: 10px; background: #f3f5fa; border-radius: 10px; font-size: 14px; word-break: break-all; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* sheet (modal) */
.ov { position: fixed; inset: 0; z-index: 40; background: rgba(8, 16, 36, 0.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; border-radius: 24px; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; box-shadow: 0 40px 80px -30px rgba(8, 16, 36, 0.6); animation: up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet.small { width: min(420px, 100%); }
.sheet.wide { width: min(1000px, 100%); }
.sheet h3 { font-size: 21px; }
@keyframes up { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.viewer img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto 14px; border-radius: 12px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 60; max-width: 90vw; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--red); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #dfe5f1; border-top-color: var(--navy3); animation: sp 0.8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.empty b { display: block; font-size: 34px; margin-bottom: 6px; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .lg-art { padding: 26px 22px 70px; min-height: 0; }
  .lg-copy { margin: 26px 0 0; }
  .lg-copy h1 { font-size: 34px; }
  .lg-logo { height: 70px; }
  .lg-card { margin-top: -50px; margin-bottom: 30px; position: relative; z-index: 2; }
  .sheet { padding: 20px 18px; border-radius: 22px; }
  .ov { padding: 10px; align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* install card */
.inst { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: 96px; width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px -18px rgba(10, 22, 48, 0.55), 0 0 0 1px rgba(14, 26, 51, 0.06); animation: up 0.35s both; }
.inst img { width: 44px; height: 44px; border-radius: 12px; }
.inst div { flex: 1; min-width: 0; }
.inst b { display: block; font-size: 15px; }
.inst small { color: var(--muted); font-size: 12.5px; }
.inst .ib { width: 32px; height: 32px; border: 0; background: #f1f4fa; }

/* ---------- compact, accounting-style sizes (smaller text and spacing everywhere) ---------- */
body { font-size: 13.5px; }
.btn { padding: 8px 14px; border-radius: 10px; font-size: 13.5px; gap: 6px; }
.btn.big { padding: 11px; font-size: 14.5px; border-radius: 11px; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.ib { width: 32px; height: 32px; border-radius: 10px; }
.fld { font-size: 12px; gap: 4px; }
.inp { padding: 8px 11px; font-size: 13.5px; border-radius: 9px; border-width: 1px; }
select.inp { padding-right: 30px; }
.chip { padding: 5px 11px; font-size: 12.5px; border-width: 1px; }
.seg { padding: 3px; border-radius: 10px; }
.seg button { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.tag { font-size: 11px; padding: 1px 8px; }
.err { font-size: 13px; }
.sheet { width: min(560px, 100%); padding: 20px; border-radius: 18px; }
.sheet.small { width: min(380px, 100%); }
.sheet h3 { font-size: 17px; }
.lg-card { padding: 28px 26px 20px; gap: 11px; border-radius: 20px; width: min(380px, 92vw); }
.lg-card h2 { font-size: 22px; }
.lg-mark { width: 46px; height: 46px; border-radius: 13px; }
.lg-copy h1 { font-size: clamp(30px, 3.6vw, 48px); }
.lg-copy p { font-size: 15px; }
.toast { padding: 10px 15px; font-size: 13px; border-radius: 12px; }
.empty { padding: 24px 14px; }
.empty b { font-size: 26px; }
