:root{
  --bg:#050b18;
  --bg-2:#081227;
  --surface:#0e1a33;
  --surface-2:#132449;
  --line:#1c2c52;
  --blue:#2f6fed;
  --blue-light:#6fa8ff;
  --blue-dim:#173166;
  --accent:#ffb020;
  --text:#f3f6fc;
  --muted:#93a2c2;
  --muted-2:#5f709a;
  --radius:16px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; overflow-x:hidden; overflow-x:clip; width:100%; max-width:100%;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  width:100%; max-width:100%; overflow-x:hidden; overflow-x:clip;
}
h1,h2,h3,.display{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
}
.mono{font-family:'IBM Plex Mono', monospace;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
main, section, footer, .wrap, .nav-inner, .dash-grid, .form-grid, .checkout-grid, .hero-grid{min-width:0; max-width:100%;}
.hero-grid > *, .form-grid > *, .checkout-grid > *, .dash-grid > *, .nav-inner > *{min-width:0;}
button, input, select, textarea{max-width:100%;}
p, h1, h2, h3, h4, h5, a, span, label{overflow-wrap:anywhere;}
section{position:relative;}
button{font-family:inherit;}

body::before{
  content:"";
  position:fixed; top:-20%; left:50%; transform:translateX(-50%);
  width:1100px; height:1100px;
  background:radial-gradient(circle, rgba(47,111,237,0.16) 0%, rgba(47,111,237,0) 65%);
  pointer-events:none; z-index:0;
}

/* ---------- NAVBAR ---------- */
header.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(5,11,24,0.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:1180px; margin:0 auto; padding:16px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.logo{display:flex; align-items:center; gap:10px; font-family:'Space Grotesk'; font-weight:700; font-size:19px;}
.logo-mark{
  width:42px; height:42px; object-fit:contain;
  flex-shrink:0;
}
.nav-links{display:flex; align-items:center; gap:32px;}
.nav-links a{font-size:14.5px; color:var(--muted); font-weight:500; transition:color .2s;}
.nav-links a:hover, .nav-links a.active{color:var(--text);}
.nav-right{display:flex; align-items:center; gap:14px;}
.cart-button{position:relative; width:40px; height:40px; border:1px solid var(--line); border-radius:11px; color:var(--text); background:var(--surface); cursor:pointer; font-size:18px; line-height:1;}
.cart-button:hover{border-color:var(--blue-light); transform:translateY(-1px);}
.cart-count{position:absolute; top:-7px; right:-7px; min-width:18px; height:18px; padding:0 5px; border-radius:99px; background:var(--accent); color:#1a1300; font:600 11px/18px 'IBM Plex Mono';}
.cart-button + .btn.profile-active{background:#34d399; color:#04130d;}
.profile-menu{position:relative;}
.profile-menu > [data-profile-link]{display:inline-flex; align-items:center; gap:8px; max-width:170px; overflow:hidden;}
.profile-avatar{width:26px; height:26px; flex:0 0 26px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; color:#fff; background:var(--blue); font:700 11px 'IBM Plex Mono';}
.profile-label{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.profile-options{position:absolute; top:calc(100% + 10px); right:0; min-width:170px; padding:7px; display:none; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:0 18px 40px rgba(0,0,0,.35);}
.profile-menu.open .profile-options{display:block;}
.profile-options a{display:block; padding:9px 11px; border-radius:8px; color:var(--muted); font-size:13px; white-space:nowrap;}
.profile-options a:hover{background:var(--blue-dim); color:var(--text);}
.profile-options button{display:block; width:100%; padding:9px 11px; border:0; border-radius:8px; color:#f87171; background:transparent; text-align:left; font:13px 'Inter'; cursor:pointer;}
.profile-options button:hover{background:rgba(248,113,113,.1);}
.wallet-pill{
  font-family:'IBM Plex Mono'; font-size:13px; font-weight:600;
  background:var(--surface); border:1px solid var(--line);
  padding:8px 14px; border-radius:100px; color:var(--blue-light); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 20px; border-radius:100px; font-size:14.5px; font-weight:600;
  border:1px solid transparent; cursor:pointer; transition:all .18s ease;
}
.btn-primary{background:var(--blue); color:#fff; box-shadow:0 8px 20px -8px rgba(47,111,237,0.8);}
.btn-primary:hover{background:var(--blue-light); transform:translateY(-1px);}
.btn-ghost{background:transparent; border-color:var(--line); color:var(--text);}
.btn-ghost:hover{border-color:var(--blue-light); color:var(--blue-light);}
.btn-block{width:100%;}
.burger{display:none; width:38px; height:38px; border-radius:9px; border:1px solid var(--line); align-items:center; justify-content:center; cursor:pointer; background:transparent;}
.burger svg{width:18px; height:18px; stroke:var(--text);}
.nav-links.mobile-open{display:flex; position:relative; z-index:1000;}

/* ---------- PAGE HEADER (for inner pages) ---------- */
.page-head{padding:64px 0 40px; position:relative; z-index:1;}
.page-head .tag{font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--blue-light); display:block; margin-bottom:12px;}
.page-head h1{font-size:38px; margin-bottom:12px;}
.page-head p{color:var(--muted); max-width:520px; font-size:15px;}

/* ---------- HERO (home) ---------- */
.hero{padding:88px 0 60px; position:relative; z-index:1;}
.hero-grid{display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--blue-light);
  background:var(--blue-dim); border:1px solid #22417f;
  padding:6px 12px; border-radius:100px; margin-bottom:22px;
}
.eyebrow .dot{width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px rgba(255,176,32,0.25);}
.hero h1{font-size:52px; line-height:1.05; margin-bottom:20px;}
.hero h1 em{font-style:normal; color:var(--blue-light);}
.hero p.lead{font-size:17px; color:var(--muted); max-width:460px; margin-bottom:32px;}
.hero-ctas{display:flex; gap:14px; margin-bottom:36px;}
.trust-row{display:flex; gap:28px; flex-wrap:wrap;}
.trust-row div{font-family:'IBM Plex Mono'; font-size:22px; font-weight:600; color:var(--text);}
.trust-row span{display:block; font-family:'Inter'; font-size:12.5px; color:var(--muted-2); margin-top:2px; font-weight:500;}

.hero-visual{position:relative; height:420px; display:flex; align-items:center; justify-content:center;}
.device-glow{
  position:absolute; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(47,111,237,0.35), rgba(47,111,237,0) 70%);
  filter:blur(4px);
}
.device-card{
  position:relative; width:230px; height:340px; border-radius:28px;
  background:#09111f;
  border:1px solid var(--line);
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
  overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between;
  animation:float 5s ease-in-out infinite;
}
.device-image{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; opacity:.9; transform:scale(1.08);}
.device-shade{position:absolute; inset:0; background:linear-gradient(180deg,rgba(3,8,18,.2),rgba(3,8,18,.15) 38%,rgba(3,8,18,.94) 100%);}
.device-topline,.device-content,.device-footer{position:relative; z-index:1; padding:18px;}
.device-topline{display:flex; align-items:center; justify-content:space-between; font-family:'IBM Plex Mono'; font-size:10px; letter-spacing:.12em;}
.device-brand{color:#fff; font-weight:600;}
.device-status{color:#50e7ad; display:flex; align-items:center; gap:5px;}
.device-status::before{content:""; width:5px; height:5px; border-radius:50%; background:#50e7ad; box-shadow:0 0 0 3px rgba(80,231,173,.18);}
.device-content{margin-top:auto; padding-bottom:10px;}
.device-kicker{display:block; color:#ffb020; font-family:'IBM Plex Mono'; font-size:10px; letter-spacing:.12em; margin-bottom:7px;}
.device-content strong{display:block; color:#fff; font-family:'Space Grotesk'; font-size:34px; line-height:.9; letter-spacing:.01em;}
.device-copy{display:block; color:#d4dbea; font-size:11px; margin-top:12px;}
.device-footer{display:flex; justify-content:space-between; align-items:center; border-top:1px solid rgba(255,255,255,.22); margin:0 18px; padding:12px 0 16px; color:#fff; font-family:'IBM Plex Mono'; font-size:9px; letter-spacing:.08em;}
.device-footer span:last-child{color:#9fb0cf;}
.price-chip{
  position:absolute; top:14px; right:-38px;
  background:var(--surface); border:1px solid var(--line);
  padding:10px 14px; border-radius:14px;
  box-shadow:0 14px 30px -12px rgba(0,0,0,0.55);
  font-family:'IBM Plex Mono'; font-size:12.5px;
  animation:float 5s ease-in-out infinite; animation-delay:.6s;
}
.price-chip .old{color:var(--muted-2); text-decoration:line-through; margin-right:6px;}
.price-chip .new{color:var(--accent); font-weight:600;}
.ticker-chip{
  position:absolute; bottom:6px; left:-30px;
  background:var(--surface); border:1px solid var(--line);
  padding:10px 14px; border-radius:14px; display:flex; align-items:center; gap:8px;
  box-shadow:0 14px 30px -12px rgba(0,0,0,0.55);
  font-size:12.5px; color:var(--muted);
  animation:float 5s ease-in-out infinite; animation-delay:1.1s;
}
.ticker-chip .pulse{width:8px; height:8px; border-radius:50%; background:#34d399; box-shadow:0 0 0 4px rgba(52,211,153,0.2);}
@keyframes float{0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);}}

/* ---------- SECTION HEAD ---------- */
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:32px; flex-wrap:wrap;}
.section-head .tag{font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--blue-light); margin-bottom:10px; display:block;}
.section-head h2{font-size:30px;}
.section-head a.more{font-size:14px; color:var(--muted); font-weight:600; white-space:nowrap;}
.section-head a.more:hover{color:var(--blue-light);}

/* ---------- CATEGORIES ---------- */
.categories{padding:20px 0 70px; position:relative; z-index:1;}
.cat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.cat-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:24px; transition:all .2s ease; cursor:pointer;
}
.cat-card:hover{border-color:var(--blue); transform:translateY(-3px); box-shadow:0 16px 30px -18px rgba(47,111,237,0.5);}
.cat-icon{
  width:44px; height:44px; border-radius:12px; background:var(--blue-dim);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.cat-icon svg{width:22px; height:22px; stroke:var(--blue-light);}
.cat-icon{font-size:24px;}
.cat-card h3{font-size:16.5px; margin-bottom:4px;}
.cat-card p{font-size:13px; color:var(--muted-2);}

/* ---------- PRODUCTS ---------- */
.products{padding:20px 0 76px; position:relative; z-index:1;}
.filter-row{display:flex; gap:10px; margin-bottom:30px; flex-wrap:wrap;}
.filter-pill{
  font-size:13.5px; font-weight:500; padding:8px 16px; border-radius:100px;
  border:1px solid var(--line); color:var(--muted); cursor:pointer; background:transparent; font-family:inherit;
}
.filter-pill.active{background:var(--blue); border-color:var(--blue); color:#fff;}
.prod-card[hidden]{display:none;}
.prod-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.prod-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; transition:all .2s ease;
}
.prod-card:hover{border-color:var(--blue); transform:translateY(-4px); box-shadow:0 20px 34px -20px rgba(47,111,237,0.55);}
.prod-thumb{
  height:150px; background:linear-gradient(150deg, var(--surface-2), var(--bg-2));
  display:flex; align-items:center; justify-content:center; position:relative;
}
.prod-thumb svg{width:52px; height:52px; stroke:var(--blue-light); opacity:.9;}
.prod-thumb img{width:100%; height:100%; object-fit:cover;}
.prod-badge{
  position:absolute; top:10px; left:10px; background:var(--accent); color:#1a1300;
  font-family:'IBM Plex Mono'; font-size:11px; font-weight:600;
  padding:3px 9px; border-radius:100px;
}
.prod-body{padding:16px 16px 18px;}
.prod-cat{font-size:11.5px; color:var(--muted-2); font-family:'IBM Plex Mono'; margin-bottom:6px; text-transform:uppercase; letter-spacing:.04em;}
.prod-body h4{font-size:15.5px; margin-bottom:10px; font-weight:600;}
.prod-price-row{display:flex; align-items:center; justify-content:space-between;}
.prod-price{font-family:'IBM Plex Mono'; font-weight:600; color:var(--text); font-size:15px;}
.prod-old{font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted-2); text-decoration:line-through; margin-right:6px;}
.add-btn{
  width:34px; height:34px; border-radius:10px; background:var(--blue-dim); border:1px solid #22417f;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .18s;
}
.add-btn:hover{background:var(--blue);}
.add-btn svg{width:16px; height:16px;}
.pagination{display:flex; justify-content:center; gap:8px; margin-top:44px;}
.page-btn{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--line); color:var(--muted);
  display:flex; align-items:center; justify-content:center; font-size:13.5px; font-family:'IBM Plex Mono'; cursor:pointer; background:transparent;
}
.page-btn.active{background:var(--blue); border-color:var(--blue); color:#fff;}
.page-btn:disabled{opacity:.35; cursor:not-allowed;}

/* ---------- PROCESS ---------- */
.process{padding:20px 0 90px; position:relative; z-index:1;}
.process-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:36px;}
.process-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:30px;
  position:relative;
}
.process-num{
  font-family:'IBM Plex Mono'; font-size:13px; color:var(--blue-light);
  border:1px solid var(--line); width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
}
.process-card h3{font-size:18px; margin-bottom:10px;}
.process-card p{font-size:14px; color:var(--muted); margin-bottom:14px;}
.process-tag{font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--muted-2); border-top:1px dashed var(--line); padding-top:14px; display:block;}

/* ---------- CTA BAND ---------- */
.cta-band{padding:0 0 90px; position:relative; z-index:1;}
.cta-box{
  background:linear-gradient(120deg, var(--blue-dim), var(--surface) 70%);
  border:1px solid #22417f; border-radius:24px;
  padding:52px 56px; display:flex; align-items:center; justify-content:space-between; gap:30px;
  flex-wrap:wrap;
}
.cta-box h2{font-size:28px; max-width:420px;}
.cta-box p{color:var(--muted); margin-top:10px; max-width:420px; font-size:14.5px;}

/* ---------- LEGACY SERVICES ---------- */
.services{padding:20px 0 90px; position:relative; z-index:1; background:#f4f5f7; color:#101827;}
.services .section-head h2{color:#101827;}
.service-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.service-card{background:#fff; border:1px solid #e2e6ee; border-radius:var(--radius); padding:22px;}
.service-card > span{font-size:26px; display:block; margin-bottom:14px;}
.service-card h3{font-size:16px; margin-bottom:6px;}
.service-card p{color:#657086; font-size:13.5px;}

.brands{padding:20px 0 90px; position:relative; z-index:1;}
.brand-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:14px;}
.brand-card{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px; min-width:0;}
.brand-card img{width:100%; height:76px; object-fit:contain; border-radius:8px; background:#fff;}
.brand-card span{display:block; color:var(--muted); font-size:12px; margin-top:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

/* ---------- PRODUCT OPTIONS ---------- */
.product-modal{position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; width:100%; height:100vh; height:100dvh; max-height:100dvh; padding:16px; overflow-y:auto; background:rgba(2,6,18,.72); backdrop-filter:blur(8px);}
.product-modal.open{display:flex;}
.product-modal-card{width:100%; max-width:500px; max-height:calc(100dvh - 32px); overflow-y:auto; margin:auto; background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:28px; position:relative; box-shadow:0 30px 80px rgba(0,0,0,.45);}
.product-modal-card .tag{font-family:'IBM Plex Mono'; font-size:11px; color:var(--blue-light);}
.product-modal-card h2{font-size:25px; margin:12px 0 4px; padding-right:30px;}
.modal-price{font-family:'IBM Plex Mono'; color:var(--accent); font-size:14px; margin-bottom:24px;}
.product-modal-card label{display:block; color:var(--muted); font-size:13px; margin:14px 0 7px;}
.product-modal-card select,.product-modal-card input{width:100%; padding:12px 13px; color:var(--text); background:var(--bg-2); border:1px solid var(--line); border-radius:10px; font:inherit;}
.product-modal-card select:focus,.product-modal-card input:focus{outline:none; border-color:var(--blue-light);}
.game-id-field[hidden]{display:none;}
.product-modal-card .btn{margin-top:24px;}
.modal-close{position:absolute; top:14px; right:16px; width:32px; height:32px; border:1px solid var(--line); border-radius:9px; color:var(--text); background:transparent; font-size:22px; line-height:1; cursor:pointer;}

.cart-open{overflow:hidden; touch-action:none;}
.cart-overlay{position:fixed; inset:0; z-index:110; display:none; background:rgba(2,6,18,.6); backdrop-filter:blur(4px);}
.cart-overlay.open{display:block;}
.cart-drawer{position:fixed; top:0; right:0; z-index:120; width:min(410px,100%); height:100vh; height:100dvh; max-height:100dvh; padding:20px 20px calc(20px + env(safe-area-inset-bottom)); background:var(--surface); border-left:1px solid var(--line); box-shadow:-20px 0 60px rgba(0,0,0,.38); transform:translateX(105%); transition:transform .25s ease; display:flex; flex-direction:column;}
.cart-drawer.open{transform:translateX(0);}
.cart-drawer-head{flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding-bottom:18px; border-bottom:1px solid var(--line);}
.cart-drawer-head h2{font-size:24px;}
.cart-close{width:34px; height:34px; border:1px solid var(--line); border-radius:9px; background:transparent; color:var(--text); font-size:22px; cursor:pointer;}
.cart-items{flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:16px 0;}
.cart-item{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--line);}
.cart-item-image{width:58px; height:48px; flex:0 0 58px; object-fit:cover; border-radius:8px; background:#fff; border:1px solid var(--line);}
.cart-item-info{flex:1; min-width:0;}
.cart-item strong,.cart-item span,.cart-item small{display:block;}
.cart-item strong{font-size:14px; margin-bottom:4px;}
.cart-item span{font-size:12px; color:var(--muted);}
.cart-item small{font:12px 'IBM Plex Mono'; color:var(--accent); margin-top:7px;}
.cart-item button{border:0; background:transparent; color:var(--muted); font-size:20px; cursor:pointer;}
.cart-empty{color:var(--muted); font-size:14px; padding:20px 0;}
.cart-drawer-foot{flex:0 0 auto; border-top:1px solid var(--line); padding-top:18px;}
.cart-total{display:block; font:600 18px 'IBM Plex Mono'; color:var(--text); margin-bottom:14px;}

/* ---------- CHECKOUT ---------- */
.checkout-shell{padding:10px 0 100px; position:relative; z-index:1;}
.checkout-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start;}
.checkout-card{background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:28px;}
.checkout-card-head{border-bottom:1px solid var(--line); padding-bottom:18px; margin-bottom:18px;}
.checkout-card-head .tag{font:11px 'IBM Plex Mono'; color:var(--blue-light);}
.checkout-card-head h2{font-size:24px; margin-top:8px;}
.checkout-items{display:grid; gap:12px;}
.checkout-item{display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line);}
.checkout-item img{width:70px; height:54px; object-fit:cover; border-radius:8px; background:#fff; flex-shrink:0;}
.checkout-item strong,.checkout-item span,.checkout-item small{display:block;}
.checkout-item strong{font-size:14px;}
.checkout-item span{font-size:12px; color:var(--muted); margin-top:3px;}
.checkout-item small{font:12px 'IBM Plex Mono'; color:var(--accent); margin-top:7px;}
.checkout-total{display:flex; justify-content:space-between; gap:16px; padding-top:20px; margin-top:8px; font-size:15px;}
.checkout-total strong{font:600 18px 'IBM Plex Mono'; color:var(--accent);}
.payment-methods{display:grid; gap:10px; margin-bottom:20px;}
.payment-option{display:flex; gap:12px; align-items:flex-start; padding:15px; border:1px solid var(--line); border-radius:12px; cursor:pointer;}
.payment-option:has(input:checked){border-color:var(--blue-light); background:var(--blue-dim);}
.payment-option input{margin-top:4px; accent-color:var(--blue);}
.payment-option strong,.payment-option small{display:block;}
.payment-option strong{font-size:14px; margin-bottom:5px;}
.payment-option small{font-size:12.5px; line-height:1.6; color:var(--muted);}
.checkout-fields .field{margin-bottom:16px;}
.field-help{display:block; color:var(--muted-2); font-size:12px; margin-top:7px;}
.proof-preview{max-width:100%; max-height:180px; margin-top:12px; border:1px solid var(--line); border-radius:10px; object-fit:contain;}
.privacy-note{font-size:11.5px; color:var(--muted-2); line-height:1.6; margin:18px 0;}
.privacy-note a{color:var(--blue-light);}
.checkout-message,.checkout-success{max-width:720px; margin:0 auto 26px; padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:16px; color:var(--muted);}
.checkout-message a{color:var(--blue-light); font-weight:600;}
.checkout-success{text-align:center; border-color:#236c50; background:rgba(20,88,62,.18);}
.checkout-error{color:#fca5a5; background:rgba(127,29,29,.18); border:1px solid rgba(248,113,113,.4); border-radius:10px; padding:12px; margin-top:14px; font-size:13px;}
.checkout-success h2{color:#73e6b2; margin:12px 0 8px;}
.checkout-success p{margin-bottom:20px;}
.success-icon{display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius:50%; background:#34d399; color:#052217; font-size:24px; font-weight:700;}

/* ---------- FORMS (contact / connexion) ---------- */
.form-shell{padding:10px 0 64px; position:relative; z-index:1;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px;}
.form-card{
  width:100%; min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:30px; 
}
.field{margin-bottom:20px;}
.field label{display:block; font-size:13px; color:var(--muted); margin-bottom:8px; font-weight:500;}
.field input, .field textarea{
  width:100%; background:var(--bg-2); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; color:var(--text); font-size:14.5px; font-family:'Inter';
}
.field input:focus, .field textarea:focus{outline:none; border-color:var(--blue);}
.field textarea{resize:vertical; min-height:120px;}
.info-card{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px;
  display:flex; gap:16px; align-items:flex-start; margin-bottom:16px;
}
.info-card .cat-icon{margin-bottom:0; flex-shrink:0;}
.info-card h4{font-size:15.5px; margin-bottom:4px;}
.info-card p{font-size:13.5px; color:var(--muted-2);}
.info-card a{color:var(--blue-light); font-weight:600;}

/* ---------- LOGIN / SIGNUP ---------- */
.auth-shell{min-height:calc(100dvh - 140px); padding:40px 18px 64px; display:flex; align-items:center; justify-content:center; position:relative; z-index:1;}
.auth-card{width:100%; max-width:500px; max-height:calc(100dvh - 48px); overflow-y:auto; background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:30px;}
.auth-tabs{display:flex; background:var(--bg-2); border:1px solid var(--line); border-radius:100px; padding:4px; margin-bottom:28px;}
.auth-tab{flex:1; text-align:center; padding:9px 0; border-radius:100px; font-size:13.5px; font-weight:600; color:var(--muted); cursor:pointer; transition:all .18s;}
.auth-tab.active{background:var(--blue); color:#fff;}
.auth-panel{display:none;}
.auth-panel.active{display:block;}
.auth-foot{text-align:center; margin-top:18px; font-size:13px; color:var(--muted-2);}
.auth-foot a{color:var(--blue-light); font-weight:600;}
.divider{display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--muted-2); font-size:12px;}
.divider::before, .divider::after{content:""; flex:1; height:1px; background:var(--line);}

/* ---------- TUTORIALS ---------- */
.tut-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding-bottom:100px; position:relative; z-index:1;}
.tut-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:26px; transition:all .2s;}
.tut-card:hover{border-color:var(--blue); transform:translateY(-3px);}
.tut-step{font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--blue-light); background:var(--blue-dim); border:1px solid #22417f; display:inline-block; padding:3px 10px; border-radius:100px; margin-bottom:16px;}
.tut-card h3{font-size:17px; margin-bottom:8px;}
.tut-card p{font-size:13.5px; color:var(--muted); margin-bottom:16px;}
.tut-card .more{font-size:13.5px; color:var(--blue-light); font-weight:600;}

/* ---------- FOOTER ---------- */
footer{border-top:1px solid var(--line); padding:56px 0 32px; position:relative; z-index:1;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:44px;}
.footer-grid h5{font-size:13px; color:var(--muted-2); margin-bottom:16px; font-weight:600; text-transform:uppercase; letter-spacing:.05em;}
.footer-grid ul li{margin-bottom:11px;}
.footer-grid ul li a{font-size:14px; color:var(--muted); transition:color .2s;}
.footer-grid ul li a:hover{color:var(--blue-light);}
.footer-about p{font-size:13.5px; color:var(--muted-2); margin-top:14px; max-width:280px; line-height:1.6;}
.wa-float{
  display:inline-flex; align-items:center; gap:8px; margin-top:18px;
  background:var(--surface); border:1px solid var(--line); padding:9px 14px; border-radius:100px;
  font-size:13px; color:var(--text); font-weight:500;
}
.wa-float svg{width:16px; height:16px; stroke:#34d399;}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding-top:26px;
  border-top:1px solid var(--line); font-size:12.5px; color:var(--muted-2); flex-wrap:wrap; gap:12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{margin-top:20px;}
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .prod-grid{grid-template-columns:repeat(2,1fr);}
  .process-grid{grid-template-columns:1fr;}
  .service-grid{grid-template-columns:repeat(2,1fr);}
  .brand-grid{grid-template-columns:repeat(4,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .form-grid{grid-template-columns:1fr;}
  .checkout-grid{grid-template-columns:1fr;}
  .checkout-shell{padding:10px 0 40px;}
  .checkout-submit-bar{position:sticky; bottom:0; z-index:5; margin-top:18px; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); background:linear-gradient(to top, var(--bg) 70%, transparent);}
  .checkout-submit-total{display:flex; margin:0 0 10px; padding:0; border:0;}
  .tut-grid{grid-template-columns:repeat(2,1fr);}
  .nav-links{display:none;}
  .burger{display:flex;}
  .nav-inner{padding:12px 18px; gap:10px;}
  .nav-right{gap:7px; min-width:0;}
  .wallet-pill{min-width:0; max-width:72px; padding:7px 7px; font-size:10px; white-space:nowrap;}
  .profile-menu > [data-profile-link]{max-width:44px; padding:7px; gap:0;}
  .profile-label{display:none;}
  .profile-options{right:0;}
}
@media (min-width:981px){
  .checkout-grid > .checkout-card:last-child{position:sticky; top:96px;}
  .checkout-submit-total{display:none;}
}
@media (max-width:560px){
  body.menu-open{overflow:hidden;}
  .nav-links.mobile-open{position:absolute; top:100%; left:12px; right:12px; z-index:1000; display:flex !important; flex-direction:column; align-items:stretch; gap:0; padding:8px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 20px 45px rgba(0,0,0,.45);}
  .nav-links.mobile-open a{padding:12px 14px; border-radius:9px;}
  .nav-links.mobile-open a:hover{background:var(--blue-dim);}
  html, body{width:100%; max-width:100%; overflow-x:hidden; overflow-x:clip;}
  .nav-inner{width:100%; max-width:100%; padding-left:12px; padding-right:12px;}
  .nav-inner .logo{min-width:0; max-width:42%; overflow:hidden;}
  .nav-right{flex:0 1 auto; min-width:0; max-width:58%;}
  .dash-grid, .form-grid, .checkout-grid{width:100%; max-width:100%;}
  .dash-grid main, .dash-side, .form-card, .checkout-card{min-width:0; max-width:100%;}
  .prod-price-row{gap:8px; flex-wrap:wrap;}
  .prod-price-row .btn{max-width:100%;}
  .cta-box{max-width:100%; overflow:hidden;}
  .hero h1{font-size:34px;}
  .page-head h1{font-size:28px;}
  .cat-grid{grid-template-columns:1fr;}
  .prod-grid{grid-template-columns:1fr;}
  .service-grid{grid-template-columns:1fr;}
  .brand-grid{grid-template-columns:repeat(2,1fr);}
  .cta-box{padding:36px 26px;}
  .footer-grid{grid-template-columns:1fr;}
  .price-chip, .ticker-chip{display:none;}
  .tut-grid{grid-template-columns:1fr;}
  .auth-card{padding:28px;}
  .form-shell{padding-bottom:40px;}
  .form-card{padding:22px 18px;}
  .product-modal{padding:12px;}
  .product-modal-card{max-height:calc(100dvh - 24px); padding:22px 18px;}
  .wrap{padding-left:18px; padding-right:18px;}
  .nav-links{display:none;}
  .burger{position:relative; z-index:1001; min-width:40px; min-height:40px; touch-action:manipulation;}
  .nav-inner .logo{font-size:17px; gap:7px;}
  .nav-inner .logo-mark{width:30px; height:30px;}
  .nav-right .cart-button,.nav-right .burger{width:34px; height:34px;}
}
