/* ============================================
   Tipity Ads — Same dark theme as TestLaunchPro
   ============================================ */
:root {
  --primary: #DC2626;
  --primary-light: #EF4444;
  --primary-dark: #B91C1C;
  --primary-glow: rgba(220, 38, 38, 0.3);
  --accent: #FF6B6B;
  --bg: #000000;
  --bg-card: #0A0A0A;
  --bg-elevated: #141414;
  --bg-input: #1A1A1A;
  --border: #222222;
  --border-light: #333333;
  --text: #FFFFFF;
  --text-secondary: #AAAAAA;
  --text-muted: #666666;
  --danger: #EF4444;
  --warning: #F59E0B;
  --success: #10B981;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
  --nav-height: 64px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.hidden { display: none !important; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary-light); text-decoration: none; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(0,0,0,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--text); }
.logo-accent { color: var(--primary-light); }
.nav-links { display: flex; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 8px; color: var(--text-secondary); font-weight: 500; font-size: 14px; transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-elevated); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; box-shadow: 0 2px 12px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-light); }
.btn-outline:hover { border-color: var(--primary-light); background: rgba(220,38,38,0.1); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg-elevated); }
.btn-ghost.active, .admin-tab.active { color: var(--primary-light); background: rgba(220,38,38,0.1); border-color: var(--primary); }
.btn-large { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-small { padding: 6px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-google { background: #fff; color: #333; font-weight: 600; border: 1px solid #dadce0; }
.btn-google:hover { background: #f7f7f7; }
.role-btn.active { border-color: var(--primary); background: rgba(220,38,38,0.1); color: var(--primary-light); }

/* Hero */
.hero { position: relative; padding: calc(var(--nav-height) + 60px) 24px 60px; text-align: center; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220,38,38,0.12), transparent); pointer-events: none; }
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.25); border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--primary-light); margin-bottom: 24px; }
.hero-title { font-size: clamp(36px, 6vw, 56px); font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Pages */
.page { animation: fadeIn 0.3s ease; }
.page.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.page-header { padding: calc(var(--nav-height) + 40px) 24px 32px; max-width: 1200px; margin: 0 auto; }
.page-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { font-size: 16px; color: var(--text-secondary); }
.section { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px; }
.form-input:focus { outline: none; border-color: var(--primary-light); }

/* Auth Modal */
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 2500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; max-width: 400px; width: 100%; padding: 36px 32px; text-align: center; position: relative; }
.auth-modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.auth-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

/* User Menu */
.user-menu { position: relative; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2px solid var(--border); object-fit: cover; }
.user-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 180px; box-shadow: var(--shadow); z-index: 100; }
.user-dropdown.open { display: block; }
.user-name { display: block; padding: 8px 12px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown-link { display: block; width: 100%; padding: 8px 12px; border-radius: 6px; color: var(--text-secondary); font-size: 14px; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.dropdown-link:hover { background: var(--bg-elevated); color: var(--text); }

/* Utility */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.loading-state { text-align: center; padding: 48px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.status-active { background: rgba(16,185,129,0.15); color: var(--success); }
.status-paused { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-draft { background: rgba(170,170,170,0.12); color: #aaa; }
.status-pending_payment { background: rgba(245,158,11,0.15); color: var(--warning); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-brand { margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* Upload zones */
.upload-zone { min-height: 180px; border: 2px dashed var(--border-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; cursor: pointer; transition: all 0.2s; background: var(--bg-card); }
.upload-zone:hover { border-color: var(--primary-light); background: rgba(220,38,38,0.03); }
.upload-zone.dragover { border-color: var(--primary); background: rgba(220,38,38,0.08); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 28px; }
}


/* Form labels */
.form-label { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* Radio cards for pricing selection */
.radio-card { display: block; cursor: pointer; text-align: center; padding: 16px 12px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 12px; transition: all 0.2s; }
.radio-card:hover { border-color: var(--primary-light); }
.radio-card.selected { border-color: var(--primary); background: rgba(220,38,38,0.06); box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
.radio-card input { display: none; }
.radio-label { font-weight: 700; font-size: 16px; color: var(--text); }
.radio-label small { display: block; font-size: 13px; font-weight: 600; color: var(--success); margin-top: 4px; }

/* Section title */
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 32px; }

/* Google button */
.btn-google { background: #fff; color: #333; font-weight: 600; border: 1px solid #dadce0; gap: 10px; }
.btn-google:hover { background: #f7f7f7; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }
