/* Erevenue Autopilot – štýl Apple ako onboarding Autopilota (onboardingFlow.js). */
:root {
    --ap-bg: #f5f5f7;
    --ap-card: #ffffff;
    --ap-text: #1d1d1f;
    --ap-text-2: #6e6e73;
    --ap-text-3: #86868b;
    --ap-line: rgba(0, 0, 0, .08);
    --ap-blue: #0071e3;
    --ap-blue-hover: #0077ed;
    --ap-green: #248a3d;
    --ap-red: #d70015;
    --ap-pill: 980px;
    --ap-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body { background: var(--ap-bg); }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ap-text);
    overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

/* --- základ -------------------------------------------------------------- */
.ap-splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.ap-spinner { width: 28px; height: 28px; border-radius: 99px; border: 3px solid #d2d2d7; border-top-color: var(--ap-text); animation: apSpin 1s linear infinite; display: inline-block; }
.ap-spinner.sm { width: 16px; height: 16px; border-width: 2px; border-top-color: currentColor; border-color: currentColor; border-top-color: transparent; }
.ap-h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em; }
.ap-h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.ap-kicker { font-size: 15px; font-weight: 600; color: var(--ap-text-3); }
.ap-lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.45; color: var(--ap-text-2); }
.ap-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--ap-pill); padding: 12px 24px; font-size: 17px; background: var(--ap-blue); color: #fff; border: 0; transition: background .2s, transform .1s; }
.ap-pill:hover { background: var(--ap-blue-hover); }
.ap-pill:active { transform: scale(.98); }
.ap-pill:disabled { background: #d2d2d7; }
.ap-pill.secondary { background: #e8e8ed; color: var(--ap-text); }
.ap-pill.secondary:hover { background: #dedee3; }
.ap-pill.small { padding: 8px 16px; font-size: 15px; }
.ap-link { color: #0066cc; font-size: 15px; background: none; border: 0; padding: 0; }
.ap-link:hover { text-decoration: underline; }
.ap-card { background: var(--ap-card); border-radius: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 14px 40px rgba(0,0,0,.05); }
.ap-field { width: 100%; border-radius: 14px; background: #fff; border: 1px solid #d2d2d7; padding: 14px 16px; font-size: 17px; outline: none; transition: border .15s, box-shadow .15s; }
.ap-field:focus { border-color: var(--ap-blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.ap-screen { animation: apRise .45s cubic-bezier(.2,.8,.2,1) both; }
.ap-muted { color: var(--ap-text-2); }

/* --- hlavička a záložky -------------------------------------------------- */
.ap-top { position: sticky; top: 0; z-index: 45; background: rgba(245,245,247,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--ap-line); }
.ap-top-inner { max-width: 1040px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; min-width: 0; }
.ap-brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ap-text); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ap-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--ap-pill); background: rgba(118,118,128,.12); }
.ap-seg button { border: 0; background: transparent; border-radius: var(--ap-pill); padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--ap-text); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ap-seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ap-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ap-tabbar { display: none; }
@media (max-width: 720px) {
    .ap-top .ap-seg { display: none; }
    .ap-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 8px calc(6px + var(--ap-safe-bottom)); background: rgba(250,250,252,.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--ap-line); }
    .ap-tabbar button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 11px; font-weight: 500; color: var(--ap-text-3); position: relative; }
    .ap-tabbar button.on { color: var(--ap-blue); }
    .ap-tabbar .ap-badge { position: absolute; top: 0; left: calc(50% + 6px); }
}
.ap-avatar { width: 32px; height: 32px; border-radius: 99px; background: #e8e8ed; border: 0; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ap-menu { position: absolute; right: 16px; top: 52px; min-width: 220px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 12px 40px rgba(0,0,0,.14); }
.ap-menu a, .ap-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; background: none; border: 0; text-align: left; color: var(--ap-text); text-decoration: none; }
.ap-menu a:hover, .ap-menu button:hover { background: #f2f2f4; }
.ap-main { max-width: 1040px; margin: 0 auto; padding: 20px 16px calc(110px + var(--ap-safe-bottom)); }


/* --- hlavička so stavom (návrh 2) ---------------------------------------- */
a.ap-brand { color: inherit; text-decoration: none; }
.ap-biz-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #f2e6dc, #dcc2b0); color: #5a3a28; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .02em; }
.ap-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ap-text-2); line-height: 1.2; border: 0; background: none; padding: 2px 0; font-family: inherit; cursor: pointer; }
.ap-status:hover { color: var(--ap-text); }
.ap-status-chev { width: 6px; height: 9px; opacity: .55; }
.ap-status i { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; background: #8e8e93; }
.ap-status i.green { background: #30d158; animation: apPulse 2s ease-in-out infinite; }
.ap-status i.orange { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255,159,10,.2); }
.ap-status i.red { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255,59,48,.18); }
.ap-fix { border-top: 1px solid var(--ap-line); }
.ap-fix-inner { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.ap-fix.orange { background: #fff4e5; color: #8a4b00; }
.ap-fix.red { background: #ffebea; color: #a1000f; }
.ap-fix.gray, .ap-fix.green { background: #f2f2f4; color: var(--ap-text-2); }
.ap-fix-btn { flex-shrink: 0; border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
/* Späť je len na podobrazovkách (Kredit, Správy) – tie majú šírku Prehľadu (640 px) v strede, späť zarovnané s nimi. */
.ap-back { max-width: 672px; margin: 0 auto; padding: 12px 12px 0; }
.ap-back a { display: inline-flex; align-items: center; gap: 2px; color: var(--ap-blue); font-size: 17px; text-decoration: none; }

/* --- hlavná obrazovka ---------------------------------------------------- */
.ap-home { max-width: 640px; margin: 0 auto; }
.ap-callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(0,113,227,.18), 0 10px 30px rgba(0,113,227,.08); color: inherit; text-decoration: none; }
.ap-decide-banner { margin-bottom: 14px; }
.ap-thumbs { display: flex; flex-shrink: 0; padding-left: 4px; }
.ap-thumb { width: 30px; height: 46px; border-radius: 7px; overflow: hidden; background: #101010; border: 2px solid #fff; margin-left: -12px; box-shadow: 0 2px 6px rgba(0,0,0,.18); transform-origin: 50% 100%; animation: apFan .8s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.25s + var(--i, 0) * 90ms); }
.ap-thumb:first-child { margin-left: 0; }
.ap-thumb:nth-child(1) { --rot: -9deg; } .ap-thumb:nth-child(2) { --rot: 0deg; z-index: 1; } .ap-thumb:nth-child(3) { --rot: 9deg; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-thumb-icon { width: 44px; height: 44px; border-radius: 14px; background: #e8f0fe; color: #0071e3; display: flex; align-items: center; justify-content: center; }
.ap-decide-banner { position: relative; overflow: hidden; }
.ap-decide-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(0,113,227,.09) 50%, transparent 65%); transform: translateX(-100%); animation: apSheen 1.6s ease .9s 1 both; pointer-events: none; }
.ap-nudge { animation: apNudge 2.4s ease-in-out 1.6s 2; }
.ap-hero { padding: 18px 20px 18px; }
.ap-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; margin-bottom: 2px; }
.ap-period { display: inline-flex; padding: 2px; border-radius: 99px; background: rgba(118,118,128,.12); }
.ap-period button { border: 0; background: transparent; border-radius: 99px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ap-text-2); display: inline-flex; align-items: center; transition: background .2s, color .2s; }
.ap-period button.on { background: #fff; color: var(--ap-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ap-loading .ap-stats-body { opacity: .45; filter: blur(1.5px); transition: opacity .25s, filter .25s; }
.ap-loading { position: relative; overflow: hidden; }
.ap-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); animation: apSheenLoop 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes apSheenLoop { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ap-mini-seg { display: inline-flex; padding: 2px; border-radius: 99px; background: rgba(118,118,128,.12); flex-shrink: 0; }
.ap-mini-seg button { width: 30px; height: 24px; border: 0; border-radius: 99px; background: transparent; color: var(--ap-text-2); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.ap-mini-seg button.on { background: #fff; color: var(--ap-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ap-hero-label { font-size: 14px; color: var(--ap-text-2); font-weight: 500; }
.ap-hero-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.ap-hero-number { font-size: clamp(48px, 12vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; font-variant-numeric: tabular-nums; }
.ap-hero-note { margin-top: 10px; font-size: 15px; color: var(--ap-text-2); }
.ap-hero-note b { font-weight: 600; color: var(--ap-text); font-variant-numeric: tabular-nums; }
.ap-delta { font-size: 13px; font-weight: 600; color: var(--ap-text-2); white-space: nowrap; }
.ap-delta.up { color: var(--ap-green); }
.ap-delta.down { color: var(--ap-red); }
.ap-spark { display: block; width: 100%; height: 80px; margin-top: 14px; overflow: visible; }
.ap-spark.sm { height: 34px; margin-top: 8px; }
.ap-spark-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ap-text-3); margin-top: 4px; }
.ap-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ap-tile { border-radius: 16px; background: #f7f7f9; padding: 12px 13px 10px; min-width: 0; }
.ap-tile-title { font-size: 12px; color: var(--ap-text-2); font-weight: 500; text-decoration: underline dotted #c7c7cc; text-underline-offset: 3px; }
.ap-tile-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 3px; }
.ap-tile-value { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ap-tile-note { font-size: 12px; color: var(--ap-text-3); margin-top: 10px; }
.ap-tile-sub { margin: 1px 0 0; font-size: 12px; color: var(--ap-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.ap-section-head h2 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.ap-credit { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04); color: inherit; text-decoration: none; transition: transform .2s; }
.ap-credit:active, .ap-callout:active { transform: scale(.985); }
.ap-credit-icon { width: 40px; height: 40px; border-radius: 12px; background: #e3f9e8; color: var(--ap-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ap-credit-icon.warn { background: #fff4e5; color: #b25000; }
.ap-credit-icon.bad { background: #ffeceb; color: #c4161c; }
/* Kredit ako krúžok Apple Watch (dokreslí sa pri načítaní) */
.ap-ring { position: relative; width: 58px; height: 58px; flex: none; color: #30d158; }
.ap-ring.warn { color: #ff9f0a; }
.ap-ring.bad { color: #ff3b30; }
.ap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 7; }
.ap-ring .bg { stroke: currentColor; opacity: .16; }
.ap-ring .fg { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: var(--off, 157); animation: apRing 1.4s cubic-bezier(.16,1,.3,1) .45s both; }
@keyframes apRing { from { stroke-dashoffset: 157; } }
.ap-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--ap-text); }
.ap-ring > span b { font-size: 17px; font-weight: 700; }
.ap-ring > span small { font-size: 9px; font-weight: 600; color: var(--ap-text-2); margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .ap-ring .fg { animation: none; } }
.ap-credit-bar { display: block; height: 6px; border-radius: 99px; background: #e8e8ed; overflow: hidden; margin-top: 8px; }
.ap-credit-bar i { display: block; height: 100%; width: var(--fill, 0%); background: #30d158; border-radius: 99px; transform-origin: left; animation: apGrowX 1.1s cubic-bezier(.16,1,.3,1) .55s both; }
.ap-credit-bar.warn i { background: #ff9f0a; }
.ap-credit-bar.bad i { background: #ff3b30; }

/* --- animácie hlavnej obrazovky (Apple: vynorenie s rozmazaním, kreslenie kriviek) --- */
.ap-rise { animation: apRiseBlur .75s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.ap-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: apDraw 1.3s cubic-bezier(.65,0,.35,1) .35s forwards; }
.ap-fade { opacity: 0; animation: apFadeIn 1s ease .7s forwards; }
.ap-stagger > * { animation: apRiseBlur .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ap-still, .ap-still * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
.ap-skeleton-row { pointer-events: none; }
.ap-sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f0f0f3 25%, #e5e5ea 50%, #f0f0f3 75%); background-size: 300% 100%; animation: apShimmer 1.4s ease-in-out infinite; }
.ap-sk-circle { width: 40px; height: 40px; border-radius: 99px; flex-shrink: 0; }

/* --- leady --------------------------------------------------------------- */
.ap-list { border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ap-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: none; border: 0; text-align: left; border-bottom: 1px solid var(--ap-line); }
.ap-row:last-child { border-bottom: 0; }
.ap-row:hover { background: #fafafa; }
.ap-initials { width: 40px; height: 40px; border-radius: 99px; background: #e8f0fe; color: #0b57d0; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.ap-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f2f2f4; color: var(--ap-text-2); white-space: nowrap; }
.ap-chip.new { background: #e8f0fe; color: #0b57d0; }
.ap-chip.good { background: #e3f9e8; color: var(--ap-green); }
.ap-chip.book { background: #f5ecfb; color: #8e3bbf; }
.ap-chip.warn { background: #fff4e5; color: #b25000; }
.ap-chip.bad { background: #ffeceb; color: #c4161c; }
.ap-filter { border: 1px solid #d2d2d7; background: #fff; border-radius: var(--ap-pill); padding: 7px 14px; font-size: 14px; }
.ap-filter.on { background: var(--ap-text); border-color: var(--ap-text); color: #fff; }
.ap-filter b { margin-left: 6px; font-weight: 600; opacity: .55; }
/* Farebné filtre (modrá nové · oranžová volať znova · fialová booknuté · zelená zákazníci) */
.ap-filter.tone-new { background: #e8f1fd; border-color: transparent; color: #0064d2; }
.ap-filter.tone-warn { background: #fff4e5; border-color: transparent; color: #b25000; }
.ap-filter.tone-book { background: #f5ecfb; border-color: transparent; color: #8e3bbf; }
.ap-filter.tone-good { background: #e3f9e8; border-color: transparent; color: var(--ap-green); }
.ap-filter.tone-new.on { background: #0071e3; color: #fff; }
.ap-filter.tone-warn.on { background: #ff9500; color: #fff; }
.ap-filter.tone-book.on { background: #af52de; color: #fff; }
.ap-filter.tone-good.on { background: #34c759; color: #fff; }
.ap-filter.on b { opacity: .8; }

.ap-sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.28); animation: apFade .2s both; }
.ap-sheet { position: fixed; z-index: 61; right: 0; top: 0; bottom: 0; width: min(460px, 100vw); background: var(--ap-bg); overflow-y: auto; animation: apSlide .32s cubic-bezier(.2,.8,.2,1) both; padding-bottom: calc(24px + var(--ap-safe-bottom)); }
@media (max-width: 720px) { .ap-sheet { top: auto; left: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation-name: apSheetUp; } }

/* --- detail leadu ako iMessage ------------------------------------------- */
.ap-sheet.ap-chat { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; background: #fff; }
@media (max-width: 720px) { .ap-sheet.ap-chat { height: 92vh; } }
.ap-chat-head { position: relative; flex-shrink: 0; text-align: center; padding: 14px 16px 12px; background: rgba(249,249,250,.96); border-bottom: 1px solid var(--ap-line); }
.ap-chat-head [data-close] { position: absolute; right: 16px; top: 14px; }
.ap-chat-actions { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.ap-chat-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: #e8f0fe; color: var(--ap-blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.ap-chat-actions a.call { background: #e3f9e8; color: var(--ap-green); }
.ap-chat-actions a[aria-disabled="true"] { background: #f2f2f4; color: #c7c7cc; pointer-events: none; }
.ap-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ap-day { align-self: center; font-size: 12px; font-weight: 600; color: var(--ap-text-3); margin: 10px 0 2px; }
.ap-event { align-self: center; max-width: 92%; text-align: center; font-size: 12px; color: var(--ap-text-2); background: #f2f2f4; border-radius: 99px; padding: 5px 12px; margin: 2px 0; }
.ap-event.good { background: #e3f9e8; color: var(--ap-green); font-weight: 600; }
.ap-event.bad { background: #ffeceb; color: #c4161c; }
.ap-bubble { max-width: 80%; padding: 9px 13px; border-radius: 19px; font-size: 15px; line-height: 1.38; white-space: pre-line; overflow-wrap: anywhere; }
.ap-bubble small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .01em; opacity: .75; margin-bottom: 2px; white-space: normal; }
.ap-bubble.in { align-self: flex-start; background: #e9e9eb; border-bottom-left-radius: 6px; }
.ap-bubble.in p { margin: 0 0 6px; }
.ap-bubble.in p:last-child { margin: 0; }
.ap-bubble.in p span { display: block; font-size: 12px; color: var(--ap-text-2); }
.ap-bubble.out { align-self: flex-end; background: var(--ap-blue); color: #fff; border-bottom-right-radius: 6px; }
.ap-bubble.note { align-self: flex-end; background: #fff3b8; color: #4d3d00; border-bottom-right-radius: 6px; }
.ap-chat-foot { flex-shrink: 0; border-top: 1px solid var(--ap-line); background: #f9f9fa; padding: 8px 12px calc(10px + var(--ap-safe-bottom)); }
/* Detail leadu – časová os (návrh D) */
.ap-tl { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 4px 0 10px; }
.ap-tl:before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -2px; width: 2px; background: #ececf0; }
.ap-tl:last-child:before { display: none; }
.ap-tl-icon { width: 28px; height: 28px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; z-index: 1; }
.ap-tl-icon.blue { background: #e8f1fd; }
.ap-tl-icon.green { background: #e3f9e8; color: var(--ap-green); }
.ap-tl-icon.yellow { background: #fff3b8; }
.ap-tl-icon.red { background: #ffeceb; color: #c4161c; }
.ap-tl-icon.gray { background: #f2f2f4; color: var(--ap-text-3); }
.ap-tl-title { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 0; font-size: 14px; line-height: 1.3; }
.ap-tl-title b { font-weight: 600; }
.ap-tl-title span { font-size: 12px; color: var(--ap-text-3); white-space: nowrap; }
.ap-tl-box { margin-top: 6px; background: #f5f5f7; border-radius: 14px; padding: 9px 12px; font-size: 14.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.ap-tl-box p { margin: 0 0 6px; } .ap-tl-box p:last-child { margin: 0; }
.ap-tl-box p span { display: block; font-size: 12px; color: var(--ap-text-2); }
.ap-tl-box.note { background: #fff8d6; border: 1px solid #f4e39a; color: #4d3d00; }
.ap-thread.tl .ap-day { align-self: flex-start; margin-left: 38px; }
.ap-compose.note textarea { background: #fffbe6; border-color: #f0dd8c; }
.ap-compose.note textarea:focus { border-color: #d4b106; }
.ap-compose.note button { background: #ff9f0a; }
.ap-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ap-chips::-webkit-scrollbar { display: none; }
.ap-chips button { flex-shrink: 0; border: 1px solid #d2d2d7; background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.ap-chips button.on { background: #e3f9e8; border-color: #b7e4c3; color: var(--ap-green); font-weight: 600; }
.ap-chips button:disabled { opacity: .5; }
.ap-compose { display: flex; align-items: flex-end; gap: 8px; }
.ap-compose textarea { flex: 1; resize: none; border: 1px solid #d2d2d7; border-radius: 20px; padding: 8px 14px; font: inherit; font-size: 16px; line-height: 1.35; background: #fff; outline: none; max-height: 140px; }
.ap-compose textarea:focus { border-color: var(--ap-blue); }
.ap-compose button { width: 34px; height: 34px; border-radius: 99px; border: 0; background: var(--ap-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 2px; }
.ap-compose button:disabled { background: #c7c7cc; }

/* --- kalendár obdobia ----------------------------------------------------- */
.ap-sheet.ap-cal { background: #fff; display: flex; flex-direction: column; padding-bottom: 0; }
@media (min-width: 721px) { .ap-sheet.ap-cal { inset: 0; margin: auto; height: fit-content; width: min(640px, calc(100vw - 32px)); border-radius: 26px; animation: apRiseBlur .45s cubic-bezier(.16,1,.3,1) both; max-height: 92vh; } }
.ap-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 16px; }
.ap-cal-head button:disabled { color: #c7c7cc; }
.ap-cal-quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 12px; scrollbar-width: none; }
.ap-cal-quick::-webkit-scrollbar { display: none; }
.ap-cal-quick button { flex-shrink: 0; border: 0; border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; background: #f2f2f4; color: var(--ap-text); transition: background .2s, color .2s; }
.ap-cal-quick button.on { background: var(--ap-text); color: #fff; }
.ap-cal-nav { position: relative; height: 0; }
.ap-cal-nav button { position: absolute; top: 6px; width: 34px; height: 34px; border-radius: 99px; border: 0; background: #f2f2f4; display: inline-flex; align-items: center; justify-content: center; color: var(--ap-text); z-index: 2; }
.ap-cal-nav button:first-child { left: 14px; } .ap-cal-nav button:last-child { right: 14px; }
.ap-cal-nav button:disabled { opacity: .3; }
.ap-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; padding: 4px 18px 8px; overflow-y: auto; }
@media (max-width: 720px) { .ap-cal-months { grid-template-columns: 1fr; gap: 14px; max-height: 58vh; } }
.ap-cal-title { text-align: center; font-size: 16px; font-weight: 600; text-transform: capitalize; padding: 12px 0 10px; }
.ap-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.ap-cal-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--ap-text-3); padding-bottom: 6px; }
.ap-cal-day { position: relative; height: 40px; border: 0; background: transparent; padding: 0; font-size: 15px; color: var(--ap-text); font-variant-numeric: tabular-nums; }
.ap-cal-day span { position: relative; z-index: 1; width: 36px; height: 36px; margin: 0 auto; border-radius: 99px; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, transform .15s; }
.ap-cal-day:not(.off):hover span { background: #f2f2f4; }
.ap-cal-day:active span { transform: scale(.9); }
.ap-cal-day.today span { color: var(--ap-blue); font-weight: 700; }
.ap-cal-day.off { color: #c7c7cc; cursor: default; }
.ap-cal-day.mid::before, .ap-cal-day.edge::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: #e8f0fe; }
.ap-cal-day.edge.lo::before { left: 50%; } .ap-cal-day.edge.hi::before { right: 50%; }
.ap-cal-day.lo span, .ap-cal-day.hi span { background: var(--ap-blue) !important; color: #fff !important; font-weight: 600; box-shadow: 0 4px 12px rgba(0,113,227,.35); }
.ap-cal-day.mid span { color: #0b57d0; }
.ap-cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(14px + var(--ap-safe-bottom)); border-top: 1px solid var(--ap-line); background: #fbfbfd; }
.ap-cal-sum b { display: block; font-size: 16px; }
.ap-cal-sum span { font-size: 13px; color: var(--ap-text-2); }

/* --- vaša reklama (rozpočet, pozastavenie) -------------------------------- */
.ap-sheet.ap-control { background: #fff; padding-bottom: calc(18px + var(--ap-safe-bottom)); }
@media (min-width: 721px) { .ap-sheet.ap-control { inset: 0; margin: auto; height: fit-content; width: min(460px, calc(100vw - 32px)); border-radius: 26px; animation: apRiseBlur .45s cubic-bezier(.16,1,.3,1) both; max-height: 92vh; } }
.ap-control-body { padding: 16px 18px 4px; }
.ap-control-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #f2f2f4; font-size: 16px; font-weight: 600; }
.ap-control-status i { width: 10px; height: 10px; border-radius: 99px; background: #8e8e93; flex-shrink: 0; }
.ap-control-status.green { background: #e3f9e8; color: var(--ap-green); } .ap-control-status.green i { background: #30d158; animation: apPulse 2s ease-in-out infinite; }
.ap-control-status.orange { background: #fff4e5; color: #8a4b00; } .ap-control-status.orange i { background: #ff9f0a; }
.ap-control-status.red { background: #ffebea; color: #a1000f; } .ap-control-status.red i { background: #ff3b30; }
.ap-control-note { margin-top: 10px; font-size: 13px; color: var(--ap-text-2); background: #f5f5f7; border-radius: 12px; padding: 9px 12px; }
.ap-control-h { margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ap-control-sub { font-size: 14px; color: var(--ap-text-2); margin-top: 2px; }
.ap-control-sub b { color: var(--ap-text); }
.ap-budget { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px; border-radius: 22px; background: #f5f5f7; }
.ap-budget button { width: 52px; height: 52px; border-radius: 99px; border: 0; background: #fff; color: var(--ap-blue); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .12s; flex-shrink: 0; }
.ap-budget button:active { transform: scale(.92); }
.ap-budget button:disabled { color: #c7c7cc; box-shadow: none; }
.ap-budget div { text-align: center; }
.ap-budget b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ap-budget span { font-size: 13px; color: var(--ap-text-2); }
.ap-budget-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ap-budget-quick button { border: 1px solid #d2d2d7; background: #fff; border-radius: 99px; padding: 9px 10px; font-size: 14px; font-weight: 600; }
.ap-budget-quick button:active { transform: scale(.97); }
.ap-control-warn { margin-top: 12px; font-size: 13px; color: #8a4b00; background: #fff4e5; border-radius: 12px; padding: 9px 12px; }
.ap-control-sep { height: 1px; background: var(--ap-line); margin: 22px 0 14px; }
.ap-control-pause { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #d70015; font-size: 16px; font-weight: 600; padding: 10px; border-radius: 14px; }
.ap-control-pause:hover { background: #fff1f0; }
.ap-confirm-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.35); animation: apFade .2s both; }
.ap-confirm { position: fixed; z-index: 71; inset: 0; margin: auto; height: fit-content; width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: 24px; padding: 22px 20px 14px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: apRiseBlur .35s cubic-bezier(.16,1,.3,1) both; }
.ap-confirm-icon { width: 52px; height: 52px; border-radius: 99px; background: #fff4e5; color: #b25000; display: inline-flex; align-items: center; justify-content: center; }
.ap-confirm h3 { font-size: 19px; font-weight: 700; margin: 12px 0 8px; letter-spacing: -.01em; }
.ap-confirm p { font-size: 14px; color: var(--ap-text-2); line-height: 1.45; margin: 0 0 8px; text-align: left; }
.ap-confirm-danger { width: 100%; border: 0; background: transparent; color: #d70015; font-size: 16px; font-weight: 600; padding: 12px; margin-top: 4px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* --- spätná väzba (NPS) -------------------------------------------------- */
.ap-sheet.ap-feedback { background: #fff; padding-bottom: calc(20px + var(--ap-safe-bottom)); }
@media (min-width: 721px) { .ap-sheet.ap-feedback { inset: 0; margin: auto; height: fit-content; width: min(480px, calc(100vw - 32px)); border-radius: 24px; animation: apRiseBlur .45s cubic-bezier(.16,1,.3,1) both; max-height: 90vh; } }
.ap-feedback-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--ap-line); font-size: 16px; }
.ap-feedback-body { padding: 18px 18px 4px; }
.ap-feedback-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ap-feedback-body textarea { width: 100%; resize: vertical; min-height: 110px; border: 1px solid #d2d2d7; border-radius: 16px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.4; outline: none; background: #fbfbfd; }
.ap-feedback-body textarea:focus { border-color: var(--ap-blue); box-shadow: 0 0 0 4px rgba(0,113,227,.12); background: #fff; }
.ap-nps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.ap-nps button { height: 40px; border-radius: 11px; border: 1px solid #e5e5ea; background: #fff; font-size: 15px; font-weight: 600; color: var(--ap-text); transition: transform .12s, background .15s, color .15s, border-color .15s; padding: 0; }
.ap-nps button:active { transform: scale(.92); }
.ap-nps button.on.lo { background: #ff3b30; border-color: #ff3b30; color: #fff; }
.ap-nps button.on.mid { background: #ff9f0a; border-color: #ff9f0a; color: #fff; }
.ap-nps button.on.hi { background: #30d158; border-color: #30d158; color: #fff; }
.ap-nps-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ap-text-3); margin-top: 6px; }
.ap-feedback-done { text-align: center; padding: 48px 24px 36px; }
.ap-feedback-check { width: 64px; height: 64px; border-radius: 99px; background: #e3f9e8; color: var(--ap-green); display: inline-flex; align-items: center; justify-content: center; animation: apFan .6s cubic-bezier(.16,1,.3,1) both; }

/* --- rozhodovanie (swipe) ------------------------------------------------ */
/* Výška podľa okna, aby tlačidlá ✕ / ✓ boli vždy viditeľné bez posúvania. */
.ap-deck { isolation: isolate; --deck-h: clamp(380px, calc(100vh - 330px), 660px); position: relative; margin: 0 auto; height: var(--deck-h); width: min(380px, 100%, calc((var(--deck-h) - 84px) * 0.5625 + 2px)); }
@media (max-width: 720px) { .ap-deck { --deck-h: clamp(330px, calc(100svh - 340px - var(--ap-safe-bottom)), 640px); width: min(100%, 300px); } .ap-decide-title { display: none; } }
/* Feed: šírka podľa výšky, aby obrázok 4:5 vyplnil kartu od okraja po okraj (hlavička + tlačidlo + text = --ig-chrome). */
.ap-deck.feed { --ig-chrome: 172px; width: min(380px, 100%, calc((var(--deck-h) - var(--ig-chrome)) * 0.8)); }
/* Stories: 9:16 pod hlavičkou, nad tlačidlom (spolu ~100 px). */
.ap-deck.story { width: min(380px, 100%, calc((var(--deck-h) - 100px) * 0.5625)); }
@media (max-width: 720px) { .ap-deck.story { width: min(100%, 300px, calc((var(--deck-h) - 100px) * 0.5625)); } }
@media (max-width: 720px) { .ap-deck.feed { width: min(100%, 330px, calc((var(--deck-h) - var(--ig-chrome)) * 0.8)); } }
.ap-swipe { position: absolute; inset: 0; border-radius: 28px; background: #fff; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.12); touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; display: flex; flex-direction: column; }
.ap-swipe.top { cursor: grab; }
.ap-swipe.top.dragging { cursor: grabbing; transition: none; }
.ap-swipe.settle { transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
/* Hlavička – štítok automatických SMS (zelený zapnuté, červený vypnuté / bez kreditu) */
.ap-top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.ap-sms { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 6px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .12s, background .2s; }
.ap-sms:active { transform: scale(.95); }
.ap-sms i { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.ap-sms.on { background: #e9f8ee; color: #248a3d; }
.ap-sms.off { background: #ffeceb; color: #d70015; }
/* Správy – štítok v hlavičke, zoznam ako iMessage, pripojenie kanálov, rýchle odpovede */
.ap-top .ap-status { white-space: nowrap; }
.ap-msg-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 6px 10px; font-size: 13px; font-weight: 600; background: #0a84ff; color: #fff; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(10,132,255,.3); transition: transform .12s; }
.ap-msg-chip:active { transform: scale(.95); }
.ap-msg-chip b { font-weight: 700; }
.ap-msg-chip.quiet { background: #e8f1fd; color: #0064d2; box-shadow: none; padding: 6px 9px; }
@media (max-width: 720px) { .ap-top-right { gap: 6px; } .ap-top .ap-sms { padding: 6px 9px; font-size: 12px; } }
.ap-msg-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; background: #fff; border: 0; border-bottom: 1px solid var(--ap-line); }
.ap-msg-row:last-child { border-bottom: 0; }
.ap-msg-row:active { background: #f5f5f7; }
.ap-msg-pic { position: relative; flex: none; display: inline-flex; }
.ap-msg-pic img { border-radius: 99px; object-fit: cover; }
.ap-chan { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 99px; border: 2px solid #fff; }
.ap-chan.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ap-chan.ms { background: linear-gradient(135deg, #00b2ff, #a033ff); }
.ap-msg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ap-msg-top b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-msg-top em { font-style: normal; font-size: 12px; color: var(--ap-text-3); flex: none; }
.ap-msg-text { display: block; font-size: 14px; color: var(--ap-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ap-msg-row.unread .ap-msg-text { color: var(--ap-text); font-weight: 600; }
.ap-lead-tag { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #8e3bbf; background: #f5ecfb; border-radius: 99px; padding: 2px 8px; }
.ap-msg-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--ap-blue); flex: none; }
.ap-conn-list { display: flex; flex-direction: column; gap: 8px; }
.ap-conn { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); margin-bottom: 8px; }
.ap-conn-list .ap-conn { margin-bottom: 0; }
.ap-conn b { display: block; font-size: 15px; font-weight: 600; }
.ap-conn span span, .ap-conn > span > span { display: block; font-size: 13px; color: var(--ap-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-conn.soon { opacity: .7; }
button.ap-conn.tap { width: 100%; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.ap-conn.tap:active { transform: scale(.99); }
.ap-conn-logo { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; }
.ap-conn-logo.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ap-conn-logo.ms { background: linear-gradient(135deg, #00b2ff, #a033ff); }
.ap-conn-logo.wa { background: #25d366; }
.ap-conn-logo.sm { background: #34c759; }
.ap-conn-logo.gm { background: #8e8e93; }
.ap-conn-btn { border: 0; border-radius: 99px; background: var(--ap-blue); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.ap-conn-btn:disabled { opacity: .6; }
.ap-conn-ok { flex: none; font-size: 13px; font-weight: 600; color: var(--ap-green); background: #e3f9e8; border-radius: 99px; padding: 6px 12px; }
.ap-conn-soon { flex: none; font-size: 12px; font-weight: 600; color: var(--ap-text-3); background: #f2f2f4; border-radius: 99px; padding: 6px 12px; }
.ap-qr { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ap-qr::-webkit-scrollbar { display: none; }
.ap-qr button { flex-shrink: 0; border: 1px solid #d2d2d7; background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.ap-qr button:active { background: #f2f2f4; }
/* Upozornenia – pás na Prehľade a nastavenia v menu (návrh D) */
.ap-push-prompt { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 12px 12px 12px 14px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ap-push-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff4e5; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.ap-push-x { border: 0; background: none; color: var(--ap-text-3); padding: 4px; flex: none; }
.ap-set-body { padding: 4px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.ap-set-group { background: #fff; border-radius: 16px; overflow: hidden; }
.ap-set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ap-line); cursor: pointer; }
.ap-set-row:last-child { border-bottom: 0; }
.ap-set-row b { display: block; font-size: 15px; font-weight: 500; }
.ap-set-row small { display: block; font-size: 12.5px; color: var(--ap-text-2); margin-top: 2px; line-height: 1.35; }
.ap-switch { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 99px; background: #e9e9eb; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.ap-switch:after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.ap-switch:checked { background: #34c759; }
.ap-switch:checked:after { transform: translateX(20px); }
.ap-set-row.wrap { flex-wrap: wrap; }
.ap-set-row.wrap > span:first-child { flex: 1 1 100%; }
.ap-set-row.wrap .ap-time { margin-left: auto; }
.ap-time { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ap-text-2); }
.ap-time input { border: 0; background: #f2f2f4; border-radius: 8px; padding: 5px 6px; font: inherit; font-size: 14px; color: var(--ap-text); }
.ap-ios-steps { background: #fff8e6; border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.ap-ios-steps ol { margin: 6px 0 0; padding-left: 20px; }
/* Rozhodnúť – schválenie: srdce, zelená žiara, ďalšia karta pruží */
.ap-love-glow { position: fixed; z-index: 70; pointer-events: none; border-radius: 32px; background: radial-gradient(circle at 75% 50%, rgba(52,199,89,.4), transparent 62%); animation: apGlow 1.1s ease-out forwards; }
.ap-love-heart { position: fixed; z-index: 71; pointer-events: none; font-size: 72px; line-height: 1; transform: translate(-50%, -50%) scale(0); filter: drop-shadow(0 8px 18px rgba(52,199,89,.45)); animation: apHeart 1s cubic-bezier(.2,.9,.25,1.2) forwards; }
@keyframes apGlow { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes apHeart { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 35% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(.95); opacity: 1; } 100% { transform: translate(-50%, -85%) scale(1); opacity: 0; } }
.ap-swipe.top.ap-spring { animation: apSpring .5s cubic-bezier(.2,.9,.25,1.25); }
@keyframes apSpring { from { transform: translateY(14px) scale(.94); } }
/* Rozhodnúť – koniec balíčka (variant C): reklamy sa zložia a zmenia na fajku ako pri Apple Pay */
.ap-done { max-width: 420px; margin: 0 auto; padding: 28px 20px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ap-done-title { margin-top: 18px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; animation: apDoneRise .5s cubic-bezier(.2,.8,.2,1) 1.35s backwards; }
.ap-done-text { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ap-text-2); max-width: 300px; animation: apDoneRise .5s cubic-bezier(.2,.8,.2,1) 1.45s backwards; }
.ap-done .ap-pill { animation: apDoneRise .5s cubic-bezier(.2,.8,.2,1) 1.55s backwards; }
.ap-done:not(.with-stack) .ap-done-title { animation-delay: .85s; }
.ap-done:not(.with-stack) .ap-done-text { animation-delay: .95s; }
.ap-done:not(.with-stack) .ap-pill { animation-delay: 1.05s; }
.ap-done-stack { position: relative; width: 150px; height: 180px; }
.ap-done-stack i { position: absolute; left: 50%; top: 14px; width: 92px; height: 150px; margin-left: -46px; border-radius: 16px; border: 3px solid #fff; background: linear-gradient(160deg, #101010 55%, #2a2a2a) center / cover no-repeat; box-shadow: 0 8px 22px rgba(0,0,0,.18); opacity: 0; }
.ap-done-stack i.t1 { animation: apStack1 1.3s cubic-bezier(.3,.7,.2,1) backwards; }
.ap-done-stack i.t2 { animation: apStack2 1.3s .08s cubic-bezier(.3,.7,.2,1) backwards; }
.ap-done-stack i.t3 { animation: apStack3 1.3s .16s cubic-bezier(.3,.7,.2,1) backwards; }
.ap-done-ok { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 99px; background: #34c759; box-shadow: 0 10px 26px rgba(52,199,89,.45); display: flex; align-items: center; justify-content: center; }
.ap-done-ok svg { width: 96px; height: 96px; }
.ap-done-ok path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; }
.ap-done-stack .ap-done-ok { animation: apOkIn .5s 1.05s cubic-bezier(.2,.9,.25,1.4) backwards; }
.ap-done-stack .ap-done-ok path { animation: apDraw .4s 1.35s ease-out backwards; }
.ap-done-pay { position: relative; width: 96px; height: 96px; }
.ap-done-pay .ring { position: absolute; inset: 0; width: 96px; height: 96px; transform: rotate(-90deg); }
.ap-done-pay .ring circle { fill: none; stroke: #34c759; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 283; animation: apRingDraw .6s ease-out backwards; }
.ap-done-pay .ap-done-ok { left: 8px; top: 8px; width: 80px; height: 80px; margin: 0; animation: apOkIn .35s .55s cubic-bezier(.2,.9,.25,1.3) backwards; }
.ap-done-pay .ap-done-ok svg { width: 80px; height: 80px; }
.ap-done-pay .ap-done-ok path { animation: apDraw .4s .8s ease-out backwards; }
.ap-done-pay.still * { animation: none !important; }
@keyframes apStack1 { 0% { opacity: 1; transform: translate(-110px, 30px) rotate(-18deg); } 55% { opacity: 1; transform: rotate(-6deg); } 85% { opacity: 1; transform: scale(.55); } 100% { opacity: 0; transform: scale(.4); } }
@keyframes apStack2 { 0% { opacity: 1; transform: translate(0, 120px); } 55% { opacity: 1; transform: none; } 85% { opacity: 1; transform: scale(.55); } 100% { opacity: 0; transform: scale(.4); } }
@keyframes apStack3 { 0% { opacity: 1; transform: translate(110px, 30px) rotate(18deg); } 55% { opacity: 1; transform: rotate(6deg); } 85% { opacity: 1; transform: scale(.55); } 100% { opacity: 0; transform: scale(.4); } }
@keyframes apOkIn { from { transform: scale(0); } }
@keyframes apDraw { from { stroke-dashoffset: 60; } }
@keyframes apRingDraw { from { stroke-dashoffset: 283; } }
@keyframes apDoneRise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .ap-done *, .ap-done { animation: none !important; } .ap-done-stack i { display: none; } }
/* Rozhodnúť – odporúčanie tempa (Získať viac klientov / Spomaliť) */
.ap-deck.reco { width: min(360px, 100%); }
@media (max-width: 720px) { .ap-deck.reco { width: min(100%, 330px); } }
.ap-reco { padding: 22px 20px 18px; --reco: #248a3d; --reco-bg: #e9f8ee; }
.ap-reco.down { --reco: #c93400; --reco-bg: #fff4e5; }
.ap-reco .ap-stamp { top: 18px; }
.ap-reco-kind { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--reco); }
.ap-reco-title { margin: 8px 0 6px; font-size: clamp(24px, 6.5vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
.ap-reco-reason { font-size: 15px; line-height: 1.45; color: var(--ap-text-2); }
.ap-reco-spark { margin-top: 14px; color: var(--reco); }
.ap-reco-spark svg { display: block; width: 100%; height: 54px; }
.ap-reco-spark span { display: block; margin-top: 4px; font-size: 11px; color: var(--ap-text-3, #86868b); }
.ap-reco-ba { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--ap-text-2); }
.ap-reco-ba div { flex: 1; background: #f5f5f7; border-radius: 16px; padding: 12px 8px; text-align: center; }
.ap-reco-ba div.to { background: var(--reco-bg); color: var(--reco); }
.ap-reco-ba b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ap-text); }
.ap-reco-ba div.to b { color: var(--reco); }
.ap-reco-ba span { font-size: 12px; }
.ap-reco-delta { margin-top: 12px; text-align: center; font-size: 15px; color: var(--ap-text-2); }
.ap-reco-delta b { color: var(--ap-text); font-weight: 600; }
.ap-reco-hint { margin-top: auto; padding-top: 12px; text-align: center; font-size: 12px; color: #86868b; }
/* Rozhodnúť – karta ako reklama v Instagrame (Feed a Stories) */
.ap-ig { container-type: inline-size; }
.ap-ig img { pointer-events: none; -webkit-user-drag: none; }
/* Úzka karta (Stories na menšom mobile): v prepínači formátu len ikona, aby sa zmestilo meno. */
@container (max-width: 270px) { .ap-ig-format span { display: none; } .ap-ig-format { padding: 6px; } }
.ap-ig-head { display: flex; align-items: center; gap: 8px; padding: 11px 10px 11px 12px; flex: none; }
.ap-ig-head b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ig-head div > span { display: block; font-size: 12px; color: var(--ap-text-2); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ig-av { flex: none; width: 32px; height: 32px; border-radius: 99px; padding: 2px; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ap-ig-av i { display: flex; width: 100%; height: 100%; border-radius: 99px; border: 2px solid #fff; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-style: normal; color: var(--ap-text); background: #f2f2f4; }
.ap-ig-format { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 99px; padding: 4px 8px; font-size: 12px; font-weight: 600; background: rgba(118,118,128,.12); color: var(--ap-text); }
.ap-ig-media { position: relative; flex: 1; min-height: 0; background: #fff; display: flex; align-items: center; justify-content: center; }
.ap-ig-media img { width: 100%; height: 100%; object-fit: contain; }
.ap-ig-cta { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 14px; font-weight: 600; color: #0064e0; border-bottom: 1px solid rgba(0,0,0,.08); }
.ap-ig-icons { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 12px 2px; color: var(--ap-text); }
.ap-ig-caption { flex: none; padding: 4px 12px 12px; font-size: 13.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ig-caption b { font-weight: 600; }
.ap-ig .ap-stamp { top: 18px; }
.ap-ig-story-cta { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 12px 10px; font-size: 13px; font-weight: 600; color: var(--ap-text); }
.ap-ig-story { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f5f5f7; }
.ap-ig-story .ap-ig-blur { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) saturate(1.2); opacity: .75; }
.ap-ig-story .ap-ig-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ap-ig-progress { position: absolute; top: 6px; left: 10px; right: 10px; height: 2.5px; border-radius: 99px; background: rgba(255,255,255,.4); z-index: 2; }
.ap-ig-progress i { display: block; width: 38%; height: 100%; border-radius: inherit; background: #fff; }
.ap-stamp { position: absolute; top: 28px; z-index: 3; padding: 6px 14px; border-radius: 12px; border: 3px solid; font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: 0; background: rgba(255,255,255,.85); }
.ap-stamp.yes { right: 22px; color: #1f9d4c; border-color: #1f9d4c; transform: rotate(12deg); }
.ap-stamp.no { left: 22px; color: #e0262e; border-color: #e0262e; transform: rotate(-12deg); }
.ap-round { width: 64px; height: 64px; border-radius: 99px; border: 0; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 12px 30px rgba(0,0,0,.1); transition: transform .12s; }
.ap-round:active { transform: scale(.94); }
.ap-round.no { color: #e0262e; }
.ap-round.yes { color: #1f9d4c; }
.ap-round.small { width: 48px; height: 48px; color: var(--ap-text-2); }
.ap-reasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* --- prihlásenie --------------------------------------------------------- */
.ap-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.ap-google { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; border: 1px solid #d2d2d7; background: #fff; padding: 13px 16px; font-size: 16px; font-weight: 500; }
.ap-google:hover { background: #fafafa; }
.ap-or { display: flex; align-items: center; gap: 12px; color: var(--ap-text-3); font-size: 13px; }
.ap-or::before, .ap-or::after { content: ""; flex: 1; height: 1px; background: var(--ap-line); }

/* --- toast (showToast z core/utils.js, vzhľad ako apple-skin.css) -------- */
html.skin-apple #toast-notification.ap-toast { position: fixed; top: 18px; left: 50%; z-index: 600; display: flex; align-items: center; gap: 12px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 20px 10px 10px; border-radius: var(--ap-pill); background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 10px 40px rgba(0,0,0,.14); color: var(--ap-text); font-size: 14px; font-weight: 500; opacity: 0; transform: translate(-50%, -16px) scale(.96); transition: opacity .28s ease, transform .45s cubic-bezier(.2,.9,.25,1.15); }
html.skin-apple #toast-notification.ap-toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
html.skin-apple #toast-notification.ap-toast.hidden { display: none; }
html.skin-apple .ap-toast-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
html.skin-apple .ap-toast-icon.is-success { background: #30d158; }
html.skin-apple .ap-toast-icon.is-error { background: #ff3b30; }

@keyframes apRiseBlur { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes apDraw { to { stroke-dashoffset: 0; } }
@keyframes apFadeIn { to { opacity: 1; } }
@keyframes apGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes apFan { from { opacity: 0; transform: translateY(14px) rotate(0deg) scale(.85); } to { opacity: 1; transform: rotate(var(--rot, 0deg)); } }
@keyframes apSheen { to { transform: translateX(100%); } }
@keyframes apNudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
@keyframes apShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes apSpin { to { transform: rotate(360deg); } }
@keyframes apRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes apFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes apSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes apSheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes apPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(48,209,88,.18); } 50% { box-shadow: 0 0 0 7px rgba(48,209,88,.06); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
