/* ========================================================
   BTC Pool — Main CSS
   Shared variables, reset, components
   ======================================================== */

/* --------------------------------------------------------
   CSS Custom Properties — Dark (default)
   -------------------------------------------------------- */
:root {
  /* Backgrounds — deep navy dark theme */
  --bg-base:       #080c14;
  --bg-card:       #0d1526;
  --bg-card-alt:   #0a1020;
  --bg-elevated:   #10192e;
  --bg-hover:      rgba(59,130,246,0.06);
  --bg-active:     rgba(59,130,246,0.10);

  /* Borders */
  --border:        rgba(30,60,114,0.35);
  --border-subtle: rgba(30,60,114,0.15);

  /* Text */
  --text-primary:   #f0f6fc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  /* Legacy orange — kept for badge compatibility, NOT used as primary */
  --orange:       #f97316;
  --orange-dark:  #ea6c10;
  --orange-dim:   rgba(249, 115, 22, 0.14);
  --orange-glow:  rgba(249, 115, 22, 0.08);

  /* Primary accent — blue/cyan */
  --accent:       #3b82f6;
  --accent-dark:  #2563eb;
  --accent-bright:#60a5fa;
  --accent-dim:   rgba(59,130,246,0.12);
  --accent-glow:  rgba(59,130,246,0.08);

  /* Status Colors */
  --green:        #10b981;
  --green-dim:    rgba(16, 185, 129, 0.12);
  --green-border: rgba(16, 185, 129, 0.25);
  --amber:        #f59e0b;
  --amber-dim:    rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.25);
  --blue:         #60a5fa;
  --blue-dim:     rgba(59, 130, 246, 0.12);
  --red:          #f85149;
  --red-dim:      rgba(248, 81, 73, 0.12);
  --gray:         #64748b;
  --gray-dim:     rgba(100, 116, 139, 0.10);
  --gray-border:  rgba(100, 116, 139, 0.18);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', Monaco, monospace;

  /* Sizing */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow:    0 1px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.7);
}

/* --------------------------------------------------------
   Light Mode Overrides
   -------------------------------------------------------- */
html[data-theme="light"] {
  --bg-base:       #f4f6f9;
  --bg-card:       #ffffff;
  --bg-card-alt:   #f8fafc;
  --bg-elevated:   #f0f2f5;
  --bg-hover:      #edf2f7;
  --bg-active:     #e2e8f0;

  --border:        #e2e8f0;
  --border-subtle: #f1f5f9;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --orange-dim:   rgba(249, 115, 22, 0.10);
  --orange-glow:  rgba(249, 115, 22, 0.06);

  --accent:       #2563eb;
  --accent-dark:  #1d4ed8;
  --accent-bright:#3b82f6;
  --accent-dim:   rgba(37,99,235,0.08);
  --accent-glow:  rgba(37,99,235,0.06);

  --green-dim:    rgba(16, 185, 129, 0.10);
  --green-border: rgba(16, 185, 129, 0.25);
  --amber-dim:    rgba(245, 158, 11, 0.10);
  --amber-border: rgba(245, 158, 11, 0.25);
  --blue-dim:     rgba(59, 130, 246, 0.08);
  --red-dim:      rgba(220, 38, 38, 0.08);
  --gray-dim:     rgba(100, 116, 139, 0.10);
  --gray-border:  rgba(100, 116, 139, 0.20);

  --blue:         #2563eb;
  --green:        #059669;
  --amber:        #d97706;
  --red:          #dc2626;
  --gray:         #64748b;

  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}

/* --------------------------------------------------------
   Theme Transition (only active after user interaction)
   -------------------------------------------------------- */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.18s ease,
    box-shadow 0.22s ease !important;
}

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  display: block;
}

button {
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------
   Utility
   -------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.mono {
  font-family: var(--font-mono);
}

.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-orange    { color: var(--orange); }
.text-green     { color: var(--green); }
.text-amber     { color: var(--amber); }
.text-blue      { color: var(--blue); }
.text-red       { color: var(--red); }

/* --------------------------------------------------------
   Status Dot
   -------------------------------------------------------- */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green  { background: var(--green); box-shadow: 0 0 5px var(--green); }
.dot-amber  { background: var(--amber); }
.dot-gray   { background: var(--gray); }
.dot-orange { background: var(--orange); }

/* --------------------------------------------------------
   Badges
   -------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-online {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.badge-prepared {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.badge-offline {
  background: var(--gray-dim);
  color: var(--gray);
  border: 1px solid var(--gray-border);
}

.badge-blue {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(88, 166, 255, 0.2);
}

/* --------------------------------------------------------
   Buttons
   -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.30);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-dark), #1e3a8a);
  box-shadow: 0 4px 18px rgba(59,130,246,0.40);
  text-decoration: none;
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--bg-hover);
  text-decoration: none;
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 14px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}

/* --------------------------------------------------------
   Forms
   -------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 2px;
}

/* --------------------------------------------------------
   Cards
   -------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------
   Divider
   -------------------------------------------------------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* --------------------------------------------------------
   Alert / Banner
   -------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px;
}

.alert-green {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.alert-amber {
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  color: var(--amber);
}

.alert-blue {
  background: var(--blue-dim);
  border: 1px solid rgba(88,166,255,0.2);
  color: var(--blue);
}

/* --------------------------------------------------------
   Copy Button
   -------------------------------------------------------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.copy-btn.copied {
  color: var(--green);
}

/* --------------------------------------------------------
   Scrollbar
   -------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --------------------------------------------------------
   Animations & Keyframes
   -------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes badge-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.animate-fadein   { animation: fadeIn 0.25s ease both; }
.animate-fadeup   { animation: fadeInUp 0.3s ease both; }
.animate-scalein  { animation: scaleIn 0.2s ease both; }

/* --------------------------------------------------------
   Theme Toggle Button
   -------------------------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* --------------------------------------------------------
   Modal
   -------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.18s ease;
}

html[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* --------------------------------------------------------
   Cart Drawer
   -------------------------------------------------------- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  display: none;
  animation: fadeIn 0.15s ease;
}

.cart-drawer-backdrop.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
}

.cart-count-badge.bounce {
  animation: badge-bounce 0.4s ease;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  gap: 10px;
}

.cart-empty svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 4px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s;
}

.cart-item-remove:hover {
  color: var(--red);
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}

.cart-total-label {
  color: var(--text-muted);
}

.cart-total-value {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 16px;
}

/* Nav cart icon */
.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cart-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-cart-btn svg {
  width: 16px;
  height: 16px;
}

.nav-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-cart-count.visible {
  display: flex;
}

/* --------------------------------------------------------
   Product Cards (shop)
   -------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  transform: translateY(-3px);
}

.product-image {
  width: 100%;
  height: 180px;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .product-image {
  background: var(--bg-card-alt);
}

.product-image-icon {
  font-size: 64px;
  opacity: 0.12;
}

.product-image-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.product-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.product-tagline {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

html[data-theme="light"] .spec-badge {
  background: var(--bg-card-alt);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-price.demo {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.product-avail {
  font-size: 11px;
}

.product-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.product-card-footer .btn {
  flex: 1;
  justify-content: center;
  font-size: 12.5px;
}

/* --------------------------------------------------------
   Hashrate Package Cards
   -------------------------------------------------------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .package-grid { grid-template-columns: 1fr; } }

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.package-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  transform: translateY(-2px);
}

.package-card.popular {
  border-color: var(--accent);
}

.package-popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.package-duration {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.package-hashrate {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
}

.package-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.package-price.demo {
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  width: fit-content;
}

.package-chance {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.package-chance strong {
  color: var(--text-secondary);
}

/* --------------------------------------------------------
   Checkout Steps
   -------------------------------------------------------- */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.checkout-step::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
}

.checkout-step:last-child::after {
  display: none;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.step-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.checkout-step.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.checkout-step.active .step-label {
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-step.done .step-circle {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

.checkout-step.done .step-label {
  color: var(--green);
}

/* --------------------------------------------------------
   Tabs
   -------------------------------------------------------- */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
}

.tab-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow);
  font-weight: 600;
}

html[data-theme="light"] .tab-btn.active {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------
   Filter chips
   -------------------------------------------------------- */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-bright);
  font-weight: 600;
}

/* --------------------------------------------------------
   Disclaimer box
   -------------------------------------------------------- */
.disclaimer {
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--amber);
}

/* --------------------------------------------------------
   Payment method cards
   -------------------------------------------------------- */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-card {
  background: var(--bg-card-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-align: center;
}

.payment-card:hover {
  border-color: var(--accent);
}

.payment-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.payment-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.payment-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.payment-card-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------
   Status page (confirmed / pending)
   -------------------------------------------------------- */
.status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  padding: 40px;
}

.status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.status-icon.success {
  background: var(--green-dim);
  border: 2px solid var(--green-border);
  color: var(--green);
}

.status-icon.pending {
  background: var(--amber-dim);
  border: 2px solid var(--amber-border);
  color: var(--amber);
}

.status-icon svg {
  width: 36px;
  height: 36px;
}

.status-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.status-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

/* --------------------------------------------------------
   Public page wrapper (shop, buy-hashrate pages)
   -------------------------------------------------------- */
.public-page {
  min-height: 100vh;
  background: var(--bg-base);
}

.public-page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

@media (max-width: 768px) {
  .public-page-main { padding: 24px 20px 60px; }
}

.page-section-header {
  margin-bottom: 28px;
}

.page-section-header h1,
.page-section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.page-section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------
   Theme toggle icon states
   -------------------------------------------------------- */
html[data-theme="light"] .icon-sun { display: none !important; }
html[data-theme="dark"]  .icon-moon { display: none !important; }
html[data-theme="light"] .icon-moon { display: block !important; }
html[data-theme="dark"]  .icon-sun { display: block !important; }

/* --------------------------------------------------------
   Badge — orange variant
   -------------------------------------------------------- */
.badge-orange {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.22);
}

/* --------------------------------------------------------
   Animations
   -------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes badge-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-fadein  { animation: fadeIn 0.3s ease; }
.animate-fadeup  { animation: fadeInUp 0.3s ease; }
.animate-scalein { animation: scaleIn 0.22s ease; }

/* --------------------------------------------------------
   Alert — red variant
   -------------------------------------------------------- */
.alert-red {
  background: var(--red-dim);
  border: 1px solid rgba(248,81,73,0.2);
  color: var(--red);
}

/* --------------------------------------------------------
   Light mode: public nav / page overrides
   -------------------------------------------------------- */
html[data-theme="light"] .public-nav,
html[data-theme="light"] .land-nav {
  background: #fff;
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .setup-config {
  background: #f8fafc;
}

/* --------------------------------------------------------
   Hover card lift (shared utility)
   -------------------------------------------------------- */
.hover-lift {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
