/* ================================================== */
/* ========== CSS VARIABLES ======================== */
/* ================================================== */
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-strong: #6366f1;
  --danger: #f97373;
  --warning: #facc15;
  --success: #22c55e;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #1f2937;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.85);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.65);
  --card-bg: rgba(15, 23, 42, 0.96);
}

/* ================================================== */
/* ========== RESET & GLOBAL STYLES ================ */
/* ================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; transition: 0.2s; }
.hidden { display: none !important; }

/* ================================================== */
/* ========== DASHBOARD TABS (UPDATED) ============= */
/* ================================================== */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* REMOVE OLD SETTINGS VIEW STYLES - THEY'RE NOT USED ANYMORE */
/* .settings-view { display: none; } */
/* .settings-view.active { display: block; } */

/* ================================================== */
/* ========== NAVIGATION =========================== */
/* ================================================== */
#mainNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-left { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 1.5rem; 
  font-weight: 700; 
}

.nav-tabs span {
  margin: 0 0.75rem; 
  cursor: pointer;
  padding: 7px 14px; 
  border-radius: var(--radius-pill);
  transition: 0.2s; 
  font-size: 14px; 
  color: var(--text-muted);
  border: 1px solid transparent;
}

.nav-tabs span:hover,
.nav-tabs span.active {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border-color: rgba(55, 65, 81, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.85);
}

.nav-right { position: relative; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f9fafb; 
  padding: 8px 16px; 
  border-radius: var(--radius-pill);
  font-weight: 550; 
  border: none;
  box-shadow: 0 12px 26px rgba(55, 48, 163, 0.6);
}

.btn-primary:hover { 
  opacity: 0.9; 
  transform: translateY(-1px); 
}

/* ================================================== */
/* ========== LOGIN & FORM STYLES ================== */
/* ================================================== */
.login-form,
#loginForm {
  position: absolute;
  top: 50px; 
  right: 10px;
  background: linear-gradient(135deg, rgba(15,23,42,0.98), #020617);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 10;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.login-form::before,
#loginForm::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.09), transparent 55%);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

.login-form input,
#loginForm input {
  width: 220px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.login-form input::placeholder,
#loginForm input::placeholder {
  color: var(--text-muted);
}

.login-form button,
#loginForm button {
  padding: 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f9fafb;
  font-weight: 600;
  border: none;
  box-shadow: 0 12px 26px rgba(55, 48, 163, 0.6);
}

/* ================================================== */
/* ========== HERO SECTION ========================= */
/* ================================================== */
.hero-section {
  background: transparent;
  padding: 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: flex-start;
}

.hero-left {
  flex: 1;
}

.hero-eyebrow {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.eyebrow-tag {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.17em;
  color: #a5b4fc;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(79, 70, 229, 0.6);
  background: rgba(17, 24, 39, 0.8);
  font-weight: 600;
}

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

.hero-title {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 750;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #a855f7, #6366f1, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Opportunity card */
.opportunity-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.95);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.opportunity-card::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.09), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.small-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.opportunity-header h3 {
  margin: 0.5rem 0;
  font-size: 16px;
  font-weight: 650;
}

.opportunity-tag {
  background-color: var(--success);
  color: #000;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.keyword-block {
  margin: 1rem 0;
  font-size: 13px;
  color: var(--text-muted);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.stat-box {
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.96);
  text-align: center;
}

.stat-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-weight: 700;
  font-size: 1.25rem;
}

.stat-value.strong {
  color: #a5b4fc;
}

.why-stands-out {
  margin-top: 1rem;
}

.why-stands-out ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.why-stands-out ul li::before {
  content: "• ";
  color: #6366f1;
}

/* Hero right value card */
.hero-right .value-card {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), rgba(15, 23, 42, 0.98));
  color: var(--text);
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
}

/* ================================================== */
/* ========== DASHBOARD ============================ */
/* ================================================== */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: transparent;
}

.sidebar {
  width: 220px;
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  border-right: 1px solid var(--border);
}

.sidebar .logo h1 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-email {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-links {
  flex: 1;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  padding: 10px;
  margin: 4px 0;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(30, 64, 175, 0.6);
  color: #e5e7eb;
  border: 1px solid rgba(96, 165, 250, 0.8);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.9);
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 15px 0;
}

.logout-link {
  color: var(--danger) !important;
}

.trial-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 20px;
}

.trial-info {
  margin-bottom: 10px;
}

.plan-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: #a5b4fc;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.3);
  margin-bottom: 5px;
}

.trial-box p {
  font-size: 12px;
  color: var(--text-muted);
}

.main-content {
  flex: 1;
  padding: 2rem;
  background: transparent;
}

.card {
  background: rgba(15, 23, 42, 0.96);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-subtle);
}

.dashboard-header {
  margin-bottom: 24px;
}

.dashboard-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.trial-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(79, 70, 229, 0.3);
  margin-bottom: 24px;
}

.trial-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trial-text h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 4px;
}

.trial-text p {
  color: var(--text-muted);
  font-size: 13px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stats-cards .card {
  margin-bottom: 0;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-change {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.stat-change.positive {
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-change.neutral {
  background: rgba(250, 204, 21, 0.1);
  color: #fef9c3;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.stats-cards .stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.recent-section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 650;
}

.activity-empty {
  text-align: center;
  padding: 40px 20px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 650;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 300px;
}

/* ================================================== */
/* ========== CAMPAIGNS TAB ======================== */
/* ================================================== */
.campaigns-header {
  margin-bottom: 24px;
}

.campaigns-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.campaigns-empty {
  text-align: center;
  padding: 60px 20px;
}

.campaigns-empty .empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.new-campaign-btn {
  margin-top: 16px;
}

#newCampaignForm {
  max-width: 800px;
  margin: 0 auto;
}

.new-campaign-header {
  margin-bottom: 24px;
}

.new-campaign-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.new-campaign-header p {
  color: var(--text-muted);
  font-size: 14px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.keywords-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.keyword-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.keyword-input {
  flex: 1;
}

.remove-keyword {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.remove-keyword:hover {
  background: rgba(239, 68, 68, 0.2);
}

.ai-generate-btn {
  margin-top: 8px;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ================================================== */
/* ========== NEW SETTINGS TAB (UPDATED) =========== */
/* ================================================== */
.settings-container {
  max-width: 800px;
  margin: 0 auto;
}

.settings-header {
  margin-bottom: 2rem;
}

.settings-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.settings-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.settings-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.settings-card::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.09), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
  position: relative;
  z-index: 1;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text);
}

.edit-btn {
  background: transparent;
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.6);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  background: rgba(79, 70, 229, 0.1);
}

.edit-btn:hover {
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(129, 140, 248, 0.9);
}

.info-section {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h3 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.info-label {
  width: 150px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.info-value {
  flex: 1;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.email-value {
  color: #a5b4fc;
}

.notifications-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.notification-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.notification-description {
  font-size: 12px;
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(51, 65, 85, 0.9);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

.danger-text h4 {
  color: var(--danger);
  margin-bottom: 0.25rem;
  font-size: 14px;
  font-weight: 600;
}

.danger-text p {
  color: var(--text-muted);
  font-size: 12px;
}

.delete-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ======================= */
/* ===== MODALS ========= */
/* ======================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 8, 22, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.modal {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.09), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
  position: relative;
  z-index: 1;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text);
}

.modal-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(51, 65, 85, 1);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Modal-specific notification items */
.modal .notification-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

/* ================================================== */
/* ========== HOW IT WORKS SECTION ================= */
/* ================================================== */
.how-it-works-section {
  max-width: 1120px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.how-it-works-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.how-it-works-section .section-title {
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
}

.how-it-works-section .section-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.step-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.09), transparent 55%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.step-card-inner {
  position: relative;
  z-index: 1;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(55, 48, 163, 0.6);
}

.step-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 4px;
}

.step-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.step-body {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.step-features {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.step-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text);
}

.step-features li:before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  font-size: 11px;
  width: 18px;
  height: 18px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-time {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.step-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(55, 65, 81, 0.7);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.badge-high {
  border-color: rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.1);
}

.badge-medium {
  border-color: rgba(250, 204, 21, 0.7);
  color: #fef9c3;
  background: rgba(234, 179, 8, 0.12);
}

.step-card.highlight {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 22px 45px rgba(55, 48, 163, 0.9);
}

.step-card.highlight::before {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.15), transparent 55%);
}

.step-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.metric-item {
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.96);
  text-align: center;
}

.metric-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.step-progress {
  margin-top: 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.how-it-works-cta {
  margin-top: 36px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.95);
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.how-it-works-cta::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.2), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.15), transparent 55%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.how-it-works-cta-inner {
  position: relative;
  z-index: 1;
}

.how-it-works-cta h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
  color: var(--text);
}

.how-it-works-cta p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* ================================================== */
/* ========== PRICING SECTION ====================== */
/* ================================================== */
#pricingPage {
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 2rem;
}

#pricingPage h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

#pricingPage > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.plan-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(51, 65, 85, 0.95);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.09), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.plan-card:nth-child(2) {
  border-top: 4px solid var(--success);
  transform: scale(1.05);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.9);
}

.plan-card h3 {
  color: #a5b4fc;
  margin-bottom: 0.5rem;
  font-size: 18px;
  font-weight: 650;
}

.plan-card > p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 13px;
}

.plan-card strong {
  font-size: 2rem;
  color: var(--text);
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-card h4 {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.plan-card ul {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
}

.plan-card li {
  padding: 6px 0;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
  font-size: 13px;
}

.plan-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.plan-card button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f9fafb;
  width: 100%;
  padding: 12px;
  margin-top: 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(55, 48, 163, 0.6);
}

.plan-card button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ================================================== */
/* ========== FAQ SECTION ========================== */
/* ================================================== */
#faqPage {
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 2rem;
}

#faqPage .card {
  max-width: 800px;
  margin: 0 auto;
}

#faqPage h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

#faqPage > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.faq-item {
  padding: 16px;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ================================================== */
/* ========== CONTACT PAGE ========================= */
/* ================================================== */
#contactPage {
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.contact-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid rgba(51, 65, 85, 0.95);
  box-shadow: var(--shadow-soft);
}

.vertical-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

.vertical-form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #a5b4fc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.vertical-form input,
.vertical-form textarea {
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-family: inherit;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.vertical-form input:focus,
.vertical-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.vertical-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  padding: 12px 28px;
  font-size: 14px;
  align-self: flex-start;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(55, 48, 163, 0.6);
}

.vertical-form button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ================================================== */
/* ========== BUTTON STYLES ======================== */
/* ================================================== */
.btn-ghost {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.8);
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-soft {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(129, 140, 248, 0.9);
  background: var(--accent-soft);
  color: #e0e7ff;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ================================================== */
/* ========== RESPONSIVE DESIGN ==================== */
/* ================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links {
    display: flex;
    gap: 8px;
  }
  
  .nav-links a {
    padding: 8px 12px;
  }
  
  .trial-box {
    display: none;
  }
  
  .main-content {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  #mainNav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stats-row {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .plan-card:nth-child(2) {
    transform: none;
  }
  
  .sidebar {
    width: 100%;
    padding: 1rem;
    flex-direction: row;
    overflow-x: auto;
  }
  
  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .nav-links a {
    white-space: nowrap;
    padding: 6px 12px;
  }
  
  .section-grid {
    grid-template-columns: 1fr;
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .step-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .trial-banner-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .campaigns-header {
    text-align: center;
  }
  
  /* Settings responsive */
  .settings-card {
    padding: 1rem;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .info-label {
    width: 100%;
  }
  
  .danger-zone {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .notification-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .login-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .plan-card {
    padding: 1.5rem;
  }
  
  .contact-section {
    padding: 1.5rem;
  }
  
  .how-it-works-section {
    padding: 0 1rem;
  }
  
  .how-it-works-cta {
    padding: 1.5rem;
  }
  
  .step-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .info-row {
    flex-direction: column;
    gap: 4px;
  }
  
  .info-label {
    width: 100%;
  }
  
  .danger-zone {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .notification-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions button {
    width: 100%;
  }
}