@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --brand:#2563EB; --brand-dark:#1D4ED8; --brand-light:#152238;
  --ink:#05070C; --panel:#0E1420; --panel-2:#141B29; --border:#1F2937;
  --text:#E5E9F0; --muted:#8B95A7; --amber:#F59E0B;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; font-family:'Inter',sans-serif; background:var(--ink); color:var(--text); }
.font-display{ font-family:'Poppins',sans-serif; }
.font-mono{ font-family:'JetBrains Mono',monospace; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:#28344a; border-radius:8px; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 20px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:600; font-size:14px; padding:10px 18px; min-height:42px; border-radius:10px; border:none; cursor:pointer; transition:.2s; }
.btn-brand{ background:var(--brand); color:#fff; }
.btn-brand:hover{ background:var(--brand-dark); }
.btn-ghost{ background:var(--panel-2); color:var(--text); border:1px solid var(--border); }
.btn-ghost:hover{ background:#1a2333; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.card{ background:var(--panel); border:1px solid var(--border); border-radius:14px; }
.badge{ font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; display:inline-block; }
.badge-brand{ background:var(--brand-light); color:#8FB4FF; }
.badge-hot{ background:#3a1414; color:#ff9c9c; }
.badge-promo{ background:#3a2c0a; color:var(--amber); }
.input{ width:100%; background:var(--panel-2); border:1px solid var(--border); border-radius:10px; padding:10px 12px; font-size:14px; color:var(--text); }
.input::placeholder{ color:#5b6577; }
.label{ font-size:12px; font-weight:600; color:var(--muted); margin-bottom:6px; display:block; }

/* -------- Navbar -------- */
.navbar{ position:sticky; top:0; z-index:100; background:rgba(5,7,12,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.navbar-inner{ height:64px; display:flex; align-items:center; justify-content:space-between; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Poppins'; font-weight:800; font-size:18px; color:#fff; }
.logo-mark{ width:34px; height:34px; border-radius:9px; background:var(--brand); display:flex; align-items:center; justify-content:center; font-weight:800; clip-path:polygon(0 0,100% 0,100% 78%,78% 100%,0 100%); }
.nav-links{ display:flex; align-items:center; gap:26px; font-size:14px; font-weight:600; color:var(--muted); }
.nav-links a:hover, .nav-links a.active{ color:var(--brand); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.menu-toggle{ display:none; background:none; border:none; color:#fff; font-size:22px; cursor:pointer; }
.mobile-menu{ display:none; flex-direction:column; gap:14px; padding:16px 20px 20px; border-top:1px solid var(--border); background:var(--ink); font-weight:600; }
.mobile-menu.open{ display:flex; }
@media (max-width:900px){ .nav-links{ display:none; } .menu-toggle{ display:block; } }

/* -------- Hero -------- */
.hero{ position:relative; overflow:hidden; background:linear-gradient(120deg,var(--brand),var(--ink) 120%); color:#fff; }
.hero-inner{ padding:64px 0 84px; position:relative; z-index:1; }
.hero-eyebrow{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); padding:5px 12px; border-radius:999px; margin-bottom:16px; }
.hero h1{ font-family:'Poppins'; font-weight:800; font-size:40px; max-width:560px; line-height:1.15; margin:0 0 14px; }
.hero p{ color:#cbd5e1; max-width:460px; margin:0 0 24px; }
.hero-art{ position:absolute; right:-30px; bottom:-30px; width:340px; opacity:.9; border-radius:20px; }
@media (max-width:768px){ .hero h1{ font-size:28px;} .hero-art{ display:none; } }

/* -------- Category grid -------- */
.cat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; margin-top:-46px; position:relative; z-index:2; }
.cat-card{ background:var(--panel); border:1px solid var(--border); border-radius:16px; overflow:hidden; transition:.25s; cursor:pointer; }
.cat-card:hover{ transform:translateY(-4px); border-color:var(--brand); box-shadow:0 14px 30px -12px rgba(37,99,235,.4); }
.cat-card img{ width:100%; height:110px; object-fit:cover; }
.cat-card .cat-name{ padding:12px 14px; font-weight:700; font-size:14px; }

/* -------- Product grid -------- */
.prod-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:16px; }
.prod-card{ background:var(--panel); border:1px solid var(--border); border-radius:14px; overflow:hidden; text-align:left; cursor:pointer; transition:.22s; position:relative; }
.prod-card:hover{ transform:translateY(-4px); border-color:var(--brand); box-shadow:0 14px 26px -12px rgba(37,99,235,.35); }
.prod-card img{ width:100%; height:120px; object-fit:cover; }
.prod-card .body{ padding:12px 14px; }
.prod-card .name{ font-weight:600; font-size:13.5px; margin-bottom:4px; }
.prod-card .price{ font-family:'Poppins'; font-weight:700; color:var(--brand); font-size:14px; }
.prod-card .ribbon{ position:absolute; top:0; right:0; font-size:10px; font-weight:700; padding:4px 10px; color:#fff; clip-path:polygon(0 0,100% 0,100% 100%,10px 100%); }
.ribbon-hot{ background:#DC2626; } .ribbon-promo{ background:var(--amber); color:#111; } .ribbon-best{ background:var(--brand); }

/* -------- Section -------- */
.section{ padding:56px 0; }
.section h2{ font-family:'Poppins'; font-weight:800; font-size:26px; text-align:center; margin:0 0 8px; }
.section .sub{ text-align:center; color:var(--muted); font-size:14px; margin-bottom:32px; }

/* -------- Tabs (Robux methods) -------- */
.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.tab-btn{ padding:11px 18px; border-radius:12px; font-weight:700; font-size:13.5px; border:1px solid var(--border); background:var(--panel); color:var(--muted); cursor:pointer; transition:.2s; }
.tab-btn.active{ background:var(--brand); color:#fff; border-color:var(--brand); box-shadow:0 8px 18px -6px rgba(37,99,235,.5); }
.method-note{ background:var(--panel-2); border:1px solid var(--border); border-radius:12px; padding:12px 16px; font-size:13px; color:var(--muted); margin-bottom:20px; }

/* -------- Product detail page (matches screenshot) -------- */
.pd-grid{ display:grid; grid-template-columns:1fr 340px; gap:28px; align-items:start; }
@media (max-width:900px){ .pd-grid{ grid-template-columns:1fr; } }
.pd-back{ display:inline-flex; align-items:center; gap:6px; background:var(--panel-2); border:1px solid var(--border); padding:8px 16px; border-radius:10px; font-weight:700; font-size:13px; margin-bottom:22px; cursor:pointer; }
.pd-top{ display:flex; gap:20px; flex-wrap:wrap; margin-bottom:26px; }
.pd-img{ width:220px; height:220px; border-radius:14px; object-fit:cover; border:1px solid var(--border); }
@media (max-width:480px){ .pd-img{ width:120px; height:120px; } .pd-title{ font-size:17px; } .pd-price{ font-size:19px; } .modal-body{ padding:16px; } .modal-head{ padding:14px 16px; } }
.pd-title{ font-family:'Poppins'; font-weight:800; font-size:20px; margin:10px 0 4px; }
.pd-game{ color:var(--muted); font-size:13px; font-weight:600; }
.pd-price{ font-family:'Poppins'; font-weight:800; font-size:22px; margin-top:10px; }
.pd-divider{ border:none; border-top:1px solid var(--border); margin:22px 0; }
.pd-collapse{ border-bottom:1px solid var(--border); }
.pd-collapse summary{ list-style:none; display:flex; justify-content:space-between; align-items:center; padding:16px 2px; font-weight:700; cursor:pointer; }
.pd-collapse summary::-webkit-details-marker{ display:none; }
.pd-collapse[open] summary::after{ content:'▾'; }
.pd-collapse summary::after{ content:'▸'; color:var(--muted); }
.pd-collapse .content{ padding:0 2px 16px; color:var(--muted); font-size:13.5px; line-height:1.7; white-space:pre-line; }
.pd-icons{ display:flex; gap:24px; padding:20px 2px; flex-wrap:wrap; }
.pd-icon{ display:flex; gap:10px; align-items:center; }
.pd-icon .ic{ width:38px; height:38px; border-radius:10px; background:var(--brand-light); display:flex; align-items:center; justify-content:center; font-size:17px; }
.pd-icon .lbl{ font-size:12px; color:var(--muted); font-weight:600; }
.pd-icon .val{ font-size:13.5px; font-weight:700; }

.pd-side{ position:sticky; top:84px; }
.pd-side h4{ padding:16px 18px; margin:0; border-bottom:1px solid var(--border); font-weight:700; font-size:15px; }
.pd-row{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; font-size:13.5px; border-bottom:1px solid var(--border); }
.pd-row .lab{ color:var(--muted); }
.pd-total{ font-weight:800; font-size:16px; }
.qty-stepper{ display:flex; align-items:center; gap:8px; }
.qty-stepper button{ width:26px; height:26px; border-radius:6px; border:1px solid var(--border); background:var(--panel-2); color:#fff; cursor:pointer; }
.qty-stepper input{ width:40px; text-align:center; background:var(--panel-2); border:1px solid var(--border); border-radius:6px; color:#fff; padding:4px; }
.pd-form{ padding:14px 18px; border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.pd-actions{ display:flex; gap:10px; padding:16px 18px; }

/* -------- Modal -------- */
.modal-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.65); backdrop-filter:blur(3px); z-index:200; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-box{ background:var(--panel); border:1px solid var(--border); border-radius:16px; width:100%; max-width:460px; max-height:88vh; overflow-y:auto; }
.modal-box.wide{ max-width:640px; }
.modal-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--panel); }
.modal-head h3{ font-family:'Poppins'; font-weight:700; font-size:17px; margin:0; }
.modal-close{ background:none; border:none; color:var(--muted); font-size:20px; cursor:pointer; }
.modal-body{ padding:20px; }

/* -------- FAQ -------- */
.faq-item{ border:1px solid var(--border); border-radius:12px; margin-bottom:10px; overflow:hidden; }
.faq-q{ padding:16px 18px; font-weight:700; font-size:14px; cursor:pointer; display:flex; justify-content:space-between; }
.faq-a{ padding:0 18px 16px; color:var(--muted); font-size:13.5px; display:none; }
.faq-item.open .faq-a{ display:block; }

/* -------- Footer -------- */
.footer{ background:#03050A; border-top:1px solid var(--border); padding:56px 0 28px; margin-top:40px; color:var(--muted); }
.footer-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:32px; margin-bottom:40px; }
.footer h4{ color:#fff; font-size:14px; margin:0 0 12px; }
.footer .bottom{ text-align:center; font-size:12px; border-top:1px solid var(--border); padding-top:22px; }

/* -------- Toast -------- */
.toast-wrap{ position:fixed; bottom:20px; right:20px; z-index:300; display:flex; flex-direction:column; gap:8px; max-width:320px; }
.toast{ background:var(--panel); border:1px solid var(--border); color:#fff; padding:12px 16px; border-radius:10px; font-size:13px; font-weight:600; box-shadow:0 10px 24px -8px rgba(0,0,0,.5); animation:popin .3s ease; }
.toast.success{ border-color:#16a34a; } .toast.error{ border-color:#dc2626; }
@keyframes popin{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

/* -------- AI Chat widget -------- */
.chat-fab{ position:fixed; bottom:20px; left:20px; z-index:150; width:54px; height:54px; border-radius:50%; background:var(--brand); border:none; color:#fff; font-size:24px; cursor:pointer; box-shadow:0 10px 22px -6px rgba(37,99,235,.6); }
.chat-panel{ position:fixed; bottom:84px; left:20px; z-index:150; width:320px; max-width:88vw; height:420px; background:var(--panel); border:1px solid var(--border); border-radius:16px; display:none; flex-direction:column; overflow:hidden; box-shadow:0 20px 50px -14px rgba(0,0,0,.6); }
.chat-panel.open{ display:flex; }
.chat-head{ background:var(--brand); color:#fff; padding:14px 16px; font-weight:700; font-size:14px; }
.chat-body{ flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.chat-msg{ max-width:85%; padding:9px 12px; border-radius:12px; font-size:13px; line-height:1.5; }
.chat-msg.bot{ background:var(--panel-2); align-self:flex-start; border-bottom-left-radius:2px; }
.chat-msg.user{ background:var(--brand); color:#fff; align-self:flex-end; border-bottom-right-radius:2px; }
.chat-input{ display:flex; border-top:1px solid var(--border); }
.chat-input input{ flex:1; background:none; border:none; padding:12px; color:#fff; font-size:13px; }
.chat-input button{ background:none; border:none; color:var(--brand); font-weight:700; padding:0 16px; cursor:pointer; }

/* -------- Popup -------- */
.popup-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:250; display:flex; align-items:center; justify-content:center; padding:16px; }
.popup-box{ position:relative; max-width:380px; width:100%; border-radius:16px; overflow:hidden; animation:popin .35s ease; cursor:pointer; }
.popup-box img{ width:100%; }
.popup-close{ position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; border:none; font-size:16px; cursor:pointer; z-index:2; }

/* -------- Admin -------- */
.admin-shell{ display:flex; min-height:100vh; }
.admin-side{ width:250px; background:#03050A; border-right:1px solid var(--border); flex-shrink:0; display:flex; flex-direction:column; }
.admin-side .brand{ padding:20px; font-family:'Poppins'; font-weight:800; border-bottom:1px solid var(--border); }
.admin-side nav{ flex:1; overflow-y:auto; padding:10px 0; }
.admin-side button.menu-item{ width:100%; text-align:left; background:none; border:none; color:var(--muted); padding:11px 20px; font-size:13.5px; font-weight:600; cursor:pointer; display:flex; gap:10px; align-items:center; }
.admin-side button.menu-item.active, .admin-side button.menu-item:hover{ background:var(--brand); color:#fff; }
.admin-main{ flex:1; padding:28px; overflow-x:hidden; }
.admin-stat{ background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:18px; }
.admin-stat .v{ font-family:'Poppins'; font-weight:800; font-size:24px; margin-top:6px; }
table.admin-table{ width:100%; border-collapse:collapse; font-size:13px; }
table.admin-table th{ text-align:left; background:var(--panel-2); padding:10px 12px; font-weight:700; }
table.admin-table td{ padding:10px 12px; border-top:1px solid var(--border); }
table.admin-table tr:hover td{ background:#0c1220; }
.pill{ font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; }
.pill.on{ background:#0f3324; color:#4ade80; } .pill.off{ background:#2a2a2a; color:#999; }
.toggle{ width:42px; height:24px; border-radius:999px; border:none; position:relative; cursor:pointer; background:#28344a; }
.toggle.on{ background:var(--brand); }
.toggle .dot{ position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:.2s; }
.toggle.on .dot{ left:21px; }
.img-upload{ display:flex; align-items:center; gap:12px; }
.img-upload img{ width:64px; height:64px; object-fit:cover; border-radius:10px; border:1px solid var(--border); }
.gate{ min-height:100vh; display:flex; align-items:center; justify-content:center; }
.gate .card{ padding:30px; width:100%; max-width:360px; }
