/* =====================================================================
   Liquid-glass dropdowns — every menu / popover / picker in the app.
   Frosted translucent body, specular rim + sheen, springy "drop" in.
   ===================================================================== */
:root, [data-theme="dark"] {
  --glass-bg: rgba(30, 26, 22, .58);
  --glass-rim: rgba(255, 255, 255, .16);
  --glass-hi: rgba(255, 255, 255, .22);
  --glass-sheen: rgba(255, 255, 255, .13);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .3);
  --glass-hover: rgba(255, 255, 255, .09);
  --glass-hover-rim: rgba(255, 255, 255, .12);
}
[data-theme="light"] {
  --glass-bg: rgba(255, 255, 255, .62);
  --glass-rim: rgba(255, 255, 255, .85);
  --glass-hi: rgba(255, 255, 255, .95);
  --glass-sheen: rgba(255, 255, 255, .55);
  --glass-shadow: 0 24px 50px rgba(60, 40, 20, .18), 0 2px 8px rgba(60, 40, 20, .1), 0 0 0 1px rgba(60, 40, 20, .08);
  --glass-hover: rgba(60, 40, 20, .07);
  --glass-hover-rim: rgba(255, 255, 255, .9);
}

.dd-menu, .ph-pop, .menu, .lp-pop, .pop {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(1.05);
  backdrop-filter: blur(24px) saturate(1.9) brightness(1.05);
  border: 1px solid var(--glass-rim) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(255, 255, 255, .04), var(--glass-shadow) !important;
  isolation: isolate;
}
/* specular sheen across the top-left of the glass */
.dd-menu::before, .ph-pop::before, .menu::before, .lp-pop::before, .pop::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, var(--glass-sheen), transparent 38%), radial-gradient(120% 60% at 100% 100%, rgba(255, 153, 28, .07), transparent 60%);
}

/* springy liquid drop-in (opening from the button) */
@keyframes glassIn {
  0% { opacity: 0; transform: translateY(-8px) scale(.9, .86); filter: blur(10px); }
  55% { opacity: 1; filter: blur(0); }
  78% { transform: translateY(1px) scale(1.012, 1.02); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes glassUp {
  0% { opacity: 0; transform: translateY(8px) scale(.9, .86); filter: blur(10px); }
  55% { opacity: 1; filter: blur(0); }
  78% { transform: translateY(-1px) scale(1.012, 1.02); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes glassItem { from { opacity: 0; transform: translateY(-4px); filter: blur(3px); } }
.dd-menu:not([hidden]), .ph-pop, .lp-pop:not([hidden]), .pop, .menu.open, .menu.show {
  animation: glassIn .42s cubic-bezier(.22, 1, .36, 1) both !important;
}
.dd-menu.floating.up:not([hidden]) { animation-name: glassUp !important; }
.dd-menu:not([hidden]) > *, .pop.wmenu > .mi, .font-pop .fp-item { animation: glassItem .32s ease both; }

/* items: a soft glass pill on hover, tinted pill when selected */
.dd-menu button, .dd-menu a, .dd-menu label.sel-item, .menu button, .menu a, .lp-pop button, .ph-pop button, .pop .mi {
  border-radius: 10px; transition: background .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
.dd-menu button:hover, .dd-menu a:hover, .dd-menu label.sel-item:hover, .menu button:hover, .menu a:hover, .lp-pop button:hover, .ph-pop button:hover, .pop .mi:hover {
  background: var(--glass-hover) !important; box-shadow: inset 0 1px 0 var(--glass-hover-rim);
}
.dd-menu button:active, .menu button:active, .pop .mi:active { transform: scale(.97); }
.dd-menu button.on, .dd-menu .sel-item.on {
  background: linear-gradient(135deg, rgba(255, 179, 71, .22), rgba(255, 153, 28, .12)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .25), inset 0 0 0 1px rgba(255, 153, 28, .28);
}
.dd-menu .sel-sep, .dd-menu hr { opacity: .6; }

/* the button that owns an open menu gets a little glass glow too */
.dd-open { box-shadow: 0 0 0 3px rgba(255, 153, 28, .16), inset 0 1px 0 rgba(255, 255, 255, .12); }

/* native <select> pickers → the same glass, where the browser allows styling them (Chrome / Edge 135+) */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; cursor: pointer; }
  select::picker-icon { color: var(--muted); font-size: 10px; transition: rotate .3s cubic-bezier(.34, 1.56, .64, 1); }
  select:open::picker-icon { rotate: 180deg; }
  select:has(+ .ic)::picker-icon { display: none; } /* wrappers that already draw their own chevron */
  select:open { border-color: var(--accent); }
  ::picker(select) {
    margin-block: 6px; padding: 6px; min-width: anchor-size(width); max-height: min(340px, 60vh);
    color: var(--text); background: var(--glass-bg);
    -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9);
    border: 1px solid var(--glass-rim); border-radius: 14px;
    box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
    opacity: 1; transform: none; filter: none; transform-origin: top center;
    transition: opacity .22s ease, transform .4s cubic-bezier(.22, 1.3, .36, 1), filter .25s ease, display .25s allow-discrete, overlay .25s allow-discrete;
  }
  ::picker(select):not(:popover-open) { opacity: 0; transform: translateY(-6px) scale(.92, .88); filter: blur(8px); }
  @starting-style { ::picker(select):popover-open { opacity: 0; transform: translateY(-6px) scale(.92, .88); filter: blur(8px); } }
  select option { padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--text); background: transparent; transition: background .15s ease; }
  select option:hover, select option:focus-visible { background: var(--glass-hover); outline: none; }
  select option:checked { color: var(--accent-2, #ffb352); font-weight: 600; background: rgba(255, 153, 28, .12); }
  select option::checkmark { color: var(--accent); }
}

/* ---------- editor: back / home button in place of the logo ---------- */
.ed-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 4px; border-radius: 13px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 13.5px;
  background: var(--gl-btn); border: 1px solid var(--gl-btn-rim); box-shadow: inset 0 1px 0 var(--gl-btn-hi), 0 1px 3px rgba(0, 0, 0, .18);
  transition: background .2s, box-shadow .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.ed-back:hover { background: var(--gl-btn-hover); box-shadow: inset 0 1px 0 var(--gl-btn-hi), 0 6px 16px rgba(0, 0, 0, .22); }
.ed-back:active { transform: scale(.96); }
.ed-back-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ffb347, var(--accent) 55%, #ff6a3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px rgba(255, 153, 28, .35); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ed-back:hover .ed-back-ic { transform: translateX(-3px); }
.ed-back-home { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ed-back:hover .ed-back-home { color: var(--text); }
@media (max-width: 720px) { .ed-back-home { display: none; } .ed-back { padding-right: 4px; } }

/* ---------- centred liquid-glass confirm (page behind blurs) ---------- */
.gx-back { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px;
  background: rgba(6, 5, 4, 0); -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1);
  transition: background .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease; }
.gx-back.in { background: rgba(6, 5, 4, .38); -webkit-backdrop-filter: blur(9px) saturate(1.15); backdrop-filter: blur(9px) saturate(1.15); }
[data-theme="light"] .gx-back.in { background: rgba(60, 40, 20, .16); }
.gx-back.out { background: rgba(6, 5, 4, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition-duration: .25s; }
.gx-card { position: relative; isolation: isolate; overflow: hidden; width: min(400px, 100%); padding: 28px 26px 22px; text-align: center; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 45%), var(--glass-bg);
  -webkit-backdrop-filter: blur(28px) saturate(1.9); backdrop-filter: blur(28px) saturate(1.9);
  border: 1px solid var(--glass-rim); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .15);
  opacity: 0; transform: translateY(14px) scale(.9, .86); filter: blur(10px); }
.gx-back.in .gx-card { animation: gxIn .55s cubic-bezier(.22, 1, .36, 1) forwards; }
.gx-back.out .gx-card { opacity: 1; transform: none; filter: none; animation: gxOut .24s cubic-bezier(.4, 0, .9, .6) forwards; }
@keyframes gxIn { 0% { opacity: 0; transform: translateY(14px) scale(.9, .86); filter: blur(10px); } 55% { opacity: 1; filter: blur(0); } 78% { transform: translateY(-2px) scale(1.015, 1.02); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes gxOut { to { opacity: 0; transform: translateY(8px) scale(.94); filter: blur(8px); } }
.gx-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255, 153, 28, .22), transparent 60%), linear-gradient(140deg, var(--glass-sheen), transparent 40%); }
.gx-sheen { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 48%, transparent 60%); transform: translateX(-120%); }
.gx-back.in .gx-sheen { animation: fcSheenGx 1.2s cubic-bezier(.4, 0, .2, 1) .35s both; }
@keyframes fcSheenGx { to { transform: translateX(120%); } }
.gx-ic { position: relative; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 19px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, #ffc061, var(--accent) 55%, #ff6a3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 28px rgba(255, 153, 28, .4); }
.gx-back.in .gx-ic { animation: gxIc .7s cubic-bezier(.34, 1.56, .64, 1) .12s both; }
@keyframes gxIc { from { transform: scale(.5) rotate(-12deg); opacity: 0; } }
.gx-card h3 { position: relative; margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.gx-card p { position: relative; margin: 0 0 22px; font-size: 13.5px; line-height: 1.55; color: var(--muted); word-break: break-word; }
.gx-card p b { color: var(--text); }
.gx-btns { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gx-btn { height: 44px; border-radius: 14px; font: 700 14px var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, background .2s; }
.gx-btn:active { transform: scale(.96); }
.gx-btn.ghost { color: var(--text); background: var(--gl-btn); border: 1px solid var(--gl-btn-rim); box-shadow: inset 0 1px 0 var(--gl-btn-hi); }
.gx-btn.ghost:hover { background: var(--gl-btn-hover); }
.gx-btn.primary { color: #2a1400; border: 0; background: linear-gradient(180deg, #ffb24d, var(--accent) 55%, #f5850c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 10px 24px rgba(255, 153, 28, .4); }
.gx-btn.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 30px rgba(255, 153, 28, .5); }
.gx-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gx-card, .gx-back.in .gx-card, .gx-back.out .gx-card, .gx-ic, .gx-sheen { animation: none !important; opacity: 1; transform: none; filter: none; } }

/* =====================================================================
   Pricing (home page + studio "Plans & Pricing")
   ===================================================================== */
.pricing { --pr-acc: var(--accent); max-width: 1180px; margin: 0 auto; }
/* the "2 months free" tag sits beside the toggle (in the flow) so it can never overlap a banner above it */
.pr-cycle { position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 34px; }
.pr-free-tag { order: 2; position: relative; padding: 4px 11px; white-space: nowrap; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--accent-2);
  border: 1px solid rgba(255, 153, 28, .5); background: rgba(255, 153, 28, .1); box-shadow: 0 0 18px rgba(255, 153, 28, .25); animation: prTag 2.6s ease-in-out infinite; }
@keyframes prTag { 50% { transform: translateY(-3px); } }
.pr-toggle { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--gl-panel); border: 1px solid var(--gl-panel-rim);
  box-shadow: inset 0 1px 0 var(--gl-panel-hi), 0 8px 22px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pr-toggle button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 9px 20px; border-radius: 999px; font: 700 13.5px var(--font); color: var(--muted); transition: color .3s; display: inline-flex; align-items: center; gap: 7px; }
.pr-toggle button.on { color: #2a1400; }
.pr-toggle em { font-style: normal; font-size: 9.5px; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: rgba(34, 214, 94, .16); color: #4ade80; }
.pr-toggle button.on em { background: rgba(0, 0, 0, .15); color: #2a1400; }
.pr-pill { position: absolute; left: 4px; top: 4px; bottom: 4px; border-radius: 999px; background: linear-gradient(180deg, #ffb24d, var(--accent) 60%, #f5850c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 16px rgba(255, 153, 28, .35); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), width .45s cubic-bezier(.34, 1.4, .64, 1); }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }
.pr-card { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 22px 20px 24px; border-radius: 24px; text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 45%), var(--gl-panel); border: 1px solid var(--gl-panel-rim);
  box-shadow: inset 0 1px 0 var(--gl-panel-hi), var(--gl-panel-shadow); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  animation: prIn .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 80ms); transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s, border-color .3s; }
@keyframes prIn { from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(6px); } }
.pr-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 var(--gl-panel-hi), 0 28px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 153, 28, .25); }
.pr-card.popular { border-color: rgba(255, 153, 28, .65); box-shadow: inset 0 1px 0 rgba(255, 220, 170, .3), 0 0 0 1px rgba(255, 153, 28, .35), 0 24px 70px rgba(255, 153, 28, .18); }
.pr-card.popular::before { content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ffd166, var(--accent), transparent); box-shadow: 0 0 16px var(--accent); }
.pr-card.current { border-color: rgba(74, 222, 128, .5); }
.pricing.pr-swap .pr-card { animation: prSwap .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes prSwap { from { opacity: .3; transform: translateY(8px) scale(.985); } }
.pricing.pr-flash .pr-card { animation: prFlash 1.4s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(.5s + var(--i) * 90ms); }
@keyframes prFlash { 0% { transform: translateY(18px); opacity: .4; } 45% { transform: translateY(-6px); opacity: 1; box-shadow: 0 0 0 2px rgba(255, 153, 28, .5), 0 24px 70px rgba(255, 153, 28, .25); } 100% { transform: none; } }
.pr-top { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 14px; }
.pr-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-2); background: rgba(255, 153, 28, .12); border: 1px solid rgba(255, 153, 28, .25); }
.popular .pr-ic { color: #fff; background: linear-gradient(135deg, #ffb347, var(--accent) 55%, #ff6a3d); border: 0; box-shadow: 0 6px 16px rgba(255, 153, 28, .4); }
.pr-badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--accent-2); border: 1px solid rgba(255, 153, 28, .5); background: rgba(255, 153, 28, .1); }
.pr-badge.cur { color: #4ade80; border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .1); }
.pr-badge.pend { color: #fbbf24; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .1); }
.pr-card h3 { margin: 0 0 8px; font-size: 16px; }
.pr-price { display: flex; align-items: flex-start; gap: 4px; }
.pr-price b { font-size: 36px; line-height: 1.05; letter-spacing: -.02em; }
.pr-price sup { font-size: 10px; font-weight: 700; color: var(--accent-2); margin-top: 4px; }
.pr-per { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pr-hours { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--gl-btn-rim); }
.pr-hours .ic { color: var(--accent); }
.pr-btn { height: 42px; border-radius: 13px; cursor: pointer; font: 700 13.5px var(--font); color: var(--text); background: var(--gl-btn); border: 1px solid var(--gl-btn-rim); box-shadow: inset 0 1px 0 var(--gl-btn-hi);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, background .2s; }
.pr-btn:hover { background: var(--gl-btn-hover); transform: translateY(-1px); }
.pr-btn:disabled { cursor: not-allowed; opacity: .48; filter: saturate(.45); box-shadow: none; transform: none; }
.pr-btn:disabled:hover { background: var(--gl-btn); }
.pr-btn:active { transform: scale(.97); }
.pr-btn.primary { color: #2a1400; border: 0; background: linear-gradient(180deg, #ffb24d, var(--accent) 55%, #f5850c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 24px rgba(255, 153, 28, .35); }
.current .pr-btn { pointer-events: none; opacity: .7; }
.pr-sep { height: 1px; margin: 20px -20px 16px; background: var(--gl-panel-rim); }
.pr-lead { font-size: 12.5px; margin-bottom: 10px; }
.pr-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pr-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pr-card li .ic { flex: none; margin-top: 2px; color: #4ade80; }
.pr-pending { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin: 0 0 22px; border-radius: 14px; font-size: 13px; color: var(--text);
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); }
.pr-pending .ic { color: #fbbf24; flex: none; }
.pr-pending.sm { margin: 0 0 12px; font-size: 12px; }
.pr-in-app { margin-top: 26px; }
/* activation code box (Plans & Pricing) */
.act-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin: 4px 0 8px; border-radius: 20px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 153, 28, .14), transparent 55%), var(--gl-panel); border: 1px solid rgba(255, 153, 28, .35);
  box-shadow: inset 0 1px 0 var(--gl-panel-hi), 0 14px 40px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.act-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ffb347, var(--accent) 55%, #ff6a3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px rgba(255, 153, 28, .35); }
.act-txt { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.act-txt b { font-size: 14.5px; }
.act-txt small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.act-form { flex: 1 1 340px; display: flex; gap: 8px; }
.act-form .input { flex: 1; min-width: 0; height: 42px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.act-form .btn { height: 42px; flex: none; }
.act-msg { flex-basis: 100%; display: flex; align-items: center; gap: 7px; margin: -4px 0 0 60px; font-size: 13px; font-weight: 700; color: #ff7a7a; }
.act-msg.act-in { animation: actPop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes actPop { from { opacity: 0; transform: translateY(-4px); } }
.act-msg .act-left { font-weight: 600; color: var(--muted); }
.act-msg[data-kind="lock"] { color: #fbbf24; }
.act-msg .act-count { font-variant-numeric: tabular-nums; font-size: 14px; }
.act-card.locked { border-color: rgba(251, 191, 36, .45); }
.act-card.locked .act-form { opacity: .55; }
.act-form .input:disabled, .act-form .btn:disabled { cursor: not-allowed; }
.act-form .input.bad { border-color: rgba(255, 90, 90, .7) !important; box-shadow: 0 0 0 3px rgba(255, 90, 90, .15) !important; }
@media (max-width: 640px) { .act-msg { margin-left: 0; } }
.act-card.shake { animation: actShake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes actShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.plan-quota { margin: 8px 0; }
.plan-quota.big { margin: 6px 0 14px; }
.plan-up { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--accent-2); }

/* ---------- UPI payment card ---------- */
.pay-card { width: min(420px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px 24px 20px; }
.pay-x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); background: var(--gl-btn); border: 1px solid var(--gl-btn-rim); }
.pay-x:hover { color: var(--text); }
.pay-plan { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent-2); background: rgba(255, 153, 28, .12); border: 1px solid rgba(255, 153, 28, .35); }
.pay-card h3 { margin: 12px 0 4px; font-size: 22px; }
.pay-card h3 b { color: var(--accent-2); }
.pay-card h3 small { font-size: 12px; color: var(--muted); font-weight: 600; }
.pay-sub { margin: 0 0 14px !important; font-size: 12.5px !important; }
.pay-qr { position: relative; width: min(240px, 72%); margin: 0 auto 14px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .5); animation: gxIc .7s cubic-bezier(.34, 1.4, .64, 1) .15s both; }
.pay-qr img { display: block; width: 100%; height: auto; border-radius: 12px; }
.pay-upi { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; margin-bottom: 14px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--gl-btn-rim); }
.pay-upi span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pay-upi b { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.pay-copy { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 10px; cursor: pointer; font: 700 12px var(--font); color: #2a1400; border: 0; background: linear-gradient(180deg, #ffb24d, var(--accent)); }
.pay-steps { position: relative; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; text-align: left; }
.pay-steps > div { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pay-steps .ic { flex: none; margin-top: 3px; color: var(--accent); }
.pay-steps b, .pay-steps a { color: var(--text); }
.pay-done { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; margin-bottom: 16px; border-radius: 16px; font-size: 13px; line-height: 1.5; color: var(--muted);
  background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .35); animation: gxIc .6s cubic-bezier(.34, 1.4, .64, 1) both; }
.pay-done > .ic { color: #4ade80; }
.pay-done b { color: var(--text); }
a.gx-btn { text-decoration: none; }
/* promo code row in the payment card */
.pay-was { color: var(--muted); font-size: 16px; font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 90, 90, .8); }
.pay-promo { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 5px 5px 5px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 153, 28, .45); transition: border-color .2s, background .2s; }
.pay-promo-ic { color: var(--accent); display: grid; place-items: center; flex: none; }
.pay-promo-in { flex: 1; min-width: 0; height: 34px; border: 0; outline: none; background: none; color: var(--text); font: 700 13px var(--font); text-transform: uppercase; letter-spacing: .06em; }
.pay-promo-in::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pay-promo-in:disabled { color: #4ade80; }
.pay-promo-btn:disabled { opacity: .7; cursor: wait; }
.pay-promo-btn { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; cursor: pointer; font: 700 12.5px var(--font); color: #2a1400; border: 0; background: linear-gradient(180deg, #ffb24d, var(--accent)); }
.pay-promo.ok { border-style: solid; border-color: rgba(74, 222, 128, .55); background: rgba(74, 222, 128, .07); }
.pay-promo.ok .pay-promo-ic { color: #4ade80; }
.pay-promo.ok .pay-promo-btn { color: var(--text); background: var(--gl-btn); border: 1px solid var(--gl-btn-rim); }
.pay-promo.bad { border-style: solid; border-color: rgba(255, 90, 90, .7); background: rgba(255, 90, 90, .06); }
.pay-promo.shake { animation: actShake .45s cubic-bezier(.36, .07, .19, .97); }
.pay-promo-msg { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; font-size: 12.5px; font-weight: 700; }
.pay-promo-msg[data-kind="err"] { color: #ff7a7a; }
.pay-promo-msg[data-kind="ok"] { color: #4ade80; }
.pay-promo-msg b { color: inherit; }
/* WhatsApp green for the "Send on WhatsApp" button */
.gx-btn.wa-btn { color: #fff; background: linear-gradient(180deg, #3ee07a, #25d366 55%, #1ebe5a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px rgba(37, 211, 102, .35); }
.gx-btn.wa-btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px rgba(37, 211, 102, .45); }

/* ---------- "verify your email" screen ---------- */
.verify-card { text-align: center; }
.verify-ic { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 21px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ffc061, var(--accent) 55%, #ff6a3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 32px rgba(255, 153, 28, .4);
  animation: verifyIc 2.6s ease-in-out infinite; }
@keyframes verifyIc { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-6deg); } }
.verify-mail { color: var(--accent-2); word-break: break-all; }
.verify-steps { text-align: left; margin: 18px 0 20px; padding: 14px 16px 14px 34px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--gl-btn-rim); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.verify-steps b { color: var(--text); }
.verify-card .auth-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-decoration: none; margin-bottom: 10px; }
.verify-resend { width: 100%; }
.auth-resend { margin-left: 6px; border: 0; background: none; color: var(--accent-2); font: 700 13px var(--font); text-decoration: underline; cursor: pointer; padding: 0; }

/* logo: transparent cut-outs (made by js/theme.js) replace the blend-mode trick, which showed a black box on glass */
.logo-ready .brand { background: var(--logo-dark) center / 100% 100% no-repeat; }
[data-theme="light"].logo-ready .brand { background-image: var(--logo-light); }
.logo-ready .brand img { opacity: 0; }

/* =====================================================================
   Caption Tools panel — opens and closes like a liquid-glass dropdown
   ===================================================================== */
@keyframes liquidOpen {
  0% { opacity: 0; clip-path: inset(0 0 100% 0 round 18px); transform: translateY(-10px) scale(.97, .9); filter: blur(10px); }
  55% { opacity: 1; filter: blur(0); }
  80% { transform: translateY(1px) scale(1.005, 1.012); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 18px); transform: none; filter: none; }
}
@keyframes liquidClose {
  0% { opacity: 1; clip-path: inset(0 0 0 0 round 18px); transform: none; filter: none; }
  100% { opacity: 0; clip-path: inset(0 0 100% 0 round 18px); transform: translateY(-8px) scale(.97, .9); filter: blur(8px); }
}
[data-theme] .tools-panel {
  position: relative; isolation: isolate; transform-origin: top center;
  background: var(--glass-bg) !important; border: 1px solid var(--glass-rim) !important; border-radius: 18px !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow) !important; animation: none;
}
.tools-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(150deg, var(--glass-sheen), transparent 35%), radial-gradient(120% 50% at 100% 0%, rgba(255, 153, 28, .08), transparent 60%); }
.tools-panel.anim-in { animation: liquidOpen .55s cubic-bezier(.22, 1, .36, 1) both; }
.tools-panel.anim-in > * { animation: glassItem .45s cubic-bezier(.22, 1, .36, 1) both; }
.tools-panel.anim-in > *:nth-child(2) { animation-delay: .04s; } .tools-panel.anim-in > *:nth-child(3) { animation-delay: .07s; }
.tools-panel.anim-in > *:nth-child(4) { animation-delay: .1s; } .tools-panel.anim-in > *:nth-child(5) { animation-delay: .12s; }
.tools-panel.anim-in > *:nth-child(6) { animation-delay: .14s; } .tools-panel.anim-in > *:nth-child(n+7) { animation-delay: .16s; }
.tools-panel.anim-out { animation: liquidClose .26s cubic-bezier(.4, 0, .9, .6) both; pointer-events: none; }
.tools-panel .tcard, .tools-panel .tp-ctl { background: rgba(255, 255, 255, .04) !important; border-color: var(--glass-hover-rim) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
[data-theme="light"] .tools-panel .tcard, [data-theme="light"] .tools-panel .tp-ctl { background: rgba(255, 255, 255, .55) !important; border-color: rgba(60, 40, 20, .1) !important; }
#toolsBtn .ic:last-child { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }

/* =====================================================================
   Liquid glass everywhere — panels, cards, bars, buttons, inputs
   ===================================================================== */
:root, [data-theme="dark"] {
  --gl-panel: rgba(24, 20, 17, .52);
  --gl-panel-rim: rgba(255, 255, 255, .09);
  --gl-panel-hi: rgba(255, 255, 255, .09);
  --gl-panel-shadow: 0 20px 50px rgba(0, 0, 0, .38);
  --gl-btn: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  --gl-btn-hover: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  --gl-btn-rim: rgba(255, 255, 255, .12);
  --gl-btn-hi: rgba(255, 255, 255, .16);
  --gl-field: rgba(255, 255, 255, .035);
}
[data-theme="light"] {
  --gl-panel: rgba(255, 255, 255, .58);
  --gl-panel-rim: rgba(255, 255, 255, .9);
  --gl-panel-hi: rgba(255, 255, 255, 1);
  --gl-panel-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 16px 40px rgba(60, 40, 20, .1), 0 0 0 1px rgba(60, 40, 20, .06);
  --gl-btn: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .55));
  --gl-btn-hover: linear-gradient(180deg, #fff, rgba(255, 255, 255, .75));
  --gl-btn-rim: rgba(60, 40, 20, .12);
  --gl-btn-hi: rgba(255, 255, 255, 1);
  --gl-field: rgba(255, 255, 255, .6);
}

/* warm ambient light behind the app so the frosted glass has something to refract */
body:has(#app) {
  background:
    radial-gradient(900px 620px at 6% -12%, rgba(255, 153, 28, .17), transparent 62%),
    radial-gradient(820px 700px at 104% 112%, rgba(255, 94, 58, .13), transparent 62%),
    radial-gradient(700px 520px at 58% 38%, rgba(255, 209, 102, .05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
[data-theme="light"] body:has(#app) {
  background:
    radial-gradient(900px 620px at 6% -12%, rgba(255, 170, 60, .22), transparent 62%),
    radial-gradient(820px 700px at 104% 112%, rgba(255, 120, 80, .16), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

/* big frosted surfaces
   IMPORTANT: a backdrop-filter on an element turns it into the containing block of every position:fixed
   child — which made the floating dropdown menus inside panels open off-screen / get clipped (empty menus).
   So inside the app the blur lives on a ::after layer behind the content, never on the panel itself. */
[data-theme] :is(.box, .side, .card, .auth-card, .pf-card, .pf-hero, .panel-card, .prep-card, .exp-card, .drop-hero, .ep-tpl, .hcard, .usage, .modal, .tg-card, .tpl-big, .ed-top),
[data-theme] :is(.nav, .fcard, .price-card, .glow-card, .qa, .step) {
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 42%), var(--gl-panel) !important;
  border-color: var(--gl-panel-rim) !important;
  box-shadow: inset 0 1px 0 var(--gl-panel-hi), var(--gl-panel-shadow);
}
/* landing page + modals have no floating menus inside → blur directly */
[data-theme] :is(.nav, .fcard, .price-card, .glow-card, .qa, .step, .modal) {
  -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
}
/* app surfaces → blur on a pseudo layer */
[data-theme] :is(.box, .side, .card, .auth-card, .pf-card, .pf-hero, .panel-card, .prep-card, .exp-card, .drop-hero, .ep-tpl, .hcard, .usage, .tg-card, .tpl-big, .ed-top, .pl-bar, .rt-top, .ed-hist, .segctl, .seg-tabs, .acct, .tools-panel) {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; isolation: isolate;
}
[data-theme] :is(.box, .card, .auth-card, .pf-card, .pf-hero, .panel-card, .prep-card, .exp-card, .ep-tpl, .hcard, .usage, .tpl-big, .ed-top, .pl-bar, .rt-top, .ed-hist, .segctl, .seg-tabs, .acct) { position: relative; }
[data-theme] :is(.box, .side, .card, .auth-card, .pf-card, .pf-hero, .panel-card, .prep-card, .exp-card, .drop-hero, .ep-tpl, .hcard, .usage, .tg-card, .tpl-big, .ed-top, .pl-bar, .rt-top, .ed-hist, .segctl, .seg-tabs, .acct, .tools-panel)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
}
[data-theme] :is(.pl-bar, .rt-top, .ed-hist, .segctl, .seg-tabs, .acct)::after { -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
[data-theme] .ed-top, [data-theme] .side { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04); }
[data-theme] .side { border-right-color: var(--gl-panel-rim) !important; }
[data-theme] :is(.tg-card, .card, .fcard, .price-card):hover { box-shadow: inset 0 1px 0 var(--gl-panel-hi), 0 24px 60px rgba(0, 0, 0, .45), 0 10px 40px rgba(255, 153, 28, .16); }
/* the preview stage keeps its dotted canvas backdrop, but gets the glass rim + depth */
[data-theme] .stage-box { border-color: var(--gl-panel-rim) !important; box-shadow: inset 0 1px 0 var(--gl-panel-hi), var(--gl-panel-shadow); }
.modal-back { -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }

/* glass bars inside the editor */
[data-theme] :is(.pl-bar, .rt-top, .ed-hist, .segctl, .seg-tabs, .acct) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)), var(--gl-panel) !important;
  border-color: var(--gl-panel-rim) !important;
  box-shadow: inset 0 1px 0 var(--gl-panel-hi), 0 8px 22px rgba(0, 0, 0, .22);
}
[data-theme] :is(.segctl, .rt-top, .seg-tabs) button.on {
  background: var(--gl-btn-hover) !important; box-shadow: inset 0 1px 0 var(--gl-btn-hi), 0 2px 8px rgba(0, 0, 0, .25);
}

/* glass buttons + chips (accent buttons keep their colour but get a glossy top highlight) */
[data-theme] :is(.btn:not(.primary):not(.danger):not(.ghost), .pv-chip, .tl-chip, .round-btn, .pill-btn, .pl-btn:not(#playBtn), .lp-btn, .side-theme, .theme-toggle) {
  background: var(--gl-btn) !important; border-color: var(--gl-btn-rim) !important;
  box-shadow: inset 0 1px 0 var(--gl-btn-hi), 0 1px 3px rgba(0, 0, 0, .18);
  transition: background .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), border-color .2s ease;
}
[data-theme] :is(.btn:not(.primary):not(.danger):not(.ghost), .pv-chip, .tl-chip, .round-btn, .pill-btn, .pl-btn:not(#playBtn), .lp-btn, .side-theme, .theme-toggle):hover {
  background: var(--gl-btn-hover) !important; box-shadow: inset 0 1px 0 var(--gl-btn-hi), 0 6px 16px rgba(0, 0, 0, .22);
}
[data-theme] :is(.btn, .pv-chip, .tl-chip, .round-btn, .pill-btn, .pl-btn):active { transform: scale(.97); }
[data-theme] :is(.pv-ico.on, .rate-chip.on, .pill-btn.open, .round-btn.on, .tl-btn.tog.on) { border-color: rgba(255, 153, 28, .55) !important; box-shadow: inset 0 1px 0 rgba(255, 220, 170, .3), 0 0 0 3px rgba(255, 153, 28, .12), 0 6px 18px rgba(255, 153, 28, .18); }
[data-theme] :is(.btn.primary, .ed-export, #playBtn) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 8px 22px rgba(255, 153, 28, .35); }
[data-theme] .btn.primary { background: linear-gradient(180deg, #ffb24d, var(--accent) 55%, #f5850c) !important; }

/* frosted fields */
[data-theme] :is(.input, .num, .tp-ctl, .pl-time, select:not(.tp-ctl select):not(.pf-select select):not(.prep-select select)) {
  background-color: var(--gl-field) !important; border-color: var(--gl-btn-rim) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14);
}
[data-theme] :is(.input, .num):focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(255, 153, 28, .18), inset 0 1px 2px rgba(0, 0, 0, .1); }

/* frosted list rows / caption rows on hover */
[data-theme] .crow-main:hover { background: var(--glass-hover) !important; box-shadow: inset 0 1px 0 var(--glass-hover-rim); }

/* "lite glass" — slower devices (set automatically) or reduced transparency:
   big panels keep the glass colours, rim and sheen but skip the costly live blur; menus keep theirs */
:root.lite-glass :is(.box, .side, .card, .auth-card, .pf-card, .pf-hero, .panel-card, .prep-card, .exp-card, .drop-hero, .ep-tpl, .hcard, .usage, .tg-card, .tpl-big, .ed-top, .nav, .fcard, .price-card, .glow-card, .qa, .step, .pl-bar, .rt-top, .ed-hist, .segctl, .seg-tabs, .acct, .tools-panel),
:root.lite-glass :is(.box, .side, .card, .auth-card, .pf-card, .pf-hero, .panel-card, .prep-card, .exp-card, .drop-hero, .ep-tpl, .hcard, .usage, .tg-card, .tpl-big, .ed-top, .pl-bar, .rt-top, .ed-hist, .segctl, .seg-tabs, .acct, .tools-panel)::after {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
:root.lite-glass, [data-theme="dark"].lite-glass { --gl-panel: rgba(22, 19, 16, .9); }
[data-theme="light"].lite-glass { --gl-panel: rgba(255, 255, 255, .88); }
:root.lite-glass .tools-panel { background: linear-gradient(150deg, rgba(255, 255, 255, .06), transparent 40%), var(--surface) !important; }
@media (prefers-reduced-transparency: reduce) {
  :is(.box, .side, .card, .modal, .tg-card, .ed-top, .pl-bar, .tools-panel, .nav, .fcard), :is(.box, .side, .card, .tg-card, .ed-top, .pl-bar, .tools-panel)::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dd-menu, .ph-pop, .menu, .lp-pop, .pop, .dd-menu > *, .tools-panel, .tools-panel > * { animation: none !important; }
  ::picker(select) { transition: none; }
}
