/* ============================================
   RESPONSIVE CSS - Health Near Me
   Professional Redesign + Mobile Fix
   ============================================ */

/* ---- GLOBAL RESETS ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#body-wrapper { overflow-x: hidden; }

/* ============================================
   HEADER - Clean, professional sticky header
   ============================================ */
.fbb44a8b {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Red top bar with logo */
._0f25f9b7 {
    background: #bf2e29;
    padding: 0.7rem 0;
}

/* White cutout bubble behind logo - keep original mask/shape from main.css */
/* Just ensure it's visible and white */

._0f25f9b7 .a29e4ea1.cd32e94d {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

._0f25f9b7 .a29e4ea1 {
    width: 100% !important;
    max-width: 100% !important;
}

/* Logo text inside the white bubble should be black */
.eee21d8a {
    color: #000 !important;
}

._265fbf76.a1c1940e.b7af14b4 {
    color: #000 !important;
}

/* Keep white bubble contained within the red bar - don't extend below */
._0c7320c4 {
    --r: 1.2rem;
    translate: calc(var(--r) * -1) 0;
    z-index: 1;
}

/* Login/Register buttons white on red */
.c571fdbd {
    margin-left: auto;
    gap: 0.6rem;
}

.c571fdbd .a1c1940e.b7af14b4 {
    color: #fff;
}

.c571fdbd ._520955ba,
.c571fdbd ._948d9e0a {
    transition: opacity 0.2s;
}

.c571fdbd ._520955ba:hover {
    opacity: 0.85;
}

/* Logo image */
._5120d4ee {
    height: 3rem;
    transition: height 0.2s;
}

/* ============================================
   SEARCH BARS (non-homepage header)
   ============================================ */
._5c77c3d7 {
    padding: 0.8rem 1.2rem;
    background: #f8fafb;
    border-bottom: 1px solid #e8ecec;
}

/* ============================================
   MAIN NAVIGATION MENU
   ============================================ */
.main-menu {
    background: linear-gradient(135deg, #bf2e29 0%, #a12622 100%);
    min-height: 56px;
    height: auto;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: row;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: normal;
    flex-wrap: nowrap;
    position: relative;
    z-index: 50;
}

.main-menu::-webkit-scrollbar { display: none; }

.main-menu a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    color: #fff;
    letter-spacing: 0.04rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-left: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    padding: 0.6rem 0.8rem;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.3;
}

.main-menu a:first-child { border-left: none; }

.main-menu a.active {
    color: #bf2e29;
    background: #fff;
    border-bottom: 3px solid #bf2e29;
    font-weight: 600;
}

.tab-item {
    position: relative;
    display: flex;
    flex: 1;
    transition: background 0.2s;
}

.tab-item:hover {
    background: rgba(255,255,255,0.95);
    border-bottom: 3px solid #bf2e29;
}

.tab-item:hover a { color: #bf2e29; }
li.tab-item { margin-bottom: 0; }

/* Sub-Menu */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow-y: auto;
    max-height: 50dvh;
    overscroll-behavior: contain;
    min-width: 220px;
    z-index: 300;
    white-space: normal;
}

.sub-menu li a {
    display: block;
    padding: 0.6rem 1.4rem;
    color: #333;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.15s;
}

.sub-menu li a:hover {
    background: #bf2e29;
    color: #fff;
}

.tab-item:hover .sub-menu { display: block; }

/* ============================================
   HOME PAGE HERO SECTION
   ============================================ */
.home-hero {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(160deg, rgba(0, 47, 52, 0.7) 0%, rgba(0, 47, 52, 0.5) 100%),
                url('bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-hero-overlay {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    flex-direction: column;
}

.home-hero-content {
    text-align: center;
    max-width: 680px;
    width: 100%;
}

.home-hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-search-box {
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    overflow: visible;
    position: relative;
}

.home-search-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    border: 2px solid #e8ecec;
    border-radius: 10px;
    overflow: visible;
    transition: border-color 0.2s;
    position: relative;
}

.home-search-row:focus-within {
    border-color: #bf2e29;
}

.home-search-row-cat {
    display: flex;
    margin-top: 1rem;
    border: 2px solid #e8ecec;
    border-radius: 10px;
    overflow: visible;
    transition: border-color 0.2s;
    position: relative;
}

.home-search-row-cat:focus-within {
    border-color: #bf2e29;
}

/* Search button inside category row */
.home-search-btn-cat {
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    margin: 0;
    font-size: 0;
}

.home-search-field {
    display: flex;
    flex-direction: column;
    border: none;
    border-right: 1px solid #eee;
    padding: 1rem 1.4rem;
    position: relative;
}

.home-search-field-grow {
    flex: 1;
    border-right: none;
}

.home-search-row-cat .home-search-field {
    border-radius: 0;
    border: none;
}

.home-search-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.home-search-select {
    border: none;
    outline: none;
    font-size: 1.5rem;
    font-weight: 500;
    color: #002f34;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.home-search-input {
    border: none;
    outline: none;
    font-size: 1.5rem;
    color: #002f34;
    width: 100%;
    padding: 0;
}

.home-search-input::placeholder { color: #aaa; }

.home-search-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #bf2e29, #a12622);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 1rem 2.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-search-btn:hover {
    background: linear-gradient(135deg, #a12622, #8a1f1c);
    transform: scale(1.02);
}

.home-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.home-search-dropdown li {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 1.35rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.15s;
}

.home-search-dropdown li:hover {
    background: #fef2f2;
    color: #bf2e29;
    padding-left: 1.6rem;
}

/* Scroll down indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceDown 2.5s infinite;
    opacity: 0.7;
    cursor: pointer;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(12px); }
    60% { transform: translateX(-50%) translateY(6px); }
}

/* Homepage header - red bar at top overlaying the hero */
body:has(.home-hero) .fbb44a8b {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}

body:has(.home-hero) ._0f25f9b7 {
    background: #bf2e29;
}

/* Logo text white on homepage (bubble extends into dark hero) */
body:has(.home-hero) .eee21d8a {
    color: #000 !important;
}

body:has(.home-hero) ._265fbf76 {
    color: #000 !important;
}

/* Hide header search on homepage */
body:has(.home-hero) ._5c77c3d7 { display: none !important; }

/* Show the main nav menu at the top (below the logo bar) on the homepage - desktop only */
@media (min-width: 768px) {
    body:has(.home-hero) .main-menu:not(.home-page-menu) {
        display: flex;
    }
}

/* Hide the duplicate red menu that was rendered below the hero */
.home-red-menu {
    display: none !important;
}

/* ============================================
   SECTION BACKGROUNDS & CARDS
   ============================================ */
.sectionBg {
    background: rgba(227, 238, 242, 0.7);
    border-radius: 16px;
    box-shadow: 25px 15px 50px #2C4551 !important;
    padding: 24px 16px 28px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}

.sectionBg:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

/* Section title */
._5d20b0c4 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2b30;
    letter-spacing: -0.01em;
}

/* Listing cards */
._84ba2e24 {
    background: #fff;
    border: 1px solid #e8ecec;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

._84ba2e24:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: #bf2e29;
}

/* Card image */
._21914307 {
    height: 140px;
    overflow: hidden;
}

._21914307 img, ._21914307 picture {
    transition: transform 0.3s ease;
}

._84ba2e24:hover ._21914307 img,
._84ba2e24:hover ._21914307 picture img {
    transform: scale(1.05);
}

/* Card title */
.cb7e1f7d {
    color: #1a2b30;
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.3;
}

/* Certification badges */
._542b4c35 {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    margin: 0.2rem 0.3rem 0.2rem 0;
    letter-spacing: 0.01em;
}

/* Location text */
._43b2324f {
    color: #666;
    font-size: 1.2rem;
}

/* View more link */
._9c240bda {
    color: #bf2e29;
    font-weight: 600;
    font-size: 1.3rem;
    transition: color 0.2s;
}

._9c240bda:hover {
    color: #a12622;
    text-decoration: underline;
}

/* Featured badge on images */
.featured {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #bf2e29, #e53935);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   POPULAR CATEGORIES GRID
   ============================================ */
.e0339389 { justify-content: center; }

._74d78899 {
    transition: transform 0.2s;
}

._74d78899:hover {
    transform: translateY(-3px);
}

.dab7f421 {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: transform 0.2s;
}

._74d78899:hover .dab7f421 {
    transform: scale(1.1);
}

.af339672 {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    margin-top: 0.4rem;
}

/* ============================================
   FOOTER - Modern clean footer
   ============================================ */
._1f62c724 {
    background: #1a2b30;
    color: #ccc;
}

._3fef9c6a {
    padding: 3rem 2rem;
}

._09ced3e2 {
    flex-wrap: wrap;
    gap: 2.5rem;
}

._09781e6d {
    min-width: 160px;
}

._09781e6d .a1c1940e.b7af14b4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

._272c845c {
    list-style: none;
    padding: 0;
    margin: 0;
}

._56a38f7a {
    color: #aab;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.2s;
}

._56a38f7a:hover {
    color: #fff;
}

.f9c212f8 {
    background: #0f1e22;
    padding: 1rem 2rem;
    text-align: center;
}

._26fd7490 {
    color: #aab;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-copy-left,
.footer-copy-right {
    white-space: nowrap;
}

.footer-copy-right {
    color: #ccc;
}

@media (max-width: 767px) {
    ._26fd7490 {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-copy-left,
    .footer-copy-right {
        white-space: normal;
    }
}

/* ============================================
   FORMS (Login, Register, User)
   ============================================ */
._91e21052 {
    background: linear-gradient(135deg, #bf2e29, #a12622);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

._91e21052:hover {
    background: linear-gradient(135deg, #a12622, #8a1f1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(191,46,41,0.3);
}

/* Form input fields */
._9bd90310 {
    border: 2px solid #e8ecec;
    border-radius: 8px;
    transition: border-color 0.2s;
}

._9bd90310:focus-within {
    border-color: #bf2e29;
}

._8206e8bf.dcca86d9 {
    padding: 0.8rem 1rem;
    font-size: 1.5rem;
    border-radius: 6px;
}

/* ============================================
   MOBILE MAIN CATEGORIES GRID
   ============================================ */
.mobile-main-cat-grid { display: none; }
.desktop-popular-cats { display: block; }

@media (max-width: 767px) {
    .desktop-popular-cats { display: block !important; }
    .mobile-main-cat-grid { display: none !important; }

    /* Show mobile hamburger menu button */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Hide the main-menu on mobile (use red bar + subcats instead) */
    .main-menu {
        display: none !important;
    }
}

.mobile-main-cat-item {
    cursor: pointer;
    transition: transform 0.15s ease;
    text-align: center;
}

.mobile-main-cat-item:active { transform: scale(0.95); }

.mobile-subcats-expanded {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.25s ease-out;
}

.mobile-subcat-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #002f34;
    font-size: 1.3rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.mobile-subcat-chip:hover,
.mobile-subcat-chip:active {
    background: #bf2e29;
    color: #fff;
    border-color: #bf2e29;
}

.mobile-subcat-chip-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MOBILE HAMBURGER TOGGLE
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #bf2e29, #a12622);
    border: none;
    color: white;
    font-size: 1.6rem;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-weight: 600;
}

/* ============================================
   MOBILE STYLES (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {

    /* -- Header fixes -- */
    ._0f25f9b7 .a29e4ea1.cd32e94d {
        padding: 0.4rem 0.6rem;
    }

    ._0f25f9b7 {
        padding: 0.5rem 0;
    }

    ._0c7320c4 {
        --r: 0.8rem;
        translate: calc(var(--r) * -1) 0;
    }

    ._5120d4ee {
        height: 1.8rem;
    }

    ._265fbf76.a1c1940e.b7af14b4 {
        font-size: 1.2rem;
    }

    .c571fdbd .a1c1940e.b7af14b4 {
        font-size: 1.1rem;
    }
    .home-hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 60px;
    }

    .home-hero-overlay {
        padding: 1.5rem 1rem;
    }

    .home-hero-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .home-search-box {
        padding: 1rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }

    .home-search-row {
        flex-direction: column;
        border: 1.5px solid #e8ecec;
        border-radius: 8px;
        gap: 0;
        overflow: visible;
    }

    .home-search-field {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0.7rem 0.9rem;
        position: relative;
    }

    .home-search-field:last-of-type {
        border-bottom: none;
    }

    .home-search-label {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }

    .home-search-select,
    .home-search-input {
        font-size: 1.3rem;
    }

    /* FIND button - full width below location */
    .home-search-btn {
        border-radius: 8px;
        justify-content: center;
        width: 100%;
        padding: 0.85rem;
        margin-top: 0.7rem;
        font-size: 1.3rem;
    }

    /* Category search row */
    .home-search-row-cat {
        border: 1.5px solid #e8ecec;
        border-radius: 8px;
        margin-top: 0.6rem;
        display: flex;
        align-items: stretch;
    }

    .home-search-row-cat .home-search-field {
        border-bottom: none;
        padding: 0.7rem 0.9rem;
    }

    /* Hide SEARCH label on mobile */
    .home-search-row-cat .home-search-label {
        display: none;
    }

    /* Search button inside category row on mobile */
    .home-search-btn-cat {
        margin-top: 0;
        width: auto;
        padding: 0.7rem 1rem;
        border-radius: 0 6px 6px 0;
        font-size: 1.2rem;
    }

    /* Area dropdown - make it larger on mobile */
    .home-search-dropdown {
        max-height: 45vh;
        border-radius: 0 0 8px 8px;
    }

    .home-search-dropdown li {
        padding: 1rem 1.2rem;
        font-size: 1.4rem;
        border-bottom: 1px solid #f0f0f0;
    }

    /* -- Search bars (non-home pages) -- */
    ._5c77c3d7 {
        flex-direction: column;
        gap: 0.6rem !important;
        padding: 0.6rem 0.8rem;
        align-items: stretch;
    }

    .af8fa358 {
        min-width: unset !important;
        width: 100%;
    }

    ._91727253 {
        width: 100%;
        display: flex;
        gap: 0.6rem;
    }

    ._9631e63d {
        max-height: 40vh;
        overflow-y: auto;
    }

    /* -- Page content -- */
    ._7c843346 {
        padding: 0 0.6rem;
    }

    ._5d20b0c4 {
        font-size: 1.6rem !important;
    }

    /* -- Categories grid on mobile -- */
    .mobile-main-cat-grid .e0339389 {
        --_min-value: 8rem !important;
        --gap: 0.8rem !important;
    }

    .mobile-main-cat-grid ._74d78899 {
        width: 80px;
    }

    .mobile-main-cat-grid .af339672 {
        font-size: 1.05rem;
        word-wrap: break-word;
        text-align: center;
        line-height: 1.3;
    }

    /* Fix category icons - uniform container, handle non-transparent images */
    .mobile-main-cat-grid .dab7f421 {
        width: 60px;
        height: 60px;
        object-fit: contain;
        border-radius: 50%;
        background: #f0f4f5;
        padding: 8px;
    }

    .mobile-subcat-chip-icon { display: none; }

    /* -- Facility Cards -- */
    .f2aed143 {
        --_items-per-row: 4 !important;
        --_min-item-width: 15rem !important;
        gap: 0.8rem;
    }

    ._84ba2e24 {
        min-width: 15rem;
        border-radius: 10px;
    }

    ._21914307 { height: 110px; }

    ._62ba04e1 { padding: 0.6rem 0.7rem; }

    .cb7e1f7d { font-size: 1.25rem; }

    ._542b4c35 {
        font-size: 0.95rem;
        padding: 0.2rem 0.5rem;
    }

    ._43b2324f { font-size: 1.05rem; }

    /* Section cards */
    .sectionBg {
        padding: 14px 10px 18px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    }

    /* -- Forms (Login, Register) -- */
    .cf5de471 { padding: 0 0.6rem; }
    ._5aacff77 { padding: 0; }

    ._4b14156c._6a82aefc {
        display: block !important;
        margin-bottom: 1rem;
    }

    ._21361cc3._6a82aefc._24f8bbcf {
        margin-bottom: 0.4rem;
    }

    ._8206e8bf { font-size: 1.4rem; }
    ._19797848 { padding: 1rem 0.5rem; }

    ._91e21052 {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    ._442e6fa9 {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* -- Footer -- */
    ._09ced3e2 {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    ._09781e6d { width: 100%; }
    ._3fef9c6a { padding-block: 2.5rem; }

    .e5a06375 { text-align: center; }
    .e5a06375 ._948d9e0a { justify-content: center; }

    ._26fd7490 {
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* -- Page titles -- */
    ._353155d8 { padding: 1rem 0.5rem; }
    .c650ce72 { font-size: 1.8rem; }
    .e6d06fd1 { font-size: 1.6rem; }

    /* -- Admin panel -- */
    ._2d92de1e { overflow-x: auto; }
    ._9cd93ee9 { white-space: nowrap; }
    ._9f3de5a6 { display: inline-block; padding: 0.5rem 1rem; }

    /* -- Hamburger: shown on mobile via earlier rule -- */
}

/* ============================================
   TABLET STYLES (768px to 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {

    ._5c77c3d7 {
        --template: 28rem 1fr;
        --gap: 1rem;
    }

    .af8fa358 { min-width: 28rem; }

    .main-menu { height: 52px; }
    .main-menu a { font-size: 1.25rem; padding: 0 0.8rem; }

    .f2aed143 { --_items-per-row: 3 !important; }

    ._09ced3e2 {
        flex-wrap: wrap;
        gap: 2rem;
    }

    ._09781e6d {
        flex: 1 1 calc(33% - 2rem);
        min-width: 180px;
    }

    ._4b14156c._6a82aefc {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .f2aed143 { --_items-per-row: 4; overflow: visible; }

    ._09ced3e2 {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    ._09781e6d { flex: 1; }
}

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .f2aed143 { --_items-per-row: 5; }
}

/* ============================================
   VERY SMALL SCREENS (max-width: 380px)
   ============================================ */
@media (max-width: 380px) {
    ._265fbf76.a1c1940e.b7af14b4 { display: none; }

    .f2aed143 {
        --_items-per-row: 1 !important;
        --_min-item-width: 100% !important;
    }

    ._84ba2e24 { min-width: 100%; }

    .e0339389 { --_min-value: 7ch; }
    ._74d78899 { width: 60px; }
    .dab7f421 { width: 36px; height: 36px; }

    .home-hero-title { font-size: 1.7rem; }
    .home-search-box { padding: 0.8rem; }
}

/* ============================================
   SMOOTH SCROLL FOR HORIZONTAL AREAS
   ============================================ */
.f2aed143,
.main-menu {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.f2aed143 { scroll-snap-type: x mandatory; }
.f2aed143 > article { scroll-snap-align: start; }


/* ============================================
   ADDITIONAL UTILITY STYLES
   ============================================ */

/* Main category nav link in header menu (clickable parent) */
.main-cat-nav-link {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    color: #fff;
    letter-spacing: 0.04rem;
    font-size: 1.35rem;
    font-weight: 500;
    padding: 0 1.2rem;
    cursor: pointer;
    height: 100%;
    transition: all 0.2s;
}

.tab-item:hover .main-cat-nav-link {
    color: #bf2e29;
}

/* Admin table styling */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
}

.table th {
    background: #1a2b30;
    color: #fff;
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1.2rem;
}

.table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e8ecec;
    vertical-align: middle;
}

.table tr:hover {
    background: #f8fafb;
}

.textCenter {
    text-align: center;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #bf2e29;
    color: #fff;
}

.btn-primary:hover {
    background: #a12622;
}

.btn-success {
    background: #2e7d32;
    color: #fff;
}

.btn-success:hover {
    background: #1b5e20;
}

.btn-secondary {
    background: #666;
    color: #fff;
}

.btn-secondary:hover {
    background: #444;
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 1.1rem;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #bf2e29;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Status messages */
._24f8bbcf {
    color: #bf2e29;
    font-weight: 500;
}

/* ============================================
   REGISTRATION - Grouped Category Selection
   ============================================ */
.reg-cat-groups {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem;
}

.reg-cat-group {
    border: 1px solid #e0e5e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.reg-cat-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.2rem;
    background: #f8fafb;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a2b30;
    transition: background 0.2s;
    text-align: left;
}

.reg-cat-group-header:hover {
    background: #eef3f4;
}

.reg-cat-group-header.open {
    background: #fef2f2;
    color: #bf2e29;
    border-bottom: 1px solid #f0d5d4;
}

.reg-cat-group-name {
    flex: 1;
}

.reg-cat-group-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reg-cat-group-count {
    background: #bf2e29;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
}

.reg-cat-chevron {
    transition: transform 0.25s ease;
    color: #888;
}

.reg-cat-group-header.open .reg-cat-chevron {
    transform: rotate(180deg);
    color: #bf2e29;
}

.reg-cat-sublist {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    animation: slideDown 0.2s ease-out;
}

.reg-cat-sub-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid #f4f6f6;
    transition: background 0.15s;
}

.reg-cat-sub-item:last-child {
    border-bottom: none;
}

.reg-cat-sub-item:hover {
    background: #f8fafb;
}

.reg-cat-sub-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #bf2e29;
    cursor: pointer;
    flex-shrink: 0;
}

.reg-cat-sub-name {
    flex: 1;
    font-size: 1.4rem;
    color: #333;
}

.reg-cat-sub-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #bf2e29;
    white-space: nowrap;
}

/* ============================================
   REGISTRATION - Selected Categories Summary
   ============================================ */
.reg-selected-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.2rem;
    background: #f8fafb;
    border: 1px dashed #cdd8da;
    border-radius: 10px;
    min-height: 60px;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reg-selected-empty {
    color: #999;
    font-size: 1.4rem;
    font-style: italic;
}

.reg-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #bf2e29;
    border-radius: 20px;
    padding: 0.4rem 0.5rem 0.4rem 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a2b30;
}

.reg-selected-chip-price {
    color: #bf2e29;
    font-weight: 600;
    font-size: 1.2rem;
}

.reg-selected-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #bf2e29;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.reg-selected-remove:hover {
    background: #a12622;
}

/* ============================================
   FORM PAGES (Register / Login / User) - Professional
   ============================================ */

/* Page title banner */
._353155d8 {
    padding: 2.5rem 0 1.5rem;
}

.c650ce72 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.c650ce72 .e6d06fd1::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 2.4rem;
    background: #bf2e29;
    border-radius: 3px;
    margin-right: 2px;
}

/* Form outer container width */
.cf5de471 {
    max-width: 760px;
    padding: 0 1rem;
}

._5aacff77 {
    padding-bottom: 2.5rem;
}

/* Form card */
._19797848 {
    background: #fff;
    border-radius: 16px !important;
    box-shadow: 0 6px 30px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #eef1f2 !important;
    padding: 1rem 0 2rem !important;
}

/* Section headings (Basic Information, Certifications, etc.) */
._2454243d {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: #bf2e29;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0d5d4;
    width: 100%;
}

/* Make section heading rows span full width for the underline */
._4b14156c._6a82aefc:has(._2454243d) {
    display: block !important;
}

._4b14156c._6a82aefc:has(._2454243d) ._21361cc3 {
    width: 100%;
    display: block;
}

/* Dividers between sections */
._00b5e7e2 {
    background: transparent !important;
    height: 1px !important;
    border-top: 1px dashed #e0e5e6;
    margin: 0.5rem 0;
}

/* Field labels */
._21361cc3._6a82aefc._24f8bbcf {
    color: #333;
    font-weight: 500;
}

/* Input wrappers */
._9bd90310 {
    border: 1.5px solid #e0e5e6;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fff;
}

._9bd90310:focus-within {
    border-color: #bf2e29;
    box-shadow: 0 0 0 3px rgba(191,46,41,0.08);
}

._8206e8bf.dcca86d9 {
    padding: 0.85rem 1rem;
    font-size: 1.45rem;
    border-radius: 8px;
    background: transparent;
}

/* Register submit button row */
._442e6fa9 {
    padding-top: 1rem;
}

._442e6fa9 ._91e21052 {
    background: linear-gradient(135deg, #bf2e29, #a12622);
    padding: 1rem 2.5rem;
    font-size: 1.6rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(191,46,41,0.25);
}

._442e6fa9 ._91e21052:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191,46,41,0.35);
}

/* Status message */
._442e6fa9 ._8206696c {
    color: #bf2e29;
    font-weight: 500;
}

/* ============================================
   FORM PAGES - Responsive (mobile)
   ============================================ */
@media (max-width: 767px) {
    ._353155d8 {
        padding: 1.5rem 0 1rem;
    }

    .c650ce72 {
        font-size: 2rem;
    }

    .cf5de471 {
        padding: 0 0.8rem;
    }

    ._19797848 {
        padding: 0.5rem 0 1.5rem !important;
        border-radius: 12px !important;
    }

    /* Stack label above input */
    ._4b14156c._6a82aefc {
        display: block !important;
        margin-bottom: 1.2rem;
        padding: 0 1.2rem !important;
    }

    ._21361cc3._6a82aefc._24f8bbcf {
        margin-bottom: 0.5rem;
        display: block;
    }

    ._2454243d {
        font-size: 1.5rem;
    }

    ._8206e8bf.dcca86d9 {
        font-size: 1.4rem;
        width: 100%;
    }

    /* Category groups full width on mobile */
    .reg-cat-groups {
        padding: 0 1.2rem;
    }

    .reg-cat-group-header {
        font-size: 1.4rem;
        padding: 0.9rem 1rem;
    }

    .reg-cat-sub-name {
        font-size: 1.3rem;
    }

    .reg-cat-sub-price {
        font-size: 1.2rem;
    }

    /* Selected box full width on mobile */
    .reg-selected-box {
        margin: 0 1.2rem;
    }

    /* Full width submit */
    ._442e6fa9 {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.2rem 0;
    }

    ._442e6fa9 ._91e21052 {
        width: 100%;
    }
}

/* ============================================
   FORM PAGES - Desktop field spacing
   ============================================ */
@media (min-width: 768px) {
    ._4b14156c._6a82aefc {
        align-items: center;
        padding: 0 2.5rem !important;
    }
}

/* ============================================
   REGISTRATION WIZARD
   ============================================ */

/* Step content - only active step visible */
.wizard-step {
    display: none;
    animation: wizardFade 0.25s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFade {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Progress indicator */
.wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 2rem 2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eef1f2;
    gap: 0.3rem;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    cursor: pointer;
    text-align: center;
}

/* Connector line between steps */
.wizard-step-item::before {
    content: "";
    position: absolute;
    top: 16px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #e0e5e6;
    z-index: 0;
}

.wizard-step-item:first-child::before {
    display: none;
}

.wizard-step-item.done::before {
    background: #bf2e29;
}

.wizard-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e5e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #999;
    position: relative;
    z-index: 1;
    transition: all 0.25s;
}

.wizard-step-item.active .wizard-step-circle {
    border-color: #bf2e29;
    background: #bf2e29;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(191,46,41,0.12);
}

.wizard-step-item.done .wizard-step-circle {
    border-color: #bf2e29;
    background: #bf2e29;
    color: #fff;
}

.wizard-step-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #999;
    white-space: nowrap;
}

.wizard-step-item.active .wizard-step-label {
    color: #bf2e29;
    font-weight: 600;
}

.wizard-step-item.done .wizard-step-label {
    color: #1a2b30;
}

/* Wizard navigation buttons */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2.5rem 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid #eef1f2;
}

.wizard-status {
    flex: 1;
    text-align: center;
    color: #bf2e29;
    font-size: 1.3rem;
    font-weight: 500;
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.wizard-btn-back {
    background: #fff;
    color: #555;
    border: 1.5px solid #d5dcdd;
}

.wizard-btn-back:hover {
    background: #f4f6f6;
    border-color: #bbb;
}

.wizard-btn-next,
.wizard-btn-submit {
    background: linear-gradient(135deg, #bf2e29, #a12622);
    color: #fff;
    box-shadow: 0 4px 14px rgba(191,46,41,0.25);
}

.wizard-btn-next:hover,
.wizard-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191,46,41,0.35);
}

.wizard-btn-submit {
    padding: 0.85rem 2.4rem;
}

/* ============================================
   WIZARD - Mobile responsive
   ============================================ */
@media (max-width: 767px) {
    .wizard-progress {
        padding: 1rem 0.8rem 1.5rem;
        gap: 0.2rem;
    }

    .wizard-step-circle {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }

    .wizard-step-item::before {
        top: 13px;
    }

    /* Show only current step's label on mobile to save space */
    .wizard-step-label {
        font-size: 0.9rem;
    }

    .wizard-nav {
        padding: 1.2rem 1rem 0.5rem;
        gap: 0.6rem;
    }

    .wizard-btn {
        padding: 0.75rem 1.2rem;
        font-size: 1.3rem;
    }

    .wizard-status {
        font-size: 1.1rem;
    }
}

@media (max-width: 420px) {
    /* Hide labels on very small screens, keep circles */
    .wizard-step-label {
        display: none;
    }

    .wizard-progress {
        padding: 1.2rem 1rem 1.2rem;
    }
}

/* ============================================
   HEADER SEARCH BAR + DROPDOWN CLICK-AWAY
   ============================================ */

/* Invisible full-screen overlay to catch outside clicks */
.dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: transparent;
}

/* Raise the search bar (inputs + dropdowns) above the overlay */
._5c77c3d7 {
    position: relative;
    z-index: 200;
    padding: 0.8rem 1.2rem;
    background: #f8fafb;
    border-bottom: 1px solid #e8ecec;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dropdown lists appear above overlay */
._9631e63d {
    z-index: 210 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    border: 1px solid #e8ecec;
    border-radius: 8px !important;
    margin-top: 0.3rem;
}

._9631e63d .c279dfd2 {
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    font-size: 1.35rem;
    color: #333;
    transition: all 0.15s;
    list-style: none;
}

._9631e63d .c279dfd2:hover {
    background: #fef2f2;
    color: #bf2e29;
}

/* Location input container */
.af8fa358 {
    min-width: 32rem;
}

/* Search input grows */
._91727253 {
    flex: 1;
}

/* Location + search input styling */
._9bd90310._8367ea94 {
    border: 1.5px solid #e0e5e6;
    border-radius: 8px;
    transition: border-color 0.2s;
    background: #fff;
}

._9bd90310._8367ea94:focus-within {
    border-color: #bf2e29;
}

/* Search button */
.bb5acd8e {
    background: linear-gradient(135deg, #bf2e29, #a12622);
    color: #fff;
    border-radius: 8px;
    padding: 0 1.6rem;
    transition: all 0.2s;
}

.bb5acd8e:hover {
    background: linear-gradient(135deg, #a12622, #8a1f1c);
}

/* ============================================
   HOMEPAGE - POPULAR CATEGORIES (desktop/laptop)
   ============================================ */
@media (min-width: 768px) {
    /* Section title in brand red */
    .desktop-popular-cats ._5d20b0c4 {
        color: #bf2e29;
        font-size: 2rem;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
    }

    /* Grid: more columns, tighter spacing to match reference */
    .desktop-popular-cats .e0339389 {
        --_min-value: 11ch !important;
        --gap: 2.4rem 1rem !important;
        padding: 1.2rem 1.5rem 0.5rem;
        align-items: start;
    }

    /* Each category item */
    .desktop-popular-cats a {
        text-decoration: none;
    }

    .desktop-popular-cats ._74d78899 {
        align-items: center;
        gap: 0.4rem;
        transition: transform 0.2s ease;
    }

    .desktop-popular-cats a:hover ._74d78899 {
        transform: translateY(-4px);
    }

    /* Icon */
    .desktop-popular-cats .dab7f421 {
        max-width: 5.6rem;
        width: 100%;
        aspect-ratio: 1;
        object-fit: contain;
        transition: transform 0.2s ease;
    }

    .desktop-popular-cats a:hover .dab7f421 {
        transform: scale(1.08);
    }

    /* Label - bold, dark, centered, Inter font */
    .desktop-popular-cats .af339672 {
        font-family: 'Inter', sans-serif;
        font-size: 1.45rem;
        font-weight: 600;
        color: #1a2b30;
        text-align: center;
        line-height: 1.3;
        margin-top: 0.8rem;
        text-transform: capitalize;
    }

    .desktop-popular-cats a:hover .af339672 {
        color: #bf2e29;
    }
}

/* ============================================================
   ADMIN PANEL - Professional theme (matches site red/white)
   ============================================================ */

/* ---- Admin navbar ---- */
.admin-navbar {
    background: linear-gradient(135deg, #bf2e29 0%, #a12622 100%);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.admin-navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    min-height: 60px;
    gap: 1rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.2);
    margin-right: 0.5rem;
}

.admin-brand-logo {
    height: 2.4rem;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
}

.admin-brand-text {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-brand-sub {
    font-weight: 400;
    opacity: 0.85;
    margin-left: 2px;
}

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}

.admin-nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.admin-nav-link.active {
    background: #fff;
    color: #bf2e29;
    font-weight: 600;
}

.admin-nav-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    background: rgba(0,0,0,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 1.35rem;
    font-weight: 500;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-nav-logout:hover {
    background: rgba(0,0,0,0.3);
}

.admin-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
}

/* ---- Admin page container ---- */
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    width: 100%;
}

/* Admin page header row */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2b30;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-page-title::before {
    content: "";
    width: 5px;
    height: 2.2rem;
    background: #bf2e29;
    border-radius: 3px;
}

/* Add-new button */
.admin-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #bf2e29, #a12622);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(191,46,41,0.25);
}

.admin-add-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(191,46,41,0.35);
}

.admin-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status alert */
.admin-status {
    display: block;
    background: #fef2f2;
    border: 1px solid #f5c6c4;
    border-left: 4px solid #bf2e29;
    color: #a12622;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* ---- Admin card / table wrapper ---- */
.admin-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #eef1f2;
    overflow: hidden;
    width: 100%;
}

.admin-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 70vh;
}

/* ---- Admin table ---- */
.admin-card .table,
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.35rem;
    margin: 0;
}

.admin-card .table thead th,
table.admin-table thead th {
    background: #1a2b30;
    color: #fff;
    text-align: left;
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Certification matrix header stays sticky vertically too */
.cert-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1a2b30 !important;
}

/* (corner/SR header sticky handled in the column definitions below) */

.admin-card .table tbody td,
table.admin-table tbody td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #eef1f2;
    color: #333;
    vertical-align: middle;
}

.admin-card .table tbody tr:nth-child(even),
table.admin-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.admin-card .table tbody tr:hover,
table.admin-table tbody tr:hover {
    background: #fef7f7;
}

.admin-card .table .textCenter,
table.admin-table .textCenter {
    text-align: center;
}

/* Inline edit inputs in tables */
.admin-card .table input[type="text"],
.admin-card .table input[type="number"],
.admin-card .table select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1.5px solid #d5dcdd;
    border-radius: 6px;
    font-size: 1.3rem;
    background: #fff;
    transition: border-color 0.2s;
}

.admin-card .table input[type="text"]:focus,
.admin-card .table input[type="number"]:focus,
.admin-card .table select:focus {
    outline: none;
    border-color: #bf2e29;
}

/* Yes / No status pills */
.admin-pill {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-pill-yes {
    background: #e8f5e9;
    color: #2e7d32;
}

.admin-pill-no {
    background: #f0f0f0;
    color: #888;
}

/* ---- Admin action buttons ---- */
.admin-card .btn,
.admin-action-btn {
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0.1rem;
    white-space: nowrap;
}

.admin-card .btn-primary { background: #bf2e29; color: #fff; }
.admin-card .btn-primary:hover { background: #a12622; }
.admin-card .btn-success { background: #2e7d32; color: #fff; }
.admin-card .btn-success:hover { background: #1b5e20; }
.admin-card .btn-secondary { background: #6b7a80; color: #fff; }
.admin-card .btn-secondary:hover { background: #55636a; }
.admin-card .btn-sm { padding: 0.4rem 0.9rem; font-size: 1.15rem; }

/* ---- Admin login page ---- */
.admin-login-wrap {
    width: 100%;
    max-width: 560px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .admin-login-wrap {
        max-width: 680px;
    }
}

.admin-login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-top: 5px solid #bf2e29;
    padding: 3rem 3.5rem;
    width: 100%;
}

.admin-login-card form {
    width: 100%;
}

.admin-login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, #bf2e29, #a12622);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(191,46,41,0.3);
}

.admin-login-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2b30;
    margin-bottom: 0.4rem;
}

.admin-login-subtitle {
    text-align: center;
    font-size: 1.35rem;
    color: #888;
    margin-bottom: 2rem;
}

.admin-field {
    margin-bottom: 1.4rem;
}

.admin-field label {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.admin-field input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid #d5dcdd;
    border-radius: 8px;
    font-size: 1.45rem;
    transition: all 0.2s;
}

.admin-field input:focus {
    outline: none;
    border-color: #bf2e29;
    box-shadow: 0 0 0 3px rgba(191,46,41,0.1);
}

.admin-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #bf2e29, #a12622);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.admin-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(191,46,41,0.3);
}

/* ---- Admin responsive (mobile) ---- */
@media (max-width: 860px) {
    .admin-nav-toggle {
        display: block;
    }

    .admin-nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #a12622;
        padding: 0.6rem;
        gap: 0.3rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .admin-nav-links.open {
        display: flex;
    }

    .admin-nav-link {
        padding: 0.9rem 1.2rem;
    }

    .admin-nav-logout {
        margin-left: 0;
        justify-content: center;
        margin-top: 0.3rem;
    }
}

@media (max-width: 767px) {
    .admin-page {
        padding: 1.5rem 0.8rem 2.5rem;
    }

    .admin-page-title {
        font-size: 1.8rem;
    }

    .admin-add-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-card .table,
    table.admin-table {
        font-size: 1.25rem;
    }
}

/* Count badge in admin headers */
.admin-count-badge {
    background: #eef2f4;
    color: #55636a;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Admin stat cards (Certifications overview) */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #eef1f2;
    border-top: 4px solid #bf2e29;
    padding: 1.5rem 1.6rem;
}

.admin-stat-label {
    font-size: 1.35rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #1a2b30;
    margin-top: 0.4rem;
    line-height: 1;
}

.admin-stat-sub {
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 0.4rem;
}

.admin-info-note {
    background: #f8fafb;
    border: 1px dashed #cdd8da;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    color: #55636a;
    font-size: 1.35rem;
    line-height: 1.5;
}

/* Force admin pages to use full viewport width, breaking out of parent constraints */
body:has(.admin-navbar) .a29e4ea1,
body:has(.admin-navbar) .cf5de471,
body:has(.admin-navbar) ._948d9e0a._95d4067f {
    max-width: 100% !important;
    width: 100% !important;
}

/* ============================================
   MAIN MENU - Category icons
   ============================================ */
.main-cat-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 0.6rem;
}

/* Desktop: hide icons */
@media (min-width: 768px) {
    .main-cat-icon {
        display: none;
    }
}

/* ============================================
   MOBILE RED MENU BAR (below logo, scrollable)
   ============================================ */
.mobile-red-menu-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-red-menu-bar {
        display: flex;
        align-items: stretch;
        background: linear-gradient(135deg, #bf2e29 0%, #a12622 100%);
        position: relative;
    }

    .mobile-red-menu-scroll {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
        padding: 0;
    }

    .mobile-red-menu-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-red-menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 1rem;
        color: #fff;
        font-size: 1.2rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        text-align: center;
        border-right: 1px solid rgba(255,255,255,0.2);
        transition: background 0.2s;
        min-width: max-content;
    }

    .mobile-red-menu-item:first-child {
        border-left: none;
    }

    .mobile-red-menu-item:hover,
    .mobile-red-menu-item:active {
        background: rgba(255,255,255,0.15);
    }

    .mobile-red-menu-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.6rem;
        background: rgba(0,0,0,0.2);
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
    }
}

/* ============================================
   MOBILE RED MENU BAR - Sub-categories panel & active state
   ============================================ */
@media (max-width: 767px) {
    .mobile-red-menu-item.active {
        background: #fff;
        color: #bf2e29;
        font-weight: 600;
    }

    .mobile-subcats-bar {
        display: flex;
        gap: 0.4rem;
        padding: 0.6rem 0.8rem;
        background: #fff;
        border-bottom: 2px solid #bf2e29;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: wrap;
        animation: slideDown 0.2s ease-out;
    }

    .mobile-subcats-bar::-webkit-scrollbar {
        display: none;
    }

    .mobile-subcats-bar-item {
        display: inline-block;
        padding: 0.4rem 0.9rem;
        background: #f4f6f7;
        border: 1px solid #e0e5e6;
        border-radius: 20px;
        color: #1a2b30;
        font-size: 1.2rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.15s;
    }

    .mobile-subcats-bar-item:hover,
    .mobile-subcats-bar-item:active {
        background: #bf2e29;
        color: #fff;
        border-color: #bf2e29;
    }

    /* Make red menu items buttons look like links */
    .mobile-red-menu-item {
        border: none;
        background: transparent;
        cursor: pointer;
        font-family: inherit;
    }
}

/* ============================================
   ADMIN - Certifications matrix + add form
   ============================================ */

/* Outline variant of the add button (Edit Certificates) */
.admin-btn-outline {
    background: #fff !important;
    color: #bf2e29 !important;
    border: 1.5px solid #bf2e29 !important;
    box-shadow: none !important;
}

.admin-btn-outline:hover {
    background: #fef2f2 !important;
}

/* Add-new-certification form card */
.cert-add-card {
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.5rem;
}

.cert-add-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #bf2e29;
    margin-bottom: 1rem;
}

.cert-add-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: flex-end;
}

.cert-add-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cert-add-field label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #444;
}

.cert-add-field input[type="text"],
.cert-add-field select {
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #d5dcdd;
    border-radius: 8px;
    font-size: 1.35rem;
    min-width: 180px;
}

.cert-add-field input[type="text"]:focus,
.cert-add-field select:focus {
    outline: none;
    border-color: #bf2e29;
}

.cert-add-check label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cert-add-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #bf2e29;
}

.cert-add-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Certification matrix table */
.cert-matrix {
    min-width: 600px;
    border-collapse: separate !important;
    border-spacing: 0;
}

/* Restore cell borders lost when switching to border-collapse: separate */
.cert-matrix thead th,
.cert-matrix tbody td {
    border-bottom: 1px solid #eef1f2;
}

/* Ensure the matrix card lets the inner wrapper handle scrolling for sticky columns */
.admin-card:has(.cert-matrix) {
    overflow: hidden;
}

/* The table wrapper is the scroll container - both header (top) and columns (left) stick to it */
.admin-card:has(.cert-matrix) .admin-table-wrap {
    overflow: auto;
    max-height: 75vh;
}

/* Non-sticky (checkbox) BODY cells sit BELOW the sticky columns so they don't bleed through */
.cert-matrix tbody td:not(.cert-matrix-sr-cell):not(.cert-matrix-rowhead) {
    position: relative;
    z-index: 0;
}

/* Certificate column HEADER cells stick to the top when scrolling down */
.cert-matrix thead th:not(.cert-matrix-sr):not(.cert-matrix-corner) {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1a2b30 !important;
}

/* Sticky column backgrounds stay opaque in every row state */
.cert-matrix-sr-cell,
.cert-matrix-rowhead {
    background: #fff !important;
}

.cert-matrix tbody tr:nth-child(even) .cert-matrix-sr-cell,
.cert-matrix tbody tr:nth-child(even) .cert-matrix-rowhead {
    background: #fafbfc !important;
}

.cert-matrix tbody tr:hover .cert-matrix-sr-cell,
.cert-matrix tbody tr:hover .cert-matrix-rowhead {
    background: #fef7f7 !important;
}

/* Serial number column (sticky, first) - header cell freezes both top & left */
.cert-matrix-sr {
    position: sticky !important;
    left: 0;
    top: 0;
    z-index: 20 !important;
    background: #1a2b30 !important;
    width: 48px;
    min-width: 48px;
}

.cert-matrix-sr-cell {
    position: sticky;
    left: 0;
    z-index: 8;
    background: #fff;
    font-weight: 600;
    color: #55636a;
    width: 48px;
    min-width: 48px;
    will-change: transform;
}

/* Sub-category column (sticky, second - offset by SR width) - header freezes both top & left */
.cert-matrix-corner {
    position: sticky !important;
    left: 48px;
    top: 0;
    z-index: 20 !important;
    background: #1a2b30 !important;
    min-width: 180px;
    box-shadow: 6px 0 8px -4px rgba(0,0,0,0.25);
}

.cert-matrix-rowhead {
    position: sticky;
    left: 48px;
    background: #fff;
    font-weight: 600;
    color: #1a2b30;
    z-index: 8;
    border-right: 1px solid #eef1f2;
    box-shadow: 6px 0 8px -4px rgba(0,0,0,0.15);
    will-change: transform;
}

.cert-matrix tbody tr:nth-child(even) .cert-matrix-rowhead,
.cert-matrix tbody tr:nth-child(even) .cert-matrix-sr-cell {
    background: #fafbfc;
}

.cert-matrix tbody tr:hover .cert-matrix-rowhead,
.cert-matrix tbody tr:hover .cert-matrix-sr-cell {
    background: #fef7f7;
}

.cert-col-name {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.cert-col-meta {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 0.2rem;
    text-transform: none;
    letter-spacing: 0;
}

.cert-col-req {
    color: #ffd7d5;
}

.cert-col-off {
    color: #ffd7d5;
}

.cert-matrix input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #bf2e29;
    cursor: pointer;
}

.cert-matrix input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   REGISTRATION - Yes/No certifications (2 per row)
   ============================================ */
.reg-cert-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 1.5rem;
    padding: 0.5rem 0 0.5rem;
}

.reg-cert-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: #f8fafb;
    border: 1px solid #eef1f2;
    border-radius: 10px;
}

.reg-cert-toggle-label {
    font-size: 1.4rem;
    color: #1a2b30;
    font-weight: 500;
    line-height: 1.3;
}

.reg-cert-req {
    color: #bf2e29;
    font-size: 1.15rem;
    font-weight: 600;
    display: block;
}

/* Mobile: 1 per row */
@media (max-width: 767px) {
    .reg-cert-toggle-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REGISTRATION - Success step
   ============================================ */
.reg-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.reg-success-icon {
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-success-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.reg-success-content {
    font-size: 1.5rem;
    color: #444;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 0.8rem;
}

@media (max-width: 767px) {
    .reg-success-box {
        padding: 2rem 1rem;
    }

    .reg-success-title {
        font-size: 1.8rem;
    }

    .reg-success-content {
        font-size: 1.35rem;
    }
}

/* ============================================
   REGISTRATION - Map location picker (Leaflet)
   ============================================ */
.map-picker-hint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fef7f7;
    border: 1px solid #f5d5d3;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1.25rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.map-picker-hint svg { flex-shrink: 0; }

.map-picker-toolbar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.map-search-input {
    flex: 1;
    min-width: 180px;
    padding: 0.7rem 1rem;
    border: 1.5px solid #d5dcdd;
    border-radius: 8px;
    font-size: 1.35rem;
    transition: border-color 0.2s;
}

.map-search-input:focus {
    outline: none;
    border-color: #bf2e29;
}

.map-search-btn,
.map-locate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.map-search-btn {
    background: linear-gradient(135deg, #bf2e29, #a12622);
    color: #fff;
}

.map-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(191,46,41,0.25);
}

.map-locate-btn {
    background: #fff;
    color: #1a2b30;
    border: 1.5px solid #d5dcdd;
}

.map-locate-btn:hover {
    background: #f4f6f7;
    border-color: #bf2e29;
    color: #bf2e29;
}

.map-picker-canvas {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    border: 2px solid #e8ecec;
    overflow: hidden;
    z-index: 1;
}

.map-picker-coords {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0.7rem 1rem;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2e7d32;
}

.map-picker-coords span {
    font-family: monospace;
    background: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    color: #1a2b30;
}

.map-picker-coords-empty {
    background: #f4f6f7;
    color: #888;
    font-weight: 500;
}

@media (max-width: 767px) {
    .map-picker-canvas {
        height: 280px;
    }
    .map-search-btn,
    .map-locate-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   USER ACCOUNT PAGE - Attractive profile view
   ============================================ */
.acct-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* Hero / profile header */
.acct-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #bf2e29 0%, #a12622 100%);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    color: #fff;
    box-shadow: 0 8px 30px rgba(191,46,41,0.25);
    margin-bottom: 1.5rem;
}

.acct-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.acct-hero-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    line-height: 1.2;
}

.acct-hero-sub {
    font-size: 1.35rem;
    opacity: 0.9;
    margin-bottom: 0.6rem;
}

.acct-hero-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.acct-badge {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
}

.acct-badge-active { background: #e8f5e9; color: #2e7d32; }
.acct-badge-pending { background: #fff3e0; color: #e65100; }
.acct-badge-featured { background: rgba(255,255,255,0.9); color: #bf2e29; }

/* Section cards */
.acct-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #eef1f2;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.5rem;
}

.acct-card-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #bf2e29;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f0d5d4;
    margin-bottom: 1.2rem;
}

/* Detail grid */
.acct-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 2rem;
}

.acct-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.acct-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.acct-label small { text-transform: none; font-weight: 400; }

.acct-value {
    font-size: 1.5rem;
    color: #1a2b30;
    font-weight: 500;
    word-break: break-word;
}

.acct-value a { color: #bf2e29; }

.acct-empty {
    font-size: 1.35rem;
    color: #999;
    font-style: italic;
}

/* Chips */
.acct-chip {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
}

.acct-chip-yes { background: #e8f5e9; color: #2e7d32; }
.acct-chip-no { background: #f0f0f0; color: #888; }

.acct-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.acct-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #f0d5d4;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 1.35rem;
    font-weight: 500;
    color: #1a2b30;
}

.acct-cat-price {
    font-size: 1.15rem;
    color: #bf2e29;
    font-weight: 600;
}

.acct-map-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .acct-page { padding: 1.5rem 0.8rem 2.5rem; }
    .acct-hero { flex-direction: column; text-align: center; padding: 1.5rem; }
    .acct-hero-badges { justify-content: center; }
    .acct-grid { grid-template-columns: 1fr; }
    .acct-card-title { font-size: 1.5rem; }
}

/* ============================================
   ADMIN USERS TABLE - Freeze first 4 columns
   ============================================ */
.user-card .table {
    border-collapse: separate !important;
    border-spacing: 0;
}

/* Column widths */
.users-col-1 { min-width: 48px;  width: 48px; }
.users-col-2 { min-width: 160px; }
.users-col-3 { min-width: 140px; white-space: nowrap; }
.users-col-4 { min-width: 120px; white-space: nowrap; }

/* Sticky HEADER cells — freeze both top AND left */
.user-card .table thead th.users-col-1 {
    position: sticky !important;
    top: 0; left: 0;
    z-index: 20 !important;
    background: #1a2b30 !important;
    will-change: transform;
}
.user-card .table thead th.users-col-2 {
    position: sticky !important;
    top: 0; left: 48px;
    z-index: 20 !important;
    background: #1a2b30 !important;
    will-change: transform;
}
.user-card .table thead th.users-col-3 {
    position: sticky !important;
    top: 0; left: 208px;
    z-index: 20 !important;
    background: #1a2b30 !important;
    will-change: transform;
}
.user-card .table thead th.users-col-4 {
    position: sticky !important;
    top: 0; left: 348px;
    z-index: 20 !important;
    background: #1a2b30 !important;
    will-change: transform;
}

/* Sticky BODY cells — freeze left only */
.user-card .table tbody td.users-col-1 {
    position: sticky; left: 0;
    z-index: 8; background: #fff; will-change: transform;
}
.user-card .table tbody td.users-col-2 {
    position: sticky; left: 48px;
    z-index: 8; background: #fff; will-change: transform;
}
.user-card .table tbody td.users-col-3 {
    position: sticky; left: 208px;
    z-index: 8; background: #fff; will-change: transform;
}
.user-card .table tbody td.users-col-4 {
    position: sticky; left: 348px;
    z-index: 8; background: #fff; will-change: transform;
    box-shadow: 6px 0 8px -4px rgba(0,0,0,0.15);
}

/* Row state backgrounds for frozen body cells */
.user-card .table tbody tr:nth-child(even) td.users-col-1,
.user-card .table tbody tr:nth-child(even) td.users-col-2,
.user-card .table tbody tr:nth-child(even) td.users-col-3,
.user-card .table tbody tr:nth-child(even) td.users-col-4 { background: #fafbfc; }

.user-card .table tbody tr:hover td.users-col-1,
.user-card .table tbody tr:hover td.users-col-2,
.user-card .table tbody tr:hover td.users-col-3,
.user-card .table tbody tr:hover td.users-col-4 { background: #fef7f7; }

/* Non-frozen body cells scroll UNDER the frozen columns (no bleed-through) */
.user-card .table tbody td:not(.users-col-1):not(.users-col-2):not(.users-col-3):not(.users-col-4) {
    position: relative;
    z-index: 0;
}

/* Non-frozen header cells stay at top:0 only (no left sticky) */
.user-card .table thead th:not(.users-col-1):not(.users-col-2):not(.users-col-3):not(.users-col-4) {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1a2b30 !important;
}

/* ============================================
   USER ACCOUNT - Edit Profile
   ============================================ */
.acct-edit-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.acct-edit-btn:hover {
    background: rgba(255,255,255,0.3);
}

.acct-edit-card {
    border-top: 4px solid #bf2e29;
}

.acct-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 2rem;
    margin-bottom: 1.5rem;
}

.acct-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.acct-edit-field.full-width {
    grid-column: 1 / -1;
}

.acct-edit-field label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #555;
}

.acct-edit-field input {
    padding: 0.8rem 1rem;
    border: 1.5px solid #d5dcdd;
    border-radius: 8px;
    font-size: 1.4rem;
    transition: border-color 0.2s;
}

.acct-edit-field input:focus {
    outline: none;
    border-color: #bf2e29;
    box-shadow: 0 0 0 3px rgba(191,46,41,0.08);
}

.acct-edit-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.acct-edit-status {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.acct-edit-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.acct-edit-status.error {
    background: #fef2f2;
    color: #bf2e29;
    border: 1px solid #f5c6c4;
}

@media (max-width: 767px) {
    .acct-edit-grid { grid-template-columns: 1fr; }
    .acct-edit-btn { margin-left: 0; margin-top: 1rem; }
    .acct-hero { flex-wrap: wrap; }
}

/* ============================================
   REGISTRATION - OTP Verify Email Step
   ============================================ */
.otp-verify-box {
    text-align: center;
    padding: 2rem 1.5rem;
}

.otp-verify-icon {
    margin-bottom: 1.2rem;
}

.otp-verify-text {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.otp-verify-text strong {
    color: #bf2e29;
}

.otp-verify-sub {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 200px;
    padding: 1rem;
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 10px;
    border: 2px solid #d5dcdd;
    border-radius: 12px;
    margin: 0 auto 1rem;
    display: block;
    transition: border-color 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: #bf2e29;
    box-shadow: 0 0 0 3px rgba(191,46,41,0.1);
}

.otp-status {
    font-size: 1.35rem;
    color: #bf2e29;
    margin-bottom: 1rem;
    font-weight: 500;
}

.otp-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   REGISTRATION - Image Upload (styled)
   ============================================ */
.img-upload-box {
    margin-top: 0.5rem;
}

.img-upload-label {
    display: inline-block;
    cursor: pointer;
    border: 2px dashed #d5dcdd;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
    text-align: center;
}

.img-upload-label:hover {
    border-color: #bf2e29;
    background: #fef7f7;
}

.img-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 2rem;
    color: #999;
    font-size: 1.3rem;
    font-weight: 500;
}

.img-upload-preview {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e8ecec;
}

.img-upload-change {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #bf2e29;
    font-weight: 600;
}

/* ===== Branch Management — Add Branch form ===== */
.branch-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.6rem;
}

.branch-form-grid > ._4b14156c {
    min-width: 0;
}

/* Inside the branch grid, always stack label above a full-width input
   (override the theme's ≥896px "label left / input right" flex layout that
   otherwise collapses the input to a tiny box inside each grid cell). */
.branch-form-grid ._4b14156c._6a82aefc {
    display: block !important;
    padding: 0 !important;
    margin-bottom: 0.9rem;
}

.branch-form-grid ._21361cc3._6a82aefc._24f8bbcf {
    width: 100% !important;
    display: block;
    margin-bottom: 0.4rem;
}

.branch-form-grid ._948d9e0a,
.branch-form-grid ._948d9e0a._95d4067f {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100%;
}

.branch-form-grid ._8e277a6f,
.branch-form-grid ._9bd90310 {
    width: 100%;
}

.branch-form-grid ._8206e8bf.dcca86d9 {
    width: 100%;
}

.branch-req {
    color: #bf2e29;
    margin-left: 2px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .branch-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ===== Registration wizard — Add Branches step ===== */
.reg-branch-note {
    background: #fdf3f2;
    border: 1px solid #f0d5d4;
    border-left: 4px solid #bf2e29;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 1.25rem;
    color: #5a3a39;
    line-height: 1.5;
    margin-bottom: 1.1rem;
}

.reg-branch-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.reg-branch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reg-branch-card-info {
    min-width: 0;
}

.reg-branch-card-title {
    font-weight: 700;
    color: #a12622;
    font-size: 1.4rem;
    margin-bottom: 0.15rem;
}

.reg-branch-card-meta {
    font-size: 1.25rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reg-branch-remove {
    flex-shrink: 0;
    background: #fff;
    color: #bf2e29;
    border: 1px solid #e2b6b4;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reg-branch-remove:hover {
    background: #bf2e29;
    color: #fff;
    border-color: #bf2e29;
}

.reg-branch-form {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.6rem;
}

.reg-add-branch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #bf2e29;
    border: 1.5px dashed #d99a97;
    border-radius: 10px;
    padding: 0.75rem 1.4rem;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reg-add-branch-btn:hover {
    background: #fdf3f2;
    border-color: #bf2e29;
}

/* ===== Branch Management — Select Services ===== */
.branch-svc-intro {
    background: #fdf3f2;
    border: 1px solid #f0d5d4;
    border-left: 4px solid #bf2e29;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    color: #5a5a5a;
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.branch-svc-empty {
    background: #fff8e1;
    border: 1px solid #f0e0a8;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: #7a5a00;
    font-size: 1.4rem;
}

.branch-svc-card {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.branch-svc-group {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.branch-svc-group-title {
    background: #bf2e29;
    color: #fff;
    font-weight: 600;
    font-size: 1.5rem;
    padding: 0.7rem 1.1rem;
}

.branch-svc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.branch-svc-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.1rem;
    border-top: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
    cursor: pointer;
    transition: background 0.15s ease;
}

.branch-svc-item:hover {
    background: #fafafa;
}

.branch-svc-item-on {
    background: #fdf3f2;
}

.branch-svc-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #bf2e29;
    flex: 0 0 auto;
}

.branch-svc-name {
    flex: 1 1 auto;
    font-size: 1.4rem;
    color: #333;
}

.branch-svc-price {
    font-size: 1.25rem;
    color: #bf2e29;
    font-weight: 600;
    white-space: nowrap;
}

.branch-svc-selected-count {
    margin-top: 1rem;
    font-size: 1.35rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .branch-svc-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Branch Management — Invoice card ===== */
.brinv-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.brinv-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f0d5d4;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.brinv-title {
    font-size: 1.4rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brinv-number {
    font-size: 1.9rem;
    font-weight: 700;
    color: #bf2e29;
}

.brinv-status {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
}

.brinv-status-unpaid {
    background: #fdecea;
    color: #c0392b;
}

.brinv-status-uploaded {
    background: #fff4e0;
    color: #b9770e;
}

.brinv-status-verified {
    background: #e7f6e9;
    color: #2e7d32;
}

.brinv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin-bottom: 1.4rem;
}

.brinv-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brinv-meta-label {
    font-size: 1.15rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brinv-meta-value {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

.brinv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2rem;
}

.brinv-table th,
.brinv-table td {
    text-align: left;
    padding: 0.75rem 0.6rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #f2f2f2;
}

.brinv-table th {
    color: #888;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.brinv-right {
    text-align: right !important;
}

.brinv-totals {
    margin-left: auto;
    width: 100%;
    max-width: 280px;
}

.brinv-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.6rem;
    font-size: 1.4rem;
    color: #555;
}

.brinv-total-grand {
    border-top: 2px solid #f0d5d4;
    margin-top: 0.3rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: #bf2e29;
}

/* ===== Branch Management — Pending Review (provider) ===== */
.branch-review-banner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff8e1;
    border: 1px solid #f0e0a8;
    border-left: 4px solid #b9770e;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.4rem;
}

.branch-review-banner-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #7a5a00;
    margin-bottom: 0.3rem;
}

.branch-review-banner-text {
    font-size: 1.35rem;
    color: #6a5a2a;
    line-height: 1.5;
}

.branch-review-svc-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0.6rem 0 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.branch-review-svc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.branch-review-svc-chip {
    background: #fdf3f2;
    border: 1px solid #f0d5d4;
    color: #bf2e29;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 1.3rem;
    font-weight: 500;
}

/* ===== Provider account — Branch Management entry ===== */
.acct-hero-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.acct-branch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #bf2e29;
    border: 1.5px solid #bf2e29;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.acct-branch-btn:hover {
    background: #bf2e29;
    color: #fff;
}

/* ===== Branch Management — Receipt upload ===== */
.brreceipt-box {
    margin-top: 1.4rem;
    border: 2px dashed #f0d5d4;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    background: #fdfafa;
}

.brreceipt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
}

.brreceipt-hint {
    font-size: 1.25rem;
    color: #888;
    margin-bottom: 1rem;
}

.brreceipt-uploading {
    margin-top: 0.8rem;
    font-size: 1.35rem;
    color: #b9770e;
    font-weight: 600;
}

.brreceipt-preview {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    font-size: 1.35rem;
    color: #2e7d32;
    font-weight: 600;
}

.brreceipt-preview a,
.brreceipt-view {
    color: #bf2e29;
    text-decoration: underline;
}

.brreceipt-done {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    background: #e7f6e9;
    border: 1px solid #b6dcbb;
    border-left: 4px solid #2e7d32;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
}

.brreceipt-done-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f6b26;
    margin-bottom: 0.2rem;
}

/* ===== Branch Management — Provider dashboard ===== */
.brdash-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.brdash-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.brdash-tab {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border: 1px solid #eee;
    background: #fff;
}

.brdash-tab:hover {
    background: #fafafa;
}

.brdash-tab-active {
    background: #bf2e29;
    color: #fff;
    border-color: #bf2e29;
}

.brdash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.4rem;
}

.brdash-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.brdash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
}

.brdash-card-name {
    font-size: 1.7rem;
    font-weight: 700;
    color: #222;
}

.brdash-card-city {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.35rem;
    color: #777;
}

.brdash-billing {
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
}

.brdash-billing-pending { background: #fff4e0; color: #b9770e; }
.brdash-billing-invoice { background: #fdecea; color: #c0392b; }
.brdash-billing-uploaded { background: #eaf2fd; color: #2e5aac; }
.brdash-billing-verified { background: #e7f6e9; color: #2e7d32; }

.brdash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid #f2f2f2;
    align-items: center;
}

.brdash-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    text-decoration: none;
}

.brdash-btn:hover {
    background: #f6f6f6;
}

.brdash-btn-primary {
    background: #bf2e29;
    color: #fff;
    border-color: #bf2e29;
}

.brdash-btn-primary:hover {
    background: #a12622;
}

.brdash-btn-danger {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.brdash-btn-danger-outline {
    color: #c0392b;
    border-color: #e2b6b1;
}

.brdash-confirm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.25rem;
    color: #c0392b;
    font-weight: 600;
}

.brinv-invoice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f2f2f2;
    flex-wrap: wrap;
}

.brinv-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.25rem;
}

.brinv-unverified-tag {
    color: #b9770e;
    font-weight: 600;
    font-size: 1.25rem;
}

/* ===== Reusable flash cards (status feedback) ===== */
.flash-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 500;
    border: 1px solid transparent;
    animation: flash-card-in 0.25s ease;
}

@keyframes flash-card-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flash-card-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.flash-card-text {
    flex: 1 1 auto;
}

.flash-card-success {
    background: #e7f6e9;
    border-color: #b6dcbb;
    color: #1f6b26;
}

.flash-card-error {
    background: #fdecea;
    border-color: #f3c6c1;
    color: #b32d24;
}

.flash-card-info {
    background: #eaf2fd;
    border-color: #c3d6f2;
    color: #2e5aac;
}

/* ===== Provider Dashboard — Shell ===== */
.dash {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #f5f7fa;
}

.dash-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex: 0 0 260px;
    z-index: 2;
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
}

.dash-sidebar-profile {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 1rem;
}

.dash-avatar {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #bf2e29, #e74c3c);
    color: #fff;
    font-size: 2.4rem; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.8rem;
    box-shadow: 0 4px 12px rgba(191,46,41,0.25);
}

.dash-profile-name { font-size: 1.6rem; font-weight: 700; color: #222; margin-bottom: 0.2rem; }
.dash-profile-email { font-size: 1.2rem; color: #888; margin-bottom: 0.6rem; }
.dash-profile-badges { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }

.dash-nav { padding: 0.5rem 0; }
.dash-nav-item {
    display: flex; align-items: center; gap: 0.8rem;
    width: 100%; padding: 0.85rem 1.8rem;
    font-size: 1.4rem; font-weight: 500; color: #555;
    background: none; border: none; cursor: pointer;
    transition: all 0.15s ease; text-align: left;
}
.dash-nav-item:hover { background: #fdf3f2; color: #bf2e29; }
.dash-nav-active {
    background: #fdf3f2 !important; color: #bf2e29 !important;
    font-weight: 700; border-right: 3px solid #bf2e29;
}
.dash-nav-item svg { flex: 0 0 18px; }

.dash-mobile-tabs {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.6rem 0.8rem;
    gap: 0.3rem;
}
.dash-mtab {
    padding: 0.5rem 1rem; border-radius: 999px; font-size: 1.3rem; font-weight: 600;
    background: #f5f5f5; border: none; color: #555; cursor: pointer;
}
.dash-mtab-on { background: #bf2e29; color: #fff; }

.dash-main {
    flex: 1 1 0;
    padding: 2rem 2.4rem;
    overflow-y: auto;
    min-width: 0;
    position: relative;
    background: url('/bg.jpg') top center/cover no-repeat fixed;
}

.dash-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(55, 105, 110, 0.65);
    z-index: 0;
}

.dash-main > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .dash { flex-direction: column; }
    .dash-sidebar { display: none; }
    .dash-mobile-tabs { display: flex; }
    .dash-main { padding: 1.2rem 1rem; }
}

/* ===== Dashboard Sections ===== */
.dash-section { animation: flash-card-in 0.2s ease; }
.dash-section-title { font-size: 2.2rem; font-weight: 700; color: #fff; margin: 0 0 1.4rem; }
.dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; flex-wrap: wrap; gap: 0.8rem; }
.dash-header-btn {
    padding: 0.55rem 1.2rem; border-radius: 8px; font-size: 1.35rem; font-weight: 600;
    border: 1.5px solid #bf2e29; background: #fff; color: #bf2e29; cursor: pointer;
    text-decoration: none; transition: all 0.15s ease;
}
.dash-header-btn:hover { background: #fdf3f2; }
.dash-btn-fill { background: #bf2e29; color: #fff; border-color: #bf2e29; }
.dash-btn-fill:hover { background: #a12622; }

/* ===== Stat Cards ===== */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.dash-stat-card {
    background: #fff; border-radius: 14px; padding: 1.4rem 1.6rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.dash-stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.dash-stat-branches .dash-stat-icon { background: #eaf2fd; color: #2e5aac; }
.dash-stat-active .dash-stat-icon { background: #e7f6e9; color: #2e7d32; }
.dash-stat-due .dash-stat-icon { background: #fdecea; color: #c0392b; }
.dash-stat-views .dash-stat-icon { background: #fff4e0; color: #b9770e; }
.dash-stat-num { font-size: 2.2rem; font-weight: 800; color: #222; }
.dash-stat-label { font-size: 1.25rem; color: #888; font-weight: 500; }

/* ===== Action Alerts ===== */
.dash-alerts { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; }
.dash-alert {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.9rem 1.2rem; border-radius: 10px; font-size: 1.4rem; font-weight: 500;
}
.dash-alert-warn { background: #fff8e1; color: #7a5a00; border: 1px solid #f0e0a8; }
.dash-alert-info { background: #eaf2fd; color: #2e5aac; border: 1px solid #c3d6f2; }
.dash-alert-icon { display: inline-flex; flex: 0 0 auto; }
.dash-alert-text { flex: 1 1 auto; }
.dash-alert-btn {
    padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 1.2rem; font-weight: 600;
    background: rgba(255,255,255,0.7); border: 1px solid currentColor; color: inherit; cursor: pointer;
}

/* ===== Quick Actions ===== */
.dash-quick { margin-bottom: 2rem; }
.dash-quick-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0 0 1rem; }
.dash-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.dash-quick-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    padding: 1.4rem 1rem; border-radius: 14px; background: #fff;
    border: 1px solid #eee; text-decoration: none; color: #333;
    font-size: 1.35rem; font-weight: 600; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dash-quick-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

/* ===== Profile Cards ===== */
.dash-card-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.dash-card {
    background: #fff; border-radius: 10px; padding: 1.1rem 1.3rem;
    border: 1px solid #f0f0f0; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.dash-card.full-width { grid-column: 1 / -1; }
.dash-card-label { font-size: 1.15rem; color: #999; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 0.2rem; }
.dash-card-val { font-size: 1.5rem; color: #222; font-weight: 600; word-break: break-word; }

.dash-subsection { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 1.6rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.2); }

/* Cert chips */
.dash-cert-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.dash-cert-chip {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 8px; font-size: 1.3rem; font-weight: 500;
}
.dash-cert-yes { background: #e7f6e9; color: #2e7d32; }
.dash-cert-no { background: #fdecea; color: #c0392b; }
.dash-cert-text { background: #f5f5f5; color: #333; }
.dash-cert-name { font-weight: 600; }
.dash-cert-val { opacity: 0.8; }

/* Category chips */
.dash-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.dash-cat-chip {
    padding: 0.5rem 1rem; border-radius: 999px; font-size: 1.3rem; font-weight: 600;
    background: #fdf3f2; border: 1px solid #f0d5d4; color: #bf2e29;
}
.dash-cat-chip small { color: #999; font-weight: 400; margin-left: 0.3rem; }

/* Empty states */
.dash-empty { color: rgba(255,255,255,0.8); font-size: 1.4rem; padding: 0.6rem 0; }
.dash-empty-state { text-align: center; padding: 3rem 1rem; color: rgba(255,255,255,0.8); }
.dash-empty-state svg { margin-bottom: 1rem; }
.dash-empty-state p { font-size: 1.5rem; margin-bottom: 1.2rem; }

/* Billing table */
.dash-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 1.35rem; }
.dash-table th, .dash-table td { padding: 0.75rem 0.8rem; text-align: left; border-bottom: 1px solid #f2f2f2; }
.dash-table th { color: #888; font-weight: 600; font-size: 1.2rem; text-transform: uppercase; background: #fafafa; }

/* ===== Branch — Read-only parent company info ===== */
.branch-readonly-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: #f8fafb;
    border: 1px solid #e8edf0;
    border-radius: 10px;
}

.branch-readonly-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.branch-readonly-label {
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.branch-readonly-value {
    font-size: 1.45rem;
    color: #222;
    font-weight: 600;
    word-break: break-word;
}

/* ===== Dashboard — Facilities section ===== */
.dash-facilities-section {
    margin-bottom: 1.8rem;
}

.dash-facility-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-facility-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dash-facility-row:last-child {
    border-bottom: none;
}

.dash-facility-num {
    width: 28px; height: 28px;
    background: #bf2e29;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 0 0 28px;
}

.dash-facility-name {
    flex: 1 1 auto;
    font-size: 1.45rem;
    font-weight: 600;
    color: #222;
}

.dash-facility-price {
    font-size: 1.3rem;
    color: #bf2e29;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Branch — Email OTP verification ===== */
.branch-email-section {
    margin-top: 1.4rem;
    padding-top: 0.5rem;
}

.branch-email-verify {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.branch-email-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.branch-email-input {
    flex: 1 1 280px;
    padding: 0.7rem 1rem;
    font-size: 1.4rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease;
}

.branch-email-input:focus {
    border-color: #bf2e29;
}

.branch-email-input:disabled {
    background: #f8fafb;
    color: #555;
}

.branch-otp-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 600;
    border: none;
    background: #bf2e29;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.branch-otp-btn:hover {
    background: #a12622;
}

.branch-otp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.branch-email-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.5rem;
    background: #e7f6e9;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.branch-otp-section {
    background: #f8fafb;
    border: 1px solid #e8edf0;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 0.4rem;
}

.branch-otp-hint {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 0.7rem;
    display: block;
}

.branch-otp-input {
    width: 160px;
    padding: 0.7rem 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.branch-otp-input:focus {
    border-color: #bf2e29;
}

/* ===== Branch wizard — free service badge ===== */
.reg-cat-sub-free {
    opacity: 0.9;
}

.reg-cat-free-badge {
    margin-left: auto;
    background: #e7f6e9;
    color: #2e7d32;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.reg-cert-block {
    margin-top: 0.5rem;
}

/* ===== Branch wizard — success screen ===== */
.branch-success {
    text-align: center;
    padding: 2rem 1rem;
}

.branch-success-icon {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 22px rgba(46,125,50,0.3);
}

.branch-success-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f6b26;
    margin: 0 0 0.6rem;
}

.branch-success-text {
    font-size: 1.45rem;
    color: #555;
    max-width: 520px;
    margin: 0 auto 1.4rem;
    line-height: 1.5;
}

.branch-success-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: #f8fafb;
    border: 1px solid #e8edf0;
    border-radius: 12px;
    padding: 1.2rem 1.6rem;
    max-width: 560px;
    margin: 0 auto;
}

.branch-success-summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.branch-success-summary span {
    font-size: 1.15rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.branch-success-summary strong {
    font-size: 1.5rem;
    color: #222;
}

/* ===== Dashboard sidebar — Company logo avatar ===== */
.dash-avatar-wrap {
    position: relative;
    width: 72px; height: 72px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.dash-avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0d5d4;
}

.dash-avatar-wrap .dash-avatar {
    width: 72px; height: 72px;
    font-size: 2.6rem;
    margin: 0;
}

.dash-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border-radius: 50%;
}

.dash-avatar-wrap:hover .dash-avatar-overlay {
    opacity: 1;
}

/* ===== Branch Facilities — Toggle list ===== */
.branch-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.branch-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
}

.branch-toggle-row:last-child { border-bottom: none; }

.branch-toggle-on {
    background: #f0faf1;
}

.branch-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.branch-toggle-name {
    font-size: 1.45rem;
    font-weight: 600;
    color: #222;
}

.branch-toggle-group {
    font-size: 1.15rem;
    color: #888;
}

/* ===== Branch Payment — Invoice download section ===== */
.brpay-invoice-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.brpay-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brpay-invoice-label {
    font-size: 1.2rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brpay-invoice-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #bf2e29;
}

.brpay-invoice-amount {
    font-size: 1.4rem;
    color: #333;
    margin-top: 0.3rem;
}

/* ===== Account Pending / Deactivated pages ===== */
.pend-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
    min-height: calc(100vh - 80px);
}

.pend-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 2.4rem 2.6rem;
    max-width: 620px;
    width: 100%;
    animation: flash-card-in 0.3s ease;
}

.pend-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pend-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #bf2e29, #e74c3c);
    color: #fff; font-size: 2.2rem; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 56px;
}

.pend-hello { font-size: 1.9rem; font-weight: 800; color: #222; }
.pend-sub { font-size: 1.35rem; color: #888; margin-top: 0.2rem; }

/* 4-step tracker */
.pend-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1rem 0 1.6rem;
}
.pend-steps::before {
    content: '';
    position: absolute;
    top: 21px; left: 8%; right: 8%;
    height: 3px; background: #eee; z-index: 0;
}
.pend-step {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; flex: 1;
}
.pend-step-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: #f0f0f0; color: #aaa;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
    border: 3px solid #fff; box-shadow: 0 0 0 1px #eee;
    transition: all 0.3s ease;
}
.pend-step.done .pend-step-circle { background: #2e7d32; color: #fff; box-shadow: 0 0 0 1px #2e7d32; }
.pend-step.current .pend-step-circle {
    background: #bf2e29; color: #fff; box-shadow: 0 0 0 4px rgba(191,46,41,0.2);
    animation: pend-pulse 1.6s infinite;
}
@keyframes pend-pulse {
    0% { box-shadow: 0 0 0 0 rgba(191,46,41,0.35); }
    70% { box-shadow: 0 0 0 10px rgba(191,46,41,0); }
    100% { box-shadow: 0 0 0 0 rgba(191,46,41,0); }
}
.pend-step-label { font-size: 1.15rem; color: #666; font-weight: 600; text-align: center; }
.pend-step.current .pend-step-label { color: #bf2e29; }
.pend-step.done .pend-step-label { color: #2e7d32; }

.pend-spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pend-spin 0.8s linear infinite;
}
@keyframes pend-spin { to { transform: rotate(360deg); } }

/* Revolving loading bar */
.pend-loadbar {
    height: 6px; background: #f0f0f0; border-radius: 999px;
    overflow: hidden; margin-bottom: 1.6rem;
}
.pend-loadbar-fill {
    height: 100%; width: 40%;
    background: linear-gradient(90deg, #bf2e29, #e74c3c);
    border-radius: 999px;
    animation: pend-slide 1.5s ease-in-out infinite;
}
@keyframes pend-slide {
    0% { margin-left: -40%; }
    100% { margin-left: 100%; }
}

.pend-message {
    background: #fdf3f2; border: 1px solid #f0d5d4; border-left: 4px solid #bf2e29;
    border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 1.4rem;
}
.pend-message-title { font-size: 1.6rem; font-weight: 700; color: #bf2e29; margin-bottom: 0.4rem; }
.pend-message-text { font-size: 1.4rem; color: #555; line-height: 1.55; }

/* Payment section */
.pend-pay { border: 1px solid #eee; border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.pend-pay-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.pend-pay-label { font-size: 1.5rem; font-weight: 700; color: #222; }
.pend-pay-amount { font-size: 1.4rem; color: #555; margin-top: 0.2rem; }
.pend-upload { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #ddd; }
.pend-upload-title { font-size: 1.4rem; font-weight: 600; color: #333; margin-bottom: 0.6rem; }
.pend-uploading { color: #b9770e; font-weight: 600; margin-top: 0.5rem; }
.pend-ready { color: #2e7d32; font-weight: 600; margin-top: 0.5rem; }
.pend-receipt-done {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #ddd;
    color: #2e7d32; font-weight: 600; font-size: 1.4rem;
}

/* Actions */
.pend-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.pend-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #bf2e29; color: #fff; border: none;
    padding: 0.8rem 1.6rem; border-radius: 10px;
    font-size: 1.45rem; font-weight: 700; cursor: pointer;
    transition: background 0.15s ease;
}
.pend-cta:hover { background: #a12622; }
.pend-outline-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; color: #bf2e29; border: 1.5px solid #bf2e29;
    padding: 0.7rem 1.3rem; border-radius: 10px;
    font-size: 1.35rem; font-weight: 600; cursor: pointer;
}
.pend-outline-btn:hover { background: #fdf3f2; }
.pend-text-btn { background: none; border: none; color: #888; font-size: 1.35rem; cursor: pointer; text-decoration: underline; }
.pend-help { margin-top: 1.4rem; font-size: 1.25rem; color: #999; text-align: center; }
.pend-help a { color: #bf2e29; }

/* Success state */
.pend-success { text-align: center; padding: 1.5rem 0; }
.pend-success-burst {
    width: 92px; height: 92px; border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.4rem; box-shadow: 0 10px 30px rgba(46,125,50,0.35);
    animation: pend-pop 0.4s ease;
}
@keyframes pend-pop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pend-success-title { font-size: 2.4rem; font-weight: 800; color: #1f6b26; margin: 0 0 0.8rem; }
.pend-success-text { font-size: 1.5rem; color: #555; max-width: 460px; margin: 0 auto 1.6rem; line-height: 1.55; }

/* Deactivated page */
.deact-icon {
    width: 84px; height: 84px; border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.4rem; box-shadow: 0 10px 30px rgba(192,57,43,0.3);
}
.deact-title { font-size: 2.4rem; font-weight: 800; color: #c0392b; text-align: center; margin: 0 0 0.8rem; }
.deact-text { font-size: 1.5rem; color: #555; text-align: center; max-width: 480px; margin: 0 auto 1.6rem; line-height: 1.55; }
.deact-help-box { background: #f8fafb; border: 1px solid #e8edf0; border-radius: 12px; padding: 1.4rem 1.6rem; margin-bottom: 1.4rem; }
.deact-help-title { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 0.4rem; }
.deact-help-text { font-size: 1.35rem; color: #666; margin-bottom: 0.8rem; line-height: 1.5; }
.deact-help-contact { display: flex; align-items: center; gap: 0.5rem; font-size: 1.45rem; font-weight: 600; }
.deact-help-contact a { color: #bf2e29; }
.pend-card .pend-text-btn { display: block; margin: 0 auto; }

/* ===== Admin Panel — Sidebar Shell ===== */
.adm-shell {
    display: flex;
    min-height: 100vh;
}

.adm-sidebar {
    width: 260px;
    background: #1a2332;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.adm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.adm-sidebar-logo { width: 40px; height: 32px; }
.adm-sidebar-title { font-size: 1.6rem; font-weight: 800; color: #fff; }
.adm-sidebar-sub { font-weight: 400; color: rgba(255,255,255,0.5); margin-left: 4px; }

.adm-nav { flex: 1; padding: 0.8rem 0; }

.adm-nav-item {
    display: flex; align-items: center; gap: 0.8rem;
    width: 100%; padding: 0.8rem 1.5rem;
    font-size: 1.35rem; font-weight: 500; color: rgba(255,255,255,0.7);
    background: none; border: none; cursor: pointer;
    text-decoration: none; text-align: left;
    transition: all 0.15s ease;
}
.adm-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.adm-nav-item.active, .adm-nav-item[aria-current="page"] {
    background: rgba(191,46,41,0.2); color: #fff;
    border-left: 3px solid #bf2e29;
}
.adm-nav-item svg { flex: 0 0 18px; opacity: 0.8; }

.adm-nav-expand { position: relative; }
.adm-chevron { margin-left: auto; transition: transform 0.2s ease; opacity: 0.5; }
.adm-chevron-open { transform: rotate(180deg); }

.adm-nav-sub {
    display: flex; align-items: center;
    padding: 0.6rem 1.5rem 0.6rem 3.2rem;
    font-size: 1.25rem; color: rgba(255,255,255,0.55);
    text-decoration: none; transition: all 0.15s ease;
}
.adm-nav-sub:hover { color: #fff; background: rgba(255,255,255,0.04); }
.adm-nav-sub.active, .adm-nav-sub[aria-current="page"] { color: #bf2e29; }

.adm-sidebar-footer {
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.adm-logout { color: rgba(255,255,255,0.5) !important; }
.adm-logout:hover { color: #e74c3c !important; background: rgba(231,76,60,0.1) !important; }

.adm-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    background: url('/bg.jpg') top center/cover no-repeat fixed;
    position: relative;
}

.adm-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(55, 105, 110, 0.65);
    z-index: 0;
    pointer-events: none;
}

.adm-main > * {
    position: relative;
    z-index: 1;
}

/* Ensure sticky positioning still works inside admin tables */
.adm-main .admin-table-wrap {
    position: static;
    z-index: auto;
    overflow: auto;
    max-width: calc(100vw - 300px);
    max-height: 78vh;
}
.adm-main .admin-card {
    position: static;
    z-index: auto;
    overflow: hidden;
}

.adm-mobile-toggle {
    display: none;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 110;
    background: #1a2332; color: #fff; border: none;
    width: 40px; height: 40px; border-radius: 8px;
    font-size: 1.6rem; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .adm-sidebar {
        transform: translateX(-100%);
    }
    .adm-sidebar-open {
        transform: translateX(0);
    }
    .adm-main {
        margin-left: 0;
    }
    .adm-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .adm-main .admin-table-wrap {
        max-width: calc(100vw - 30px);
    }
}

/* Override old admin-page padding for new shell */
.adm-main .admin-page {
    padding: 2rem 2.4rem;
}

/* ===== Admin Dashboard — KPIs ===== */
.adm-dash-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.6rem;
}

.adm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.adm-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.adm-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.adm-kpi-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}

.adm-kpi-blue .adm-kpi-icon { background: #eaf2fd; color: #2e5aac; }
.adm-kpi-green .adm-kpi-icon { background: #e7f6e9; color: #2e7d32; }
.adm-kpi-amber .adm-kpi-icon { background: #fff4e0; color: #b9770e; }
.adm-kpi-red .adm-kpi-icon { background: #fdecea; color: #c0392b; }

.adm-kpi-num { font-size: 2.4rem; font-weight: 800; color: #222; }
.adm-kpi-label { font-size: 1.25rem; color: #888; font-weight: 500; }

.adm-section-title {
    font-size: 1.8rem; font-weight: 700; color: #fff;
    margin: 0 0 1.2rem;
}

.adm-quick-section { margin-bottom: 2.4rem; }

.adm-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.adm-quick-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    padding: 1.4rem 1rem; border-radius: 14px; background: #fff;
    border: 1px solid #eee; text-decoration: none; color: #333;
    font-size: 1.35rem; font-weight: 600; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.adm-quick-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

.adm-recent-section { margin-bottom: 2rem; }
.adm-recent-list {
    background: #fff; border-radius: 12px;
    border: 1px solid #eee; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.adm-recent-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1.4rem; border-bottom: 1px solid #f5f5f5;
}
.adm-recent-row:last-child { border-bottom: none; }
.adm-recent-name { flex: 1; font-size: 1.4rem; font-weight: 600; color: #222; }
.adm-recent-meta { font-size: 1.2rem; color: #888; }

/* ===== Admin — Tabs + Empty state ===== */
.adm-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}
.adm-tab {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #eee;
    color: #555;
    cursor: pointer;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.15s ease;
}
.adm-tab:hover { background: #fafafa; }
.adm-tab-on { background: #bf2e29; color: #fff; border-color: #bf2e29; }
.adm-tab-badge {
    background: rgba(255,255,255,0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
}
.adm-tab-on .adm-tab-badge { background: rgba(255,255,255,0.3); }
.adm-empty {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 1.45rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Hide main site header/footer/bg when admin shell is active */
#body-wrapper:has(.adm-shell) {
    background: none !important;
    min-height: auto !important;
}
#body-wrapper:has(.adm-shell) > div > :not(.adm-shell) {
    display: none !important;
}

/* ===== Phase 5 — Ensure admin pages render clean in new shell ===== */
.admin-navbar { display: none !important; }

.adm-main .admin-page {
    padding: 2rem 2.4rem;
    max-width: 100%;
}

.adm-main .admin-page-header {
    margin-bottom: 1.4rem;
}

.adm-main .admin-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.adm-main .admin-table-wrap {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .adm-main .admin-page {
        padding: 1.2rem 1rem;
    }
}

/* Admin page title - consistent with dashboard */
.adm-main .admin-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.adm-main .admin-add-btn {
    border-radius: 8px;
}

.adm-main .admin-status {
    display: block;
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: #e7f6e9;
    color: #1f6b26;
    font-weight: 600;
    font-size: 1.35rem;
}

.carousel {
    position: relative
}

    .carousel.pointer-event {
        touch-action: pan-y
    }

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden
}

    .carousel-inner::after {
        display: block;
        clear: both;
        content: ""
    }

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform .6s ease-in-out
}

@media (prefers-reduced-motion:reduce) {
    .carousel-item {
        transition: none
    }
}

.carousel-item-next, .carousel-item-prev, .carousel-item.active {
    display: block
}

    .active.carousel-item-end, .carousel-item-next:not(.carousel-item-start) {
        transform: translateX(100%)
    }

    .active.carousel-item-start, .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-100%)
    }

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none
}

    .carousel-fade .carousel-item-next.carousel-item-start, .carousel-fade .carousel-item-prev.carousel-item-end, .carousel-fade .carousel-item.active {
        z-index: 1;
        opacity: 1
    }

.carousel-fade .active.carousel-item-end, .carousel-fade .active.carousel-item-start {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s .6s
}

@media (prefers-reduced-motion:reduce) {
    .carousel-fade .active.carousel-item-end, .carousel-fade .active.carousel-item-start {
        transition: none
    }
}

.carousel-control-next, .carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease
}

@media (prefers-reduced-motion:reduce) {
    .carousel-control-next, .carousel-control-prev {
        transition: none
    }
}

.carousel-control-next:focus, .carousel-control-next:hover, .carousel-control-prev:focus, .carousel-control-prev:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9
}

.carousel-control-prev {
    left: 0
}

.carousel-control-next {
    right: 0
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
    list-style: none
}

    .carousel-indicators [data-bs-target] {
        box-sizing: content-box;
        flex: 0 1 auto;
        width: 30px;
        height: 3px;
        padding: 0;
        margin-right: 3px;
        margin-left: 3px;
        text-indent: -999px;
        cursor: pointer;
        background-color: #fff;
        background-clip: padding-box;
        border: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        opacity: .5;
        transition: opacity .6s ease
    }

@media (prefers-reduced-motion:reduce) {
    .carousel-indicators [data-bs-target] {
        transition: none
    }
}

.carousel-indicators .active {
    opacity: 1
}

.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 1.25rem;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center
}

.carousel-dark .carousel-control-next-icon, .carousel-dark .carousel-control-prev-icon {
    filter: invert(1) grayscale(100)
}

.carousel-dark .carousel-indicators [data-bs-target] {
    background-color: #000
}

.carousel-dark .carousel-caption {
    color: #000
}

/* ===== Location Map Component (Company Page) ===== */
.loc-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.loc-map-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.loc-map-canvas {
    width: 100%;
    height: 300px;
    z-index: 1;
    cursor: pointer;
}

.loc-map-loading {
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: cp-shimmer 1.4s infinite;
}

.loc-map-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.2rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.loc-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #bf2e29;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.loc-map-btn:hover { background: #a12622; }
.loc-map-btn:disabled { opacity: 0.6; cursor: wait; }

.loc-map-status {
    font-size: 1.2rem;
    color: #555;
}

.loc-map-status-err {
    color: #bf2e29;
}

/* Leaflet routing panel overrides for compact display */
.loc-map-wrap .leaflet-routing-container {
    max-height: 180px;
    overflow-y: auto;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .loc-map-canvas { height: 220px; }
    .loc-map-actions { flex-direction: column; align-items: flex-start; }
}

/* ===== Company Profile — Hero Section (Phase 2) ===== */
.cp-page {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    box-sizing: border-box;
}

/* Force the layout wrapper to stretch full-width for the company page */
._948d9e0a._95d4067f:has(.cp-page) {
    width: 100%;
    align-items: stretch;
}

.cp-hero {
    border-radius: 16px;
    overflow: visible;
    background: transparent;
    border: none;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
}

.cp-hero-left {
    flex: 1;
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
}

.cp-hero-right {
    flex: 1.2;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    max-height: 350px;
}

.cp-hero-right .cp-carousel {
    height: 350px;
    min-height: 350px;
    max-height: 350px;
    border-radius: 0;
}

/* Logo in left panel */
.cp-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-bottom: 1rem;
}

.cp-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Carousel */
.cp-carousel {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(135deg, #37696e 0%, #1a3a3d 100%);
}

.cp-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.cp-carousel-slide {
    min-width: 100%;
    height: 100%;
}

.cp-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: #000;
}

.cp-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 3;
    transition: background 0.15s;
}

.cp-carousel-btn:hover { background: #fff; }
.cp-carousel-prev { left: 12px; }
.cp-carousel-next { right: 12px; }

.cp-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.cp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.15s;
}

.cp-dot-on { background: #fff; box-shadow: 0 0 3px rgba(0,0,0,0.3); }

/* Placeholder when no gallery */
.cp-carousel-no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #3a3a3a;
}

.cp-carousel-no-images span {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo badge — now inline in left panel, keep old class for backward compat */
.cp-logo-badge {
    display: none;
}

.cp-logo-initial {
    font-size: 2.4rem;
    font-weight: 700;
    color: #bf2e29;
}

/* Hero info area — now handled by .cp-hero-left */
.cp-hero-info { display: none; }

.cp-hero-top {
    margin-bottom: 0.6rem;
}

.cp-hero-name {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cp-verified {
    display: inline-flex;
    align-items: center;
}

.cp-hero-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 1.3rem;
    margin-top: 0.3rem;
}

/* Hours */
.cp-hours {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 1rem;
    padding-top: 0.3rem;
}

.cp-hours-text { font-weight: 500; }
.cp-hours-na { color: #999; font-style: italic; }

/* Contact quick-action bar */
.cp-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cp-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-size: 1.25rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
}

.cp-contact-chip:hover {
    background: #eee;
    border-color: #ccc;
}

.cp-contact-wa { color: #25d366; border-color: #b8f0cc; background: #edfff4; }
.cp-contact-wa:hover { background: #d4f8e2; border-color: #25d366; }

.cp-contact-web { color: #1d9bf0; border-color: #bde4f7; background: #f0f9ff; }
.cp-contact-web:hover { background: #ddf1fc; border-color: #1d9bf0; }

.cp-contact-addr { color: #555; cursor: default; }

/* Lightbox */
.cp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    cursor: pointer;
}

.cp-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    cursor: default;
}

.cp-lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .cp-carousel { height: 200px; }
    .cp-hero { flex-direction: column-reverse; gap: 0.8rem; }
    .cp-hero-right .cp-carousel { min-height: 200px; }
    .cp-hero-right { border-radius: 14px; }
    .cp-hero-left { padding: 1.2rem 1rem; border-radius: 14px; }
    .cp-hero-logo { width: 60px; height: 60px; }
    .cp-hero-name { font-size: 1.6rem; }
    .cp-contacts { gap: 0.4rem; }
    .cp-contact-chip { font-size: 1.15rem; padding: 0.4rem 0.7rem; }
}

/* ===== Company Profile — Facilities List (Phase 3) ===== */
.cp-facilities {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.cp-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.cp-fac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
    padding: 1.2rem;
}

.cp-fac-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cp-fac-card:hover {
    border-color: #d99a97;
    box-shadow: 0 2px 8px rgba(191,46,41,0.06);
}

.cp-fac-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.cp-fac-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cp-fac-name {
    font-weight: 600;
    font-size: 1.25rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-fac-group {
    font-size: 1.1rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .cp-fac-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    .cp-fac-card { padding: 0.5rem 0.7rem; }
    .cp-fac-icon { width: 28px; height: 28px; }
}

/* ===== Company Profile — Description (Phase 4) ===== */
.cp-description {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.cp-desc-body {
    padding: 1.2rem 1.4rem;
    font-size: 1.35rem;
    line-height: 1.7;
    color: #444;
}

/* ===== Company Profile — Skeleton Loading & Not Found (Phase 5) ===== */
.cp-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cp-skel-hero {
    height: 320px;
    border-radius: 16px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: cp-shimmer 1.4s infinite;
}

.cp-skel-bar {
    height: 20px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: cp-shimmer 1.4s infinite;
}

.cp-skel-bar-lg { width: 60%; }
.cp-skel-bar-sm { width: 35%; }

.cp-skel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
}

.cp-skel-card {
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: cp-shimmer 1.4s infinite;
}

.cp-skel-map {
    height: 300px;
    border-radius: 14px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: cp-shimmer 1.4s infinite;
}

@keyframes cp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Not found state */
.cp-not-found {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
}

.cp-not-found h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0 0.5rem;
}

.cp-not-found p {
    font-size: 1.35rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.cp-back-btn {
    display: inline-block;
    background: #bf2e29;
    color: #fff;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background 0.15s;
}

.cp-back-btn:hover { background: #a12622; }

/* ===== Final Responsive Polish ===== */
@media (max-width: 768px) {
    .cp-page { padding: 0 0.8rem; margin: 0.8rem auto; gap: 1rem; }
    .cp-skel-hero { height: 200px; }
    .cp-skel-map { height: 200px; }
    .cp-skel-grid { grid-template-columns: 1fr 1fr; }
    .cp-not-found { padding: 2.5rem 1.2rem; }
    .cp-not-found h2 { font-size: 1.6rem; }
    .cp-desc-body { padding: 0.9rem 1rem; font-size: 1.25rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cp-page { padding: 0 1.5rem; }
    .cp-carousel { height: 280px; }
}

/* ===== Gallery Upload (Provider Dashboard) ===== */
.gallery-upload-section {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
}

.gallery-upload-label {
    display: block;
    font-weight: 600;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.8rem;
}

.gallery-upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.gallery-upload-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.gallery-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-upload-remove:hover { background: #bf2e29; }

.gallery-upload-add {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: border-color 0.15s;
    font-size: 1.1rem;
    color: #999;
}

.gallery-upload-add:hover { border-color: #bf2e29; color: #bf2e29; }
.gallery-upload-add:hover svg { stroke: #bf2e29; }

/* ===== Gallery Crop Modal ===== */
.gallery-crop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.gallery-crop-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.gallery-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 1.4rem;
    color: #333;
}

.gallery-crop-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.gallery-crop-close:hover { color: #bf2e29; }

.gallery-crop-body {
    padding: 1rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    max-height: 500px;
}

.gallery-crop-body img {
    display: block;
    max-width: 100%;
    max-height: 460px;
}

.gallery-crop-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    border-top: 1px solid #eee;
}

/* ===== Home Page — Banner Carousel ===== */
.home-banner-carousel {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 15px 10px 40px rgba(44,69,81,0.5);
}

.home-banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.home-banner-slide {
    min-width: 100%;
}

.home-banner-slide img {
    width: 100%;
    display: block;
}

.home-banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 3;
    transition: background 0.15s;
}

.home-banner-btn:hover { background: #fff; }
.home-banner-prev { left: 10px; }
.home-banner-next { right: 10px; }

.home-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.home-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.home-banner-dot-on { background: #fff; box-shadow: 0 0 3px rgba(0,0,0,0.3); }

@media (max-width: 768px) {
    .home-banner-carousel { border-radius: 12px; }
    .home-banner-btn { width: 28px; height: 28px; }
}

/* ===== Header Social Icons ===== */
.header-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.2rem;
}

.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: background 0.15s;
}

.header-social-icon:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .header-social { margin-right: 0.6rem; gap: 0.3rem; }
    .header-social-icon { width: 26px; height: 26px; }
    .header-social-icon svg { width: 14px; height: 14px; }
}

/* ===== Company Profile — Branches List ===== */
.cp-branches {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.cp-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 1.2rem;
}

.cp-branch-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cp-branch-card:hover {
    border-color: #d99a97;
    box-shadow: 0 2px 8px rgba(191,46,41,0.06);
}

.cp-branch-name {
    font-weight: 700;
    font-size: 1.35rem;
    color: #222;
    margin-bottom: 0.4rem;
}

.cp-branch-location {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.cp-branch-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cp-branch-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 1.1rem;
    color: #444;
    text-decoration: none;
    transition: background 0.15s;
}

.cp-branch-chip:hover { background: #e8e8e8; }

.cp-branch-chip-wa { color: #25d366; border-color: #b8f0cc; background: #edfff4; }
.cp-branch-chip-wa:hover { background: #d4f8e2; }

@media (max-width: 768px) {
    .cp-branches-grid { grid-template-columns: 1fr; gap: 0.8rem; padding: 0.8rem; }
}

/* ===== Company Profile — Service Tags ===== */
.cp-svc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f0f9f4;
    border: 1px solid #c8e6d5;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2e7d32;
}

/* ===== Password Eye Toggle ===== */
.pwd-eye-btn {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.pwd-eye-btn:hover { opacity: 1; }
