:root{
  --bg:#07111f;
  --bg2:#10243e;
  --card:rgba(255,255,255,.09);
  --card2:rgba(255,255,255,.14);
  --text:#f8fbff;
  --muted:#b9c7d9;
  --line:rgba(255,255,255,.16);
  --gold:#f7c948;
  --cyan:#38bdf8;
  --green:#22c55e;
  --red:#fb7185;
  --shadow:0 26px 90px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Arial,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 80% 12%,rgba(56,189,248,.25),transparent 31%),
    radial-gradient(circle at 15% 18%,rgba(247,201,72,.19),transparent 28%),
    linear-gradient(135deg,var(--bg),var(--bg2));
}
a{color:inherit}
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px min(5vw,50px);
  border-bottom:1px solid var(--line);
  background:rgba(7,17,31,.78);
  backdrop-filter:blur(18px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.logo{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#07111f;
  font-size:24px;
  font-weight:950;
  background:linear-gradient(135deg,var(--gold),#fff3b0);
  box-shadow:0 12px 28px rgba(247,201,72,.22);
}
.brand strong{display:block;font-size:20px}
.brand small{display:block;color:var(--muted);font-weight:800}
nav{display:flex;gap:10px;flex-wrap:wrap}
nav a{
  text-decoration:none;
  color:#dceaff;
  font-weight:850;
  padding:9px 11px;
  border-radius:999px;
}
nav a:hover{background:rgba(255,255,255,.08)}
.account-link{
  background:linear-gradient(135deg,var(--gold),#fff0a6);
  color:#07111f!important;
}
main{
  width:min(1150px,calc(100% - 28px));
  margin:auto;
  padding:36px 0 70px;
}
.hero{
  display:grid;
  grid-template-columns:1.35fr .75fr;
  gap:18px;
  margin-bottom:18px;
}
.hero-text,.hero-card,.card,.info-grid article,.product-card,.order-card{
  background:linear-gradient(180deg,var(--card2),var(--card));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:30px;
  backdrop-filter:blur(20px);
}
.hero-text{padding:38px}
.hero-card{
  padding:30px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.badge{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  color:#e6f0ff;
  font-weight:900;
  margin-bottom:18px;
}
h1{
  margin:0 0 14px;
  font-size:clamp(46px,8vw,86px);
  line-height:1;
  letter-spacing:-2px;
}
h2{font-size:clamp(28px,4vw,40px);margin:0 0 12px}
h3{margin:0 0 10px}
p{line-height:1.75}
.muted{color:var(--muted)}
.big-icon{font-size:82px;margin-bottom:12px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.btn{
  min-height:50px;
  border:0;
  border-radius:16px;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#07111f;
  background:linear-gradient(135deg,var(--gold),#fff0a6);
  font-weight:950;
  text-decoration:none;
  cursor:pointer;
  font-size:16px;
}
.btn.ghost{
  color:white;
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
}
.btn.small{min-height:42px;padding:0 16px}
.status{
  margin-top:18px;
  padding:12px 14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.07);
  border-radius:16px;
  font-weight:900;
}
.status.ok{border-color:rgba(34,197,94,.55);color:#c6ffe2}
.status.bad{border-color:rgba(251,113,133,.55);color:#ffd4dc}
.grid{display:grid;gap:16px}
.info-grid{grid-template-columns:repeat(3,1fr);margin:18px 0}
.info-grid article{padding:22px}
.info-grid article div{font-size:38px;margin-bottom:10px}
.section{margin-top:24px}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.products-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.product-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.product-card img{
  width:100%;
  height:190px;
  object-fit:cover;
  background:#0b1425;
}
.product-body{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1}
.price{font-size:28px;font-weight:950;color:#fff1a8}
.options{display:grid;gap:8px;color:#dceaff;font-weight:800}
.option{
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.06);
}
.loading{
  grid-column:1/-1;
  padding:26px;
  border:1px dashed var(--line);
  border-radius:22px;
  color:var(--muted);
  text-align:center;
}
.card{padding:26px}
.forms{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
form,.mini-box{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.06);
}
.single-form{max-width:520px}
input,select{
  width:100%;
  min-height:50px;
  margin:7px 0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:15px;
  padding:0 14px;
  color:white;
  font-size:16px;
  background:rgba(4,12,24,.72);
  outline:none;
}
select option{color:#07111f}
.result{
  margin-top:14px;
  min-height:44px;
  white-space:pre-wrap;
  direction:ltr;
  text-align:left;
  color:#dcfce7;
  padding:14px;
  border-radius:16px;
  background:rgba(0,0,0,.22);
  overflow:auto;
}
.orders-list{display:grid;gap:14px;margin-top:14px}
.order-card{padding:18px}
.order-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  border:1px solid var(--line);
  font-weight:900;
}
.key-box{
  margin-top:10px;
  direction:ltr;
  text-align:left;
  font-weight:950;
  letter-spacing:.5px;
  color:#07111f;
  background:#fff1a8;
  border-radius:14px;
  padding:12px;
}
.hidden{display:none!important}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.stat-card{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.07);
}
.stat-card strong{display:block;font-size:34px;color:#fff1a8}
.stat-card span{color:var(--muted);font-weight:900}
.admin-page .logo{background:linear-gradient(135deg,#38bdf8,#e0f2fe)}
footer{
  text-align:center;
  color:#dceaff;
  font-weight:900;
  padding:22px 12px 34px;
}
@media(max-width:850px){
  .topbar{align-items:flex-start;flex-direction:column}
  .hero,.info-grid,.products-grid,.forms{grid-template-columns:1fr}
  .hero-text,.hero-card,.card{padding:22px;border-radius:24px}
  .btn{width:100%}
  h1{font-size:48px}
  .stats-grid{grid-template-columns:1fr 1fr}
}

.admin-layout{
  display:grid;
  gap:18px;
}
.admin-form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.admin-form-grid .wide{grid-column:1/-1}
textarea{
  width:100%;
  min-height:130px;
  margin:7px 0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:15px;
  padding:14px;
  color:white;
  font-size:16px;
  background:rgba(4,12,24,.72);
  outline:none;
  resize:vertical;
}
.checks{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:10px 0;
}
.checks label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  font-weight:900;
}
.checks input{
  width:auto;
  min-height:auto;
  margin:0;
}
.product-admin-card{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.07);
}
.product-admin-card img{
  width:100%;
  max-height:180px;
  object-fit:cover;
  border-radius:18px;
  background:#07111f;
}
.admin-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:14px;
}
.badge-mini{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  font-weight:900;
  margin:3px;
}
@media(max-width:850px){
  .admin-form-grid,.admin-list,.checks{grid-template-columns:1fr}
}
