@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0a14;
  --bg-card: #12121f;
  --bg-card-2: #1a1a2e;
  --gold: #d4a017;
  --gold-light: #f0c44a;
  --gold-dim: rgba(212, 160, 23, 0.15);
  --gold-border: rgba(212, 160, 23, 0.3);
  --text: #f0ece0;
  --text-muted: #8a8aa8;
  --green: #1e7e34;
  --green-light: #28a745;
  --red: #c0392b;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── HEADER ── */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--gold);
  padding: 0 20px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-flag {
  font-size: 2rem;
  line-height: 1;
}

.logo-text .site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo-text .site-sub {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.header-badge {
  background: var(--gold);
  border: 1px solid #b8860b;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #000010 0%, #0d0d22 50%, #050510 100%);
  padding: 64px 20px 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 30%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Two-column split layout */
.hero-split {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 440px;
  line-height: 1.65;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px 0;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.hero-bullets li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-buy-wrap .buy-card {
  margin: 0;
  max-width: 100%;
}

/* ── ABOUT RALPH ── */
.about-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: center;
}

.host-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--gold-border);
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.15);
}

.host-info .host-name {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.host-info .host-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.host-info .host-bio {
  color: var(--text);
  line-height: 1.75;
  font-size: 0.975rem;
}

/* ── SHEET SECTION ── */
.sheet-section {
  background: var(--bg-card);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 56px 20px;
  text-align: center;
}

.sheet-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-align: center;
}

.sheet-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-card-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

/* ── BUY SECTION ── */
.buy-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px;
}

.buy-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 2px solid var(--gold-border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow), 0 0 60px rgba(212, 160, 23, 0.06);
}

.buy-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.buy-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.buy-price {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin: 16px 0;
}

.buy-price sup {
  font-size: 1.5rem;
  vertical-align: super;
  color: var(--gold);
}

.buy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.track-info {
  background: rgba(30, 126, 52, 0.12);
  border: 1px solid rgba(40, 167, 69, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text);
  text-align: left;
}

.track-info strong {
  color: var(--green-light);
}

.sheet-notes {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 24px;
}

#paypal-button-container {
  min-height: 48px;
}

.sheet-unavailable {
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 8px;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sheet-unavailable strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 1rem;
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold-dim);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

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

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

/* ── THANK YOU PAGE ── */
.ty-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.ty-card {
  background: var(--bg-card);
  border: 2px solid var(--gold-border);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow), 0 0 80px rgba(212, 160, 23, 0.08);
}

.ty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.ty-card h1 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 6px;
}

.ty-card .ty-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.timer-block {
  background: var(--bg-card-2);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

.timer-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timer-display {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-display.urgent {
  color: #e74c3c;
  animation: pulse 1s ease-in-out infinite;
}

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

.timer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #000;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.35);
  margin-bottom: 16px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 160, 23, 0.45);
  color: #000;
}

.btn-download:disabled,
.btn-download.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ty-expired {
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 10px;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ty-expired strong {
  display: block;
  color: #e74c3c;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ── ADMIN ── */
.admin-body {
  font-family: 'Inter', sans-serif;
  background: #0d0d18;
  color: var(--text);
  min-height: 100vh;
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.admin-login-card .login-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-border);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
}

.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.btn-danger {
  background: rgba(192, 57, 43, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(192, 57, 43, 0.3);
}

.btn-green {
  background: rgba(30, 126, 52, 0.2);
  color: var(--green-light);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.btn-green:hover {
  background: rgba(30, 126, 52, 0.35);
}

.error-msg {
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
  color: #e74c3c;
  margin-bottom: 20px;
}

/* Admin nav */
.admin-nav {
  background: #07070f;
  border-bottom: 1px solid var(--gold-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Admin layout */
.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 28px;
}

.admin-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-card.full-width {
  grid-column: 1 / -1;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-good {
  background: rgba(40, 167, 69, 0.15);
  color: var(--green-light);
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.status-warn {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-box {
  flex: 1;
  background: var(--bg-card-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stat-box .stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-box .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Purchases table */
.purchases-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.purchases-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.purchases-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}

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

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.tab-btn.active {
  background: var(--bg-card-2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card-2);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s;
  z-index: 9999;
  max-width: 340px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-color: rgba(40, 167, 69, 0.4); }
.toast.error { border-color: rgba(192, 57, 43, 0.4); }

/* Upload drop zone */
.upload-zone {
  border: 2px dashed var(--gold-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card-2);
  margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone p { font-size: 0.85rem; color: var(--text-muted); }
.upload-zone strong { color: var(--gold); }

input[type="file"] { display: none; }

/* Calendar icon — white on dark background */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-divider {
    margin: 24px auto;
  }

  .hero-bullets {
    align-items: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .ty-card {
    padding: 36px 24px;
  }

  .admin-login-card {
    padding: 36px 24px;
  }
}
