:root {
  --black: #000000;
  --bg: #010101;
  --bg2: #080808;
  --panel: #141517;
  --panel-2: #1a1c1f;
  --line: #303236;
  --line-soft: #242628;
  --muted: #8b9098;
  --text: #f2f3f5;
  --text-dim: #c5c8ce;
  --white: #ffffff;
  --ok: #6bdb9a;
  --danger: #e86a6a;
  --radius: 16px;
  --font: "Cairo", system-ui, sans-serif;
  --display: "Outfit", "Cairo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 80% -5%, rgba(48, 50, 54, 0.45), transparent 55%),
    radial-gradient(700px 380px at 5% 30%, rgba(20, 21, 23, 0.9), transparent 50%),
    linear-gradient(180deg, var(--bg2) 0%, var(--black) 45%, var(--bg) 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1120px, 92vw); margin-inline: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(1, 1, 1, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
}
.brand-name .sep {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0.15em;
}

.nav-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-soft {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text-dim);
}
.btn-danger {
  background: rgba(232, 106, 106, 0.12);
  border-color: rgba(232, 106, 106, 0.35);
  color: #ffb4b4;
}
.btn-discord {
  background: #5865f2;
  color: #fff;
  border-color: #5865f2;
}
.btn-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
}

.auth-menu {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.auth-menu-split {
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: visible;
}
.auth-menu-split .auth-menu-main,
.auth-menu-split .auth-menu-caret {
  border: none;
  border-radius: 0;
}
.auth-menu-split .auth-menu-main {
  border-radius: 999px 0 0 999px;
  padding-inline: 1rem;
}
.auth-menu-split .auth-menu-caret {
  border-radius: 0 999px 999px 0;
  border-inline-start: 1px solid var(--line-soft);
  padding-inline: 0.7rem;
  min-width: auto;
}
html[dir="rtl"] .auth-menu-split .auth-menu-main {
  border-radius: 0 999px 999px 0;
}
html[dir="rtl"] .auth-menu-split .auth-menu-caret {
  border-radius: 999px 0 0 999px;
  border-inline-start: none;
  border-inline-end: 1px solid var(--line-soft);
}
.auth-menu-btn {
  min-width: 7.5rem;
}
.auth-menu-btn .chev {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.75em;
  opacity: 0.75;
}
.auth-menu.open .auth-menu-btn .chev {
  transform: rotate(180deg);
}
.auth-menu-list {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 60;
  display: none;
  animation: fade 0.18s ease both;
}
.auth-menu.open .auth-menu-list {
  display: block;
}
.auth-menu-label {
  padding: 0.45rem 0.75rem 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.auth-menu-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: right;
}
.auth-menu-item:hover {
  background: var(--panel-2);
}
.auth-menu-item .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #5865f2;
  color: #fff;
  flex-shrink: 0;
}
.auth-menu-item .meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.25;
}
.auth-menu-item .meta small {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}
.auth-menu-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem 0.35rem;
}
.auth-menu-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.auth-menu-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 0.35rem 0.4rem;
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 20% auto 20%;
  height: 220px;
  background: radial-gradient(circle, rgba(48, 50, 54, 0.55), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-kicker {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.96;
  margin: 0.55rem 0 1rem;
  font-weight: 800;
  color: var(--white);
}

.hero p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.stats strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  font-family: var(--display);
}

.section { padding: 3.2rem 0; }
.section-shop { padding-top: 2.4rem; padding-bottom: 4rem; }
.container-shop { width: min(980px, 94vw); }
.section-head { margin-bottom: 1.6rem; }
.section-head .eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0.35rem 0;
  color: var(--white);
}
.section-head p { color: var(--muted); margin: 0; max-width: 36rem; }

.grid { display: grid; gap: 1.1rem; }
.products {
  grid-template-columns: 1fr;
  gap: 1.4rem;
  width: min(420px, 100%);
  margin-left: auto;
  margin-right: 0;
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg2) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Giant product showcase */
.product-mega {
  position: relative;
}
.product-mega-stage {
  position: relative;
  min-height: 480px;
  max-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #050505;
  isolation: isolate;
}
.product-mega-shot {
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: 560px;
  object-fit: cover;
  object-position: left top;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}
.product-mega:hover .product-mega-shot {
  transform: scale(1.06);
}
.product-mega-fallback {
  min-height: 480px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(400px 200px at 50% 20%, rgba(60, 62, 68, 0.45), transparent 70%),
    #050505;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--white);
}
.product-mega-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 28%, transparent 42%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
  z-index: 1;
}
.product-mega-dock {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: dockUp 0.65s ease both;
}
.product-mega-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.product-mega-brand span {
  color: var(--muted);
  margin: 0 0.2em;
}
.product-mega-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--white);
  font-weight: 800;
}
.product-mega-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.45;
}
.product-mega-variants {
  margin: 0.2rem 0 0.1rem;
}
.product-mega-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.product-mega-price {
  margin: 0;
  font-size: 1.35rem;
}
.product-mega-buy {
  min-width: 140px;
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.1);
}
@keyframes dockUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}

.card h3 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--white);
}
.card .short {
  color: var(--muted);
  min-height: 2.8em;
  font-size: 0.95rem;
}
.price {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 1rem 0 0.8rem;
  color: var(--white);
}

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem;
}
.chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.chip:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.chip.active {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.features li { padding: 0.2rem 0; }
.features li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 1.2rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  z-index: 99;
  display: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.toast.show { display: block; animation: up 0.35s ease; }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1rem;
}
.modal-bg.open { display: grid; }
.modal {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
}
.modal h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  color: var(--white);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.85rem 0;
}
.field label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.field input,
.field textarea,
.field select {
  background: var(--bg2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--line);
}

@keyframes up {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: fade 0.55s ease both; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2.3rem; }
  .products {
    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
  }
  .product-mega-stage,
  .product-mega-shot,
  .product-mega-fallback {
    min-height: 420px;
    max-height: 480px;
  }
  .product-mega-buy {
    width: 100%;
  }
  .product-mega-row {
    flex-direction: column;
    align-items: stretch;
  }
}
