/* Banner design gallery. Banners scale with their own width via container query units. */
.bn { container-type: inline-size; position: relative; aspect-ratio: var(--ar, 1); width: 100%; overflow: hidden; border-radius: 6px; isolation: isolate; background: #222; font-family: var(--font-body, system-ui, sans-serif); }
.bn-in { --u: 1cqw; position: absolute; inset: 0; overflow: hidden; -webkit-font-smoothing: antialiased; }
.bn-in > div { position: absolute; box-sizing: border-box; }
.bn-in .art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bn-in .cta { display: inline-block; text-decoration: none; }
.bn-in b { font-weight: 800; }

/* shared pieces */
.stars { background-image: radial-gradient(circle, #fff 0 .5px, transparent 1px), radial-gradient(circle, #FFE08A 0 .6px, transparent 1.2px); background-size: 9% 9%, 13% 13%; background-position: 0 0, 4% 6%; opacity: .5; }
.gold { background: linear-gradient(180deg, #FFF3B0, #F7B500 55%, #C77700); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 .4cqw 0 rgba(0,0,0,.25)); }
.gold-bg { background: linear-gradient(180deg, #FFE27A, #F2A900); }
.cta { box-shadow: 0 .6cqw 0 rgba(0,0,0,.22); }
.b-chip { display: inline-block; padding: .5cqw 1.4cqw; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; white-space: nowrap; }
.moon { background: radial-gradient(circle at 35% 35%, #fff, #CDEFE8 70%); box-shadow: 0 0 4cqw rgba(159,227,214,.6); }
.sun { background: radial-gradient(circle, #1E3A8A, #12285F 70%); }
.pat { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 1.6cqw, transparent 1.7cqw) 0 0 / 7cqw 7cqw, radial-gradient(circle, rgba(255,200,120,.12), transparent 70%); }
.b-band { background: linear-gradient(180deg, #FF7A33, #FF4D00); }
.b-band2 { background: #fff; }
.b-frame { border: 1px solid #E7C466; box-shadow: inset 0 0 0 .9cqw #0B3B2E, inset 0 0 0 1cqw rgba(231,196,102,.6); border-radius: 0; }
.blob { background: radial-gradient(circle at 40% 35%, #fff, #FFF3B8); }
.b-phone { background: #16110A; border-radius: 6cqw; padding: .9cqw; box-shadow: 0 3cqw 5cqw -2cqw rgba(0,0,0,.45); }
.ph-in { width: 100%; height: 100%; border-radius: 5.2cqw; overflow: hidden; background: #fff; }
.ph-sc { height: 100%; padding: 3cqw 2.6cqw; display: grid; align-content: start; gap: 2cqw; background: #FFFBEA; }
.ph-bar { height: 1.2cqw; width: 30%; margin: 0 auto 1cqw; background: #16110A; border-radius: 9px; }
.ph-card { background: #16110A; color: #fff; border-radius: 2.2cqw; padding: 2.4cqw; display: grid; gap: .6cqw; }
.ph-card small { font-size: 1.7cqw; color: #FFD23F; }
.ph-card b { font-size: 4.4cqw; font-family: var(--font-display, inherit); }
.ph-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.ph-acts i { aspect-ratio: 1; border-radius: 2cqw; background: #FFD23F; }
.ph-acts i:nth-child(2) { background: #FF8A3D; } .ph-acts i:nth-child(3) { background: #27C2B3; } .ph-acts i:nth-child(4) { background: #A78BFA; }
.ph-row { display: grid; grid-template-columns: 4.4cqw 1fr 5cqw; gap: 1.6cqw; align-items: center; }
.ph-row .l { height: 1.5cqw; background: #E7DFC1; border-radius: 9px; }
.ph-row span.d1, .ph-row span.d2, .ph-row span.d3 { height: 4.4cqw; border-radius: 50%; background: #FFD23F; }
.ph-row .d2 { background: #27C2B3; } .ph-row .d3 { background: #FF8A3D; }
.ph-row em { height: 1.5cqw; background: #16110A; border-radius: 9px; opacity: .8; }
.ph-ok { margin-top: 1cqw; background: #1F9D55; color: #fff; font-size: 1.9cqw; font-weight: 700; padding: 1.6cqw; border-radius: 2cqw; text-align: center; }
.arch { border-radius: 99cqw 99cqw 0 0; background: linear-gradient(180deg, #E9A98F, #C9654B); }
.sunc { background: radial-gradient(circle at 40% 35%, #FFE5B4, #F4A259); }
.leaf { background: #4F6B3A; } .leaf2 { background: #6F8B50; }
.outline { color: transparent; -webkit-text-stroke: .35cqw #8E1B2E; opacity: .55; }
.glow { background: radial-gradient(circle, rgba(255,122,26,.55), transparent 68%); }
.sunr { background: radial-gradient(circle, #FFF3C4, #FFC070 60%, #FF8A5C); box-shadow: 0 0 8cqw rgba(255,200,130,.6); }
.sea { background: linear-gradient(180deg, #2F4C94, #1B2A66); }
.wframe { border: 1px solid #C9A24B; box-shadow: inset 0 0 0 .5cqw #FBF4E8, inset 0 0 0 .6cqw rgba(201,162,75,.55); overflow: hidden; }
.scirc { background: #F6A9A0; opacity: .6; } .scirc2 { background: #F8C0B5; opacity: .7; }
.hcirc { background: #BFE8E0; }
.cross { background: #fff; border-radius: 4cqw; box-shadow: 0 1cqw 2cqw -1cqw rgba(11,107,99,.4); }
.cross::before, .cross::after { content: ""; position: absolute; background: #0B6B63; border-radius: 1cqw; }
.cross::before { left: 38%; top: 20%; width: 24%; height: 60%; } .cross::after { top: 38%; left: 20%; height: 24%; width: 60%; }
.beams { background: conic-gradient(from 180deg at 50% 0, transparent 0 28%, rgba(255,222,150,.28) 33%, transparent 38% 45%, rgba(255,222,150,.3) 50%, transparent 55% 62%, rgba(255,222,150,.28) 67%, transparent 72%); }
.crowd { background: radial-gradient(circle at 50% 100%, #1B2A7A 0 2cqw, transparent 2.1cqw) 0 0 / 4cqw 4cqw; opacity: .8; }
.pitch { background: radial-gradient(ellipse at 50% 0, #2E8B4E, #165A30 70%); }
.pitchline { background: rgba(255,255,255,.35); }
.ball { filter: drop-shadow(0 2cqw 2cqw rgba(0,0,0,.45)); }
.grid { background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 6cqw 6cqw; }
.codewin { background: #070A1C; border: 1px solid rgba(255,255,255,.14); border-radius: 2cqw; overflow: hidden; box-shadow: 0 2cqw 4cqw -2cqw #000; }
.cw-bar { display: flex; align-items: center; gap: 1cqw; padding: 1.5cqw 2cqw; background: #151A3A; font-size: 2cqw; color: #7F8AC4; }
.cw-bar i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #FF5F57; } .cw-bar i:nth-child(2) { background: #FEBC2E; } .cw-bar i:nth-child(3) { background: #28C840; }
.cw-bar span { margin-left: 1.5cqw; }
.codewin pre { margin: 0; padding: 2cqw 2.4cqw; font: 2.5cqw/1.55 var(--font-mono, ui-monospace, monospace); color: #DDE3FF; white-space: pre; overflow: hidden; }
.codewin .k { color: #C792EA; } .codewin .f { color: #82AAFF; } .codewin .s { color: #C3E88D; }
.rain { background: rgba(0,0,0,.18); }
.orange { background: radial-gradient(circle at 40% 35%, #FFD27A, #FF9F1C 70%); }
.gleaf { background: #A6E22E; } .gleaf2 { background: #5CC06A; }
.sun2 { background: radial-gradient(circle, #FFD166, #FF9F1C 70%); box-shadow: 0 0 6cqw rgba(255,159,28,.5); }
.slash { background: #E11D2A; } .slash2 { background: #3A0A0E; }
.ysun { background: radial-gradient(circle at 40% 35%, #FFE8B0, #F7A8C4 80%); }

/* per-banner canvases */
.b-diwali { background: radial-gradient(circle at 50% 80%, #8C1A5E, #3C0B3F 60%, #240626); }
.b-realestate { background: linear-gradient(170deg, #0F5A57, #0A3A3A 60%, #072A2C); }
.b-coaching { background: linear-gradient(120deg, #0A1F4D, #12307A); }
.b-restaurant { background: linear-gradient(180deg, #A5141C, #6E0A12); }
.b-fitness { background: #151515; }
.b-jewellery { background: radial-gradient(circle at 50% 35%, #14604B, #0B3B2E 70%); }
.b-appinstall { background: linear-gradient(180deg, #FFD23F, #FFC21A); }
.b-webinar { background: linear-gradient(100deg, #0B2A6F, #123C93); }
.b-fashion { background: #F6E7D8; }
.b-electronics { background: linear-gradient(120deg, #0E1126, #1B1F46); }
.b-travel { background: linear-gradient(180deg, #FF8A5C, #FFB27A 40%, #E86A8F 75%); }
.b-wedding { background: #FBF4E8; }
.b-salon { background: #FBD3C5; }
.b-healthcare { background: #E8F7F4; }
.b-hiring { background: #FFD23F; }
.b-cricket { background: linear-gradient(180deg, #0B1240, #162070 70%); }
.b-edtech { background: linear-gradient(160deg, #0E1330, #1A1F5C); }
.b-furniture { background: linear-gradient(90deg, #0B5D55, #0F7A6F); }
.b-grocery { background: linear-gradient(150deg, #166B31, #1E8A3E); }
.b-solar { background: linear-gradient(120deg, #FFF3DC, #FFE2B0); }
.b-carfest { background: #0B0B0B; }
.b-yoga { background: linear-gradient(110deg, #F6EAFB, #E9D6F5); }

/* gallery UI */
.bgal { display: grid; gap: 18px; min-width: 0; }
.bg-controls { display: grid; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.bg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bg-lab { font: 600 .74rem/1 var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 64px; }
.bg-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.bg-chip { font: 600 .82rem/1 var(--font-body, inherit); padding: 9px 13px; min-height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.bg-chip:hover { border-color: var(--accent); }
.bg-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bg-chip:focus-visible, .bg-view:focus-visible, .bg-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bg-count { margin: 0; font-size: .86rem; color: var(--muted); }
.bg-grid { columns: 3 260px; column-gap: 18px; }
.bg-item { break-inside: avoid; margin: 0 0 18px; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; transition: transform .2s, box-shadow .2s; }
.bg-item[hidden] { display: none; }
.bg-item:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(0,0,0,.5); }
.bg-item .bn { box-shadow: 0 8px 20px -14px rgba(0,0,0,.6); }
.bg-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 4px 2px; }
.bg-cap-t { display: grid; gap: 3px; min-width: 0; }
.bg-cap-t b { font-size: .92rem; color: var(--fg); }
.bg-cap-t span { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.bg-view { flex: none; font: 600 .78rem/1 var(--font-body, inherit); padding: 9px 12px; min-height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.bg-view:hover { border-color: var(--accent); color: var(--accent); }
.bg-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; margin: 0; }
.bg-empty[hidden] { display: none; }
.bg-note { margin: 0; font-size: .84rem; color: var(--muted); max-width: 70ch; }
dialog.bg-dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; color: #fff; overflow: visible; }
dialog.bg-dialog::backdrop { background: rgba(6,8,16,.82); backdrop-filter: blur(4px); }
.bg-lb { display: grid; gap: 12px; justify-items: center; }
.bg-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(92vw, 960px); }
.bg-lb-cap { font-weight: 600; font-size: .95rem; }
.bg-close { font: 600 .85rem/1 var(--font-body, inherit); padding: 11px 16px; min-height: 40px; border-radius: 99px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.bg-lb-body { display: grid; place-items: center; }
.bg-lb-body .bn { width: min(92vw, calc(78vh * var(--arn, 1)), 960px); box-shadow: 0 30px 60px -20px #000; }
@media (max-width: 560px) { .bg-grid { columns: 1; } .bg-lab { min-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .bg-item { transition: none; } .bg-item:hover { transform: none; } }

/* live builder extra formats / styles */
.ad-card.portrait { aspect-ratio: 4 / 5; width: min(100%, 280px); }
.ad-card.wide { aspect-ratio: 1.91 / 1; width: min(100%, 420px); padding: 16px 20px; align-content: center; }
.ad-card[data-style="bold"] strong { text-transform: uppercase; letter-spacing: -.01em; }
.ad-card[data-style="elegant"] strong { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; }
.ad-card[data-style="elegant"] { border-radius: 4px; }
