/* ── Really Simple Surfing — Global Styles ── */

:root {
  --bg:        #0d1526;
  --bg2:       #162040;
  --bg3:       #1e2d56;
  --accent:    #00d4ff;
  --accent2:   #0099cc;
  --green:     #00e676;
  --red:       #ff4757;
  --gold:      #ffd700;
  --text:      #e8f0fe;
  --muted:     #8899bb;
  --border:    rgba(0,212,255,0.15);
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --font:      'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* 60px nav + 16px breathing room */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,21,38,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-logo .wave { font-size: 1.3rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg3);
  text-decoration: none;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-credits {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #33deff;
  text-decoration: none;
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover { background: #ff6b78; text-decoration: none; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ── Stat blocks ─────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.form-group { margin-bottom: 1rem; }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

input[type=text], input[type=email], input[type=password],
input[type=url], input[type=number], textarea, select {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--muted); }

select option { background: var(--bg2); }

textarea { resize: vertical; min-height: 80px; }

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── Flash messages ──────────────────────────────────────── */

.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.flash-error   { background: rgba(255,71,87,0.15);  border: 1px solid rgba(255,71,87,0.4);  color: #ff8a95; }
.flash-success { background: rgba(0,230,118,0.12);  border: 1px solid rgba(0,230,118,0.4);  color: #66ffa6; }
.flash-info    { background: rgba(0,212,255,0.10);  border: 1px solid rgba(0,212,255,0.3);  color: var(--accent); }

/* ── Badges ──────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-pro      { background: var(--gold);   color: #1a1000; }
.badge-approved { background: rgba(0,230,118,0.2); color: var(--green); border: 1px solid rgba(0,230,118,0.4); }
.badge-pending  { background: rgba(255,215,0,0.15); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }
.badge-rejected { background: rgba(255,71,87,0.15); color: var(--red); border: 1px solid rgba(255,71,87,0.3); }
.badge-paused   { background: rgba(136,153,187,0.15); color: var(--muted); border: 1px solid rgba(136,153,187,0.3); }

/* ── Tables ──────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: rgba(0,0,0,0.2);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

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

.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-header {
  margin-bottom: 2rem;
}
.page-header h1 { font-size: 1.75rem; }
.page-header p  { color: var(--muted); margin-top: 0.25rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Hero (landing page) ─────────────────────────────────── */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0,153,204,0.08), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

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

.features {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  margin-bottom: 3rem;
}
.features-title h2 { font-size: 2rem; }
.features-title p   { color: var(--muted); margin-top: 0.5rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p  { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

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

.pricing {
  padding: 5rem 1.5rem;
  background: var(--bg2);
}

.pricing-inner { max-width: 1000px; margin: 0 auto; }

.pricing-title {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.price-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
}

.price-card .featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}

.price-name  { font-size: 1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.price-amount { font-size: 2.5rem; font-weight: 900; margin: 0.75rem 0 0.25rem; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li .check { color: var(--green); font-weight: 700; flex-shrink: 0; }

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

.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

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

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

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--muted); }
.text-success { color: var(--green); }
.text-danger  { color: var(--red); }
.text-gold    { color: var(--gold); }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }

.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }

.d-flex   { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100  { width: 100%; }

.hidden { display: none !important; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Auth pages */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}
.auth-box h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.auth-box p  { color: var(--muted); margin-bottom: 1.75rem; font-size: 0.875rem; }

/* Progress bar */
.progress-bar {
  background: var(--bg3);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 20px;
  transition: width 0.3s;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .hero-stats { gap: 1.5rem; }
  .nav-links { display: none; }
  .page-wrap { padding: 1.25rem 1rem; }
}
