@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: #1a1f2e;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, #0369a1 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(99,179,237,.08);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(56,189,248,.06);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

/* ── Spacing ───────────────────────────────────────────────────────── */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.section-sub   { color: #64748b; font-size: 1.05rem; }

/* ── Navbar ────────────────────────────────────────────────────────── */
.navbar-dark.bg-dark {
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-brand { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
  border: 1px solid #e8edf5;
  border-radius: 14px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(15,23,42,.08) !important; }
.card-header { border-radius: 14px 14px 0 0 !important; border-bottom: 1px solid #f0f4f8; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn { border-radius: 8px; font-weight: 500; letter-spacing: -.01em; }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}
.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
}
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }

/* ── Form controls ─────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  padding: .6rem 1rem;
  font-size: .925rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-label { font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: .4rem; }

/* ── Auth pages ────────────────────────────────────────────────────── */
.auth-card {
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15,23,42,.12);
  border: none;
}
.auth-logo { font-size: 2rem; color: #2563eb; }

/* ── Progress steps ────────────────────────────────────────────────── */
.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: .9rem;
  transition: all .3s;
}
.progress-step .step-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  background: #f1f5f9;
  color: #94a3b8;
  flex-shrink: 0;
  font-weight: 700;
}
.progress-step.active {
  background: #eff6ff;
  color: #2563eb;
}
.progress-step.active .step-icon {
  background: #2563eb;
  color: #fff;
  animation: pulse 1.5s infinite;
}
.progress-step.done { color: #16a34a; }
.progress-step.done .step-icon {
  background: #dcfce7;
  color: #16a34a;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}

/* ── Progress bar ──────────────────────────────────────────────────── */
.progress { background: #f1f5f9; border-radius: 99px; }
.progress-bar { border-radius: 99px; transition: width .5s ease; }

/* ── Badges & pills ────────────────────────────────────────────────── */
.keyword-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .8rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  cursor: default;
  transition: background .15s;
}
.keyword-badge:hover { background: #dbeafe; }

.bg-gradient-pro {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
}

/* ── Ad preview ────────────────────────────────────────────────────── */
.ad-preview {
  border-left: 3px solid #2563eb;
  background: #f8faff;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}
.ad-preview .ad-headline { color: #1a0dab; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.ad-preview .ad-url      { color: #0a6621; font-size: .78rem; margin: 2px 0; }
.ad-preview .ad-desc     { color: #4a4a4a; font-size: .83rem; line-height: 1.5; }

/* ── Match type badges ─────────────────────────────────────────────── */
.match-exact  { background: #dcfce7; color: #15803d; border-radius: 4px; padding: 2px 7px; font-size: .75rem; }
.match-phrase { background: #fef9c3; color: #854d0e; border-radius: 4px; padding: 2px 7px; font-size: .75rem; }
.match-broad  { background: #f1f5f9; color: #475569; border-radius: 4px; padding: 2px 7px; font-size: .75rem; }

/* ── Campaign structure ────────────────────────────────────────────── */
.campaign-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.campaign-card .campaign-header {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  padding: 18px 22px;
}
.ad-group-card {
  border: 1px solid #e8f0fe;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
  background: #fafbff;
}

/* ── Stats ─────────────────────────────────────────────────────────── */
.stat-box {
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.stat-box .stat-value { font-size: 1.6rem; font-weight: 800; color: #2563eb; line-height: 1; }
.stat-box .stat-label { font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ── Opportunity pills ─────────────────────────────────────────────── */
.opportunity-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: .83rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 3px;
  color: #166534;
}

/* ── Nav tabs ──────────────────────────────────────────────────────── */
.nav-tabs { border-bottom: 2px solid #e8edf5; gap: 4px; }
.nav-tabs .nav-link {
  border: none;
  border-radius: 8px 8px 0 0;
  color: #64748b;
  font-weight: 500;
  font-size: .875rem;
  padding: .6rem 1.1rem;
  transition: all .15s;
}
.nav-tabs .nav-link:hover { background: #f8fafc; color: #1a1f2e; }
.nav-tabs .nav-link.active { color: #2563eb; border-bottom: 2px solid #2563eb; font-weight: 600; background: none; }

/* ── Dashboard usage bar ───────────────────────────────────────────── */
.usage-card { background: linear-gradient(135deg, #1e40af, #2563eb); color: white; }
.usage-card .progress { background: rgba(255,255,255,.2); }
.usage-card .progress-bar { background: #fff; }

/* ── How it works steps ────────────────────────────────────────────── */
.step-number {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  margin: 0 auto 1rem;
}

/* ── Pricing ───────────────────────────────────────────────────────── */
.pricing-popular {
  background: linear-gradient(145deg, #1e40af, #2563eb);
  color: white;
  transform: scale(1.03);
}
.pricing-popular .card-header { background: rgba(255,255,255,.1) !important; border-bottom: 1px solid rgba(255,255,255,.15); }
.pricing-popular .text-muted { color: rgba(255,255,255,.7) !important; }

/* ── Alert ─────────────────────────────────────────────────────────── */
.alert { border-radius: 10px; border: none; }
.alert-primary { background: #eff6ff; color: #1e40af; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info    { background: #f0f9ff; color: #075985; }
.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-success { background: #f0fdf4; color: #166534; }

/* ── Table ─────────────────────────────────────────────────────────── */
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table-hover tbody tr:hover { background: #f8faff; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .section-title   { font-size: 1.6rem; }
  .pricing-popular { transform: none; }
}
