/* ===========================
   BITMEDIA.IO – GLOBAL STYLES
   =========================== */

:root {
  --primary: #00b2ff;
  --accent: #ff6600;
  --dark: #0a0e1a;
  --dark2: #111827;
  --dark3: #1e2a3a;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --white: #ffffff;
  --gray-bg: #f4f6f9;
  --border: #e5e7eb;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #ff6600;
  --orange: #f97316;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========== NAVBAR =========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  flex-shrink: 0;
}

.logo-text { letter-spacing: -0.5px; }

.logo-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 10px 12px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-login:hover { background: var(--gray-bg); }

.btn-cta {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-cta:hover { background: #e55f28; transform: translateY(-1px); }

.btn-cta.large { padding: 14px 36px; font-size: 1rem; letter-spacing: 0.5px; }

.btn-outline {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline-dark {
  border: 2px solid var(--dark);
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

.btn-small {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Barlow', sans-serif;
}

.btn-small:hover { background: #0099dd; }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active, .status-badge.status-active {
  background: rgba(34,197,94,0.2);
  color: var(--green);
}

.status-badge.paused, .status-badge.status-paused {
  background: rgba(239,68,68,0.2);
  color: var(--red);
}

.status-badge.status-draft {
  background: rgba(107,114,128,0.15);
  color: var(--text-muted);
}

.status-badge.status-ended {
  background: rgba(249,115,22,0.15);
  color: var(--orange);
}

.campaign-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campaign-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.campaign-thumb-placeholder { display: none; }

/* ACTIONS CELL */
.actions-cell { display: flex; gap: 8px; align-items: center; }

.btn-action {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: opacity 0.2s;
}

.btn-action:hover { opacity: 0.8; }

.btn-toggle {
  background: rgba(0,178,255,0.12);
  color: var(--primary);
}

.btn-delete {
  background: rgba(239,68,68,0.12);
  color: var(--red);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* =========== HERO =========== */
.hero {
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #fafbff 0%, #f0f7ff 50%, #fff5f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,178,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 20px;
}

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

#change-hero {
  display: inline-block;
  transition: opacity 0.45s ease, transform 0.45s ease;
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 540px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-trust {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: center;
}

.hero-trust span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust i { color: var(--primary); }

.hero-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-brands { margin-top: 16px; }

.brand-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.brands-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.brand:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-3px); }

.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.2rem;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

/* =========== SECTIONS =========== */
section { padding: 80px 0; }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.05;
  margin-bottom: 12px;
}

.section-title.center { text-align: center; }

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

.section-sub.center { text-align: center; }

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.explore-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.explore-more:hover { opacity: 0.7; }

/* =========== FUELING =========== */
.fueling {
  background: var(--gray-bg);
}

.niches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.niche-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.niche-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.niche-card i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.niche-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--dark);
}

.niche-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========== CASE STUDIES =========== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.case-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,178,255,0.15);
}

.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.case-tag.green { background: rgba(34,197,94,0.12); color: var(--green); }
.case-tag.blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.case-tag.orange { background: rgba(249,115,22,0.12); color: var(--orange); }

.case-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--dark);
}

.case-card ul { padding-left: 0; }
.case-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}

.case-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
}

.case-metrics { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

.big-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

/* =========== AD FORMATS =========== */
.ad-formats { background: var(--gray-bg); }

.formats-preview { margin-top: 40px; }

.browser-mockup {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.browser-bar {
  background: #f1f3f5;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.url-bar {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  outline: none;
  margin-left: 8px;
}

.browser-content { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.ad-display {
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px dashed;
  position: relative;
}

.ad-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.banner-ad { border-color: var(--primary); background: rgba(0,178,255,0.05); }
.native-ad { border-color: var(--green); background: rgba(34,197,94,0.05); }
.popup-ad { border-color: var(--orange); background: rgba(249,115,22,0.05); }
.video-ad { border-color: #a855f7; background: rgba(168,85,247,0.05); }

.ad-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

.ad-content {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========== WHY BITMEDIA =========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.feature-card:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 14px;
  display: block;
}

.feature-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.cta-center { text-align: center; }

/* =========== PRECISE LOGIC =========== */
.precise-logic {
  background: var(--gray-bg);
}

.logic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.big-left {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 32px;
}

.logic-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.logic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
}

.logic-item i { color: var(--primary); font-size: 1rem; }

.pricing-card {
  background: var(--dark);
  color: var(--white);
  border-radius: 20px;
  padding: 36px;
}

.pricing-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.pricing-types {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.price-type {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.2s;
}

.price-type.active { color: var(--primary); }

.pricing-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* =========== INFLUENCERS =========== */
.influencer-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.influencer-platforms {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.platform:hover { transform: translateY(-3px); }

.platform i {
  font-size: 2rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.platform:hover i { color: var(--primary); }

.platform span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* =========== TESTIMONIALS =========== */
.testimonials { background: var(--gray-bg); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }

.testi-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.testi-author { font-size: 0.82rem; font-weight: 700; color: var(--text); }

/* =========== INSIGHTS =========== */
.insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.insight-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s; cursor: pointer; }
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.insight-card.large { grid-row: span 2; }

.insight-img {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-card.large .insight-img { height: 260px; }

.insight-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  color: var(--dark);
}

.insight-icon { font-size: 3rem; color: rgba(255,255,255,0.3); }

.insight-body { padding: 16px; }

.insight-date { font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }

.insight-body h4 { font-size: 0.92rem; font-weight: 700; line-height: 1.4; color: var(--dark); }

/* =========== FOOTER =========== */
.footer { background: var(--gray-bg); padding-top: 0; }

.footer-color-bar {
  height: 8px;
  background: linear-gradient(90deg, #ff6b35 0%, #00b2ff 35%, #ffbd2e 65%, #ff6b35 100%);
}

.footer .container { padding: 56px 24px 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 220px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-socials a:hover { border-color: var(--primary); color: var(--primary); }

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-badges { display: flex; flex-direction: column; gap: 16px; }

.badge-iab, .badge-startup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge-iab strong, .badge-startup strong { color: var(--dark); display: block; margin-bottom: 2px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-light); }

/* =========== LOGIN PAGE =========== */
.login-page { padding-top: 64px; }

.breadcrumb-bar {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar span { color: var(--text-light); }

.login-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: var(--gray-bg);
}

.login-wrapper { width: 100%; max-width: 480px; }

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.login-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  color: var(--dark);
  margin-bottom: 6px;
}

.login-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.login-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--red);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-error.hidden { display: none; }

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

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

.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,178,255,0.1);
}

.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 44px; }

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.2s;
}

.toggle-pw:hover { color: var(--text); }

.recaptcha-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background: #f9fafb;
}

.recaptcha-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.recaptcha-label input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

.recaptcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.recaptcha-logo i { color: var(--primary); font-size: 1.2rem; }
.recaptcha-logo small { font-size: 0.65rem; color: var(--text-light); }

.btn-login-submit {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Barlow', sans-serif;
}

.btn-login-submit:hover { background: #e55f28; transform: translateY(-1px); }
.btn-login-submit:disabled { background: #93c5fd; cursor: not-allowed; transform: none; }

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

.divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.divider span {
  background: var(--white);
  padding: 0 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  position: relative;
}

.btn-google {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}

.btn-google:hover { background: var(--gray-bg); border-color: #ccc; }

.signup-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.signup-prompt a { color: var(--primary); font-weight: 600; }

.active-login {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 700;
}

/* =========== DASHBOARD PAGE =========== */
.dashboard-page { padding-top: 64px; }

.dashboard-nav .nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

.dashboard-tabs-bar {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.dash-tabs {
  display: flex;
  gap: 0;
}

.dash-tab {
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.dash-tab:hover { color: var(--text); }
.dash-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.btn-contact-manager {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: 'Barlow', sans-serif;
}

.btn-contact-manager:hover { border-color: var(--primary); color: var(--primary); }

.btn-top-up {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Barlow', sans-serif;
}

.btn-top-up:hover { background: #e55f28; transform: translateY(-1px); }

.dashboard-main {
  background: var(--gray-bg);
  min-height: calc(100vh - 120px);
  padding: 40px 0;
}

.dash-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.dash-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 28px;
}

/* OVERVIEW CARDS */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.ov-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.ov-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.ov-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.ov-icon { font-size: 0.9rem; }
.ov-icon.spent { color: var(--orange); }
.ov-icon.impressions { color: var(--blue); }
.ov-icon.clicks { color: var(--green); }
.ov-icon.ecpm { color: #a855f7; }
.ov-icon.cpc { color: var(--primary); }
.ov-icon.ctr { color: #ec4899; }

.ov-today {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.today-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
}

.ov-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 2px 0;
}

.ov-val { font-weight: 600; }

.change.neutral { color: var(--text-light); }
.change.up { color: var(--green); }
.change.down { color: var(--red); }

/* MARKETPLACE PANEL */
.marketplace-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  overflow: hidden;
}

.mp-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.mp-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mp-icon {
  width: 40px; height: 40px;
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mp-title strong { font-size: 0.95rem; font-weight: 700; display: block; }
.mp-sub { font-size: 0.78rem; color: var(--text-muted); }

.mp-collapse {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mp-collapse:hover { border-color: var(--primary); color: var(--primary); }

.mp-body { padding: 24px; }

.mp-offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.mp-offer-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: all 0.2s;
}

.mp-offer-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.mp-offer-header { display: flex; gap: 14px; margin-bottom: 16px; }

.mp-offer-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.crypto-logo { background: linear-gradient(135deg, #f7931a, #ffb347); color: var(--white); }
.news-logo { background: linear-gradient(135deg, #1a1a2e, #16213e); color: var(--white); font-weight: 800; font-size: 1rem; }
.slate-logo { background: linear-gradient(135deg, #1e2a3a, #2d3f52); color: var(--white); font-weight: 800; font-size: 1.2rem; }

.mp-offer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.mp-offer-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag.hot { background: rgba(239,68,68,0.1); color: var(--red); }
.tag.influencer { background: rgba(59,130,246,0.1); color: var(--blue); }
.tag.sponsored { background: rgba(34,197,94,0.1); color: var(--green); }
.tag.text { background: rgba(107,114,128,0.1); color: var(--text-muted); }

.mp-offer-niche { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.mp-offer-niche i { font-size: 0.65rem; }

.mp-offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.old-price {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
}

.new-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.view-offer-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  transition: opacity 0.2s;
}

.view-offer-link:hover { opacity: 0.7; }

.mp-show-more { text-align: center; }

.btn-show-more {
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Barlow', sans-serif;
}

.btn-show-more:hover { border-color: var(--primary); color: var(--primary); }

/* CHART CONTROLS */
.chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.date-range-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.date-range-picker i { color: var(--primary); }

.date-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 100;
  min-width: 180px;
}

.date-dropdown.open { display: block; }

.date-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
  font-family: 'Barlow', sans-serif;
}

.date-dropdown button:hover { background: var(--gray-bg); }
.date-dropdown button.active { color: var(--primary); font-weight: 700; }

.time-toggles {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.time-toggle {
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: 'Barlow', sans-serif;
}

.time-toggle.active { background: var(--primary); color: var(--white); }
.time-toggle:hover:not(.active) { background: var(--gray-bg); color: var(--text); }

/* CHARTS */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.chart-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.chart-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

.no-data-map {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-map-placeholder {
  text-align: center;
  color: var(--text-light);
}

.world-map-placeholder i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 12px;
  display: block;
}

.world-map-placeholder p { font-size: 0.88rem; }
.no-data-hint { font-size: 0.75rem; margin-top: 4px; }

.device-chart-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.device-legend { flex: 1; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.data-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* USER MENU */
.user-avatar {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.user-avatar:hover { border-color: var(--primary); color: var(--primary); }

.user-menu { position: relative; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 200;
  min-width: 180px;
}

.user-dropdown.open { display: block; }

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.15s;
}

.user-dropdown a:hover { background: var(--gray-bg); }
.user-dropdown a i { color: var(--text-light); width: 14px; }

.dropdown-divider { height: 1px; background: var(--border); }

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

.advertiser-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 12px;
  border-left: 1px solid var(--border);
}

.balance-label { font-size: 0.65rem; color: var(--text-light); font-weight: 500; }
.balance-amount { font-size: 0.9rem; font-weight: 800; color: var(--dark); }

.nav-icon-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-icon-btn:hover { border-color: var(--primary); color: var(--primary); }

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

.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover { background: var(--gray-bg); color: var(--text); }

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.topup-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.topup-amount {
  background: var(--gray-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  font-family: 'Barlow', sans-serif;
}

.topup-amount:hover, .topup-amount.selected {
  border-color: var(--primary);
  background: rgba(0,178,255,0.06);
  color: var(--primary);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-with-prefix:focus-within { border-color: var(--primary); }

.input-with-prefix span {
  padding: 12px 14px;
  background: var(--gray-bg);
  font-weight: 700;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}

.input-with-prefix .form-input {
  border: none;
  border-radius: 0;
}

.input-with-prefix .form-input:focus { box-shadow: none; }

.payment-methods { margin-top: 20px; }
.payment-methods label { font-size: 0.88rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 10px; }

.pm-options { display: flex; gap: 12px; flex-wrap: wrap; }

.pm-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.pm-option:has(input:checked) { border-color: var(--primary); color: var(--primary); background: rgba(0,178,255,0.04); }
.pm-option i { font-size: 0.9rem; }
.pm-option input { display: none; }

/* Payment Section Styles */
.payment-section { margin-top: 20px; padding: 15px; background: var(--gray-bg); border-radius: 8px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.crypto-address-info { margin-top: 15px; }
.crypto-address-info p { font-size: 0.85rem; color: #9ca3af; margin-bottom: 10px; }
.qr-code-box { text-align: center; margin-bottom: 15px; padding: 15px; background: #fff; border-radius: 8px; }
.qr-code-box img { max-width: 150px; height: auto; }
.qr-placeholder { width: 150px; height: 150px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #f3f4f6; border-radius: 8px; }
.qr-placeholder i { font-size: 3rem; color: #d1d5db; }
.address-box { display: flex; align-items: center; justify-content: center; background: #1a1a2e; padding: 12px 15px; border-radius: 6px; margin-bottom: 10px; }
.address-box span { font-family: monospace; font-size: 0.75rem; color: var(--primary); word-break: break-all; text-align: center; width: 100%; }
.copy-btn { background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; width: 100%; }
.copy-btn:hover { background: #0099e6; }
.merchant-unavailable-msg { text-align: center; padding: 20px; }
.merchant-unavailable-msg i { font-size: 2rem; color: #f59e0b; margin-bottom: 10px; display: block; }
.merchant-unavailable-msg h4 { color: #ef4444; margin-bottom: 8px; }
.merchant-unavailable-msg p { color: #9ca3af; font-size: 0.9rem; }

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-modal-cancel {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'Barlow', sans-serif;
  transition: all 0.2s;
}

.btn-modal-cancel:hover { border-color: var(--text); color: var(--text); }

.btn-modal-confirm {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  transition: background 0.2s;
}

.btn-modal-confirm:hover { background: #e55f28; }

/* TAB CONTENT */
.tab-content { padding: 40px 0; background: var(--gray-bg); min-height: 600px; display: none; }

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

.tab-header h2 { margin-bottom: 0; }

/* TABLES */
.campaigns-table-wrapper, .conversions-table-wrapper {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.campaigns-table, .conversions-table {
  width: 100%;
  border-collapse: collapse;
}

.campaigns-table thead, .conversions-table thead {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
}

.campaigns-table th, .conversions-table th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.campaigns-table td, .conversions-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.campaigns-table tbody tr:hover, .conversions-table tbody tr:hover { background: rgba(0,178,255,0.03); }

.empty-row td { color: var(--text-muted); }

/* FORM STYLES */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid .full-width { grid-column: 1 / -1; }

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

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

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Barlow', sans-serif;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,178,255,0.1);
}

.checkbox-group, .checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

/* MODAL ENHANCEMENTS */
.modal-large { max-width: 600px; }

/* AD FORMAT GRID */
.ad-format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.ad-format-grid .checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* UPLOAD AREA */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(0,178,255,0.03);
}

.upload-area i {
  font-size: 1.8rem;
  color: var(--primary);
}

.upload-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-light);
}

.upload-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-height: 160px;
}

.upload-preview img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.upload-remove:hover { background: var(--red); }

/* CREATIVE EDITOR */
.creatives-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.creative-editor { }

.editor-controls { display: flex; flex-direction: column; gap: 16px; }

.control-group {
  display: flex;
  flex-direction: column;
}

.control-group label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.control-group select, .control-group input, .control-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
}

.control-group textarea { min-height: 80px; resize: vertical; }

.creative-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.creative-preview h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.preview-frame {
  background: var(--gray-bg);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-headline {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.ad-copy-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.ad-btn {
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}

/* ADGROUPS */
.adgroups-list {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.adgroup-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adgroup-info h4 { margin-bottom: 4px; }

.adgroup-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.adgroup-stats {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.adgroup-stats div { text-align: center; }

.adgroup-stats .stat-val { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* CONVERSIONS & REPORTS */
.conversions-overview, .reports-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.conv-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.conv-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.conv-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.report-filter {
  background: var(--white);
  padding: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-filter label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.report-filter select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
}

/* CHAT WIDGET */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
}

.chat-bubble {
  width: 54px; height: 54px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(0,178,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,178,255,0.5); }

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
}

.chat-panel.open { display: flex; flex-direction: column; }

.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chat-header button:hover { opacity: 1; }

.chat-messages {
  padding: 16px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 80%;
  line-height: 1.5;
}

.chat-msg.support {
  background: var(--gray-bg);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 0.85rem;
  outline: none;
  font-family: 'Barlow', sans-serif;
}

.chat-input-row button {
  background: var(--primary);
  border: none;
  padding: 12px 16px;
  color: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.chat-input-row button:hover { background: #0099dd; }

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .niches-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .creatives-container { grid-template-columns: 1fr; }
  .conversions-overview, .reports-controls { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 24px 60px; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .niches-grid, .testi-grid, .features-grid { grid-template-columns: 1fr; }
  .logic-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .overview-cards { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .mp-offers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-tabs { overflow-x: auto; }
  .tab-actions { display: none; }
  .creatives-container { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .conversions-overview, .reports-controls { grid-template-columns: 1fr; }
  .tab-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .overview-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
  .campaigns-table th, .campaigns-table td { padding: 8px; font-size: 0.75rem; }
  .conversions-overview { grid-template-columns: 1fr; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeUp 0.7s ease both; }
.hero-stats { animation: fadeUp 0.7s ease 0.2s both; }

.ov-card, .niche-card, .feature-card, .case-card {
  animation: fadeUp 0.5s ease both;
}
