/* ════════════════════════════════════════
   BidRoy – Ad Formats Page
   ════════════════════════════════════════ */

.af-page {
  --af-navy:   #0d1b35;
  --af-dark:   #152442;
  --af-blue:   #4285f4;
  --af-blue2:  #2563eb;
  --af-accent: #4f8ef7;
  --af-light:  #f0f5ff;
  --af-white:  #ffffff;
  --af-text:   #4a5568;
  --af-border: #e2e8f0;
  --af-radius: 16px;
  --af-shadow: 0 12px 40px rgba(66,133,244,.10);
  background: var(--af-light);
  min-height: 100vh;
}

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

.af-gradient-text {
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════ HERO ══════════════ */
.af-hero {
  position: relative;
  background: linear-gradient(135deg, var(--af-navy) 0%, var(--af-dark) 60%, #1a3464 100%);
  padding: 100px 24px 0;
  overflow: hidden;
  text-align: center;
}

.af-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.af-shape       { position: absolute; border-radius: 50%; }
.af-shape-1 { width:500px; height:500px; top:-180px; right:-120px; background:rgba(66,133,244,.10); }
.af-shape-2 { width:300px; height:300px; bottom:-100px; left:-80px; background:rgba(79,142,247,.08); }
.af-shape-3 { width:180px; height:180px; top:40%; left:38%; background:rgba(255,255,255,.04); }

.af-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(66,133,244,.18);
  border: 1px solid rgba(79,142,247,.4);
  color: #a8c4f8;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  padding: 7px 18px; border-radius: 50px; margin-bottom: 22px;
}
.af-hero-content {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto;
}
.af-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 18px;
}
.af-hero-content p {
  font-size: 1.08rem; color: rgba(255,255,255,.72);
  line-height: 1.8; max-width: 560px; margin: 0 auto;
}

/* Stats bar */
.af-hero-stats {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px 20px 0 0;
  margin: 48px auto 0; max-width: 680px;
  padding: 28px 32px;
}
.af-hero-stat           { text-align: center; flex: 1; }
.af-stat-number         { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.af-stat-label          { display: block; font-size: .8rem;  color: rgba(255,255,255,.6); margin-top: 3px; }
.af-hero-stat-divider   { width: 1px; height: 40px; background: rgba(255,255,255,.18); flex-shrink: 0; margin: 0 8px; }

/* ══════════════ TABS SECTION ══════════════ */
.af-tabs-section {
  padding: 60px 0 90px;
}

/* ── Tab Nav ── */
.af-tab-nav {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--af-white);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 32px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.af-tab-nav::-webkit-scrollbar { display: none; }

/* sliding ink bar */
.af-tab-ink {
  position: absolute;
  bottom: 6px; left: 6px;
  height: calc(100% - 12px);
  background: linear-gradient(135deg, var(--af-navy), var(--af-dark));
  border-radius: 10px;
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 0;
}

.af-tab-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: none; background: transparent;
  border-radius: 10px; cursor: pointer;
  font-size: .9rem; font-weight: 600;
  color: var(--af-text);
  white-space: nowrap;
  transition: color .25s ease;
  flex-shrink: 0;
}
.af-tab-btn:hover { color: var(--af-navy); }
.af-tab-btn--active { color: var(--af-white) !important; }

.af-tab-icon {
  display: flex; align-items: center;
  transition: transform .3s ease;
}
.af-tab-btn--active .af-tab-icon { transform: scale(1.15); }

/* ── Tab Panels ── */
.af-tab-panels {
  background: var(--af-white);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow);
  min-height: 380px;
  overflow: hidden;
}

.af-tab-panel {
  display: none;
  padding: 56px 48px;
}
.af-tab-panel--active { display: block; }

/* ── Placeholder / coming-soon state ── */
.af-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  gap: 18px;
}

.af-cs-icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(66,133,244,.10), rgba(79,142,247,.06));
  border: 2px dashed rgba(66,133,244,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--af-blue);
}

.af-coming-soon h3 {
  font-size: 1.5rem; font-weight: 700;
  color: var(--af-navy); margin: 0;
}
.af-coming-soon p {
  font-size: .95rem; color: #94a3b8;
  margin: 0; max-width: 320px;
}

/* ══════════════ DIRECT LINK TAB ══════════════ */

.af-dl-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  padding: 8px 0;
}

/* ── Badge ── */
.af-dl-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(66,133,244,.10);
  border: 1px solid rgba(66,133,244,.22);
  color: var(--af-blue2);
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}

/* ── Title ── */
.af-dl-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--af-navy);
  line-height: 1.2; margin-bottom: 18px;
}
.af-dl-title-accent {
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Description ── */
.af-dl-desc {
  font-size: .96rem; color: var(--af-text);
  line-height: 1.8; margin-bottom: 24px;
}

/* ── Feature list ── */
.af-dl-features {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column; gap: 10px;
}
.af-dl-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--af-text); font-weight: 500;
}
.af-dl-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ══ CTA Button ══ */
.af-dl-btn {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: flex-start;
  text-decoration: none;
  width: fit-content;
}
.af-dl-btn-inner {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--af-navy) 0%, #1a3464 100%);
  color: #fff;
  font-size: 1rem; font-weight: 700;
  padding: 16px 32px; border-radius: 14px;
  box-shadow: 0 8px 28px rgba(13,27,53,.35);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden; z-index: 1;
}
.af-dl-btn-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--af-blue) 0%, var(--af-blue2) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: 14px;
}
.af-dl-btn:hover .af-dl-btn-inner { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(37,99,235,.4); }
.af-dl-btn:hover .af-dl-btn-inner::before { opacity: 1; }
.af-dl-btn-inner svg { position: relative; z-index: 1; }
.af-dl-btn-inner > span { position: relative; z-index: 1; }

/* Arrow animation */
.af-dl-btn-arrow { transition: transform .3s ease; position: relative; z-index: 1; }
.af-dl-btn:hover .af-dl-btn-arrow { transform: translateX(5px); }

/* Pulse ring */
.af-dl-btn-pulse {
  position: absolute;
  top: 8px; left: 8px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(66,133,244,.25);
  animation: dl-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes dl-pulse {
  0%   { transform: scale(.8); opacity: .8; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(.8); opacity: 0; }
}

/* Sub-label */
.af-dl-btn-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #94a3b8; margin-top: 8px; margin-left: 4px;
}
.af-dl-btn-label::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
  animation: dl-live 1.6s ease-in-out infinite;
}
@keyframes dl-live {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}

/* ══ Visual Card (right side) ══ */
.af-dl-visual {
  position: relative;
}
.af-dl-glow {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(66,133,244,.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 0;
}
.af-dl-card {
  position: relative; z-index: 1;
  background: var(--af-white);
  border: 1.5px solid var(--af-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(13,27,53,.12);
  overflow: hidden;
}

/* Card header bar */
.af-dl-card-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--af-navy);
  padding: 12px 18px;
}
.af-dl-card-dots { display: flex; gap: 6px; }
.af-dl-card-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.af-dl-card-dots span:nth-child(1) { background: #ef4444; }
.af-dl-card-dots span:nth-child(2) { background: #f59e0b; }
.af-dl-card-dots span:nth-child(3) { background: #22c55e; }
.af-dl-card-url {
  font-size: 12px; color: rgba(255,255,255,.5);
  font-family: monospace; letter-spacing: .3px;
}

/* Card body */
.af-dl-card-body { padding: 28px 24px 24px; }
.af-dl-card-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--af-navy), #1a3464);
  display: flex; align-items: center; justify-content: center;
  color: var(--af-accent);
}

/* Stats row */
.af-dl-card-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-bottom: 24px;
}
.af-dl-card-stat {
  background: var(--af-light); border-radius: 10px;
  padding: 12px 8px; text-align: center;
}
.af-dl-card-stat-val {
  display: block; font-size: 1.05rem; font-weight: 800; color: var(--af-navy);
}
.af-dl-card-stat-key {
  display: block; font-size: 10px; color: #94a3b8; margin-top: 2px; font-weight: 500;
}

/* Bar chart */
.af-dl-card-bar-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #94a3b8; margin-bottom: 10px; font-weight: 600;
}
.af-dl-card-bar-label span:last-child {
  color: #22c55e; text-transform: uppercase; letter-spacing: .5px;
}
.af-dl-card-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 70px;
}
.af-dl-bar {
  flex: 1; border-radius: 5px 5px 0 0;
  background: rgba(66,133,244,.18);
  transition: height .3s ease;
}
.af-dl-bar--active {
  background: linear-gradient(180deg, var(--af-accent) 0%, var(--af-blue2) 100%);
}

/* ══════════════ BANNER ADS TAB ══════════════ */

.af-ban-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: flex-start;
  padding: 8px 0 32px;
}

/* Badge */
.af-ban-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(66,133,244,.10);
  border: 1px solid rgba(66,133,244,.22);
  color: var(--af-blue2);
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}

/* Title */
.af-ban-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800; color: var(--af-navy);
  line-height: 1.2; margin-bottom: 18px;
}
.af-ban-title-accent {
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.af-ban-desc {
  font-size: .96rem; color: var(--af-text);
  line-height: 1.8; margin-bottom: 24px;
}

/* Feature list */
.af-ban-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.af-ban-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--af-text); font-weight: 500;
}
.af-ban-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ── Sizes card ── */
.af-ban-sizes-card {
  background: #fff;
  border: 1.5px solid rgba(66,133,244,.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(66,133,244,.08);
}
.af-ban-sizes-header {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--af-navy), #1a3a6b);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 14px 18px; letter-spacing: .3px;
}
.af-ban-sizes-list {
  list-style: none; padding: 0; margin: 0;
}
.af-ban-sizes-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(66,133,244,.08);
  font-size: .88rem;
  transition: background .2s;
}
.af-ban-sizes-list li:last-child { border-bottom: none; }
.af-ban-sizes-list li:hover { background: rgba(66,133,244,.04); }
.af-ban-size-label { color: var(--af-navy); font-weight: 600; }
.af-ban-size-dim {
  font-family: monospace; font-size: .82rem;
  background: rgba(66,133,244,.10);
  color: var(--af-blue2);
  padding: 2px 9px; border-radius: 20px; font-weight: 700;
}
.af-ban-sizes-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #64748b;
  padding: 10px 18px;
  background: rgba(66,133,244,.04);
  border-top: 1px solid rgba(66,133,244,.08);
}

/* ── Live ad preview strip ── */
.af-ban-live-wrap {
  background: #f8faff;
  border: 1.5px solid rgba(66,133,244,.16);
  border-radius: 16px;
  overflow: hidden;
}
.af-ban-live-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(66,133,244,.08), transparent);
  border-bottom: 1px solid rgba(66,133,244,.12);
  font-size: 12.5px; font-weight: 700;
  color: var(--af-blue2); letter-spacing: .3px;
}
.af-ban-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,.08); }
}
.af-ban-live-stage {
  padding: 20px;
  display: flex; justify-content: center; align-items: center;
  min-height: 130px;
  overflow-x: auto;
}
.af-ban-live-note {
  font-size: 11px; color: #94a3b8; text-align: center;
  margin: 0; padding: 10px 20px 14px;
  border-top: 1px solid rgba(66,133,244,.08);
}

/* ══════════════ VIDEO ADS TAB ══════════════ */

.af-vid-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: center;
  padding: 8px 0;
}

/* Badge */
.af-vid-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(66,133,244,.10);
  border: 1px solid rgba(66,133,244,.22);
  color: var(--af-blue2);
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}

/* Title */
.af-vid-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800; color: var(--af-navy);
  line-height: 1.2; margin-bottom: 18px;
}
.af-vid-title-accent {
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.af-vid-desc {
  font-size: .96rem; color: var(--af-text);
  line-height: 1.8; margin-bottom: 24px;
}

/* Feature list */
.af-vid-features {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.af-vid-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--af-text); font-weight: 500;
}
.af-vid-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  display: flex; align-items: center; justify-content: center; color: #fff;
}

/* Spec pills row */
.af-vid-spec-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.af-vid-spec {
  display: flex; flex-direction: column; align-items: center;
  background: var(--af-light);
  border: 1px solid rgba(66,133,244,.14);
  border-radius: 12px; padding: 12px 18px;
  min-width: 70px;
}
.af-vid-spec-val {
  font-size: 1.1rem; font-weight: 800; color: var(--af-navy);
}
.af-vid-spec-key {
  font-size: 10px; color: #94a3b8; font-weight: 600;
  margin-top: 3px; text-transform: uppercase; letter-spacing: .4px;
}

/* ── Player column ── */
.af-vid-player-col {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

/* Idle poster overlay */
.af-vid-idle-poster {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  pointer-events: none;
}
.af-vid-idle-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--af-navy) 0%, #1a3464 60%, #0d2255 100%);
}
.af-vid-idle-text {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
}
/* hide poster once play is clicked */
.af-vid-player:not(.af-vid-player--idle) .af-vid-idle-poster { display: none; }

/* Player shell */
.af-vid-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(13,27,53,.28);
  border: 2px solid rgba(66,133,244,.2);
  cursor: pointer;
}
.af-vid-player--ended { opacity: .65; }

/* Overlay */
.af-vid-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

/* Top row */
.af-vid-top-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 10px 12px 0;
  pointer-events: all;
  position: relative;
  z-index: 5;
}
.af-vid-ad-label {
  background: rgba(255,255,255,.18);
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
}

/* Skip wrap */
.af-vid-skip-wrap { pointer-events: all; }
.af-vid-countdown {
  display: inline-block;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.85);
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 6px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
}
.af-vid-skip-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.92);
  color: var(--af-navy);
  font-size: 12px; font-weight: 800;
  padding: 7px 14px; border-radius: 6px;
  border: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: background .2s, transform .2s;
  animation: skip-pop .3s cubic-bezier(.18,.89,.32,1.28);
}
.af-vid-skip-btn:hover { background: #fff; transform: scale(1.05); }
@keyframes skip-pop {
  0%   { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}
.af-vid-skipped {
  display: inline-block;
  background: rgba(34,197,94,.18);
  color: #86efac;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid rgba(34,197,94,.35);
}

/* Centre play button */
.af-vid-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  backdrop-filter: blur(6px);
  transition: background .25s, transform .25s;
  z-index: 3;
}
.af-vid-play-btn:hover {
  background: rgba(66,133,244,.6);
  transform: translate(-50%,-50%) scale(1.1);
}

/* Click-through invisible layer */
.af-vid-click-layer {
  position: absolute; inset: 0;
  pointer-events: all;
  z-index: 1;
  cursor: pointer;
}

/* Progress bar */
.af-vid-prog-track {
  position: absolute; bottom: 36px; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.2); z-index: 4;
}
.af-vid-prog-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--af-blue), var(--af-accent));
  transition: width .25s linear;
}

/* Bottom controls bar */
.af-vid-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  z-index: 4;
}
.af-vid-time {
  color: rgba(255,255,255,.8); font-size: 11px; font-weight: 600;
  font-family: monospace;
}
.af-vid-mute-btn {
  background: rgba(255,255,255,.15); border: none;
  color: #fff; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.af-vid-mute-btn:hover { background: rgba(255,255,255,.3); }
.af-vol-x { display: block; }

/* Video slider ad strip */
.af-vid-slider-ad {
  width: 100%;
  background: #f8faff;
  border: 1.5px solid rgba(66,133,244,.16);
  border-radius: 14px;
  overflow: hidden;
}
.af-vid-slider-ad-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(66,133,244,.08), transparent);
  border-bottom: 1px solid rgba(66,133,244,.10);
  font-size: 12px; font-weight: 700;
  color: var(--af-blue2); letter-spacing: .3px;
}
.af-vid-slider-ad-stage {
  padding: 14px;
  display: flex; justify-content: center; align-items: center;
  min-height: 80px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Player note */
.af-vid-player-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #94a3b8;
  margin: 0; text-align: center;
}

/* ══════════════ STICKY ADS TAB ══════════════ */

.af-stk-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: flex-start;
  padding: 8px 0 32px;
}

/* Badge */
.af-stk-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(66,133,244,.10);
  border: 1px solid rgba(66,133,244,.22);
  color: var(--af-blue2);
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}

/* Title */
.af-stk-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800; color: var(--af-navy);
  line-height: 1.2; margin-bottom: 18px;
}
.af-stk-title-accent {
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.af-stk-desc {
  font-size: .96rem; color: var(--af-text);
  line-height: 1.8; margin-bottom: 24px;
}

/* Feature list */
.af-stk-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.af-stk-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--af-text); font-weight: 500;
}
.af-stk-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--af-blue), var(--af-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* How it works */
.af-stk-how {
  background: rgba(66,133,244,.05);
  border: 1px solid rgba(66,133,244,.15);
  border-radius: 12px;
  padding: 14px 16px;
}
.af-stk-how-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--af-blue2);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px;
}
.af-stk-how p {
  font-size: .85rem; color: var(--af-text); line-height: 1.7; margin: 0;
}

/* ── Size selector column ── */
.af-stk-selector-col { position: sticky; top: 20px; }

.af-stk-selector-card {
  background: #fff;
  border: 1.5px solid rgba(66,133,244,.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(66,133,244,.08);
}
.af-stk-selector-header {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--af-navy), #1a3a6b);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 14px 18px; letter-spacing: .3px;
}

/* Size rows */
.af-stk-sizes-list { list-style: none; padding: 0; margin: 0; }
.af-stk-size-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(66,133,244,.08);
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.af-stk-size-item:last-child { border-bottom: none; }
.af-stk-size-item:hover { background: rgba(66,133,244,.05); }
.af-stk-size-item--active {
  background: rgba(66,133,244,.08) !important;
}
.af-stk-size-item--active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--af-blue), var(--af-blue2));
  border-radius: 0 2px 2px 0;
}
.af-stk-size-info {
  display: flex; flex-direction: column; gap: 2px;
}
.af-stk-size-name {
  font-size: .88rem; font-weight: 700; color: var(--af-navy);
}
.af-stk-size-item--active .af-stk-size-name { color: var(--af-blue2); }
.af-stk-size-place {
  font-size: 10.5px; color: #94a3b8; font-weight: 500;
}
.af-stk-size-dim {
  font-family: monospace; font-size: .8rem;
  background: rgba(66,133,244,.10);
  color: var(--af-blue2);
  padding: 3px 9px; border-radius: 20px; font-weight: 700;
  flex-shrink: 0;
}
.af-stk-size-item--active .af-stk-size-dim {
  background: var(--af-blue2);
  color: #fff;
}

/* Selected callout */
.af-stk-selected-info {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--af-blue2);
  padding: 10px 16px;
  background: rgba(66,133,244,.06);
  border-top: 1px solid rgba(66,133,244,.12);
}
.af-stk-selected-info svg { flex-shrink: 0; }

/* ── Sticky ad mockup ── */
.af-stk-mockup {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.af-stk-mock-page {
  width: 100%;
  max-width: 560px;
  background: #f1f5f9;
  border: 1.5px solid rgba(66,133,244,.15);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(13,27,53,.08);
}
.af-stk-mock-nav {
  height: 32px;
  background: var(--af-navy);
  border-radius: 10px 10px 0 0;
}
.af-stk-mock-lines {
  padding: 16px 20px 70px;
  display: flex; flex-direction: column; gap: 9px;
}
.af-stk-mock-line {
  height: 8px; border-radius: 4px;
  background: rgba(0,0,0,.10);
}
/* Sticky bar at the bottom of the mock page */
.af-stk-mock-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid rgba(66,133,244,.25);
  box-shadow: 0 -4px 16px rgba(66,133,244,.12);
}
.af-stk-mock-bar-inner {
  display: flex; align-items: center; justify-content: center;
  min-height: 58px;
  padding: 6px 12px;
  position: relative;
}
/* Fallback label shown when real ad hasn't loaded */
.af-stk-mock-bar-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--af-blue2);
  background: rgba(66,133,244,.08);
  border: 1.5px dashed rgba(66,133,244,.3);
  border-radius: 8px;
  padding: 10px 20px;
  width: 100%;
  justify-content: center;
}
/* Hide fallback when the real ad container gets children */
#adm-container-448:not(:empty) + script + .af-stk-mock-bar-label,
#adm-container-448:not(:empty) ~ .af-stk-mock-bar-label {
  display: none;
}
/* Arrow label */
.af-stk-mock-arrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--af-blue2);
  background: rgba(66,133,244,.07);
  border: 1px solid rgba(66,133,244,.18);
  border-radius: 20px; padding: 6px 14px;
}

/* ── Live ad strip ── */
.af-stk-live-wrap {
  background: #f8faff;
  border: 1.5px solid rgba(66,133,244,.16);
  border-radius: 16px;
  overflow: hidden;
}
.af-stk-live-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(66,133,244,.08), transparent);
  border-bottom: 1px solid rgba(66,133,244,.12);
  font-size: 12.5px; font-weight: 700;
  color: var(--af-blue2); letter-spacing: .3px;
}
.af-stk-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: live-pulse 2s ease-in-out infinite;
}
.af-stk-live-stage {
  padding: 20px;
  display: flex; justify-content: center; align-items: center;
  min-height: 130px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.af-stk-live-note {
  font-size: 11px; color: #94a3b8; text-align: center;
  margin: 0; padding: 10px 20px 14px;
  border-top: 1px solid rgba(66,133,244,.08);
}

/* ══════════════ POP ADS TAB ══════════════ */

.af-pop-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 52px;
  align-items: center;
  padding: 8px 0;
}

/* Badge */
.af-pop-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(66,133,244,.10);
  border: 1px solid rgba(66,133,244,.22);
  color: var(--af-blue2);
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}

/* Title */
.af-pop-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800; color: var(--af-navy);
  line-height: 1.2; margin-bottom: 18px;
}
.af-pop-title-accent {
  background: linear-gradient(135deg, var(--af-blue2), var(--af-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.af-pop-desc {
  font-size: .96rem; color: var(--af-text);
  line-height: 1.8; margin-bottom: 24px;
}

/* Feature list */
.af-pop-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.af-pop-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--af-text); font-weight: 500;
}
.af-pop-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--af-blue2), var(--af-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* Hint line */
.af-pop-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--af-blue2); font-weight: 600;
  background: rgba(66,133,244,.07);
  border: 1px solid rgba(66,133,244,.18);
  border-radius: 10px; padding: 11px 16px;
}
.af-pop-hint svg { flex-shrink: 0; }

/* ── Preview column ── */
.af-pop-preview-col {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

/* Interactive box */
.af-pop-preview-box {
  position: relative;
  width: 100%; max-width: 340px;
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--af-navy) 0%, #0d2255 100%);
  border: 2px solid rgba(66,133,244,.35);
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 12px 40px rgba(66,133,244,.18);
  user-select: none;
}
.af-pop-preview-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 60px rgba(66,133,244,.32);
  border-color: rgba(79,142,247,.7);
}

/* Animated concentric rings */
.af-pop-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(79,142,247,.28);
  animation: pop-ring-expand 3s ease-out infinite;
  pointer-events: none;
}
.af-pop-ring-1 { width:120px; height:120px; animation-delay:0s; }
.af-pop-ring-2 { width:200px; height:200px; animation-delay:.8s; }
.af-pop-ring-3 { width:290px; height:290px; animation-delay:1.6s; }
@keyframes pop-ring-expand {
  0%   { transform:scale(.7); opacity:.7; }
  70%  { transform:scale(1);  opacity:.2; }
  100% { transform:scale(1.05); opacity:0; }
}

/* Inner layout */
.af-pop-preview-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 20px;
}

/* Mini browser */
.af-pop-mini-browser {
  width: 200px;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  opacity: .6;
}
.af-pop-mini-bar {
  display: flex; align-items: center; gap: 5px;
  background: #0f172a; padding: 6px 10px;
}
.af-pop-mini-dot { width: 7px; height: 7px; border-radius: 50%; }
.af-pop-mini-addr {
  margin-left: 6px; font-size: 9px; color: rgba(255,255,255,.35);
  font-family: monospace;
}
.af-pop-mini-screen { padding: 10px 10px 12px; }
.af-pop-mini-shimmer {
  width: 100%; height: 7px; border-radius: 4px;
  background: rgba(255,255,255,.12);
}

/* Pop overlay mock */
.af-pop-overlay-mock {
  width: 120px; height: 80px;
  background: linear-gradient(135deg, var(--af-blue2), #4f46e5);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(66,133,244,.5);
  position: relative;
  animation: pop-bob 2.4s ease-in-out infinite;
}
.af-pop-overlay-mock::before {
  content: '✕';
  position: absolute; top: 5px; right: 8px;
  font-size: 10px; color: rgba(255,255,255,.6);
}
@keyframes pop-bob {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(1deg); }
}
.af-pop-overlay-icon { color: rgba(255,255,255,.9); }

/* Launch label */
.af-pop-launch-label {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600;
  margin-top: 16px; letter-spacing: .3px;
  transition: color .25s;
}
.af-pop-preview-box:hover .af-pop-launch-label { color: var(--af-accent); }
.af-pop-launch-label svg { transition: transform .3s ease; }
.af-pop-preview-box:hover .af-pop-launch-label svg { transform: scale(1.3); }

/* Fired state — show confirmation */
.af-pop-preview-box--fired {
  border-color: rgba(34,197,94,.5) !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12), 0 24px 60px rgba(34,197,94,.2) !important;
}
.af-pop-preview-box--fired .af-pop-launch-label {
  color: #22c55e !important;
}

/* Note under box */
.af-pop-preview-note {
  font-size: 11.5px; color: #94a3b8;
  text-align: center; margin: 0; max-width: 280px; line-height: 1.6;
}

/* ══════════════ RESPONSIVE ══════════════ */

/* ── 1024px: tighten side-by-side layouts ── */
@media (max-width: 1024px) {
  .af-dl-wrap  { grid-template-columns: 1fr 360px; gap: 40px; }
  .af-ban-wrap { grid-template-columns: 1fr 260px; gap: 36px; }
  .af-pop-wrap { grid-template-columns: 1fr 320px; gap: 36px; }
  .af-pop-preview-box { max-width: 300px; }
}

/* ── 900px: icon-only tabs ── */
@media (max-width: 900px) {
  .af-tab-btn   { padding: 11px 16px; font-size: .85rem; gap: 0; }
  .af-tab-label { display: none; }
}

/* ── 768px: stack all two-column layouts ── */
@media (max-width: 768px) {

  /* Hero */
  .af-hero         { padding: 72px 16px 0; }
  .af-hero-stats   { padding: 20px 16px; margin-top: 30px; gap: 0; }
  .af-stat-number  { font-size: 1.2rem; }
  .af-hero-stat-divider { margin: 0 6px; }

  /* Tabs section */
  .af-tabs-section { padding: 36px 0 56px; }
  .af-tab-panel    { padding: 32px 20px; }
  .af-tab-label    { display: inline; }
  .af-tab-btn      { padding: 10px 14px; font-size: .82rem; gap: 6px; }

  /* ── Video Ads tab ── */
  .af-vid-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .af-vid-player-col { order: -1; width: 100%; }
  .af-vid-player { max-width: 520px; margin: 0 auto; }
  .af-vid-title { font-size: 1.7rem; }

  /* ── Sticky Ads tab ── */
  .af-stk-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .af-stk-selector-col { position: static; }
  .af-stk-selector-card { max-width: 100%; }
  .af-stk-title { font-size: 1.7rem; }
  .af-stk-live-stage {
    padding: 16px 12px;
    justify-content: flex-start;
  }

  /* ── Direct Link tab ── */
  .af-dl-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .af-dl-visual { order: -1; }          /* card above copy on mobile */
  .af-dl-card   { max-width: 420px; margin: 0 auto; }
  .af-dl-glow   { width: 200px; height: 200px; }
  .af-dl-title  { font-size: 1.7rem; }
  .af-dl-btn-inner { padding: 14px 24px; font-size: .95rem; }

  /* ── Banner Ads tab ── */
  .af-ban-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .af-ban-sizes-card { max-width: 100%; }
  .af-ban-title { font-size: 1.7rem; }
  .af-ban-live-stage {
    padding: 16px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  /* Prevent 728px ad from breaking layout — let it scroll */
  .af-ban-live-stage > * { flex-shrink: 0; }

  /* ── Pop Ads tab ── */
  .af-pop-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .af-pop-preview-col { order: -1; }    /* preview box above copy */
  .af-pop-preview-box {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 4/3;
  }
  .af-pop-title { font-size: 1.7rem; }
}

/* ── 480px: small phones ── */
@media (max-width: 480px) {

  /* Hero stats wrap into 2×2 grid */
  .af-hero-stats        { flex-wrap: wrap; border-radius: 16px; gap: 0; }
  .af-hero-stat-divider { display: none; }
  .af-hero-stat         { flex: 0 0 50%; padding: 14px 0; }
  .af-hero-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .af-hero-stat:nth-child(1),
  .af-hero-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }

  /* Tab nav */
  .af-tab-label { display: none; }
  .af-tab-btn   { padding: 10px 12px; }
  .af-tab-panel { padding: 24px 16px; }

  /* Direct Link */
  .af-dl-title      { font-size: 1.5rem; }
  .af-dl-desc       { font-size: .9rem; }
  .af-dl-btn-inner  { padding: 13px 20px; font-size: .9rem; width: 100%; justify-content: center; }
  .af-dl-btn        { width: 100%; }
  .af-dl-card-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .af-dl-card-stat-val { font-size: .9rem; }
  .af-dl-card-body  { padding: 20px 16px 16px; }

  /* Banner Ads */
  .af-ban-title     { font-size: 1.5rem; }
  .af-ban-desc      { font-size: .9rem; }
  .af-ban-sizes-list li { padding: 10px 14px; }
  .af-ban-live-header { font-size: 11.5px; padding: 10px 14px; }
  .af-ban-live-note   { font-size: 10.5px; padding: 8px 14px 12px; }

  /* Pop Ads */
  .af-pop-title     { font-size: 1.5rem; }
  .af-pop-desc      { font-size: .9rem; }
  .af-pop-hint      { font-size: .8rem; }
  .af-pop-preview-note { font-size: 11px; }
  .af-pop-ring-3    { width: 240px; height: 240px; }
}
