/*
 * DoubleUp Store — Purple accent dark theme
 *
 * Fonts: Plus Jakarta Sans, IBM Plex Mono, Lora.
 * Sleek, minimal, consistent.
 */

/* ── Reset & Base ─────────────────────────────────────── */

:root {
  --wrapper-mw: 1200px;

  /* Fonts */
  --font-family-1: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-serif: 'Lora', serif;
  --font-body-family: var(--font-family-1);
  --font-heading-family: var(--font-family-1);
  --font-button-family: var(--font-family-1);
  --letter-spacing: -0.025em;

  /* Dark palette (default) — deep, high contrast */
  --body-bg: #0d0e12;
  --panel-bg: #111216;
  --panel-bg-hover: #1e2028;
  --card-bg: #16171c;
  --card-bg-hover: #1e2028;
  --surface-2: #1a1b21;

  --text-color: #f4f4f5;
  --text-muted: #8b8d98;
  --heading-color: #f4f4f5;

  --accent-color: #8c5cff;
  --accent-color-rgb: 140, 92, 255;
  --accent-hover: #7033ff;
  --accent-light: #1e293b;
  --secondary-color: #f4f4f5;

  --link-color: var(--accent-color);
  --link-color-hover: var(--accent-hover);

  --border-color: #252730;
  --border-color-light: #2a2d38;

  --button-bg: var(--accent-color);
  --button-color: #ffffff;
  --button-bg-hover: var(--accent-hover);
  --button-color-hover: #ffffff;

  --button-ghost-bg: transparent;
  --button-ghost-color: var(--text-color);
  --button-ghost-border: var(--border-color);

  --price-color: var(--accent-color);
  --success-color: #4ade80;
  --error-color: #f87171;
  --warning-color: #fca5a5;

  --input-bg: #16171c;
  --input-border: #252730;
  --input-focus-border: var(--accent-color);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1.4rem;

  --transition: 0.2s ease;
}

/* ── Grid vignette background ─────────────────────────── */

.grid-vignette-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--accent-color-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-color-rgb), 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 100%);
}

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

html {
  font-size: 62.5%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 15px;
  color: var(--text-color);
  font-family: var(--font-body-family);
  line-height: 1.7;
  font-weight: 400;
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading-family);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin: 0 0 16px; }

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--link-color-hover); }

code {
  background: rgba(var(--accent-color-rgb), 0.12);
  color: var(--accent-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-mono);
}

strong, b { font-weight: 600; }

.muted, .text-muted { color: var(--text-muted); }
.ok, .text-success { color: var(--success-color); }
.err, .text-error { color: var(--error-color); }
.text-warning { color: var(--accent-color); }

/* ── Layout ───────────────────────────────────────────── */

.wrap {
  max-width: var(--wrapper-mw);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

main.content {
  min-height: calc(100vh - 180px);
  padding: 32px 0;
}

/* ── Dot-grid background pattern ──────────────────────── */

.bg-dots {
  position: relative;
}
.bg-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(var(--accent-color-rgb), 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, var(--body-bg), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, var(--body-bg), transparent 70%);
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
  background: rgba(13, 14, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--heading-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-brand:hover { color: var(--accent-color); text-decoration: none; }

.site-brand .brand-icon {
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.site-brand .brand-logo {
  height: 84px;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9999px;
  transition: all var(--transition);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--heading-color);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* User avatar in header */
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-sm { width: 28px; height: 28px; font-size: 11px; }

.header-user .avatar { cursor: pointer; }

.user-dropdown {
  position: relative;
}

.avatar-wrap {
  position: relative;
  cursor: pointer;
}

.avatar-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--body-bg, #171717);
}

.menu-badge {
  display: inline-block;
  margin-left: 8px;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.site-nav a .nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 50%;
  background: #ef4444;
  vertical-align: middle;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 200px;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.user-dropdown.open .user-dropdown-menu { display: block; }

.user-dropdown-menu a,
.user-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--text-color);
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
  font-family: var(--font-body-family);
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading-color);
}

.user-dropdown-menu .divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.user-dropdown-menu .text-error:hover {
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-radius: 0; }
  .nav-toggle { display: block; }
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  padding: 64px 0 32px;
  margin-top: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
}

.footer-brand:hover { color: var(--accent-color); }

.footer-brand .brand-icon {
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.15s ease;
  display: block;
}

.footer-socials a:hover { color: var(--accent-color); }

.footer-socials svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Cards ────────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.card-highlight {
  border-color: rgba(var(--accent-color-rgb), 0.35);
  background: rgba(var(--accent-color-rgb), 0.04);
}

/* ── Service cards with spotlight glow ────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--accent-color-rgb), 0.06), transparent 40%);
  pointer-events: none;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  border-color: rgba(var(--accent-color-rgb), 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--accent-color-rgb), 0.08), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.service-card h2 { margin-bottom: 12px; font-size: 22px; }
.service-card p { color: var(--text-muted); flex: 1; margin-bottom: 20px; }
.service-card .btn { align-self: flex-start; }

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--button-bg);
  color: var(--button-color);
  font-family: var(--font-button-family);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  background: var(--button-bg-hover);
  color: var(--button-color-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: var(--button-ghost-bg);
  color: var(--button-ghost-color);
  border-color: var(--button-ghost-border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading-color);
  border-color: var(--border-color-light);
}

.btn-danger {
  background: var(--error-color);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ── Forms ─────────────────────────────────────────────── */

label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

label.label-normal {
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea,
select {
  background: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  font-family: var(--font-body-family);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.15);
}

input[type="file"] {
  background: var(--input-bg);
  color: var(--text-color);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  font-family: var(--font-body-family);
  cursor: pointer;
  transition: border-color var(--transition);
}

input[type="file"]:hover { border-color: var(--accent-color); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── Banners ──────────────────────────────────────────── */

.banner {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 6s ease infinite;
  transform: skewX(-12deg);
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%) skewX(-12deg); }
  50% { transform: translateX(100%) skewX(-12deg); }
}

.banner > * { position: relative; z-index: 1; }

.banner-info { border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.08); }
.banner-success { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.08); }
.banner-warning { border-color: rgba(var(--accent-color-rgb), 0.3); background: rgba(var(--accent-color-rgb), 0.08); }
.banner-error { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.08); }

.banner .btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 18px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.banner .btn-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--heading-color);
}

/* ── Announcement (site-wide top banner) ──────────────── */

.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(var(--accent-color-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--accent-color-rgb), 0.2);
  font-size: 14px;
  font-weight: 500;
  color: var(--heading-color);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-color-rgb), 0.06), transparent);
  animation: shimmer 8s ease infinite;
  transform: skewX(-12deg);
}

.announcement-bar > * { position: relative; z-index: 1; }

.announcement-bar .ann-icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.announcement-bar .ann-text {
  color: var(--text-color);
}

.announcement-bar .ann-text strong {
  color: var(--accent-color);
}

.announcement-bar .btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
}

.announcement-bar .btn-close:hover {
  background: rgba(var(--accent-color-rgb), 0.15);
  color: var(--heading-color);
}

/* ── Progress bar ─────────────────────────────────────── */

.progress-bar {
  position: relative;
  height: 8px;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(var(--accent-color-rgb), 0.15);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--accent-color);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-bar-fill.animated {
  position: relative;
  overflow: hidden;
}

.progress-bar-fill.animated::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.progress-label .progress-text { color: var(--text-muted); }
.progress-label .progress-pct { color: var(--accent-color); font-weight: 600; font-family: var(--font-mono); }

/* ── Step tracker (reship stages) ─────────────────────── */

.step-tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 24px 0;
  position: relative;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step-item:first-child::before { display: none; }

.step-item.done::before,
.step-item.active::before {
  background: var(--accent-color);
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--body-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.step-dot svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

.step-item.done .step-dot {
  border-color: var(--accent-color);
  background: var(--accent-color);
}

.step-item.done .step-dot svg {
  stroke: #000;
  opacity: 1;
}

.step-item.active .step-dot {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(var(--accent-color-rgb), 0.2);
}

.step-item.active .step-dot svg {
  stroke: var(--accent-color);
  opacity: 1;
}

.step-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 80px;
}

.step-item.done .step-label { color: var(--heading-color); }
.step-item.active .step-label { color: var(--accent-color); font-weight: 600; }

/* ── Payment card ─────────────────────────────────────── */

.pay-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}

.pay-crypto-box {
  background: rgba(var(--accent-color-rgb), 0.06);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.pay-crypto-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pay-crypto-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  font-family: var(--font-mono);
}

.pay-coin {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 16px;
}

.pay-address {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  word-break: break-all;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.pay-address:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.04);
}

.pay-address.copied {
  border-color: var(--success-color);
  background: rgba(34, 197, 94, 0.06);
}

.pay-qr {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 12px;
  background: #262626;
}

/* ── Status badges ────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-waiting { background: rgba(var(--accent-color-rgb), 0.15); color: var(--accent-color); }
.badge-paid { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--success-color); }
.badge-error { background: rgba(239, 68, 68, 0.15); color: var(--error-color); }
.badge-neutral { background: rgba(163, 163, 163, 0.15); color: var(--text-muted); }

/* ── Product option cards (mailbox) ───────────────────── */

.product-opt {
  padding: 16px;
  margin: 8px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-opt:hover {
  border-color: rgba(var(--accent-color-rgb), 0.4);
  background: rgba(var(--accent-color-rgb), 0.04);
}

.product-opt.selected {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.08);
}

.product-opt .price { color: var(--accent-color); font-weight: 700; font-size: 20px; }
.product-opt .stock { color: var(--text-muted); font-size: 13px; }

/* ── Address cards (reship) ───────────────────────────── */

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.address-card {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.address-card:hover { border-color: var(--border-color-light); }
.address-card strong { color: var(--heading-color); display: block; margin-bottom: 4px; }

/* ── Steps list ───────────────────────────────────────── */

.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  padding: 8px 0 8px 44px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.8;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  background: rgba(var(--accent-color-rgb), 0.12);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* ── Pricing cards ────────────────────────────────────── */

.pricing-toggle {
  display: inline-flex;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 24px;
}

.pricing-toggle button {
  padding: 8px 24px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.pricing-toggle button.active {
  background: var(--accent-color);
  color: #fff;
}

.pricing-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  cursor: pointer;
}

.pricing-card:hover { border-color: var(--border-color-light); }

.pricing-card.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

.pricing-card .plan-name { font-size: 20px; font-weight: 600; color: var(--heading-color); }

.pricing-card .plan-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 8px 0;
}

.pricing-card .plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(var(--accent-color-rgb), 0.15);
  color: var(--accent-color);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* ── Accordion / FAQ ──────────────────────────────────── */

.accordion { border-top: 1px solid var(--border-color); }

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  border: none;
  background: none;
  color: var(--heading-color);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body-family);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

.accordion-trigger:hover { color: var(--accent-color); }

.accordion-trigger .chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
  font-size: 12px;
}

.accordion-item.open .accordion-trigger .chevron { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.15s ease;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.accordion-item.open .accordion-content { max-height: 500px; }
.accordion-item.open .accordion-content.circuit-pricing-acc { max-height: 800px; }

.accordion-content-inner { padding: 0 0 18px; }

/* ── Admin tables ─────────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Auth pages ───────────────────────────────────────── */

.auth-container {
  max-width: 420px;
  margin: 48px auto;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Utilities ────────────────────────────────────────── */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }

/* Admin horizontal nav (wraps; avoids global .site-nav mobile hide) */
.admin-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-top-nav .btn { text-decoration: none; }

a.address-card {
  display: block;
  text-decoration: none;
  color: var(--text-color);
}
a.address-card:hover {
  color: var(--text-color);
  text-decoration: none;
  border-color: rgba(var(--accent-color-rgb), 0.35);
}
.address-card .text-sm { display: block; margin-top: 4px; }
.gap-2 { gap: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.text-right { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.admin-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

a.address-card { color: var(--text-color); text-decoration: none; }
a.address-card:hover { border-color: var(--accent-color); color: var(--heading-color); }

@media (max-width: 767px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Shiny animated text ──────────────────────────────── */

.shiny-text {
  background: linear-gradient(
    90deg,
    var(--heading-color) 0%,
    var(--accent-color) 25%,
    var(--accent-light) 50%,
    var(--accent-color) 75%,
    var(--heading-color) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shiny-slide 3s ease-in-out infinite;
}

@keyframes shiny-slide {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ── Service card features ────────────────────────────── */

.service-card .svc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-color-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.service-card .svc-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Service card visual header (VPS template) ───────── */

.svc-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #0c0d11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--accent-color-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--accent-color-rgb), 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.svc-grid-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.12), transparent 70%);
  pointer-events: none;
}

.svc-icon-float {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.svc-icon-float svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-data-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1;
  opacity: 0.5;
}

.data-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.data-line.dl-1 {
  stroke: rgba(var(--accent-color-rgb), 0.3);
}
.data-line.dl-2 {
  stroke: rgba(var(--accent-color-rgb), 0.2);
}
.data-line.dl-3 {
  stroke: rgba(var(--accent-color-rgb), 0.15);
}

.svc-divider {
  height: 1px;
  background: var(--border-color);
}

.svc-body {
  padding: 24px 32px 28px;
}

.svc-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: capitalize;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.svc-body h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.svc-body p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.svc-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.svc-live-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--success-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.svc-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-color);
  animation: pulse 2s infinite;
}

.svc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.svc-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
}

.svc-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
}

/* ── Animations ───────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.15s ease forwards; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ── Features bento grid ──────────────────────────────── */

.features-section {
  padding: 48px 0 32px;
}

.features-section .section-header {
  text-align: center;
  margin-bottom: 32px;
}

.features-section .section-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feat-card:hover {
  border-color: rgba(var(--accent-color-rgb), 0.3);
  box-shadow: 0 4px 24px rgba(var(--accent-color-rgb), 0.06);
}

.feat-card.span-2 { grid-column: span 2; }
.feat-card.span-3 { grid-column: span 3; }
.feat-card.span-full { grid-column: 1 / -1; }

@media (max-width: 1023px) {
  .feat-card.span-2 { grid-column: span 3; }
}

@media (max-width: 767px) {
  .features-bento { grid-template-columns: 1fr; }
  .feat-card.span-2,
  .feat-card.span-3,
  .feat-card.span-full { grid-column: span 1; }
}

.feat-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
}

.feat-stat-value {
  position: relative;
  display: inline-block;
}

.feat-stat-value .stat-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--heading-color);
  position: relative;
  z-index: 1;
}

.feat-stat-value svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(var(--accent-color-rgb), 0.12);
}

.feat-stat-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading-color);
  margin-top: 12px;
}

.feat-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--accent-color);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feat-icon-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.feat-icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--heading-color);
}

.feat-card .feat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.feat-card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 640px) {
  .feat-card-split { grid-template-columns: 1fr; }
}

.feat-card-split .feat-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding-right: 20px;
}

.feat-card-split .feat-visual {
  border-left: 1px solid var(--border-color);
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feat-mini-chart {
  width: 100%;
  height: 80px;
}

.feat-mini-chart path.chart-line {
  stroke: var(--accent-color);
  stroke-width: 2;
  fill: none;
}

.feat-mini-chart path.chart-fill {
  fill: rgba(var(--accent-color-rgb), 0.08);
}

.feat-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-badge-row .feat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--accent-color-rgb), 0.15);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.feat-badge-row .feat-tag {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.feat-badge-row.right { justify-content: flex-end; }

/* ── Scrollbar ────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── reCAPTCHA v3 badge (hidden per Google's policy — attribution in footer) */

.grecaptcha-badge { visibility: hidden !important; }

/* ── Print ────────────────────────────────────────────── */

@media print {
  .site-header, .site-footer, .site-nav, .btn { display: none !important; }
  body { background: #fff; color: #222; }
  .card { border: 1px solid #ddd; }
}

/* ── Lite mode (manual opt-in via footer toggle) ─────── */

.low-gfx .grid-vignette-bg { display: none; }
.low-gfx .bg-dots::before { display: none; }

.low-gfx .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(13, 14, 18, 0.98);
}

.low-gfx .service-card::before { display: none; }

.low-gfx .banner::before,
.low-gfx .announcement-bar::before { animation: none; }

.low-gfx .progress-bar-fill.animated::after { animation: none; }

.low-gfx .shiny-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--heading-color);
  background-clip: unset;
  animation: none;
  color: var(--heading-color);
}

/* ── Animated gradient border (inspired by conic-gradient rotating border) ── */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gradient-rotate {
  from { --gradient-angle: 0deg; }
  to   { --gradient-angle: 360deg; }
}

.card-gradient-border {
  position: relative;
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--card-bg), var(--card-bg)),
    conic-gradient(
      from var(--gradient-angle),
      rgba(140, 92, 255, 0.15) 0%,
      rgba(140, 92, 255, 0.5) 25%,
      rgba(180, 140, 255, 0.7) 30%,
      rgba(140, 92, 255, 0.5) 35%,
      rgba(140, 92, 255, 0.15) 50%,
      rgba(140, 92, 255, 0.5) 75%,
      rgba(180, 140, 255, 0.7) 80%,
      rgba(140, 92, 255, 0.5) 85%,
      rgba(140, 92, 255, 0.15) 100%
    );
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  animation: gradient-rotate 12s linear infinite;
}

/* ── Glassmorphism card variant ─────────────────────────── */
.card-glass {
  background: rgba(22, 23, 28, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.card-glass:hover {
  border-color: rgba(140, 92, 255, 0.2);
  box-shadow: 0 8px 32px rgba(140, 92, 255, 0.06);
}

/* ── Enhanced card hover glow ───────────────────────────── */
.card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.card:hover {
  border-color: rgba(140, 92, 255, 0.2);
  box-shadow: 0 4px 24px rgba(140, 92, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Subtle vignette inner glow for page sections ─────── */
.card-highlight {
  border-color: rgba(var(--accent-color-rgb), 0.35);
  background: rgba(var(--accent-color-rgb), 0.04);
  box-shadow: inset 0 0 20px rgba(var(--accent-color-rgb), 0.03), 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ── Pay page styling improvements ──────────────────────── */
.pay-crypto-box {
  border: 1px solid rgba(140, 92, 255, 0.25);
  background: rgba(140, 92, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin: 16px 0;
}
.pay-crypto-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pay-crypto-amount {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}
.pay-coin {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
}
.pay-address {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  word-break: break-all;
  cursor: pointer;
  transition: all 0.2s;
  user-select: all;
}
.pay-address:hover {
  border-color: var(--accent-color);
  background: rgba(140, 92, 255, 0.04);
}
.pay-address.copied {
  border-color: var(--success-color);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
}
.pay-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
  text-align: center;
  margin: 16px 0;
  letter-spacing: -0.03em;
}
.pay-qr {
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

/* ── Coin & amount picker cards (used across topup, reship, pricing) ── */
.coin-card, .amount-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  color: var(--text-color);
  background: transparent;
}
.coin-card:hover, .amount-card:hover {
  border-color: var(--accent-color);
}
.coin-card:has(input:checked), .amount-card:has(input:checked) {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.08);
}
.amount-card span { font-size: 18px; font-weight: 700; }
.coin-card img { flex-shrink: 0; }

/* ── Pricing card selection states ──────────────────────── */
.pricing-card {
  cursor: pointer;
  transition: all 0.25s ease;
}
.pricing-card.selected,
.pricing-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(140, 92, 255, 0.1), inset 0 0 15px rgba(140, 92, 255, 0.02);
}

/* ── Marquee animation for trust/partner logos ──────────── */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee-scroll 30s linear infinite;
  white-space: nowrap;
}

/* ── Badge improvements ─────────────────────────────────── */

/* ── Pulsing live indicator ─────────────────────────────── */
@keyframes live-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success-color);
  display: inline-block;
  animation: live-pulse 2s ease infinite;
}

/* ── Header balance badge ──────────────────────────────── */
.header-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-right: 4px;
  white-space: nowrap;
}
.header-balance:hover {
  background: rgba(var(--accent-color-rgb), 0.18);
  border-color: rgba(var(--accent-color-rgb), 0.4);
  color: var(--accent-color);
  text-decoration: none;
}
.header-balance svg { flex-shrink: 0; }

.header-balance-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* ── Lite mode toggle button ──────────────────────────── */
.lite-mode-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9997;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body-family);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.lite-mode-toggle:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-color);
  color: var(--heading-color);
}
.lite-mode-toggle.lite-active {
  background: rgba(140, 92, 255, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}
.lite-mode-toggle svg { flex-shrink: 0; }

/* ── Lite mode (performance / reduced animations) ─────── */
/* Applied on <html> before body paints — zero animation flash */
html.lite-mode,
html.lite-mode *,
body.lite-mode,
body.lite-mode * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
html.lite-mode .grid-vignette-bg,
body.lite-mode .grid-vignette-bg { display: none; }
body.lite-mode .card-gradient-border::before { animation: none; }
body.lite-mode .banner::before,
body.lite-mode .announcement-bar::before { animation: none; display: none; }
body.lite-mode .service-card::before { display: none; }
body.lite-mode .service-card:hover { transform: none; }
body.lite-mode .progress-bar-fill.animated::after { animation: none; display: none; }

@media (max-width: 767px) {
  .header-balance span { display: none; }
  .header-balance { padding: 6px 8px; }
  .lite-mode-toggle span { display: none; }
  .lite-mode-toggle { padding: 8px; }
}


/* ── Enhanced 2x2 service cards (redesign) ──────────────
 * Two columns on desktop, responsive to one on mobile.
 * Preserves spotlight glow (--mouse-x/--mouse-y, base.html mousemove).
 * Adds: aurora gradient border on hover, icon float, staggered entry,
 *       animated data lines, shimmer badge.
 */
.services-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  perspective: 1200px;
}

/* Card base: taller, richer, with layered visual header */
.service-card {
  position: relative;
  isolation: isolate;
  transform-origin: center;
  animation: svcFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

@keyframes svcFadeUp {
  0%   { opacity: 0; transform: translateY(26px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Aurora gradient border -- sits behind card, masked to rim only.
 * Invisible until hover, then fades in and rotates slowly. */
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--svc-angle, 0deg),
    rgba(var(--accent-color-rgb), 0.0) 0deg,
    rgba(var(--accent-color-rgb), 0.55) 90deg,
    rgba(255, 255, 255, 0.25) 180deg,
    rgba(var(--accent-color-rgb), 0.55) 270deg,
    rgba(var(--accent-color-rgb), 0.0) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
  animation: svcBorderSpin 6s linear infinite;
  animation-play-state: paused;
}
.service-card:hover::after {
  opacity: 1;
  animation-play-state: running;
}

@property --svc-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes svcBorderSpin {
  to { --svc-angle: 360deg; }
}
/* Fallback for browsers without @property -- plain rotate */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .service-card::after { display: none; }
}

.service-card > * { position: relative; z-index: 1; }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 44px rgba(var(--accent-color-rgb), 0.14),
    0 8px 20px rgba(0, 0, 0, 0.55);
  border-color: rgba(var(--accent-color-rgb), 0.28);
}

/* Visual header: bigger on 2-col layout */
.svc-visual { height: 170px; }

.svc-grid-pattern {
  transition: opacity 0.4s ease, transform 0.6s ease;
  opacity: 1;
}
.service-card:hover .svc-grid-pattern {
  opacity: 1;
  transform: scale(1.04);
}

.svc-grid-glow {
  width: 260px;
  height: 260px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s ease;
}
.service-card:hover .svc-grid-glow {
  transform: translate(-50%, -50%) scale(1.15);
  background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.22), transparent 70%);
}

/* Floating icon: always subtly bobbing, scales on card hover */
.svc-icon-float {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(var(--accent-color-rgb), 0.18),
    rgba(var(--accent-color-rgb), 0.06));
  border: 1px solid rgba(var(--accent-color-rgb), 0.28);
  box-shadow:
    0 8px 20px rgba(var(--accent-color-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: svcIconBob 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 400ms);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
  will-change: transform;
}
.svc-icon-float svg { width: 34px; height: 34px; }

.service-card:hover .svc-icon-float {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 14px 28px rgba(var(--accent-color-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@keyframes svcIconBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Data lines: animate stroke draw-in on hover */
.svc-data-lines {
  height: 54px;
  opacity: 0.55;
}
.data-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s ease, opacity 0.4s ease;
}
.service-card:hover .data-line {
  stroke-dashoffset: 0;
  opacity: 1;
}
.service-card .data-line.dl-1 { animation: svcLineSweep 8s ease-in-out infinite; }
.service-card .data-line.dl-2 { animation: svcLineSweep 9s 0.7s ease-in-out infinite; }
.service-card .data-line.dl-3 { animation: svcLineSweep 10s 1.4s ease-in-out infinite; }

@keyframes svcLineSweep {
  0%   { stroke-dashoffset: 600; opacity: 0.15; }
  40%  { stroke-dashoffset: 0;   opacity: 0.6; }
  70%  { stroke-dashoffset: -200; opacity: 0.45; }
  100% { stroke-dashoffset: -600; opacity: 0; }
}

/* Body: roomier typography for 2-col layout */
.svc-body { padding: 24px 28px 28px; }

.svc-badge {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: linear-gradient(90deg,
    rgba(var(--accent-color-rgb), 0.12),
    rgba(var(--accent-color-rgb), 0.04) 60%);
  border: 1px solid rgba(var(--accent-color-rgb), 0.22);
  border-radius: 6px;
  overflow: hidden;
}
.svc-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 60%,
    transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.service-card:hover .svc-badge::after { transform: translateX(100%); }

.svc-body h2 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.svc-body p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.svc-features { margin-bottom: 18px; }
.svc-features li {
  font-size: 13px;
  padding: 3px 0;
  gap: 8px;
  transition: color 0.2s ease;
}
.svc-features li::before { width: 5px; height: 5px; }
.service-card:hover .svc-features li { color: var(--heading-color); }

.svc-btn { font-size: 13px; padding: 9px 18px; }
.svc-btn svg { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.service-card:hover .svc-btn svg { transform: translateX(3px); }

/* Responsive */
@media (max-width: 900px) {
  .services-grid { gap: 18px; }
  .svc-visual { height: 150px; }
  .svc-icon-float { width: 64px; height: 64px; }
  .svc-icon-float svg { width: 30px; height: 30px; }
  .svc-body h2 { font-size: 18px; }
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .svc-visual { height: 130px; }
  .svc-icon-float { width: 56px; height: 56px; }
  .svc-icon-float svg { width: 26px; height: 26px; }
  .svc-body { padding: 20px 22px 22px; }
  .svc-body h2 { font-size: 17px; }
  .svc-body p { font-size: 13px; }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .svc-icon-float,
  .data-line {
    animation: none !important;
    transition: none !important;
  }
  .service-card:hover { transform: none; }
}

/* ── Service cards: hero-glow theme override ──────────────────────────
 * Matches the hero's ambient purple-glow aesthetic. Persistent halo +
 * gradient body + breathing grid glow + gradient divider + primary CTA.
 */
.services-grid {
  position: relative;
}

.service-card {
  background:
    linear-gradient(180deg, rgba(140, 92, 255, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #17131f 0%, #14121a 100%);
  border: 1px solid rgba(140, 92, 255, 0.22);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    0 10px 26px -12px rgba(140, 92, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Ambient halo — persistent, behind card contents */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 75% 60% at 50% 0%,
      rgba(140, 92, 255, 0.22) 0%,
      rgba(140, 92, 255, 0.08) 30%,
      transparent 65%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%,
      rgba(140, 92, 255, 0.32) 0%,
      rgba(140, 92, 255, 0.12) 32%,
      transparent 70%);
}

/* Visual header: richer bg + brighter grid + breathing radial glow */
.svc-visual {
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%,
      rgba(140, 92, 255, 0.18) 0%,
      rgba(140, 92, 255, 0.06) 50%,
      transparent 80%),
    #0c0d11;
  border-bottom: 1px solid rgba(140, 92, 255, 0.14);
}

.svc-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(140, 92, 255, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 92, 255, 0.14) 1px, transparent 1px);
  opacity: 1;
}

.svc-grid-glow {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle,
    rgba(140, 92, 255, 0.32) 0%,
    rgba(140, 92, 255, 0.12) 35%,
    transparent 75%);
  filter: blur(8px);
  animation: svcGlowBreath 6s ease-in-out infinite alternate;
}
@keyframes svcGlowBreath {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(0.94); }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* Icon halo: stronger purple ring + outer glow */
.svc-icon-float {
  background: linear-gradient(135deg,
    rgba(140, 92, 255, 0.32),
    rgba(140, 92, 255, 0.10));
  border: 1px solid rgba(140, 92, 255, 0.45);
  box-shadow:
    0 12px 32px rgba(140, 92, 255, 0.40),
    0 0 0 1px rgba(140, 92, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #d6c2ff;
}

.svc-icon-float svg {
  filter: drop-shadow(0 0 6px rgba(140, 92, 255, 0.55));
}

/* Badge: gradient + brighter text */
.svc-badge {
  background: linear-gradient(90deg,
    rgba(140, 92, 255, 0.24),
    rgba(140, 92, 255, 0.08) 60%);
  border: 1px solid rgba(140, 92, 255, 0.42);
  color: #c9b3ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px -6px rgba(140, 92, 255, 0.35);
}

.svc-body h2 {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

/* Gradient divider like the dashboard card seams */
.svc-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(140, 92, 255, 0.40) 50%,
    transparent 100%);
}

/* Feature list bullets glow */
.svc-features li::before {
  box-shadow: 0 0 6px rgba(140, 92, 255, 0.6);
}

/* Primary-style CTA button */
.svc-btn {
  background: linear-gradient(135deg, #8c5cff 0%, #7043e0 100%);
  color: #fff;
  border: 1px solid rgba(140, 92, 255, 0.65);
  box-shadow:
    0 10px 24px -8px rgba(140, 92, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.25s ease;
}
.service-card:hover .svc-btn {
  background: linear-gradient(135deg, #9b6bff 0%, #7e4eeb 100%);
  box-shadow:
    0 16px 34px -8px rgba(140, 92, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Live badge: pill with subtle green-glow ring */
.svc-live-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(76, 217, 100, 0.10);
  border: 1px solid rgba(76, 217, 100, 0.30);
  box-shadow: 0 0 12px rgba(76, 217, 100, 0.18);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-left: auto;
}
.svc-live-badge::before {
  box-shadow: 0 0 8px var(--success-color);
}

/* Data lines: accent-colored, brighter */
.data-line.dl-1 { stroke: rgba(140, 92, 255, 0.60); }
.data-line.dl-2 { stroke: rgba(140, 92, 255, 0.40); }
.data-line.dl-3 { stroke: rgba(140, 92, 255, 0.24); }
.svc-data-lines { opacity: 0.85; }

/* Hover: bigger lift + stronger halo */
.service-card:hover {
  border-color: rgba(140, 92, 255, 0.48);
  transform: translateY(-6px);
  box-shadow:
    0 40px 70px -30px rgba(0, 0, 0, 0.95),
    0 22px 44px -10px rgba(140, 92, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* END service cards hero-glow theme */

/* ── Circuit-board "How it works" (shared by /pricing + /label-generator) ── */
.circuit-wrap { position: relative; padding: 24px 16px 16px; overflow: hidden; }
.circuit-board { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.circuit-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.circuit-trace { fill: none; stroke: rgba(var(--accent-color-rgb), 0.18); stroke-width: 1.5; stroke-linecap: round; }
.circuit-trace-glow {
  fill: none; stroke: rgba(var(--accent-color-rgb), 0.5); stroke-width: 2;
  stroke-linecap: round; stroke-dasharray: 8 80;
  animation: traceFlow 3s linear infinite;
}
@keyframes traceFlow { 0% { stroke-dashoffset: 88; } 100% { stroke-dashoffset: 0; } }

.cpu-core {
  position: relative; z-index: 5;
  width: 140px; margin: 0 auto;
  padding: 14px 10px; text-align: center;
  border: 2px solid rgba(var(--accent-color-rgb), 0.4);
  border-radius: 8px; background: var(--card-bg);
  box-shadow: 0 0 24px rgba(var(--accent-color-rgb), 0.08),
              inset 0 0 20px rgba(var(--accent-color-rgb), 0.03);
}
.cpu-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-color); margin-bottom: 2px;
}
.cpu-title { font-size: 13px; font-weight: 700; color: var(--heading-color); }
.cpu-pins { position: absolute; display: flex; gap: 6px; }
.cpu-pins-top { top: -5px; left: 50%; transform: translateX(-50%); }
.cpu-pins-bottom { bottom: -5px; left: 50%; transform: translateX(-50%); }
.cpu-pin {
  width: 8px; height: 8px; border-radius: 2px;
  background: rgba(var(--accent-color-rgb), 0.35);
  border: 1px solid rgba(var(--accent-color-rgb), 0.5);
}
.cpu-pin.active {
  background: var(--accent-color);
  box-shadow: 0 0 6px rgba(var(--accent-color-rgb), 0.6);
  animation: pinPulse 2s ease infinite;
}
@keyframes pinPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.circuit-nodes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 20px; position: relative; z-index: 2;
}
.circuit-node {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-color); background: var(--card-bg);
  transition: all 0.25s; cursor: default;
}
.circuit-node:hover {
  border-color: rgba(var(--accent-color-rgb), 0.35);
  background: rgba(var(--accent-color-rgb), 0.03);
}
.cn-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  color: var(--accent-color);
}
.cn-text { min-width: 0; }
.cn-title { font-size: 12px; font-weight: 700; color: var(--heading-color); margin-bottom: 2px; }
.cn-desc { font-size: 11px; color: var(--text-muted); line-height: 1.45; }
.cn-tag {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px; margin-top: 4px;
  background: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(var(--accent-color-rgb), 0.15);
}

.circuit-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin: 14px 0 8px; position: relative; z-index: 2;
}
.cf-line { width: 40px; height: 1px; background: rgba(var(--accent-color-rgb), 0.2); }
.cf-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-color); opacity: 0.7;
  animation: cfMove 1.8s ease-in-out infinite;
}
.cf-dot:nth-child(2) { animation-delay: 0.3s; }
.cf-dot:nth-child(4) { animation-delay: 0.6s; }
@keyframes cfMove {
  0%,100% { transform: scale(0.6); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 1; }
}

.circuit-io {
  display: flex; justify-content: center; align-items: center;
  gap: 12px; margin-bottom: 14px; position: relative; z-index: 2;
}
.cio-box {
  padding: 8px 16px; border-radius: 8px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.3px;
  border: 1px solid var(--border-color); background: var(--card-bg);
  display: flex; align-items: center; gap: 6px;
}
.cio-box svg { color: var(--accent-color); }
.cio-arrow { color: rgba(var(--accent-color-rgb), 0.4); font-size: 14px; }

.accordion-item.open .accordion-content.circuit-accordion { max-height: 800px; }
.accordion-item.open .accordion-content.circuit-pricing-acc { max-height: 800px; }

@media (max-width: 480px) {
  .circuit-nodes { grid-template-columns: 1fr; }
  .cpu-core { width: 120px; }
  .circuit-io { flex-wrap: wrap; gap: 6px; }
  .cio-arrow { display: none; }
}

/* ── Pricing plan cards (shared by /pricing + /label-generator/) ── */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin: 24px 0 20px;
}
@media (max-width: 840px) { .plans-grid { grid-template-columns: 1fr; gap: 16px; } }

.pricing-card {
  position: relative; padding: 28px 24px 24px;
  border-radius: var(--radius-md);
  background: var(--card-bg); border: 1px solid var(--border-color);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: rgba(var(--accent-color-rgb), 0.4); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: rgba(var(--accent-color-rgb), 0.5);
  background: linear-gradient(160deg, rgba(var(--accent-color-rgb), 0.08) 0%, var(--card-bg) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
              0 8px 32px rgba(var(--accent-color-rgb), 0.15);
}
.pricing-card.featured::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top right, rgba(var(--accent-color-rgb), 0.15), transparent 55%);
  pointer-events: none;
}
.pricing-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  background: var(--accent-color); color: #fff;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(var(--accent-color-rgb), 0.4);
}
.pricing-badge.ghost {
  background: rgba(var(--accent-color-rgb), 0.14);
  color: var(--accent-color);
  box-shadow: none;
  border: 1px solid rgba(var(--accent-color-rgb), 0.3);
}
.plan-name {
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.plan-price-row { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 8px; }
.plan-price {
  font-size: 42px; font-weight: 800; color: var(--heading-color);
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.plan-price-unit { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.plan-rate {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  font-size: 12px; font-weight: 600;
}
.plan-features {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.plan-features li {
  padding-left: 22px; position: relative;
  font-size: 13px; color: var(--text-color); line-height: 1.5;
}
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(var(--accent-color-rgb), 0.15);
  border: 1px solid rgba(var(--accent-color-rgb), 0.35);
}
.plan-features li::after {
  content: ""; position: absolute; left: 3.5px; top: 9px;
  width: 5px; height: 3px;
  border-left: 1.5px solid var(--accent-color);
  border-bottom: 1.5px solid var(--accent-color);
  transform: rotate(-45deg);
}
.plan-subscribe {
  width: 100%; padding: 13px 20px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(var(--accent-color-rgb), 0.35);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none; text-align: center; display: block;
}
.plan-subscribe:hover {
  background: var(--accent-color); color: #fff; border-color: var(--accent-color);
}
.pricing-card.featured .plan-subscribe {
  background: var(--accent-color); color: #fff; border-color: var(--accent-color);
}
.pricing-card.featured .plan-subscribe:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
}

/* ── Shared payment modal (pricing + upload) ──────────────────────── */
.pay-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 999;
  animation: fade-in 0.15s ease;
}
.pay-modal-backdrop.open { display: flex; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.pay-modal {
  max-width: 440px; width: calc(100% - 32px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  max-height: 90vh; overflow-y: auto;
}
.pay-modal h3 { margin: 0 0 6px; font-size: 18px; color: var(--heading-color); }
.pay-modal .sub { margin: 0 0 18px; font-size: 13px; color: var(--text-muted); }
.pay-modal .coin-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 16px 0 20px;
}
.pay-modal .coin-card {
  padding: 12px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.pay-modal .coin-card:hover,
.pay-modal .coin-card.selected {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.05);
}
.pay-modal .coin-card img { width: 24px; height: 24px; border-radius: 50%; }
.pay-modal .coin-card span { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.pay-modal .close-btn {
  position: absolute; top: 18px; right: 18px;
  background: transparent; border: 0; color: var(--text-muted);
  cursor: pointer; font-size: 22px; line-height: 1;
}
.pay-modal .close-btn:hover { color: var(--heading-color); }

/* ── Upload page: break .plans-section out of .upload-wrap's 620px ───── */
.upload-wrap .plans-section {
  width: min(1020px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
  padding: 0 12px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .upload-wrap .plans-section {
    width: 100%;
    margin-left: 0;
    transform: none;
    padding: 0;
  }
}
