/* ===================== NETWORTH — modern mobile UI ===================== */
:root {
  --bg: #070b14;
  --bg2: #0d1424;
  --glass: rgba(22, 30, 48, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.08);
  --card: rgba(24, 32, 52, 0.55);
  --text: #eef2f9;
  --dim: #8b97b4;
  --faint: #5b6684;
  --green: #24d67e;
  --red: #ff5c72;
  --amber: #ffb020;
  --accent: #6aa8ff;
  --accent2: #7c5cff;
  --grad: linear-gradient(135deg, #6aa8ff 0%, #7c5cff 100%);
  --grad-money: linear-gradient(135deg, #24d67e 0%, #12a8ff 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --r: 18px;
  --nav-h: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior-y: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hidden { display: none !important; }
button { cursor: pointer; font-family: inherit; color: inherit; }

/* ---------- animated aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(60px); opacity: .5; }
.aurora span { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; animation: float 18s ease-in-out infinite; }
.aurora span:nth-child(1) { background: #2a4bff; top: -8%; left: -10%; }
.aurora span:nth-child(2) { background: #7c1fff; bottom: -12%; right: -14%; animation-delay: -6s; }
.aurora span:nth-child(3) { background: #00b3a4; top: 40%; left: 30%; animation-delay: -11s; opacity: .5; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(6vw,4vh) scale(1.15); }
  66% { transform: translate(-5vw,-3vh) scale(.9); }
}

/* frame like a phone on tablets / small laptops */
@media (min-width: 560px) and (max-width: 899px) {
  body { display: flex; justify-content: center; background: #02040a; }
  .screen { width: 430px; min-height: 100vh; box-shadow: 0 0 80px rgba(0,0,0,.7); }
  #topbar, #bottomNav, .drawer, #drawerScrim, .sheet, #sheetScrim, #fab, .ptr { position: absolute; }
  #bottomNav, .sheet, #sheetScrim, #drawerScrim { max-width: 430px; }
}
.screen { position: relative; min-height: 100vh; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-brd);
}

/* ===================== AUTH ===================== */
.auth-box { padding: 12vh 26px 40px; }
.brand-hero { text-align: center; margin-bottom: 30px; animation: fadeUp .7s both; }
.brand-mark {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 22px;
  display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff;
  background: var(--grad); box-shadow: 0 12px 34px rgba(108,92,255,.5);
  animation: pop .6s .1s both;
}
.logo { font-size: 27px; font-weight: 800; letter-spacing: 3px; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--dim); margin-top: 10px; font-size: 13.5px; line-height: 1.5; }

.auth-card { border-radius: 24px; padding: 8px; animation: fadeUp .7s .15s both; box-shadow: var(--shadow); }
.auth-tabs { position: relative; display: flex; background: rgba(0,0,0,.25); border-radius: 16px; padding: 5px; margin: 8px; }
.auth-tabs button { flex: 1; padding: 11px; background: none; border: none; color: var(--dim); font-size: 14.5px; font-weight: 600; z-index: 1; transition: color .25s; }
.auth-tabs button.active { color: #fff; }
.tab-indicator { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: calc(100% - 10px); background: var(--grad); border-radius: 12px; transition: transform .32s cubic-bezier(.6,.05,.1,1); }
.tab-indicator.right { transform: translateX(100%); }
.auth-form { padding: 6px 14px 16px; }

.field { position: relative; margin: 14px 0; }
.field input {
  width: 100%; padding: 15px 14px 6px; background: rgba(0,0,0,.22);
  border: 1.5px solid var(--glass-brd); border-radius: 14px; color: var(--text);
  font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
.field input:focus { border-color: var(--accent); background: rgba(0,0,0,.32); }
.field label {
  position: absolute; left: 15px; top: 15px; color: var(--faint); font-size: 15px;
  pointer-events: none; transition: .18s ease; transform-origin: left;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label {
  top: 6px; font-size: 10.5px; color: var(--accent); transform: scale(.95);
}
.msg { text-align: center; font-size: 13px; color: var(--red); min-height: 18px; padding: 0 14px 6px; }

/* password show/hide */
.field input.has-peek { padding-right: 60px; }
.field .peek {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--dim);
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; padding: 8px;
}

/* forgot password */
.forgot { text-align: center; color: var(--dim); font-size: 12.5px; padding: 12px 0 2px; cursor: pointer; }
.hint-block { color: var(--faint); font-size: 12px; text-align: center; padding: 6px 12px 4px; line-height: 1.55; }

/* admin-only sections stay hidden for normal users */
body:not(.is-admin) .admin-only { display: none !important; }

/* stale-feed banner */
.stale {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,176,32,.09); border: 1px solid rgba(255,176,32,.28);
  color: var(--dim); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: 12.5px;
}
.stale::before { content: "●"; color: var(--amber); font-size: 10px; }

/* admin reset output */
.reset-out { margin-top: 10px; font-size: 13px; color: var(--dim); line-height: 1.5; }
.reset-out b { display: block; font-size: 21px; color: var(--text); letter-spacing: 1.5px; user-select: all; margin: 4px 0; }

/* ===================== BUTTONS ===================== */
.btn {
  position: relative; overflow: hidden; width: 100%; padding: 14px;
  border: 1px solid var(--glass-brd); border-radius: 15px; background: rgba(255,255,255,.05);
  color: var(--text); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 24px rgba(108,92,255,.4); }
.btn.ghost { width: auto; padding: 10px 16px; font-size: 13.5px; }
.btn .arr { transition: transform .25s; }
.btn.primary:hover .arr { transform: translateX(4px); }

/* ripple */
.ripple > .rip { position: absolute; border-radius: 50%; background: rgba(255,255,255,.4); transform: scale(0); animation: ripple .55s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ===================== TOP BAR ===================== */
#topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 14px 14px; border-left: none; border-right: none; border-top: none;
}
.top-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.icon-btn { width: 40px; height: 40px; border: none; background: rgba(255,255,255,.06); border-radius: 12px; display: grid; place-items: center; font-size: 19px; transition: background .2s, transform .1s; }
.icon-btn:active { transform: scale(.9); background: rgba(255,255,255,.12); }
#refreshIcon { display: inline-block; }
#refreshIcon.spinning { animation: spin .8s linear infinite; }
.hamb { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.hamb i { height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.hamb i:nth-child(2) { width: 70%; }

/* ===================== CONTENT / PAGES ===================== */
#content { padding: 14px 14px calc(var(--nav-h) + 26px); }
.page { animation: pageIn .38s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===================== SUMMARY HERO ===================== */
.hero {
  position: relative; border-radius: 24px; padding: 22px 20px; margin-bottom: 14px; overflow: hidden;
  background: linear-gradient(150deg, rgba(38,52,92,.85), rgba(18,24,44,.85));
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow); animation: fadeUp .5s both;
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(108,92,255,.35), transparent 55%); }
.hero > * { position: relative; }
.hero-label { color: var(--dim); font-size: 12.5px; font-weight: 500; letter-spacing: .3px; }
.hero-value { font-size: 38px; font-weight: 800; letter-spacing: -.5px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.hero-pnl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-pnl.up { color: var(--green); background: rgba(36,214,126,.14); }
.hero-pnl.down { color: var(--red); background: rgba(255,92,114,.14); }
.hero-stats { display: flex; gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--glass-brd); }
.hero-stat .k { color: var(--dim); font-size: 11px; }
.hero-stat .v { font-size: 15px; font-weight: 700; margin-top: 2px; }
.up { color: var(--green); } .down { color: var(--red); }

/* ===================== SEGMENTED CONTROL ===================== */
.segmented { position: relative; display: flex; background: rgba(0,0,0,.28); border: 1px solid var(--glass-brd); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.segmented button { flex: 1; padding: 9px 4px; background: none; border: none; color: var(--dim); font-size: 12.5px; font-weight: 600; z-index: 1; transition: color .25s; }
.segmented button.active { color: #fff; }
.seg-indicator { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); background: var(--grad); border-radius: 10px; transition: transform .3s cubic-bezier(.6,.05,.1,1), width .3s; box-shadow: 0 4px 14px rgba(108,92,255,.4); }

/* ===================== STOCK CARDS ===================== */
.stock-card {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px;
  background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r);
  padding: 13px 15px; margin-bottom: 10px; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(14px); animation: cardIn .5s forwards;
  transition: transform .12s ease;
}
.stock-card:active { transform: scale(.985); }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.stock-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--faint); }
.stock-card.pos-good::before { background: var(--green); }
.stock-card.pos-bad::before { background: var(--red); }
.stock-card .sym { font-weight: 700; font-size: 15.5px; display: flex; gap: 6px; align-items: center; }
.stock-card .meta { color: var(--dim); font-size: 11.5px; margin-top: 3px; }
.stock-card .ltp { text-align: right; font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.stock-card .pnl { text-align: right; font-size: 12px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stock-card .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-brd); color: var(--dim); white-space: nowrap; }
.chip.strong, .chip.up { color: var(--green); border-color: rgba(36,214,126,.3); }
.chip.weak, .chip.down { color: var(--red); border-color: rgba(255,92,114,.3); }
.chip.mixed { color: var(--amber); border-color: rgba(255,176,32,.3); }
.chip.out { color: var(--amber); }
.chip.hold { color: var(--green); }

/* ===================== ALERTS ===================== */
.alert-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r);
  padding: 14px 15px; margin-bottom: 10px; backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(-14px); animation: slideInL .45s forwards;
}
@keyframes slideInL { to { opacity: 1; transform: none; } }
.alert-item .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.alert-item .dot.d { background: rgba(255,92,114,.14); }
.alert-item .dot.m { background: rgba(36,214,126,.14); }
.alert-item .a-sym { font-weight: 700; font-size: 15px; }
.alert-item .a-label { font-size: 13px; color: var(--text); margin-top: 2px; }
.alert-item .a-detail { font-size: 12px; color: var(--dim); margin-top: 2px; }
.alert-item .a-time { margin-left: auto; font-size: 10.5px; color: var(--faint); white-space: nowrap; text-align: right; }
.empty { text-align: center; color: var(--dim); padding: 60px 20px; font-size: 14px; line-height: 1.6; }
.empty .big { font-size: 44px; display: block; margin-bottom: 12px; opacity: .8; }

/* ===================== WATCHLIST ===================== */
.import-card { display: flex; align-items: center; gap: 12px; border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.hint { color: var(--dim); font-size: 11.5px; }
.watch-item {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--glass-brd); border-radius: 15px; padding: 11px 14px; margin-bottom: 9px;
  opacity: 0; transform: translateY(12px); animation: cardIn .45s forwards; backdrop-filter: blur(8px);
}
.watch-item .w-sym { font-weight: 700; flex: 1; font-size: 15px; }
.watch-item input { width: 78px; padding: 9px 8px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-brd); border-radius: 10px; color: var(--text); font-size: 13px; outline: none; }
.watch-item input:focus { border-color: var(--accent); }
.watch-item .del { width: 34px; height: 34px; border: none; background: rgba(255,92,114,.12); color: var(--red); border-radius: 10px; font-size: 15px; }

/* symbol search results */
.sym-results { max-height: 34vh; overflow-y: auto; margin: 6px 0; }
.sym-results div { padding: 12px 12px; border-radius: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.sym-results div:active { background: rgba(255,255,255,.06); }
.sym-results .nm { color: var(--dim); font-size: 11px; }

/* ===================== SETTINGS ===================== */
.card { border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.setting-head { font-weight: 700; margin-bottom: 6px; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .6px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; }
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; width: 46px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: rgba(255,255,255,.12); border-radius: 999px; transition: .28s; }
.slider:before { content: ""; position: absolute; height: 21px; width: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .28s cubic-bezier(.5,1.6,.5,1); }
.switch input:checked + .slider { background: var(--grad); }
.switch input:checked + .slider:before { transform: translateX(19px); }

/* ===================== REPORTS ===================== */
.rep-line { padding: 11px 2px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.rep-line b { font-size: 14px; }
.rep-sub { color: var(--dim); font-size: 11.5px; margin-top: 3px; }

/* ===================== DRAWER ===================== */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 50; }
.scrim.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px; z-index: 60;
  background: linear-gradient(160deg, #131b30, #0a0f1c); border-right: 1px solid var(--glass-brd);
  padding: 26px 20px; transform: translateX(-105%); transition: transform .34s cubic-bezier(.5,.05,.1,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.5); }
.drawer-head { display: flex; align-items: center; gap: 13px; padding-bottom: 22px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; box-shadow: 0 8px 22px rgba(108,92,255,.45); }
.drawer-name { font-weight: 700; font-size: 16px; }
.drawer-email { color: var(--dim); font-size: 12px; margin-top: 2px; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav button, .drawer-action { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; background: none; border: none; border-radius: 13px; font-size: 14.5px; font-weight: 600; text-align: left; transition: background .18s; }
.drawer-nav button:active, .drawer-action:active { background: rgba(255,255,255,.07); }
.drawer-nav .ic, .drawer-action .ic { font-size: 18px; width: 24px; text-align: center; }
.drawer-divider { height: 1px; background: rgba(255,255,255,.08); margin: 16px 0; }
.drawer-action.danger { color: var(--red); margin-top: 2px; }
.drawer-foot { margin-top: auto; text-align: center; color: var(--faint); font-size: 11px; padding-top: 20px; }

/* ===================== BOTTOM NAV ===================== */
#bottomNav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex;
  height: var(--nav-h); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  border-left: none; border-right: none; border-bottom: none;
}
@media (min-width: 560px) and (max-width: 899px) { #bottomNav { left: 50%; transform: translateX(-50%); width: 430px; } }
#bottomNav button { position: relative; flex: 1; background: none; border: none; color: var(--faint); font-size: 10px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; z-index: 1; transition: color .25s; }
#bottomNav button.active { color: #fff; }
#bottomNav .ic { font-size: 19px; transition: transform .3s cubic-bezier(.5,1.6,.5,1); }
#bottomNav button.active .ic { transform: translateY(-2px) scale(1.12); }
.nav-indicator { position: absolute; top: 8px; width: 46px; height: 40px; border-radius: 14px; background: rgba(108,92,255,.18); border: 1px solid rgba(108,92,255,.3); transition: transform .34s cubic-bezier(.5,.05,.1,1); }
.badge { position: absolute; top: 4px; right: 22%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }

/* ===================== FAB ===================== */
.fab {
  position: fixed; bottom: calc(var(--nav-h) + 18px); right: 20px; z-index: 45;
  width: 58px; height: 58px; border-radius: 20px; border: none; background: var(--grad);
  color: #fff; font-size: 30px; font-weight: 300; line-height: 1; box-shadow: 0 12px 30px rgba(108,92,255,.5);
  animation: fabIn .4s cubic-bezier(.4,1.6,.5,1) both; transition: transform .15s;
}
@media (min-width: 560px) and (max-width: 899px) { .fab { right: calc(50% - 215px + 20px); } }
.fab:active { transform: scale(.9) rotate(90deg); }
@keyframes fabIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }

/* ===================== BOTTOM SHEET ===================== */
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: linear-gradient(180deg, #131b30, #0b111f); border-top: 1px solid var(--glass-brd);
  border-radius: 26px 26px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .36s cubic-bezier(.4,0,.1,1); box-shadow: 0 -20px 50px rgba(0,0,0,.5);
}
.sheet.open { transform: translateY(0); }
@media (min-width: 560px) { .sheet { left: 50%; transform: translate(-50%,105%); width: 430px; } .sheet.open { transform: translate(-50%,0); } }

/* ===================== DESKTOP (≥900px): sidebar + grid ===================== */
@media (min-width: 900px) {
  body { display: block; background: var(--bg); }
  .screen { width: auto; min-height: 100vh; box-shadow: none; }
  .auth-box { max-width: 470px; margin: 0 auto; }

  /* drawer becomes a permanent sidebar */
  #drawerScrim { display: none !important; }
  .drawer {
    position: fixed; transform: none; width: 250px; max-width: 250px;
    box-shadow: none; padding-top: 30px;
  }
  .drawer.open { box-shadow: none; }
  #topbar button[aria-label="Menu"] { display: none; }
  .drawer-nav button.active { background: rgba(108,92,255,.16); color: #fff; }

  #topbar {
    position: sticky; margin-left: 250px; padding: 16px 34px;
  }
  .top-title { text-align: left; font-size: 19px; }
  #content { margin-left: 250px; padding: 24px 36px 60px; max-width: 1420px; }
  .ptr { margin-left: 250px; }
  #bottomNav { display: none; }
  #fab { position: fixed; right: 36px; bottom: 36px; }

  /* lists become responsive card grids */
  #portfolioList { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
  #portfolioList .stock-card { margin-bottom: 0; }
  #portfolioList .empty { grid-column: 1 / -1; }
  #alertsList { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 12px; }
  #alertsList .alert-item { margin-bottom: 0; }
  #alertsList .empty { grid-column: 1 / -1; }
  #watchItems { display: grid; grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); gap: 10px; }
  #watchItems .watch-item { margin-bottom: 0; }
  #watchItems .empty { grid-column: 1 / -1; }
  #page-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  #page-settings .card { margin-bottom: 0; }

  #pfFilter { max-width: 540px; }
  .segmented.report-seg { max-width: 420px; }
  .hero-value { font-size: 46px; }
  .import-card { max-width: 540px; }
}
.sheet-handle { width: 42px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.22); margin: 4px auto 14px; }
.sheet-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.sheet-fields { display: flex; gap: 10px; }
.sheet-fields .field { flex: 1; }

/* ===================== SKELETON ===================== */
.skel { position: relative; overflow: hidden; background: rgba(255,255,255,.05); border-radius: var(--r); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-hero { height: 150px; margin-bottom: 14px; }
.skel-row { height: 74px; margin-bottom: 10px; }

/* ===================== PTR / TOAST ===================== */
.ptr { height: 0; overflow: hidden; display: grid; place-items: center; transition: height .2s; }
.ptr.active { height: 44px; }
.spin { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: calc(var(--nav-h) + 20px); left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(30,40,64,.95); backdrop-filter: blur(12px); color: var(--text);
  border: 1px solid var(--glass-brd); border-radius: 14px; padding: 12px 20px; font-size: 13.5px;
  font-weight: 500; z-index: 90; max-width: 86%; text-align: center; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* shared keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
