/* ===================== AURORA THEME (loads after style.css) ===================== */
:root {
  --ease: cubic-bezier(.2, .9, .25, 1); --spring: cubic-bezier(.2, .9, .25, 1.18);
  --a1: #6d4aff; --a2: #c026d3; --a3: #06b6d4; --a4: #f59e0b; --a5: #10b981; --a6: #ef4444;
  --aurora: linear-gradient(120deg, #4f46e5, #7c3aed 30%, #c026d3 55%, #ec4899 75%, #06b6d4);
  --card-bg: var(--surface); --glow: rgba(109, 74, 255, .22);
}
[data-theme="dark"] { --card-bg: color-mix(in srgb, var(--surface) 88%, #0000); --glow: rgba(139, 123, 255, .28); }
.mut { color: var(--mute); } .bad { color: var(--red); } .up { color: #12a06a; } .down { color: var(--red); } .pad { padding: 8px 4px; }
.grad-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- living background ---- */
body { background: #0b0a2a; overflow: hidden; }
body::before, body::after { content: ""; position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .85; }
body::before { width: 55vmax; height: 55vmax; inset-block-start: -18vmax; inset-inline-start: -12vmax; background: radial-gradient(circle, #6d4aff, transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
body::after { width: 48vmax; height: 48vmax; inset-block-end: -16vmax; inset-inline-end: -10vmax; background: radial-gradient(circle, #06b6d4 0%, #c026d3 45%, transparent 70%); animation: drift2 26s ease-in-out infinite alternate; }
#app { position: relative; z-index: 1; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-16vmax, -10vmax) scale(1.15); } }
.shell { box-shadow: 0 30px 90px rgba(5, 3, 40, .55), 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---- sidebar with labels and a sliding indicator ---- */
@media (min-width: 761px) {
  .shell { grid-template-columns: 232px 1fr; }
  .rail { align-items: stretch; padding: 18px 12px 14px; gap: 4px; position: relative; overflow-y: auto; scrollbar-width: none; }
  .rail .brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 16px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
  .rail .brand .logo { width: 36px; height: 36px; margin: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out infinite; }
  .rail > button, .rail .navb { width: auto; height: 46px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding-inline: 14px; border-radius: 14px; position: relative; z-index: 1; transition: transform .25s var(--ease), color .2s; }
  .rail .tools { display: flex; gap: 6px; margin-block-start: 6px; }
  .rail .tools button { flex: 1; width: auto; height: 40px; border-radius: 12px; }
}
.rail .lbl { font-size: 14px; font-weight: 500; white-space: nowrap; }
.rail .navb:hover { transform: translateX(-3px); background: rgba(255, 255, 255, .07); } [dir="ltr"] .rail .navb:hover { transform: translateX(3px); }
.rail button[aria-current="page"] { background: transparent; box-shadow: none; color: #fff; }
.rail-ind { position: absolute; inset-inline: 12px; top: 0; height: 46px; border-radius: 14px; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 28px rgba(0, 0, 0, .3);
  transform: translateY(var(--y, 0)); transition: transform .5s var(--spring), opacity .3s; }
.rail-ind.on { opacity: 1; }
.rail-ind::after { content: ""; position: absolute; inset-block: 10px; inset-inline-start: -12px; width: 4px; border-radius: 4px; background: var(--aurora); box-shadow: 0 0 14px #c026d3; }
.rail svg { transition: transform .35s var(--spring); } .rail .navb:hover svg { transform: scale(1.18) rotate(-6deg); } .rail [aria-current="page"] svg { transform: scale(1.12); }
#nav-home svg { color: #a5b4fc; } #nav-comments svg { color: #f0abfc; } #nav-schedule svg { color: #86efac; } #nav-customers svg { color: #fcd34d; }
.rail .kbd { margin-inline-start: auto; font-size: 11px; opacity: .6; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 1px 6px; }
@media (min-width: 761px) and (max-width: 1279px) {
  .shell { grid-template-columns: 76px 1fr; } .rail .lbl, .rail .brand span, .rail .kbd { display: none; }
  .rail > button, .rail .navb { justify-content: center; padding-inline: 0; } .rail .brand { justify-content: center; padding-inline: 0; } .rail .tools { flex-direction: column; }
  .rail-ind { inset-inline: 10px; }
}
@media (max-width: 760px) {
  .rail .brand, .rail-ind, .rail .lbl, .rail .kbd { display: none; } .rail { overflow-x: auto; gap: 2px; justify-content: flex-start; } .rail .tools { display: contents; }
  .rail button { flex: none; } .rail button[aria-current="page"] { background: rgba(255, 255, 255, .2); }
}
@keyframes float { 50% { transform: translateY(-4px) rotate(-3deg); } }

/* ---- tab transitions: View Transitions where supported, stagger everywhere ---- */
#main { view-transition-name: main; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(main) { animation-duration: .5s; }
::view-transition-old(main) { animation: vtOut .26s ease both; }
::view-transition-new(main) { animation: vtIn .55s var(--ease) both; }
html[data-nav="up"]::view-transition-old(main) { animation-name: vtOutUp; } html[data-nav="up"]::view-transition-new(main) { animation-name: vtInUp; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-22px) scale(.985); filter: blur(8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(30px) scale(.985); filter: blur(10px); } }
@keyframes vtOutUp { to { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(8px); } }
@keyframes vtInUp { from { opacity: 0; transform: translateY(-30px) scale(.985); filter: blur(10px); } }
.stg-in { animation: stgIn .65s var(--ease) both; animation-delay: calc(var(--i, 0) * 65ms + 80ms); }
@keyframes stgIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.quiet .stg-in, .quiet .draw, .quiet .bars i, .quiet .heat i, .quiet .ring-fg, .quiet .ins { animation: none !important; }
.quiet .draw { stroke-dashoffset: 0; } .quiet .area-fill, .quiet .spark-area { opacity: 1; animation: none; }

/* ---- cards with a pointer spotlight ---- */
.card { position: relative; background: var(--card-bg); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--a1)) 22%, transparent), transparent 62%); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(40, 20, 120, .18), 0 0 0 1px color-mix(in srgb, var(--c, var(--a1)) 40%, transparent); } .card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; } .card::before, .kpi::after { z-index: 0; } .card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.page.home, .page.cm, .page.sc { display: grid; grid-auto-rows: max-content; gap: 18px; align-content: start; background: radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--a1) 12%, transparent), transparent 70%), radial-gradient(700px 380px at 5% 105%, color-mix(in srgb, var(--a3) 10%, transparent), transparent 70%), var(--bg); }
.page.home > *, .page.cm > *, .page.sc > * { width: 100%; max-width: 1340px; margin-inline: auto; }
h2.sec { margin: 4px 0 -4px; font-size: 17px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } @media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }

/* ---- hero ---- */
.hero.aurora { color: #fff; border: 0; padding: 26px 28px; display: grid; gap: 14px; background: linear-gradient(115deg, #4f46e5, #7c3aed, #c026d3, #ec4899, #06b6d4, #4f46e5); background-size: 300% 300%; animation: aurora 14s ease infinite; box-shadow: 0 22px 60px rgba(109, 74, 255, .35); }
.hero.aurora::before { opacity: .55; background: radial-gradient(500px circle at var(--mx, 80%) var(--my, 0%), rgba(255, 255, 255, .35), transparent 60%); }
.hero.aurora::after { content: ""; position: absolute; inset-inline-end: -60px; inset-block-start: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); animation: float 7s ease-in-out infinite; pointer-events: none; }
.hero.aurora:hover { transform: none; }
@keyframes aurora { 50% { background-position: 100% 50%; } }
.hero h1 { margin: 0; font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; } .hero .grad-text { background: none; color: #fff; }
.hero p { margin: 4px 0 0; opacity: .85; } .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.hero { grid-template-columns: 1fr auto; align-items: center; } .hero .ai-brief { grid-column: 1 / -1; } .hero-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.hero .seg { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); } .hero .seg button { color: #fff; } .hero .seg button[aria-pressed="true"] { background: #fff; color: #4f2fd1; }
.hero .btn { background: #fff !important; color: #4f2fd1 !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); display: inline-flex; align-items: center; gap: 6px; } .hero .btn.ghost { background: rgba(255, 255, 255, .16) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .3); }
.hero .btn svg, .quick svg, .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.spin { animation: spin .7s linear; } @keyframes spin { to { transform: rotate(360deg); } }
.ai-brief { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(8px); animation: stgIn .5s var(--ease) both; }
.ai-brief .txt { white-space: pre-line; margin-block-start: 6px; line-height: 1.8; } .ai-brief b { display: inline-flex; gap: 6px; align-items: center; } .ai-brief .bad { color: #ffd0d0; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.quick button { border: 0; color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; transition: transform .25s var(--spring), box-shadow .25s; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.quick button:hover { transform: translateY(-3px) scale(1.03); } .quick .q1 { background: linear-gradient(135deg, #10b981, #06b6d4); } .quick .q2 { background: linear-gradient(135deg, #ec4899, #8b5cf6); } .quick .q3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* ---- KPIs ---- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } @media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }
.kpi { text-align: start; padding: 18px 18px 14px; min-height: 148px; cursor: default; font: inherit; color: inherit; display: block; width: 100%; } button.kpi { cursor: pointer; }
.kpi::after { content: ""; position: absolute; inset-inline-end: -40px; inset-block-start: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 34%, transparent), transparent 68%); transition: transform .6s var(--ease); pointer-events: none; }
.kpi:hover::after { transform: scale(1.6); }
.kpi-top { display: flex; align-items: center; gap: 10px; } .kpi-l { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.kpi-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); transition: transform .4s var(--spring); } .kpi:hover .kpi-ic { transform: rotate(-8deg) scale(1.12); }
.kpi-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi-v { margin-block: 10px 2px; font-size: 36px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; font-variant-numeric: tabular-nums; } .kpi-sub { font-size: 12.5px; min-height: 18px; color: var(--ink-2); }
.kpi-viz { position: absolute; inset-inline-end: 12px; inset-block-end: 10px; width: 120px; display: flex; justify-content: flex-end; pointer-events: none; } .kpi-viz .spark { width: 120px; height: 40px; } .kpi-viz .ring { color: var(--ink); }
.kpi.pulse { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5), var(--shadow); animation: ping 2s infinite; } @keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0), var(--shadow); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), var(--shadow); } }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s .2s var(--ease) forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }
.area-fill, .spark-area { opacity: 0; animation: fadeIn .9s .7s forwards; } @keyframes fadeIn { to { opacity: 1; } }
.ring-fg { stroke-dasharray: var(--p) 100; animation: ringIn 1.3s var(--ease) both; } @keyframes ringIn { from { stroke-dasharray: 0 100; } }
.ring-t { font-size: 24px; font-weight: 700; fill: currentColor; }

/* ---- charts ---- */
.chart-card { padding-block-end: 8px; } .chart .legend { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 6px; }
.chart .legend button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; transition: all .2s; } .chart .legend button[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.chart .legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } .plot { position: relative; } .plot svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 5; } .chart .axis { fill: var(--mute); font-size: 11px; } .chart .cursor { stroke: var(--mute); stroke-dasharray: 3 4; }
.tip { position: absolute; top: 6px; background: color-mix(in srgb, var(--surface) 80%, #0000); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; box-shadow: var(--shadow); pointer-events: none; min-width: 120px; direction: ltr; text-align: start; }
.tip b { display: block; margin-block-end: 4px; } .tip span { display: flex; align-items: center; gap: 6px; } .tip i { width: 8px; height: 8px; border-radius: 50%; } .tip em { margin-inline-start: auto; font-style: normal; font-weight: 600; padding-inline-start: 14px; }

/* ---- channels ---- */
.chgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.chcard { border-block-start: 4px solid var(--c); } .chcard.idle { opacity: .72; }
.chcard header { display: flex; align-items: center; gap: 10px; margin-block-end: 12px; } .chcard header b { font-size: 16px; } .chcard .chb { position: static; width: 34px; height: 34px; border: 0; } .chcard .chb svg { width: 19px; height: 19px; }
.chip-st { margin-inline-start: auto; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; font-weight: 600; background: var(--surface-2); color: var(--mute); } .chip-st.on { background: #dcfce7; color: #14783f; } .chip-st.off { background: #fee2e2; color: #b42318; }
[data-theme="dark"] .chip-st.on { background: #0f3a2c; color: #8ff0c4; } [data-theme="dark"] .chip-st.off { background: #3a1616; color: #ffb4a8; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; } .trio em { display: block; font-style: normal; font-size: 26px; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; } .trio small { color: var(--ink-2); font-size: 12px; }
.chviz { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-block-start: 14px; } .chviz .bars { flex: 1; } .chviz .ring { color: var(--ink); flex: none; } .chviz .ring-t { font-size: 20px; }
.bars { display: flex; align-items: flex-end; gap: 3px; } .bars i { flex: 1; border-radius: 4px 4px 2px 2px; opacity: .85; transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 35ms + 200ms); transition: opacity .2s, transform .2s; } .bars i:hover { opacity: 1; transform: scaleY(1.08); } @keyframes grow { from { transform: scaleY(0); } }
.heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; } .heat i { height: 44px; border-radius: 7px; position: relative; background: color-mix(in srgb, var(--c) calc(var(--a) * 100%), var(--surface-2)); animation: pop .5s var(--spring) both; animation-delay: calc(var(--i) * 22ms + 150ms); transition: transform .2s; } .heat i:hover { transform: scale(1.25); z-index: 2; }
.heat i.top { box-shadow: 0 0 0 2px var(--c), 0 6px 16px color-mix(in srgb, var(--c) 50%, transparent); } .heat b { position: absolute; inset-block-end: -18px; inset-inline: 0; text-align: center; font-size: 10px; color: var(--mute); font-weight: 400; } .heat { padding-block-end: 20px; } @keyframes pop { from { transform: scale(0); opacity: 0; } }

/* ---- insights + live feed ---- */
.ins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .ins { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; animation: slideIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); } .ins p { margin: 0; font-size: 14px; }
.ins.good { background: color-mix(in srgb, var(--a5) 14%, transparent); } .ins.warn { background: color-mix(in srgb, var(--a4) 20%, transparent); } .ins.info { background: color-mix(in srgb, var(--a1) 11%, transparent); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } } [dir="ltr"] .ins { animation-name: slideInL; } @keyframes slideInL { from { opacity: 0; transform: translateX(-24px); } }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; margin-inline-start: 6px; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live 1.6s infinite; } @keyframes live { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.feed { display: grid; gap: 4px; max-height: 360px; overflow-y: auto; } .feed-row { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; text-align: start; border: 0; background: transparent; padding: 8px; border-radius: 12px; transition: background .2s, transform .2s; } .feed-row:hover { background: var(--surface-2); transform: translateX(-3px); }
.feed-row .chb { position: static; width: 32px; height: 32px; border: 0; } .feed-row .chb svg { width: 18px; height: 18px; } .feed-row b { font-size: 14px; } .feed-row p { margin: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .feed-row > div { min-width: 0; } .feed-row time { font-size: 12px; color: var(--mute); }
.who { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; } .who.customer { background: #e0e7ff; color: #3730a3; } .who.bot { background: #cffafe; color: #0e7490; } .who.agent { background: #fef3c7; color: #92400e; }
[data-theme="dark"] .who.customer { background: #2a2a66; color: #c7d2fe; } [data-theme="dark"] .who.bot { background: #0e3a44; color: #a5f3fc; } [data-theme="dark"] .who.agent { background: #4a3510; color: #fde68a; }

/* ---- loaders ---- */
.skel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; } .skel-grid.one { grid-template-columns: 1fr; } .skel { display: block; height: 130px; border-radius: 22px; background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 70%); background-size: 250% 100%; animation: shimmer 1.3s linear infinite; } @keyframes shimmer { to { background-position: -250% 0; } }
.dots { display: inline-flex; gap: 4px; align-items: center; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: bounce 1s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; } @keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ---- Instagram comments ---- */
.cm-grid { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: 16px; align-items: start; } @media (max-width: 900px) { .cm-grid { grid-template-columns: 1fr; } }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .mtile { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 14px; overflow: hidden; padding: 0; background: var(--aurora); transition: transform .3s var(--spring), border-color .2s, box-shadow .3s; } .mtile:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.mtile.on { border-color: var(--a2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a2) 35%, transparent); } .mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mtile .mc, .mtile .md { position: absolute; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); padding: 2px 7px; border-radius: 8px; } .mtile .mc { inset-block-end: 5px; inset-inline-start: 5px; } .mtile .md { inset-block-start: 5px; inset-inline-end: 5px; }
.cm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-block-end: 12px; } .cm-head h2 { margin: 0; } .cm-tools { display: flex; gap: 8px; align-items: center; }
.cm-list { display: grid; gap: 10px; } .cm-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); animation: stgIn .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); transition: transform .25s var(--ease), border-color .25s; } .cm-item:hover { transform: translateY(-2px); border-color: var(--a2); } .cm-item.hid { opacity: .55; }
.cm-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; } .cm-body p { margin: 4px 0; word-break: break-word; } .cm-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; } .cm-meta time { color: var(--mute); font-size: 12px; }
.st { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; } .st.ok { background: #dcfce7; color: #14783f; } .st.need { background: #fef3c7; color: #92400e; } .st.mute { background: var(--line); color: var(--ink-2); }
[data-theme="dark"] .st.ok { background: #0f3a2c; color: #8ff0c4; } [data-theme="dark"] .st.need { background: #4a3510; color: #fde68a; }
.cm-rep { display: flex; gap: 8px; margin: 8px 0 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--a2); } .cm-rep .cm-av { width: 26px; height: 26px; font-size: 12px; } .cm-rep p { margin: 0; font-size: 13.5px; } .cm-rep b { font-size: 12.5px; }
.cm-act { display: flex; gap: 6px; flex-wrap: wrap; margin-block-start: 8px; } .cm-act button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; transition: all .2s; } .cm-act button:hover { background: var(--aurora); color: #fff; border-color: transparent; transform: translateY(-2px); } .cm-act svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cm-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-block-start: 8px; align-items: end; animation: stgIn .35s var(--ease) both; } .cm-box textarea, .sc textarea, .sc input[type=text], .sc input:not([type]), .sc input[type=datetime-local], .cp-in input, .pal-in input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); resize: vertical; transition: border-color .2s, box-shadow .2s; } .cm-box textarea:focus, .sc textarea:focus, .sc input:focus { outline: 0; border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 20%, transparent); }
.empty { text-align: center; padding: 34px 20px; display: grid; gap: 8px; justify-items: center; } .empty .big { font-size: 40px; animation: float 4s ease-in-out infinite; } .empty h3 { margin: 0; }

/* ---- scheduler ---- */
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 18px; align-items: start; } .sc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 1000px) { .sc-grid, .sc-grid.two { grid-template-columns: 1fr; } }
.lbl { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.plat { display: flex; gap: 10px; flex-wrap: wrap; } .plat button { position: relative; display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 600; transition: all .3s var(--spring); } .plat button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--c); }
.plat button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 30%, transparent); } .plat button i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--spring); } .plat button.on i { transform: scale(1); } .plat i svg { width: 12px; height: 12px; color: #fff; stroke-width: 3; }
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 18px; text-align: center; cursor: pointer; background: var(--surface-2); transition: all .25s var(--ease); display: grid; place-items: center; min-height: 130px; } .drop:hover, .drop.over { border-color: var(--a2); background: color-mix(in srgb, var(--a2) 8%, var(--surface-2)); transform: scale(1.01); } .drop .big svg { width: 38px; height: 38px; fill: none; stroke: var(--a2); stroke-width: 1.5; } .drop small { display: block; color: var(--mute); margin-block-start: 2px; }
.thumb { position: relative; display: inline-block; } .thumb img { max-height: 190px; max-width: 100%; border-radius: 14px; display: block; animation: pop .5s var(--spring); } .thumb button { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; } .thumb button svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; }
.topic { display: flex; gap: 8px; } .topic .btn { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; } .when { display: grid; gap: 10px; } .presets { display: flex; gap: 6px; flex-wrap: wrap; } .presets button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 5px 13px; font-size: 13px; transition: all .2s; } .presets button:hover { background: var(--aurora); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn.big { width: 100%; height: 52px; margin-block-start: 18px; font-size: 16px; font-weight: 700; border-radius: 16px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; background: var(--aurora) !important; background-size: 200% 100% !important; animation: aurora 6s ease infinite; position: relative; overflow: hidden; } .btn.big:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(192, 38, 211, .4); } .btn.big.loading::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--amber); border-radius: 16px; padding: 12px 16px; } .banner span { flex: 1; min-width: 200px; }
.phone { max-width: 340px; margin: 14px auto 0; border-radius: 22px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .15); animation: pop .5s var(--spring); } .phone header { display: flex; gap: 10px; align-items: center; padding: 12px; } .phone header small { display: block; color: var(--mute); font-size: 11.5px; } .phone p { margin: 0; padding: 4px 14px 12px; font-size: 14px; word-break: break-word; }
.pv-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; } .pv-av.ph { display: grid; place-items: center; background: var(--aurora); color: #fff; font-weight: 700; } .phone.ig .pv-av { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px #e1306c; }
.pv-img { width: 100%; display: block; object-fit: cover; background: var(--line); } .pv-img.facebook { aspect-ratio: 16 / 10; } .pv-img.instagram { aspect-ratio: 1; } .pv-img.none { display: grid; place-items: center; color: var(--mute); } .pv-img.none svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pv-ic { display: flex; gap: 18px; padding: 10px 14px 4px; font-size: 18px; } .sc-prev .seg { margin-block-end: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; } .cal-grid .cell { min-height: 52px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 5px 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font: inherit; color: inherit; transition: transform .2s var(--spring), background .2s; } .cal-grid .cell:hover { transform: scale(1.1); background: var(--teal-soft); z-index: 1; } .cal-grid .cell.blank { border: 0; background: transparent; pointer-events: none; }
.dots-r { display: flex; gap: 3px; min-height: 8px; } .pd { width: 8px; height: 8px; border-radius: 50%; display: block; animation: pop .4s var(--spring) both; } .pd.published { box-shadow: 0 0 0 2px #22c55e55; } .pd.failed { outline: 2px solid var(--red); } .pd.pending { opacity: .85; }
.chipday { cursor: pointer; font-size: 12px; background: var(--aurora); color: #fff; padding: 2px 10px; border-radius: 999px; margin-inline-start: 8px; font-weight: 500; }
.posts { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px; } .post { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); animation: stgIn .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); transition: transform .25s var(--ease), border-color .2s; } .post:hover { transform: translateY(-2px); border-color: var(--a1); }
.post > img, .post .noimg { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; background: var(--line); display: grid; place-items: center; } .noimg svg { width: 26px; height: 26px; fill: none; stroke: var(--mute); stroke-width: 1.6; } .pb { min-width: 0; } .pb p { margin: 4px 0; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; } .pt time { color: var(--mute); } .pp { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; } .pp.facebook { background: #1877f2; } .pp.instagram { background: linear-gradient(45deg, #f9a825, #e1306c, #833ab4); } .pp svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; } .pp.facebook svg { fill: #fff; stroke: none; }
.pst { font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line); } .pst.published { background: #dcfce7; color: #14783f; } .pst.failed { background: #fee2e2; color: #b42318; } .pst.partial { background: #fef3c7; color: #92400e; } .pst.pending { background: #e0e7ff; color: #3730a3; } .pst.publishing { background: #cffafe; color: #0e7490; animation: pulse 1.2s infinite; }
.pa { display: flex; gap: 6px; flex-wrap: wrap; } .pa button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 11px; font-size: 12px; display: inline-flex; gap: 5px; align-items: center; transition: all .2s; } .pa button:hover { background: var(--aurora); color: #fff; border-color: transparent; } .pa .dng:hover { background: var(--red); } .pa svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- command palette + AI copilot ---- */
.pal { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 6, 30, .55); backdrop-filter: blur(8px); display: grid; place-items: start center; padding-block-start: 13vh; opacity: 0; transition: opacity .18s; } .pal.in { opacity: 1; }
.pal-box { width: min(620px, 92vw); padding: 10px; transform: translateY(-14px) scale(.97); transition: transform .3s var(--spring); } .pal.in .pal-box { transform: none; } .pal-box:hover { transform: none; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 6px 10px 10px; } .pal-in svg { width: 20px; height: 20px; fill: none; stroke: var(--a1); stroke-width: 2; stroke-linecap: round; flex: none; } .pal-in input { border: 0; background: transparent; box-shadow: none !important; font-size: 16px; } .pal-in input:focus { outline: 0; }
kbd { font: 11px/1 var(--font); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; color: var(--mute); background: var(--surface-2); }
.pal-list { max-height: 52vh; overflow-y: auto; } .pal-list h6 { margin: 10px 10px 4px; font-size: 11px; letter-spacing: .6px; color: var(--mute); text-transform: uppercase; }
.pal-i { display: flex; gap: 12px; align-items: center; width: 100%; text-align: start; border: 0; background: transparent; padding: 9px 10px; border-radius: 12px; transition: background .12s; } .pal-i[aria-selected="true"] { background: var(--aurora); color: #fff; } .pal-i small { display: block; opacity: .7; font-size: 12px; } .pal-i .pl { display: grid; min-width: 0; }
.pic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 14%, transparent); color: var(--a1); } .pal-i[aria-selected="true"] .pic { background: rgba(255, 255, 255, .22); color: #fff; } .pic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .pi .chb { position: static; width: 32px; height: 32px; border: 0; }
.cp-fab { position: fixed; z-index: 900; inset-block-end: 24px; inset-inline-end: 24px; width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; background: var(--aurora); background-size: 200% 200%; animation: aurora 6s ease infinite, glow 2.8s ease-in-out infinite; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(192, 38, 211, .5); transition: transform .3s var(--spring); } .cp-fab:hover { transform: scale(1.12) rotate(8deg); } .cp-fab svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
@keyframes glow { 50% { box-shadow: 0 12px 44px rgba(6, 182, 212, .65); } }
.cp-panel { position: fixed; z-index: 901; inset-block-end: 94px; inset-inline-end: 24px; width: min(390px, calc(100vw - 32px)); height: min(540px, 70vh); display: flex; flex-direction: column; padding: 0; opacity: 0; transform: translateY(24px) scale(.94); transform-origin: bottom right; transition: all .35s var(--spring); } .cp-panel.in { opacity: 1; transform: none; } .cp-panel:hover { transform: none; }
.cp-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #fff; background: var(--aurora); } .cp-panel header b { display: flex; gap: 8px; align-items: center; } .cp-panel header svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.9; } .cp-panel header button { border: 0; background: rgba(255, 255, 255, .2); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.cp-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; } .cp-m { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.7; white-space: pre-line; animation: stgIn .35s var(--ease) both; } .cp-m.ai { background: var(--surface-2); border: 1px solid var(--line); border-end-start-radius: 4px; } .cp-m.me { background: var(--aurora); color: #fff; justify-self: end; border-end-end-radius: 4px; } .cp-m small { display: block; opacity: .7; margin-block-start: 4px; }
.cp-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; } .cp-chips button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; transition: all .2s; } .cp-chips button:hover { background: var(--aurora); color: #fff; border-color: transparent; transform: translateY(-2px); }
.cp-in { display: flex; gap: 8px; padding: 10px 12px 14px; border-block-start: 1px solid var(--line); } .cp-in button { width: 44px; border: 0; border-radius: 12px; background: var(--aurora); color: #fff; display: grid; place-items: center; } .cp-in svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.confetti { position: fixed; z-index: 2000; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; animation: conf 1s var(--ease) forwards; } @keyframes conf { to { transform: translate(var(--dx), calc(var(--dy) + 90px)) rotate(var(--r)); opacity: 0; } }

/* ---- life for the existing pages (chats, lists, forms) ---- */
.row { transition: background .2s, transform .25s var(--ease), box-shadow .25s; } .row:hover { transform: translateX(-4px); box-shadow: 0 6px 18px rgba(60, 30, 140, .1); } [dir="ltr"] .row:hover { transform: translateX(4px); }
.avwrap .avatar { transition: transform .3s var(--spring); } .row:hover .avatar { transform: scale(1.08) rotate(-4deg); } .chb { transition: transform .3s var(--spring); } .row:hover .chb { transform: scale(1.18); }
.msg:last-child { animation: msgIn .4s var(--spring) both; } @keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.btn:not(.ghost) { transition: transform .2s var(--spring), box-shadow .25s, filter .2s; } .btn:not(.ghost):hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(109, 74, 255, .45); } .btn:active { transform: scale(.97); }
.panel, .trow, .cal, .sheet-wrap { transition: transform .3s var(--ease), box-shadow .3s; } .panel:hover { box-shadow: 0 14px 38px rgba(60, 30, 140, .14); }
.tabs button, .seg button { transition: background .25s, color .25s, transform .2s; } .tabs button:active, .seg button:active { transform: scale(.94); }
.seg button[aria-pressed="true"] { background: var(--grad2); color: #fff; box-shadow: 0 4px 14px rgba(109, 74, 255, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--a1) 35%, transparent); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background-color: var(--a1); }
::selection { background: color-mix(in srgb, var(--a2) 40%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; } .area-fill, .spark-area { opacity: 1; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- comments: platform switch, post composer, text-only tiles ---- */
.cm-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plat-sw { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plat-sw button { display: inline-flex; gap: 8px; align-items: center; border: 0; background: transparent; padding: 8px 16px; border-radius: 12px; font-weight: 600; color: var(--ink-2); transition: all .3s var(--spring); }
.plat-sw button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--c); }
.plat-sw button[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-1px); } .plat-sw button[aria-pressed="true"] svg { color: #fff; }
.cm-new { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-block-end: 14px; } .cm-new textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); resize: vertical; min-height: 42px; } .cm-new textarea:focus { outline: 0; border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 20%, transparent); } .cm-new .btn { display: inline-flex; gap: 6px; align-items: center; }
.mtile .mt { position: absolute; inset: 0; padding: 8px 8px 28px; font-size: 11.5px; line-height: 1.35; color: #fff; text-align: start; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; }

/* ---- alert sound gallery ---- */
.snd-wrap.off .snd-grid, .snd-wrap.off .snd-stage { opacity: .45; filter: saturate(.4); } .snd-wrap { transition: opacity .3s; }
.snd-stage { position: relative; height: 128px; border-radius: 20px; overflow: hidden; margin-block-end: 14px; color: #fff; background: radial-gradient(600px 160px at 20% 0%, #3b2a9e, transparent 70%), linear-gradient(135deg, #14123a, #1f1458 55%, #0e2b4a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 34px rgba(40, 20, 120, .25); }
.snd-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.snd-now { position: absolute; inset-inline-start: 18px; inset-block-start: 14px; display: grid; gap: 2px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); } .snd-now small { opacity: .75; font-size: 12px; } .snd-now b { font-size: 22px; letter-spacing: .2px; }
.snd-vol { position: absolute; inset-inline-end: 16px; inset-block-end: 12px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); } .snd-vol output { min-width: 26px; text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; }
.snd-vol input { -webkit-appearance: none; appearance: none; width: 130px; height: 6px; border-radius: 6px; outline: 0; background: linear-gradient(90deg, #67e8f9, #c026d3 var(--p, 80%), rgba(255, 255, 255, .25) var(--p, 80%)); cursor: pointer; }
.snd-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); transition: transform .2s var(--spring); } .snd-vol input:active::-webkit-slider-thumb { transform: scale(1.3); } .snd-vol input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.snd-vol input:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
@media (max-width: 560px) { .snd-stage { height: 150px; } .snd-vol { inset-inline-start: 16px; inset-inline-end: 16px; justify-content: space-between; } .snd-vol input { flex: 1; } }
.snd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.snd { position: relative; text-align: start; display: grid; gap: 3px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; overflow: hidden; animation: stgIn .55s var(--ease) both; animation-delay: calc(var(--n) * 40ms + 100ms); transition: transform .3s var(--spring), border-color .25s, box-shadow .3s, background .3s; }
.snd::before { content: ""; position: absolute; inset-inline-end: -30px; inset-block-start: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 40%, transparent), transparent 70%); opacity: 0; transition: opacity .3s, transform .5s var(--ease); }
.snd:hover { transform: translateY(-4px) scale(1.02); border-color: var(--c1); box-shadow: 0 16px 34px color-mix(in srgb, var(--c1) 32%, transparent); } .snd:hover::before { opacity: 1; transform: scale(1.5); } .snd:active { transform: scale(.96); }
.snd:focus-visible { outline: 3px solid color-mix(in srgb, var(--c1) 60%, transparent); outline-offset: 2px; }
.snd[aria-checked="true"] { border-color: var(--c1); background: linear-gradient(145deg, color-mix(in srgb, var(--c1) 16%, var(--surface-2)), color-mix(in srgb, var(--c2) 12%, var(--surface-2))); box-shadow: 0 10px 28px color-mix(in srgb, var(--c1) 28%, transparent); } .snd[aria-checked="true"]::before { opacity: 1; }
.snd b { font-size: 15px; margin-block-start: 8px; } .snd small { color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.snd .ck { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); transform: scale(0) rotate(-90deg); transition: transform .4s var(--spring); } .snd[aria-checked="true"] .ck { transform: none; } .snd .ck svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.orb { position: relative; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 18px color-mix(in srgb, var(--c1) 45%, transparent); transition: transform .4s var(--spring); } .snd:hover .orb { transform: rotate(-8deg) scale(1.08); }
.orb i { width: 4px; border-radius: 3px; background: #fff; opacity: .95; height: 40%; } .orb i:nth-child(2) { height: 70%; } .orb i:nth-child(3) { height: 52%; } .orb i:nth-child(4) { height: 82%; }
.snd.playing .orb { animation: orbPulse .9s ease-in-out infinite; } .snd.playing .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c1); animation: ripple 1s ease-out infinite; }
.snd.playing .orb i { animation: eq .55s ease-in-out infinite alternate; } .snd.playing .orb i:nth-child(2) { animation-delay: -.2s; } .snd.playing .orb i:nth-child(3) { animation-delay: -.38s; } .snd.playing .orb i:nth-child(4) { animation-delay: -.1s; }
@keyframes eq { from { height: 22%; } to { height: 92%; } } @keyframes orbPulse { 50% { transform: scale(1.1); } } @keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* 6 KPI cards (plans without Facebook / Instagram followers): 3 per row on wide screens */
@media (min-width: 1101px) { .kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
