/* Recallify premium app shell, dashboard, and auth pages */

:root {
    --ap-bg: #f4f7fb;
    --ap-surface: rgba(255, 255, 255, 0.74);
    --ap-surface-solid: #ffffff;
    --ap-surface-2: rgba(15, 23, 42, 0.04);
    --ap-surface-3: rgba(15, 23, 42, 0.07);
    --ap-border: rgba(15, 23, 42, 0.08);
    --ap-border-strong: rgba(15, 23, 42, 0.15);
    --ap-text: #0b1220;
    --ap-muted: #5a6577;
    --ap-brand: #10b981;
    --ap-brand-2: #06b6d4;
    --ap-brand-3: #8b5cf6;
    --ap-amber: #f59e0b;
    --ap-rose: #f43f5e;
    --ap-grad: linear-gradient(110deg, #10b981 0%, #06b6d4 45%, #8b5cf6 100%);
    --ap-shadow: 0 18px 45px -22px rgba(15, 23, 42, 0.28);
    --ap-shadow-lg: 0 35px 80px -30px rgba(15, 23, 42, 0.4);
    --ap-radius: 22px;
    --ap-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --ap-body: 'Inter', system-ui, sans-serif;
    --sidebar-width: 264px;
}

[data-theme="dark"] {
    --ap-bg: #05070d;
    --ap-surface: rgba(15, 21, 35, 0.66);
    --ap-surface-solid: #0d1322;
    --ap-surface-2: rgba(255, 255, 255, 0.04);
    --ap-surface-3: rgba(255, 255, 255, 0.07);
    --ap-border: rgba(255, 255, 255, 0.08);
    --ap-border-strong: rgba(255, 255, 255, 0.15);
    --ap-text: #f1f5f9;
    --ap-muted: #94a3b8;
    --ap-shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.8);
    --ap-shadow-lg: 0 35px 90px -30px rgba(0, 0, 0, 0.9);
}

:root body.ap,
:root body.ap-auth {
    background: var(--ap-bg);
    color: var(--ap-text);
    font-family: var(--ap-body);
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    transition: background .4s ease, color .4s ease;
}
.ap ::selection, .ap-auth ::selection { background: rgba(16, 185, 129, .3); }
.apz h1, .apz h2, .apz h3, .apz h4, .apz h5, .apz h6 { font-family: var(--ap-head); color: var(--ap-text); }
.apz p { color: var(--ap-muted); }
.apz a { text-decoration: none; }
.min-w-0 { min-width: 0; }

/* Animated background */
.ap-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ap-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: ap-drift 22s ease-in-out infinite alternate; }
.ap-blob-1 { width: 560px; height: 560px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(16, 185, 129, .55), transparent 65%); }
.ap-blob-2 { width: 620px; height: 620px; right: -200px; top: 20%; background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 65%); animation-delay: -6s; animation-duration: 26s; }
.ap-blob-3 { width: 520px; height: 520px; left: 30%; bottom: -260px; background: radial-gradient(circle, rgba(6, 182, 212, .45), transparent 65%); animation-delay: -12s; }
[data-theme="light"] .ap-blob { opacity: .32; }
.ap-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--ap-border) 1px, transparent 1px), linear-gradient(90deg, var(--ap-border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 70%);
    opacity: .55;
}
.ap-cursor-glow {
    position: fixed; top: 0; left: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s ease; will-change: transform;
    background: radial-gradient(circle, rgba(16, 185, 129, .1), transparent 62%);
}
.app-container { position: relative; z-index: 2; }

/* Buttons */
.ap-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent; overflow: hidden;
    font-family: var(--ap-head); font-weight: 700; font-size: .9rem; line-height: 1; white-space: nowrap;
    color: var(--ap-text); background: transparent; cursor: pointer; text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.ap-btn:active { transform: scale(.97); }
.ap-btn-primary {
    color: #fff !important; background: var(--ap-grad); background-size: 200% 100%;
    box-shadow: 0 10px 28px -12px rgba(16, 185, 129, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
    animation: ap-grad 6s ease infinite;
}
.ap-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(6, 182, 212, .8); }
.ap-btn-light { background: #fff; color: #0b1220 !important; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55); }
.ap-btn-light:hover { transform: translateY(-2px); }
.ap-btn-glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ap-btn-glass:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.ap-btn-icon-only { width: 42px; height: 42px; padding: 0; }
.ap-btn-icon-only:hover i { animation: ap-spin .8s ease; }
.ap-btn-outline { border-color: var(--ap-border-strong); color: var(--ap-text) !important; background: var(--ap-surface-2); }
.ap-btn-outline:hover { border-color: var(--ap-brand); transform: translateY(-2px); }
.ap-btn-ghost { color: var(--ap-muted) !important; }
.ap-btn-ghost:hover { color: var(--ap-text) !important; background: var(--ap-surface-3); }
.ap-btn-danger { color: #f43f5e !important; background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .25); }
.ap-btn-danger:hover { background: rgba(244, 63, 94, .18); }
.ap-shine::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); animation: ap-shine 3.8s ease-in-out infinite;
}
.apz .ap-link { color: var(--ap-brand); font-weight: 600; }
.apz .ap-link:hover { text-decoration: underline; }

/* Sidebar */
body.ap .app-sidebar.ap-sidebar {
    width: var(--sidebar-width); padding: 18px 14px 14px; gap: 6px;
    background: var(--ap-surface); border-right: 1px solid var(--ap-border);
    backdrop-filter: saturate(160%) blur(22px); -webkit-backdrop-filter: saturate(160%) blur(22px);
    z-index: 1040; transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .4s ease;
}
body.ap .app-sidebar.ap-sidebar { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--ap-border-strong) transparent; }
body.ap .app-sidebar.ap-sidebar > * { flex-shrink: 0; }
body.ap .app-sidebar.ap-sidebar > .ap-menu { flex: 1 0 auto; }
@media (max-height: 760px) {
    .ap-upgrade { padding: 12px 14px; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
    .ap-upgrade-icon { margin: 0; }
    .ap-upgrade p { display: none; }
    .ap-upgrade .ap-btn { flex: 1 0 100%; }
    body.ap .ap-menu .menu-item { padding-top: 9px; padding-bottom: 9px; }
    .ap-menu-label { padding-top: 10px; }
}
body.ap .ap-brand { padding: 6px 10px 18px; gap: .7rem; font-family: var(--ap-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ap-text) !important; }
.ap-brand-mark, .ap-auth-mark {
    position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--ap-surface-solid); color: var(--ap-brand); font-size: 1.15rem; isolation: isolate;
}
.ap-brand-mark::before, .ap-auth-mark::before {
    content: ""; position: absolute; inset: -2px; border-radius: 14px; z-index: -1;
    background: conic-gradient(from var(--ap-ang, 0deg), #10b981, #06b6d4, #8b5cf6, #10b981);
    animation: ap-ang 4s linear infinite;
}
.ap-brand-mark::after, .ap-auth-mark::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--ap-surface-solid); z-index: -1; }

.ap-menu { position: relative; padding: 0 !important; display: flex; flex-direction: column; gap: 3px; flex-grow: 1; }
.ap-menu-label { padding: 14px 14px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted) !important; opacity: .75; }
body.ap .ap-menu .menu-item {
    position: relative; z-index: 1; margin: 0; padding: 11px 14px; gap: 12px; border-radius: 14px;
    color: var(--ap-muted); font-weight: 600; background: transparent !important; box-shadow: none !important; transform: none !important;
    transition: color .25s ease;
}
body.ap .ap-menu .menu-item i { margin: 0; font-size: 1.08rem; width: 22px; text-align: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), color .25s ease; }
body.ap .ap-menu .menu-item span { color: inherit !important; }
body.ap .ap-menu .menu-item:hover { color: var(--ap-text); }
body.ap .ap-menu .menu-item:hover i { transform: scale(1.18) rotate(-6deg); }
body.ap .ap-menu .menu-item.active { color: var(--ap-text); }
body.ap .ap-menu .menu-item.active i { color: var(--ap-brand); }
.ap-menu-pill {
    position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; border-radius: 14px; opacity: 0;
    background: linear-gradient(100deg, rgba(16, 185, 129, .16), rgba(6, 182, 212, .08));
    border: 1px solid rgba(16, 185, 129, .25);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), height .3s ease, opacity .3s ease;
}
.ap-menu-pill::before {
    content: ""; position: absolute; left: -1px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px;
    background: var(--ap-grad); box-shadow: 0 0 12px rgba(16, 185, 129, .9);
}

.ap-upgrade {
    position: relative; overflow: hidden; margin: 10px 2px; padding: 18px; border-radius: 18px;
    background: linear-gradient(150deg, rgba(16, 185, 129, .16), rgba(139, 92, 246, .16));
    border: 1px solid var(--ap-border-strong);
}
.ap-upgrade::before {
    content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -60px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 70%); animation: ap-float 6s ease-in-out infinite;
}
.ap-upgrade-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 10px; background: var(--ap-grad); color: #fff !important; animation: ap-wiggle 4s ease-in-out infinite; }
.ap-upgrade strong { position: relative; display: block; font-family: var(--ap-head); font-size: 1rem; color: var(--ap-text); }
.ap-upgrade p { position: relative; margin: 4px 0 12px; font-size: .8rem; line-height: 1.45; }
.ap-upgrade .ap-btn { padding: .6rem 1rem; }
body.ap .ap-sidebar-foot { border-top: 1px solid var(--ap-border); padding: 14px 10px 4px; font-size: .72rem; color: var(--ap-muted) !important; }
.ap-sidebar-backdrop { display: none; }

/* Header */
body.ap .app-main { margin-left: var(--sidebar-width); }
body.ap .app-header.ap-header {
    height: 72px; padding: 0 30px; gap: 1rem; z-index: 1030;
    background: color-mix(in srgb, var(--ap-bg) 62%, transparent); border-bottom: 1px solid var(--ap-border);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.ap-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: .7;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .8), rgba(139, 92, 246, .8), transparent);
    background-size: 200% 100%; animation: ap-grad 8s linear infinite;
}
.ap-today { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .85rem; border-radius: 999px; background: var(--ap-surface-2); border: 1px solid var(--ap-border); white-space: nowrap; }
.ap-today-text { color: var(--ap-muted) !important; font-weight: 600; font-size: .85rem; }
.ap-today-text strong { color: var(--ap-brand); font-size: .95rem; }
.ap-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex: none; display: inline-block; }
.ap-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(16, 185, 129, .6); animation: ap-ping 1.8s ease-out infinite; }
.ap-clock { align-items: center; gap: .45rem; color: var(--ap-muted); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .85rem; }
.ap-clock span { color: var(--ap-muted) !important; }
body.ap .header-actions { gap: .6rem; }
body.ap .ap-icon-btn {
    width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; font-size: 1.05rem;
    background: var(--ap-surface-2); border: 1px solid var(--ap-border); color: var(--ap-text);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
body.ap .ap-icon-btn:hover { background: var(--ap-surface-3); border-color: var(--ap-brand); transform: rotate(14deg); color: var(--ap-text); }
body.ap .user-profile-btn.ap-user {
    gap: .55rem; padding: 4px 12px 4px 4px; border-radius: 999px; box-shadow: none;
    background: var(--ap-surface-2); border: 1px solid var(--ap-border); color: var(--ap-text) !important; font-weight: 600;
}
body.ap .user-profile-btn.ap-user:hover { border-color: var(--ap-brand); transform: translateY(-1px); background: var(--ap-surface-3); }
.ap-avatar {
    position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ap-grad); background-size: 200% 100%; color: #fff !important; font-family: var(--ap-head); font-weight: 800; font-size: .85rem;
    animation: ap-grad 5s ease infinite;
}
.ap-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #10b981; border: 2px solid var(--ap-surface-solid); }
.ap-user-name { color: var(--ap-text) !important; }
.ap-dropdown { padding: .4rem; border-radius: 16px; border: 1px solid var(--ap-border) !important; background: var(--ap-surface-solid) !important; box-shadow: var(--ap-shadow-lg); animation: ap-pop .25s ease; }
.ap-dropdown .dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 500; color: var(--ap-text) !important; }
.ap-dropdown .dropdown-item.text-danger { color: #f43f5e !important; }
.ap-dropdown .dropdown-item:hover { background: var(--ap-surface-3) !important; }
.ap-dropdown .dropdown-divider { border-color: var(--ap-border); }

/* Toasts */
.ap-toasts { position: fixed; top: 86px; right: 22px; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; max-width: min(420px, calc(100vw - 44px)); }
.ap-toast {
    --tc: #10b981; position: relative; overflow: hidden; margin: 0; padding: .95rem 2.8rem .95rem 1.1rem; border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); border-left: 4px solid var(--tc);
    background: color-mix(in srgb, var(--ap-surface-solid) 88%, var(--tc)); color: var(--ap-text) !important;
    box-shadow: var(--ap-shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    font-size: .88rem; font-weight: 500; animation: ap-toast-in .5s cubic-bezier(.2, 1.2, .3, 1);
}
.ap-toast.alert-warning { --tc: #f59e0b; }
.ap-toast.alert-danger, .ap-toast.alert-error { --tc: #f43f5e; }
.ap-toast.alert-info { --tc: #06b6d4; }
.ap-toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tc); opacity: .6; transform-origin: left; animation: ap-toast-timer 4s linear forwards; }
.ap-toast .btn-close { top: 50%; transform: translateY(-50%); padding: .9rem; }
[data-theme="dark"] .ap-toast .btn-close { filter: invert(1) grayscale(1) brightness(2); }
@keyframes ap-toast-timer { to { transform: scaleX(0); } }

/* Page */
body.ap .page-content.ap-page { position: relative; padding: 28px 32px 48px; max-width: 1440px; width: 100%; }

/* Reveal */
.ap-js .ap-reveal { opacity: 0; transform: translateY(22px); filter: blur(3px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), filter .7s ease var(--d, 0s); }
.ap-js .ap-reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Hero */
.ap-hero {
    position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
    padding: 2.4rem 2.6rem; border-radius: 28px; color: #fff; margin-bottom: 1.4rem;
    background: linear-gradient(120deg, #047857, #0e7490 45%, #5b21b6); background-size: 220% 220%;
    animation: ap-grad 14s ease infinite; box-shadow: 0 30px 70px -35px rgba(6, 182, 212, .8);
}
.ap-hero-mesh {
    position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 22px 22px;
    mask-image: linear-gradient(110deg, transparent 20%, #000 80%); -webkit-mask-image: linear-gradient(110deg, transparent 20%, #000 80%);
    animation: ap-pan 30s linear infinite;
}
.ap-hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ap-hero-orbs span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.ap-hero-orbs span:nth-child(1) { width: 260px; height: 260px; right: 18%; top: -120px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 65%); animation: ap-float 9s ease-in-out infinite; }
.ap-hero-orbs span:nth-child(2) { width: 180px; height: 180px; left: 38%; bottom: -100px; background: radial-gradient(circle at 30% 30%, rgba(52, 211, 153, .6), transparent 65%); animation: ap-float 11s ease-in-out infinite reverse; }
.ap-hero-orbs span:nth-child(3) { width: 90px; height: 90px; left: -20px; top: 30%; background: radial-gradient(circle at 30% 30%, rgba(196, 181, 253, .6), transparent 65%); animation: ap-float 7s ease-in-out infinite; }
.ap-hero-main { min-width: 0; }
.apz .ap-eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: .78rem; font-weight: 600; color: #fff; }
.apz .ap-eyebrow span { color: #fff !important; }
.apz .ap-eyebrow .ap-pulse { background: #a7f3d0; }
.apz .ap-hero-title { margin: 1rem 0 .55rem; color: #fff; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.12; text-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.apz .ap-hero-sub { margin: 0 0 1.5rem; max-width: 620px; color: rgba(255, 255, 255, .85); font-size: 1rem; line-height: 1.6; }
.apz .ap-hero-sub strong { color: #fff; }
.apz .ap-hero-sub .ap-link { color: #fff; text-decoration: underline; }
.ap-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.ap-countdown-card {
    position: relative; min-width: 330px; padding: 1.4rem; border-radius: 22px;
    background: rgba(5, 10, 20, .28); border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
    animation: ap-float 7s ease-in-out infinite;
}
.apz .ap-countdown-label { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.apz .ap-countdown-label i { animation: ap-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.ap-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .9rem 0 1rem; }
.ap-countdown div { padding: .65rem .3rem; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); }
.apz .ap-countdown strong { display: block; font-family: var(--ap-head); font-size: 1.75rem; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.apz .ap-countdown strong.tick { animation: ap-tick .45s ease; }
.apz .ap-countdown small { display: block; margin-top: .3rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.ap-countdown-event { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .1); font-weight: 600; }
.apz .ap-countdown-event span { color: #fff; }
.ap-countdown-event i { color: #4ade80; }
.ap-countdown-card.is-now .ap-countdown div { animation: ap-glow-pulse 1.2s ease-in-out infinite; }
.ap-clear { display: grid; justify-items: center; text-align: center; gap: .2rem; padding: .5rem 1rem; }
.apz .ap-clear strong { font-family: var(--ap-head); font-size: 1.25rem; color: #fff; }
.apz .ap-clear > span { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.ap-clear-orbit { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: .6rem; }
.ap-clear-orbit i { font-size: 2.6rem; color: #fff; animation: ap-breathe 3s ease-in-out infinite; }
.ap-clear-orbit span { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); animation: ap-spin 14s linear infinite; }
.ap-clear-orbit span::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 14px #a7f3d0; }

/* Stats */
.ap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.ap-stat {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.3rem; border-radius: var(--ap-radius);
    background: var(--ap-surface); border: 1px solid var(--ap-border); box-shadow: var(--ap-shadow);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .35s ease;
}
.ap-stat::before, .ap-item::before, .ap-tip::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(16, 185, 129, .14), transparent 45%);
}
.ap-stat:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, .4); box-shadow: var(--ap-shadow-lg); }
.ap-stat:hover::before, .ap-item:hover::before, .ap-tip:hover::before { opacity: 1; }
.ap-stat-icon, .ap-modal-icon { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.25rem; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.ap-stat:hover .ap-stat-icon { transform: scale(1.1) rotate(-8deg); }
.ap-ic-green { background: rgba(16, 185, 129, .15); color: #10b981 !important; }
.ap-ic-amber { background: rgba(245, 158, 11, .15); color: #f59e0b !important; }
.ap-ic-cyan { background: rgba(6, 182, 212, .15); color: #06b6d4 !important; }
.ap-ic-violet { background: rgba(139, 92, 246, .15); color: #8b5cf6 !important; }
.ap-stat > div { position: relative; min-width: 0; }
.apz .ap-stat strong { display: block; font-family: var(--ap-head); font-size: 1.9rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--ap-text); font-variant-numeric: tabular-nums; }
.apz .ap-stat > div > span { display: block; margin-top: .25rem; font-size: .82rem; font-weight: 500; color: var(--ap-muted); }
.ap-spark { position: absolute; right: 16px; top: 16px; width: 70px; height: 24px; overflow: visible; opacity: .8; }
.ap-spark path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.6s ease .3s; }
.ap-stat:nth-child(1) .ap-spark path { stroke: #10b981; }
.ap-stat:nth-child(2) .ap-spark path { stroke: #f59e0b; }
.ap-stat:nth-child(3) .ap-spark path { stroke: #06b6d4; }
.ap-stat.is-in .ap-spark path, html:not(.ap-js) .ap-spark path { stroke-dashoffset: 0; }
.apz .ap-stat-plan .ap-plan-name { font-size: 1.25rem; background: var(--ap-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ap-grad 5s ease infinite; }
.ap-ring { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; }
.ap-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 4.5; }
.ap-ring-track { stroke: var(--ap-surface-3); }
.ap-ring-fill { stroke: #10b981; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: calc(119.4 - 119.4 * var(--p) / 100); transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1) .2s; filter: drop-shadow(0 0 4px rgba(16, 185, 129, .7)); }
.ap-ring.is-high .ap-ring-fill { stroke: #f59e0b; filter: drop-shadow(0 0 4px rgba(245, 158, 11, .7)); }
.apz .ap-ring b { position: relative; font-family: var(--ap-head); font-size: .72rem; font-weight: 800; color: var(--ap-text); }
.ap-ring i { position: relative; font-size: 1.3rem; color: #8b5cf6; }

/* Panel and list */
.ap-panel {
    position: relative; padding: 1.5rem; border-radius: 26px; margin-bottom: 1.4rem;
    background: var(--ap-surface); border: 1px solid var(--ap-border); box-shadow: var(--ap-shadow);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.ap-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.apz .ap-panel-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.apz .ap-panel-head p { margin: .2rem 0 0; font-size: .85rem; }
.ap-tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ap-surface-2); border: 1px solid var(--ap-border); }
.ap-tab { position: relative; z-index: 1; border: 0; background: transparent; padding: .5rem .95rem; border-radius: 999px; font-weight: 600; font-size: .84rem; color: var(--ap-muted); transition: color .3s ease; }
.ap-tab em { font-style: normal; margin-left: .3rem; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; background: var(--ap-surface-3); }
.ap-tab.is-active { color: #fff; }
.ap-tab.is-active em { background: rgba(255, 255, 255, .25); }
.ap-tabs-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ap-grad); box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .8); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1); }

.ap-list { display: flex; flex-direction: column; gap: .7rem; }
.ap-item {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 62px 1fr auto; gap: 1.1rem; align-items: center;
    padding: 1rem 1.1rem 1rem 1.25rem; border-radius: 18px; cursor: pointer; outline: none;
    background: var(--ap-surface-2); border: 1px solid var(--ap-border);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .35s ease, background .3s ease, opacity .3s ease;
}
.ap-item::after {
    content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 4px; border-radius: 0 4px 4px 0;
    background: var(--ap-accent, #10b981); box-shadow: 0 0 14px var(--ap-accent, #10b981);
}
.ap-item-confirmed { --ap-accent: #10b981; }
.ap-item-upcoming { --ap-accent: #06b6d4; }
.ap-item-pending { --ap-accent: #f59e0b; }
.ap-item:hover, .ap-item:focus-visible { transform: translateY(-3px) scale(1.005); border-color: color-mix(in srgb, var(--ap-accent) 55%, transparent); box-shadow: var(--ap-shadow-lg); background: var(--ap-surface-3); }
.ap-item.is-hidden { display: none; }
.ap-date {
    position: relative; width: 62px; height: 66px; border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: 22px 1fr; text-align: center;
    background: var(--ap-surface-solid); border: 1px solid var(--ap-border); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .5);
    transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.ap-item:hover .ap-date { transform: rotate(-6deg) scale(1.06); }
.apz .ap-date span { display: grid; place-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--ap-accent, #10b981); }
.apz .ap-date strong { display: grid; place-items: center; font-family: var(--ap-head); font-size: 1.5rem; font-weight: 800; color: var(--ap-text); }
.ap-item-pending .ap-date { animation: ap-glow-amber 2.2s ease-in-out infinite; }
.ap-item-body { min-width: 0; }
.apz .ap-item-body h3 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.apz .ap-item-meta span { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 500; color: var(--ap-muted); }
.apz .ap-item-meta .ap-rel { padding: .1rem .5rem; border-radius: 999px; font-weight: 700; color: var(--ap-accent); background: color-mix(in srgb, var(--ap-accent) 13%, transparent); }
.apz .ap-item-meta .ap-rel:empty { display: none; }
.apz .ap-item-meta .ap-rel.is-soon { animation: ap-blink 1.4s ease-in-out infinite; }
.apz .ap-item-body p { margin: .4rem 0 0; font-size: .82rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-item-actions { display: flex; align-items: center; gap: .4rem; }
.ap-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.apz .ap-chip-green { color: #10b981; background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .3); }
.apz .ap-chip-cyan { color: #06b6d4; background: rgba(6, 182, 212, .12); border-color: rgba(6, 182, 212, .3); }
.apz .ap-chip-amber { color: #f59e0b; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
.ap-chip-btn { cursor: pointer; transition: transform .25s ease, background .25s ease; }
.ap-chip-btn:hover { transform: scale(1.05); background: rgba(245, 158, 11, .22); }
.ap-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ap-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; animation: ap-ping 1.8s ease-out infinite; }
.ap-act {
    width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--ap-border); background: transparent;
    color: var(--ap-muted) !important; transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}
.ap-act:hover { color: var(--ap-brand) !important; border-color: var(--ap-brand); background: rgba(16, 185, 129, .1); transform: translateY(-2px); }
.ap-act-danger:hover { color: #f43f5e !important; border-color: #f43f5e; background: rgba(244, 63, 94, .1); }
.ap-filter-empty { padding: 2rem; text-align: center; color: var(--ap-muted); }

/* Empty state */
.ap-empty { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.apz .ap-empty h3 { margin: 1.2rem 0 .4rem; font-size: 1.25rem; font-weight: 800; }
.apz .ap-empty p { max-width: 420px; margin: 0 auto 1.3rem; }
.ap-empty-art { position: relative; width: 220px; height: 170px; margin: 0 auto; }
.ap-empty-ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(16, 185, 129, .35); animation: ap-ripple 3s ease-out infinite; }
.ap-empty-ring:nth-child(2) { animation-delay: 1.5s; }
.ap-empty-bell { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 24px; display: grid; place-items: center; background: var(--ap-grad); color: #fff; font-size: 1.9rem; box-shadow: 0 18px 40px -14px rgba(16, 185, 129, .9); }
.ap-empty-bell i { animation: ap-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.ap-empty-card { position: absolute; display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border-radius: 12px; background: var(--ap-surface-solid); border: 1px solid var(--ap-border); box-shadow: var(--ap-shadow); }
.apz .ap-empty-card span { display: block; width: 44px; height: 7px; border-radius: 4px; background: var(--ap-surface-3); }
.ap-empty-card-1 { left: 0; top: 18px; color: #f59e0b; animation: ap-float 5s ease-in-out infinite; }
.ap-empty-card-2 { right: 0; bottom: 16px; color: #10b981; animation: ap-float 6s ease-in-out infinite reverse; }

/* Tips */
.ap-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ap-tip { position: relative; overflow: hidden; display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--ap-surface); border: 1px solid var(--ap-border); transition: transform .3s ease, border-color .3s ease; }
.ap-tip:hover { transform: translateY(-3px); border-color: var(--ap-border-strong); }
.ap-tip > i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ap-surface-3); color: var(--ap-brand); font-size: 1.05rem; }
.ap-tip > div { position: relative; }
.apz .ap-tip strong { display: block; font-family: var(--ap-head); font-size: .92rem; color: var(--ap-text); }
.apz .ap-tip span { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.45; color: var(--ap-muted); }

/* Modals */
.modal-content.ap-modal {
    border-radius: 24px; border: 1px solid var(--ap-border-strong); overflow: hidden;
    background: var(--ap-surface-solid); color: var(--ap-text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7);
}
.modal.fade .modal-dialog .ap-modal { transform: scale(.94); transition: transform .35s cubic-bezier(.2, 1.2, .3, 1); }
.modal.show .modal-dialog .ap-modal { transform: none; }
.ap-modal .modal-header { padding: 1.3rem 1.5rem .5rem; }
.apz .ap-modal .modal-title, .ap-modal.apz .modal-title { display: flex; align-items: center; gap: .7rem; font-family: var(--ap-head); font-weight: 800; font-size: 1.1rem; color: var(--ap-text); }
.ap-modal-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
.ap-modal .modal-body { padding: .6rem 1.5rem 1rem; color: var(--ap-text); }
.ap-modal .modal-footer { padding: .5rem 1.5rem 1.4rem; gap: .5rem; }
.ap-modal .modal-footer > * { margin: 0; }
.ap-modal-note { font-size: .85rem; margin-bottom: 1rem; }
.apz .form-label { font-weight: 600; font-size: .82rem; color: var(--ap-text); margin-bottom: .4rem; }
.apz .form-text { color: var(--ap-muted); font-size: .76rem; }
.apz .form-control {
    border-radius: 12px; padding: .7rem .9rem; font-size: .92rem;
    background: var(--ap-surface-2); border: 1px solid var(--ap-border-strong); color: var(--ap-text);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.apz .form-control::placeholder { color: var(--ap-muted); opacity: .7; }
.apz .form-control:focus { background: var(--ap-surface-2); color: var(--ap-text); border-color: var(--ap-brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
[data-theme="dark"] .apz .form-control { color-scheme: dark; }
[data-theme="dark"] .apz .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.ap-modal-meta { display: flex; gap: 1rem; flex-wrap: wrap; padding: .7rem .9rem; border-radius: 12px; background: var(--ap-surface-2); font-size: .8rem; }
.apz .ap-modal-meta span, .apz .ap-modal-meta b { color: var(--ap-muted); }
.apz .ap-modal-meta b { color: var(--ap-text); }
.ap-search-field { position: relative; }
.ap-search-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ap-muted); }
.apz .ap-search-field .form-control { padding-left: 2.6rem; }
.modal-backdrop.show { opacity: .6; backdrop-filter: blur(4px); }

/* Auth pages */
body.ap-auth { min-height: 100vh; overflow-x: hidden; }
body.ap-auth .auth-wrapper, :root[data-theme="dark"] body.ap-auth.auth-wrapper { background: var(--ap-bg) !important; }
.ap-auth-layout { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.ap-auth-show {
    position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
    margin: 16px; padding: 2.6rem; border-radius: 30px; color: #fff;
    background: linear-gradient(140deg, #047857, #0e7490 50%, #5b21b6); background-size: 220% 220%; animation: ap-grad 14s ease infinite;
}
.ap-auth-show .ap-hero-mesh { opacity: .45; }
.ap-auth-brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--ap-head); font-weight: 800; font-size: 1.35rem; color: #fff !important; text-decoration: none !important; }
.ap-auth-show .ap-auth-mark { background: rgba(255, 255, 255, .15); color: #fff; }
.ap-auth-show .ap-auth-mark::after { background: #0a5c56; }
.ap-auth-show h2 { margin: 2rem 0 .8rem; max-width: 460px; font-family: var(--ap-head); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.ap-auth-show > div > p { max-width: 420px; color: rgba(255, 255, 255, .85); font-size: 1.02rem; line-height: 1.6; }
.ap-auth-chat { position: relative; display: flex; flex-direction: column; gap: .6rem; max-width: 380px; margin: 2rem 0; }
.ap-auth-msg {
    max-width: 88%; padding: .7rem .9rem; border-radius: 16px 16px 16px 4px; font-size: .9rem; line-height: 1.45;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(14px) scale(.96); animation: ap-msg 9s ease infinite;
}
.ap-auth-msg b { color: #fff; }
.ap-auth-msg small { display: block; margin-top: .25rem; opacity: .7; font-size: .7rem; }
.ap-auth-msg.is-out { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: rgba(16, 185, 129, .55); }
.ap-auth-msg:nth-child(2) { animation-delay: .9s; }
.ap-auth-msg:nth-child(3) { animation-delay: 1.8s; }
.ap-auth-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .85rem; color: rgba(255, 255, 255, .85); }
.ap-auth-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.ap-auth-side { position: relative; display: grid; place-items: center; padding: 2rem 1.2rem; }
.ap-auth-top { position: absolute; top: 18px; right: 18px; display: flex; gap: .5rem; z-index: 5; }
.ap-auth-top .ap-icon-btn, body.ap-auth .ap-icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; padding: 0;
    background: var(--ap-surface) !important; border: 1px solid var(--ap-border-strong) !important; color: var(--ap-text) !important;
    backdrop-filter: blur(12px); transition: transform .3s ease, border-color .3s ease;
}
body.ap-auth .ap-icon-btn:hover { transform: rotate(16deg); border-color: var(--ap-brand) !important; }

body.ap-auth .auth-container { position: relative; z-index: 2; width: 100%; max-width: 440px; }
body.ap-auth .auth-logo { display: flex !important; align-items: center; justify-content: center; gap: .7rem; margin-bottom: 1.4rem; font-family: var(--ap-head); font-weight: 800; font-size: 1.6rem; color: var(--ap-text) !important; }
body.ap-auth .auth-logo .brand-icon { display: none; }
body.ap-auth .custom-card {
    position: relative; overflow: visible; padding: 2.2rem 2rem; border-radius: 26px; isolation: isolate;
    background: var(--ap-surface) !important; border: 1px solid var(--ap-border-strong) !important;
    backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: var(--ap-shadow-lg) !important; animation: ap-card-in .8s cubic-bezier(.2, .8, .2, 1) both;
}
body.ap-auth .custom-card:hover { transform: none; }
body.ap-auth .custom-card::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; height: auto; opacity: 1; border-radius: 27px; padding: 1px;
    background: conic-gradient(from var(--ap-ang, 0deg), transparent 0 60%, #10b981, #06b6d4, #8b5cf6, transparent 95%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: ap-ang 5s linear infinite;
}
body.ap-auth .custom-card h3 { font-family: var(--ap-head); font-weight: 800; letter-spacing: -.02em; color: var(--ap-text) !important; }
body.ap-auth .custom-card p, body.ap-auth .custom-card .text-muted, body.ap-auth .custom-card small, body.ap-auth .custom-card .form-text { color: var(--ap-muted) !important; }
body.ap-auth .form-label { font-weight: 600 !important; font-size: .82rem; color: var(--ap-text) !important; }
body.ap-auth .input-group { border-radius: 14px; border: 1px solid var(--ap-border-strong); background: var(--ap-surface-2); transition: border-color .25s ease, box-shadow .25s ease; }
body.ap-auth .input-group:focus-within { border-color: var(--ap-brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
body.ap-auth .input-group-text { background: transparent !important; border: 0 !important; color: var(--ap-muted) !important; padding-left: 1rem; }
body.ap-auth .ap-eye { cursor: pointer; padding-right: 1rem; }
body.ap-auth .ap-eye:hover i { color: var(--ap-text) !important; }
body.ap-auth .input-group-text i { color: var(--ap-muted) !important; transition: color .25s ease, transform .3s ease; }
body.ap-auth .input-group:focus-within .input-group-text i { color: var(--ap-brand) !important; transform: scale(1.15); }
body.ap-auth .form-control, body.ap-auth .form-select {
    background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--ap-text) !important; padding: .8rem .9rem; font-size: .95rem;
}
body.ap-auth .form-control::placeholder { color: var(--ap-muted); opacity: .65; }
body.ap-auth > .auth-container .form-control:not(.input-group .form-control),
body.ap-auth .custom-card > form > .mb-3 > .form-control,
body.ap-auth .custom-card .form-control.standalone { border: 1px solid var(--ap-border-strong) !important; border-radius: 14px; background: var(--ap-surface-2) !important; }
[data-theme="dark"] body.ap-auth .form-control { color-scheme: dark; }
body.ap-auth .form-check-input { background-color: var(--ap-surface-2); border-color: var(--ap-border-strong); }
body.ap-auth .form-check-input:checked { background-color: #10b981; border-color: #10b981; }
body.ap-auth .btn-primary-custom, body.ap-auth .btn-success {
    border: 0; border-radius: 999px !important; padding: .85rem 1.2rem !important; font-family: var(--ap-head); font-weight: 700; color: #fff !important;
    background: var(--ap-grad) !important; background-size: 200% 100% !important; animation: ap-grad 6s ease infinite;
    box-shadow: 0 14px 30px -12px rgba(16, 185, 129, .8);
}
body.ap-auth .btn-primary-custom:hover, body.ap-auth .btn-success:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(6, 182, 212, .85); }
body.ap-auth a.text-success, body.ap-auth .custom-card a { color: var(--ap-brand) !important; }
body.ap-auth .alert { border-radius: 14px; }
body.ap-auth hr { border-color: var(--ap-border-strong); opacity: 1; }
body.ap-auth .ap-auth-solo { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 4.5rem 1.2rem 2rem; }

/* Inner pages */
.ap-wrap { max-width: 980px; margin: 0 auto; }
.ap-wrap-wide { max-width: 1180px; margin: 0 auto; }
.ap-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.apz .ap-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-brand); background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .25); }
.ap-head.apz h1 { margin: .7rem 0 .3rem; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; letter-spacing: -.03em; }
.ap-head.apz h1 .ap-grad-text { background: var(--ap-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ap-grad 6s ease infinite; }
.ap-head.apz p { margin: 0; max-width: 560px; }
.ap-head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.2rem; align-items: start; }
.ap-cols-even { grid-template-columns: 1fr 1fr; }
.ap-stack { display: grid; gap: 1.2rem; }

.ap-card {
    position: relative; padding: 1.5rem; border-radius: 24px;
    background: var(--ap-surface); border: 1px solid var(--ap-border); box-shadow: var(--ap-shadow);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.ap-card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.2rem; }
.ap-card-head > i, .ap-card-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-size: 1.1rem; }
.apz .ap-card-head h2 { margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.apz .ap-card-head p { margin: .1rem 0 0; font-size: .82rem; }
.ap-card-head .ap-head-end { margin-left: auto; }
.ap-card-sticky { position: sticky; top: 92px; }

.apz .form-select {
    border-radius: 12px; padding: .7rem 2.4rem .7rem .9rem; font-size: .92rem;
    background-color: var(--ap-surface-2); border: 1px solid var(--ap-border-strong); color: var(--ap-text);
}
.apz .form-select:focus { border-color: var(--ap-brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
[data-theme="dark"] .apz .form-select { color-scheme: dark; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
[data-theme="dark"] .apz .form-select option { background: #0d1322; color: #f1f5f9; }
.apz .form-control[readonly] { opacity: .75; cursor: default; }
.apz .form-control[readonly]:focus { box-shadow: none; border-color: var(--ap-border-strong); }
.apz .ap-errors, .apz .errorlist { list-style: none; padding: 0; margin: .35rem 0 0; color: #f43f5e; font-size: .8rem; font-weight: 600; }
.ap-input-icon { position: relative; }
.ap-input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ap-muted); pointer-events: none; transition: color .25s ease; }
.apz .ap-input-icon .form-control, .apz .ap-input-icon .form-select { padding-left: 2.6rem; }
.ap-input-icon:focus-within > i { color: var(--ap-brand); }

.ap-switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--ap-border); }
.ap-switch-row:first-of-type { border-top: 0; }
.apz .ap-switch-row strong { display: block; font-size: .92rem; color: var(--ap-text); }
.apz .ap-switch-row span { display: block; margin-top: .15rem; font-size: .8rem; color: var(--ap-muted); }
.apz .form-switch { padding: 0; margin: 0; min-height: 0; }
.apz .form-switch .form-check-input {
    width: 48px; height: 27px; margin: 0; float: none; cursor: pointer; border: 1px solid var(--ap-border-strong);
    background-color: var(--ap-surface-3); transition: background-color .3s ease, background-position .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.apz .form-switch .form-check-input:checked { background-color: #10b981; border-color: #10b981; box-shadow: 0 0 16px rgba(16, 185, 129, .55); }
.apz .form-switch .form-check-input:focus { box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }

.ap-card-danger { border-color: rgba(244, 63, 94, .3); background: linear-gradient(140deg, rgba(244, 63, 94, .1), transparent 60%), var(--ap-surface); }
.ap-card-danger.apz .ap-card-head h2 { color: #f43f5e; }

.ap-acc { border: 1px solid var(--ap-border); border-radius: 16px; background: var(--ap-surface-2); overflow: hidden; transition: border-color .3s ease; }
.ap-acc + .ap-acc { margin-top: .7rem; }
.ap-acc[open] { border-color: rgba(16, 185, 129, .35); }
.ap-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; font-family: var(--ap-head); font-weight: 700; color: var(--ap-text); }
.ap-acc summary::-webkit-details-marker { display: none; }
.ap-acc summary i:first-child { color: var(--ap-brand); }
.ap-acc summary::after { content: "\F282"; font-family: "bootstrap-icons"; margin-left: auto; color: var(--ap-muted); transition: transform .3s ease; }
.ap-acc[open] summary::after { transform: rotate(180deg); }
.ap-acc-body { padding: 0 1.1rem 1.1rem; font-size: .84rem; line-height: 1.65; animation: ap-pop .35s ease; }
.apz .ap-acc-body p, .apz .ap-acc-body li { color: var(--ap-muted); }
.apz .ap-acc-body h6 { margin: 1rem 0 .4rem; font-size: .88rem; font-weight: 700; }
.apz .ap-acc-body strong { color: var(--ap-text); }

/* History timeline */
.ap-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.ap-timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--ap-brand), var(--ap-brand-3), transparent); opacity: .45; }
.ap-tl { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: .9rem; padding: .25rem 0 1.1rem; }
.ap-tl-dot { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; background: var(--ap-surface-solid); border: 1px solid var(--ap-border-strong); color: var(--ap-brand); }
.ap-tl-failed .ap-tl-dot { color: #f43f5e; }
.ap-tl-body { min-width: 0; padding: .8rem 1rem; border-radius: 16px; background: var(--ap-surface-2); border: 1px solid var(--ap-border); transition: transform .3s ease, border-color .3s ease; }
.ap-tl-body:hover { transform: translateX(4px); border-color: var(--ap-border-strong); }
.ap-tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.apz .ap-tl-body h3 { margin: 0; font-size: .93rem; font-weight: 700; }
.apz .ap-tl-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .3rem; font-size: .76rem; color: var(--ap-muted); }
.apz .ap-tl-body p { margin: .45rem 0 0; font-size: .8rem; line-height: 1.5; white-space: pre-line; }
.apz .ap-chip-rose { color: #f43f5e; background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .3); }
.apz .ap-chip-violet { color: #8b5cf6; background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .3); }
.ap-scroll { max-height: 620px; overflow-y: auto; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--ap-border-strong) transparent; }
.ap-mini-empty { display: grid; justify-items: center; gap: .5rem; padding: 2.6rem 1rem; text-align: center; color: var(--ap-muted); }
.ap-mini-empty i { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; font-size: 1.5rem; background: var(--ap-surface-3); color: var(--ap-brand); animation: ap-float 4s ease-in-out infinite; }

/* Plans */
.ap-usage { margin-top: 1rem; }
.ap-usage-bar { height: 10px; border-radius: 999px; background: var(--ap-surface-3); overflow: hidden; }
.ap-usage-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ap-grad); background-size: 200% 100%; animation: ap-grad 4s ease infinite; transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; box-shadow: 0 0 14px rgba(16, 185, 129, .6); }
.apz .ap-usage-meta { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .78rem; color: var(--ap-muted); }
.ap-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ap-plan { position: relative; display: flex; flex-direction: column; padding: 1.8rem; border-radius: 26px; background: var(--ap-surface); border: 1px solid var(--ap-border); box-shadow: var(--ap-shadow); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease; isolation: isolate; }
.ap-plan:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow-lg); }
.ap-plan-pro { border-color: transparent; background: linear-gradient(160deg, rgba(16, 185, 129, .1), rgba(139, 92, 246, .1) 70%), var(--ap-surface-solid); }
.ap-plan-pro::before {
    content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 27px; padding: 1.5px;
    background: conic-gradient(from var(--ap-ang, 0deg), #10b981, #06b6d4, #8b5cf6, #10b981);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: ap-ang 5s linear infinite;
}
.ap-plan-pro::after { content: ""; position: absolute; inset: 20% 10% -10%; z-index: -2; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, .35), transparent 70%); filter: blur(40px); }
.ap-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.apz .ap-plan h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.apz .ap-plan-sub { margin: .2rem 0 0; font-size: .85rem; }
.apz .ap-price { display: flex; align-items: baseline; gap: .4rem; margin: 1.3rem 0 1.1rem; }
.apz .ap-price strong { font-family: var(--ap-head); font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ap-text); }
.apz .ap-plan-pro .ap-price strong { background: var(--ap-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ap-grad 5s ease infinite; }
.apz .ap-price span { color: var(--ap-muted); }
.ap-feats { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .75rem; flex: 1; }
.apz .ap-feats li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--ap-text); }
.ap-feats li > i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: .75rem; background: rgba(16, 185, 129, .15); color: #10b981; }
.apz .ap-feats li.is-soon { color: var(--ap-muted); }
.ap-feats li.is-soon > i { background: rgba(139, 92, 246, .14); color: #8b5cf6; }
.apz .ap-soon { margin-left: auto; padding: .1rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b5cf6; background: rgba(139, 92, 246, .14); }
.apz .ap-badge-pop { padding: .32rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #fff; background: var(--ap-grad); background-size: 200% 100%; animation: ap-grad 4s ease infinite; box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .8); white-space: nowrap; }
.apz .ap-badge-current { padding: .32rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #10b981; background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .3); white-space: nowrap; }
.ap-btn[disabled], .ap-btn.is-disabled { opacity: .55; pointer-events: none; }
.apz .ap-note { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; font-size: .83rem; line-height: 1.5; color: var(--ap-muted); background: var(--ap-surface-2); border: 1px dashed var(--ap-border-strong); }
.ap-note > i { color: var(--ap-brand); font-size: 1rem; margin-top: .05rem; }
.ap-summary { display: grid; gap: .1rem; border-radius: 16px; border: 1px solid var(--ap-border); overflow: hidden; margin-bottom: 1.2rem; }
.apz .ap-summary > div { display: flex; justify-content: space-between; padding: .9rem 1.1rem; background: var(--ap-surface-2); color: var(--ap-text); }
.apz .ap-summary > div span { color: var(--ap-muted); }
.apz .ap-summary .ap-summary-total { background: rgba(16, 185, 129, .1); font-weight: 800; }

/* Profile */
.ap-profile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding: 2rem; border-radius: 28px; margin-bottom: 1.2rem; color: #fff; background: linear-gradient(120deg, #047857, #0e7490 45%, #5b21b6); background-size: 220% 220%; animation: ap-grad 14s ease infinite; box-shadow: 0 30px 70px -35px rgba(6, 182, 212, .8); }
.ap-profile-avatar { position: relative; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ap-head); font-size: 2.3rem; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .4); }
.ap-profile-avatar::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); animation: ap-spin 18s linear infinite; }
.ap-profile-avatar::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: #4ade80; border: 3px solid #0e7490; }
.ap-profile-info { min-width: 0; flex: 1; }
.ap-profile.apz h1 { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.apz .ap-profile-handle { margin: .2rem 0 .8rem; color: rgba(255, 255, 255, .8); }
.ap-profile-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.apz .ap-profile-tags span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); }
.ap-info { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ap-info-item { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 16px; background: var(--ap-surface-2); border: 1px solid var(--ap-border); min-width: 0; transition: border-color .3s ease, transform .3s ease; }
.ap-info-item:hover { border-color: var(--ap-border-strong); transform: translateY(-2px); }
.ap-info-item > i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ap-surface-3); color: var(--ap-brand); }
.ap-info-item > div { min-width: 0; }
.apz .ap-info-item small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-muted); }
.apz .ap-info-item strong { display: block; margin-top: .1rem; font-size: .92rem; color: var(--ap-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-quick { display: grid; gap: .6rem; }
.ap-quick a { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 16px; background: var(--ap-surface-2); border: 1px solid var(--ap-border); color: var(--ap-text) !important; font-weight: 600; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.ap-quick a:hover { transform: translateX(4px); border-color: rgba(16, 185, 129, .4); background: var(--ap-surface-3); }
.ap-quick a > i:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ap-surface-3); color: var(--ap-brand); }
.ap-quick a > i:last-child { margin-left: auto; color: var(--ap-muted); transition: transform .3s ease; }
.ap-quick a:hover > i:last-child { transform: translateX(3px); color: var(--ap-brand); }
.ap-quick a.is-danger, .ap-quick a.is-danger > i { color: #f43f5e !important; }

/* Mail composer */
.ap-mail { overflow: hidden; border-radius: 22px; border: 1px solid var(--ap-border-strong); background: var(--ap-surface-solid); box-shadow: var(--ap-shadow-lg); }
.ap-mail-bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--ap-border); background: var(--ap-surface-2); }
.ap-mail-bar > span { width: 11px; height: 11px; border-radius: 50%; }
.ap-mail-bar > span:nth-child(1) { background: #f43f5e; }
.ap-mail-bar > span:nth-child(2) { background: #f59e0b; }
.ap-mail-bar > span:nth-child(3) { background: #10b981; }
.apz .ap-mail-bar em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--ap-muted); }
.ap-mail-row { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: .6rem; padding: .25rem 1.1rem; border-bottom: 1px solid var(--ap-border); }
.apz .ap-mail-row label { margin: 0; font-size: .78rem; font-weight: 700; color: var(--ap-muted); }
.ap-mail .form-control { border: 0; background: transparent; box-shadow: none; padding: .75rem 0; border-radius: 0; }
.ap-mail .form-control:focus { background: rgba(16, 185, 129, .04); box-shadow: none; }
.ap-mail-row:focus-within { box-shadow: inset 3px 0 0 #10b981; }
.ap-mail textarea.form-control { padding: 1rem 1.1rem; min-height: 190px; resize: vertical; }
.ap-mail-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 1.1rem; border-top: 1px solid var(--ap-border); background: var(--ap-surface-2); }
.apz .ap-mail-foot small { color: var(--ap-muted); }
.ap-to-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(16, 185, 129, .12); color: #10b981; }
.apz .ap-to-pill span { color: #10b981; }
.ap-examples { display: grid; gap: .6rem; }
.ap-example { position: relative; overflow: hidden; display: flex; align-items: center; gap: .8rem; width: 100%; padding: .85rem 1rem; text-align: left; border-radius: 16px; background: var(--ap-surface-2); border: 1px solid var(--ap-border); color: var(--ap-text); cursor: pointer; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.ap-example:hover { transform: translateY(-2px); border-color: rgba(16, 185, 129, .45); background: var(--ap-surface-3); }
.ap-example > i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 1rem; }
.apz .ap-example strong { display: block; font-size: .88rem; color: var(--ap-text); }
.apz .ap-example span { display: block; font-size: .78rem; color: var(--ap-muted); }
.ap-example::after { content: "\F4FE"; font-family: "bootstrap-icons"; margin-left: auto; color: var(--ap-muted); transition: transform .3s ease, color .3s ease; }
.ap-example:hover::after { transform: rotate(90deg); color: var(--ap-brand); }
.ap-flow { display: grid; gap: .9rem; }
.ap-flow-step { display: flex; gap: .8rem; align-items: flex-start; }
.ap-flow-step > b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; color: #fff; background: var(--ap-grad); box-shadow: 0 6px 16px -6px rgba(16, 185, 129, .8); }
.apz .ap-flow-step strong { display: block; font-size: .88rem; color: var(--ap-text); }
.apz .ap-flow-step span { display: block; font-size: .8rem; color: var(--ap-muted); line-height: 1.45; }
.is-flash { animation: ap-flash .8s ease; }

/* Live preview */
.ap-preview { position: relative; overflow: hidden; padding: 1.2rem; border-radius: 22px; background: #0b141a; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--ap-shadow-lg); }
[data-theme="light"] .ap-preview { background: #efeae2; border-color: var(--ap-border); }
.ap-preview-head { display: flex; align-items: center; gap: .6rem; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
[data-theme="light"] .ap-preview-head { border-color: rgba(0, 0, 0, .08); }
.ap-preview-head .ap-avatar { width: 36px; height: 36px; }
.apz .ap-preview-head strong { display: block; font-size: .9rem; color: #e9edef; }
.apz .ap-preview-head small { display: block; font-size: .72rem; color: #8696a0; }
[data-theme="light"] .apz .ap-preview-head strong { color: #111b21; }
.ap-bubble { position: relative; max-width: 92%; padding: .7rem .85rem 1.3rem; border-radius: 4px 14px 14px 14px; background: #202c33; color: #e9edef; font-size: .87rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .2); animation: ap-pop .4s ease; }
[data-theme="light"] .ap-bubble { background: #fff; color: #111b21; }
.apz .ap-bubble b, .apz .ap-bubble span { color: inherit; }
.apz .ap-bubble .ap-bubble-time { position: absolute; right: .6rem; bottom: .35rem; font-size: .66rem; color: #8696a0; }
.apz .ap-bubble [data-preview="title"]:empty::before { content: "Your reminder"; opacity: .5; }
.apz .ap-preview-foot { margin-top: .9rem; font-size: .76rem; color: #8696a0; display: flex; align-items: center; gap: .4rem; }
.ap-quick-times { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.ap-qt { padding: .35rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid var(--ap-border-strong); background: var(--ap-surface-2); color: var(--ap-muted); cursor: pointer; transition: all .25s ease; }
.ap-qt:hover { color: var(--ap-brand); border-color: var(--ap-brand); transform: translateY(-1px); }
.ap-form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* Keyframes */
@keyframes ap-flash { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); } 100% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); } }
@property --ap-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ap-ang { to { --ap-ang: 360deg; } }
@keyframes ap-grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ap-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.1); } 100% { transform: translate(-40px, 70px) scale(.95); } }
@keyframes ap-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ap-pan { to { background-position: 220px 220px; } }
@keyframes ap-shine { 0% { left: -60%; } 55%, 100% { left: 140%; } }
@keyframes ap-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@keyframes ap-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes ap-ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(18deg); } 72% { transform: rotate(-16deg); } 79% { transform: rotate(10deg); } 86% { transform: rotate(-6deg); } }
@keyframes ap-tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ap-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes ap-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ap-toast-in { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes ap-ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ap-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes ap-glow-amber { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .45); } 50% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); } }
@keyframes ap-glow-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .4); } 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } }
@keyframes ap-card-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ap-msg { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-8px); } }

/* Responsive */
@media (max-width: 1199.98px) {
    .ap-stats { grid-template-columns: repeat(2, 1fr); }
    .ap-hero { grid-template-columns: 1fr; }
    .ap-countdown-card { min-width: 0; max-width: 460px; }
}
@media (max-width: 991.98px) {
    body.ap .app-main { margin-left: 0; }
    body.ap .app-sidebar.ap-sidebar { transform: translateX(-105%); box-shadow: none; }
    body.ap .app-sidebar.ap-sidebar.show { transform: none; box-shadow: 30px 0 80px -20px rgba(0, 0, 0, .6); background: var(--ap-surface-solid); }
    .ap-sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(2, 6, 23, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
    .ap-sidebar.show + .ap-sidebar-backdrop { opacity: 1; pointer-events: auto; }
    body.ap .app-header.ap-header { padding: 0 18px; }
    body.ap .page-content.ap-page { padding: 20px 18px 40px; }
    .ap-tips { grid-template-columns: 1fr; }
    .ap-cols, .ap-cols-even, .ap-plans { grid-template-columns: 1fr; }
    .ap-card-sticky { position: relative; top: 0; }
    .ap-auth-layout { grid-template-columns: 1fr; }
    .ap-auth-show { display: none; }
}
@media (max-width: 575.98px) {
    .ap-hero { padding: 1.6rem 1.3rem; border-radius: 22px; }
    .ap-countdown strong { font-size: 1.4rem !important; }
    .ap-stats { gap: .7rem; }
    .ap-stat { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem; }
    .ap-spark { width: 56px; right: 10px; top: 14px; bottom: auto; }
    .apz .ap-stat strong { font-size: 1.55rem; }
    .ap-panel { padding: 1.1rem; border-radius: 22px; }
    .ap-tabs { width: 100%; }
    .ap-tab { flex: 1; padding: .5rem .3rem; font-size: .78rem; white-space: nowrap; }
    .ap-tab em { margin-left: .2rem; padding: .05rem .35rem; }
    .ap-item { grid-template-columns: 54px 1fr; gap: .85rem; padding: .9rem; }
    .ap-date { width: 54px; height: 60px; }
    .ap-item-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .ap-item-actions .ap-chip { margin-right: auto; }
    .ap-today-text { font-size: .78rem; }
    body.ap .header-actions { gap: .4rem; }
    body.ap-auth .custom-card { padding: 1.7rem 1.3rem; }
    .ap-card, .ap-plan { padding: 1.2rem; border-radius: 20px; }
    .ap-info { grid-template-columns: 1fr; }
    .ap-profile { padding: 1.4rem; gap: 1rem; flex-direction: column; align-items: flex-start; }
    .ap-profile-info { width: 100%; }
    .ap-profile > .ap-btn { width: 100%; }
    .apz .ap-profile-tags span { white-space: nowrap; }
    .ap-profile-avatar { width: 72px; height: 72px; font-size: 1.8rem; }
    .apz .ap-price strong { font-size: 2.4rem; }
    .ap-mail-row { grid-template-columns: 62px 1fr; padding: .2rem .9rem; }
    .ap-head-actions { width: 100%; }
    .ap-toasts { top: 80px; right: 12px; left: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ap *, .ap *::before, .ap *::after, .ap-auth *, .ap-auth *::before, .ap-auth *::after { animation: none !important; transition: none !important; }
    .ap-js .ap-reveal { opacity: 1; transform: none; filter: none; }
    .ap-auth-msg { opacity: 1; transform: none; }
    .ap-spark path { stroke-dashoffset: 0; }
}
