/* Modern storefront theme — mobile-first, overrides legacy where needed */

:root {
  --bg: #0f0f14;
  --bg-elevated: #18181f;
  --bg-card: #1e1e28;
  --bg-card-hover: #252532;
  --text: #f4f4f8;
  --text-muted: #9ca3b8;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --success: #34d399;
  --error: #f472b6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
  --font: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  transition: color var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-brand__logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(168px, 52vw);
}

.site-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__link--lang {
  border: 1px solid var(--border-strong);
  margin-left: 4px;
}

.cart-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 8px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__link {
    padding: 14px 16px;
    font-size: 1rem;
  }
}

/* Main */
.main-content {
  padding: 28px 0 56px;
  min-height: calc(100vh - var(--header-h) - 120px);
}

.main-content--good .container {
  max-width: 100%;
  padding: 0 16px;
}

/* Hero */
.page-hero,
.hero {
  text-align: center;
  padding: 48px 28px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero--compact {
  padding: 36px 24px;
}

.page-hero h1,
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p,
.hero p {
  margin: 0;
  opacity: 0.92;
  font-size: 1rem;
  max-width: 560px;
  margin-inline: auto;
}

.hero .btn {
  margin-top: 20px;
}

/* Cards & panels */
.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

/* Catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}

.good-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.good-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.good-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.good-card-body {
  padding: 14px;
  flex: 1;
}

.good-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.good-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.badge {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-tabs a {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}

.category-tabs a.active,
.category-tabs a:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent-gradient);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  font-family: inherit;
  transition: opacity var(--transition), transform var(--transition);
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-elevated);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.alert-error {
  background: rgba(244, 114, 182, 0.12);
  color: var(--error);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table,
.checkout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td,
.checkout-table th,
.checkout-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

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

.checkout-table {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Referral */
.referral-dashboard {
  max-width: 720px;
  margin: 0 auto;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .referral-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.referral-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.referral-stat-card--highlight {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.08));
}

.referral-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.referral-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.referral-link-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

@media (min-width: 520px) {
  .referral-link-row {
    flex-direction: row;
    align-items: stretch;
  }

  .referral-link-row .form-control {
    flex: 1;
  }
}

.referral-code-note code {
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.steps-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.steps-list li {
  margin-bottom: 8px;
}

.referral-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Crypto payment panel */
.crypto-payment-panel {
  margin-top: 32px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

.crypto-payment-panel.is-open {
  max-height: 5000px;
  opacity: 1;
}

.crypto-payment-panel[hidden] {
  display: none !important;
}

.crypto-payment-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.crypto-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.crypto-wallet-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}

.crypto-wallet-card:hover,
.crypto-wallet-card.active {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.crypto-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}


.crypto-address-box {
  margin-bottom: 4px;
}

.crypto-address-box .btn-copy {
  margin-top: 10px;
  width: 100%;
}

#crypto-confirm-form {
  margin-top: 22px;
  padding-top: 4px;
}

#crypto-submit-btn {
  width: 100%;
  margin-top: 4px;
}

.crypto-address {
  word-break: break-all;
  display: block;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  font-size: 0.85rem;
}

.referral-pay-box {
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.referral-pay-box.is-active {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}

.site-footer__inner {
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer__note {
  margin-top: 4px !important;
  font-size: 0.8rem !important;
}

.fx-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Product page tweaks (good-page.css complements) */
.main-content--good .good-header-data h1,
.good-header-data h1 {
  color: var(--text);
}

.good-packs-grid .pack {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}

.good-packs-grid .pack.selected {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
}

.good-packs-grid .pack-prices_actual {
  color: var(--accent-2) !important;
}

/* Legacy overrides — hide duplicate donatov nav if present */
#app > .container-fluid.navigation,
.navigation.container-fluid {
  display: none !important;
}

/* Page titles */
h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

/* Admin */
.admin-orders table {
  width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--text-muted);
  opacity: 0.6;
}
.breadcrumbs__item a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs__item a:hover {
  color: var(--accent-2);
}
.breadcrumbs__item span[aria-current] {
  color: var(--text);
  font-weight: 500;
}
.page-header .page-intro,
.product-intro {
  max-width: 65ch;
  line-height: 1.65;
}
.crypto-seo-content {
  margin-top: 24px;
}
.crypto-seo-content h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.seo-benefits-list {
  margin: 12px 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}
.seo-benefits-list li {
  margin-bottom: 6px;
}
.crypto-seo-footer {
  margin-bottom: 0;
  font-size: 0.88rem;
}
.seo-blurb {
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.catalog-more {
  margin-top: 24px;
  text-align: center;
}
.catalog-more a {
  font-weight: 600;
}
.good-card__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.catalog-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.product-listing-seo {
  margin-top: 40px;
}
.product-listing-seo__intro {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.product-listing-seo__intro a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
}
.product-listing-seo__intro a:hover {
  text-decoration: underline;
}
.product-listing-seo__subhead {
  font-size: 1rem;
  margin: 20px 0 10px;
}
.product-listing-seo__pack-list {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 24px;
}
.product-listing-seo__pack-list li {
  margin-bottom: 6px;
  break-inside: avoid;
}
.product-listing-seo__pack-list a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
}
.product-listing-seo__pack-list a:hover {
  text-decoration: underline;
}
.product-listing-seo__price {
  color: var(--text-muted);
  font-size: 0.9em;
}
.product-listing-seo__related-lead {
  margin: 0 0 8px;
  color: var(--text-muted);
}
.product-listing-seo__related-links a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
}
.product-listing-seo__related-links a:hover {
  text-decoration: underline;
}
.catalog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .catalog-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-listing-seo__pack-list {
    columns: 1;
  }
}
@media (max-width: 520px) {
  .catalog-grid--related {
    grid-template-columns: 1fr 1fr;
  }
}
.internal-links {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.internal-links__title {
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.internal-links__more {
  margin-top: 16px;
  font-size: 0.9rem;
}
.internal-links__more a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
}
.product-price-lead {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 8px 0;
}
.footer-nav {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.footer-nav__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-nav a:hover {
  color: var(--accent-2);
}
.site-footer__note a {
  color: var(--text-muted);
}



/* Referral hero — simple */
.hero--referral-simple {
  text-align: center;
  padding: 40px 28px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6d28d9 0%, #0891b2 100%);
  color: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero--referral-simple h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero--referral-simple .hero--referral__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #5b21b6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero--referral-simple .hero--referral__lead {
  margin: 0 auto 16px;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.hero--referral-simple .hero__perks {
  list-style: none;
  padding: 0;
  margin: 0 auto 20px;
  max-width: 32rem;
  text-align: left;
}

.hero--referral-simple .hero__perks li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero--referral-simple .hero__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #a7f3d0;
  font-weight: 700;
}

.hero--referral-simple .hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hero--referral-simple .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero--referral-simple .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}


/* Listing cards with Buy + Free */
.catalog-grid--cards {
  align-items: stretch;
}
.good-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.good-card-wrap .good-card {
  flex: 1;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}
.good-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.good-card-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.85rem;
}
.btn-free-link {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  color: #fff !important;
  border: none !important;
}
.btn-buy-link {
  background: var(--accent-gradient) !important;
}
.good-card__meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 4px;
}
.pack-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.pack-actions .btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
}
.home-listings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.home-listings__head h2 {
  margin: 0;
}
.home-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-sort__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.home-sort__select {
  width: auto;
  min-width: 160px;
  padding: 8px 12px;
}
.referral-panel--highlight {
  animation: referralPulse 1.2s ease 2;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.45);
}
@keyframes referralPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.35); }
}
body.referral-slide-active {
  scroll-behavior: smooth;
}
@media (min-width: 520px) {
  .pack-actions {
    flex-direction: row;
  }
  .pack-actions .btn {
    width: auto;
    flex: 1;
  }
}

/* === Theme guard (loads after vendor/app on product pages) === */
html {
  color-scheme: dark;
}

#app.app-shell {
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

#app.app-shell .main-content,
#app.app-shell .container {
  color: var(--text);
}

#app.app-shell .container {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
}

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

#app.app-shell a:not(.btn):not(.good-card):not(.site-nav__link):not(.category-tabs a) {
  color: var(--accent-2);
}

#app.app-shell .form-control,
#app.app-shell select,
#app.app-shell input,
#app.app-shell textarea {
  background-color: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-color: var(--border-strong) !important;
}

#app.app-shell .checkout-table,
#app.app-shell .data-table {
  color: var(--text);
}

#app.app-shell .checkout-table th,
#app.app-shell .checkout-table td,
#app.app-shell .data-table th,
#app.app-shell .data-table td {
  color: var(--text);
  border-color: var(--border);
}

/* Catalog card title (h2/h3) */
.good-card .good-card__title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.good-card-wrap:hover {
  transform: translateY(-3px);
  transition: transform var(--transition);
}

.good-card-wrap:hover .good-card,
.good-card-wrap:hover .good-card-actions {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.referral-promo.card-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}


.good-card__seo {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-seo-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52rem;
}

.product-reviews {
  margin-top: 2rem;
}
.product-reviews__head {
  margin-bottom: 1rem;
}
.product-reviews__summary {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}
.product-reviews__stars {
  color: #fbbf24;
  letter-spacing: 0.05em;
  margin-right: 0.35rem;
}
.product-reviews__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.product-review {
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.product-review__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.product-review__author {
  font-weight: 600;
  color: var(--text);
}
.product-review__meta {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-review__rating {
  color: #fbbf24;
}
.product-review__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}


.catalog-search {
  margin-bottom: 1.25rem;
  width: 100%;
}
.catalog-search__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.catalog-search__input {
  flex: 1 1 280px;
  max-width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%239ca3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.1a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 14px center;
  color: var(--text);
}
.catalog-search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.catalog-search__empty {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.catalog-search__empty[hidden] {
  display: none;
}
.good-card-wrap.is-search-hidden {
  display: none !important;
}


/* GameWiwi — mobile & touch optimizations */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.container {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
input, select, textarea, .form-control {
  font-size: 16px;
  max-width: 100%;
}
.btn, .site-nav__link, .nav-toggle {
  min-height: 44px;
}
.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
@media (max-width: 480px) {
  .main-content { padding: 20px 0 40px; }
  .hero--referral-simple { padding: 28px 16px; }
  .home-listings__head { flex-direction: column; align-items: stretch; }
  .good-packs-grid { grid-template-columns: 1fr; }
  .crypto-wallet-grid { grid-template-columns: 1fr 1fr; }
  .site-brand__logo { max-width: 140px; }
}
