/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #181818;
  --border: #222222;
  --accent: #00ffa3;
  --accent-dim: rgba(0, 255, 163, 0.12);
  --accent-hover: #00d988;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-sub: #aaaaaa;
  --error: #ff4d4d;
  --error-bg: rgba(255, 77, 77, 0.08);
  --success: #00ffa3;
  --success-bg: rgba(0, 255, 163, 0.08);
  --premium: #ffd700;
  --premium-bg: rgba(255, 215, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-dim);
}

.btn-full { width: 100%; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-whatsapp:hover {
  background: #1ab956;
  color: #fff;
  transform: translateY(-1px);
}

.btn-pitch {
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
}
.btn-pitch:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 163, 0.25);
}

.btn-link {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.btn-link:hover { color: var(--accent); }

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert-error {
  background: var(--error-bg);
  border: 1px solid rgba(255,77,77,0.3);
  color: #ff8080;
}
.alert-success {
  background: var(--success-bg);
  border: 1px solid rgba(0,255,163,0.3);
  color: var(--accent);
}

/* ============================================
   LOGO
   ============================================ */
.logo-accent {
  color: var(--accent);
  font-weight: 800;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,255,163,0.05) 0%, transparent 60%);
}

.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-logo {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

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

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-form input[type="email"] {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.login-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,255,163,0.1);
}

.login-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.login-help {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   OBRIGADO PAGE
   ============================================ */
.ty-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,255,163,0.06) 0%, transparent 60%);
}

.ty-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  width: 100%;
  max-width: 520px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ty-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  margin: 0 auto 24px;
}

.ty-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.ty-text {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.7;
}

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

.ty-cta-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.topbar-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-greeting {
  font-size: 14px;
  color: var(--text-muted);
}

.topbar-logout {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}
.topbar-logout:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* MAIN */
.dashboard-main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  width: 100%;
}

/* WELCOME */
.welcome-section {
  margin-bottom: 48px;
}

.welcome-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.welcome-sub {
  color: var(--text-muted);
  font-size: 16px;
}

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

/* SECTION */
.section-block {
  margin-bottom: 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.label-badge {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* GRID */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #2e2e2e;
}

.card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 0;
  overflow: hidden;
}

.card-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.card-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.card-featured .card-info {
  padding: 28px 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-detail {
  font-size: 14px;
  color: var(--text-sub);
}

/* BONUS CARDS */
.card-bonus {
  border-color: #1a2a2a;
  background: linear-gradient(135deg, var(--surface) 0%, #0d1a14 100%);
}

.bonus-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* PREMIUM CARD */
.card-premium {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, #1a1500 100%);
  text-align: center;
  padding: 40px;
}

.premium-badge-wrap {
  margin-bottom: 16px;
}

.badge-premium {
  display: inline-block;
  background: var(--premium-bg);
  color: var(--premium);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
}

.badge-premium-lg {
  display: inline-block;
  background: var(--premium-bg);
  color: var(--premium);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
}

/* PITCH CARD */
.card-pitch {
  background: linear-gradient(135deg, #0d1a14 0%, #0a0a0a 100%);
  border: 1px solid rgba(0,255,163,0.2);
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.pitch-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.pitch-content {
  flex: 1;
}

.pitch-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.pitch-text {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
}

.pitch-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-right: 40px;
}

.modal-video-section {}
.modal-video-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .card-featured {
    grid-template-columns: 1fr;
  }

  .card-featured .card-info {
    padding: 0 20px 24px;
  }

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

  .card-pitch {
    flex-direction: column;
    text-align: center;
  }

  .welcome-title {
    font-size: 22px;
  }

  .login-box {
    padding: 32px 24px;
  }

  .ty-box {
    padding: 40px 24px;
  }

  .topbar-greeting {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar-logo {
    font-size: 14px;
  }

  .dashboard-main {
    padding: 24px 16px 60px;
  }
}
