/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e17;
  --bg-2: #111827;
  --bg-3: #1a2235;
  --surface: #161e2e;
  --surface-2: #1e293b;
  --border: #c44e0a;
  --text: #e8eef7;
  --text-muted: #8b9bb5;
  --accent: #F47B20;
  --accent-2: #F6933D;
  --accent-3: #E8640E;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--accent); }

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,23,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.4rem; }
.logo-icon { width: 40px; height: 40px; object-fit: contain; display:block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: var(--accent); }

.cart-btn {
  position: relative; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); width: 44px; height: 44px; border-radius: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #001; font-size: .7rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== Hero ===== */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,.12), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.1), transparent 70%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: rgba(0,229,255,.1); border: 1px solid rgba(0,229,255,.3);
  color: var(--accent); font-size: .8rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-family: 'Orbitron', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; color: var(--accent); }
.hero-stats span { font-size: .8rem; color: var(--text-muted); }

.hero-visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-orb {
  width: 280px; height: 280px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,.15), rgba(124,58,237,.15));
  border: 1px solid rgba(0,229,255,.2);
  box-shadow: 0 0 80px rgba(0,229,255,.15);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.floating-card {
  position: absolute; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; box-shadow: var(--shadow); font-weight: 600; font-size: .85rem;
  animation: float 5s ease-in-out infinite;
}
.floating-card span { color: var(--text-muted); font-size: .75rem; }
.card-1 { top: 20px; left: 20px; animation-delay: 0s; }
.card-2 { top: 50%; right: 10px; animation-delay: 1.5s; }
.card-3 { bottom: 30px; left: 50px; animation-delay: 3s; }
.card-4 { position: absolute; top: 9%; left: 70%; animation: float 4s ease-in-out infinite; animation-delay: 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none; transition: var(--transition); font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #00b8d4); color: #001; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,255,.3); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; margin-top: 8px; }

/* ===== Section Head ===== */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: 'Orbitron', sans-serif; font-size: 2rem; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); }

/* ===== Products ===== */
.products { padding: 80px 0; }
.product-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.tab {
  padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  font-weight: 500; font-size: .9rem; transition: var(--transition); font-family: inherit;
}
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.active { background: var(--accent); color: #001; border-color: var(--accent); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,229,255,.1); }
.product-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative;
}
.product-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(transparent, var(--surface));
}
.product-tag {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 12px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; z-index: 1;
}
.tag-crate { background: rgba(0,229,255,.15); color: var(--accent); border: 1px solid rgba(0,229,255,.3); }
.tag-rank { background: rgba(244,114,182,.15); color: var(--accent-3); border: 1px solid rgba(244,114,182,.3); }
.tag-shard { background: rgba(124,58,237,.15); color: #a78bfa; border: 1px solid rgba(124,58,237,.3); }
.tag-home { background: rgba(244,163,74,.15); color: var(--accent-2); border: 1px solid rgba(244,163,74,.3); }
.tag-restore {background: rgba(255, 165, 0, 0.15); color: #ffb347; border: 1px solid #ffb347; padding: 4xp 10px; border-radius: 999px; font-size: 11px; font-weight: 700;}
.tag-admin {background: rgba(255, 0, 0, 0.15); color: #ff4d4d; border: 1px solid #ff4d4d; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;}
.product-info { padding: 18px; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product-info p { color: var(--text-muted); font-size: .85rem; margin-bottom: 14px; min-height: 38px; }
.product-price { display: flex; align-items: center; justify-content: space-between; }
.product-price .price { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; color: var(--accent); font-weight: 700; }
.add-btn {
  padding: 8px 16px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-weight: 600; font-size: .85rem; transition: var(--transition); font-family: inherit;
}
.add-btn:hover { background: var(--accent); color: #001; border-color: var(--accent); }

/* ===== How It Works ===== */
.how-it-works { padding: 80px 0; background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step {
  text-align: center; padding: 36px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem; font-weight: 700;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--text-muted); font-size: .9rem; }

/* ===== FAQ ===== */
.faq { padding: 80px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq-q {
  width: 100%; padding: 18px 20px; background: none; border: none; color: var(--text);
  font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; text-align: left; font-family: inherit;
}
.faq-icon { font-size: 1.4rem; color: var(--accent); transition: var(--transition); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 18px; color: var(--text-muted); font-size: .9rem; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ===== Contact ===== */
.contact { padding: 80px 0; }
.contact-card {
  text-align: center; background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 24px;
}
.contact-card h2 { font-family: 'Orbitron', sans-serif; margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); margin-bottom: 24px; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-pill {
  padding: 10px 24px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border);
  transition: var(--transition); font-weight: 500;
}
.contact-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ===== Footer ===== */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 50px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: .9rem; margin-bottom: 14px; color: var(--text); }
.footer-links a, .footer-links span { display: block; color: var(--text-muted); font-size: .85rem; margin-bottom: 8px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: .8rem; }

/* ===== Cart Drawer ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 100%; height: 100%;
  background: var(--bg-2); border-left: 1px solid var(--border); z-index: 201;
  display: flex; flex-direction: column; transition: right .35s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; }
.cart-close { background: none; border: none; color: var(--text); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-emoji { font-size: 2rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 10px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: .9rem; margin-bottom: 4px; }
.cart-item-info .item-price { color: var(--accent); font-weight: 600; font-size: .85rem; }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-qty button { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 1rem; font-family: inherit; }
.cart-qty button:hover { border-color: var(--accent); }
.cart-qty span { font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .8rem; margin-top: 4px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total strong { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; color: var(--accent); }

/* ===== Checkout Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.checkout-modal {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 520px; width: 100%; padding: 28px; position: relative; margin: auto;
}
.checkout-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.checkout-modal h2 { font-family: 'Orbitron', sans-serif; margin-bottom: 16px; }
.checkout-summary { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; }
.checkout-summary .summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.checkout-summary .summary-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; font-weight: 700; }
.checkout-summary .summary-total strong { color: var(--accent); font-family: 'Orbitron', sans-serif; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; }
.form-group input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-size: .9rem; font-family: inherit; transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,229,255,.1); }

.payment-options { display: flex; gap: 12px; }
.payment-option { flex: 1; cursor: pointer; }
.payment-option input { display: none; }
.payment-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); transition: var(--transition); text-align: center;
}
.payment-icon { font-size: 1.8rem; }
.payment-label { font-size: .8rem; font-weight: 600; }
.payment-option input:checked + .payment-card { border-color: var(--accent); background: rgba(0,229,255,.05); }

.payment-instructions { background: var(--surface); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 16px; }
.payment-instructions h4 { margin-bottom: 12px; font-size: .95rem; }
.payment-instructions ol { padding-left: 18px; font-size: .85rem; color: var(--text-muted); }
.payment-instructions ol li { margin-bottom: 6px; }
.qr-placeholder { text-align: center; margin-top: 14px; }
.qr-box { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; background: var(--bg-3); padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.qr-box p { font-size: .75rem; color: var(--text-muted); }
.bank-details { background: var(--bg-3); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.bank-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .85rem; }
.bank-row span { color: var(--text-muted); }

.order-success { text-align: center; padding: 20px 0; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.order-success h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 8px; }
.order-success p { color: var(--text-muted); font-size: .9rem; margin-bottom: 8px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--surface-2); border: 1px solid var(--accent); color: var(--text);
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  z-index: 400; opacity: 0; transition: var(--transition); box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .payment-options { flex-direction: column; }
}
.hero-logo {
    position: absolute;
    width: 330px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(244, 123, 32, 0.5));
}
.hero {
  position: relative;
  min-height: 750px;
  background-image: linear-gradient(
     rgba(5, 10, 20, 0.55),
      rgba(5, 10, 20, 0.75)
      ), url("backgroundshop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
}
.hero-content {
  order: 2;
}
.hero-visual {
  order: 1;
}