/* ==========================================================================
   bigleads.ai - Modern Dark Theme Stylesheet
   ========================================================================== */

:root {
  --bg-main: #0B0B0F;
  --bg-card: rgba(17, 17, 22, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(255, 255, 255, 0.03);
  
  --color-text-main: #ffffff;
  --color-text-muted: #9ca3af;
  
  --neon-cyan: #7C3AED;
  --neon-purple: #4F46E5;
  --electric-blue: #8b5cf6;
  
  --gradient-brand: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  --gradient-btn: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  --gradient-btn-hover: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-neon: 0 0 25px rgba(124, 58, 237, 0.4);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --font-main: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  --z-navbar: 100;
  --z-cookie: 105;
  --z-modal: 110;
}

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

body {
  background-color: var(--bg-main);
  color: var(--color-text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Animated Ambient Background Glows --- */
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
}

.orb-2 {
  bottom: 5%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: var(--neon-purple);
  animation-delay: -6s;
}

.orb-3 {
  top: 45%;
  left: 45%;
  width: 400px;
  height: 400px;
  background: var(--electric-blue);
  animation-delay: -12s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* --- Layout --- */
.layout-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header & Navbar --- */
.app-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  position: relative;
  z-index: var(--z-navbar);
}

.nav-left {
  display: flex;
  align-items: center;
}

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

.nav-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-link-btn {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-link-btn:hover {
  color: var(--neon-cyan);
}

.brand-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090d16;
  font-size: 1.5rem;
  box-shadow: var(--shadow-neon);
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.brand-container:hover .logo-icon {
  transform: rotate(0deg) scale(1.05);
}

.brand-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
}

.brand-title .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}

/* --- Search Card --- */
.search-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.scrape-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

@media (max-width: 900px) {
  .scrape-form {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label i {
  color: var(--neon-cyan);
}

.form-group input {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.form-group input:focus {
  border-color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

/* --- Buttons --- */
.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* --- Notice Banner --- */
.notice-banner {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #fde047;
  font-size: 0.95rem;
}

.notice-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

/* --- Progress Bar --- */
.progress-container {
  margin-bottom: 2rem;
  text-align: center;
}

.progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px var(--neon-cyan);
}

.progress-text {
  color: var(--neon-cyan);
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Metrics Grid --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  backdrop-filter: blur(12px);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.metric-icon.cyan { background: rgba(124, 58, 237, 0.12); color: var(--neon-cyan); }
.metric-icon.purple { background: rgba(168, 85, 247, 0.12); color: var(--neon-purple); }
.metric-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--electric-blue); }

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Table Toolbar & Filter --- */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-filter {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-filter i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.search-filter input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.search-filter input:focus {
  border-color: var(--neon-purple);
}

/* --- Table --- */
.table-responsive {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.leads-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--neon-cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--bg-card-border);
  white-space: nowrap;
}

.leads-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: #e5e7eb;
}

.leads-table tbody tr {
  transition: background-color 0.2s ease;
}

.leads-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

@keyframes fadeInRow {
  from { opacity: 0; transform: translateY(6px); background-color: rgba(124, 58, 237, 0.15); }
  to { opacity: 1; transform: translateY(0); background-color: transparent; }
}

.fade-in-row {
  animation: fadeInRow 0.5s ease-out forwards;
}

.lead-name {
  font-weight: 700;
  color: #ffffff;
}

.lead-email {
  color: var(--neon-cyan);
  font-family: monospace;
}

.lead-phone {
  white-space: nowrap;
}

.link-btn {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-btn:hover {
  color: var(--neon-cyan);
  text-decoration: underline;
}

/* --- Social Icons Badges --- */
.social-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.social-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: rgba(255, 255, 255, 0.08);
}

.social-badge:hover {
  transform: translateY(-2px) scale(1.1);
}

.social-badge.facebook:hover { background: #1877f2; }
.social-badge.instagram:hover { background: #e4405f; }
.social-badge.linkedin:hover { background: #0a66c2; }
.social-badge.twitter:hover { background: #1da1f2; }
.social-badge.youtube:hover { background: #ff0000; }
.social-badge.tiktok:hover { background: #00f2fe; color: #000; }

.badge-na {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* --- Footer --- */
.app-footer {
  margin-top: auto;
  padding-top: 3rem;
  text-align: center;
}

.footer-content {
  border-top: 1px solid var(--bg-card-border);
  padding-top: 1.5rem;
}

.credit-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.credit-text strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* --- Utility Classes --- */
.hidden {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   CSV Export Settings Modal
══════════════════════════════════════════════════════════════════════════ */

/* Overlay / Backdrop */
.csv-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.csv-modal-overlay.csv-modal-visible {
  opacity: 1;
}

/* Modal Card */
.csv-modal {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.07);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.csv-modal-overlay.csv-modal-visible .csv-modal {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.csv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.75rem 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.csv-modal-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.csv-modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.csv-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.csv-modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.csv-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.csv-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Modal Body */
.csv-modal-body {
  padding: 1.4rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Column header row */
.csv-columns-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 0.75rem;
}

.csv-columns-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.csv-select-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.csv-select-link {
  background: none;
  border: none;
  color: var(--neon-purple);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.csv-select-link:hover {
  color: #ffffff;
}

.csv-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  line-height: 1;
}

/* 2-column grid of checkboxes */
.csv-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (max-width: 480px) {
  .csv-columns-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual checkbox label card */
.csv-col-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  position: relative;
}

.csv-col-checkbox:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.2);
}

/* Hide native checkbox */
.csv-col-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom checkbox box */
.csv-checkbox-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  font-size: 0.65rem;
  color: transparent;
}

.csv-col-checkbox input[type="checkbox"]:checked ~ .csv-checkbox-box {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #090d16;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.45);
}

/* Highlight the whole card when checked */
.csv-col-checkbox:has(input:checked) {
  border-color: rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.05);
}

/* Column icon + name */
.csv-col-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.csv-col-icon {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.csv-col-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Preview count pill */
.csv-preview-count {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Modal Footer */
.csv-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  padding: 1.2rem 1.75rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Cancel button */
.csv-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.csv-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Export Now button */
.csv-btn-export {
  background: var(--gradient-brand);
  border: none;
  color: #090d16;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 243, 255, 0.25);
  letter-spacing: 0.2px;
}

.csv-btn-export:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4);
  filter: brightness(1.1);
}

.csv-btn-export:active {
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════════
   Footer Links & Info Modals (About, FAQ, Privacy)
══════════════════════════════════════════════════════════════════════════ */

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.25rem;
}

.footer-link-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Info Modal Specifics */
.info-modal-body {
  padding: 1.75rem 2rem;
}

.info-content-block h3 {
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-content-block p {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.info-content-block ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.info-content-block li {
  color: #d1d5db;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.info-content-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--neon-purple);
}

/* FAQ Styles */
.faq-list .faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-list .faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.faq-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   Auth UI & Dashboard States
══════════════════════════════════════════════════════════════════════════ */

.user-controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.auth-view {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-card);
}

.auth-card h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card p {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
/* ══════════════════════════════════════════════════════════════════════════
   Landing Page (Hero, Features, How It Works)
══════════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }

.hero-section {
  padding: 4rem 1rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-title {
  font-size: 2rem;
  color: #fff;
  margin: 5rem 0 3rem;
  font-weight: 700;
}

.features-grid, .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card, .step-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
}

.feature-card h4, .step-card h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.feature-card p, .step-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.5rem;
}
.auth-switch span {
  color: var(--color-text-muted);
}

/* --- Form Success Message --- */
#successMessageContainer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  color: #4ade80;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 17, 22, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--bg-card-border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  z-index: var(--z-cookie);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#cookie-banner.show {
  transform: translateY(0);
}
#cookie-banner .cookie-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
}
#cookie-banner a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

/* --- Mobile Responsiveness (< 768px) --- */
@media (max-width: 768px) {
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .input-group {
    flex-direction: column;
  }
  .input-group input {
    width: 100%;
  }
  .input-group button {
    width: 100%;
    justify-content: center;
  }
  .top-navbar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-center, .nav-right {
    flex-wrap: wrap;
    justify-content: center;
  }
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  #cookie-banner .btn-primary {
    width: 100%;
  }
}
