/* Super Imba Land — clean dark gaming UI */
:root{
  --bg:#0f1115;
  --panel:#151a23;
  --panel2:#111520;
  --border:rgba(255,255,255,.08);
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#4ade80;
  --accent2:#22c55e;
  --danger:#ef4444;
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);
  --r:18px;
  --r2:14px;
  --max:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 20% -20%, rgba(74,222,128,.18), transparent 55%),
    radial-gradient(900px 600px at 85% 0%, rgba(56,189,248,.10), transparent 55%),
    radial-gradient(1000px 700px at 40% 110%, rgba(168,85,247,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.wrap{min-height:100%; display:flex; flex-direction:column}
.container{width:100%; max-width:var(--max); margin:0 auto; padding:0 18px}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(15,17,21,.78);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border);
}
.topbar__row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
}
.brand__logo{
  width:38px; height:38px;
  border-radius:12px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.32), transparent 60%),
    linear-gradient(135deg, rgba(74,222,128,.85), rgba(34,197,94,.55));
  box-shadow: 0 10px 30px rgba(34,197,94,.18);
}
.brand__text{line-height:1.05}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{color:var(--muted); font-size:12px; margin-top:2px}

.nav{
  display:flex; align-items:center; gap:10px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}
.pill strong{color:var(--text); font-weight:700}
.pill .dot{
  width:8px; height:8px; border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(74,222,128,.15);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.06); box-shadow: var(--shadow2)}
.btn:active{transform: translateY(0)}
.btn--accent{
  background: linear-gradient(135deg, rgba(74,222,128,.95), rgba(34,197,94,.75));
  border-color: rgba(34,197,94,.45);
  color:#0b1410;
}
.btn--accent:hover{box-shadow: 0 18px 45px rgba(34,197,94,.20)}
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.10);
  color:var(--muted);
}
.btn--ghost:hover{color:var(--text)}
.btn--danger{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.35);
  color: #fecaca;
}
.btn--block{width:100%}
.btn small{font-weight:800; opacity:.75}

/* Page spacing */
main{flex:1; padding:26px 0 40px}

/* Hero */
.hero{
  border:1px solid var(--border);
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(74,222,128,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 60%),
    rgba(255,255,255,.02);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow:hidden;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 860px){
  .hero__grid{grid-template-columns:1fr}
}
.h1{
  font-size:34px;
  line-height:1.1;
  margin:0 0 10px;
  letter-spacing:.2px;
}
.sub{
  color:var(--muted);
  font-size:15px;
  margin:0 0 16px;
  max-width: 58ch;
}
.hero__actions{display:flex; gap:10px; flex-wrap:wrap}
.hero__side{
  border:1px solid rgba(255,255,255,.07);
  background: rgba(17,21,32,.55);
  border-radius: var(--r2);
  padding:14px;
}
.kpi{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:10px;
}
.kpi .card{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding:12px;
}
.kpi .card .t{color:var(--muted); font-size:12px}
.kpi .card .v{font-size:18px; font-weight:800; margin-top:4px}

/* Sections */
.section{margin-top:18px}
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:10px;
  margin: 18px 0 10px;
}
.section__title{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}
.section__hint{color:var(--muted); font-size:13px; margin:0}

/* Products grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 620px){ .grid{grid-template-columns: 1fr;} }

.product{
  position:relative;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(21,26,35,.72);
  border-radius: var(--r);
  padding:16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.product:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(400px 200px at 20% 0%, rgba(74,222,128,.16), transparent 60%);
  pointer-events:none;
}
.product:hover{
  transform: translateY(-2px);
  border-color: rgba(74,222,128,.35);
  box-shadow: 0 20px 55px rgba(0,0,0,.50);
}
.product__top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; position:relative}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px;
  padding:6px 10px;
  border-radius: 999px;
  background: rgba(74,222,128,.12);
  border:1px solid rgba(74,222,128,.28);
  color:#b7f7cf;
}
.badge .spark{width:8px; height:8px; border-radius:999px; background:var(--accent)}
.product__price{
  font-size:30px;
  font-weight:900;
  margin: 10px 0 6px;
  position:relative;
}
.product__meta{
  color:var(--muted);
  font-size:13px;
  position:relative;
}
.product__meta ul{margin:10px 0 0; padding-left:18px}
.product__meta li{margin:6px 0}
.product__actions{margin-top:14px; position:relative}
.note{
  margin-top:10px;
  color: rgba(229,231,235,.75);
  font-size:12px;
  position:relative;
  border-top:1px dashed rgba(255,255,255,.10);
  padding-top:10px;
}

/* Checkout */
.checkout{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:12px;
  align-items:start;
}
@media (max-width: 900px){ .checkout{grid-template-columns:1fr} }

.panel{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(21,26,35,.72);
  border-radius: var(--r);
  padding:16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}
.panel h2{margin:0 0 12px; font-size:18px}
.field{display:flex; flex-direction:column; gap:7px; margin: 10px 0}
.label{font-size:13px; color:var(--muted)}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus{
  border-color: rgba(74,222,128,.40);
  box-shadow: 0 0 0 4px rgba(74,222,128,.12);
}
.helper{font-size:12px; color:rgba(156,163,175,.95)}

.summary{
  display:flex; flex-direction:column; gap:10px;
}
.row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.row:last-child{border-bottom:0}
.row .k{color:var(--muted); font-size:13px}
.row .v{font-weight:900}

.alert{
  border:1px solid rgba(239,68,68,.30);
  background: rgba(239,68,68,.10);
  color: #fecaca;
  padding:12px;
  border-radius: 14px;
  font-size:13px;
}

.footer{
  padding:20px 0 30px;
  color: rgba(156,163,175,.85);
  font-size:13px;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.10);
}
.footer__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
}
.footer a{color: rgba(229,231,235,.85)}
.footer a:hover{color: var(--text)}

/* --- Header tweaks (big logo + one-line nav) --- */
.brand--big .brand__logo{width:46px;height:46px;border-radius:16px}
.brand--big .brand__name{
  font-size:18px;
  font-weight:1000;
  letter-spacing:.2px;
  background: linear-gradient(90deg, #4ade80, #60a5fa, #a78bfa);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.nav--main{display:flex;align-items:center;gap:14px;flex-wrap:nowrap}
.navlink{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(229,231,235,.92);
  font-weight:800;
  font-size:13px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.navlink:hover{transform:translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(74,222,128,.30)}
@media (max-width: 860px){
  .topbar__row{flex-wrap:wrap}
  .nav--main{width:100%;justify-content:flex-start;flex-wrap:wrap}
}

/* --- Server info panel under header --- */
.serverbar{
  margin-top:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(21,26,35,.72);
  border-radius: 18px;
  padding:14px 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.serverbar__left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.serverpill{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(229,231,235,.95);
  font-weight:800;font-size:13px;
}
.serverpill .dot{
  width:10px;height:10px;border-radius:999px;
  background:#94a3b8;
  box-shadow:0 0 0 4px rgba(148,163,184,.12);
}
.serverpill.is-online .dot{
  background: #4ade80;
  box-shadow:0 0 0 4px rgba(74,222,128,.14);
}
.servermeta{color:rgba(156,163,175,.95);font-size:13px}

/* --- Floating cart button + drawer --- */
.cart-fab{
  position:fixed; right:18px; bottom:18px; z-index:90;
  width:56px;height:56px;border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(21,26,35,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 45px rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.cart-fab:hover{transform: translateY(-2px); background: rgba(255,255,255,.06); border-color: rgba(74,222,128,.28)}
.cart-badge{
  position:absolute; top:10px; right:10px;
  min-width:18px; height:18px; padding:0 6px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(74,222,128,.95), rgba(34,197,94,.75));
  color:#0b1410;
  font-size:12px;font-weight:1000;
  display:flex;align-items:center;justify-content:center;
}

.cart-overlay{
  position:fixed; inset:0; z-index:95;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  opacity:0; pointer-events:none;
  transition: opacity .18s ease;
}
.cart-overlay.is-open{opacity:1; pointer-events:auto}

.cart-drawer{
  position:fixed; top:0; right:0; z-index:100;
  height:100vh; width:min(420px, 92vw);
  border-left:1px solid rgba(255,255,255,.10);
  background: rgba(15,17,21,.72);
  backdrop-filter: blur(14px);
  transform: translateX(100%);
  transition: transform .20s ease;
  padding:16px;
  display:flex; flex-direction:column; gap:12px;
}
.cart-drawer.is-open{transform: translateX(0)}
.cart-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cart-drawer__title{font-size:16px;font-weight:1000;margin:0}
.cart-drawer__close{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:rgba(229,231,235,.92);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.cart-items{flex:1; overflow:auto; display:flex; flex-direction:column; gap:10px; padding-right:4px}
.cart-item{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(21,26,35,.62);
  border-radius:16px;
  padding:12px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.cart-item .name{font-weight:900}
.cart-item .meta{color:rgba(156,163,175,.95);font-size:12px;margin-top:4px}
.cart-footer{border-top:1px solid rgba(255,255,255,.08); padding-top:12px}

/* --- Products section centered with images --- */
.products{
  margin-top:26px;
}
.products__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  justify-items:stretch;
}
@media (max-width: 980px){ .products__grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 620px){ .products__grid{grid-template-columns: 1fr;} }

.pcard{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(21,26,35,.72);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pcard:hover{transform: translateY(-2px); border-color: rgba(74,222,128,.30); box-shadow: 0 20px 55px rgba(0,0,0,.50)}
.pimg{aspect-ratio: 16/10; background: rgba(255,255,255,.03); display:flex; align-items:center; justify-content:center}
.pimg img{width:100%;height:100%;object-fit:cover}
.pbody{padding:14px}
.ptitle{margin:0;font-weight:1000}
.pdesc{margin:8px 0 0;color:rgba(156,163,175,.95);font-size:13px}
.pactions{margin-top:12px; display:flex; gap:10px}
