/* ════════════════════════════════════════════════════════════════════
   Codelith Lab Deepotsav — FORK MODULES (cdl-fork.css)
   Stable 3D diya box + naye client cards (ZupiChat launch, EditoHub app,
   HATO, Air O Sea China, Dubai tag). Owner: fork session.
   ════════════════════════════════════════════════════════════════════ */

/* ── 3D diya: bada, sthir; parent ka .cdl-d3 box reuse ───────────── */
html.cdl-on .cdl-d3.cdf-d3 { width: 340px; height: 236px; margin: -32px 0 0 -28px; }
html.cdl-on .cdl-d3.cdf-d3::after { display: none; }
html.cdl-on .cdl-d3.cdf-d3.cdf-fail { display: none; }
@media (max-width: 1023px) { html.cdl-on .cdl-d3.cdf-d3 { margin: -24px auto 0; } }
@media (max-width: 767px) { html.cdl-on .cdl-d3.cdf-d3 { width: 260px; height: 192px; } }

/* ── tags (region / product) ────────────────────────────────────── */
html.cdl-on .demo-card .cdf-tag {
  position: absolute; left: 12px; top: 12px; z-index: 4; padding: 5px 10px; border-radius: 99px; pointer-events: none;
  font: 800 10px/1.2 Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #2A1708;
  background: linear-gradient(135deg, #FFE7A8, #D9A84E); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .45);
}

/* ── ZupiChat: launch card ──────────────────────────────────────── */
html.cdl-on .cdf-zc .cdf-tag { color: #FFF6E2; background: linear-gradient(135deg, #0E9E7A, #0A5C4B); box-shadow: 0 0 0 1px rgba(226, 182, 92, .7), 0 6px 16px -6px rgba(0, 0, 0, .5); }
html.cdl-on .cdf-zc .cdf-launch {
  position: absolute; right: 12px; top: 12px; display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 14px; z-index: 2;
  background: rgba(10, 31, 28, .82); box-shadow: inset 0 0 0 1px rgba(226, 182, 92, .55), 0 8px 20px -8px rgba(0, 0, 0, .5);
}
html.cdl-on .cdf-zc .cdf-launch b {
  font: 800 26px/1 Sora, Inter, sans-serif; letter-spacing: -.02em;
  background-image: linear-gradient(100deg, #E7BE6A 0%, #FFF3D2 40%, #E2B65C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
html.cdl-on .cdf-zc .cdf-launch i { font: 700 10px/1.2 Inter, sans-serif; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 238, 220, .82); }
html.cdl-on .cdf-zc:not(#_) { box-shadow: 0 0 0 2px rgba(14, 158, 122, .55), 0 0 0 6px rgba(255, 248, 232, .9), 0 0 0 7px rgba(184, 134, 47, .4), 0 30px 60px -24px rgba(14, 100, 80, .45) !important; }

/* ── EditoHub app: composed thumb (emerald + phone) ─────────────── */
html.cdl-on .cdf-app .demo-thumb { background-image: none !important; background-color: #0F2E2B; }
html.cdl-on .cdf-app .cdf-app-bg {
  position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 100% 100%, rgba(22, 184, 145, .4), transparent 62%), radial-gradient(60% 70% at 0% 0%, rgba(226, 182, 92, .22), transparent 60%), linear-gradient(150deg, #154A41 0%, #0F2E2B 52%, #0A1F1C 100%);
}
html.cdl-on .cdf-app .cdf-app-copy { position: absolute; left: 7%; top: 22%; width: 48%; display: flex; flex-direction: column; gap: 8px; color: #FFF6E2; }
html.cdl-on .cdf-app .cdf-app-copy b { font: 800 clamp(18px, 2vw, 26px)/1.1 Sora, Inter, sans-serif; letter-spacing: -.02em; }
html.cdl-on .cdf-app .cdf-app-copy i { font: italic 600 clamp(13px, 1.3vw, 16px)/1.3 "Cormorant Garamond", Georgia, serif; color: #F3DDAA; }
html.cdl-on .cdf-app .cdf-play {
  align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 99px; font: 700 11px/1.2 Inter, sans-serif; letter-spacing: .06em;
  color: #2A1708; background: linear-gradient(135deg, #FFE7A8, #D9A84E);
}
html.cdl-on .cdf-app .cdf-phone {
  position: absolute; right: 8%; top: 9%; width: 25%; aspect-ratio: 270 / 584; border-radius: 16px; padding: 4px; overflow: hidden;
  background: linear-gradient(150deg, #FFFFFF, #EFD49B 50%, #E2BE78); box-shadow: 0 0 0 1px rgba(184, 134, 47, .6), 0 18px 34px -12px rgba(0, 0, 0, .6);
  transform: rotate(4deg);
}
html.cdl-on .cdf-app .cdf-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12px; }

/* ── Air O Sea: photo + unka hero copy (HTML = har DPR par saaf) ─── */
html.cdl-on .cdf-aos .demo-thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 22, 34, .86) 0%, rgba(4, 22, 34, .55) 46%, rgba(4, 22, 34, 0) 75%); }
html.cdl-on .cdf-aos .cdf-aos-copy { position: absolute; left: 7%; top: 19%; width: 58%; display: flex; flex-direction: column; gap: 8px; color: #FFFFFF; }
html.cdl-on .cdf-aos .cdf-aos-copy img { width: 46%; height: auto; display: block; margin-bottom: 4px; }
html.cdl-on .cdf-aos .cdf-aos-copy b { font: 800 clamp(20px, 2.3vw, 30px)/1.04 Sora, Inter, sans-serif; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
html.cdl-on .cdf-aos .cdf-aos-copy i { font: 500 clamp(11px, 1vw, 13px)/1.4 Inter, sans-serif; font-style: normal; color: rgba(255, 255, 255, .86); max-width: 26em; }

/* tag + meta ke liye jagah: launch pill ke saath tag left me rehta hai */
html.cdl-on .cdl-ring-card .cdf-tag { left: 14px; top: 14px; }

/* grid (ring nahi, <1100px): 10 cards = 2 columns saaf; phone par 1 */
@media (max-width: 1099px) and (min-width: 601px) {
  html.cdl-on #demos .demo-grid.cdf-grid:not(#_) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  html.cdl-on #demos .demo-grid.cdf-grid:not(#_) { grid-template-columns: 1fr; }
  html.cdl-on .cdf-app .cdf-app-copy b { font-size: 20px; }
  html.cdl-on .cdf-aos .cdf-aos-copy b { font-size: 22px; }
}
