/* ==========================================================================
   Design system (light theme) — single source of truth
   ========================================================================== */
:root {
    /* Light palette */
    --bg-page: #F5F6F8;
    --bg-card: #FFFFFF;
    --bg-card-hover: #EEF1F4;
    --bg-nav: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --accent: #0D9488;
    --accent-hover: #0F766E;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Feedback */
    --color-error: #B91C1C;
    --color-success: #047857;

    /* Motion */
    --duration: 200ms;
    --ease: ease-out;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Breakpoints (for reference; use in media queries) */
    /* --bp-sm: 600px; --bp-md: 768px; --bp-lg: 1024px; --bp-xl: 1200px; */
    --page-padding: 1rem;

    /* Legacy aliases (for page CSS not yet updated; remove as pages are migrated) */
    --primary: #1E293B;
    --background: var(--bg-page);
    --text: var(--text-primary);
}

@media (min-width: 600px) {
    :root {
        --page-padding: 1.5rem;
    }
}
@media (min-width: 1024px) {
    :root {
        --page-padding: 2rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding-top: 80px;
    min-width: 0;
    width: 100%;
}

/* Section reveal (Intersection Observer) — subtle fade-in */
.section-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.section-reveal.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton / loading (for lists and inline indicators) */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card-hover) 25%,
        var(--border) 50%,
        var(--bg-card-hover) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

/* ==========================================================================
   Navbar (light, minimal)
   ========================================================================== */
.navbar {
    background-color: var(--bg-nav);
    padding: 1rem var(--page-padding);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--duration) var(--ease);
}

.navbar.navbar--scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 40px;
    display: block;
}

/* Logged-in navbar: bell + profile (always visible on small screens) */
.nav-user-chrome {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    position: relative;
}

/* Notification bell dropdown (Salesforce-style panel) */
.nav-notifications-wrap {
    position: relative;
}

.nav-notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(380px, calc(100vw - 2rem));
    max-height: min(480px, 70vh);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.08);
    z-index: 1102;
    overflow: hidden;
}

.nav-notifications-panel[hidden] {
    display: none !important;
}

.nav-notifications-caret {
    position: absolute;
    top: -7px;
    right: 14px;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
    z-index: 1;
}

.nav-notifications-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    background: var(--bg-card);
}

.nav-notifications-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.nav-notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-notifications-mark-all {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0.25rem 0;
    font-family: var(--font-sans);
}

.nav-notifications-mark-all:hover {
    color: var(--accent-hover);
}

.nav-notifications-mark-all:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: none;
}

.nav-notifications-close {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-sm);
}

.nav-notifications-close:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.nav-notifications-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-notifications-loading,
.nav-notifications-empty {
    padding: 1rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: center;
}

.nav-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    max-height: min(320px, 45vh);
}

.nav-notifications-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background var(--duration) var(--ease);
}

.nav-notifications-item:last-child {
    border-bottom: none;
}

.nav-notifications-item:hover {
    background: var(--bg-page);
}

.nav-notifications-item--unread {
    background: var(--bg-card-hover);
    box-shadow: inset 3px 0 0 var(--accent);
}

.nav-notifications-item-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.nav-notifications-item-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-notifications-item-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.nav-notifications-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.nav-notifications-item--unread .nav-notifications-item-dot {
    background: var(--accent);
}

.nav-notifications-footer {
    padding: 0.55rem 0.85rem;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-page);
}

.nav-notifications-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.nav-notifications-view-all:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/*
 * Narrow viewports: use fixed positioning. `left: 50%` on `position: absolute`
 * was relative to the tiny bell wrapper, so the panel stayed right-aligned
 * and overflowed off-screen (e.g. iPhone 12).
 */
@media (max-width: 768px) {
    .nav-notifications-panel {
        position: fixed;
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        width: auto;
        top: calc(80px + env(safe-area-inset-top, 0px) + 6px);
        transform: none;
        max-height: min(480px, calc(100vh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    }

    .nav-notifications-caret {
        /* Bell is on the right; align caret toward that corner */
        left: auto;
        right: max(1.25rem, calc(env(safe-area-inset-right, 0px) + 0.75rem));
        margin-left: 0;
    }

    .nav-notifications-mark-all {
        font-size: 0.75rem;
        white-space: normal;
        text-align: right;
    }
}

.nav-account--desktop {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.65rem;
}

.nav-account-greet {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text-primary);
    font-size: inherit;
    line-height: 1.2;
    user-select: none;
    pointer-events: none;
}

.nav-account-avatar-btn {
    border-radius: 1rem;
    flex-shrink: 0;
}

.notification-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm, 6px);
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background var(--duration, 0.2s) var(--ease, ease-out);
}

.notification-icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.notification-icon-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.notification-icon-btn .fa-bell {
    font-size: 1.15rem;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.1rem;
    text-align: center;
}

.notification-badge[hidden] {
    display: none !important;
}

.nav-profile {
    position: relative;
    display: inline-block;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    border-radius: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-btn:hover {
    background: var(--bg-card-hover);
}

.profile-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 0.5rem);
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.12);
    z-index: 1001;
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    border: 1px solid var(--border);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background-color: var(--bg-card-hover);
}

.dropdown-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    overflow: hidden;
    background-color: var(--border);
}

/* Logged-in: desktop bar link vs same link inside mobile sheet (one list on small screens) */
.nav-dashboard--in-panel {
    display: none;
}

/* Logged-in account block: shown only inside mobile hamburger menu */
.nav-auth-mobile-panel {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--duration) var(--ease);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.navbar--authenticated .nav-links {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

/* Buttons — shared primary/secondary */
.btn {
    padding: 0.5rem 1.25rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color var(--duration) var(--ease),
                color var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary,
.btn-get-started {
    background: var(--accent);
    border: none;
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-get-started:hover {
    background: var(--accent-hover);
}

.btn-secondary,
.btn-login {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover,
.btn-login:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.btn:hover {
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    transition: transform var(--duration) var(--ease);
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar--authenticated .nav-user-chrome {
        margin-left: auto;
    }

    .nav-account--desktop {
        display: none !important;
    }

    .nav-dashboard--in-panel {
        display: block;
    }

    .nav-auth-mobile-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.15rem;
    }

    .nav-auth-mobile-link {
        display: block;
        padding: 0.65rem 0;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-auth-mobile-link:hover,
    .nav-auth-mobile-link:focus-visible {
        color: var(--accent);
    }

    .nav-auth-mobile-link:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .nav-auth-mobile-divider {
        height: 1px;
        margin: 0.5rem 0;
        background: var(--border);
    }

    .nav-auth-mobile-link--logout {
        color: var(--accent);
        font-weight: 600;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: var(--page-padding);
        gap: 1rem;
        transform: translateY(-8px);
        opacity: 0;
        transition: transform var(--duration) var(--ease),
                    opacity var(--duration) var(--ease);
        pointer-events: none;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar--authenticated .nav-links,
    .navbar--authenticated .nav-links.active {
        align-items: stretch;
        gap: 0;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .navbar--authenticated .nav-links a.nav-auth-mobile-link {
        padding: 0.65rem 0;
    }

    .nav-buttons {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        transition: transform var(--duration) var(--ease),
                    opacity var(--duration) var(--ease);
    }

    .nav-buttons.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Payment methods guard modal (nav Payment Methods when unverified) */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.verification-modal.show {
    opacity: 1;
    visibility: visible;
}

.verification-modal-content {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.verification-modal.show .verification-modal-content {
    transform: scale(1);
}

.verification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.verification-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.verification-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.verification-modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.verification-modal-body {
    padding: 1.5rem;
    text-align: center;
}

.verification-icon {
    margin-bottom: 1rem;
}

.verification-icon i {
    font-size: 3rem;
    color: var(--accent);
}

.verification-modal-body p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.verification-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.verification-modal-footer .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Footer (light)
   ========================================================================== */
.footer {
    background-color: var(--bg-nav);
    padding: 2.5rem var(--page-padding) 0;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    display: block;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    min-width: 0;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--duration) var(--ease);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0 1.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.98rem;
    color: var(--text-secondary);
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.footer-copyright {
    flex: 1 1 250px;
}

.footer-social {
    flex: 1 1 250px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.footer-social span {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-page);
    color: var(--text-primary);
    transition: background-color var(--duration) var(--ease),
                color var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.footer-social a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.footer-social a:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
    }
    .footer-social {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 2rem var(--page-padding) 0;
    }
    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .footer-logo {
        max-width: 90px;
    }
    .footer-nav {
        gap: 0.65rem 1rem;
    }
    .footer-bottom {
        font-size: 0.92rem;
        padding-bottom: 1rem;
    }
}

/* Hero (home) — uses design tokens; full styling in home.css */
.home-hero {
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: var(--bg-page);
    padding: 3rem 0 2rem 0;
    box-sizing: border-box;
}

.hero-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 950px;
    width: 100%;
    padding: 1rem 3.5rem;
    box-sizing: border-box;
    margin: 0 auto;
}

.hero-left {
    flex: 1 1 0;
}

.hero-title {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.hero-btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-md);
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}
.hero-btn-primary:hover {
    background: var(--accent-hover);
}
.hero-btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-md);
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                border var(--duration) var(--ease);
}
.hero-btn-secondary:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}
.hero-btn-secondary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-right {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.2rem;
        gap: 2rem;
    }
    .hero-right {
        width: 100%;
        justify-content: flex-start;
    }
    .hero-phone {
        max-width: 220px;
    }
    .home-hero {
        padding: 1.5rem 0 1rem 0;
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 1.5rem 0 1rem 0;
    }
    .hero-content {
        padding: 1.2rem 0.5rem;
        border-radius: 1.2rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
    }
    .hero-btn-primary, .hero-btn-secondary {
        width: 100%;
        padding: 0.8rem 0;
        font-size: 1rem;
    }
    .hero-phone {
        max-width: 150px;
    }
}

/* In-app notification toasts (SSE) */
.walleza-toast-root {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.walleza-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent);
    animation: wallezaToastIn var(--duration) var(--ease);
}

@keyframes wallezaToastIn {
    from {
        opacity: 0;
        transform: translateX(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.walleza-toast-body {
    flex: 1;
    min-width: 0;
}

.walleza-toast-title {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.walleza-toast-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.walleza-toast-close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem;
    line-height: 1;
    border-radius: var(--radius-sm);
}

.walleza-toast-close:hover {
    color: var(--text-primary);
}

.walleza-toast-close:focus-visible {
    outline: 2px solid var(--accent);
}