:root {
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --color-bg: #090d16;
  --color-surface: #111827;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  
  --color-primary: #7c3aed;
  --color-primary-hover: #6d28d9;
  --color-accent: #a78bfa;
  
  --color-crypto: #10b981;
  --color-crypto-hover: #059669;
  
  --color-card: #7c3aed;
  --color-card-hover: #6d28d9;
  
  --color-legal-bg: #111827;
  --color-legal-text: #f3f4f6;
  
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  
  --transition: 0.2s ease-in-out;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  color: #090d16;
  font-weight: 700;
}

.skip-link:focus { top: 12px; }

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

main a:not(.btn) { color: #c4b5fd; }

.test-site-banner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #fca5a5;
  background: #7f1d1d;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
}

.test-site-banner strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* LEGAL BANNER & HEADER */
.legal-banner {
  background: var(--color-legal-bg);
  border-bottom: 1px solid #1f2937;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.legal-banner-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-brand span {
  color: #f59e0b; /* PornHub color accent */
  background: #000;
  padding: 2px 8px;
  border-radius: 6px;
}

.legal-banner-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-btn {
  background: #1f2937;
  color: #e5e7eb !important;
  border: 1px solid #374151;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
}

.tor-network-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #7d4698;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #7d4698, #593196);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.tor-network-btn:hover {
  background: linear-gradient(135deg, #8e54ad, #6a3bb2);
  transform: translateY(-1px);
}

.tor-icon { font-size: 1.1rem; line-height: 1; }

:where(a, button, input, select):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.nav-btn:hover {
  background: #374151 !important;
  border-color: #4b5563;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* LAYOUT */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 60px 0 30px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: #1f2937;
  color: #ffffff;
  border: 2px solid #374151;
}

.btn-secondary:hover {
  border-color: #4b5563;
  background: #374151;
}

/* ACCENT BUTTONS */
.btn-crypto {
  background: var(--color-crypto);
  color: #090d16;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-crypto:hover {
  background: var(--color-crypto-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-card {
  background: var(--color-card);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.btn-card:hover {
  background: var(--color-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* FEATURES GRID */
.features {
  padding: 40px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #1f2937;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #374151;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* GENERIC CARD */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  border: 1px solid #1f2937;
}

.age-gate {
  max-width: 620px;
  margin: 48px auto 30px;
}

.age-gate h1 { margin-top: 0; line-height: 1.2; }

.age-gate-agreement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  cursor: pointer;
}

.age-gate-agreement input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 2px 0 0;
  accent-color: var(--color-accent);
}

.form-error {
  padding: 12px 14px;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  background: #7f1d1d;
  color: #fff;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--color-text-muted);
  border-top: 1px solid #1f2937;
  margin-top: 50px;
  font-size: 0.9rem;
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

/* CHECKBOX STYLING */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-crypto);
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-text {
  line-height: 1.45;
}

/* NOWPAYMENTS WIDGET SIMULATION */
.nowpayments-card {
  background: #111827;
  color: #f9fafb;
  border-radius: var(--radius-lg);
  border: 1px solid #1f2937;
  max-width: 480px;
  margin: 30px auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: left;
}

.nowpayments-header {
  background: #1f2937;
  padding: 20px;
  border-bottom: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nowpayments-logo {
  font-weight: 800;
  color: var(--color-crypto);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nowpayments-logo span {
  color: var(--color-accent);
}

.nowpayments-body {
  padding: 24px;
}

.nowpayments-amount {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin: 15px 0;
  color: var(--color-crypto);
}

.nowpayments-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.coin-selector {
  width: 100%;
  padding: 12px;
  background: #1f2937;
  color: #f9fafb;
  border: 1px solid #374151;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 1rem;
}

.coin-selector:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-crypto);
}

.nowpayments-btn {
  width: 100%;
  background: var(--color-crypto);
  color: #090d16;
  font-weight: 800;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.nowpayments-btn:hover:not(:disabled) {
  background: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.nowpayments-btn:disabled {
  background: #1f2937;
  color: #4b5563;
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid #374151;
}

.checkout-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f87171;
  border-radius: var(--radius-md);
  background: #3b1722;
  color: #fff;
}

.checkout-error:empty { display: none; }

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

.checkout-agreements {
  min-width: 0;
  margin: 10px 0 18px;
  padding: 0;
  border: 0;
}

.checkout-agreements legend { margin-bottom: 10px; }

.checkout-test-acknowledgment {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  background: #3b1722;
}

.checkout-test-acknowledgment input[type="checkbox"] { accent-color: #fca5a5; }

/* TRANSACTION SCREEN */
.tx-screen {
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.qr-code {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code img {
  max-width: 100%;
  height: auto;
}

.address-box {
  background: #090d16;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
  border: 1px solid #374151;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.address-text {
  text-align: left;
  user-select: all;
  color: #e5e7eb;
}

.copy-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #374151;
  color: #ffffff;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: #f59e0b;
  margin: 15px 0;
  font-size: 1rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

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

/* CARD DETAILS IN PORN FETCH PAGE */
.pf-purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  margin-top: 30px;
}

.pf-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pf-card-body {
  flex-grow: 1;
}

.pf-info-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.pf-info-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.pf-info-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Crypto Accent List Checkmarks */
.crypto-list li::before {
  color: var(--color-crypto) !important;
}

/* Card Accent List Checkmarks */
.card-list li::before {
  color: var(--color-card) !important;
}

.pf-card-footer {
  margin-top: auto;
  padding-top: 20px;
}

.license-benefits {
  max-width: 650px;
  margin: 36px auto 0;
  padding-top: 26px;
  border-top: 1px solid #374151;
}

.license-benefits .pf-info-list { margin-bottom: 0; }

.checkout-actions {
  display: flex;
  gap: 10px;
}

.donation-card-heading {
  width: calc(100% + 56px);
  margin: -28px -28px 20px;
  padding: 25px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#donation-options .feature-card:nth-child(2) h3,
#donation-options .feature-card:nth-child(2) .donation-btn {
  color: #111827 !important;
}

.card, .feature-card, .nowpayments-card { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .legal-banner {
    position: static;
    box-shadow: none;
  }

  .legal-banner-container {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-banner-buttons {
    justify-content: center;
  }

  .tor-network-btn { align-self: center; }
}

@media (max-width: 640px) {
  .legal-banner { padding: 14px 16px; }

  .legal-banner-container { gap: 10px; }

  .legal-banner-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .legal-banner-buttons .nav-btn:first-child { grid-column: 1 / -1; }

  .tor-network-btn { width: 100%; }

  .container { padding-inline: 16px; }

  .hero { padding: 38px 0 24px; }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin: 0 0 16px;
  }

  .hero p { font-size: 1rem; margin-bottom: 20px; }

  .hero-actions { flex-direction: column; }

  .hero-actions .btn, .checkout-actions .nowpayments-btn { width: 100%; }

  .card { padding: 22px 18px; margin-bottom: 20px; }

  .age-gate { margin-top: 24px; }

  .age-gate .btn { width: 100%; }

  .feature-card { padding: 22px; }

  .card h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; line-height: 1.25; }

  .grid-3, .pf-purchase-grid { gap: 14px; }

  .pf-purchase-grid { margin-top: 20px; }

  .btn { min-height: 48px; padding: 12px 20px; text-align: center; }

  .nowpayments-header { gap: 12px; padding: 16px; }

  .nowpayments-body { padding: 18px; }

  .checkout-actions { flex-direction: column; }

  .address-box { flex-wrap: wrap; }

  .donation-card-heading {
    width: calc(100% + 44px);
    margin: -22px -22px 20px;
    padding: 18px;
  }

  #iframe-wrapper { display: block !important; max-width: 100%; padding: 10px !important; }

  #iframe-wrapper iframe { display: block; width: 100%; max-width: 346px; margin-inline: auto; }

  .footer { padding: 30px 16px; margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
