/* ============================================================
   PetHour — Global Styles
   ============================================================ */

:root {
    /* ---- Brand palette extracted from PetHour logo ---- */
    --ph-primary: #1a67b4;          /* PetHour blue */
    --ph-primary-dark: #13508e;
    --ph-primary-light: #deeaf8;
    --ph-orange: #f97316;           /* Clock / .app orange */
    --ph-orange-dark: #dc5a03;
    --ph-orange-light: #fff0e6;
    --ph-teal: #17a8c4;             /* Clock inner accent */
    --ph-teal-light: #e0f6fb;
    /* ---- Alias secondary = orange for CTAs ---- */
    --ph-secondary: #f97316;
    --ph-secondary-light: #fff0e6;
    /* ---- Neutrals ---- */
    --ph-text: #111827;
    --ph-text-muted: #6b7280;
    --ph-bg: #f4f7fc;               /* Slightly blue-tinted off-white */
    --ph-surface: #ffffff;
    --ph-border: #dde6f0;
    --ph-radius: 12px;
    --ph-shadow: 0 1px 3px rgba(26,103,180,.08), 0 1px 2px rgba(0,0,0,.04);
    --ph-shadow-md: 0 4px 6px -1px rgba(26,103,180,.1), 0 2px 4px -1px rgba(0,0,0,.05);
    --ph-shadow-lg: 0 10px 15px -3px rgba(26,103,180,.1), 0 4px 6px -2px rgba(0,0,0,.04);
    --sidebar-width: 260px;
    --topbar-height: 64px;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--ph-text);
    background: var(--ph-bg);
    margin: 0;
    padding: 0;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }

/* ── Shared Radzen input field styles (.ph-search-field wrapper) ──────────
   Applied globally so any page/dialog using <div class="ph-search-field">
   around a Radzen input gets the branded border + icon colors.            */
.ph-search-field .rz-inputtext,
.ph-search-field .rz-textarea,
.ph-search-field .rz-textbox,
.ph-search-field .rz-dropdown,
.ph-search-field .rz-datepicker > .rz-inputtext {
    border-color: #00b1f3 !important;
    border-radius: 8px !important;
}
.ph-search-field .rz-dropdown:hover,
.ph-search-field .rz-inputtext:hover,
.ph-search-field .rz-textarea:hover,
.ph-search-field .rz-textbox:hover {
    border-color: #00b1f3 !important;
}
.ph-search-field .rz-state-focused.rz-dropdown,
.ph-search-field .rz-state-focused.rz-datepicker > .rz-inputtext,
.ph-search-field .rz-inputtext:not(:disabled):focus,
.ph-search-field .rz-textarea:not(:disabled):focus {
    border-color: #00b1f3 !important;
    box-shadow: 0 0 0 3px rgba(0,177,243,.15) !important;
    outline: none !important;
}
.ph-search-field .rz-dropdown .rz-dropdown-trigger .rzi,
.ph-search-field .rz-datepicker .rz-datepicker-trigger .rzi,
.ph-search-field .rz-dropdown-clear-icon {
    color: #fd611a !important;
}

/* ---- Syncfusion overrides ---- */
.e-btn.e-primary {
    background-color: var(--ph-primary) !important;
    border-color: var(--ph-primary-dark) !important;
}
.e-btn.e-primary:hover { background-color: var(--ph-primary-dark) !important; }

/* ---- Public Navbar ---- */
.ph-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ph-surface);
    border-bottom: 1px solid var(--ph-border);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
    box-shadow: var(--ph-shadow);
}

.ph-navbar-brand {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ph-primary);
    text-decoration: none;
}
.ph-navbar-brand span { color: var(--ph-text); }

.ph-navbar-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ph-navbar-links a {
    color: var(--ph-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .9rem;
    transition: color .15s;
}
.ph-navbar-links a:hover { color: var(--ph-primary); }
.ph-navbar-actions { margin-left: auto; display: flex; gap: .75rem; align-items: center; }

/* ---- Hamburger button (mobile only) ---- */
.ph-nav-hamburger {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
    color: var(--ph-text);
    line-height: 1;
}

/* ---- Mobile nav dropdown ---- */
.ph-mobile-nav {
    background: var(--ph-surface);
    border-bottom: 1px solid var(--ph-border);
    padding: .75rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    box-shadow: var(--ph-shadow-md);
    position: sticky;
    top: var(--topbar-height);
    z-index: 999;
}
.ph-mobile-nav-link {
    color: var(--ph-text);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    padding: .5rem 0;
}
.ph-mobile-nav-link:hover { color: var(--ph-primary); }
.ph-mobile-nav-divider { border: none; border-top: 1px solid var(--ph-border); margin: .25rem 0; }
.ph-mobile-nav-cta { text-align: center; margin-top: .25rem; justify-content: center; }

@media (max-width: 768px) {
    .ph-navbar { padding: 0 1rem; }
    .ph-navbar-links  { display: none; }
    .ph-navbar-actions { display: none; }
    .ph-nav-hamburger { display: flex; align-items: center; }
}

/* ---- Global Topbar (fixed, full-width) ---- */
.ph-global-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--ph-surface);
    border-bottom: 1px solid var(--ph-border);
    display: flex;
    align-items: center;
    padding: 0 1.25rem 0 .75rem;
    gap: .75rem;
    z-index: 200;
    box-shadow: var(--ph-shadow);
}
.ph-global-topbar-logo { display: flex; align-items: center; text-decoration: none; }
.ph-global-topbar-logo img { height: 34px; width: auto; }

/* ---- App Shell ---- */
.ph-app-shell { display: flex; flex-direction: column; min-height: 100vh; }

.ph-below-topbar {
    display: flex;
    flex: 1;
    margin-top: var(--topbar-height);
    min-height: calc(100vh - var(--topbar-height));
}

/* ---- Sidebar Layout ---- */
.ph-sidebar {
    width: var(--sidebar-width);
    background: #0e1e35;
    border-right: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--topbar-height); left: 0;
    height: calc(100vh - var(--topbar-height));
    z-index: 100;
    box-shadow: 2px 0 12px rgba(14,30,53,.3);
}

.ph-sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    height: var(--topbar-height);
}
.ph-sidebar-brand img { height: 36px; width: auto; }

.ph-sidebar-nav { padding: .75rem 0; flex: 1; overflow-y: auto; }

.ph-sidebar-section {
    padding: .5rem 1.5rem .3rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.3);
    margin-top: .5rem;
}

.ph-sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1.5rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .15s;
    position: relative;
}
.ph-sidebar-link:hover { color: white; background: rgba(255,255,255,.07); }
.ph-sidebar-link.active {
    color: white;
    background: rgba(249,115,22,.18);
    font-weight: 600;
}
.ph-sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--ph-orange);
    border-radius: 0 2px 2px 0;
}

.ph-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }

/* ---- Dashboard Layout Nav ---- */
.ph-dnav-section-label {
    padding: 1.1rem 1.5rem .6rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.3);
}

.ph-dnav-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .65rem 1.5rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .15s;
    position: relative;
}
.ph-dnav-link:hover { color: white; background: rgba(255,255,255,.07); }
.ph-dnav-link.active {
    color: white;
    background: rgba(249,115,22,.18);
}
.ph-dnav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--ph-orange);
    border-radius: 0 2px 2px 0;
}

.ph-dnav-title { font-weight: 600; font-size: .875rem; line-height: 1.2; }
.ph-dnav-desc  { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: .05rem; }
.ph-dnav-link.active .ph-dnav-desc { color: rgba(255,255,255,.55); }

.ph-dnav-badge {
    margin-left: auto;
    background: var(--ph-orange);
    color: white;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .1rem .45rem;
    min-width: 18px;
    text-align: center;
}

.ph-dnav-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: .5rem 1.5rem;
}

.ph-dnav-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.ph-dnav-signout {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: .45rem .9rem;
    color: rgba(255,255,255,.45);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.ph-dnav-signout:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); }

/* ---- Main Content Area ---- */
.ph-main { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - var(--topbar-height)); }

.ph-below-topbar > .ph-page-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    transition: margin-left .2s ease;
}
.ph-app-shell.ph-sidebar-collapsed .ph-below-topbar > .ph-page-content {
    margin-left: var(--sidebar-width-collapsed);
}

.ph-topbar {
    height: var(--topbar-height);
    background: var(--ph-surface);
    border-bottom: 1px solid var(--ph-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0; z-index: 50;
    box-shadow: var(--ph-shadow);
}
.ph-topbar-title { font-size: 1rem; font-weight: 600; }
.ph-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }

.ph-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ph-orange-light);
    color: var(--ph-orange-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; cursor: pointer;
}

.ph-page-content { padding: 1.5rem; flex: 1; }

/* ---- Stat Card ---- */
.ph-stat-card {
    background: var(--ph-surface);
    border-radius: var(--ph-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ph-shadow);
    border: 1px solid var(--ph-border);
}
.ph-stat-card .stat-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ph-text-muted);
    margin-bottom: .4rem;
}
.ph-stat-card .stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.ph-stat-card .stat-change { font-size: .8rem; margin-top: .35rem; font-weight: 500; }
.ph-stat-card .stat-change.up { color: var(--ph-orange); }
.ph-stat-card .stat-change.down { color: #ef4444; }

/* ---- Card ---- */
.ph-card {
    background: var(--ph-surface);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow);
    border: 1px solid var(--ph-border);
    padding: 1.25rem 1.5rem;
}
.ph-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ph-card-title { font-size: .9rem; font-weight: 700; }

.ph-page-header { margin-bottom: 1.5rem; }
.ph-page-header h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .25rem; }
.ph-page-header p { color: var(--ph-text-muted); margin: 0; font-size: .875rem; }

/* ---- Auth Pages ---- */
.ph-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #deeaf8 0%, #f4f7fc 60%, #eef4fb 100%);
    padding: 2rem;
}
.ph-auth-card {
    background: var(--ph-surface);
    border-radius: 20px;
    box-shadow: var(--ph-shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}
.ph-auth-logo { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--ph-primary); margin-bottom: 1.75rem; }
.ph-auth-logo span { color: var(--ph-text); }
.ph-auth-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin: 0 0 .35rem; }
.ph-auth-sub { text-align: center; color: var(--ph-text-muted); font-size: .875rem; margin: 0 0 1.75rem; }
.ph-form-group { margin-bottom: 1rem; }
.ph-form-label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; }
.ph-form-group .e-input-group, .ph-form-group .e-float-input { width: 100%; }
.ph-auth-footer { margin-top: 1.25rem; text-align: center; font-size: .85rem; color: var(--ph-text-muted); }
.ph-auth-footer a { color: var(--ph-primary); font-weight: 600; text-decoration: none; }

.ph-validation { color: #ef4444; font-size: .78rem; margin-top: .2rem; display: block; }

.ph-alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: .7rem 1rem;
    color: #dc2626;
    font-size: .875rem;
    margin-bottom: 1rem;
}

.ph-divider {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.25rem 0;
    color: var(--ph-text-muted); font-size: .8rem;
}
.ph-divider::before, .ph-divider::after { content: ''; flex: 1; height: 1px; background: var(--ph-border); }

.ph-password-bar {
    height: 4px; border-radius: 2px;
    background: var(--ph-border);
    margin-top: .4rem;
    overflow: hidden;
}
.ph-password-fill {
    height: 100%; border-radius: 2px;
    transition: width .25s, background .25s;
}

/* ---- Landing Page ---- */
.ph-hero {
    background: linear-gradient(150deg, #deeaf8 0%, #f4f7fc 50%, #fff0e6 100%);
    padding: 5rem 2rem;
    text-align: center;
}
.ph-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    max-width: 720px;
    margin: 0 auto .75rem;
    line-height: 1.15;
}
.ph-hero h1 em { color: var(--ph-primary); font-style: normal; }
.ph-hero p { font-size: 1.1rem; color: var(--ph-text-muted); max-width: 520px; margin: 0 auto 2rem; }
.ph-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.ph-hero-trust {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.ph-trust-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ph-text-muted); font-weight: 500; }
.ph-trust-icon { color: var(--ph-primary); font-size: 1rem; }

.ph-section { padding: 4rem 2rem; }
.ph-section-center { text-align: center; }
.ph-section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 0 0 .5rem; }
.ph-section-sub { color: var(--ph-text-muted); font-size: .95rem; max-width: 500px; margin: 0 auto 2.5rem; }

.ph-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}
.ph-feature-card {
    background: var(--ph-surface);
    border-radius: var(--ph-radius);
    padding: 1.5rem;
    border: 1px solid var(--ph-border);
    box-shadow: var(--ph-shadow);
}
.ph-feature-icon {
    width: 48px; height: 48px;
    background: var(--ph-orange-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: .9rem;
}
.ph-feature-card h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .35rem; }
.ph-feature-card p { font-size: .85rem; color: var(--ph-text-muted); margin: 0; line-height: 1.6; }

.ph-steps { display: flex; gap: 2rem; max-width: 860px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.ph-step { flex: 1; min-width: 210px; text-align: center; }
.ph-step-num {
    width: 52px; height: 52px;
    background: var(--ph-primary); color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800;
    margin: 0 auto .75rem;
}
.ph-step h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .3rem; }
.ph-step p { font-size: .85rem; color: var(--ph-text-muted); margin: 0; }

.ph-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
.ph-price-card {
    background: var(--ph-surface);
    border: 2px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.ph-price-card:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-md); }
.ph-price-card.featured { border-color: var(--ph-orange); background: linear-gradient(135deg, #fff8f2, #fff); }
.ph-price-badge { background: var(--ph-orange); color: white; font-size: .7rem; font-weight: 700; padding: .2rem .7rem; border-radius: 100px; display: inline-block; margin-bottom: .75rem; }
.ph-price-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.ph-price-amount { font-size: 1.75rem; font-weight: 900; color: var(--ph-primary); }
.ph-price-amount sup { font-size: 1rem; vertical-align: super; }
.ph-price-period { font-size: .8rem; color: var(--ph-text-muted); }
.ph-price-features { list-style: none; padding: 0; margin: 1rem 0; font-size: .82rem; color: var(--ph-text-muted); text-align: left; }
.ph-price-features li { padding: .2rem 0; }
.ph-price-features li::before { content: '✓ '; color: var(--ph-orange); font-weight: 700; }

.ph-cta-section {
    background: linear-gradient(135deg, var(--ph-primary), var(--ph-primary-dark));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.ph-cta-section h2 { font-size: 2rem; font-weight: 800; margin: 0 0 .5rem; }
.ph-cta-section p { font-size: 1rem; opacity: .9; margin: 0 0 2rem; }

.ph-footer { background: #0f1e33; color: #8da4c0; padding: 2rem; text-align: center; font-size: .85rem; }
.ph-footer a { color: #93c3f0; text-decoration: none; }

/* ---- Badges / Status ---- */
.ph-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .65rem;
    border-radius: 100px;
    font-size: .73rem;
    font-weight: 600;
}
.ph-badge-success { background: var(--ph-teal-light); color: #0e7490; }
.ph-badge-warning { background: #fef3c7; color: #d97706; }
.ph-badge-danger { background: #fee2e2; color: #dc2626; }
.ph-badge-info { background: #dbeafe; color: #2563eb; }
.ph-badge-neutral { background: var(--ph-border); color: var(--ph-text-muted); }

/* ---- Booking items ---- */
.ph-booking-item { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--ph-border); }
.ph-booking-item:last-child { border-bottom: none; }
.ph-booking-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ph-primary-light); color: var(--ph-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.ph-booking-info { flex: 1; }
.ph-booking-name { font-weight: 600; font-size: .875rem; }
.ph-booking-meta { font-size: .78rem; color: var(--ph-text-muted); margin-top: .1rem; }

/* ---- Score display ---- */
.ph-score-ring { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.ph-score-value { font-size: 2.75rem; font-weight: 900; color: var(--ph-orange); line-height: 1; }
.ph-score-label { font-size: .75rem; font-weight: 700; color: var(--ph-text-muted); text-transform: uppercase; letter-spacing: .07em; }

/* ---- Buttons ---- */
.btn-ph-primary {
    background: var(--ph-primary); color: white;
    border: none; border-radius: 8px;
    padding: .65rem 1.5rem;
    font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: .4rem;
    text-decoration: none; line-height: 1.4;
}
.btn-ph-primary:hover {
    background: var(--ph-primary-dark); color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,103,180,.35);
}
.btn-ph-outline {
    background: transparent; color: var(--ph-primary);
    border: 2px solid var(--ph-primary); border-radius: 8px;
    padding: .6rem 1.5rem;
    font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: .4rem;
    text-decoration: none; line-height: 1.4;
}
.btn-ph-outline:hover { background: var(--ph-primary-light); color: var(--ph-primary-dark); }

.btn-ph-ghost {
    background: transparent; color: var(--ph-text-muted);
    border: 1px solid var(--ph-border); border-radius: 8px;
    padding: .6rem 1.25rem;
    font-size: .875rem; font-weight: 500;
    cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: .4rem;
    text-decoration: none; line-height: 1.4;
}
.btn-ph-ghost:hover { background: var(--ph-border); color: var(--ph-text); }

/* ---- Orange CTA button (hero/CTAs) ---- */
.btn-ph-orange {
    background: var(--ph-orange); color: white;
    border: none; border-radius: 8px;
    padding: .65rem 1.5rem;
    font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: .4rem;
    text-decoration: none; line-height: 1.4;
}
.btn-ph-orange:hover {
    background: var(--ph-orange-dark); color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249,115,22,.4);
}

/* ---- Landing — hero eyebrow ---- */
.ph-hero-eyebrow {
    display: inline-block;
    background: rgba(26,103,180,.08);
    border: 1px solid rgba(26,103,180,.15);
    border-radius: 100px;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ph-primary);
    margin-bottom: 1.75rem;
}
.ph-hero-sub { font-size: 1.05rem; color: var(--ph-text-muted); max-width: 580px; margin: 0 auto 2rem; line-height: 1.7; }

/* ---- Landing — audience split cards ---- */
.ph-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}
@media (max-width: 680px) { .ph-audience-grid { grid-template-columns: 1fr; } }

.ph-audience-card {
    border-radius: var(--ph-radius);
    padding: 2rem;
    border: 2px solid var(--ph-border);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.ph-audience-owner {
    background: linear-gradient(145deg, #f4f7fc, #eef4fb);
    border-color: var(--ph-primary-light);
}
.ph-audience-provider {
    background: linear-gradient(145deg, #fff8f2, #fff0e6);
    border-color: rgba(249,115,22,.2);
}
.ph-audience-icon { font-size: 2rem; }
.ph-audience-card h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.ph-audience-card p { font-size: .875rem; color: var(--ph-text-muted); margin: 0; line-height: 1.65; }
.ph-audience-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .35rem;
}
.ph-audience-list li { font-size: .83rem; color: var(--ph-text-muted); }
.ph-audience-owner .ph-audience-list li::before { content: '✓ '; color: var(--ph-primary); font-weight: 700; }
.ph-audience-provider .ph-audience-list li::before { content: '✓ '; color: var(--ph-orange); font-weight: 700; }

.ph-or-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 0 2rem;
    color: var(--ph-text-muted);
    font-size: .83rem;
    font-weight: 500;
}
.ph-or-line { flex: 1; height: 1px; background: var(--ph-border); }

/* ---- Sidebar collapse ---- */
:root { --sidebar-width-collapsed: 68px; }

.ph-sidebar { transition: width .2s ease; }
.ph-main    { transition: margin-left .2s ease; }

.ph-app-shell.ph-sidebar-collapsed .ph-sidebar { width: var(--sidebar-width-collapsed); }
.ph-app-shell.ph-sidebar-collapsed .ph-main    { margin-left: var(--sidebar-width-collapsed); }

/* Hide text elements when collapsed */
.ph-app-shell.ph-sidebar-collapsed .ph-nav-card-text,
.ph-app-shell.ph-sidebar-collapsed .ph-sidebar-footer-text { display: none; }

/* Center icon-only cards */
.ph-app-shell.ph-sidebar-collapsed .ph-nav-card {
    justify-content: center;
    padding: .6rem .5rem;
}
.ph-app-shell.ph-sidebar-collapsed .ph-nav-cards-list { padding: .5rem .4rem; }

/* Shrink lottie when collapsed */
.ph-app-shell.ph-sidebar-collapsed .ph-nav-card dotlottie-wc {
    width: 32px !important;
    height: 32px !important;
}

/* Footer avatar centered */
.ph-app-shell.ph-sidebar-collapsed .ph-sidebar-footer-light { justify-content: center; }

/* ---- Light Sidebar (owner nav) ---- */
.ph-sidebar-light {
    background: #ffffff;
    border-right: 1px solid var(--ph-border);
    box-shadow: 2px 0 12px rgba(0,0,0,.06);
}

.ph-sidebar-header {
    display: flex;
    align-items: center;
    height: var(--topbar-height);
    border-bottom: 1px solid var(--ph-border);
    padding: 0 .75rem;
    gap: .5rem;
    flex-shrink: 0;
}

.ph-sidebar-toggle-btn {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--ph-text-muted);
    transition: background .15s, color .15s;
}
.ph-sidebar-toggle-btn:hover { background: var(--ph-bg); color: var(--ph-text); }

.ph-sidebar-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
}
.ph-sidebar-brand-logo img { height: 34px; width: auto; }

.ph-sidebar-brand-light {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ph-border);
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    height: var(--topbar-height);
}
.ph-sidebar-brand-light img { height: 36px; width: auto; }

.ph-nav-cards-list {
    padding: .75rem .75rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.ph-nav-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ph-text);
    transition: background .15s;
    cursor: pointer;
}
.ph-nav-card:hover {
    background: var(--ph-bg);
    color: var(--ph-text);
}
.ph-nav-card.active {
    background: var(--ph-primary-light);
}
.ph-nav-card.active .ph-nav-card-title { color: var(--ph-primary); }
.ph-nav-card.active .ph-nav-card-desc  { color: var(--ph-primary); opacity: .7; }

.ph-nav-card-text { display: flex; flex-direction: column; }
.ph-nav-card-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--ph-text);
    line-height: 1.2;
}
.ph-nav-card-desc {
    font-size: .74rem;
    color: var(--ph-text-muted);
    margin-top: .1rem;
    line-height: 1.3;
}

.ph-sidebar-footer-light {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--ph-border);
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ---- Utility ---- */
.text-primary { color: var(--ph-primary) !important; }
.text-muted { color: var(--ph-text-muted) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
