:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: #111b2d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f8fb;
  --muted: #bac6d8;
  --accent: #20c997;
  --gold: #f4c430;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 17, 31, 0.88), rgba(8, 17, 31, 0.94)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1600&h=1000&fit=crop") center/cover fixed;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 14, 26, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  padding: 0.9rem 0;
}

.brand {
  display: grid;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.brand span,
.eyebrow,
.card-label {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.78rem;
}

.site-nav,
.nav-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
}

.site-nav a.active {
  color: var(--accent);
}

.button,
.quick-actions button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text);
  background: #101827;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.quick-actions button:hover,
.link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}

.primary,
.call-button {
  background: var(--accent);
  color: #04140f;
  border-color: transparent;
}

.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.full-button {
  width: 100%;
  margin: 1rem 0;
}

.page-section {
  display: none;
  padding: 4rem 0;
}

.page-section.active {
  display: block;
}

.hero {
  min-height: calc(100vh - 74px);
  align-items: center;
}

.hero.active {
  display: grid;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.02;
}

.hero-copy p,
.section-header p,
.panel p,
.product-card p,
.order-card p {
  color: var(--muted);
}

.eyebrow,
.card-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
}

.hero-panel,
.auth-card,
.panel,
.stat-card,
.category-card,
.product-card,
.plan-card,
.investment-card,
.order-card {
  background: rgba(17, 27, 45, 0.95);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.hero-panel,
.auth-card,
.panel {
  padding: 1.5rem;
}

.hero-panel h2,
.section-header h2,
.panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.info-band {
  background: rgba(7, 14, 26, 0.96);
}

.section-header {
  margin-bottom: 1.5rem;
}

.tab-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tab-button {
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  color: #04140f;
  background: var(--accent);
  border-color: transparent;
}

.form-grid,
.category-grid,
.products-grid,
.plans-grid,
.orders-list,
.investment-list,
.dashboard-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.input-group {
  display: grid;
  gap: 0.45rem;
}

.input-group label {
  font-weight: 800;
}

.input-group input,
.input-group textarea,
.select-field {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.95);
  color: var(--text);
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  padding: 1.25rem;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.category-card strong {
  display: block;
  font-size: 1.15rem;
}

.category-card span {
  color: var(--muted);
}

.products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
}

.plans-grid {
  margin-bottom: 1.5rem;
}

.product-card,
.plan-card,
.investment-card,
.order-card,
.stat-card {
  padding: 1rem;
}

.product-card {
  display: grid;
  gap: 0.75rem;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #050a12;
}

.product-meta,
.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  color: #06120e;
  background: var(--gold);
  font-weight: 900;
  font-size: 0.82rem;
}

.price {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 900;
}

.stat-card p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  font-size: 1.35rem;
}

.deposit-account,
.referral-box {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.deposit-account a,
.referral-box strong {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

.history-card {
  overflow: hidden;
}

.history-table-wrapper {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.history-table th {
  color: var(--text);
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  background: rgba(7, 14, 26, 0.96);
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .header-inner,
  .split-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .dashboard-grid,
  .stats-grid,
  .products-grid,
  .plans-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-nav,
  .nav-actions,
  .hero-actions {
    width: 100%;
  }

  .quick-actions,
  .hero-grid,
  .dashboard-grid,
  .stats-grid,
  .products-grid,
  .plans-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .page-section {
    padding: 3rem 0;
  }
}
