/* ═══════════════════════════════════════════════════════════════════════════
   goru.rocks — Shared Dark Theme Styles
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --bg: #08080e;
  --bg2: #0c0c14;
  --surface: #10101a;
  --surface2: #181824;
  --surface3: #1e1e2e;
  --border: rgba(255, 255, 255, 0.04);
  --border2: rgba(255, 255, 255, 0.08);
  --pk: #FF2D78;
  --pr: #A855F7;
  --cy: #06D6A0;
  --tx: #e8e8f0;
  --tx2: #9898b0;
  --tx3: #6a6a82;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(255, 45, 120, 0.15);
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── Utility Classes ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--pk), var(--pr), var(--cy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pk), var(--pr));
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 45, 120, .25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 45, 120, 0.4);
  color: #fff;
}

.btn-secondary {
  background: rgba(24, 24, 36, .6);
  color: var(--tx);
  border: 1px solid rgba(255, 255, 255, .06);
}
.btn-secondary:hover {
  background: var(--surface3);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-google {
  background: #ea4335;
  color: #fff;
}
.btn-google:hover { background: #d33426; color: #fff; }

.btn-discord {
  background: #5865F2;
  color: #fff;
}
.btn-discord:hover { background: #4752c4; color: #fff; }

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(135deg, rgba(24,24,36,.8), rgba(16,16,26,.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-glow {
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 45, 120, 0.1);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx2);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--tx);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--pk);
  box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.1);
}
.form-input::placeholder {
  color: var(--tx3);
}
.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--tx);
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a6a82' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select:focus {
  border-color: var(--pk);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--tx2);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pk);
  cursor: pointer;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2);
  transition: color var(--transition);
}
.nav-link:hover {
  color: var(--tx);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2);
}

/* ── Tier Badge ────────────────────────────────────────────────────────── */
.tier-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tier-free { background: rgba(106, 106, 130, 0.2); color: var(--tx3); }
.tier-starter { background: rgba(168, 85, 247, 0.15); color: var(--pr); }
.tier-pro { background: rgba(255, 45, 120, 0.15); color: var(--pk); }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--tx3);
  font-size: 24px;
  cursor: pointer;
}

/* ── Progress Bar ──────────────────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pk), var(--pr));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ── Toast/Notification ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toast-in 0.3s ease;
  max-width: 360px;
}
.toast.error { border-color: rgba(239, 68, 68, 0.3); color: var(--danger); }
.toast.success { border-color: rgba(34, 197, 94, 0.3); color: var(--success); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Pricing Cards ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(24,24,36,.8), rgba(16,16,26,.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px) scale(1.02);
}
.pricing-card.featured {
  border-color: rgba(255, 45, 120, 0.2);
  box-shadow: var(--shadow-glow);
}
.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pk), var(--pr));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-price .currency {
  font-size: 20px;
  vertical-align: super;
  opacity: 0.6;
}
.pricing-price .period {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx3);
}

.pricing-features {
  list-style: none;
  margin: 24px 0;
  flex: 1;
}
.pricing-features li {
  font-size: 13px;
  color: var(--tx2);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '\2713';
  color: var(--cy);
  font-weight: 700;
  font-size: 14px;
}
.pricing-features li.disabled {
  opacity: 0.35;
}
.pricing-features li.disabled::before {
  content: '\2717';
  color: var(--tx3);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--tx3);
  font-size: 13px;
  margin-top: auto;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.footer-socials a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: var(--tx3);
  transition: fill 0.2s;
}
.footer-socials a:hover svg {
  fill: var(--tx);
}
/* Sticky footer — always at bottom of viewport */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding: 0 12px;
}

.footer-links a {
  color: var(--tx3);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--tx);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .nav-links {
    gap: 12px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 32px !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 16px;
  }

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

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface3);
}

/* ── Loading Spinner ───────────────────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--surface2);
  border-top-color: var(--pk);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Stat Box ──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-box {
  background: linear-gradient(135deg, rgba(24,24,36,.8), rgba(16,16,26,.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
}

/* ── Table ─────────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border2);
}

.data-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

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

/* ── Video Gallery Grid ────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: linear-gradient(135deg, rgba(24,24,36,.8), rgba(16,16,26,.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-thumb {
  aspect-ratio: 9 / 16;
  background: var(--bg2);
  position: relative;
}

.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-info {
  padding: 16px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tx3);
}

.like-btn {
  background: none;
  border: none;
  color: var(--tx3);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.like-btn:hover, .like-btn.liked {
  color: var(--pk);
}

.staff-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(255, 45, 120, 0.1);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--pk);
}

/* ── Section Spacing ───────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--tx2);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Legal Page Styles ─────────────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--pk);
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--tx2);
}

.legal-content p, .legal-content li {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
}

.legal-meta {
  font-size: 12px;
  color: var(--tx3);
  margin-bottom: 32px;
}

/* ── Collapsible Section ───────────────────────────────────────────────── */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--tx2);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.collapsible-header .arrow {
  transition: transform 0.2s;
}

.collapsible-header.open .arrow {
  transform: rotate(180deg);
}

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.collapsible-body.open {
  max-height: 2000px;
}

/* ── Animated Background Orbs ─────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(100px);
}
.orb--pink {
  width: 600px;
  height: 600px;
  background: rgba(255, 45, 120, .06);
  top: -10%;
  left: -5%;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb--purple {
  width: 500px;
  height: 500px;
  background: rgba(168, 85, 247, .05);
  top: 40%;
  right: -10%;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.orb--cyan {
  width: 550px;
  height: 550px;
  background: rgba(6, 214, 160, .04);
  bottom: -10%;
  left: 30%;
  animation: drift 25s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(40px, -30px); }
  50%  { transform: translate(-20px, 50px); }
  75%  { transform: translate(30px, 20px); }
  100% { transform: translate(-40px, -40px); }
}

/* ── Fade-Up Entrance Animation ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero,
.pricing-card,
.feature-item,
.step-card,
.preview-section,
.card {
  animation: fadeUp .6s ease both;
}
.pricing-card:nth-child(2),
.feature-item:nth-child(2),
.step-card:nth-child(2) {
  animation-delay: .1s;
}
.pricing-card:nth-child(3),
.feature-item:nth-child(3),
.step-card:nth-child(3) {
  animation-delay: .2s;
}
.feature-item:nth-child(4) {
  animation-delay: .3s;
}
