/* 
    SabSeva Premium UI Styles 
    Optimized for performance and aesthetics.
*/

:root {
    --primary: #fb923c;
    /* SabSeva Orange */
    --primary-dark: #ea580c;
    --secondary: #6366f1;
    /* Indigo */
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-accent: #fbbf24;
    --radius-md: 16px;
    --radius-lg: 24px;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.screen {
    min-height: 100vh;
    padding-bottom: 100px;
    /* Space for bottom nav */
    overflow-y: auto;
}

.prof-content {
    padding-bottom: 120px !important;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none !important;
}

#mapScreen.hidden {
    display: none !important;
    z-index: -1000 !important;
}

#mapScreen {
    z-index: 2000;
}

/* --- HEADER --- */
.hdr {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-box {
    font-size: 1.5rem;
}

.logo span {
    color: var(--primary);
}

/* --- HERO --- */
.hero {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-t {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-t span {
    color: var(--primary);
}

.hero-s {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
}

.srch-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.srch-box {
    flex: 1;
    position: relative;
}

.srch-box input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid #fed7aa;
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.1);
}

.srch-main-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
}

.sos-btn {
    background: #fee2e2;
    border: none;
    font-size: 1.5rem;
    padding: 12px;
    border-radius: 15px;
    cursor: pointer;
}

/* --- CATEGORIES --- */
.sec {
    padding: 1.5rem;
}

.sec-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sec-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.see-all {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.cat-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cat-card-3 {
    background: #fff;
    padding: 15px 5px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s;
    cursor: pointer;
}

.cat-card-3:active {
    transform: scale(0.95);
}

.cat-icon-lg {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cat-name-lg {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- WORKER SCROLL --- */
.hscroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0 15px 0;
    scrollbar-width: none;
}

.hscroll::-webkit-scrollbar {
    display: none;
}

.svc-card {
    min-width: 160px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow);
}

.sc-img {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.sc-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.sc-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sc-rat {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-accent);
    margin: 5px 0;
}

.sc-prc {
    font-weight: 800;
    color: var(--primary-dark);
}

/* --- CTA BANNERS --- */
.wcta {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 24px;
    padding: 20px;
    color: white;
    display: flex;
    gap: 15px;
    align-items: center;
}

.wcta-ic {
    font-size: 2.5rem;
}

.wcta h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.wcta p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.wcta-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.refer-banner {
    background: #eff6ff;
    padding: 20px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px dashed #bfdbfe;
    cursor: pointer;
}

.rb-text h3 {
    color: #1e40af;
    font-size: 1.1rem;
}

.rb-text p {
    font-size: 0.85rem;
    color: #1d4ed8;
}

.rb-icon {
    font-size: 2rem;
}

/* --- REVIEWS --- */
.rev-card {
    min-width: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.rev-stars {
    color: var(--text-accent);
    margin-bottom: 8px;
}

.rev-txt {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 12px;
}

.rev-aut {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rev-av {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rev-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.rev-city {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- WORKER DASHBOARD NEW LAYOUT --- */
.worker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.worker-profile-status {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 10px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wps-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid white;
}

.wps-name {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.wps-category {
    font-size: 0.9rem;
    color: #666;
    margin: 2px 0 0 0;
}

.wps-right {
    margin-left: auto;
}

/* Online Toggle */
.online-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
    margin-bottom: 5px;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

input:checked+.toggle-slider {
    background: #28a745;
}

input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #666;
}

/* Stats Grid */
.worker-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a73e8;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

/* Sections & Cards */
.worker-section {
    padding: 15px;
}

.section-hdr h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
}

.request-card,
.schedule-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.req-info strong,
.sch-info strong {
    display: block;
    font-size: 1rem;
    color: #333;
}

.req-info p,
.sch-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.req-info span,
.sch-info span {
    font-size: 0.8rem;
    color: #999;
}

.req-actions,
.sch-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-accept,
.btn-nav-map {
    flex: 1;
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
}

.btn-reject {
    flex: 1;
    background: #f8d7da;
    color: #721c24;
    border: none;
    padding: 10px;
    border-radius: 10px;
}

.btn-start-job {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.qa-btn {
    background: #f8f9fa;
    border: none;
    padding: 15px 5px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
}

.qa-btn:active {
    background: #e9ecef;
}

.qa-btn i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.qa-btn span {
    font-size: 0.7rem;
    color: #555;
}

/* Alerts */
.alert-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #856404;
}

/* --- SIDE MENU DRAWER --- */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 299999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-menu-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 300000;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-menu-drawer.open {
    transform: translateX(300px);
}

.sm-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sm-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    border: 2px solid white;
}

.sm-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.sm-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.sm-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sm-item {
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-item:hover,
.sm-item:active {
    background: #f8fafc;
    color: var(--primary);
}

.sm-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sm-footer {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
}

/* --- BOTTOM NAVIGATION --- */
.bnav,
.worker-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    justify-content: space-around !important;
    padding: 10px 0 25px 0 !important;
    z-index: 99999 !important;
    border-top: 1px solid #eee !important;
}

.hidden {
    display: none !important;
}

.ni,
.wni {
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    flex: 1;
}

.ni.active,
.wni.active {
    color: var(--primary);
}

.ni-icon,
.wni i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    display: block;
    font-style: normal;
}

.ni-lbl,
.wni span {
    font-size: 0.65rem;
    font-weight: 800;
    display: block;
}

/* Worker Tab Bar */
.tab-bar-worker {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-bar-worker::-webkit-scrollbar {
    display: none;
}

.tab-btn-worker {
    background: #f1f5f9;
    color: var(--text-muted);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    /* Prevents button from shrinking */
}

.tab-btn-worker.active {
    background: var(--primary);
    color: white;
}

/* --- MODALS --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 200000;
    /* Higher than bottom nav (99999) */
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 25px;
    padding-bottom: 40px;
    /* Extra space for buttons at bottom */
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

/* Logout Modal Specific */
.logout-overlay.hidden {
    display: none;
}

.logout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300000;
}

.logout-modal {
    width: 90%;
    max-width: 350px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logout-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.logout-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.logout-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
}

.btn-neutral {
    background: #f1f5f9;
    color: var(--text-main);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- BUTTONS --- */
.btn {
    padding: 15px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border: 2px solid #e2e8f0;
}

.w-full {
    width: 100%;
}

/* --- UTILS --- */
.divider {
    height: 8px;
    background: #f8fafc;
    margin: 5px 0;
}


/* --- MAP SCREEN STYLE (PRESERVED) --- */
#mapScreen {
    background: white;
    z-index: 20000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#mapContainer {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.map-header {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 20001;
    display: flex;
    gap: 10px;
}

/* --- MODERN AUTH INPUTS --- */
.auth-section input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    color: var(--text-main);
}

.auth-section input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.1);
}

.input-group .prefix {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 10px;
}

.input-group input {
    margin-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 14px 10px !important;
}

/* --- KYC & ONBOARDING STYLES --- */
.onboarding-screen {
    padding: 20px;
    background: white;
}

.kyc-form-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.kyc-step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.kyc-step-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.multi-select-container {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    max-height: 300px;
    overflow-y: auto;
    background: #f8fafc;
}

.select-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.select-item:hover {
    background: #f1f5f9;
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag-chip {
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-chip.primary {
    background: var(--primary);
    color: white;
}

.selfie-placeholder {
    width: 120px;
    height: 120px;
    background: #f1f5f9;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px dashed var(--primary);
    cursor: pointer;
}

.map-search-bar {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    padding-left: 10px;
}

.map-back-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    cursor: pointer;
}

.back-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.25);
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.back-btn:hover {
    background: #f1f5f9;
}

.back-btn:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.25);
}

.map-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 25px;
    z-index: 20001;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
}

.confirm-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
    cursor: pointer;
}

.map-center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 20000;
    pointer-events: none;
    margin-top: -15px;
    text-align: center;
}

.marker-pin {
    font-size: 3rem;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    animation: bounce 0.5s infinite alternate;
}

.marker-label {
    background: var(--text-main);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 5px;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.location-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 20000;
    pointer-events: none;
    margin-top: -15px;
}

/* --- PROFILE SCREEN --- */
.prof-header-new {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    text-align: center;
    position: relative;
}

.prof-avatar-main {
    width: 100px;
    height: 100px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.prof-avatar-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prof-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.prof-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.ps-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ps-item:last-child {
    border: none;
}

.prof-stat.glass {
    background: white !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.prof-stat.glass .ps-val {
    color: var(--text-main) !important;
    font-weight: 900;
}

.prof-stat.glass .ps-lbl {
    color: var(--text-muted) !important;
    font-weight: 700;
}

.ps-val {
    font-weight: 800;
    font-size: 1.1rem;
}

.ps-lbl {
    font-size: 0.7rem;
    opacity: 0.9;
    text-transform: uppercase;
    margin-top: 2px;
}

.prof-content {
    padding: 20px;
}

.prof-sec-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.add-addr-btn {
    background: #fff7ed;
    color: var(--primary);
    border: 2px dashed #fed7aa;
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 25px;
    transition: 0.2s;
}

.add-addr-btn:hover {
    background: #ffedd5;
}

.prof-menu-new {
    background: white;
    border-radius: 24px;
    padding: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.pm-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
    cursor: pointer;
}

.pm-item:last-child {
    border-bottom: none;
}

.pm-item:active {
    background: #f8fafc;
    border-radius: 12px;
}

.pm-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.pm-text {
    flex: 1;
}

.pm-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.pm-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pm-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-left: auto;
}

.pm-badge {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    margin-right: 10px;
}

.badge-green {
    background: #dcfce7;
    color: #16a34a;
}

.prof-footer-info {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 20px 0 30px 0;
}

/* --- OFFERS & BOOKINGS --- */
.offers-hdr,
.svc-page-hdr {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.oh-title,
.sph-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
}

.oh-sub,
.sph-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.coupon-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 20px;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.coupon-card .cp-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coupon-card .cp-code {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.coupon-card .cp-copy {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.9;
}


/* --- ONBOARDING & AUTH --- */
.onboarding-header-blue {
    background: var(--primary);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.onboarding-header-blue .logo {
    color: white;
    font-size: 1.5rem;
}

.onboarding-header-blue .logo span {
    color: #fff;
    opacity: 0.9;
}

.selection-card,
.role-box,
.auth-box {
    padding: 30px 20px;
}

.selection-card h2,
.role-box h2 {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.language-list-container {
    display: grid;
    gap: 12px;
}

.language-row {
    background: white;
    border: 2px solid #f1f5f9;
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.role-btn {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.role-btn:active {
    border-color: var(--primary);
    background: #fff7ed;
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.role-btn h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.role-btn p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-section {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.auth-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.logo-large {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.logo-large span {
    color: var(--primary);
}

.continue-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background: white;
    border-top: 1px solid #f1f5f9;
    z-index: 1000;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

/* --- SERVICES SCREEN --- */
.services-layout {
    display: flex;
    height: calc(100vh - 130px);
    margin-top: 10px;
    background: #f8fafc;
}

.sub-sidebar {
    width: 90px;
    background: white;
    border-right: 1px solid #f1f5f9;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sub-sidebar::-webkit-scrollbar {
    display: none;
}

.sub-sidebar-item {
    padding: 15px 5px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
}

.sub-sidebar-item .icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    opacity: 0.7;
    transition: 0.2s;
}

.sub-sidebar-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    line-height: 1.2;
    word-break: break-word;
}

.sub-sidebar-item.active {
    background: #fff7ed;
    border-right: 3px solid var(--primary);
}

.sub-sidebar-item.active .icon {
    opacity: 1;
    transform: scale(1.1);
}

.sub-sidebar-item.active span {
    color: var(--primary);
}

.main-content-area {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    padding-bottom: 100px;
}

.svc-srch {
    padding: 0 20px 15px 20px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.svc-srch input {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #f1f5f9;
    margin-top: 5px;
}

.suggestion-item {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:active {
    background: #f8fafc;
}

.suggestion-icon {
    font-size: 1.5rem;
}

.suggestion-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    display: block;
}

.suggestion-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-main);
    margin-bottom: 5px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- WORKER LIST CARDS --- */
.svc-list-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.slc-left {
    position: relative;
}

.slc-img {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    overflow: hidden;
}

.worker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slc-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.slc-main {
    flex: 1;
}

.slc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.slc-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.verified-tag {
    font-size: 0.65rem;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.slc-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.slc-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.slc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}

.slc-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.book-now-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.book-now-btn:active {
    transform: scale(0.95);
    background: var(--primary-dark);
}

/* --- NEW WORKER DASHBOARD STYLES --- */
.worker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wh-left,
.wh-right {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
}

.wh-center {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.worker-content-scroll {
    padding: 20px;
    overflow-y: auto;
}

.worker-profile-status {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wps-avatar {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 15px;
}

.wps-center h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.wps-center p {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.wps-right {
    margin-left: auto;
}

.status-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.status-toggle-container span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #10b981;
}

input:focus+.slider {
    box-shadow: 0 0 1px #10b981;
}

input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.worker-stats-card {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 20px 10px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.worker-section {
    margin-bottom: 25px;
}

.worker-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.req-main h4,
.sch-main h4 {
    margin: 0;
    font-size: 1rem;
}

.req-main p,
.sch-main p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.req-time,
.sch-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.req-actions,
.sch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.req-actions button,
.sch-actions button {
    transition: all 0.2s;
    cursor: pointer;
}

.req-actions button:active,
.sch-actions button:active {
    transform: scale(0.95);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.qa-item {
    background: white;
    padding: 15px 5px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: 0.2s;
}

.qa-item:active {
    transform: scale(0.95);
}

.qa-icon {
    font-size: 1.4rem;
}

.qa-item span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-main);
}

.alert-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-text {
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 500;
}

/* --- FORM GROUP & MODAL INPUTS --- */
.form-group,
.form-field {
    margin-bottom: 25px !important;
    text-align: left;
}

.form-group label,
.form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    padding-left: 2px;
}

.form-group input,
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1.5px solid #f1f5f9;
    background: #f8fafc;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15), 0 8px 16px rgba(251, 146, 60, 0.1);
    transform: translateY(-1px);
}

.input-group {
    background: #f8fafc;
    border-radius: 18px;
    border: 1.5px solid #f1f5f9;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.input-group input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.input-group .prefix {
    padding: 0 15px 0 20px;
    color: var(--text-muted);
    font-weight: 700;
    border-right: 1px solid #f1f5f9;
}

.modal-content.glass {
    padding: 35px 25px !important;
    border-radius: 35px !important;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 5px;
}

.modal-header .close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.modal-header .close:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.modal-header .close:active {
    transform: scale(0.94);
}

/* --- NOTIFICATIONS --- */
.badge-notif {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 10;
}

.toast-popup {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    pointer-events: none;
}
.toast-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- BOOKINGS TABS --- */
.booking-tabs {
    display: flex;
    gap: 10px;
    padding: 0 18px 10px 18px;
}

.booking-tab {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f9fafb;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.booking-tab.active {
    background: #111827;
    color: #f9fafb;
    border-color: #111827;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
}

.booking-tab:active {
    transform: translateY(1px) scale(0.97);
}

/* --- ADMIN PANEL LAYOUT --- */
.admin-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.admin-logo .logo-text span {
    color: var(--primary);
}

.admin-search input {
    width: 260px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-profile-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f9fafb;
}

.chip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.chip-text {
    font-size: 0.75rem;
}

.chip-name {
    font-weight: 700;
}

.chip-role {
    color: var(--text-muted);
}

.admin-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.admin-sidebar {
    width: 210px;
    border-right: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 12px 10px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-menu-item {
    text-align: left;
    border-radius: 999px;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
}

.admin-menu-item.active {
    background: #111827;
    color: #f9fafb;
}

.admin-main {
    flex: 1;
    padding: 16px 20px 30px 20px;
    overflow-y: auto;
}

.admin-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.admin-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-panel {
    padding: 16px;
    border-radius: 18px;
}

.admin-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-section-actions {
    display: flex;
    gap: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-table tr:hover td {
    background: #f9fafb;
}
