/* ================================================================
   MYD SERVER — Components CSS
   ================================================================ */

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px var(--shadow);
  transition: background 0.5s, box-shadow 0.5s;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  gap: 1.5rem;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-myd {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot { color: var(--blue); }
.logo-server { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--cyan); background: rgba(60, 200, 230, 0.08); }
.nav-link.active { color: var(--cyan); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--card);
  border: 1.5px solid var(--border2);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  transition: all 0.25s;
  user-select: none;
}
.theme-toggle:hover {
  background: var(--card-hover);
  transform: scale(1.04);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding-top: 5rem;
  padding-inline: 1rem;
}

.hero-badge {
  display: inline-block;
  border: 1.5px solid var(--border2);
  color: var(--cyan);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  background: var(--card);
  animation: badgepulse 2.5s ease-in-out infinite;
}
@keyframes badgepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 200, 230, 0.3); }
  50%       { box-shadow: 0 0 0 16px rgba(60, 200, 230, 0); }
}

.hero-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1.5px solid rgba(160, 200, 220, 0.2);
  animation: ring-spin 20s linear infinite;
  margin: 0 auto 2rem;
  position: relative;
}
.hero-ring::after {
  content: '🌸';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 4vw, 40px);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* ── Stat cards ────────────────────────────────────────────────── */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  backdrop-filter: blur(12px);
  animation: cardFloat 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -2s; }
.stat-card:nth-child(3) { animation-delay: -4s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.stat-card:hover {
  animation-play-state: paused;
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 2.5vw, 26px);
  color: var(--cyan);
}
.stat-value.grad { color: unset; }

/* ── Feature cards ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border2);
  box-shadow: 0 8px 30px var(--shadow-lg);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.feature-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Plan cards ────────────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  width: 100%;
  min-height: 100%;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: 0 12px 40px var(--shadow-lg);
}
.plan-card.featured {
  border: 2px solid rgba(60, 200, 230, 0.5);
  animation: featuredGlow 3s ease-in-out infinite;
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 200, 230, 0.2); }
  50% { box-shadow: 0 0 20px 6px rgba(60, 200, 230, 0.12); }
}
.plan-card.featured::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.plan-card.free-offer {
  border-color: rgba(93, 219, 158, 0.32);
}

.plan-card.free-offer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.plan-card.selected {
  border-color: rgba(60, 200, 230, 0.75);
  box-shadow: 0 14px 45px rgba(60, 200, 230, 0.18);
  transform: translateY(-6px) scale(1.01);
}

@keyframes planPulse {
  0% { transform: translateY(-6px) scale(1.01); }
  50% { transform: translateY(-8px) scale(1.03); }
  100% { transform: translateY(-6px) scale(1.01); }
}

.plan-card.selected.pulse {
  animation: planPulse 0.7s ease;
}

.plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  background: rgba(60, 200, 230, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(60, 200, 230, 0.25);
}
.plan-badge.hot {
  background: rgba(240, 200, 212, 0.15);
  color: #e8889a;
  border-color: rgba(240, 168, 186, 0.35);
}

.plan-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text);
  margin-bottom: 1rem;
}

.plan-price {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 0.3rem;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-period {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.plan-perks {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 2.2;
}
.plan-perks li::before {
  content: '🌸 ';
  font-size: 0.65rem;
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: none;
  font-family: 'Inter', sans-serif;
}
.plan-btn-outline {
  background: var(--card);
  color: var(--cyan);
  border: 1.5px solid var(--border2);
}
.plan-btn-outline:hover { background: var(--card-hover); }
.plan-btn-grad {
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--green));
  color: #fff;
}
.plan-btn-grad:hover { box-shadow: 0 6px 20px rgba(60, 200, 230, 0.35); }

/* ── Map preview ───────────────────────────────────────────────── */
.map-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0d2a45, #133a5a);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 7;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.map-preview:hover { box-shadow: 0 16px 50px rgba(60, 200, 230, 0.2); }

.map-preview-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(60, 200, 230, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(93, 219, 158, 0.06) 0%, transparent 50%);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(60, 200, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 200, 230, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-chunks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-chunk {
  position: absolute;
  border-radius: 3px;
  opacity: 0.4;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13, 26, 45, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s;
}
.map-preview:hover .map-overlay {
  background: linear-gradient(to bottom, transparent 20%, rgba(13, 26, 45, 0.85) 100%);
}

.map-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
}

.map-coords {
  font-size: 0.75rem;
  color: rgba(100, 200, 230, 0.6);
  font-family: monospace;
}

/* ── Pay form ──────────────────────────────────────────────────── */
.pay-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.pay-form::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--sakura), var(--blue), var(--cyan), var(--green));
  margin: -2rem -2rem 2rem;
}

.crypto-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cpill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.cpill:hover { border-color: var(--border2); color: var(--cyan); }
.cpill.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(60, 200, 230, 0.1);
  box-shadow: 0 0 0 1px rgba(60, 200, 230, 0.22);
  transform: translateY(-1px);
}

.selected-plan-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(60, 200, 230, 0.18);
  background: rgba(60, 200, 230, 0.06);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.pay-summary {
  background: rgba(60, 200, 230, 0.06);
  border: 1px solid rgba(60, 200, 230, 0.16);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.pay-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.pay-row:last-child { margin-bottom: 0; }
.pay-row span:first-child { color: var(--muted); }
.pay-row span:last-child { color: var(--text); font-weight: 500; }
.pay-row.total {
  border-top: 1px solid rgba(60, 200, 230, 0.14);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  font-weight: 700;
}
.pay-row.total span:last-child { color: var(--cyan); }

.pay-submit {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--green));
  color: #fff;
  font-weight: 800;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}
.pay-submit:hover {
  box-shadow: 0 8px 25px rgba(60, 200, 230, 0.35);
  transform: translateY(-2px);
}
.pay-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pay-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.7;
}
.pay-note a { color: var(--cyan); text-decoration: none; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  backdrop-filter: blur(12px);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.social-link:hover {
  border-color: var(--border2);
  color: var(--cyan);
  background: rgba(60, 200, 230, 0.06);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  font-size: 0.78rem;
  color: var(--muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.back-to-top:hover { transform: translateY(-2px); }

/* ── Modals ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--header-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.25s;
  position: relative;
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.25rem;
}
.modal-close:hover { color: var(--text); }

/* ── Page Hero (for inner pages) ───────────────────────────────── */
.page-hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero .page-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 24px);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.page-hero .page-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── FAQ accordion ─────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border2); }

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  user-select: none;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--cyan); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── News cards ────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 8px 30px var(--shadow-lg);
}
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(60, 200, 230, 0.1);
  color: var(--cyan);
  margin-bottom: 0.75rem;
  font-family: 'Press Start 2P', monospace;
}
.news-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.news-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.news-date {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Document page ─────────────────────────────────────────────── */
.doc-content {
  max-width: 740px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}
.doc-content h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text);
  margin: 2rem 0 1rem;
  line-height: 1.6;
}
.doc-content h2:first-child { margin-top: 0; }
.doc-content p { margin-bottom: 0.9rem; }
.doc-content ul { margin: 0.5rem 0 0.9rem 1.5rem; }
.doc-content li { margin-bottom: 0.4rem; }
.doc-content a { color: var(--cyan); text-decoration: none; }
.doc-content strong { color: var(--text); font-weight: 600; }

/* ── Dashboard table ───────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--muted);
  background: rgba(60, 200, 230, 0.04);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(60, 200, 230, 0.03); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 0.6rem 1rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-brand p { max-width: none; }

  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { max-width: 420px; margin: 0 auto; }

  .features-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
  .hero { padding-top: 4rem; }
  .hero-ring { width: 220px; height: 220px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pay-form { padding: 1.5rem; }
  .pay-form::before { margin: -1.5rem -1.5rem 1.5rem; }
  .selected-plan-banner { text-align: center; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Admin news */
.admin-compact { padding-bottom: 2rem; }
.admin-toolbar,
.admin-actions,
.admin-form-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.admin-toolbar { justify-content: space-between; margin-bottom: 1.5rem; }
.admin-actions { gap: .5rem; }
.admin-actions form { margin: 0; }
.btn-sm { padding: .55rem .8rem; font-size: .82rem; }
.btn-danger {
  background: rgba(239, 68, 68, .18);
  border: 1px solid rgba(239, 68, 68, .45);
  color: #fecaca;
}
.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.25rem;
  align-items: start;
}
.admin-news-form { max-width: none; width: 100%; }
.admin-form-row > .form-group { flex: 1 1 240px; }
.admin-checkbox-group { align-self: stretch; }
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
}
.admin-textarea-small { min-height: 84px; resize: vertical; }
.admin-html-editor {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}
.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .65rem;
}
.admin-editor-toolbar button {
  width: 44px;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.admin-editor-toolbar button:hover { background: rgba(255,255,255,.14); }
.admin-preview {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}
.admin-preview-head {
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: var(--text-muted);
  font-size: .85rem;
}
.admin-preview-frame,
.news-content-frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}
.admin-preview-frame { height: 520px; }
.news-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: .8rem;
}
.news-cover img {
  width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
  object-fit: cover;
  max-height: 360px;
}
.news-content-frame { min-height: 160px; margin-top: 1rem; }
@media (max-width: 900px) {
  .admin-editor-layout { grid-template-columns: 1fr; }
  .admin-preview { position: static; }
}

/* Custom additions: logo ring, contacts, rules and admin polish */
.hero-ring {
  display: grid;
  place-items: center;
  overflow: visible;
}

.hero-logo-spin {
  width: 92%;
  height: 92%;
  object-fit: contain;
  border-radius: 50%;
  animation: logo-spin 12s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(60, 200, 230, 0.22));
}

@keyframes logo-spin {
  to { transform: rotate(360deg); }
}

.contact-card {
  min-height: 260px;
}

.contact-icon-img {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 12px 24px var(--shadow-lg));
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-icon-img {
  transform: translateY(-4px) scale(1.04);
}

.rules-list {
  max-width: 980px;
}

.rules-ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.rules-ol li {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(60, 200, 230, 0.05);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-compact {
  padding-bottom: 2.5rem;
}

.status-pending_grant,
.status-partially_paid {
  background: rgba(255, 200, 0, 0.12);
  color: #ffcc00;
  border: 1px solid rgba(255, 200, 0, 0.3);
}

.status-refunded {
  background: rgba(120, 120, 120, 0.1);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Promo code UI */
.promo-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.promo-message {
  min-height: 1.2rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.promo-message.success { color: var(--green); }
.promo-message.error { color: #e8445a; }
.promo-message.info { color: var(--cyan); }

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 0.55rem;
  font-weight: 500;
}

@media (max-width: 520px) {
  .promo-input-row { grid-template-columns: 1fr; }
}
