*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #020617;
  --bg-alt: #020819;
  --bg-soft: #0f172a;
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.08);
  --accent-strong: #ff3b7f;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 120px);
}

/* Layout */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section.dark {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.logo.small {
  font-size: 0.75rem;
}

.logo-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.logo-text {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  color: #d1d5db;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.18s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-login {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.nav-login.active {
  border-color: var(--accent);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  background: transparent;
  border: none;
  padding: 0.3rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at top, rgba(124, 92, 255, 0.35), transparent 45%), radial-gradient(circle at bottom, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #a5b4fc;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 3.5vw, 3.2rem);
  margin: 0.75rem 0 0.75rem;
  line-height: 1.1;
}

.hero-text h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 28rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.8rem 0 1.6rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7ff;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.13s ease-out, box-shadow 0.13s ease-out, background 0.13s ease-out, border-color 0.13s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.95);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.btn.small {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn.full {
  width: 100%;
}

/* 3D Card */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-3d {
  width: min(380px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #3b82f6 0, #111827 45%, #020617 100%);
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  padding: 1.3rem;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.card-3d:hover {
  cursor: pointer;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 1);
}

.card-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 18% 0%, rgba(96, 165, 250, 0.9), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(244, 63, 94, 0.9), transparent 55%);
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chip {
  align-self: flex-start;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(209, 213, 219, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pc-rig {
  position: relative;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.tower {
  width: 56%;
  height: 90%;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.35);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
  position: relative;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

.tower-glass {
  position: absolute;
  inset: 7%;
  border-radius: 14px;
  border: 1px solid rgba(191, 219, 254, 0.5);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.4), rgba(30, 64, 175, 0.8));
  backdrop-filter: blur(3px);
}

.rgb-strip {
  position: absolute;
  left: 12%;
  top: 12%;
  width: 4px;
  height: 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #a855f7, #f97316);
  box-shadow: 0 0 12px rgba(248, 250, 252, 0.8);
}

.fan {
  position: absolute;
  right: 15%;
  top: 18%;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.75);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  color: #e5e7eb;
  letter-spacing: 0.08em;
}

.fan::after {
  content: "RGB";
}

.monitor {
  position: relative;
  width: 44%;
  height: 54%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.85);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.8), rgba(15, 23, 42, 0.95));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.95);
}

.monitor-stand {
  position: absolute;
  bottom: -15%;
  left: 50%;
  width: 30%;
  height: 35%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 10px rgba(15, 23, 42, 1);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  padding: 1.3rem;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.15), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.product-badge {
  display: inline-flex;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 0.85rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 700;
}

/* Stats */
.section-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.5), rgba(15, 23, 42, 0.98));
  text-align: left;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Lists */
.checklist {
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: #22c55e;
}

/* About cards */
.about-cards {
  display: grid;
  gap: 1rem;
}

.info-card {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), rgba(15, 23, 42, 0.98));
}

.info-card h3 {
  margin-bottom: 0.35rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-layout {
  align-items: flex-start;
}

.contact-form {
  padding: 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.2), rgba(15, 23, 42, 0.98));
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4);
}

.contact-info {
  font-size: 0.9rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin-bottom: 1.3rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.schedule-card {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.15), rgba(15, 23, 42, 0.98));
}

/* Auth */
.auth-layout {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(380px, 100%);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), rgba(15, 23, 42, 0.98));
}

.auth-card h1 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.alert {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.9);
  color: #fecaca;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* Admin panel */
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.admin-sidebar {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(15, 23, 42, 0.98);
}

.admin-sidebar h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.admin-sidebar a {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  color: var(--muted);
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.admin-main h1 {
  margin-bottom: 0.8rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.admin-card {
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), rgba(15, 23, 42, 0.98));
}

.admin-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(30, 64, 175, 0.35);
}

.admin-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.link-btn {
  border: none;
  background: transparent;
  color: #60a5fa;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-right: 0.4rem;
}

.link-btn.danger {
  color: #f97373;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.status-pill.shipped {
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
}

.status-pill.pending {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
  padding: 1.8rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.85rem;
}

.footer-text {
  color: var(--muted);
  margin-top: 0.6rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-meta {
  color: var(--muted);
}

/* 3D tilt utility for cards */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background 0.18s ease-out;
}

.tilt:hover {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

/* Shop layout */
.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.6rem;
}

.shop-filters {
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(15, 23, 42, 0.98);
  font-size: 0.9rem;
}

.shop-filters h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.shop-filters ul {
  list-style: none;
  margin-bottom: 1rem;
}

.shop-filters li {
  margin-bottom: 0.2rem;
}

.filter-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem 0.2rem;
}

.filter-btn.active {
  color: #e5e7eb;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 2rem;
  }
  .product-grid,
  .shop-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-split,
  .shop-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    order: -1;
  }
  .footer-inner {
    flex-direction: column;
  }
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.8rem 5vw 1rem;
    flex-direction: column;
    gap: 0.8rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
  }
  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .product-grid,
  .shop-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
