/* odac5 - architectural / neon blueprint theme */
:root{
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --bg:#0b0f17;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.72);
  --muted2:rgba(229,231,235,.52);
  --line:rgba(255,255,255,.12);
  --line2:rgba(255,255,255,.08);
  --accent:#7c3aed;
  --accent2:#06b6d4;
  --accent3:#f97316;
  --warn:#fbbf24;
  --good:#22c55e;
  --shadow: 0 22px 45px rgba(0,0,0,.50);
  --radius: 22px;
  --radius2: 28px;
  --max: 1120px;
}



:root[data-theme="light"]{
  --bg:#f7f7fb;
  --panel:#ffffff;
  --panel2:#f0f2ff;
  --text:#0f172a;
  --muted:rgba(15,23,42,.72);
  --muted2:rgba(15,23,42,.52);
  --line:rgba(15,23,42,.12);
  --line2:rgba(15,23,42,.08);
  --accent:#4f46e5;
  --accent2:#06b6d4;
  --accent3:#f97316;
  --warn:#f59e0b;
  --good:#16a34a;
  --shadow: 0 18px 42px rgba(15,23,42,.12);
  --radius: 22px;
  --radius2: 28px;
  --max: 1120px;
}

:root.light{
  --bg:#f7f9ff;
  --panel:#ffffff;
  --panel2:#f2f5ff;
  --text:#0b0e14;
  --muted:rgba(11,14,20,.68);
  --muted2:rgba(11,14,20,.50);
  --line:rgba(11,14,20,.10);
  --line2:rgba(11,14,20,.08);
  --shadow: 0 18px 40px rgba(20,30,70,.14);
}

*{ box-sizing:border-box; }
html,body{font-family:var(--font); height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1100px 650px at 10% 5%, rgba(127,231,255,.16), transparent 58%),
              radial-gradient(1000px 650px at 85% 15%, rgba(255,122,182,.14), transparent 62%),
              radial-gradient(1200px 800px at 50% 100%, rgba(139,125,255,.10), transparent 56%),
              var(--bg);
  overflow-x:hidden;
}

/* App layout: keep footer anchored to bottom on short pages */
body.app{ min-height:100vh; display:flex; flex-direction:column; }
main.shell{ flex:1; display:flex; flex-direction:column; }

a{ color:inherit; text-decoration:none; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }

.shell{ max-width: var(--max); margin: 0 auto; padding: 22px 16px 64px; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,14,20,.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}
:root.light .topbar{ background: rgba(247,249,255,.74); }

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 16px;
}
.brand{
  display:flex; gap:12px; align-items:center;
}
.brand__icon{
  width:42px; height:42px; border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
}
.brand__name{
  font-weight: 900;
  letter-spacing: -0.7px;
  font-size: 20px;
  line-height: 1;
}
.brand__name span{
  background: linear-gradient(135deg,var(--accent),var(--accent2),var(--accent3));
  -webkit-background-clip:text; background-clip:text; color: transparent;
}
.brand__tagline{ color: var(--muted2); font-size: 12px; margin-top: 2px; }

.topnav{ display:flex; gap:10px; align-items:center; }

.btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 16px;
  padding: 10px 14px;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  font-weight: 650;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(127,231,255,.35); }
.btn:active{ transform: translateY(0px) scale(.99); }
.btn--primary{
  border: none;
  background: linear-gradient(135deg, rgba(127,231,255,.95), rgba(255,122,182,.92), rgba(139,125,255,.9));
  color: #0b0e14;
  box-shadow: 0 12px 26px rgba(127,231,255,.12), 0 18px 40px rgba(255,122,182,.10);
}
.btn--ghost{ background: transparent; }
.btn--on{
  border-color: rgba(255,122,182,.45);
  background: rgba(255,122,182,.10);
}

.chip{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 9px 12px;
  border-radius: 999px;
  cursor:pointer;
  color: var(--text);
  display:flex; gap:8px; align-items:center;
  font-weight: 650;
}
.chip:hover{ border-color: rgba(127,231,255,.35); }
.chip.is-disabled{ opacity: .45; pointer-events:none; }
.dot{ width:9px; height:9px; border-radius: 999px; background: linear-gradient(135deg,var(--accent),var(--accent2)); box-shadow: 0 0 0 3px rgba(127,231,255,.14); }

.section{ margin-top: 22px; }
.section__head{ margin: 0 0 12px; }
.section__head--row{ display:flex; gap:14px; align-items:flex-end; justify-content:space-between; flex-wrap: wrap; }
.section__head h2, .section__head h1{ margin:0; letter-spacing: -0.9px; }
.section__head h1{ font-size: 28px; }
.section__head h2{ font-size: 22px; }

.hero{
  display:grid;
  grid-template-columns: 1.4fr .85fr;
  gap: 16px;
  margin-top: 18px;
  align-items:start;
}
@media (max-width: 940px){
  .hero{ grid-template-columns: 1fr; }
}

.hero__left h1{ margin: 10px 0 8px; font-size: 42px; line-height: 1.05; letter-spacing: -1.2px;}
@media (max-width: 540px){
  .hero__left h1{ font-size: 34px; }
}
.lead{ color: var(--muted); margin: 0 0 14px; font-size: 16px; line-height: 1.55; }

.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127,231,255,.25);
  background: linear-gradient(135deg, rgba(127,231,255,.08), rgba(255,122,182,.07));
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.hero__cta{ display:flex; gap:10px; flex-wrap: wrap; margin: 12px 0 14px; }

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 620px){
  .cards{ grid-template-columns: 1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
:root.light .card{
  background: linear-gradient(180deg, rgba(20,30,70,.02), rgba(20,30,70,.01));
}

.card::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(transparent, rgba(127,231,255,.04)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(234,242,255,.05) 16px 17px);
  opacity:.35;
  pointer-events:none;
}
:root.light .card::before{ opacity:.25; }

.stat{ padding: 14px 14px 12px; }
.stat__k{ color: var(--muted2); font-weight: 700; font-size: 12px; }
.stat__v{ font-size: 22px; font-weight: 900; letter-spacing:-0.6px; margin: 6px 0 2px; }
.stat__s{ color: var(--muted2); font-size: 12px; }

.chart{ padding: 14px; margin-top: 10px; }
.chart__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 10px; }
.chart__title{ font-weight: 900; letter-spacing:-0.5px; }

.adbox{ padding: 16px; min-height: 120px; }
.adbox__ph{ font-weight: 850; letter-spacing:-0.4px; margin-bottom: 6px; }
.strip{ margin: 22px 0; padding: 14px; border-radius: var(--radius2); border: 1px dashed rgba(127,231,255,.25); }
.strip__ph{ color: var(--muted); font-weight: 750; }

.tips{ padding: 16px; }
.tips__title{ font-weight: 900; letter-spacing:-0.5px; }
.tips__q{ margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tips__actions{ display:flex; gap:10px; margin-top: 12px; flex-wrap: wrap; }

.stories{
  display:flex;
  gap: 12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom: 6px;
}
.story{
  min-width: 260px;
  scroll-snap-align: start;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  background: linear-gradient(135deg, rgba(127,231,255,.08), rgba(255,122,182,.07), rgba(139,125,255,.05));
  position:relative;
}
.story:hover{ border-color: rgba(255,122,182,.35); }
.story__top{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom: 10px;}
.story__title{ font-weight: 900; letter-spacing:-0.6px; margin:0; font-size: 16px; }
.story__body{ color: var(--muted); margin-top: 8px; font-size: 13px; line-height: 1.45; }
.story__meta{ display:flex; gap:12px; margin-top: 12px; color: var(--muted2); font-weight: 700; font-size: 12px; }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
}
.pill--soft{ border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.gicon{opacity:.9;font-weight:900}

.gridlist{
  display:flex;
  flex-direction:column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.post{ padding: 14px; display:flex; flex-direction:column; gap:10px; }
.post__head{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.post__title{
  font-weight: 950;
  letter-spacing:-0.7px;
  font-size: 18px;
  line-height:1.2;
}
.post__title:hover{ text-decoration: underline; text-decoration-color: rgba(127,231,255,.5); }
.post__body{ color: var(--muted); font-size: 14px; line-height: 1.55; min-height: 68px; }
.post__foot{ display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top: 2px; }
.meta{ display:flex; gap:12px; color: var(--muted2); font-weight: 750; font-size: 12px; flex-wrap: wrap; }

.post--full{ padding: 18px; }
.post__title--full{ font-size: 28px; margin: 2px 0 0; }
.post__body--full{ font-size: 15px; }
.post__stats{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line2);
}
.actions{ display:flex; gap:10px; flex-wrap: wrap; }

.post__actions{ display:flex; flex-wrap: wrap; gap:8px; align-items:center; justify-content:flex-end; }
.rxbar{ display:flex; gap:8px; flex-wrap: wrap; }
.rx{
  appearance:none;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 13px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width: 0;
}
.rx:hover{ border-color: rgba(127,231,255,.35); transform: translateY(-1px); }
.rx--on, .rx:focus-visible{ border-color: rgba(127,231,255,.55); box-shadow: 0 0 0 3px rgba(127,231,255,.12); }
.rx strong, .rx span{ font-variant-numeric: tabular-nums; }

.emojibar{ display:flex; gap:6px; flex-wrap: wrap; margin: 8px 0 8px; }
.emoji{ border: 1px solid var(--line2); background: rgba(255,255,255,.02); border-radius: 12px; padding: 6px 9px; }
.emoji:hover{ border-color: rgba(127,231,255,.35); }

.sharegrid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 460px){ .sharegrid{ grid-template-columns: 1fr; } }

/* Bottom navigation (mobile) */
.bottomnav{
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: linear-gradient(to top, rgba(11,14,20,.92), rgba(11,14,20,.76));
  border-top: 1px solid var(--line2);
  backdrop-filter: blur(14px);
}
.bottomnav__inner{
  max-width: 720px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:6px;
  padding: 8px 10px;
}
.bn{
  appearance:none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 14px;
  padding: 10px 8px;
  font-weight: 850;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.bn--fab{flex:0 0 auto;border:1px solid rgba(127,231,255,.35);background:rgba(127,231,255,.12);border-radius:18px;padding:10px 12px;font-weight:800}
.bn--fab span{display:block;font-size:12px;opacity:.9;margin-top:2px}
.bn span{ font-size: 12px; }
.bn:hover{ background: rgba(255,255,255,.04); }
.bn.is-on{ color: var(--text); border-color: rgba(127,231,255,.25); background: rgba(127,231,255,.06); }


/* Story share card hint */
.muted kbd{ border:1px solid var(--line2); background: rgba(255,255,255,.04); padding:2px 6px; border-radius: 8px; font-weight:900; }

.search{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}
.search input, .search select{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  outline:none;
}
.search input{ min-width: 220px; }

.field{ display:flex; flex-direction:column; gap:8px; width:100%; }
.field > span{ font-weight: 800; font-size: 12px; color: var(--muted2); letter-spacing: .2px;}
.field input, .field textarea, .field select{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 12px;
  outline:none;
}
.field textarea{ resize: vertical; min-height: 110px;}
.field small{ color: var(--muted2); }
.row{ display:flex; gap:12px; flex-wrap: wrap; align-items:flex-end; }
.row .field{ flex:1; min-width: 240px; }

.honeypot{ display:none !important; }

.pager{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 12px 4px; }

.comments{ margin-top: 16px; }
.commentbox{ padding: 14px; }
.commentbox__foot{ display:flex; justify-content:flex-end; }
.commentlist{ display:flex; flex-direction:column; gap: 12px; margin-top: 12px; }
.comment{ padding: 14px; }
.comment__meta{ display:flex; justify-content:space-between; gap:10px; align-items:center; }
.comment__body{ margin-top: 10px; color: var(--muted); line-height: 1.55; }

.footer{
  border-top: 1px solid var(--line2);
  padding: 22px 16px;
  background: rgba(0,0,0,.10);
}
:root.light .footer{ background: rgba(11,14,20,.03); }
.footer__inner{
  max-width: var(--max);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap: wrap;
}
.footer a{ color: var(--muted2); font-weight: 750; }
.footer a:hover{ color: var(--text); }

.mini{ display:flex; align-items:center; gap:10px; }
.mini__icon{ width:32px; height:32px; border-radius: 12px; }
.mini__title{ font-weight: 900; letter-spacing:-0.6px; }
.mini__muted{ color: var(--muted2); font-size: 12px; }

.dlg::backdrop{ background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.dlg{ border: none; padding: 0; background: transparent; }
.dlg__card{
  width: min(720px, calc(100vw - 24px));
  border-radius: var(--radius2);
  border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}
.dlg__head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 6px 2px 12px;
}
.dlg__title{ font-weight: 950; letter-spacing:-0.7px; font-size: 18px; }
.dlg__foot{ display:flex; justify-content:flex-end; gap:10px; margin-top: 12px; }
.x{
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 8px 10px;
  cursor:pointer;
  color: var(--text);
}
.x:hover{ border-color: rgba(255,122,182,.35); }

.grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px;}
@media (max-width: 520px){ .grid{ grid-template-columns: repeat(2, 1fr);} }
.grid .chip{ justify-content:center; }

.muted{ color: var(--muted2); }
.warn{ color: var(--warn); font-weight: 800; }

.crumbs{ display:flex; align-items:center; gap:10px; margin-bottom: 12px; color: var(--muted2);}
.crumbs a{ color: var(--muted); font-weight: 750; }
.crumbs a:hover{ color: var(--text); }

.prose{ padding: 18px; }
.prose h1{ margin-top: 0; }
.prose p, .prose li{ color: var(--muted); line-height: 1.7; }
.prose ul{ margin-top: 8px; }

.sep{ border: none; border-top: 1px solid var(--line2); margin: 16px 0; }

.grid2{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 12px;
}
@media (max-width: 980px){ .grid2{ grid-template-columns: 1fr; } }

.adminlist{ display:flex; flex-direction:column; gap: 10px; margin-top: 12px; }
.adminitem{
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 12px;
  display:flex;
  gap: 12px;
  justify-content:space-between;
  align-items:flex-start;
  background: rgba(255,255,255,.02);
}
.adminitem__actions{ display:flex; gap: 8px; flex-wrap: wrap; }
.adminitem a:hover{ text-decoration: underline; }

/* --- upgrades: mini chip + ad helpers --- */
.chip--sm{ padding: 6px 10px; font-size: 12px; }
.strip .adbox__ph{ color: var(--muted); font-weight: 750; }
.odac5-ad{ display:block; width:100%; min-height: 90px; }

/* --- admin upgrades --- */
.notice{ padding:12px 14px; border-radius: 18px; margin: 12px 0; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.notice--ok{ border-color: rgba(124,255,178,.25); background: rgba(124,255,178,.08); }
.notice--bad{ border-color: rgba(255,122,182,.25); background: rgba(255,122,182,.08); }
.notice--warn{ border-color: rgba(255,204,102,.25); background: rgba(255,204,102,.08); }

.tabs{ display:flex; flex-wrap:wrap; gap:8px; margin: 16px 0 10px; }
.tab{ padding:10px 12px; border:1px solid var(--line2); border-radius: 999px; background: rgba(255,255,255,.02); font-weight: 750; }
.tab:hover{ border-color: rgba(127,231,255,.35); }
.tab.is-on{ border-color: rgba(127,231,255,.55); background: rgba(127,231,255,.10); }

.admin__head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.admin__body{ margin-top: 16px; }

.grid3{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
@media (max-width: 980px){ .grid3{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 650px){ .grid3{ grid-template-columns: 1fr; } }

.stat{ padding: 16px; }
.stat__k{ color: var(--muted2); font-weight: 800; font-size: 13px; }
.stat__v{ font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-top: 4px; }
.stat__s{ color: var(--muted2); font-size: 12px; margin-top: 4px; }

.quick{ padding: 16px; }
.quick__t{ font-weight: 900; font-size: 16px; }

.adminform{ display:block; }
.adminform__foot{ display:flex; justify-content:flex-end; margin-top: 12px; }
.hr{ height: 1px; background: var(--line2); margin: 18px 0; }

.inset{ padding: 16px; }
.inset__head{ display:flex; justify-content:space-between; gap: 12px; align-items:center; flex-wrap:wrap; margin-bottom: 10px; }
.inset__t{ font-weight: 900; }

.toggle{ display:flex; align-items:center; gap: 8px; }
.toggle input{ width: 18px; height: 18px; }

.row{ display:flex; gap: 10px; align-items:center; flex-wrap:wrap; }


/* === Ghost / premium HUD tweaks (Mercedes-like) === */
.chip--static{
  pointer-events:none;
  opacity: .92;
  border-color: rgba(234,242,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

/* Hashtags (Twitter-like) */
.hashtag{
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.hashtag:hover{ text-decoration: underline; }

.card.stat{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(234,242,255,.14);
  backdrop-filter: blur(10px);
}

.card.stat:before{
  content:'';
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 220px at 15% 0%, rgba(127,231,255,.22), transparent 60%),
              radial-gradient(520px 220px at 85% 10%, rgba(255,255,255,.10), transparent 62%);
  pointer-events:none;
}

.card.stat:after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: hudShine 5.8s ease-in-out infinite;
  opacity:.55;
  pointer-events:none;
}

@keyframes hudShine{
  0%{ transform: translateX(-120%); }
  45%{ transform: translateX(120%); }
  100%{ transform: translateX(120%); }
}

.stat__v{
  text-shadow: 0 0 18px rgba(127,231,255,.20);
}


/* --- Ultimate additions: language menu, story overlay, footer stats --- */
.langmenu{position:relative}
.langmenu__panel{position:absolute;right:0;top:42px;min-width:180px;background:rgba(10,14,20,.92);border:1px solid rgba(234,242,255,.12);border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.35);padding:8px;display:none;z-index:60;backdrop-filter:blur(14px)}
.langmenu__panel.is-open{display:block}
.langmenu__item{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;color:rgba(234,242,255,.88);text-decoration:none}
.langmenu__item:hover{background:rgba(234,242,255,.08)}
.langmenu__item.is-on{background:rgba(127,231,255,.12);border:1px solid rgba(127,231,255,.18)}

html.rtl body{direction:rtl}
html.rtl .topbar{direction:rtl}
html.rtl .topnav{flex-direction:row-reverse}

.footerstats{position:sticky;bottom:0;z-index:20;pointer-events:none;opacity:0;transform:translateY(12px);transition:opacity .25s ease, transform .25s ease}
.footerstats.is-on{opacity:1;transform:translateY(0)}
.footerstats__inner{max-width:1100px;margin:0 auto;padding:10px 16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.footerstats .ghost{pointer-events:auto}
@media (max-width:780px){.footerstats__inner{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.footerstats .stat__v{font-size:20px}}

.storybar{display:flex;gap:10px;overflow:auto;padding:10px 2px;scroll-snap-type:x mandatory}
.storybar::-webkit-scrollbar{display:none}
.storychip{flex:0 0 auto;scroll-snap-align:start;border:0;padding:0;display:flex;flex-direction:column;gap:6px;align-items:center;background:transparent;color:rgba(234,242,255,.92);min-width:78px}
.storychip--round{cursor:pointer}
.storychip__ring{width:62px;height:62px;border-radius:999px;padding:3px;background:conic-gradient(from 180deg, rgba(127,231,255,.85), rgba(255,255,255,.18), rgba(127,231,255,.85));display:grid;place-items:center;}
.storychip__avatar{width:56px;height:56px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);display:grid;place-items:center;font-weight:900;font-size:20px;}
.storychip__label{font-size:12px;line-height:1.1;text-align:center;max-width:78px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.88}
.storychip__g{opacity:.95}


.storyOverlay{position:fixed;inset:0;background:rgba(0,0,0,.72);display:none;z-index:100}
.storyOverlay.is-open{display:block}
.storyOverlay__card{position:absolute;inset:0;max-width:520px;margin:0 auto;background:linear-gradient(180deg, rgba(12,16,24,.96), rgba(12,16,24,.92));}
.storyOverlay__top{padding:14px 14px 8px;display:flex;align-items:center;gap:10px}
.storyOverlay__progress{flex:1;height:4px;background:rgba(234,242,255,.12);border-radius:999px;overflow:hidden}
.storyOverlay__bar{height:100%;width:0%;background:rgba(127,231,255,.9)}
.storyOverlay__close{border:0;background:transparent;color:rgba(234,242,255,.9);font-size:20px;padding:10px;border-radius:12px}
.storyOverlay__body{padding:8px 16px 90px}
.storyOverlay__title{font-size:20px;font-weight:800;margin:6px 0 8px}
.storyOverlay__text{white-space:pre-wrap;line-height:1.55;color:rgba(234,242,255,.92)}
.storyOverlay__nav{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr}
.storyOverlay__nav button{background:transparent;border:0}
.storyOverlay__reactions{position:absolute;left:0;right:0;bottom:0;padding:12px 14px;display:flex;gap:10px;justify-content:center;background:rgba(12,16,24,.86);border-top:1px solid rgba(234,242,255,.10);backdrop-filter:blur(14px)}
.storyOverlay__reactions .chip{border-radius:999px}

body.modal-open{position:fixed;left:0;right:0;overflow:hidden}

.feedNew{position:sticky;top:64px;z-index:10;display:none;justify-content:center;margin:6px 0 10px}
.feedNew.is-on{display:flex}


/* Footer */
.sitefooter{margin:16px 0 12px 0;padding:16px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);margin-top:auto}
.sitefooter__brand{display:flex;gap:12px;align-items:center}
.sitefooter__logo{border-radius:10px}
.sitefooter__name{font-weight:800;letter-spacing:.2px}
.sitefooter__tag{font-size:12px;color:rgba(255,255,255,.7)}
.sitefooter__links{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.sitefooter__links a{color:rgba(255,255,255,.8);text-decoration:none;font-size:13px}
.sitefooter__links a:hover{text-decoration:underline}
.sitefooter__copy{margin-top:10px;font-size:12px;color:rgba(255,255,255,.55)}

/* Stats dock (appears near bottom) */
.statsdock{position:fixed;left:0;right:0;bottom: calc(64px + env(safe-area-inset-bottom));display:block;z-index:40;pointer-events:none}
.statsdock__inner{margin:0 auto;max-width:520px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px}
.stat{pointer-events:auto;border-radius:16px;padding:10px;background:rgba(10,14,24,.65);border:1px solid rgba(255,255,255,.10);backdrop-filter:blur(10px)}
.stat .k{font-size:11px;color:rgba(255,255,255,.7)}
.stat .v{font-size:20px;font-weight:900}

/* Adult blur */
.post--adult .post__title, .post--adult .post__head{opacity:.9}
.adultBlur{filter:blur(10px);user-select:none;pointer-events:none;opacity:.9}
.adultCta{display:inline-block;margin-top:10px;padding:10px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;text-decoration:none;font-weight:700}
.badge18{margin-left:8px;padding:2px 8px;border-radius:999px;background:rgba(255,90,120,.18);border:1px solid rgba(255,90,120,.35);font-size:12px}



/* === Mobile-first polish (App vNext) === */
:root{
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --bg:#0b0f17;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.72);
  --muted2:rgba(229,231,235,.52);
  --line:rgba(255,255,255,.12);
  --line2:rgba(255,255,255,.08);
  --accent:#7c3aed;
  --accent2:#06b6d4;
  --accent3:#f97316;
  --warn:#fbbf24;
  --good:#22c55e;
  --shadow: 0 22px 45px rgba(0,0,0,.50);
  --radius: 22px;
  --radius2: 28px;
  --max: 1120px;
}


/* Phone-like layout on desktop too */
.shell{
  max-width: var(--appMax);
  padding: 18px 14px calc(var(--navH) + 30px);
}
.is-admin .shell{
  max-width: 1120px;
  padding-bottom: 64px;
}
.gridlist, .storybar{
  max-width: var(--appMax);
  margin-left:auto;
  margin-right:auto;
}
.section{ margin-top: 14px; }

/* Fixed bottom nav (app feel) */
.bottomnav{
  position: fixed;
  left:0; right:0; bottom:0;
}
.bottomnav__inner{
  max-width: var(--appMax);
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.statsdock{
  bottom: calc(var(--navH) + 10px);
}

/* Footer: compact + branded */
.sitefooter{
  margin: 16px 0 calc(var(--navH) + 22px) 0;
  margin-top: auto;
  padding: 14px;
}
.sitefooter__logo{
  width: 36px; height: 36px;
  border-radius: 12px;
}
.sitefooter__tag{
  max-width: 42ch;
}

/* Dialogs: bottom-sheet on mobile */
.dlg[open]{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 0;
}
.dlg__card{
  width: min(520px, calc(100vw - 16px));
}
@media (max-width: 680px){
  .dlg__card{
    width: 100vw;
    border-radius: 18px 18px 0 0;
    margin: 0;
    max-height: 86vh;
    overflow: auto;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  }
  .dlg__head{
    position: sticky;
    top: 0;
    background: var(--panel);
    margin: -14px -14px 12px;
    padding: 12px 14px 12px;
    border-bottom: 1px solid var(--line2);
    z-index: 2;
  }
}

/* Forms: readable on dark & light */
.field input,
.field textarea,
.field select{
  width:100%;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
}
.field textarea{ min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color: rgba(140,165,255,.55);
  box-shadow: 0 0 0 4px rgba(140,165,255,.12);
}
.field select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.field select option{
  background: #0b1220;
  color: #e9eeff;
}
:root.light .field input,
:root.light .field textarea,
:root.light .field select{
  background: #ffffff;
  color: #0b1020;
  border-color: rgba(20,30,60,.18);
}
:root.light .field select option{
  background: #ffffff;
  color: #0b1020;
}

/* Stack rows nicely on mobile */
@media (max-width: 600px){
  .row{ flex-direction:column; align-items:stretch; gap:10px; }
}

/* Desktop background polish */
@media (min-width: 900px){
  body.app{
    background: radial-gradient(1200px 800px at 20% 0%, rgba(120,170,255,.15), transparent 60%),
                radial-gradient(1200px 800px at 80% 20%, rgba(255,120,200,.10), transparent 55%),
                var(--bg);
  }
}


/* Bottom nav sizing */
.bottomnav__inner{ min-height: var(--navH); align-items:center; }
.bn{ padding: 8px 0; }
.bn span{ font-size: 11px; }


/* --- Layout fixes: sticky footer + 5-icon bottom nav --- */
html,body{height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
main.shell{flex:1;display:flex;flex-direction:column}
.sitefooter{margin-top:auto}

/* Bottom nav: fit 5 icons */
.bottomnav__inner{max-width:560px}
.bn{flex:1;min-width:0}
.bn span{font-size:11px}

/* Dialog fallback styling (when <dialog> unsupported) */
.dlg.is-open{display:flex}
.dlg[open].is-open{display:flex}

/* Compact categories strip */
.catstrip{scroll-margin-top:80px}
.catstrip .chip, .catstrip .pill{white-space:nowrap}

/* Story share card watermark overlay (in UI) */
.storycard{position:relative}
.storycard:after{
  content:"odac5";
  position:absolute;
  right:18px;
  bottom:14px;
  opacity:.12;
  font-weight:800;
  letter-spacing:.6px;
  transform:rotate(-10deg);
  pointer-events:none;
}

/* Toast */
.toast{
  position:fixed; left:50%; bottom:120px; transform:translateX(-50%) translateY(16px);
  padding:10px 14px; border-radius:14px;
  background:rgba(20,24,36,.92);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 55px rgba(0,0,0,.45);
  color:rgba(255,255,255,.92);
  font-size:13px;
  opacity:0; pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  z-index:120;
}
.toast.is-on{opacity:1; transform:translateX(-50%) translateY(0)}
.toast--warn{background:rgba(70,26,26,.92); border-color:rgba(255,180,180,.18)}

/* Toast progress (share premium UX) */
.toast--progress{
  padding: 12px 14px;
}
.toast--progress .toast__row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.toast--progress .toast__spinner{
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.82);
  animation: toastspin .8s linear infinite;
}
@keyframes toastspin{ to{ transform: rotate(360deg); } }

.toast--progress .toast__bar{
  width: 220px;
  max-width: calc(100vw - 60px);
  height: 6px;
  border-radius: 999px;
  overflow:hidden;
  background: rgba(255,255,255,.10);
}
.toast--progress .toast__bar > span{
  display:block;
  height:100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(127,231,255,.95), rgba(255,122,182,.92), rgba(139,125,255,.9));
  animation: toastindet 1.1s ease-in-out infinite;
}
@keyframes toastindet{
  0%{ transform: translateX(-120%); }
  50%{ transform: translateX(40%); }
  100%{ transform: translateX(220%); }
}


/* Prevent overlap with docks */
.shell{padding-bottom:150px}

/* -------- Realistic social feed refresh (IG/Twitter-like) -------- */
:root[data-theme="light"], :root.light{
  background-color: var(--bg);
}
:root.light body,
:root[data-theme="light"] body{
  background: var(--bg);
}

/* Feed becomes a vertical stream (more realistic than card grid) */
.gridlist{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.card.post{
  border-radius: 18px;
  box-shadow: var(--shadow2, var(--shadow));
  border: 1px solid var(--line2);
}

.post__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

.post__title{
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.post__body{
  font-size: 15px;
  line-height: 1.55;
}

.post__foot{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.post__actions{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  align-items:center;
}

.rx{
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.02);
  font-weight: 700;
}
:root.light .rx{ background: rgba(0,0,0,0.02); }
.rx:hover{ transform: translateY(-1px); }
.rx--on, .btn--on{
  border-color: rgba(43,108,255,.45);
  box-shadow: 0 6px 18px rgba(43,108,255,.12);
}

/* Composer (home) */
.composer{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 12px;
  margin: 12px 0 6px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow2, var(--shadow));
}
.composer__avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  opacity: .85;
}
.composer__input{
  flex:1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--muted);
}
.composer__input:hover{ border-color: rgba(43,108,255,.25); }
.composer__btn{ border-radius: 999px; padding: 10px 14px; }

/* Comments: realistic identity chips */
.comment{
  border: 1px solid var(--line2);
}
.comment__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}
.comment__who{ display:flex; align-items:center; gap:10px; }
.anonAvatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .3px;
}
.anonName{ font-weight: 800; }
.anonTag{ font-weight: 800; opacity:.75; }
.badgeOp{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(43,108,255,.08);
}

/* Comment reactions bar */
.cRx{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-top: 10px;
}

/* Mobile tweaks */
@media (max-width: 560px){
  .shell{ padding-left: 12px; padding-right: 12px; }
  .post__actions{ gap: 6px; }
  .rx{ padding: 7px 9px; }
}


/* Story gender badge */
.storychip__ring{position:relative}
.storychip__badge{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:22px;height:22px;
  border-radius:999px;
  display:grid;place-items:center;
  font-weight:900;
  font-size:14px;
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.gbadge{
  display:inline-grid;place-items:center;
  width:22px;height:22px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.15);
  margin-right:6px;
}
:root[data-theme="light"] .gbadge{background:rgba(15,23,42,.06)}
/* ANTI MOBILE HORIZONTAL SCROLL FIX */
html, body{
  overflow-x:hidden;
}
*{
  max-width:100%;
}
/* =========================================================
   MOBILE SAFETY FIX – NO HORIZONTAL SCROLL
   EN ALTA EKLENMELİ
   ========================================================= */

/* Global taşma kilidi */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
  overscroll-behavior-x:none;
}

/* Tüm bloklar mobilde taşmasın */
img,
video,
canvas,
iframe,
svg{
  max-width:100%;
  height:auto;
}

/* Flex ve grid çocukları için kritik fix */
*{
  min-width:0;
}

/* Uzun text / link / code taşma önlemi */
p,
h1,h2,h3,h4,h5,h6,
a,
span,
div,
pre,
code{
  word-break:break-word;
  overflow-wrap:anywhere;
}

/* Fixed / absolute elemanlar güvenliği */
.topbar,
.bottomnav,
.storyOverlay{
  left:0;
  right:0;
  max-width:100vw;
}

/* Ana container güvenliği */
main,
main.shell,
.gridlist,
.card,
.post,
.composer{
  max-width:100%;
  overflow-x:hidden;
}

/* iOS safe-area + viewport bug fix */
@supports (-webkit-touch-callout:none){
  body{
    min-height:-webkit-fill-available;
  }
}

/* Küçük ekranlar için ekstra sıkılaştırma */
@media (max-width:480px){
  body{
    font-size:15px;
  }

  .btn,
  .chip,
  .rx{
    max-width:100%;
  }
}
