/* MadeByDMK: modern dark, one warm accent. */
:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --surface: #15171c;
  --surface-2: #1b1e24;
  --border: #262a32;
  --text: #f3f3f4;
  --muted: #9ba1ac;
  --accent: #ff5b24;
  --accent-soft: rgba(255, 91, 36, 0.14);
  --plus: #4ad295;
  --minus: #ff7a7a;
  --radius: 16px;
  --font: 'Inter', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Noto Sans Georgian', var(--font);
  /* theme-dependent extras */
  --header-bg: rgba(13, 14, 17, 0.8);
  --glow: rgba(255, 91, 36, 0.10);
  --lead: #c9ccd3;
  --soft-text: #d5d8de;
  --hover-border: #3a3f49;
  --yt-end: #1d1612;
  --accent-text: var(--accent);
  --demo-bg: #3a2a0c; --demo-text: #ffd27a; --demo-border: #6b4f16;
}

/* Light theme: same layout, same orange, light surfaces. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0efeb;
  --border: #e2e0da;
  --text: #16181d;
  --muted: #5d636d;
  --accent-soft: rgba(255, 91, 36, 0.12);
  --plus: #138a55;
  --minus: #c73a3a;
  --header-bg: rgba(246, 245, 242, 0.85);
  --glow: rgba(255, 91, 36, 0.12);
  --lead: #3b4049;
  --soft-text: #2b2f36;
  --hover-border: #c9c6be;
  --yt-end: #fff3ec;
  --accent-text: #c2410c;
  --demo-bg: #fff4d6; --demo-text: #6b4a00; --demo-border: #f0d48a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  background-image: radial-gradient(900px 500px at 85% -10%, var(--glow), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.accent { color: var(--accent-text); }
.plus { color: var(--plus); }
.minus { color: var(--minus); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 32px 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h1, .section-head h2 { margin: 0; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 18px; }
.brand b { color: var(--accent-text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.brand.small { font-size: 16px; }
.brand.small .brand-mark { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover, .nav a.on { color: var(--text); background: var(--surface); }
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 32px 0; }
.footer-row { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: 600 15px var(--font); text-decoration: none; cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.btn:hover { background: #ff6e3d; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-wide { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; min-height: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
a.card { text-decoration: none; display: block; transition: border-color 150ms ease, transform 150ms ease; }
a.card:hover { border-color: var(--hover-border); transform: translateY(-2px); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { color: var(--text); display: block; margin-bottom: 6px; font-size: 18px; }
.tag { display: inline-block; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.alert { background: var(--accent-soft); border: 1px solid rgba(255, 91, 36, 0.4); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.alert.ok { background: rgba(74, 210, 149, 0.12); border-color: rgba(74, 210, 149, 0.4); }

/* hero */
.hero { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 24px; align-items: center; }
.lead { font-size: 18px; color: var(--lead); max-width: 560px; }
.hero-card { padding: 24px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 80px; padding-bottom: 48px; }
}

/* counter */
.counter .amount { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.counter .of { color: var(--muted); font-size: 0.45em; font-weight: 500; letter-spacing: 0; }
.counter-big .amount { font-size: clamp(48px, 11vw, 112px); }
.counter .sub { margin-top: 6px; }
.bar { height: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-top: 20px; }
.bar span { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, #ff8a3d, var(--accent)); border-radius: 999px; transition: width 600ms ease; }
.bar-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pulse.on { background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 91, 36, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 91, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 36, 0); } }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.mini-stats .k, .stat .k { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mini-stats .v { font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }

/* tracker */
.tracker-hero { padding-top: 48px; padding-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 16px; }
.stat .v { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat small { display: block; font-size: 12px; font-weight: 400; font-family: var(--font); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(6, 1fr); } .admin-grid + h2 { margin-top: 24px; } }
@media (max-width: 480px) { .stats.three { grid-template-columns: 1fr; } }

.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-narrow { display: none; }
@media (max-width: 600px) { .chart-wide { display: none; } .chart-narrow { display: block; } }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 12px var(--font); }
.chart .pace { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 6; fill: none; }
.chart .line { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent-soft); }
.chart .dot { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.key { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 8px; border-top: 3px solid var(--accent); }
.key-pace { border-top: 2px dashed var(--muted); }

.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
a.card.day { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.day-num { display: grid; place-items: center; min-width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1; }
.day-num span { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; }
.day-num b { font-family: var(--display); font-size: 20px; }
.day-body { flex: 1; min-width: 0; }
.day-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-money { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.day-money .minus { font-size: 13px; font-weight: 500; }

.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 20px; min-height: 44px; line-height: 44px; }
.back:hover { color: var(--text); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose p { color: var(--soft-text); }
.prose p:last-child { margin-bottom: 0; }
.ledger { list-style: none; margin: 0 0 16px; padding: 4px 20px; }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.ledger li:last-child { border-bottom: 0; }
.row-end { display: flex; align-items: center; gap: 12px; }
.pager { display: flex; justify-content: space-between; margin-top: 24px; }
.pager a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.pager a:hover { color: var(--text); }

/* shop */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.product { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.product-buy { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--display); font-weight: 700; font-size: 24px; }
.yt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; background: linear-gradient(120deg, var(--surface), var(--yt-end)); }
.yt h2 { margin-top: 0; }

/* checkout */
.checkout { padding: 28px; }
.checkout h1 { font-size: 32px; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.checkout form { margin: 16px 0 12px; }
.checkout .cta-row form { margin: 0; }

/* forms */
.admin-grid { display: grid; gap: 16px; margin: 16px 0 24px; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.form { display: grid; gap: 14px; }
.form h2 { margin: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--soft-text); }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); font: 15px var(--font);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .nav a:not(.btn) { padding: 10px 8px; font-size: 14px; }
  .nav a[href$="#shop"] { display: none; }
  .brand > span:last-child { font-size: 16px; }
  .counter .amount { font-size: 34px; }
  .counter-big .amount { font-size: 52px; }
  a.card.day { gap: 12px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- legal + checkout additions ---------- */
.demo-banner { background: var(--demo-bg); color: var(--demo-text); text-align: center; font-weight: 600; font-size: 14px; padding: 10px 16px; border-bottom: 1px solid var(--demo-border); }
.legal { line-height: 1.7; }
.legal a { color: var(--muted); }
.ka-title { font-family: var(--display); font-size: 20px; margin-top: -6px; }
.steps { margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: var(--surface-2); }
.steps summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.steps ol { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; font-size: 14px; }
.buy-form { margin-top: 16px; }
.buy-form a, .checkout a:not(.btn), .legal-doc a { color: var(--text); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.btn-wide { min-height: 56px; flex-direction: column; gap: 2px; line-height: 1.25; padding: 8px 16px; text-align: center; }
.btn-ka { font-size: 13px; font-weight: 500; opacity: 0.95; }
.errors { margin: 0; padding-left: 18px; }
.order-summary { padding: 4px 16px; margin: 16px 0; }
.order-summary li span:first-child { color: var(--muted); }
.order-summary b { font-family: var(--display); }
.lang-switch { display: flex; gap: 6px; margin-bottom: 16px; }
.lang-switch a { text-decoration: none; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center; font-weight: 500; }
.lang-switch a.on { color: var(--text); background: var(--surface); border-color: var(--hover-border); }
.legal-doc h2 { margin-top: 20px; font-size: 20px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc ul { margin: 0 0 12px; padding-left: 20px; color: var(--soft-text); display: grid; gap: 6px; }
.video-facade { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px; background: var(--surface); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.grid + .fine { margin-top: 12px; }

/* ---------- theme + language switchers ---------- */
.switches { display: flex; align-items: center; gap: 6px; }
.switch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font: 600 13px var(--font); cursor: pointer; }
.switch:hover { border-color: var(--hover-border); }
.switch svg { width: 18px; height: 18px; }
.switch .on { color: var(--accent-text); }
.switch .sep { color: var(--border); }
.theme-switch .icon-sun { display: none; }
:root[data-theme="light"] .theme-switch .icon-sun { display: block; }
:root[data-theme="light"] .theme-switch .icon-moon { display: none; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; }
@media (max-width: 560px) {
  .header-row { gap: 6px; }
  .nav { gap: 2px; }
  .switch { min-width: 40px; padding: 0 8px; }
  .nav .btn-sm { padding: 0 10px; }
}
@media (max-width: 400px) {
  .site-header .brand > span:last-child { display: none; }
}

/* ---------- studio (website packages + portfolio) ---------- */
.studio-hero { padding-top: 56px; padding-bottom: 8px; }
.studio-hero h1, .studio-hero .lead { max-width: 760px; }
.packages { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .packages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .packages { grid-template-columns: repeat(4, 1fr); } }
.package { display: flex; flex-direction: column; gap: 14px; }
.package.featured { border-color: var(--accent); }
.package .badge { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent-text); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; }
.package h3 { margin: 0; }
.package .price { font-size: 28px; }
.package ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--soft-text); flex: 1; }
.package li { padding-left: 22px; position: relative; }
.package li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.package .btn { width: 100%; }
.work { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work { grid-template-columns: repeat(2, 1fr); } }
.work-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.work-body { padding: 18px 20px 20px; }
.work-body h3 { margin: 6px 0 6px; }
.work-body p { margin: 0; color: var(--muted); font-size: 15px; }
.steps-row { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps-row { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font: 700 15px var(--display); margin-bottom: 10px; }
.step b { display: block; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.price-range { font-family: var(--display); font-weight: 700; font-size: 22px; }
.price-range small { font-size: 13px; color: var(--muted); font-weight: 500; font-family: var(--font); display: block; }
.check-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--soft-text); }
.check-list li { padding-left: 22px; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.product > .btn { align-self: flex-start; }

/* ---------- motion: entrance + scroll reveal (off for reduced motion, see live.js) ---------- */
@keyframes dmk-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dmk-glow { 0%, 100% { opacity: .55; transform: translate3d(0, 0, 0) scale(1); } 50% { opacity: .9; transform: translate3d(-30px, 10px, 0) scale(1.08); } }
@keyframes dmk-spin { to { transform: rotate(360deg); } }
@keyframes dmk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 36, 0.0); } 50% { box-shadow: 0 0 0 6px rgba(255, 91, 36, 0.10); } }
.anim-up { animation: dmk-up 600ms cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms cubic-bezier(.22, 1, .36, 1), transform 600ms cubic-bezier(.22, 1, .36, 1), border-color 200ms ease, box-shadow 200ms ease; transition-delay: var(--d, 0ms); }
.js-motion .reveal.in { opacity: 1; transform: none; }
.js-motion .reveal.in.done { transition-delay: 0ms; }
.studio-hero { position: relative; }
.hero-glow { position: absolute; z-index: -1; right: 4%; top: 10px; width: min(420px, 80vw); height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 36, 0.22), transparent); filter: blur(30px); animation: dmk-glow 9s ease-in-out infinite; pointer-events: none; }
.package, .work-item, .step, .plan, .badge-card, .faq-item { transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.package:hover, .step:hover, .plan:hover, .badge-card:hover { transform: translateY(-4px); border-color: var(--hover-border); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55); }
.package.featured { animation: dmk-pulse 3.2s ease-in-out infinite; }
.package.featured:hover { border-color: var(--accent); }
.package-top { min-height: 26px; }
.package .badge.soft { color: var(--muted); border-color: var(--border); }
.work-shot { overflow: hidden; border-bottom: 1px solid var(--border); }
.work-shot img { border-bottom: 0; transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
.work-item:hover .work-shot img { transform: scale(1.035); }
.work-item:hover { border-color: var(--hover-border); }
.work-link { margin-top: 10px; }
.fine { margin-top: 12px; }
@media (min-width: 760px) { .steps-row.three { grid-template-columns: repeat(3, 1fr); } }
.pay-help { margin-top: 14px; max-width: 820px; }

/* extras: hosting plan + badge */
.extras-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .extras-grid { grid-template-columns: 1.6fr 1fr; } }
.plan { border-color: rgba(255, 91, 36, 0.45); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.plan-head h3 { margin: 0 0 6px; font-size: 22px; }
.plan-head > div:first-child { flex: 1 1 280px; }
.plan-price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.plan .price, .badge-card .price { font-size: 30px; }
.plan-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; grid-template-columns: 1fr; font-size: 14px; color: var(--soft-text); }
@media (min-width: 640px) { .plan-list { grid-template-columns: 1fr 1fr; } }
.plan-list li, .plain-points li { padding-left: 22px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; line-height: 1.4; }
.chip.on { color: var(--plus); border-color: rgba(74, 210, 149, 0.45); background: rgba(74, 210, 149, 0.10); }
.badge-card { display: flex; flex-direction: column; gap: 10px; }
.badge-card h3, .badge-card p { margin: 0; }
.badge-demo { position: relative; height: 120px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.badge-demo-site { position: absolute; inset: 14px 14px 46px; display: grid; gap: 8px; align-content: start; }
.badge-demo-site i { display: block; height: 10px; border-radius: 6px; background: var(--border); }
.badge-demo-site i:first-child { width: 55%; height: 14px; }
.badge-demo-site i:nth-child(2) { width: 85%; }
.badge-demo-site i:nth-child(3) { width: 70%; }
.dmk-badge-preview { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); color: #f3f3f4; background: #0d0e11; border: 1px solid #2c3039; padding: 5px 10px 5px 5px; border-radius: 999px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6); }
.dmk-badge-preview b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: #ff5b24; color: #fff; font-size: 11px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { padding: 0; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 600 20px var(--display); color: var(--accent-text); transition: transform 200ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq-item[open] { border-color: var(--hover-border); }

/* checkout extras */
.extras { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 12px; }
.extras legend { font-weight: 600; padding: 0 6px; font-size: 14px; }
.check.extra > span { display: grid; gap: 2px; }
.check.extra b { font-weight: 600; }
.check.extra small { color: var(--muted); font-size: 13px; }
.extra-price { color: var(--accent-text); white-space: nowrap; }
.bump { display: inline-block; animation: dmk-up 300ms ease; }

/* email code */
.verify { text-align: center; }
.verify .form { text-align: left; }
.verify-icon { width: 56px; height: 56px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); font-size: 26px; }
.otp-input { text-align: center; font: 700 28px var(--display); letter-spacing: 0.4em; padding-left: 0.4em; }
.otp-timer { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.otp-timer b { color: var(--text); font-variant-numeric: tabular-nums; }
.otp-timer.is-expired { color: var(--minus); }
.otp-timer.low b { color: var(--minus); }
.resend { text-align: center; margin-top: 6px; }
.center { text-align: center; }

/* loading screen */
.loading-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--header-bg); backdrop-filter: blur(8px); opacity: 0; transition: opacity 200ms ease; }
.loading-screen.show { opacity: 1; }
.loading-box { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 24px; max-width: 320px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: dmk-spin 800ms linear infinite; }
.loading-box p { margin: 0; font-weight: 600; }

/* client account */
.account h2 { margin-top: 32px; }
.project { margin-bottom: 16px; }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.project-head h3 { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 16px; }
.facts div { display: grid; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 14px; }
.project-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .project-grid { grid-template-columns: 1fr 2fr; } }
.sub-card { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; padding: 16px; min-width: 0; }
.sub-card h3 { margin: 0 0 8px; font-size: 16px; }
.sub-card h3 + p { margin-top: 0; }
.change-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.meter { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.meter b { font: 700 22px var(--display); }
.meter b span { font-size: 14px; color: var(--muted); font-weight: 500; }
.meter small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.requests { padding: 4px 14px; margin-top: 8px; }
.cancel-row { margin: 16px 0 0; }
.link-danger { color: var(--minus); font-size: 14px; }
.btn-danger { background: transparent; border-color: var(--minus); color: var(--minus); }
.btn-danger:hover { background: rgba(255, 122, 122, 0.12); }
.plain-points { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: 14px; color: var(--soft-text); }
.plain-points li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.vps-note { margin-top: 24px; max-width: 760px; }
.admin-projects { display: grid; gap: 12px; }
.project-admin p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; }
  .hero-glow, .package.featured, .spinner { animation: none !important; }
}
.badge-card .price small { font: 500 14px var(--font); }
.project-grid { align-items: start; }
.sub-card h3:not(:first-child) { margin-top: 18px; }

/* ---------- home: live counter first ---------- */
.live-hero { padding-top: 40px; padding-bottom: 8px; position: relative; }
.live-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 900px) { .live-grid { grid-template-columns: 1.25fr 1fr; } }
.live-money, .live-time { display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none; }
.live-money { border-color: rgba(255, 91, 36, 0.45); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }
a.live-money:hover { border-color: var(--accent); }
.live-money .k, .live-time .k { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.big-amount { font: 700 clamp(48px, 9vw, 92px)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.live-money .bar { margin: 4px 0; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.countdown.done { grid-template-columns: 1fr; }
.cd-cell { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 6px 10px; text-align: center; display: grid; gap: 2px; }
.cd-cell b { font: 700 clamp(30px, 5vw, 52px)/1 var(--display); font-variant-numeric: tabular-nums; }
.cd-cell small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.live-time .muted.small { margin-top: auto; }
.scroll-cue { display: grid; place-items: center; width: 44px; height: 44px; margin: 18px auto 0; border-radius: 50%; border: 1px solid var(--border); }
.scroll-cue span { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); animation: dmk-bob 1.8s ease-in-out infinite; }
@keyframes dmk-bob { 0%, 100% { transform: rotate(45deg) translate(-2px, -2px); } 50% { transform: rotate(45deg) translate(2px, 2px); } }
.about h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.about .accent { color: var(--accent-text); }
@media (max-width: 560px) {
  .live-money, .live-time { padding: 18px; }
  .countdown { gap: 6px; }
  .cd-cell { padding: 10px 2px 8px; }
}

/* ---------- header account icon ---------- */
.account-link svg { width: 18px; height: 18px; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--surface); border: 1px solid var(--hover-border); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); animation: dmk-up 400ms ease both; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 14px; color: var(--soft-text); }
.cookie-banner a:not(.btn) { color: var(--text); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- auth + support ---------- */
.auth .form small { display: block; margin-top: 4px; font-weight: 400; font-size: 12.5px; }
.auth-links { margin: 12px 0 0; font-size: 14px; text-align: center; }
.auth-links a, .login-hint a { color: var(--accent-text); font-weight: 600; }
.login-hint { margin: 16px 0 0; font-size: 14px; }
.code-login { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 14px; }
.code-login summary { cursor: pointer; color: var(--muted); min-height: 32px; }
.amounts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amounts legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.amount-pill { position: relative; cursor: pointer; }
.amount-pill input { position: absolute; opacity: 0; inset: 0; }
.amount-pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font: 700 16px var(--display); }
.amount-pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.amount-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.autopay { display: grid; gap: 10px; }
.autopay p { margin: 0; }
.support-row { margin-top: 24px; }

/* ---------- stats dashboard ---------- */
.range { display: flex; gap: 6px; flex-wrap: wrap; }
.range .chip { text-decoration: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data pre, .journey pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--muted); max-height: 160px; overflow: auto; }
.daily-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; margin: 16px 0; padding: 16px; }
.day-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.day-bar span { width: 100%; max-width: 28px; background: var(--accent); border-radius: 6px 6px 2px 2px; }
.day-bar small { font-size: 10px; color: var(--muted); }
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.journey li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 14px; }
.journey .j-error { border-color: var(--minus); }
.journey .j-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.stats-body h2 { margin-top: 32px; }
.v.minus { color: var(--minus); }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }
a.card.live-money { display: flex; }
@media (max-width: 560px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; gap: 10px; }
  .cookie-banner p { font-size: 12.5px; line-height: 1.45; flex-basis: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- header v2: YouTube logo, theme switch, Log in / Register ---------- */
.nav { gap: 6px; }
.yt-icon { display: inline-grid; place-items: center; width: 44px; height: 40px; border-radius: 10px; transition: transform 150ms ease, background 150ms ease; }
.yt-icon svg { width: 30px; height: 22px; }
.yt-icon:hover { background: var(--surface); transform: translateY(-1px); }
.theme-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; text-decoration: none; }
.tt-track { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 62px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); transition: background 250ms ease, border-color 250ms ease; }
.tt-track svg { width: 15px; height: 15px; position: relative; z-index: 1; color: var(--muted); display: block !important; transition: color 250ms ease; }
.tt-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 8px rgba(255, 91, 36, 0.45); transition: transform 280ms cubic-bezier(.22, 1, .36, 1); }
/* dark = knob on the moon (right), light = knob on the sun (left) */
:root:not([data-theme="light"]) .tt-knob { transform: translateX(30px); }
:root:not([data-theme="light"]) .tt-track .icon-moon { color: #fff; }
:root[data-theme="light"] .tt-track .icon-sun { color: #fff; }
.theme-toggle:hover .tt-track { border-color: var(--hover-border); }
.theme-toggle:focus-visible { outline: none; }
.theme-toggle:focus-visible .tt-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-chip { gap: 8px; padding-left: 6px; }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px var(--display); }
@media (max-width: 760px) { .nav a[href$="#shop"] { display: none; } }
@media (max-width: 560px) {
  .nav { gap: 4px; }
  .tt-track { width: 54px; padding: 0 6px; }
  :root:not([data-theme="light"]) .tt-knob { transform: translateX(22px); }
  .yt-icon { width: 36px; }
  .yt-icon svg { width: 26px; height: 19px; }
  .lang-switch-btn { min-width: 0; padding: 0 6px; }
}
@media (max-width: 400px) { .nav a[href$="/100k"] { display: none; } }

/* ---------- home: challenge info first ---------- */
.live-hero { isolation: isolate; }
.hero-blobs { position: absolute; inset: -40px 0 auto; height: 520px; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.hero-blobs span:first-child { width: 460px; height: 340px; right: 4%; top: 10px; background: radial-gradient(closest-side, rgba(255, 91, 36, 0.45), transparent); animation: dmk-drift-a 14s ease-in-out infinite; }
.hero-blobs span:last-child { width: 380px; height: 300px; left: -6%; top: 160px; background: radial-gradient(closest-side, rgba(255, 166, 61, 0.28), transparent); animation: dmk-drift-b 18s ease-in-out infinite; }
@keyframes dmk-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 30px) scale(1.12); } }
@keyframes dmk-drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -20px) scale(1.08); } }
:root[data-theme="light"] .hero-blobs span { opacity: 0.4; }
.challenge-intro { max-width: 860px; margin: 4px 0 26px; }
.challenge-intro h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; margin: 6px 0 14px; letter-spacing: -0.02em; }
.challenge-intro h1 .accent { color: var(--accent-text); display: inline-block; }
.challenge-intro .lead { max-width: 720px; margin: 0 0 18px; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rule { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; line-height: 1.35; animation: dmk-up 600ms cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); transition: transform 200ms ease, border-color 200ms ease; }
.rule:hover { transform: translateY(-3px); border-color: rgba(255, 91, 36, 0.5); }
.rule-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); }
.rule-icon svg { width: 20px; height: 20px; }
.rule:nth-child(2) .rule-icon { background: var(--accent); color: #fff; }

/* ---------- livelier details (still one warm accent) ---------- */
.bar { position: relative; overflow: hidden; }
.bar span { position: relative; background: linear-gradient(90deg, #ff5b24, #ff8a3d); box-shadow: 0 0 14px rgba(255, 91, 36, 0.55); }
.bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-100%); animation: dmk-shine 2.6s ease-in-out infinite; }
@keyframes dmk-shine { 60%, 100% { transform: translateX(100%); } }
.live-money { position: relative; overflow: hidden; }
.live-money::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 36, 0.28), transparent); pointer-events: none; animation: dmk-glow 7s ease-in-out infinite; }
.big-amount { position: relative; text-shadow: 0 6px 40px rgba(255, 91, 36, 0.25); }
.cd-cell { position: relative; overflow: hidden; transition: border-color 200ms ease; }
.cd-cell:last-child { border-color: rgba(255, 91, 36, 0.45); }
.cd-cell:last-child b { color: var(--accent-text); }
.cd-cell b.tick { animation: dmk-tick 400ms ease; }
@keyframes dmk-tick { 0% { transform: translateY(-6px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.card { transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
.product:hover, .live-time:hover { border-color: rgba(255, 91, 36, 0.45); box-shadow: 0 18px 50px -28px rgba(255, 91, 36, 0.45); }
.btn { box-shadow: 0 8px 22px -12px rgba(255, 91, 36, 0.7); }
.btn-ghost, .btn-danger { box-shadow: none; }
.pulse.on, .pulse { box-shadow: 0 0 0 0 rgba(255, 91, 36, 0.6); }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; animation: dmk-live 1.8s ease-out infinite; }
@keyframes dmk-live { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 36, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(255, 91, 36, 0); } }

/* ---------- cookie settings page ---------- */
.cookie-cards { display: grid; gap: 14px; margin: 20px 0; }
.cookie-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-card h2 { margin: 0; font-size: 20px; }
.cookie-card.is-on { border-color: rgba(74, 210, 149, 0.45); }
.cookies-page .lead { margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .hero-blobs span, .bar span::after, .live-money::before, .eyebrow .pulse, .rule, .cd-cell b.tick { animation: none !important; }
}
.challenge-intro { max-width: none; }
.challenge-intro h1, .challenge-intro .lead { max-width: 900px; }
.eyebrow .pulse { margin-right: 4px; flex: none; }

/* ---------- studio: quick info cards under the hero ---------- */
.quick-info { display: grid; gap: 10px; grid-template-columns: 1fr; padding-top: 18px; }
@media (min-width: 640px) { .quick-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .quick-info { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
a.card.quick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; }
a.card.quick:hover { border-color: rgba(255, 91, 36, 0.5); transform: translateY(-3px); box-shadow: 0 16px 40px -26px rgba(255, 91, 36, 0.5); }
.quick-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.quick-icon svg { width: 20px; height: 20px; }
.quick:first-child .quick-icon { background: var(--accent); color: #fff; }
.quick-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.quick-text b { font-size: 15px; }
.quick-text small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.quick-arrow { color: var(--muted); transition: transform 200ms ease, color 200ms ease; }
.quick:hover .quick-arrow { transform: translateX(4px); color: var(--accent-text); }
.studio-hero { padding-bottom: 0; }

/* ---------- header: Socials menu ---------- */
.socials-menu { position: relative; }
.socials-menu summary { list-style: none; cursor: pointer; }
.socials-menu summary::-webkit-details-marker { display: none; }
.socials-btn { gap: 8px; }
.socials-stack { display: inline-flex; }
.socials-stack span { display: grid; width: 22px; height: 22px; margin-left: -6px; border-radius: 7px; box-shadow: 0 0 0 2px var(--surface); overflow: hidden; }
.socials-stack span:first-child { margin-left: 0; }
.socials-stack svg, .s-icon svg { width: 100%; height: 100%; display: block; }
.socials-menu[open] .socials-btn { border-color: var(--accent); }
.socials-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 240px; padding: 8px; background: var(--surface); border: 1px solid var(--hover-border); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); animation: dmk-up 200ms ease both; }
.socials-title { margin: 4px 8px 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.socials-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.socials-pop a:hover, .socials-pop a:focus-visible { background: var(--surface-2); }
.s-icon { flex: none; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; }
.socials-pop a > span:nth-child(2) { display: grid; flex: 1; line-height: 1.25; }
.socials-pop small { color: var(--muted); font-size: 12px; }
.s-arrow { color: var(--muted); }
.footer-social { display: inline-flex; align-items: center; gap: 6px; }
.footer-social svg { width: 18px; height: 18px; border-radius: 5px; }
@media (max-width: 560px) { .socials-pop { right: -60px; } }

/* same-page jumps: land below the sticky header, flash the target */
html { scroll-padding-top: 90px; }
[id] { scroll-margin-top: 90px; }
@keyframes dmk-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 36, 0.0); border-color: var(--accent); } 30% { box-shadow: 0 0 0 6px rgba(255, 91, 36, 0.35); border-color: var(--accent); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 36, 0); } }
.flash { animation: dmk-flash 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 2px solid var(--accent); } }

/* admin: upload code, business form */
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-btn { cursor: pointer; }
.upload-btn input { display: none; }
.business-form { margin: 24px 0; }
.business-form .row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .business-form .row { grid-template-columns: 1fr 1fr; } }
.delete-tests { margin-top: 12px; border-color: rgba(255, 122, 122, 0.4); }
.ledger .chip { margin-left: 6px; }

/* challenge rules heading + numbered labels */
.rules-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 20px; text-transform: uppercase; letter-spacing: 0.08em; }
.rules-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; font: 700 15px var(--display); letter-spacing: 0; }
ol.rules { list-style: none; }
.rule-text { display: grid; gap: 2px; }
.rule-text small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-text); }

/* phones: header fits, socials menu stays on screen */
@media (max-width: 560px) {
  .nav a[href$="/100k"] { display: none; }
  .socials-pop { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
  .site-header .brand > span:last-child { display: none; }
}
@media (min-width: 380px) and (max-width: 560px) { .site-header .brand > span:last-child { display: inline; } }
.socials-menu:not([open]) .socials-pop { display: none; }
