/* ============ RUGER MC — Design System ============ */
:root {
  --bg: #05060a;
  --bg-2: #0a0c12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --txt: #f4f5f7;
  --muted: #9aa0ae;
  --gold: #f0c46a;
  --gold-2: #c9963c;
  --neon: #35e88b;
  --violet: #8b6cff;
  --danger: #ff5f6d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.9);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 68px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(240, 196, 106, 0.13), transparent 60%),
    radial-gradient(760px 480px at 92% 4%, rgba(53, 232, 139, 0.09), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(139, 108, 255, 0.07), transparent 70%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(240, 196, 106, 0.3); }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }

/* ============ Layout shell ============ */
.app-shell { max-width: 520px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + var(--safe-b) + 26px); position: relative; }
.app-shell.wide { max-width: 1080px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0 12px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  backdrop-filter: blur(18px) saturate(150%);
  background: linear-gradient(180deg, rgba(5,6,10,0.94), rgba(5,6,10,0.62));
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(240,196,106,0.35)); }
.brand-name {
  font-weight: 900; letter-spacing: 0.14em; font-size: 15px; line-height: 1;
  background: linear-gradient(100deg, #fff 10%, var(--gold) 55%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 9px; letter-spacing: 0.32em; color: var(--muted); font-weight: 700; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  color: var(--txt); cursor: pointer; transition: .2s; font-size: 16px;
}
.icon-btn:hover { background: var(--panel-2); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn.gold { color: var(--gold); border-color: rgba(240,196,106,.28); }

/* ============ Typography ============ */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-head h2 { font-size: 16px; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.section-head h2::before {
  content: ''; width: 3px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
}
.section-head .more { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; display: flex; align-items: center; gap: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ============ Hero / banner ============ */
.hero {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0d1018, #070810 55%, #0f1219);
  box-shadow: var(--shadow);
  margin-top: 6px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,.35) 0%, rgba(5,6,10,.78) 55%, rgba(5,6,10,.97) 100%);
}
.hero-glow {
  position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,196,106,.30), transparent 68%);
  filter: blur(6px); pointer-events: none;
}
.hero-body { position: relative; padding: 26px 22px 22px; }
.hero-body h1 { font-size: 27px; line-height: 1.08; margin: 10px 0 8px; }
.hero-body h1 span {
  background: linear-gradient(100deg, var(--gold) 0%, #fff3cf 50%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-body p { color: #c8ccd6; font-size: 13px; margin: 0 0 18px; max-width: 34ch; }
.hero-cta { display: flex; gap: 9px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 5px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); display: block; }
.hero-dots i.on { background: var(--gold); width: 16px; border-radius: 4px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 13px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--txt); font-weight: 700; font-size: 13px;
  cursor: pointer; transition: transform .15s, filter .2s, background .2s;
  letter-spacing: .02em; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.08); }
.btn-primary {
  background: linear-gradient(100deg, var(--gold) 0%, #ffe3a3 45%, var(--gold-2) 100%);
  color: #17120a; border-color: transparent;
  box-shadow: 0 10px 26px -12px rgba(240,196,106,.8);
}
.btn-neon {
  background: linear-gradient(100deg, var(--neon) 0%, #7bffbe 60%, #10b768 100%);
  color: #04140b; border-color: transparent;
  box-shadow: 0 10px 26px -12px rgba(53,232,139,.7);
}
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 11.5px; border-radius: 10px; }
.btn-danger { background: rgba(255,95,109,.12); color: #ff9aa2; border-color: rgba(255,95,109,.3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.wide-text { letter-spacing: .1em; font-size: 12px; }

/* ============ Stories rail ============ */
.stories-rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.stories-rail::-webkit-scrollbar { display: none; }
.story-item { flex: 0 0 auto; width: 74px; text-align: center; scroll-snap-align: start; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.story-ring {
  width: 68px; height: 68px; border-radius: 50%; padding: 2.5px; margin: 0 auto 7px;
  background: conic-gradient(from 200deg, var(--gold), #ffe9b8, var(--neon), var(--gold));
  position: relative; transition: transform .2s;
}
.story-ring.seen { background: rgba(255,255,255,.16); }
.story-ring.inner-seen { background: linear-gradient(140deg, rgba(255,255,255,.35), rgba(255,255,255,.1)); }
.story-item:hover .story-ring { transform: scale(1.05); }
.story-ring > div {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: #0a0c12; border: 2.5px solid var(--bg);
  display: grid; place-items: center; font-size: 18px;
}
.story-ring img, .story-ring video { width: 100%; height: 100%; object-fit: cover; }
.story-ring .logo-tile { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #16181f, #07080c); }
.story-item .lbl { font-size: 10.5px; font-weight: 700; color: #d6d9e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .01em; }
.story-item .lbl.muted-lbl { color: var(--muted); font-weight: 600; }
.story-live { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); background: var(--neon); color: #04140b; font-size: 7px; font-weight: 900; padding: 1px 5px; border-radius: 5px; letter-spacing: .08em; border: 1.5px solid var(--bg); }
.story-add .story-ring { background: rgba(255,255,255,.09); }
.story-add .plus { font-size: 24px; color: var(--gold); }

/* ============ Cards ============ */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; position: relative; overflow: hidden;
}
.card + .card { margin-top: 10px; }
.card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(240,196,106,.4), transparent); opacity: .5;
}

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-tile {
  display: flex; align-items: center; gap: 11px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  transition: .2s; cursor: pointer;
}
.quick-tile:hover { background: var(--panel-2); transform: translateY(-2px); border-color: var(--line-2); }
.quick-tile .qi {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-size: 15px; background: rgba(240,196,106,.13); color: var(--gold); flex: 0 0 auto;
}
.quick-tile.neon .qi { background: rgba(53,232,139,.13); color: var(--neon); }
.quick-tile .qt { font-size: 12px; font-weight: 800; line-height: 1.15; }
.quick-tile .qs { font-size: 9.5px; color: var(--muted); letter-spacing: .04em; }

/* platform cards */
.plat-card {
  position: relative; border-radius: 20px; padding: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 60%, rgba(0,0,0,.2));
  transition: transform .2s, border-color .2s;
}
.plat-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.plat-card::after {
  content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,196,106,.22), transparent 70%); pointer-events: none;
}
.plat-card.neon::after { background: radial-gradient(circle, rgba(53,232,139,.2), transparent 70%); }
.plat-card.violet::after { background: radial-gradient(circle, rgba(139,108,255,.22), transparent 70%); }
.plat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.plat-logo {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 14px; letter-spacing: -0.03em; flex: 0 0 auto;
  background: linear-gradient(150deg, rgba(240,196,106,.22), rgba(255,255,255,.04));
  border: 1px solid rgba(240,196,106,.3); color: var(--gold);
}
.plat-card.neon .plat-logo { background: linear-gradient(150deg, rgba(53,232,139,.22), rgba(255,255,255,.04)); border-color: rgba(53,232,139,.32); color: var(--neon); }
.plat-card.violet .plat-logo { background: linear-gradient(150deg, rgba(139,108,255,.24), rgba(255,255,255,.04)); border-color: rgba(139,108,255,.32); color: #bda9ff; }
.plat-info { flex: 1; min-width: 0; }
.plat-name { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.plat-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.badge {
  font-size: 8.5px; font-weight: 900; letter-spacing: .1em; padding: 4px 7px; border-radius: 6px;
  background: rgba(240,196,106,.16); color: var(--gold); border: 1px solid rgba(240,196,106,.3); flex: 0 0 auto;
}
.badge.neon { background: rgba(53,232,139,.16); color: var(--neon); border-color: rgba(53,232,139,.32); }
.plat-meta { display: flex; align-items: center; gap: 12px; margin: 13px 0 12px; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.plat-meta span { display: flex; align-items: center; gap: 5px; }
.plat-meta i.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }

/* news */
.news-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-tag {
  font-size: 8.5px; font-weight: 900; letter-spacing: .1em; padding: 3px 6px; border-radius: 5px; height: fit-content;
  background: rgba(240,196,106,.14); color: var(--gold); flex: 0 0 auto; margin-top: 2px;
}
.news-tag.neon { background: rgba(53,232,139,.14); color: var(--neon); }
.news-body h4 { font-size: 13px; font-weight: 700; line-height: 1.3; }
.news-body p { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }
.news-body time { font-size: 9.5px; color: #6c7280; letter-spacing: .05em; margin-top: 5px; display: block; }

/* follow card */
.follow-card { text-align: center; padding: 24px 18px; }
.follow-ava {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px; padding: 3px;
  background: conic-gradient(from 180deg, var(--gold), var(--neon), var(--gold));
}
.follow-ava > div { width: 100%; height: 100%; border-radius: 50%; background: #08090e; display: grid; place-items: center; }
.follow-ava svg { width: 40px; height: 40px; }
.follow-name { font-size: 16px; font-weight: 800; letter-spacing: .06em; }
.follow-handle { font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-top: 2px; }
.follow-counts { display: flex; justify-content: center; gap: 26px; margin: 16px 0; }
.follow-counts div { text-align: center; }
.follow-counts b { display: block; font-size: 16px; font-weight: 800; color: var(--gold); }
.follow-counts span { font-size: 9.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: #c9cdd6; cursor: pointer; white-space: nowrap; transition: .2s;
}
.chip.on { background: linear-gradient(100deg, var(--gold), var(--gold-2)); color: #17120a; border-color: transparent; box-shadow: 0 6px 18px -8px rgba(240,196,106,.8); }
.chip.neon.on { background: linear-gradient(100deg, var(--neon), #10b768); color: #04140b; }

/* ============ Bottom nav ============ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(7, 8, 13, 0.9);
  backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: center;
  max-width: 520px; margin: 0 auto;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px; border-radius: 12px; color: #7b8190; font-size: 9px;
  font-weight: 800; letter-spacing: .09em; transition: .2s; border: 0; background: none; cursor: pointer;
}
.nav-item svg { width: 21px; height: 21px; stroke-width: 1.9; }
.nav-item.on { color: var(--gold); }
.nav-item.on svg { filter: drop-shadow(0 0 10px rgba(240,196,106,.6)); }
.nav-item:active { transform: scale(.94); }
.nav-item.pulse .nav-badge { animation: pulseDot 2s infinite; }
.nav-badge { position: absolute; margin: -18px 0 0 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.5); opacity: .6 } }

/* ============ WhatsApp float ============ */
.wa-float {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 55;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #2ee06a, #128c4a);
  box-shadow: 0 12px 30px -8px rgba(46,224,106,.6), 0 0 0 1px rgba(255,255,255,.12) inset;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08) rotate(4deg); }
.wa-float svg { width: 27px; height: 27px; fill: #fff; }
.wa-float::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid rgba(46,224,106,.45); animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(.9); opacity: .9 } 100% { transform: scale(1.35); opacity: 0 } }

/* ============ Story viewer ============ */
.viewer { position: fixed; inset: 0; z-index: 100; background: #000; display: none; }
.viewer.open { display: block; }
.viewer-stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #15171f, #05060a 70%);
  overflow: hidden;
}
.viewer-media { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.viewer-textwrap {
  position: relative; z-index: 2; width: 100%; max-width: 460px; padding: 0 26px;
  text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.viewer-textwrap h2 { font-size: clamp(24px, 8vw, 36px); line-height: 1.1; letter-spacing: -0.02em; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.viewer-textwrap p { font-size: 14px; color: rgba(255,255,255,.88); margin: 0; max-width: 30ch; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.bg-aurora { background: radial-gradient(circle at 25% 15%, #2a5c46, transparent 60%), radial-gradient(circle at 80% 80%, #6a4c12, transparent 55%), #05060a; }
.bg-neon { background: radial-gradient(circle at 30% 25%, #0f5f3c, transparent 60%), radial-gradient(circle at 75% 75%, #234d2a, transparent 55%), #04070a; }
.bg-violet { background: radial-gradient(circle at 30% 25%, #3b2a6b, transparent 60%), radial-gradient(circle at 75% 80%, #5b2a5c, transparent 55%), #05050a; }
.bg-gold { background: radial-gradient(circle at 30% 25%, #6b5013, transparent 60%), radial-gradient(circle at 75% 80%, #402c08, transparent 55%), #07060a; }
.viewer-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,.78), transparent);
  display: flex; align-items: center; gap: 10px;
}
.viewer-bars { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); left: 10px; right: 10px; z-index: 6; display: flex; gap: 4px; }
.viewer-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; display: block; }
.viewer-bars i b { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }
.viewer-bars i.done b { width: 100%; }
.viewer-ava { width: 34px; height: 34px; border-radius: 50%; background: #0b0d13; display: grid; place-items: center; border: 1.5px solid rgba(240,196,106,.6); }
.viewer-ava svg { width: 20px; height: 20px; }
.viewer-head .who { flex: 1; }
.viewer-head .who b { font-size: 12px; letter-spacing: .06em; display: block; }
.viewer-head .who span { font-size: 9.5px; color: rgba(255,255,255,.6); }
.viewer-close { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 17px; cursor: pointer; display: grid; place-items: center; }
.viewer-foot {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 30px 18px calc(20px + var(--safe-b));
  background: linear-gradient(0deg, rgba(0,0,0,.88), transparent);
  display: flex; flex-direction: column; gap: 10px;
}
.viewer-nav { position: absolute; inset: 0; display: flex; z-index: 3; }
.viewer-nav button { flex: 1; background: none; border: 0; cursor: pointer; }
.viewer-count { font-size: 9.5px; letter-spacing: .1em; color: rgba(255,255,255,.55); text-align: center; }

/* ============ Forms ============ */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--txt); font-size: 14px; font-family: inherit; transition: .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: rgba(240,196,106,.55); background: rgba(255,255,255,.075); box-shadow: 0 0 0 3px rgba(240,196,106,.09); }
.textarea { min-height: 84px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0ae' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select option { background: #0f1118; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file-drop {
  border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px 16px;
  text-align: center; cursor: pointer; transition: .2s; background: rgba(255,255,255,.02);
}
.file-drop:hover { border-color: rgba(240,196,106,.5); background: rgba(240,196,106,.04); }
.file-drop i { font-size: 22px; color: var(--gold); }
.file-drop p { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; }
.preview { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.preview img, .preview video { width: 100%; max-height: 240px; object-fit: cover; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 34px); transform: translate(-50%, 20px);
  background: #14161d; border: 1px solid var(--line-2); color: #fff;
  padding: 11px 18px; border-radius: 12px; font-size: 12.5px; font-weight: 600; z-index: 200;
  opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(53,232,139,.5); box-shadow: 0 0 24px -6px rgba(53,232,139,.45); }
.toast.err { border-color: rgba(255,95,109,.5); }

/* adm */
.adm-wrap { min-height: 100dvh; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 16px; }
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: #aab0bd; font-size: 11px; font-weight: 800; letter-spacing: .07em; cursor: pointer; white-space: nowrap; }
.adm-tab.on { background: rgba(240,196,106,.14); color: var(--gold); border-color: rgba(240,196,106,.4); }
.panel-section { display: none; }
.panel-section.on { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.kpi { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.kpi b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; display: block; color: var(--gold); }
.kpi span { font-size: 9px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.kpi.neon b { color: var(--neon); }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-row .nm { width: 78px; font-size: 10.5px; color: #c4c9d3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 0 auto; }
.bar-track { flex: 1; height: 7px; border-radius: 7px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.bar-row .vl { font-size: 10px; font-weight: 800; color: var(--gold); width: 34px; text-align: right; flex: 0 0 auto; }

.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border: 0; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-main b { font-size: 12.5px; display: block; }
.list-row .lr-main span { font-size: 10px; color: var(--muted); }
.mini-ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(240,196,106,.15); color: var(--gold); flex: 0 0 auto; }

.story-thumb { width: 46px; height: 66px; border-radius: 9px; object-fit: cover; background: #12141b; flex: 0 0 auto; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; }

/* login */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 370px; padding: 30px 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: var(--shadow); }
.login-logo { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; }
.login-card h1 { font-size: 19px; text-align: center; letter-spacing: .1em; }
.login-card .sub { text-align: center; font-size: 10.5px; color: var(--muted); letter-spacing: .16em; margin: 6px 0 22px; text-transform: uppercase; }

/* ============ Misc ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.pill-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(53,232,139,.1); border: 1px solid rgba(53,232,139,.25); color: #8dffc4; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.pill-note.gold { background: rgba(240,196,106,.1); border-color: rgba(240,196,106,.25); color: var(--gold); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); font-size: 12.5px; }
.empty i { font-size: 26px; color: #3b404d; display: block; margin-bottom: 10px; }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

@media (min-width: 900px) {
  .app-shell { max-width: 1080px; padding-left: 26px; padding-right: 26px; }
  .bottom-nav { max-width: 1080px; border-radius: 0; }
  .wa-float { right: calc(50% - 540px + 22px); }
  .hero-body { padding: 44px 40px 38px; }
  .hero-body h1 { font-size: 40px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .plat-grid-wide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .plat-grid-wide .plat-card + .plat-card { margin-top: 0; }
}
@media (max-width: 380px) {
  .hero-body h1 { font-size: 23px; }
  .kpi b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============ SVG sizing (inline icons) ============ */
svg { display: block; }
.qi svg { width: 18px; height: 18px; stroke-width: 2; }
.mini-ava svg { width: 15px; height: 15px; }
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block svg { margin-left: 0; }
.story-ring > div > svg { width: 26px; height: 26px; }
.story-thumb svg { width: 16px; height: 16px; }
.follow-ava svg { width: 40px; height: 40px; }
.viewer-ava svg { width: 20px; height: 20px; }
.plat-meta svg, .lr-main svg, .news-body svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.lr-main b svg { width: 12px; height: 12px; }
.wa-big {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: linear-gradient(145deg, #2ee06a, #128c4a);
  box-shadow: 0 14px 34px -12px rgba(46,224,106,.7);
}
.wa-big svg { width: 38px; height: 38px; fill: #fff; }
.viewer-head { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
.viewer-bars { top: calc(9px + env(safe-area-inset-top, 0px)); }
.adm-head .pill-note { flex: 0 0 auto; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span { transform: rotate(45deg); }
details > summary span { transition: transform .2s; display: inline-block; }

/* ============ Logo das plataformas ============ */
.plat-logo.has-logo,
.plat-logo:has(> img) {
  background: #0b0d14;
  border-color: rgba(255, 255, 255, 0.12);
  padding: 5px;
  overflow: hidden;
}
.plat-logo.has-logo.neon { border-color: rgba(53, 232, 139, 0.34); background: #06110c; }
.plat-logo.has-logo.gold { border-color: rgba(240, 196, 106, 0.34); background: #100d06; }
.plat-logo.has-logo.violet { border-color: rgba(139, 108, 255, 0.34); background: #0a0814; }
.plat-logo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
}

/* seletor de logo no painel */
.logo-picker {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}
.logo-preview {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 1.5px dashed var(--line-2);
  background: #0b0d14;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7px;
  position: relative;
  transition: border-color .2s, background .2s;
}
.logo-preview.has-logo { border-style: solid; border-color: rgba(240, 196, 106, .4); background: #100d06; }
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.logo-empty {
  font-size: 8.5px;
  letter-spacing: .1em;
  color: #5b6170;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
}
.logo-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.logo-btn { cursor: pointer; margin: 0; }
.logo-or {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666d7c;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.logo-or::before,
.logo-or::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.logo-hint { font-size: 10px; color: #6c7280; margin: 7px 0 0; line-height: 1.5; }
.logo-uploading { opacity: .55; pointer-events: none; }
@media (max-width: 380px) {
  .logo-picker { grid-template-columns: 70px 1fr; padding: 10px; }
  .logo-preview { width: 70px; height: 70px; }
}
