/**
 * Petcard Studio — design system
 * Layered on top of Bootstrap 5 and professional-design.css.
 * Overrides core Bootstrap components so every legacy template
 * automatically inherits the new aesthetic.
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Surface & ink */
    --ps-bg: #F6F5F2;
    --ps-bg-soft: #FBFAF8;
    --ps-surface: #FFFFFF;
    --ps-ink: #0E0C1F;
    --ps-ink-2: #2E2A47;
    --ps-ink-3: #6B6884;
    --ps-ink-4: #A4A2B8;
    --ps-line: #ECEAE5;
    --ps-line-2: #E3E0D9;
    --ps-line-soft: #F2F0EB;

    /* Brand */
    --ps-brand: #6E59F2;
    --ps-brand-2: #4FB8FF;
    --ps-brand-3: #F472B6;
    --ps-brand-indigo: #667eea;
    --ps-brand-violet: #764ba2;
    --ps-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ps-grad-warm: linear-gradient(135deg, #FFB199 0%, #FF6E7F 50%, #764ba2 100%);
    --ps-grad-soft: linear-gradient(135deg, rgba(102,126,234,0.10) 0%, rgba(118,75,162,0.10) 100%);

    /* Semantic */
    --ps-success: #10B981;
    --ps-warning: #F59E0B;
    --ps-danger: #EF4444;
    --ps-info: #3B82F6;
    --ps-purple: #8B5CF6;

    /* Category palette (calendar / appointments) */
    --ps-cat-rehab-bg: #EEF2FF;   --ps-cat-rehab-ink: #4338CA;   --ps-cat-rehab-bar: #6366F1;
    --ps-cat-massage-bg: #FFF1F2; --ps-cat-massage-ink: #BE123C; --ps-cat-massage-bar: #F43F5E;
    --ps-cat-behav-bg: #FEF3C7;   --ps-cat-behav-ink: #92400E;   --ps-cat-behav-bar: #F59E0B;
    --ps-cat-consult-bg: #ECFDF5; --ps-cat-consult-ink: #047857; --ps-cat-consult-bar: #10B981;
    --ps-cat-home-bg: #ECFEFF;    --ps-cat-home-ink: #155E75;    --ps-cat-home-bar: #06B6D4;
    --ps-cat-control-bg: #F5F3FF; --ps-cat-control-ink: #6D28D9; --ps-cat-control-bar: #8B5CF6;

    /* Radii */
    --ps-r-xs: 8px;
    --ps-r-sm: 10px;
    --ps-r-md: 14px;
    --ps-r-lg: 18px;
    --ps-r-xl: 24px;
    --ps-r-full: 999px;

    /* Shadows */
    --ps-shadow-1: 0 1px 2px rgba(14,12,31,0.04), 0 1px 3px rgba(14,12,31,0.06);
    --ps-shadow-2: 0 4px 12px rgba(14,12,31,0.06), 0 2px 4px rgba(14,12,31,0.04);
    --ps-shadow-3: 0 12px 32px rgba(14,12,31,0.08), 0 4px 12px rgba(14,12,31,0.05);
    --ps-shadow-brand: 0 8px 24px rgba(110,89,242,0.32);
    --ps-shadow-warm: 0 8px 24px rgba(255,110,127,0.32);

    /* Layout */
    --ps-sidebar-w: 264px;
    --ps-topbar-h: 72px;

    /* Bootstrap variable overrides */
    --bs-primary: #6E59F2;
    --bs-primary-rgb: 110, 89, 242;
    --bs-body-bg: var(--ps-bg);
    --bs-body-color: var(--ps-ink);
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
html, body {
    background: var(--ps-bg);
    color: var(--ps-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 92% -10%, rgba(118,75,162,0.10) 0%, transparent 45%),
        radial-gradient(circle at 0% 95%, rgba(102,126,234,0.07) 0%, transparent 40%),
        var(--ps-bg);
    background-attachment: fixed;
}

::selection { background: rgba(110,89,242,0.25); color: var(--ps-ink); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--ps-ink);
    letter-spacing: -0.018em;
    line-height: 1.2;
}

a { color: var(--ps-brand); text-decoration: none; }
a:hover { color: var(--ps-brand-violet); }

code, kbd, .mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

/* ============================================================
   APP SHELL
   ============================================================ */
body.ps-app-shell {
    display: block;
}

.ps-app {
    display: grid;
    grid-template-columns: var(--ps-sidebar-w) 1fr;
    min-height: 100vh;
}

/* Sidebar */
.ps-sidebar {
    position: sticky; top: 0;
    height: 100vh;
    padding: 18px 14px 18px 18px;
    background: transparent;
    display: flex; flex-direction: column;
    z-index: 100;
}

.ps-sidebar-inner {
    background: linear-gradient(165deg, #1A1538 0%, #2A1F5A 45%, #432982 100%);
    border-radius: var(--ps-r-xl);
    flex: 1; min-height: 0; padding: 22px 14px;
    display: flex; flex-direction: column;
    color: rgba(255,255,255,0.85);
    position: relative;
    /* x-hidden keeps the decorative radial-blobs clipped inside the rounded
       panel; y-auto lets the nav scroll when the viewport can't fit it all. */
    overflow-x: hidden; overflow-y: auto;
    box-shadow: var(--ps-shadow-3);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.ps-sidebar-inner::-webkit-scrollbar { width: 6px; }
.ps-sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.ps-sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
}
.ps-sidebar-inner::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }
.ps-sidebar-inner::before {
    content: ''; position: absolute; top: -40%; right: -20%;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(244,114,182,0.28) 0%, transparent 65%);
    pointer-events: none;
}
.ps-sidebar-inner::after {
    content: ''; position: absolute; bottom: -10%; left: -25%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(79,184,255,0.20) 0%, transparent 65%);
    pointer-events: none;
}

.ps-brand {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 12px 24px; position: relative; z-index: 2;
    text-decoration: none;
}
.ps-brand:hover { text-decoration: none; }
.ps-brand-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--ps-grad-warm);
    display: grid; place-items: center;
    color: white; font-weight: 800; font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(244,114,182,0.4);
    flex-shrink: 0;
}
.ps-brand-wordmark {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
    color: white;
}
.ps-brand-wordmark span { opacity: 0.55; font-weight: 500; }

/* Real-logo variant: petcard-black.svg contains both the paw mark and the
   "PetCard.pl" wordmark, so it stands alone — no separate brand-mark image.
   Drives off height (SVG aspect 1920:564.6 ≈ 3.4:1) so the logo fills the
   sidebar header band predictably even when the flex container is fluid. */
.ps-brand-wordmark-img {
    height: 36px;
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.98;
}

.ps-practice-pill {
    margin: 0 4px 20px; padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--ps-r-md);
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; cursor: pointer;
    transition: background 0.2s ease;
    position: relative; z-index: 2;
}
.ps-practice-pill:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.ps-practice-avatar {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, #FFB199, #FF6E7F);
    display: grid; place-items: center;
    color: white; font-weight: 700; font-size: 12px;
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.ps-practice-meta { flex: 1; min-width: 0; }
.ps-practice-name {
    font-size: 13.5px; font-weight: 600; color: white;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-practice-role {
    font-size: 10.5px; color: rgba(255,255,255,0.55);
    text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px;
}
.ps-practice-pill .ps-swap-ico { color: rgba(255,255,255,0.5); font-size: 13px; }

/* Sidebar nav */
.ps-nav-section { padding: 0 4px; margin-bottom: 18px; position: relative; z-index: 2; }
.ps-nav-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4); font-weight: 700;
    padding: 0 12px 8px;
}

.ps-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 10px;
    color: rgba(255,255,255,0.78); text-decoration: none;
    font-weight: 500; font-size: 13.5px; margin-bottom: 1px;
    position: relative; transition: all 0.18s ease;
}
.ps-nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: white;
    text-decoration: none;
}
.ps-nav-link i {
    font-size: 16px; width: 20px; text-align: center;
    color: rgba(255,255,255,0.55);
    transition: color 0.18s ease;
}
.ps-nav-link:hover i { color: rgba(255,255,255,0.9); }
.ps-nav-link.active {
    background: linear-gradient(95deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.18);
}
.ps-nav-link.active::before {
    content: ''; position: absolute; left: -14px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 18px;
    background: var(--ps-grad-warm);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(255,110,127,0.6);
}
.ps-nav-link.active i { color: white; }
.ps-nav-link .ps-nav-badge {
    margin-left: auto;
    font-size: 10.5px; font-weight: 700;
    padding: 2px 7px; border-radius: var(--ps-r-full);
    background: rgba(255,255,255,0.15); color: white;
}
.ps-nav-link .ps-nav-badge.hot {
    background: var(--ps-grad-warm);
    box-shadow: 0 2px 8px rgba(255,110,127,0.4);
}

.ps-sidebar-footer {
    margin-top: auto; padding: 14px;
    background: linear-gradient(135deg, rgba(255,177,153,0.12), rgba(255,110,127,0.10));
    border: 1px solid rgba(255,177,153,0.18);
    border-radius: var(--ps-r-md);
    position: relative; z-index: 2;
}
.ps-sidebar-footer.alert-mode {
    background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(239,68,68,0.08));
    border-color: rgba(239,68,68,0.32);
}
.ps-sidebar-footer-title {
    font-size: 12.5px; font-weight: 700; color: white;
    display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.ps-sidebar-footer-text {
    font-size: 11.5px; color: rgba(255,255,255,0.7);
    line-height: 1.5; margin-bottom: 10px;
}
.ps-sidebar-footer-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: white; color: var(--ps-ink);
    font-weight: 600; font-size: 12.5px; border-radius: 8px;
    text-decoration: none; transition: transform 0.18s ease;
}
.ps-sidebar-footer-btn:hover { transform: translateY(-1px); color: var(--ps-ink); text-decoration: none; }

/* Main */
.ps-main { min-width: 0; display: flex; flex-direction: column; }

/* Topbar */
.ps-topbar {
    position: sticky; top: 0; z-index: 50;
    padding: 14px 28px; height: var(--ps-topbar-h);
    display: flex; align-items: center; gap: 16px;
    background: rgba(246,245,242,0.78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(14,12,31,0.04);
}

.ps-crumb { display: flex; align-items: center; gap: 8px; color: var(--ps-ink-3); font-size: 13px; min-width: 0; }
.ps-crumb b { color: var(--ps-ink); font-weight: 600; }
.ps-crumb i.bi-chevron-right { font-size: 10px; color: var(--ps-ink-4); }
.ps-crumb a { color: var(--ps-ink-3); text-decoration: none; }
.ps-crumb a:hover { color: var(--ps-brand); }

.ps-topbar-actions {
    margin-left: auto;
    display: flex; align-items: center; gap: 10px;
}

.ps-icon-btn {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--ps-surface); border: 1px solid var(--ps-line);
    display: grid; place-items: center;
    color: var(--ps-ink-2); cursor: pointer;
    position: relative;
    transition: all 0.18s ease;
    box-shadow: var(--ps-shadow-1);
    text-decoration: none;
}
.ps-icon-btn:hover {
    border-color: var(--ps-brand); color: var(--ps-brand);
    transform: translateY(-1px); text-decoration: none;
}
.ps-icon-btn .dot {
    position: absolute; top: 7px; right: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ps-grad-warm);
    box-shadow: 0 0 0 2px var(--ps-bg);
}

.ps-avatar-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 4px 4px;
    background: var(--ps-surface); border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-full); cursor: pointer;
    box-shadow: var(--ps-shadow-1);
    transition: border-color 0.18s ease;
    text-decoration: none; color: var(--ps-ink);
}
.ps-avatar-pill:hover { border-color: var(--ps-brand); color: var(--ps-ink); text-decoration: none; }
.ps-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--ps-grad);
    display: grid; place-items: center;
    color: white; font-weight: 700; font-size: 11.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.ps-avatar-pill .ps-name {
    font-size: 13px; font-weight: 600; color: var(--ps-ink);
    max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-avatar-pill .ps-chev { color: var(--ps-ink-4); font-size: 10px; }

/* Page */
.ps-page {
    padding: 24px 28px 32px;
    display: flex; flex-direction: column; gap: 22px;
}

/* Mobile sidebar trigger */
.ps-mobile-trigger {
    display: none;
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--ps-surface); border: 1px solid var(--ps-line);
    color: var(--ps-ink-2); cursor: pointer;
    box-shadow: var(--ps-shadow-1);
    place-items: center;
}

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */

/* Cards */
.card {
    border: 1px solid var(--ps-line) !important;
    border-radius: var(--ps-r-lg) !important;
    background: var(--ps-surface);
    box-shadow: none;
}
.card.shadow, .card.shadow-sm, .card.shadow-lg {
    box-shadow: var(--ps-shadow-2) !important;
}
.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--ps-line) !important;
    padding: 18px 22px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}
.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-warning,
.card-header.bg-danger {
    background: transparent !important;
    color: var(--ps-ink) !important;
    border-bottom: 1px solid var(--ps-line) !important;
}
.card-header.bg-primary h1, .card-header.bg-primary h2, .card-header.bg-primary h3,
.card-header.bg-primary h4, .card-header.bg-primary h5, .card-header.bg-primary h6,
.card-header.bg-success h5, .card-header.bg-info h5, .card-header.bg-warning h5, .card-header.bg-secondary h5,
.card-header.bg-white h5 {
    color: var(--ps-ink) !important;
}
.card-header.bg-white { background: transparent !important; }
.card-header .btn-light { background: var(--ps-bg); border: 1px solid var(--ps-line); color: var(--ps-ink); }
.card-header .btn-light:hover { background: var(--ps-surface); border-color: var(--ps-brand); color: var(--ps-brand); }

.card-body { padding: 22px; }
@media (max-width: 768px) { .card-body { padding: 16px; } }

/* Buttons */
.btn {
    border-radius: 11px !important;
    font-weight: 600 !important;
    padding: 9px 16px;
    transition: all 0.18s ease !important;
    border: 1px solid transparent;
    font-size: 13.5px;
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px !important; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 13px !important; }

.btn-primary {
    background: var(--ps-grad) !important;
    border: 0 !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(110,89,242,0.32);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--ps-grad) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(110,89,242,0.45) !important;
    color: white !important;
}
.btn-primary:disabled { opacity: 0.6; transform: none; }

.btn-outline-primary {
    background: var(--ps-surface) !important;
    color: var(--ps-ink) !important;
    border: 1px solid var(--ps-line) !important;
}
.btn-outline-primary:hover, .btn-outline-primary.active {
    background: var(--ps-surface) !important;
    color: var(--ps-brand) !important;
    border-color: var(--ps-brand) !important;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background: var(--ps-surface) !important;
    color: var(--ps-ink-2) !important;
    border: 1px solid var(--ps-line) !important;
}
.btn-outline-secondary:hover, .btn-outline-secondary.active {
    background: var(--ps-surface) !important;
    color: var(--ps-ink) !important;
    border-color: var(--ps-ink-3) !important;
}

.btn-secondary {
    background: var(--ps-ink) !important;
    color: white !important;
    border: 0 !important;
}
.btn-secondary:hover { background: var(--ps-ink-2) !important; transform: translateY(-1px); }

.btn-success { background: var(--ps-success) !important; color: white !important; border: 0 !important; }
.btn-success:hover { background: #059669 !important; transform: translateY(-1px); }
.btn-outline-success { background: var(--ps-surface) !important; color: var(--ps-success) !important; border: 1px solid var(--ps-success) !important; }
.btn-outline-success:hover { background: var(--ps-success) !important; color: white !important; }

.btn-info { background: var(--ps-info) !important; color: white !important; border: 0 !important; }
.btn-info:hover { background: #2563EB !important; }
.btn-outline-info { background: var(--ps-surface) !important; color: var(--ps-info) !important; border: 1px solid var(--ps-info) !important; }
.btn-outline-info:hover { background: var(--ps-info) !important; color: white !important; }

.btn-warning { background: var(--ps-warning) !important; color: white !important; border: 0 !important; }
.btn-warning:hover { background: #D97706 !important; }

.btn-danger { background: var(--ps-danger) !important; color: white !important; border: 0 !important; }
.btn-danger:hover { background: #DC2626 !important; transform: translateY(-1px); }

.btn-light { background: var(--ps-bg-soft) !important; color: var(--ps-ink) !important; border: 1px solid var(--ps-line) !important; }
.btn-light:hover { background: var(--ps-surface) !important; border-color: var(--ps-ink-3) !important; }

.btn-grad-warm {
    background: var(--ps-grad-warm) !important;
    color: white !important;
    border: 0 !important;
    box-shadow: var(--ps-shadow-warm);
}
.btn-grad-warm:hover { transform: translateY(-1px); color: white !important; box-shadow: 0 12px 28px rgba(255,110,127,0.5); }

/* Forms */
.form-control, .form-select {
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-sm) !important;
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--ps-ink);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ps-brand);
    box-shadow: 0 0 0 4px rgba(110,89,242,0.12);
    outline: 0;
}
.form-control::placeholder { color: var(--ps-ink-4); }
.form-label { font-weight: 600; color: var(--ps-ink-2); font-size: 13px; margin-bottom: 6px; }

/* Tables */
.table {
    color: var(--ps-ink);
    margin: 0;
}
.table > :not(caption) > * > * {
    padding: 14px 16px;
    border-bottom-color: var(--ps-line);
    background: transparent;
}
.table > thead {
    background: var(--ps-bg-soft);
}
.table > thead th {
    color: var(--ps-ink-3);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--ps-line);
    padding: 12px 16px;
}
.table-hover > tbody > tr:hover > * {
    background: var(--ps-bg-soft);
    cursor: pointer;
}
.table tbody tr:last-child > * { border-bottom: 0; }

/* Badges */
.badge {
    border-radius: var(--ps-r-full) !important;
    font-weight: 600;
    font-size: 11px !important;
    padding: 4px 9px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Soft pill badges: scope to .badge so we don't repaint generic .bg-* utilities
   on non-badge elements (hero cards, banners, etc.). The .badge.bg-* selector
   also has higher specificity than professional-design.css's single-class
   overrides, ensuring background+color stay paired and readable. */
.badge.bg-primary { background: rgba(110,89,242,0.12) !important; color: #5B4BD9 !important; box-shadow: inset 0 0 0 1px rgba(110,89,242,0.18); }
.badge.bg-secondary { background: var(--ps-line) !important; color: var(--ps-ink-2) !important; }
.badge.bg-success { background: rgba(16,185,129,0.12) !important; color: #047857 !important; box-shadow: inset 0 0 0 1px rgba(16,185,129,0.20); }
.badge.bg-info { background: rgba(59,130,246,0.12) !important; color: #1E40AF !important; box-shadow: inset 0 0 0 1px rgba(59,130,246,0.20); }
.badge.bg-warning { background: rgba(245,158,11,0.14) !important; color: #92400E !important; box-shadow: inset 0 0 0 1px rgba(245,158,11,0.25); }
.badge.bg-danger { background: rgba(239,68,68,0.12) !important; color: #B91C1C !important; box-shadow: inset 0 0 0 1px rgba(239,68,68,0.20); }
.badge.bg-purple { background: rgba(139,92,246,0.14) !important; color: #6D28D9 !important; }
.badge.bg-light { background: var(--ps-bg-soft) !important; color: var(--ps-ink-2) !important; }
.badge.bg-dark { background: var(--ps-ink) !important; color: white !important; }
.badge.bg-light.text-primary { background: var(--ps-bg-soft) !important; color: var(--ps-brand) !important; }

/* Alerts */
.alert {
    border: 1px solid;
    border-radius: var(--ps-r-md);
    padding: 14px 18px;
    background: var(--ps-surface);
}
.alert-success { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.25); color: #047857; }
.alert-info { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.25); color: #1E40AF; }
.alert-warning { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.30); color: #92400E; }
.alert-danger { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.25); color: #B91C1C; }
.alert .alert-heading { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Pagination */
.pagination .page-link {
    border-radius: 9px;
    margin: 0 2px;
    color: var(--ps-ink-2);
    border: 1px solid var(--ps-line);
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
}
.pagination .page-link:hover { background: var(--ps-bg-soft); color: var(--ps-brand); }
.pagination .page-item.active .page-link { background: var(--ps-grad); border: 0; color: white; }

/* Modals */
.modal-content {
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-lg);
    box-shadow: var(--ps-shadow-3);
}
.modal-header {
    border-bottom: 1px solid var(--ps-line);
    padding: 18px 22px;
}
.modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.018em;
}
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--ps-line); padding: 16px 22px; }

/* Dropdowns */
.dropdown-menu {
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-md);
    box-shadow: var(--ps-shadow-3);
    padding: 6px;
}
.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
}
.dropdown-item:hover { background: var(--ps-bg-soft); }

/* Text helpers */
.text-primary { color: var(--ps-brand) !important; }
.text-muted { color: var(--ps-ink-3) !important; }
.text-secondary { color: var(--ps-ink-3) !important; }
.text-dark { color: var(--ps-ink) !important; }
.text-gray-800, .text-gray-900 { color: var(--ps-ink) !important; }
.text-gray-600, .text-gray-700 { color: var(--ps-ink-2) !important; }
.text-gray-500 { color: var(--ps-ink-3) !important; }

/* Border helpers */
.border-bottom, .border-top { border-color: var(--ps-line) !important; }

/* List groups */
.list-group-item {
    border-color: var(--ps-line);
    padding: 12px 16px;
}

/* ============================================================
   COMPONENTS — bento blocks
   ============================================================ */

/* Page hero / greeting */
.ps-hero {
    position: relative;
    padding: 28px 32px;
    border-radius: var(--ps-r-xl);
    background:
        radial-gradient(ellipse 80% 100% at 100% 0%, rgba(244,114,182,0.20) 0%, transparent 60%),
        linear-gradient(135deg, #1A1538 0%, #2A1F5A 50%, #432982 100%);
    color: white;
    overflow: hidden;
    box-shadow: var(--ps-shadow-3);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.ps-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 1px, transparent 1.5px),
        radial-gradient(circle at 60% 70%, rgba(255,255,255,0.04) 1px, transparent 1.5px);
    background-size: 32px 32px, 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}
.ps-hero > * { position: relative; z-index: 1; }
.ps-hero-greet {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    font-size: 13.5px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.ps-hero-greet .sun { color: #FFB199; font-size: 16px; }
.ps-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 30px;
    line-height: 1.15; letter-spacing: -0.025em;
    margin-bottom: 10px; color: white;
}
.ps-hero h1 em {
    font-style: normal;
    background: var(--ps-grad-warm);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ps-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 14px; max-width: 540px; line-height: 1.55;
    margin-bottom: 0;
}
.ps-hero-cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ps-hero-cta .btn-primary {
    background: white !important;
    color: var(--ps-ink) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
}
.ps-hero-cta .btn-primary:hover {
    background: white !important;
    color: var(--ps-ink) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}
.ps-hero-cta .btn-outline-light {
    background: rgba(255,255,255,0.08) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}
.ps-hero-cta .btn-outline-light:hover { background: rgba(255,255,255,0.14) !important; }

.ps-hero-glyph {
    position: relative; width: 180px; height: 180px;
    display: grid; place-items: center;
}
.ps-hero-glyph .ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.18);
    animation: ps-spin 40s linear infinite;
}
.ps-hero-glyph .ring:nth-child(2) {
    inset: 18px;
    animation-direction: reverse;
    animation-duration: 28s;
    border-color: rgba(255,177,153,0.25);
}
.ps-hero-glyph .ring:nth-child(3) {
    inset: 36px;
    animation-duration: 18s;
    border-color: rgba(244,114,182,0.30);
    border-style: dotted;
}
@keyframes ps-spin { to { transform: rotate(360deg); } }
.ps-hero-glyph .ps-badge {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--ps-grad-warm);
    display: grid; place-items: center;
    color: white; font-size: 32px;
    box-shadow: 0 8px 32px rgba(244,114,182,0.5);
    position: relative; z-index: 2;
}

/* Page header (non-hero) */
.ps-page-header {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ps-page-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 26px;
    letter-spacing: -0.025em; color: var(--ps-ink);
    margin: 0;
    display: flex; align-items: center; gap: 12px;
}
.ps-page-title .ps-title-ico {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--ps-grad);
    display: grid; place-items: center;
    color: white; font-size: 18px;
    box-shadow: var(--ps-shadow-brand);
}
.ps-page-sub {
    color: var(--ps-ink-3); font-size: 13.5px;
}
.ps-page-actions {
    margin-left: auto;
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

/* Stat cards */
.ps-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) { .ps-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ps-stats { grid-template-columns: 1fr; } }

.ps-stat {
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}
.ps-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ps-shadow-3);
    color: inherit; text-decoration: none;
}
.ps-stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ps-stat-ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; color: white; font-size: 16px;
}
.ps-stat-ico.violet { background: var(--ps-grad); }
.ps-stat-ico.coral  { background: linear-gradient(135deg, #FFB199, #FF6E7F); }
.ps-stat-ico.mint   { background: linear-gradient(135deg, #34D399, #10B981); }
.ps-stat-ico.sky    { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.ps-stat-ico.amber  { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.ps-stat-ico.rose   { background: linear-gradient(135deg, #FB7185, #E11D48); }

.ps-stat-label {
    font-size: 12px; color: var(--ps-ink-3);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.ps-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 32px;
    letter-spacing: -0.025em; color: var(--ps-ink);
    line-height: 1;
}
.ps-stat-value .unit { font-size: 16px; color: var(--ps-ink-3); font-weight: 600; }
.ps-stat-meta {
    margin-top: 8px;
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--ps-ink-3);
}

.ps-delta {
    display: inline-flex; align-items: center; gap: 2px;
    font-weight: 600; padding: 2px 7px;
    border-radius: var(--ps-r-full); font-size: 11px;
}
.ps-delta.up { color: var(--ps-success); background: rgba(16,185,129,0.10); }
.ps-delta.down { color: var(--ps-danger); background: rgba(239,68,68,0.10); }
.ps-delta.flat { color: var(--ps-ink-3); background: var(--ps-bg); }

/* Status pills */
.ps-status {
    padding: 4px 10px; border-radius: var(--ps-r-full);
    font-size: 11.5px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.ps-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.ps-status.scheduled { background: rgba(59,130,246,0.10); color: #2563EB; }
.ps-status.scheduled::before { background: #3B82F6; }
.ps-status.confirmed { background: rgba(16,185,129,0.10); color: #047857; }
.ps-status.confirmed::before { background: #10B981; }
.ps-status.inprogress { background: rgba(245,158,11,0.12); color: #B45309; }
.ps-status.inprogress::before { background: #F59E0B; animation: ps-pulse 1.4s ease-in-out infinite; }
.ps-status.done { background: var(--ps-bg); color: var(--ps-ink-3); }
.ps-status.done::before { background: var(--ps-ink-4); }
.ps-status.cancelled { background: rgba(239,68,68,0.10); color: #B91C1C; }
.ps-status.cancelled::before { background: #EF4444; }
.ps-status.checked-in { background: rgba(139,92,246,0.14); color: #6D28D9; }
.ps-status.checked-in::before { background: #8B5CF6; }
.ps-status.no-show { background: rgba(239,68,68,0.10); color: #B91C1C; }
.ps-status.no-show::before { background: #EF4444; }
@keyframes ps-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.75); }
}

/* Quick actions grid */
.ps-qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ps-qa {
    padding: 14px; border-radius: var(--ps-r-md);
    border: 1px solid var(--ps-line);
    background: var(--ps-bg-soft);
    text-decoration: none; color: var(--ps-ink);
    transition: all 0.18s ease;
    cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
}
.ps-qa:hover {
    border-color: var(--ps-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110,89,242,0.10);
    background: white;
    text-decoration: none; color: var(--ps-ink);
}
.ps-qa i {
    font-size: 19px; color: var(--ps-brand); margin-bottom: 4px;
}
.ps-qa .ps-qa-title { font-weight: 600; font-size: 13.5px; }
.ps-qa .ps-qa-sub { font-size: 11.5px; color: var(--ps-ink-3); }

/* Appointment row (today's schedule) */
.ps-appt {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    gap: 14px; align-items: center;
    padding: 12px 12px; border-radius: var(--ps-r-md);
    transition: background 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--ps-ink);
}
.ps-appt:hover {
    background: var(--ps-bg-soft);
    border-color: var(--ps-line);
    text-decoration: none; color: var(--ps-ink);
}
.ps-appt-time {
    text-align: center; padding: 6px 0;
    background: var(--ps-bg); border-radius: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600; font-size: 12.5px;
    color: var(--ps-ink-2);
}
.ps-appt-time small {
    display: block; font-size: 10px; color: var(--ps-ink-4);
    font-weight: 500; margin-top: 1px;
}
.ps-appt-main { min-width: 0; }
.ps-appt-title {
    font-weight: 600; font-size: 14px; color: var(--ps-ink);
    margin-bottom: 3px;
    display: flex; align-items: center; gap: 8px;
}
.ps-appt-title .pet-ico { color: var(--ps-ink-3); font-size: 14px; }
.ps-appt-sub {
    font-size: 12.5px; color: var(--ps-ink-3);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ps-appt-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ps-ink-4); }
.ps-appt-action { color: var(--ps-ink-4); transition: color 0.15s, transform 0.15s; }
.ps-appt:hover .ps-appt-action { color: var(--ps-brand); transform: translateX(2px); }

/* Empty state */
.ps-empty {
    padding: 48px 24px;
    text-align: center; color: var(--ps-ink-3);
    background: var(--ps-bg-soft);
    border: 1px dashed var(--ps-line);
    border-radius: var(--ps-r-lg);
}
.ps-empty i { font-size: 36px; color: var(--ps-ink-4); margin-bottom: 12px; display: block; }
.ps-empty h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 16px;
    color: var(--ps-ink); margin-bottom: 4px;
}
.ps-empty p { margin-bottom: 12px; }

/* Trial / subscription banner */
.ps-trial-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: var(--ps-r-md);
    background:
        linear-gradient(95deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02)),
        var(--ps-surface);
    border: 1px solid rgba(245,158,11,0.25);
}
.ps-trial-banner.expired {
    background:
        linear-gradient(95deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02)),
        var(--ps-surface);
    border-color: rgba(239,68,68,0.30);
}
.ps-trial-banner .ico {
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    display: grid; place-items: center;
    color: white; font-size: 17px; flex-shrink: 0;
}
.ps-trial-banner.expired .ico {
    background: linear-gradient(135deg, #F87171, #EF4444);
}
.ps-trial-banner .copy { flex: 1; }
.ps-trial-banner .copy strong { display: block; font-size: 13.5px; color: var(--ps-ink); margin-bottom: 2px; }
.ps-trial-banner .copy span { font-size: 12.5px; color: var(--ps-ink-3); }
@media (max-width: 600px) {
    .ps-trial-banner { flex-wrap: wrap; }
    .ps-trial-banner .btn { width: 100%; justify-content: center; }
}

/* Card with section title */
.ps-section-head {
    display: flex; align-items: center; margin-bottom: 18px;
}
.ps-section-head h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em;
    margin: 0;
}
.ps-section-head .meta {
    margin-left: auto;
    color: var(--ps-ink-3); font-size: 12.5px;
    display: flex; align-items: center; gap: 12px;
}
.ps-section-head .meta a {
    color: var(--ps-brand); text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.ps-section-head .meta a:hover { color: var(--ps-brand-violet); }

/* Two-col layout */
.ps-row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .ps-row-2 { grid-template-columns: 1fr; } }

/* Filter chips */
.ps-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px;
    background: var(--ps-surface); border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-full);
    font-size: 12.5px; font-weight: 500; color: var(--ps-ink-2);
    cursor: pointer; transition: all 0.15s ease;
    text-decoration: none;
}
.ps-chip:hover { border-color: var(--ps-ink-3); color: var(--ps-ink); text-decoration: none; }
.ps-chip .swatch { width: 8px; height: 8px; border-radius: 50%; }
.ps-chip.active { background: var(--ps-ink); color: white; border-color: var(--ps-ink); }
.ps-chip.active:hover { color: white; }

/* Segmented control */
.ps-segment {
    display: inline-flex; padding: 3px;
    background: var(--ps-surface); border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-full);
    box-shadow: var(--ps-shadow-1);
}
.ps-segment a, .ps-segment button {
    background: transparent; border: 0; cursor: pointer;
    padding: 7px 14px; border-radius: var(--ps-r-full);
    font-size: 12.5px; font-weight: 600;
    color: var(--ps-ink-3);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.18s ease;
}
.ps-segment a:hover, .ps-segment button:hover { color: var(--ps-ink); text-decoration: none; }
.ps-segment a.active, .ps-segment button.active {
    background: var(--ps-grad);
    color: white;
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}

/* Date pager (calendar) */
.ps-date-pager {
    display: inline-flex; align-items: center;
    background: var(--ps-surface); border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-full); padding: 4px;
    box-shadow: var(--ps-shadow-1);
}
.ps-date-pager button, .ps-date-pager a {
    background: transparent; border: 0; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    color: var(--ps-ink-2); display: grid; place-items: center;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.ps-date-pager button:hover, .ps-date-pager a:hover {
    background: var(--ps-bg-soft); color: var(--ps-brand);
}
.ps-date-pager .today-btn {
    width: auto; padding: 0 14px; border-radius: var(--ps-r-full);
    font-weight: 600; font-size: 12.5px; color: var(--ps-ink);
}
.ps-date-pager .date-now {
    padding: 0 12px; font-weight: 600; font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ps-ink); white-space: nowrap;
    border-left: 1px solid var(--ps-line); border-right: 1px solid var(--ps-line);
    height: 32px; display: flex; align-items: center; margin: 0 4px;
}

/* Activity feed */
.ps-feed-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed var(--ps-line);
}
.ps-feed-item:last-child { border-bottom: 0; }
.ps-feed-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ps-bg); color: var(--ps-brand); font-size: 13px;
    flex-shrink: 0;
}
.ps-feed-text { font-size: 13px; color: var(--ps-ink-2); line-height: 1.5; }
.ps-feed-text b { color: var(--ps-ink); font-weight: 600; }
.ps-feed-time {
    font-size: 11.5px; color: var(--ps-ink-4); margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

/* Sub progress bar */
.ps-progress-track {
    height: 8px; background: var(--ps-line); border-radius: var(--ps-r-full); overflow: hidden;
}
.ps-progress-fill {
    height: 100%; background: var(--ps-grad-warm); border-radius: var(--ps-r-full);
}

/* ============================================================
   FULLCALENDAR theming
   ============================================================ */
.fc {
    font-family: 'Inter', -apple-system, sans-serif;
    --fc-border-color: var(--ps-line);
    --fc-today-bg-color: rgba(110,89,242,0.04);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: var(--ps-bg-soft);
    --fc-event-text-color: var(--ps-ink);
    --fc-button-text-color: var(--ps-ink);
    --fc-button-bg-color: var(--ps-surface);
    --fc-button-border-color: var(--ps-line);
    --fc-button-hover-bg-color: var(--ps-bg-soft);
    --fc-button-hover-border-color: var(--ps-ink-3);
    --fc-button-active-bg-color: var(--ps-ink);
    --fc-button-active-border-color: var(--ps-ink);
}
.fc .fc-toolbar-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ps-ink);
    font-size: 22px;
}
.fc .fc-button {
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    padding: 7px 14px !important;
    box-shadow: var(--ps-shadow-1);
    border-width: 1px !important;
    transition: all 0.18s ease;
}
.fc .fc-button-primary {
    background: var(--ps-surface) !important;
    color: var(--ps-ink) !important;
    border-color: var(--ps-line) !important;
}
.fc .fc-button-primary:hover {
    background: var(--ps-bg-soft) !important;
    color: var(--ps-brand) !important;
    border-color: var(--ps-line) !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--ps-grad) !important;
    color: white !important;
    border: 0 !important;
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}
.fc .fc-today-button {
    background: var(--ps-grad) !important;
    color: white !important;
    border: 0 !important;
    box-shadow: 0 4px 12px rgba(102,126,234,0.32);
}
.fc .fc-today-button:disabled { opacity: 0.5; }
.fc .fc-prev-button, .fc .fc-next-button {
    padding: 7px 12px !important;
    font-weight: 700;
}
.fc-theme-standard td, .fc-theme-standard th {
    border-color: var(--ps-line);
}
.fc-theme-standard .fc-scrollgrid {
    border-color: var(--ps-line);
    border-radius: var(--ps-r-md);
    overflow: hidden;
}
.fc .fc-col-header-cell {
    background: var(--ps-bg-soft);
    padding: 10px 0;
}
.fc .fc-col-header-cell-cushion {
    color: var(--ps-ink-3);
    text-decoration: none;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fc .fc-daygrid-day-number {
    color: var(--ps-ink-2);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 6px 10px;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--ps-grad);
    color: white;
    border-radius: 50%;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    margin: 4px;
    box-shadow: 0 4px 10px rgba(102,126,234,0.35);
}
.fc .fc-daygrid-day.fc-day-today { background: var(--fc-today-bg-color); }
.fc .fc-timegrid-now-indicator-line {
    border-color: var(--ps-danger);
    border-width: 2px;
}
.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--ps-danger);
    border-width: 5px;
}
.fc-event {
    border-radius: 8px !important;
    padding: 4px 7px !important;
    border: 0 !important;
    border-left: 3px solid !important;
    font-size: 12px !important;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.fc-event .fc-event-title {
    font-weight: 600;
}
.fc-timegrid-slot { height: 2.4em !important; }
.fc-timegrid-slot-label { color: var(--ps-ink-4); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }

/* ============================================================
   AUTH SPLIT (login / register / verify)
   ============================================================ */
.ps-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ps-bg);
}
@media (max-width: 960px) { .ps-auth { grid-template-columns: 1fr; } }

.ps-auth-panel {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #1A1538 0%, #2A1F5A 50%, #432982 100%);
    color: white;
    padding: 56px 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 100vh;
}
@media (max-width: 960px) { .ps-auth-panel { display: none; } }
.ps-auth-panel::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(244,114,182,0.30) 0%, transparent 65%);
}
.ps-auth-panel::after {
    content: ''; position: absolute; bottom: -10%; left: -10%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(79,184,255,0.22) 0%, transparent 65%);
}
.ps-auth-panel > * { position: relative; z-index: 1; }
.ps-auth-brand { display: flex; align-items: center; gap: 12px; }
.ps-auth-brand img { height: 38px; filter: brightness(0) invert(1); }
.ps-auth-tagline {
    margin-top: auto;
}
.ps-auth-tagline h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 38px;
    line-height: 1.1; letter-spacing: -0.028em;
    color: white; margin-bottom: 14px;
}
.ps-auth-tagline h2 em {
    font-style: normal;
    background: var(--ps-grad-warm);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ps-auth-tagline p {
    font-size: 14.5px; color: rgba(255,255,255,0.7);
    max-width: 380px; line-height: 1.6;
}
.ps-auth-features {
    margin-top: 28px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.ps-auth-feature {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 12.5px; color: rgba(255,255,255,0.8);
}
.ps-auth-feature i {
    color: #FFB199; font-size: 16px;
    flex-shrink: 0; margin-top: 1px;
}

.ps-auth-stage {
    padding: 48px 48px;
    display: flex; flex-direction: column;
    background: var(--ps-bg);
    background:
        radial-gradient(circle at 92% -10%, rgba(118,75,162,0.10) 0%, transparent 45%),
        radial-gradient(circle at 0% 95%, rgba(102,126,234,0.07) 0%, transparent 40%),
        var(--ps-bg);
}
.ps-auth-form-wrap {
    margin: auto;
    width: 100%; max-width: 420px;
}
.ps-auth-form-wrap .card {
    border-radius: var(--ps-r-xl) !important;
    box-shadow: var(--ps-shadow-3) !important;
}
.ps-auth-form-wrap .card-body { padding: 36px 32px; }

/* ============================================================
   MOBILE SIDEBAR (offcanvas restyle)
   ============================================================ */
.offcanvas {
    border: 0 !important;
}
.offcanvas-start, .offcanvas-end {
    background: linear-gradient(165deg, #1A1538 0%, #2A1F5A 45%, #432982 100%) !important;
    color: rgba(255,255,255,0.85);
}
.offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
}
.offcanvas-header .btn-close { filter: brightness(0) invert(1); opacity: 0.7; }
.offcanvas .nav-link {
    color: rgba(255,255,255,0.78) !important;
    border-radius: 10px;
    padding: 9px 12px !important;
    font-weight: 500;
}
.offcanvas .nav-link.active {
    background: linear-gradient(95deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    color: white !important;
}
.offcanvas .nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: white !important;
}
.offcanvas small.text-muted {
    color: rgba(255,255,255,0.4) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10.5px !important;
    font-weight: 700 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .ps-app { grid-template-columns: 1fr; }
    .ps-sidebar { display: none; }
    .ps-mobile-trigger { display: grid; }
    .ps-topbar { padding: 14px 18px; }
    .ps-page { padding: 18px; }
    .ps-page-title { font-size: 22px; }
    .ps-hero { padding: 22px; grid-template-columns: 1fr; }
    .ps-hero-glyph { display: none; }
    .ps-hero h1 { font-size: 24px; }
}
@media (max-width: 600px) {
    .ps-topbar-actions .ps-name { display: none; }
    .ps-stat-value { font-size: 26px; }
}

/* ============================================================
   LEGACY FOOTER (in app shell)
   ============================================================ */
.ps-footer {
    margin-top: auto;
    padding: 24px 28px;
    border-top: 1px solid var(--ps-line);
    background: var(--ps-bg-soft);
    color: var(--ps-ink-3);
    font-size: 12.5px;
}
.ps-footer a { color: var(--ps-ink-2); text-decoration: none; }
.ps-footer a:hover { color: var(--ps-brand); }
.ps-footer-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.ps-footer-row .right { margin-left: auto; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .ps-sidebar, .ps-topbar, .ps-footer, .alert, .ps-trial-banner { display: none !important; }
    .ps-app { grid-template-columns: 1fr; }
    body { background: white; }
}
