html,
html[data-theme="black"] {
  color-scheme: dark;
  background: #090b14;
}

body,
html[data-theme="black"] body {
  display: block;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 75% 17%, rgba(86,63,180,.13), transparent 34%),
    radial-gradient(ellipse at 2% 46%, rgba(32,99,162,.08), transparent 30%),
    #090b14 !important;
  color: #f5f4fb !important;
  font-family: "DM Sans", sans-serif;
}

.header,
html[data-theme="black"] .header {
  position: relative;
  z-index: 20;
  height: 88px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.header-content {
  width: min(1160px, calc(100% - 64px));
  max-width: 1160px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  justify-content: space-between;
  gap: 20px;
}

.header-logo,
.header-logo.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: #f5f4fb !important;
  font: 700 21px "Space Grotesk", sans-serif;
  letter-spacing: -.8px;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}

.header-logo .brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(185,164,255,.42);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(167,139,250,.27), rgba(81,113,255,.12));
  color: #d7c8ff;
  font-size: 15px;
}

.header-logo .brand-period { color: #a78bfa; }

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-left: auto;
}

.header-actions .store-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 0 14px;
  border: 1px solid rgba(191,170,255,.22) !important;
  border-radius: 10px;
  background: rgba(145,117,230,.08) !important;
  box-shadow: none !important;
  color: #e5dcff !important;
  cursor: pointer;
  font: 700 12px "DM Sans", sans-serif;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.header-actions .store-nav-button:hover {
  transform: translateY(-1px);
  background: rgba(145,117,230,.17) !important;
}

.header-actions .store-nav-button span { color: #c9b4ff; }
.header-actions #themeToggleButton::after { content: "↗"; color: #c9b4ff; }

.user-balance {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(167,139,250,.23);
  border-radius: 9px;
  background: rgba(145,117,230,.1);
  color: #d8caff !important;
  font-size: 11px;
  font-weight: 700;
}

.container {
  width: min(1160px, calc(100% - 64px));
  max-width: 1160px;
  margin: 0 auto;
  flex: initial;
}

.content,
html[data-theme="black"] .content {
  width: 100%;
  margin: 0;
  padding: 34px 0 56px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.content > .page-title {
  margin: 0 0 11px;
  color: #f5f4fb !important;
  font: 600 clamp(36px, 5vw, 54px)/1.08 "Space Grotesk", sans-serif;
  letter-spacing: -2px;
  text-shadow: none !important;
}

.content > .page-subtitle {
  max-width: 720px;
  margin: 0 0 28px;
  color: #a4a6b6 !important;
  font-size: 13px;
  line-height: 1.8;
}

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(235px, .75fr);
  gap: 16px;
  margin: 18px 0;
  padding: 0;
}

.hero-copy,
html[data-theme="black"] .hero-copy {
  isolation: auto;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(180,161,255,.17) !important;
  border-radius: 15px;
  background: radial-gradient(ellipse at 100% 0%, rgba(112,91,197,.17), transparent 45%), linear-gradient(145deg, rgba(22,25,40,.96), rgba(13,15,25,.96)) !important;
  box-shadow: none !important;
}

.hero-copy::after { display: none; }

.eyebrow {
  width: fit-content;
  margin: 0 0 15px;
  padding: 6px 9px;
  border: 1px solid rgba(167,139,250,.2);
  border-radius: 6px;
  background: rgba(137,112,211,.1);
  color: #bea8ff !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .9px;
}

.hero-copy .page-title,
html[data-theme="black"] .hero-copy .page-title {
  margin: 0 0 10px !important;
  color: #f5f4fb !important;
  font: 600 clamp(25px, 3vw, 36px)/1.12 "Space Grotesk", sans-serif !important;
  letter-spacing: -1.2px !important;
  text-shadow: none !important;
}

.hero-copy .page-subtitle,
html[data-theme="black"] .hero-copy .page-subtitle {
  max-width: 630px;
  margin: 0 0 18px !important;
  color: #a4a6b6 !important;
  font-size: 12px;
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-actions .buy-btn,
.hero-actions .secondary-btn,
.buy-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(201,184,255,.42) !important;
  border-radius: 9px;
  background: linear-gradient(110deg, #8867db, #596fce) !important;
  box-shadow: 0 9px 24px rgba(104,85,200,.2) !important;
  color: #fff !important;
  cursor: pointer;
  font: 700 11px "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hero-actions .buy-btn:hover,
.hero-actions .secondary-btn:hover,
.buy-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(104,85,200,.34) !important;
  filter: none;
}

.hero-actions .buy-btn::after,
.hero-actions .secondary-btn::after,
.info-card > .buy-btn::after,
#redeemPromoCodeButton::after,
.nick-purchase-button::after { content: "→"; color: #e5dcff; font-size: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 9px;
}

.stat-card,
html[data-theme="black"] .stat-card,
.hero-stats .stat-card {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px;
  background: rgba(255,255,255,.025) !important;
  box-shadow: none !important;
}

.stat-card strong,
html[data-theme="black"] .stat-card strong {
  margin: 0 0 3px;
  color: #e4ddf7 !important;
  font: 600 18px "Space Grotesk", sans-serif;
}

.stat-card span,
html[data-theme="black"] .stat-card span,
.stat-card .stat-label,
html[data-theme="black"] .stat-card .stat-label {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8e91a2 !important;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.store-alert {
  display: flex;
  max-width: 100%;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0 20px;
  padding: 13px 16px;
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 9px;
  background: rgba(125,103,194,.09) !important;
  color: #c5bce0 !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px; margin-top: 20px; }

.store-card,
.info-card,
html[data-theme="black"] .store-card,
html[data-theme="black"] .info-card {
  padding: 22px;
  border: 1px solid rgba(180,161,255,.13) !important;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(18,21,34,.94), rgba(13,15,25,.94)) !important;
  box-shadow: none !important;
  color: #f5f4fb !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.store-card:hover,
.info-card:hover,
html[data-theme="black"] .store-card:hover,
html[data-theme="black"] .info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(178,157,255,.3) !important;
  background: linear-gradient(150deg, rgba(24,27,44,.97), rgba(15,17,29,.96)) !important;
  box-shadow: none !important;
}

.store-card h3,
.info-card h3,
html[data-theme="black"] .store-card h3,
html[data-theme="black"] .info-card h3 {
  margin: 0 0 10px;
  color: #e8e7ef !important;
  font: 600 16px "Space Grotesk", sans-serif;
  letter-spacing: -.3px;
}

.store-card p,
.info-card p,
html[data-theme="black"] .store-card p,
html[data-theme="black"] .info-card p {
  margin: 0 0 14px;
  color: #9b9eae !important;
  font-size: 11px;
  line-height: 1.75;
}

.price,
.vip-price { color: #d2c4ff !important; }

.info-card { margin-bottom: 14px; }
.feature-list { display: grid; gap: 12px; }
.feature-step { align-items: center; gap: 12px; }
.feature-step .step-number {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 8px;
  background: rgba(153,127,231,.1);
  box-shadow: none;
  color: #c1adff;
  font-size: 10px;
}
.step-text { color: #a4a6b6 !important; font-size: 11px; }

#promoCodeInput {
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px !important;
  outline: none;
  background: #10111a !important;
  color: #eeedf5 !important;
  font: 12px "DM Sans", sans-serif;
}
#promoCodeInput::placeholder { color: #777a8a; }
#promoCodeInput:focus { border-color: rgba(181,153,255,.65) !important; box-shadow: 0 0 0 3px rgba(157,122,238,.12); }

.tab-nav { gap: 8px; margin: 22px 0 14px; }
.tab-button,
.subtab-button {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #a7a9b8;
  font: 600 11px "DM Sans", sans-serif;
}
.tab-button.active,
.subtab-button.active {
  border-color: rgba(167,139,250,.35);
  background: rgba(167,139,250,.12);
  color: #d5c7ff;
  box-shadow: none;
}
.pricing-table { border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(12,14,23,.9); color: #c7c5d0; }
.pricing-table th, .pricing-table td { border-color: rgba(255,255,255,.07); color: #c7c5d0; font-size: 11px; }
.pricing-table th { background: rgba(167,139,250,.08); color: #e8e7ef; }
.price-pill { border: 1px solid rgba(167,139,250,.2); background: rgba(157,122,238,.1); color: #d5c7ff; font-size: 10px; }

.nick-store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 12px; }
.nick-store-card {
  padding: 18px;
  border: 1px solid rgba(180,161,255,.13);
  border-radius: 11px;
  background: rgba(9,10,17,.62);
}
.nick-store-name { color: #e8e7ef; font: 600 16px "Space Grotesk", sans-serif; }
.nick-store-description { color: #9b9eae; font-size: 11px; line-height: 1.6; }
.nick-store-price { margin: 12px 0; color: #d2c4ff; font: 600 16px "Space Grotesk", sans-serif; }
.nick-store-empty { grid-column: 1 / -1; color: #999cad; font-size: 12px; }

.plans-modal .overlay { background: rgba(5,6,12,.78); }
.plans-modal .panel {
  border: 1px solid rgba(169,147,245,.2);
  border-radius: 15px;
  background: linear-gradient(145deg, #181b2c, #0d101c);
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  color: #f5f4fb;
}
.plans-modal .panel-header h3,
.plans-modal .plan-title,
.plans-modal .duration-option strong { color: #f5f4fb; }
.plans-modal .plan-hero,
.plans-modal .features,
.plans-modal .duration-option {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: #c7c5d0;
}
.plans-modal .plan-hero .plan-label,
.plans-modal .duration-option.selected strong { color: #c1a8ff; }
.plans-modal .features ul,
.plans-modal .duration-option small { color: #a4a6b6; }
.plans-modal .duration-option.selected { border-color: rgba(167,139,250,.55); background: rgba(157,122,238,.12); box-shadow: 0 0 0 2px rgba(157,122,238,.1); }
.plans-modal .close-btn { background: rgba(255,255,255,.08); color: #e8e7ef; }
.plans-modal .modal-actions .buy-btn { border-radius: 9px; }

@media (max-width: 900px) {
  .header-content, .container { width: min(100% - 44px, 680px); }
  .hero-banner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .header { height: auto; min-height: 70px; }
  .header-content, .container { width: calc(100% - 36px); }
  .header-content { min-height: 70px; gap: 10px; }
  .header-logo, .header-logo.brand { gap: 8px; font-size: 18px; }
  .header-logo .brand-mark { width: 28px; height: 28px; }
  .header-actions { gap: 6px; }
  .header-actions .store-nav-button { min-height: 35px; padding: 0 9px; font-size: 10px; }
  .user-balance { min-height: 31px; padding: 0 8px; font-size: 10px; }
  .container { margin: 8px auto 28px; }
  .content { padding: 26px 0 38px; }
  .content > .page-title { font-size: clamp(32px, 9vw, 42px); letter-spacing: -1.5px; }
  .content > .page-subtitle { margin-bottom: 20px; font-size: 12px; }
  .hero-banner { gap: 10px; margin: 13px 0; }
  .hero-copy { min-height: 0; padding: 21px 18px; }
  .hero-copy .page-title { font-size: 26px !important; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .stat-card, .hero-stats .stat-card { min-height: 62px; padding: 9px; }
  .stat-card strong { font-size: 14px; }
  .stat-card span, .stat-card .stat-label { font-size: 8px; letter-spacing: 0; }
  .hero-actions .buy-btn, .hero-actions .secondary-btn, .buy-btn, .secondary-btn { min-height: 40px; padding-inline: 12px; font-size: 10px; }
  .store-alert { border-radius: 9px; padding: 12px; font-size: 10px; }
  .info-card { padding: 18px; }
  .nick-store-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .header-content { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .header-actions { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
