/* Interaction and ambient motion for the DLaaS site. Loaded after site.css. */

/* ---------- Hovers that change colour, not just shade ---------- */
.btn { transition: transform .15s, box-shadow .2s, background-color .2s, color .2s, border-color .2s; }
/* Primary hover: one brighter violet with a soft glow — no gradient. */
.btn:not(.ghost):not(.quiet):not(.danger):not(.green):hover {
  background: #8366FF; border-color: #8366FF; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(131, 102, 255, .85), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px);
}
.btn.ghost:hover { background: var(--b); border-color: var(--b); color: #fff; }
.btn.quiet:hover { background: var(--violet-soft); color: var(--violet); }
.btn.danger:hover, .btn.green:hover { filter: brightness(1.12); transform: translateY(-1px); }
.chip { transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover:not([aria-pressed="true"]) { background: var(--violet-soft); border-color: var(--violet); color: var(--violet); }
.link-btn:hover { color: var(--rose); }
.path-link:hover { color: #FF9FD0; }
.template, .lawyer, .booking-row, .doc-row, .ex-docs a, .ex-issues button, .lb-points li, .mega-item, .exl { transition: transform .18s, border-color .18s, background-color .18s, box-shadow .18s; }
.template:hover, .lawyer:hover, .booking-row:hover, .ex-docs a:hover, .lb-points li:hover, .exl:hover { transform: translateY(-2px); background: var(--violet-soft); border-color: var(--violet); box-shadow: 0 12px 24px -16px rgba(99, 64, 232, .55); }
.ex-issues button:hover { background: var(--violet-soft); color: var(--violet); }
.mega-item:hover { background: var(--violet-soft); }
.mega-item:hover b { color: var(--violet); }
.mega-item:hover .ic { background: var(--violet); color: #fff; }
.show-tabs button:hover:not([aria-selected="true"]), .mode-list button:hover:not([aria-selected="true"]) { border-color: color-mix(in srgb, var(--violet) 45%, transparent); background: var(--violet-soft); }
.situations button:hover:not([aria-selected="true"]) { background: rgba(224, 86, 160, .12); border-color: #E056A0; color: #fff; }
.hero-try button:hover { background: #E056A0; border-color: #E056A0; color: #fff; }
.nav-links > li > a:hover, .dd-btn:hover { background: color-mix(in srgb, var(--violet-brand) 18%, transparent); }
.area-grid a:hover { background: var(--violet-soft); }

/* ---------- Navbar actions ---------- */
/* Liquid glass, kept quiet: what's behind shows through blurred, a near-clear
   fill, a hairline rim, one soft highlight along the top edge. No sheen. */
.glass, .nav-signin, .navi, .float-chip, .path-chip {
  --g-fill: rgba(255, 255, 255, .045); --g-rim: rgba(255, 255, 255, .1); --g-hi: rgba(255, 255, 255, .1);
  position: relative;
  background: var(--g-fill);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--g-rim);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 12px 32px -20px rgba(0, 0, 0, .55);
}

.nav-signin {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 650; font-size: .93rem; letter-spacing: -0.005em;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
}
#site-header:not(.on-stage) .nav-signin { --g-rim: rgba(99, 64, 232, .22); --g-hi: rgba(255,255,255,.9); background: rgba(255, 255, 255, .55); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 8px 20px -14px rgba(52, 33, 140, .45); }
.nav-signin:hover { --g-rim: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .2); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 26px -12px rgba(155, 133, 255, .7); }
#site-header:not(.on-stage) .nav-signin:hover { background: #fff; --g-rim: rgba(99, 64, 232, .45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #site-header:not(.on-stage) .nav-signin { background: rgba(255,255,255,.07); color: var(--ink); --g-rim: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); } }
:root[data-theme="dark"] #site-header:not(.on-stage) .nav-signin { background: rgba(255,255,255,.07); --g-rim: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.nav-cta { position: relative; overflow: hidden; background: #6340E8 linear-gradient(120deg, #6340E8, #8B5CF6); border-color: transparent; }
.nav-cta:hover { background: #8366FF !important; }
.nav-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- Ambient motion ---------- */
.stage::before { animation: drift 16s ease-in-out infinite alternate; }
.stage::after { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 86, 160, .22), transparent); pointer-events: none; animation: drift2 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-12%, -18%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(40%, 30%) scale(1.2); } }
.navi { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.cycle { margin-top: 18px; color: var(--stage-ink-2); font-size: 1rem; }
.cycle span { display: inline-block; color: #FFB3D9; font-weight: 650; transition: opacity .35s, transform .35s, filter .35s; }
.cycle span.out { opacity: 0; transform: translateY(-8px); filter: blur(4px); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

.steps li::after { border-top: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--violet) 0 8px, transparent 8px 16px); opacity: .45; animation: dash 1.1s linear infinite; }
@keyframes dash { to { background-position: 16px 0; } }

/* Template ticker: two rows sliding opposite ways, paused on hover */
.ticker { padding: 34px 0 30px; background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-head { margin-bottom: 18px; }
.ticker-head p { color: var(--ink-2); }
.ticker-head b { color: var(--ink); }
.ticker-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-row + .ticker-row { margin-top: 10px; }
.ticker-track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.ticker-row.rev .ticker-track { animation-direction: reverse; animation-duration: 80s; }
.ticker-row:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; gap: 10px; padding-right: 10px; }
.ticker-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .92rem; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.ticker-pill svg { color: var(--violet); }
.ticker-pill:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.ticker-pill:hover svg { color: #fff; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Video call mock with portraits */
.dv-remote { position: relative; overflow: hidden; }
.dv-remote > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.03); } }
.dv-tag { position: absolute; left: 12px; top: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 6, 24, .55); backdrop-filter: blur(6px); font-size: .72rem; font-weight: 600; color: #fff; }
.dv-self { overflow: hidden; padding: 0; place-items: end center; right: 14px; top: 56px; }
.dv-self > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dv-self small { position: relative; margin-bottom: 5px; font-size: .62rem; background: rgba(10, 6, 24, .55); padding: 1px 6px; border-radius: 6px; color: #fff; }

/* ---------- Get the app ---------- */
.get-app { position: relative; overflow: hidden; background: var(--stage); color: var(--stage-ink); padding: clamp(64px, 9vw, 110px) 0; }
.get-app::before { content: ""; position: absolute; width: 700px; height: 700px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 92, 252, .4), transparent); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.get-app-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.get-app-icon { border-radius: 18px; box-shadow: 0 16px 30px -12px rgba(124, 92, 252, .8); margin-bottom: 22px; }
.get-app h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
.get-app .lede { color: var(--stage-ink-2); margin-top: 16px; }
.get-app-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; max-width: 460px; }
.get-app-list li { display: flex; gap: 12px; align-items: center; color: var(--stage-ink); }
.get-app::after { content: ""; position: absolute; width: 520px; height: 520px; left: 42%; bottom: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 86, 160, .28), transparent); animation: drift2 22s ease-in-out infinite alternate; pointer-events: none; }

/* Glass inside the hero navigator */
.navi { --g-fill: rgba(30, 22, 68, .42); border-radius: 30px; }
.situations button { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.situations button[aria-selected="true"] { background: rgba(155, 133, 255, .16); border-color: rgba(190, 175, 255, .38); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.path-chip { --g-fill: rgba(255,255,255,.03); --g-hi: rgba(255,255,255,.06); border-radius: 14px; box-shadow: inset 0 1px 0 var(--g-hi); }

/* Light-surface glass for cards on paper sections */
.show-tabs button[aria-selected="true"], .mode-list button[aria-selected="true"], .lb-points li, .dd-panel {
  background: color-mix(in srgb, var(--card) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 16px 34px -22px rgba(52, 33, 140, .45);
}
.mode-list button[aria-selected="true"] { border-color: color-mix(in srgb, var(--violet) 55%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.show-tabs button[aria-selected="true"], .mode-list button[aria-selected="true"], .lb-points li, .dd-panel) { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px -22px rgba(0,0,0,.6); }
}
:root[data-theme="dark"] :is(.show-tabs button[aria-selected="true"], .mode-list button[aria-selected="true"], .lb-points li, .dd-panel) { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px -22px rgba(0,0,0,.6); }
.get-app-list svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(60, 203, 142, .14); color: #3CCB8E; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
/* Store buttons — same recipe as soumitsahu.com: flat translucent pill, thin
   rim, single-colour mark height-locked so each logo keeps its proportions. */
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: #16112C; border: 1px solid rgba(255,255,255,.12); color: #F4F2FC; text-decoration: none; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
.store-btn:hover { transform: translateY(-3px); background: #241C4A; box-shadow: 0 12px 26px rgba(0,0,0,.35); }
/* On the dark app section the buttons go see-through, as on soumitsahu.com. */
.get-app .store-btn { background: rgba(255,255,255,.06); }
.get-app .store-btn:hover { background: rgba(255,255,255,.11); }
.store-icon { height: 22px; display: flex; align-items: center; flex: none; }
.store-icon svg { height: 100%; width: auto; display: block; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: .6rem; color: #8F8AAE; text-transform: uppercase; letter-spacing: .04em; }
.store-text b { font-size: .92rem; font-weight: 700; }

.get-app-visual { position: relative; display: grid; place-items: center; min-height: 620px; }
.phone { position: relative; width: 290px; height: 590px; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2C2552, #0D0A1C); box-shadow: 0 50px 90px -30px rgba(0,0,0,.8), inset 0 0 0 2px #3E3570; animation: float 8s ease-in-out infinite; }
.phone-notch { position: absolute; z-index: 2; left: 50%; top: 20px; translate: -50% 0; width: 92px; height: 26px; border-radius: 14px; background: #05040B; }
.app-ui { height: 100%; border-radius: 36px; overflow: hidden; background: #0A0A16; color: #F5F4FA; padding: 14px 16px 0; display: flex; flex-direction: column; gap: 12px; position: relative; font-size: 12px; }
.au-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px 6px; font-size: .78rem; }
.au-status span { display: flex; gap: 3px; align-items: flex-end; }
.au-status i { width: 4px; background: #F5F4FA; border-radius: 1px; }
.au-status i:nth-child(1) { height: 5px; } .au-status i:nth-child(2) { height: 8px; } .au-status i:nth-child(3) { height: 11px; }
.au-head { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.au-head small { display: block; color: #A6A5C4; font-size: .78rem; }
.au-head b { font-size: 1.45rem; letter-spacing: -0.02em; }
.au-bell { position: relative; width: 36px; height: 36px; border-radius: 12px; background: #15152A; border: 1px solid #2A2A46; display: grid; place-items: center; }
.au-bell em { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #E056A0; }
.au-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #15152A; border: 1px solid #2A2A46; color: #6E6D8F; font-size: .74rem; white-space: nowrap; overflow: hidden; }
.au-ai { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #A78BFA, #7C5CFC 55%, #6432D6); position: relative; overflow: hidden; }
.au-ai::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5s ease-in-out infinite 1s; }
.au-ai b { display: block; font-size: .98rem; }
.au-ai small { color: rgba(255,255,255,.85); font-size: .72rem; }
.au-ai span { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.au-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.au-actions div { display: grid; justify-items: center; gap: 6px; }
.au-actions span { width: 46px; height: 46px; border-radius: 15px; background: #15152A; border: 1px solid #2A2A46; display: grid; place-items: center; color: #A78BFA; }
.au-actions small { font-size: .62rem; color: #A6A5C4; text-align: center; line-height: 1.15; }
.au-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.au-row b { font-size: .9rem; }
.au-row small { color: #A78BFA; font-size: .72rem; }
.au-lawyers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.au-lawyers div { padding: 12px; border-radius: 16px; background: #15152A; border: 1px solid #2A2A46; display: grid; gap: 2px; min-width: 0; }
.au-av { width: 34px; height: 34px; border-radius: 11px; background: #2C2160; color: #C9BBFF; display: grid; place-items: center; font-weight: 700; font-size: .72rem; margin-bottom: 6px; }
.au-lawyers b { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-lawyers small { color: #A6A5C4; font-size: .64rem; }
.au-lawyers em { font-style: normal; color: #FBBF24; font-size: .66rem; font-weight: 600; margin-top: 2px; }
.au-nav { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: space-around; align-items: center; padding: 8px; border-radius: 22px; background: rgba(28, 28, 52, .92); border: 1px solid #2A2A46; color: #6E6D8F; }
.au-nav span { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 14px; }
.au-nav .on { background: rgba(124, 92, 252, .22); color: #C9BBFF; }
.au-nav small { font-size: .66rem; font-weight: 600; }

/* Bubbles hug the phone: positioned from the column's centre line, so they
   keep the same overlap with the phone at every screen width. */
.float-chip { --g-fill: rgba(22, 17, 44, .55); position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; color: #EDEAFB; font-size: .8rem; font-weight: 550; white-space: nowrap; animation: chip 7s ease-in-out infinite; z-index: 3; }
.float-chip svg { color: #B8A9FF; flex: none; width: 15px; height: 15px; }
.float-chip .dot { width: 7px; height: 7px; }
.float-chip.c1 { top: 104px; right: calc(50% + 122px); animation-delay: -1s; }
.float-chip.c2 { top: 47%; left: calc(50% + 124px); animation-delay: -3s; }
.float-chip.c3 { bottom: 118px; right: calc(50% + 122px); animation-delay: -5s; }
@keyframes chip { 50% { transform: translateY(-6px); } }
@media (max-width: 960px) { .get-app-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .get-app-visual { min-height: 560px; }
  .phone { width: 262px; height: 534px; }
  .float-chip { font-size: .74rem; padding: 7px 11px; }
  .float-chip.c1 { right: auto; left: 0; top: 70px; }
  .float-chip.c3 { right: auto; left: 0; bottom: 90px; }
  .float-chip.c2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; }
  .ticker-row { overflow-x: auto; }
}

/* ---------- Screen sizes ---------- */
/* Tablets and small laptops: the navigator card is narrower, so two columns of situations. */
@media (min-width: 901px) and (max-width: 1100px) { .situations { grid-template-columns: 1fr 1fr; } }
/* The app section needs room for the phone and its bubbles; stack it until there is. */
@media (max-width: 1100px) {
  .get-app-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .get-app-copy { display: flex; flex-direction: column; align-items: center; max-width: 620px; }
  .get-app-list { justify-items: start; text-align: left; }
  .badges { justify-content: center; }
  .get-app-visual { width: 100%; text-align: left; }
}
/* Short laptop screens (1366×768, 1280×720 and similar): keep the hero within the fold. */
@media (min-width: 901px) and (max-height: 820px) {
  .hero { padding-block: 28px 52px; }
  .hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
  .hero .lede { margin-top: 18px; font-size: 1.08rem; }
  .ask { margin-top: 24px; }
  .navi { padding: 20px; }
  .situations { margin: 14px 0 16px; }
  .path-ai { min-height: 5em; font-size: .98rem; }
}
/* Large monitors: a little more room and slightly larger type, scaled from the root. */
@media (min-width: 1680px) { :root { --wrap: 1360px; } html { font-size: 106.25%; } }
@media (min-width: 2200px) { :root { --wrap: 1480px; } html { font-size: 112.5%; } }

.lock-app { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--violet); background: var(--violet-soft); padding: 3px 9px; border-radius: 999px; flex: none; }

/* ---------- Live consultation dock (every page) ---------- */
.live-dock { position: fixed; z-index: 70; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(400px, calc(100vw - 32px)); }
.dock-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; color: #F4F2FC;
  background: rgba(22, 17, 44, .86); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 50px -24px rgba(0,0,0,.7);
  animation: rise .25s ease-out;
}
.dock-card.live { border-color: rgba(60, 203, 142, .35); }
.dock-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #3A2E78; color: #E4DCFF; font-weight: 700; font-size: .85rem; flex: none; }
.dock-av.pulse { animation: ring 1.8s infinite; }
.dock-text { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: grid; }
.dock-text b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-text span { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #B3ACD6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-text .dot { width: 7px; height: 7px; }
.dock-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.dock-actions .btn.quiet { background: rgba(255,255,255,.1); color: #F4F2FC; }
.dock-actions .btn.quiet:hover { background: rgba(255,255,255,.18); color: #fff; }
.dock-link { background: none; border: 0; color: #CBBEFF; font-weight: 600; font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; }

/* ---------- Pop-ups ---------- */
.pop-stack { position: fixed; z-index: 90; top: 84px; right: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.pop-card {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; border-radius: 20px; color: #F4F2FC;
  background: rgba(22, 17, 44, .9); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 54px -22px rgba(0,0,0,.75);
  animation: popin .28s cubic-bezier(.2, .8, .2, 1);
}
.pop-card.out { animation: popout .22s ease-in forwards; }
@keyframes popin { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes popout { to { opacity: 0; transform: translateX(16px); } }
.pop-av, .pop-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: #3A2E78; color: #E4DCFF; font-weight: 700; font-size: .82rem; }
.pop-card.ringing { border-color: rgba(60, 203, 142, .45); }
.pop-card.ringing .pop-av { background: #12945F; color: #fff; animation: ringGreen 1.4s infinite; }
@keyframes ringGreen { 0% { box-shadow: 0 0 0 0 rgba(60, 203, 142, .6); } 80% { box-shadow: 0 0 0 14px rgba(60, 203, 142, 0); } }
.pop-body { min-width: 0; }
.pop-body b { display: block; font-size: .95rem; line-height: 1.3; }
.pop-body p { font-size: .86rem; color: #C9C3E6; margin-top: 3px; word-wrap: break-word; }
.pop-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pop-actions .btn.quiet { background: rgba(255,255,255,.1); color: #F4F2FC; }
.pop-actions .btn.quiet:hover { background: rgba(255,255,255,.18); color: #fff; }
.pop-x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: #8F8AAE; display: grid; place-items: center; cursor: pointer; }
.pop-x:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Call screen extras ---------- */
.call-top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.call-min { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #F4F2FC; cursor: pointer; font-weight: 600; font-size: .88rem; }
.call-min:hover { background: rgba(255,255,255,.14); }
.call-title { display: grid; text-align: center; }
.call-title span, .call-meter span { font-size: .84rem; color: #B3ACD6; }
.call-meter { display: grid; text-align: right; }
.call-meter b { font-size: 1.4rem; font-weight: 600; }
.call-who p { color: #B3ACD6; }
.call-flags { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: flex; gap: 8px; z-index: 2; }
.call-flags span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 6, 24, .6); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; }
.call-low { margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(242, 181, 74, .14); color: #FFD891; font-size: .86rem; }
.call-low.urgent { background: rgba(217, 72, 72, .2); color: #FFB0B0; }
.call-low a { color: inherit; font-weight: 700; }
.call-mini {
  position: fixed; z-index: 75; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; color: #F4F2FC;
  background: rgba(22, 17, 44, .9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(60, 203, 142, .4); box-shadow: 0 22px 50px -22px rgba(0,0,0,.75);
}
.call-mini-text { display: grid; line-height: 1.2; }
.call-mini-text b { font-size: .9rem; }
.call-mini-text span { font-size: .8rem; color: #B3ACD6; }
@media (max-width: 560px) {
  .live-dock { right: 16px; bottom: 16px; }
  .pop-stack { top: 80px; right: 16px; }
  .call-mini { left: 16px; right: 16px; bottom: 16px; }
  .call-mini-text { flex: 1; }
  .call-min span { display: none; }
  .call-min { padding: 0 10px; }
  .dock-actions .dock-link { display: none; }
  /* With a call minimised, lift the dock above the call bar. */
}
body:has(.call-mini:not(.hide)) .live-dock { bottom: 88px; }
