:root {
  --bg: #0d0f12;
  --surface: #15181d;
  --surface-2: #1d2229;
  --surface-3: #252b34;
  --line: #303743;
  --text: #f5f6f8;
  --muted: #a5acb8;
  --primary: #c6283d;
  --primary-2: #e05261;
  --cyan: #d94b5a;
  --yellow: #d9a441;
  --danger: #fb7185;
  --shadow: 0 16px 42px rgba(0, 0, 0, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width:100%; overflow-x:hidden; }
body { max-width:100%; margin: 0; overflow-x:hidden; background: radial-gradient(circle at 82% -15%, rgba(198, 40, 61, .18) 0, transparent 28%), linear-gradient(145deg, #171a1f 0%, #0d0f12 48%, #090a0c 100%); color: var(--text); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 36%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.shell { min-height: 100vh; }
.app-loading { display:grid; min-height:100vh; place-items:center; padding:24px; color:#687181; background:#f5f6f8; font-weight:700; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 5vw; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(13,15,18,.92); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand-logo-full { display: block; width: 90px; height: 60px; padding: 0; border: 0; border-radius: 0; object-fit: contain; background: transparent; filter: drop-shadow(0 2px 3px rgba(198,40,61,.22)); }
.brand-fallback-text { display: flex; flex-direction: column; font-weight: 800; }
.brand-fallback-text[hidden] { display: none !important; }
.brand-mark-wrap { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; overflow: hidden; background: #b51f34; box-shadow: 0 6px 16px rgba(181,31,52,.22); }
.brand-mark { display: block; width: 100%; height: 100%; border: 0; border-radius: 9px; object-fit: cover; }
.brand-mark-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 22px; font-weight: 800; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 7px; }
.nav a, .nav button { color: var(--muted); padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; }
.nav a:hover, .nav button:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.top-actions { display: flex; gap: 8px; }
.mobile-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-2); transition: .2s ease; }
.btn:hover { transform: translateY(-1px); border-color: #465470; }
.btn.primary { border-color: transparent; background: var(--primary); box-shadow: 0 8px 18px rgba(198,40,61,.2); }
.btn.ghost { background: transparent; }
.btn.success { background: rgba(45,212,191,.14); border-color: rgba(45,212,191,.35); color: #86f7e8; }
.btn.danger { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.3); color: #fecdd3; }
.btn.small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }

.container { width: min(1180px, 90vw); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 660px; gap: 60px; padding: 80px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #c9c1ff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--primary); box-shadow: 0 0 0 5px rgba(198,40,61,.1); }
h1 { margin: 18px 0; max-width: 700px; font-size: clamp(42px, 6vw, 74px); line-height: .98; letter-spacing: -.07em; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.05em; }
h3 { margin: 0; letter-spacing: -.03em; }
p { color: var(--muted); line-height: 1.7; }
.hero p { max-width: 600px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, #20242b, #14171b); box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%; background: rgba(198,40,61,.12); filter: blur(18px); }
.window-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.window-dot { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }.window-dot:nth-child(2) { background: #fbbf24; }.window-dot:nth-child(3) { background: #34d399; }
.mock-grid { display: grid; grid-template-columns: 130px 1fr; min-height: 330px; gap: 16px; }
.mock-sidebar, .mock-main { border: 1px solid rgba(255,255,255,.07); border-radius: 15px; background: rgba(8,11,18,.45); padding: 14px; }
.mock-sidebar span { display: block; height: 10px; width: 75%; margin: 13px 0; border-radius: 5px; background: #4a2028; }.mock-sidebar span.active { width: 92%; background: var(--primary); }
.mock-main .chart { height: 135px; margin: 18px 0; border-radius: 10px; background: linear-gradient(150deg, rgba(198,40,61,.18), rgba(255,255,255,.025)); position: relative; overflow: hidden; }.chart::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(160deg, transparent 25%, rgba(224,82,97,.68) 26% 28%, transparent 29% 47%, rgba(198,40,61,.72) 48% 50%, transparent 51%); }
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.mock-cards div { height: 60px; border-radius: 10px; background: #202a3b; }

.section { padding: 85px 0; }.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }.section-head p { max-width: 520px; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 > *, .grid-4 > *, .dashboard-grid > *, .form-grid > *, .page-title > div, .section-head > div { min-width:0; max-width:100%; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,21,31,.8); }.card:hover { border-color: #465470; }.card p { margin-bottom: 0; font-size: 14px; }
.icon-box { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 10px; color: #f08a96; background: rgba(198,40,61,.13); font-size: 20px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16,21,31,.7); }.stat strong { display: block; margin-top: 8px; font-size: 27px; }.stat span { color: var(--muted); font-size: 13px; }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 320px; }.price-card.featured { border-color: rgba(198,40,61,.7); box-shadow: 0 12px 30px rgba(0,0,0,.2); }.price-card .price { margin: 18px 0; font-size: 38px; font-weight: 800; letter-spacing: -.06em; }.price-card ul { flex: 1; padding: 0; margin: 0; list-style: none; }.price-card li { padding: 8px 0; color: var(--muted); font-size: 14px; }.price-card li::before { content: "✓"; margin-right: 8px; color: var(--cyan); }
.badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 99px; color: #c9c1ff; background: rgba(124,92,255,.15); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.faq { display: grid; gap: 9px; max-width: 800px; margin: auto; }.faq details { padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.faq summary { cursor: pointer; font-weight: 700; }.faq p { margin-bottom: 0; font-size: 14px; }
.footer { margin-top: 50px; padding: 45px 0; border-top: 1px solid var(--line); }.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }.footer a { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; }.footer a:hover { color: var(--text); }

.page { padding: 55px 0 90px; }.page-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }.page-title p { margin-bottom: 0; }
.wizard { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }.steps { align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.step { display: flex; gap: 12px; align-items: center; padding: 13px 8px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.06); }.step:last-child { border-bottom: 0; }.step-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }.step.active { color: var(--text); }.step.active .step-number { border-color: var(--primary); background: var(--primary); }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }.choice { min-height: 135px; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-2); }.choice:hover, .choice.selected { border-color: var(--primary); background: rgba(198,40,61,.1); box-shadow: inset 0 0 0 1px rgba(224,82,97,.1); }.choice .choice-icon { font-size: 25px; }.choice h3 { margin-top: 14px; }.choice p { margin: 5px 0 0; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }.field { display: grid; gap: 7px; }.field.full { grid-column: 1 / -1; }.field label { color: #c4cad6; font-size: 13px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--text); background: #0c111a; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }.wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }

.dashboard-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }.side { padding: 24px 16px; border-right: 1px solid var(--line); background: rgba(12,16,24,.82); }.side-label { margin: 17px 10px 8px; color: #677288; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.side a, .side-logout { display: flex; gap: 10px; align-items: center; width: 100%; padding: 11px 12px; margin: 3px 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 14px; text-align: left; }.side a.active, .side a:hover, .side-logout:hover { color: var(--text); background: var(--surface-2); }.dashboard-main { padding: 34px min(5vw, 55px) 80px; }.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }.welcome p { margin: 5px 0 0; }.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; margin-top: 16px; }.table-wrap { overflow-x: auto; }.table { width: 100%; border-collapse: collapse; }.table th, .table td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; font-size: 13px; white-space: nowrap; }.table th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.status { display: inline-flex; padding: 5px 8px; border-radius: 99px; font-size: 11px; }.status.live { color: #86f7e8; background: rgba(45,212,191,.12); }.status.pending { color: #fde68a; background: rgba(246,196,83,.12); }.status.expired { color: #fecdd3; background: rgba(251,113,133,.12); }
.progress { height: 9px; overflow: hidden; border-radius: 99px; background: #432027; }.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8d0e1c, #ff4654); }.mini-list { display: grid; gap: 13px; margin-top: 18px; }.mini-list > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }.mini-list strong { color: var(--text); }
.admin-banner { padding: 14px 18px; margin-bottom: 20px; border: 1px solid rgba(246,196,83,.3); border-radius: 14px; color: #fde68a; background: rgba(246,196,83,.08); font-size: 13px; }
.empty { padding: 45px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 15px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 340px; padding: 13px 16px; border: 1px solid rgba(198,40,61,.45); border-radius: 10px; color: #fff0f1; background: #291419; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: translateY(0); }

/* Red-black brand overrides for the dashboard visual language. */
.eyebrow { color: #e88994; }
.badge { color: #ef9ba4; background: rgba(198,40,61,.12); }
.dashboard-main .chart { background: linear-gradient(145deg, rgba(198,40,61,.17), rgba(255,255,255,.025)) !important; }
.choice > div[style*="#7c5cff"] { background: linear-gradient(135deg, #c6283d, #24272d) !important; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 55px; }.hero-card { max-width: 650px; }.grid-4 { grid-template-columns: repeat(2,1fr); }.wizard { grid-template-columns: 1fr; }.steps { display: flex; overflow-x: auto; gap: 5px; }.step { min-width: 140px; border-bottom: 0; }.dashboard-shell { grid-template-columns: 1fr; }.side { display: flex; overflow-x: auto; gap: 5px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }.side-label { display: none; }.side a { min-width: max-content; }.dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .topbar { padding: 12px 5vw; }.brand-logo-full { width: 78px; height: 52px; }.mobile-toggle { display: inline-flex; }.nav { display: none; position: absolute; top: 65px; left: 5vw; right: 5vw; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.nav.open { display: flex; }.top-actions .btn.ghost { display: none; }.hero { min-height: 0; padding: 55px 0; }.mock-grid { grid-template-columns: 90px 1fr; }.grid-3, .choice-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }.grid-4 { grid-template-columns: 1fr 1fr; }.section { padding: 60px 0; }.section-head, .page-title, .welcome { align-items: start; flex-direction: column; }.page { padding-top: 35px; }.dashboard-main { padding: 25px 5vw 60px; } }

/* Public customer storefront */
.store-shell { min-height:100vh; background:linear-gradient(180deg,#0d1118 0%,#090b0f 100%); color:var(--text); }
.store-header { position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px clamp(18px,5vw,72px); background:rgba(10,13,18,.92); border-bottom:1px solid var(--line); backdrop-filter:blur(14px); }
.store-brand .brand { display:flex; }
.store-header-actions { display:flex; align-items:center; gap:10px; }
.store-main { max-width:1240px; margin:0 auto; padding:clamp(28px,5vw,70px) clamp(18px,4vw,38px) 70px; }
.store-hero { display:flex; align-items:center; justify-content:space-between; gap:26px; padding:clamp(30px,6vw,72px); border:1px solid var(--line); border-radius:24px; background:radial-gradient(circle at 80% 20%,rgba(207,38,63,.25),transparent 42%),linear-gradient(135deg,#171b23,#101318); overflow:hidden; }
.store-hero h1 { margin:12px 0; font-size:clamp(38px,6vw,70px); letter-spacing:-.04em; }
.store-hero p { max-width:620px; color:var(--muted); font-size:18px; }
.store-hero-mark { width:150px; height:150px; display:grid; place-items:center; border-radius:50%; color:#ff667e; font-size:90px; background:radial-gradient(circle,rgba(207,38,63,.45),rgba(207,38,63,.04) 68%); }
.store-content { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:24px; margin-top:28px; align-items:start; }
.store-catalog, .store-cart { min-width:0; }
.store-product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:20px; }
.store-product { overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#15191f; }
.store-product-image { height:170px; display:grid; place-items:center; color:#ff6b82; font-size:24px; font-weight:800; letter-spacing:.08em; background:linear-gradient(135deg,rgba(207,38,63,.32),rgba(25,29,37,.8)); }
.store-product-image img { width:100%; height:100%; object-fit:cover; }
.store-product-body { padding:18px; }
.store-category, .store-product-body p, .cart-row small, .form-note { color:var(--muted); font-size:13px; }
.store-product-body h3 { margin:7px 0; }
.store-product-body p { min-height:38px; margin:0 0 18px; }
.store-product-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.store-product-bottom strong { font-size:20px; }
.store-cart { position:sticky; top:90px; padding:20px; border:1px solid var(--line); border-radius:18px; background:#15191f; }
.cart-list { display:grid; gap:12px; margin:18px 0; }
.cart-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.08); }
.cart-row > div:first-child { min-width:0; display:grid; gap:4px; }
.cart-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cart-controls { display:flex; align-items:center; gap:8px; }
.cart-controls button { width:26px; height:26px; border:1px solid var(--line); border-radius:7px; color:var(--text); background:#0e1218; cursor:pointer; }
.cart-total { display:flex; justify-content:space-between; padding:16px 0; border-top:1px solid var(--line); font-size:17px; }
.cart-total strong { font-size:24px; }
.cart-empty, .store-no-products { color:var(--muted); text-align:center; }
.store-checkout-form { display:grid; gap:10px; margin-top:10px; padding-top:18px; border-top:1px solid var(--line); }
.store-checkout-form h3 { margin:0 0 4px; }
.store-checkout-form input { width:100%; box-sizing:border-box; padding:12px 13px; border:1px solid var(--line); border-radius:10px; color:var(--text); background:#0d1117; }
.form-note { margin:2px 0 0; line-height:1.5; }
.store-empty { max-width:620px; margin:10vh auto; padding:55px 24px; border:1px solid var(--line); border-radius:22px; text-align:center; background:#15191f; }
.store-empty .icon-box, .store-no-products .icon-box { margin:0 auto 16px; }
.store-empty h1 { margin:0 0 10px; }
.store-empty p { margin:0 0 22px; color:var(--muted); }
.store-no-products { grid-column:1/-1; padding:65px 20px; border:1px dashed var(--line); border-radius:18px; }
.store-footer { padding:22px; border-top:1px solid var(--line); color:var(--muted); text-align:center; font-size:13px; }
.store-footer a { color:var(--text); }
.store-success .icon-box { color:#86f7e8; background:rgba(45,212,191,.14); }
.order-status-select { padding:7px 9px; border:1px solid var(--line); border-radius:8px; color:var(--text); background:#0c111a; }
@media (max-width: 900px) { .store-content { grid-template-columns:1fr; }.store-cart { position:static; } }
@media (max-width: 600px) { .store-header { align-items:flex-start; }.store-header .brand-logo-full { max-width:120px; }.store-header-actions .ghost { display:none; }.store-hero { padding:28px 22px; }.store-hero-mark { width:90px; height:90px; font-size:55px; }.store-product-grid { grid-template-columns:1fr; } }

/* Professional light workspace: keep the red brand accent, remove the gaming feel. */
:root { --bg:#f5f6f8; --surface:#ffffff; --surface-2:#f0f2f5; --surface-3:#e7eaf0; --line:#dfe3ea; --text:#20242c; --muted:#687181; --primary:#c6283d; --primary-2:#e05261; --cyan:#17877f; --shadow:0 14px 35px rgba(20,28,40,.08); }
body { background:linear-gradient(180deg,#f7f8fa 0%,#eef1f5 100%); color:var(--text); }
body::before { opacity:.02; background:linear-gradient(135deg,rgba(20,28,40,.16),transparent 36%); }
.topbar { background:rgba(24,27,33,.97); border-bottom-color:rgba(255,255,255,.1); box-shadow:0 3px 18px rgba(16,20,28,.12); }
.topbar .btn.ghost, .store-header .btn.ghost { color:#fff; border-color:rgba(255,255,255,.3); }
.topbar .btn.ghost:hover, .store-header .btn.ghost:hover { color:#fff; border-color:rgba(255,255,255,.65); }
.brand-wordmark { display:none; flex-direction:column; color:var(--text); font-size:20px; font-weight:850; letter-spacing:-.06em; line-height:.9; }
.brand-wordmark b { color:var(--primary); font-weight:850; }
.brand-wordmark small { margin-top:7px; color:var(--muted); font-size:10px; font-weight:650; letter-spacing:.02em; }
.hero-card, .card, .stat, .panel, .choice, .faq details { background:#fff; box-shadow:var(--shadow); }
.hero-card { border-color:#e1e5eb; }
.card:hover, .choice:hover, .choice.selected { border-color:rgba(198,40,61,.58); }
.section-head p, p { color:var(--muted); }
.eyebrow { color:#b32238; }
.badge { color:#b32238; background:rgba(198,40,61,.08); }
.footer { background:#fff; border-top-color:#e2e6ec; }
.footer .brand-logo-full { display:none; }
.footer .brand-wordmark { display:flex; }
.dashboard-shell { background:#f5f6f8; }
.side { background:#fff; border-right-color:#e2e6ec; }
.side .brand-logo-full { display:none; }
.side .brand-wordmark { display:flex; margin:0 8px 8px; }
.side a, .side-logout { color:#687181; }
.side a.active, .side a:hover, .side-logout:hover { color:#20242c; background:#f1f3f6; }
.side-label { color:#9aa3b1; }
.dashboard-main { background:#f5f6f8; }
.form-grid .field input, .form-grid .field select, .form-grid .field textarea, .field input, .field select, .field textarea { color:var(--text); background:#fff; border-color:#d8dde5; }
.table th { color:#778190; }
.table td { border-bottom-color:#edf0f4; }
.admin-banner { background:#fff8e7; border-color:#f0d58a; color:#8d6812; }
.store-shell { background:#f5f6f8; color:var(--text); }
.store-header { background:rgba(24,27,33,.97); }
.store-hero { border-color:#e1e5eb; background:radial-gradient(circle at 82% 18%,rgba(198,40,61,.12),transparent 42%),#fff; box-shadow:var(--shadow); }
.store-hero p, .store-product-body p { color:var(--muted); }
.store-hero-mark { color:#c6283d; background:radial-gradient(circle,rgba(198,40,61,.15),rgba(198,40,61,.03) 68%); }
.store-product, .store-cart { border-color:#e1e5eb; background:#fff; box-shadow:var(--shadow); }
.store-product-image { background:linear-gradient(135deg,#fff1f3,#f1f3f6); }
.store-checkout-form input { color:var(--text); background:#fff; border-color:#d8dde5; }
.store-footer { background:#fff; border-top-color:#e2e6ec; }

/* Clear conversion-led public navigation inspired by established service sites. */
.topbar { background:#fff; color:#20242c; border-bottom:1px solid #e8ebf0; box-shadow:0 4px 18px rgba(20,28,40,.06); }
.topbar .brand-logo-full, .store-header .brand-logo-full { display:none; }
.topbar .brand-wordmark, .store-header .brand-wordmark { display:flex; flex-direction:row; align-items:center; gap:9px; color:#20242c; font-size:20px; line-height:.95; }
.brand-wordmark > img { width:34px; height:34px; border-radius:9px; object-fit:cover; }
.brand-wordmark > span { display:flex; flex-direction:column; }
.topbar .brand-wordmark small, .store-header .brand-wordmark small { margin-top:6px; color:#7a8492; font-size:9px; letter-spacing:0; }
.topbar .nav { padding:4px 6px; border-radius:11px; background:#c6283d; }
.topbar .nav a, .topbar .nav button { color:#fff; }
.topbar .nav a:hover, .topbar .nav a.active { color:#fff; background:rgba(255,255,255,.16); }
.topbar .btn.ghost, .store-header .btn.ghost { color:#20242c; border-color:#d8dde5; background:#fff; }
.topbar .btn.ghost:hover, .store-header .btn.ghost:hover { color:#20242c; border-color:#b9c1ce; background:#f7f8fa; }
.store-header { background:#fff; border-bottom-color:#e5e9ef; box-shadow:0 4px 18px rgba(20,28,40,.06); }
.store-header .brand-wordmark { display:flex; }
.store-header .btn.primary { color:#fff; }
.hero { min-height:620px; }
.hero h1 { color:#171b22; }
.hero h1 strong, .hero h1 em { color:var(--primary); font-style:normal; }
.hero-card { border-top:4px solid var(--primary); }
.hero-actions .btn.primary { min-width:178px; font-weight:800; }
.section .eyebrow { color:#b32238; }
.price-card.featured { transform:translateY(-4px); border-top:4px solid var(--primary); }
.price-card.featured::before { content:'แนะนำสำหรับเริ่มต้น'; position:absolute; top:-14px; right:18px; padding:5px 10px; border-radius:99px; color:#fff; background:var(--primary); font-size:11px; font-weight:800; }
@media (max-width:680px) {
  .topbar .nav { background:#fff; border-color:#e1e5eb; }
  .topbar .nav a, .topbar .nav button { color:#596273; }
  .topbar .nav a:hover, .topbar .nav a.active { color:#20242c; background:#f1f3f6; }
  .topbar .brand-wordmark, .store-header .brand-wordmark { font-size:17px; }
  .brand-wordmark > img { width:30px; height:30px; }
}

/* User-selectable day/night theme. The light theme remains the default. */
html[data-theme="dark"] {
  --bg:#0d0f12;
  --surface:#15181d;
  --surface-2:#1d2229;
  --surface-3:#252b34;
  --line:#303743;
  --text:#f5f6f8;
  --muted:#a5acb8;
  --primary:#c6283d;
  --primary-2:#e05261;
  --cyan:#5fd2c5;
  --yellow:#e6bf61;
  --shadow:0 16px 42px rgba(0,0,0,.24);
}
html[data-theme="dark"] body { background:radial-gradient(circle at 80% 0%,rgba(198,40,61,.08),transparent 35%),linear-gradient(180deg,#101216 0%,#0b0d10 100%); color:var(--text); }
html[data-theme="dark"] body::before { opacity:.04; background:linear-gradient(135deg,rgba(255,255,255,.12),transparent 36%); }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .store-header { background:rgba(13,15,18,.96); border-color:rgba(255,255,255,.1); color:var(--text); }
html[data-theme="dark"] .topbar .brand-wordmark,
html[data-theme="dark"] .store-header .brand-wordmark,
html[data-theme="dark"] .footer .brand-wordmark { color:#fff; }
html[data-theme="dark"] .topbar .brand-wordmark small,
html[data-theme="dark"] .store-header .brand-wordmark small { color:#a5acb8; }
html[data-theme="dark"] .topbar .nav { background:#c6283d; }
html[data-theme="dark"] .topbar .btn.ghost,
html[data-theme="dark"] .store-header .btn.ghost,
html[data-theme="dark"] .theme-toggle { color:#fff; border-color:rgba(255,255,255,.28); background:transparent; }
html[data-theme="dark"] .topbar .btn.ghost:hover,
html[data-theme="dark"] .store-header .btn.ghost:hover,
html[data-theme="dark"] .theme-toggle:hover { color:#fff; border-color:rgba(255,255,255,.58); background:rgba(255,255,255,.08); }
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .choice,
html[data-theme="dark"] .faq details,
html[data-theme="dark"] .store-product,
html[data-theme="dark"] .store-cart,
html[data-theme="dark"] .store-empty { background:var(--surface); border-color:var(--line); box-shadow:none; color:var(--text); }
html[data-theme="dark"] .dashboard-shell,
html[data-theme="dark"] .dashboard-main,
html[data-theme="dark"] .store-shell { background:#0d0f12; }
html[data-theme="dark"] .hero h1 { color:var(--text); }
html[data-theme="dark"] .side { background:#0c1018; border-color:var(--line); }
html[data-theme="dark"] .side a,
html[data-theme="dark"] .side-logout { color:var(--muted); }
html[data-theme="dark"] .side a.active,
html[data-theme="dark"] .side a:hover,
html[data-theme="dark"] .side-logout:hover { color:var(--text); background:var(--surface-2); }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .store-checkout-form input,
html[data-theme="dark"] .order-status-select { color:var(--text); background:#0c111a; border-color:var(--line); }
html[data-theme="dark"] .field label,
html[data-theme="dark"] .table th { color:var(--muted); }
html[data-theme="dark"] .table td { border-bottom-color:rgba(255,255,255,.08); }
html[data-theme="dark"] .footer,
html[data-theme="dark"] .store-footer { background:#0d0f12; border-color:var(--line); }
html[data-theme="dark"] .store-hero { background:radial-gradient(circle at 82% 18%,rgba(198,40,61,.25),transparent 42%),var(--surface); border-color:var(--line); box-shadow:none; }
html[data-theme="dark"] .store-product-image { background:linear-gradient(135deg,rgba(198,40,61,.25),#20252d); }
html[data-theme="dark"] .store-product-body p,
html[data-theme="dark"] .store-hero p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] p { color:var(--muted); }
html[data-theme="dark"] .cart-controls button { color:var(--text); background:#0e1218; border-color:var(--line); }
html[data-theme="dark"] .admin-banner { background:rgba(230,191,97,.08); border-color:rgba(230,191,97,.3); color:#f5d98c; }
html[data-theme="dark"] .app-loading { color:#a5acb8; background:#0d0f12; }
.powered-by { display:block; margin-top:8px; color:var(--muted); font-size:12px; letter-spacing:.01em; }
.powered-by strong { color:var(--primary); font-weight:800; }
.store-footer .powered-by { margin-top:7px; }
.content-panel { max-width:1000px; margin:28px auto 0; }
.content-panel h2 { margin:10px 0 22px; }
.review-grid { margin-top:20px; }
.review-card { padding:20px; border:1px solid var(--line); border-radius:15px; background:var(--surface-2); }
.review-card p { min-height:72px; margin:0 0 18px; color:var(--text); font-size:15px; line-height:1.6; }
.review-card strong, .review-card small { display:block; }
.review-card small { margin-top:5px; color:var(--muted); font-size:12px; }
.showcase-card { overflow:hidden; padding:0; }
.showcase-card h3, .showcase-card p { margin-left:20px; margin-right:20px; }
.showcase-card h3 { margin-top:20px; }
.showcase-card p { margin-bottom:22px; }
.showcase-preview { display:flex; min-height:190px; flex-direction:column; justify-content:space-between; padding:22px; color:#fff; }
.showcase-preview span { font-size:12px; font-weight:800; letter-spacing:.1em; }
.showcase-preview strong { font-size:30px; line-height:1.05; letter-spacing:-.05em; }
.showcase-red { background:linear-gradient(140deg,#981d32,#e05261); }
.showcase-clean { color:#20242c; background:linear-gradient(140deg,#fff,#e8edf2); }
.showcase-warm { background:linear-gradient(140deg,#8f3946,#e79b68); }
.contact-card { display:block; color:var(--text); text-decoration:none; transition:transform .2s ease,border-color .2s ease; }
.contact-card:hover { color:var(--text); border-color:var(--primary); transform:translateY(-3px); }
.contact-card p { min-height:42px; }
.contact-card strong { color:var(--primary); font-size:13px; }
.check-list { display:grid; gap:10px; }
.check-list p { margin:0; }
.legal-copy { max-width:860px; margin:0 auto; }
.legal-copy h1 { margin-top:12px; }
.legal-copy h2 { margin:30px 0 8px; font-size:21px; }
.legal-copy p { line-height:1.8; }
.legal-updated { font-size:13px; }
.legal-copy a { color:var(--primary); font-weight:700; }
.nav-count { display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 5px; margin-left:auto; border-radius:99px; color:#fff; background:var(--primary); font-size:10px; font-weight:800; }
.package-card h2 { margin-top:16px; font-size:24px; }
.package-card .price { margin:15px 0 10px; }
.package-card .price small { color:var(--muted); font-size:14px; letter-spacing:0; }
.package-card .package-pending { font-size:28px; letter-spacing:-.04em; }
.package-card p { min-height:50px; }
.package-card ul { margin-bottom:25px; }
.package-note { text-align:center; }
.package-note .hero-actions { justify-content:center; }

@media (max-width:680px) {
  html[data-theme="dark"] .topbar .nav { background:var(--surface); border-color:var(--line); }
  html[data-theme="dark"] .topbar .nav a,
  html[data-theme="dark"] .topbar .nav button { color:var(--muted); }
  html[data-theme="dark"] .topbar .nav a:hover,
  html[data-theme="dark"] .topbar .nav a.active { color:var(--text); background:var(--surface-2); }
  .theme-toggle { white-space:nowrap; }
}

/* Mobile-first usability pass: comfortable tap targets, no horizontal overflow, and a clear checkout flow. */
@media (max-width:680px) {
  html, body { max-width:100%; overflow-x:hidden; }
  .container { width:min(100% - 32px, 1240px); }
  .topbar { min-height:64px; padding:10px 16px; gap:8px; }
  .topbar .brand-wordmark { max-width:150px; }
  .topbar .brand-wordmark small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .top-actions { gap:6px; margin-left:auto; }
  .top-actions .btn.ghost:not(.theme-toggle) { display:none; }
  .top-actions .theme-toggle { display:inline-flex; padding:9px 10px; font-size:12px; }
  .top-actions .btn.primary { padding:9px 12px; font-size:12px; }
  .mobile-toggle { flex:0 0 auto; padding:8px 10px; }
  .hero { gap:30px; padding:42px 0 52px; }
  .hero h1 { font-size:clamp(38px,11vw,52px); line-height:1.02; }
  .hero p { font-size:16px; line-height:1.65; }
  .hero-actions { display:grid; grid-template-columns:1fr; gap:9px; }
  .hero-actions .btn { width:100%; box-sizing:border-box; }
  .hero > div:first-child > div[style*="margin-top:25px"] { display:grid !important; grid-template-columns:1fr; gap:7px !important; margin-top:18px !important; font-size:12px !important; }
  .hero-card { padding:12px; border-radius:15px; }
  .window-bar { padding:8px 10px; }
  .mock-grid { grid-template-columns:64px 1fr; gap:8px; }
  .mock-sidebar, .mock-main { padding:10px; border-radius:11px; }
  .mock-main h3 { font-size:14px; }
  .section { padding:48px 0; }
  .section-head { gap:10px; margin-bottom:20px; }
  .section-head h2 { font-size:28px !important; line-height:1.12; }
  .grid-3, .grid-4, .choice-grid, .form-grid, .footer-grid { gap:12px; }
  .card, .panel { padding:18px; border-radius:15px; }
  .page { padding:30px 0 55px; }
  .page-title h1, .welcome h1 { font-size:clamp(30px,9vw,42px) !important; line-height:1.08; }
  .page-title > .btn, .welcome > .btn { width:100%; box-sizing:border-box; }
  .wizard-actions { position:sticky; bottom:0; z-index:5; padding:12px 0 2px; background:linear-gradient(180deg,transparent,var(--bg) 28%); }
  .wizard-actions .btn { flex:1; min-height:44px; }
  .dashboard-top-actions { gap:6px !important; margin-left:auto; }
  .dashboard-top-actions > span, .dashboard-top-actions > .badge { display:none; }
  .dashboard-top-actions .theme-toggle { display:inline-flex; padding:8px 9px; font-size:11px; }
  .dashboard-top-actions .btn { padding:8px 9px; font-size:11px; }
  .dashboard-top-actions .btn.primary { display:none; }
  .side { gap:4px; padding:8px 12px; scrollbar-width:none; }
  .side::-webkit-scrollbar { display:none; }
  .side > div:first-child { display:none; }
  .side a, .side-logout { min-width:max-content; width:auto; padding:10px 11px; margin:0; font-size:12px; border:1px solid transparent; }
  .side a.active { border-color:rgba(198,40,61,.25); }
  .dashboard-main { padding:22px 16px 55px; }
  .table-wrap { margin:0 -4px; }
  .table th, .table td { padding:11px 8px; font-size:12px; }
  .product-create-panel .btn { width:100%; }
  .store-header { padding:10px 14px; gap:8px; }
  .store-header .brand-wordmark { font-size:16px; }
  .store-header .brand-wordmark small { display:none; }
  .store-header-actions { gap:5px; }
  .store-header-actions .ghost { display:none; }
  .store-header-actions .theme-toggle { display:inline-flex; padding:8px 9px; font-size:11px; }
  .store-header-actions .primary { padding:8px 10px; font-size:12px; }
  .store-main { padding:18px 14px 48px; }
  .store-hero { display:block; padding:28px 20px; border-radius:18px; }
  .store-hero h1 { margin:10px 0; font-size:clamp(32px,10vw,46px); line-height:1.05; }
  .store-hero p { font-size:16px; line-height:1.55; }
  .store-hero-mark { width:72px; height:72px; margin:20px 0 0 auto; font-size:42px; }
  .store-content { gap:18px; margin-top:20px; }
  .store-content .section-head { align-items:center; flex-direction:row; }
  .store-content .section-head h2 { font-size:24px !important; }
  .store-product-grid { gap:12px; }
  .store-product { border-radius:15px; }
  .store-product-image { height:145px; }
  .store-product-body { padding:15px; }
  .store-product-body h3 { font-size:18px; }
  .store-product-bottom { align-items:center; }
  .store-cart { padding:16px; border-radius:15px; }
  .store-cart .section-head { align-items:center; }
  .store-cart .section-head h2 { font-size:22px !important; }
  .store-checkout-form input { min-height:44px; }
  .store-checkout-form .btn { min-height:46px; }
  .content-panel { margin-top:18px; }
  .showcase-preview { min-height:150px; }
  .showcase-preview strong { font-size:26px; }
  .legal-copy h2 { font-size:19px; }
  .package-card p { min-height:0; }
}

/* Keep touch interaction responsive on lower-powered phones. */
@media (max-width:900px) {
  body::before { display:none; }
  .topbar, .store-header { backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none; }
  .btn:hover, .contact-card:hover { transform:none; }
  .hero-card, .card, .panel, .stat, .store-product, .store-cart { box-shadow:none; }
}
