/* ============================================================
   Ad Management Layout — Dark Theme Adapted
   Namespace: am-  (no conflicts with global styles)
   ============================================================ */

.am-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
}
.am-label::before { content: '◆'; font-size: 14px; }

.am-heading {
  font-size: clamp(30px, 3.5vw, 42px); font-weight: 700;
  line-height: 1.15; color: var(--text-primary);
  margin-bottom: 20px; letter-spacing: -0.02em; font-family: var(--font-heading);
}

/* ── HERO ── */
.am-hero {
  padding: 180px 0 100px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.am-hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.am-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
  border-radius: var(--radius-pill); padding: 6px 16px;
  font-size: 12px; color: var(--text-secondary); margin-bottom: 24px;
}
.am-hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.am-hero h1 {
  font-size: clamp(38px, 4.5vw, 54px); font-weight: 700; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 22px; letter-spacing: -0.025em; font-family: var(--font-heading);
}
.am-hero h1 em { font-style: normal; color: var(--accent); }
.am-hero-desc { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 40px; max-width: 480px; }
.am-hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Hero right panel */
.am-hero-panel {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.am-panel-header { display: flex; justify-content: space-between; align-items: flex-start; }
.am-panel-title { font-size: 12px; color: var(--text-muted); }
.am-panel-badge {
  font-size: 11px; padding: 4px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0,185,244,0.3); color: var(--accent); background: rgba(0,185,244,0.06);
}
.am-roas-row { display: flex; align-items: baseline; gap: 12px; }
.am-roas-val { font-size: 46px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; font-family: var(--font-heading); }
.am-roas-label { font-size: 14px; color: var(--text-muted); }
.am-bars { display: flex; flex-direction: column; gap: 10px; }
.am-bar-row { display: flex; align-items: center; gap: 12px; }
.am-bar-name { font-size: 12px; color: var(--text-muted); width: 64px; flex-shrink: 0; }
.am-bar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.am-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), rgba(0,185,244,0.5)); border-radius: 3px; transition: width 1s ease; }
.am-bar-pct { font-size: 12px; color: var(--accent); font-weight: 700; width: 32px; text-align: right; }
.am-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-stat-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 16px 18px; }
.am-stat-val { font-size: 22px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); }
.am-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── PLATFORM STRIP ── */
.am-platform-strip { padding: 30px 0; border-bottom: 1px solid var(--border-color); }
.am-platform-strip .container { display: flex; align-items: center; gap: 40px; }
.am-platform-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.am-platform-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.am-platform-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-color);
  background: var(--bg-secondary); font-size: 12px; color: var(--text-secondary);
  transition: var(--transition);
}
.am-platform-pill:hover { border-color: var(--accent); color: var(--accent); }
.am-platform-pill-icon { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; opacity: 0.7; }

/* ── SECTION ── */
.am-section { padding: 120px 0; border-bottom: 1px solid var(--border-color); }

/* ── OVERVIEW ── */
.am-overview .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.am-overview-copy p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.am-overview-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.am-overview-tag {
  display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 16px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-color);
  color: var(--text-secondary); background: var(--bg-secondary);
}
.am-overview-tag svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* Campaign card */
.am-campaign-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.am-campaign-header { display: flex; justify-content: space-between; align-items: center; }
.am-campaign-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.am-live-dot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); }
.am-live-dot-circle { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.am-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-metric-box { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 16px 14px; }
.am-metric-box-val { font-size: 18px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); }
.am-metric-box-key { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.am-channel-list { display: flex; flex-direction: column; gap: 10px; }
.am-channel-row {
  display: flex; align-items: center; gap: 14px; background: var(--bg-primary);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: var(--transition);
}
.am-channel-row:hover { border-color: var(--accent); }
.am-channel-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
}
.am-channel-icon svg { width: 14px; height: 14px; }
.am-channel-name { font-size: 14px; color: var(--text-primary); flex: 1; }
.am-channel-spend { font-size: 13px; color: var(--text-muted); }
.am-channel-roas {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(0,185,244,0.06); border: 1px solid rgba(0,185,244,0.2);
  border-radius: var(--radius-pill); padding: 4px 12px;
}

/* ── SERVICES ── */
.am-services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.am-services-header .am-heading { max-width: 480px; margin-bottom: 0; }
.am-services-header-right { font-size: 15px; color: var(--text-secondary); max-width: 320px; text-align: right; line-height: 1.6; padding-bottom: 6px; }
.am-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-color); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden;
}
.am-service-card { background: var(--bg-primary); padding: 38px 30px; display: flex; flex-direction: column; gap: 16px; transition: var(--transition); }
.am-service-card:hover { background: var(--bg-secondary); }
.am-svc-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.am-svc-icon svg { width: 22px; height: 22px; }
.am-service-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.am-service-card p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.am-svc-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); align-self: flex-start; transition: var(--transition); }
.am-service-card:hover .am-svc-arrow { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

/* ── WHY ── */
.am-why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.am-why-copy p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 24px; }
.am-why-callout {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  padding: 16px 22px; font-size: 14px; color: var(--text-primary); line-height: 1.7; font-style: italic; margin-bottom: 32px;
}
.am-why-points { display: flex; flex-direction: column; gap: 22px; }
.am-why-point { display: flex; gap: 18px; align-items: flex-start; }
.am-why-point-num { font-size: 13px; font-weight: 700; color: var(--accent); width: 22px; flex-shrink: 0; padding-top: 2px; font-family: var(--font-heading); }
.am-why-point-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.am-why-point-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.am-why-cards { display: flex; flex-direction: column; gap: 14px; }
.am-insight-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; gap: 22px; align-items: flex-start; transition: var(--transition);
}
.am-insight-card:hover { border-color: var(--accent); }
.am-insight-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.am-insight-icon svg { width: 22px; height: 22px; }
.am-insight-val { font-size: 26px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); }
.am-insight-desc { font-size: 13px; color: var(--text-muted); margin-top: 5px; line-height: 1.6; }

/* ── STATS STRIP ── */
.am-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-color);
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.am-stat-cell { background: var(--bg-primary); padding: 60px 40px; text-align: center; }
.am-stat-cell-val { font-size: 44px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; font-family: var(--font-heading); }
.am-stat-cell-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

/* ── PROCESS ── */
.am-process-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 70px; align-items: end; }
.am-process-top .am-heading { margin-bottom: 0; }
.am-process-sub { font-size: 16px; color: var(--text-secondary); line-height: 1.7; padding-bottom: 5px; }
.am-process-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 20px; }
.am-process-step { position: relative; padding-right: 20px; }
.am-process-step:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 58px; right: 0; height: 1px; border-top: 1px dashed rgba(255,255,255,0.12); }
.am-process-num { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 24px; background: var(--bg-secondary); position: relative; z-index: 1; font-family: var(--font-heading); }
.am-process-step h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.am-process-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── CHANNELS ── */
.am-channels .am-heading { margin-bottom: 12px; max-width: 560px; }
.am-channels-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 50px; max-width: 640px; }
.am-channels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.am-channel-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; transition: var(--transition);
}
.am-channel-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,185,244,0.08); }
.am-channel-card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.am-channel-card-icon svg { width: 24px; height: 24px; }
.am-channel-card h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.am-channel-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.am-channel-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.am-channel-card-tag {
  font-size: 12px; padding: 5px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0,185,244,0.2); color: var(--accent); background: rgba(0,185,244,0.05);
}

/* ── CTA ── */
.am-cta .container { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.am-cta .am-heading { margin-bottom: 16px; }
.am-cta p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 500px; }
.am-cta-actions { display: flex; flex-direction: column; gap: 14px; min-width: 280px; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .am-hero .container, .am-overview .container, .am-why-inner, .am-cta .container, .am-process-top { grid-template-columns: 1fr; gap: 40px; }
  .am-services-grid, .am-channels-grid { grid-template-columns: 1fr; }
  .am-stats-strip, .am-process-steps { grid-template-columns: repeat(2, 1fr); }
  .am-services-header { flex-direction: column; gap: 12px; }
  .am-services-header-right { text-align: left; max-width: 100%; }
  @media (max-width: 600px) {
    .am-stats-strip, .am-process-steps, .am-bottom-grid { grid-template-columns: 1fr; }
    .am-process-step:not(:last-child)::after { display: none; }
  }
}
