/* ============================================================
   MALABAR GLOW – ADMIN PANEL CSS
   Dark Premium UI | Sidebar + Mobile Bottom Nav
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --pink: #e91e8c;
    --pink-light: rgba(233, 30, 140, 0.12);
    --pink-glow: rgba(233, 30, 140, 0.25);
    --gold: #d4a96a;
    --gold-light: rgba(212, 169, 106, 0.12);
    --bg-base: #0d0d12;
    --bg-card: #16161f;
    --bg-card2: #1c1c28;
    --bg-sidebar: #10101a;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(233, 30, 140, 0.35);
    --text-main: #f0eef6;
    --text-sub: #9995ab;
    --text-muted: #5c5874;
    --white: #ffffff;
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --sidebar-w: 240px;
    --topbar-h: 64px;
    --radius: 14px;
    --radius-sm: 8px;
    --trans: 0.22s ease;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: #2a2a3a;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 20%, rgba(233, 30, 140, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 169, 106, 0.08) 0%, transparent 55%),
        var(--bg-base);
    padding: 24px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
    animation: cardIn 0.4s ease;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand .brand-icon {
    width: 56px;
    height: 56px;
    background: var(--pink-light);
    border: 1px solid var(--pink-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--pink);
    margin: 0 auto 14px;
}

.login-brand h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.login-brand p {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 4px;
}

.login-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(212, 169, 106, 0.25);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    margin: 8px auto 0;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.form-field .input-wrap {
    position: relative;
}

.form-field .input-wrap>i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.form-field .toggle-pw i {
    position: static;
    transform: none;
    font-size: 14px;
}

.form-field input {
    width: 100%;
    background: var(--bg-base);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 15px;
    padding: 12px 44px 12px 40px;
    outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
}

.form-field input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-light);
}

.form-field .toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    z-index: 2;
    line-height: 1;
    transition: color var(--trans);
}

.form-field .toggle-pw:hover {
    color: var(--pink);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 13.5px;
    padding: 10px 14px;
    margin-bottom: 18px;
    display: none;
}

.login-error.show {
    display: block;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--pink) 0%, #c2185b 100%);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
    box-shadow: 0 4px 20px var(--pink-glow);
}

.btn-login:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--pink-glow);
}

.btn-login:active {
    transform: translateY(0);
}

.login-creds-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--gold-light);
    border: 1px solid rgba(212, 169, 106, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gold);
}

.login-creds-info strong {
    color: var(--text-main);
    font-weight: 700;
}

.login-creds-info i {
    font-size: 11px;
    opacity: 0.8;
}

.creds-dot {
    opacity: 0.4;
    font-size: 18px;
    line-height: 1;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.shake {
    animation: shake 0.4s ease;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand .sb-icon {
    width: 36px;
    height: 36px;
    background: var(--pink-light);
    border: 1px solid var(--pink-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-brand .sb-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.sidebar-brand .sb-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-section-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 20px 6px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-sub);
    cursor: pointer;
    border-radius: 0;
    transition: all var(--trans);
    border-left: 3px solid transparent;
    margin: 1px 0;
    position: relative;
}

.nav-item i {
    width: 18px;
    font-size: 14px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-left-color: rgba(233, 30, 140, 0.4);
}

.nav-item.active {
    color: var(--pink);
    background: var(--pink-light);
    border-left-color: var(--pink);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    background: transparent;
    border: 1px solid var(--border);
    transition: all var(--trans);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--topbar-h);
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 50;
}

.topbar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.open-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid;
}

.open-status-badge.open {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.open-status-badge.closed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    background: var(--pink-light);
    border: 1.5px solid var(--pink-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--pink);
    cursor: pointer;
}

.hamburger-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.hamburger-btn span {
    width: 18px;
    height: 2px;
    background: var(--text-sub);
    border-radius: 99px;
    transition: all var(--trans);
    display: block;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
    padding: 28px 28px 80px;
    flex: 1;
}

/* ===== SECTION PANELS ===== */
.panel {
    display: none;
}

.panel.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-header h2 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2 .ph-icon {
    width: 38px;
    height: 38px;
    background: var(--pink-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 15px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, #c2185b 100%);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
    box-shadow: 0 4px 16px var(--pink-glow);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card2);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all var(--trans);
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--trans);
    font-family: inherit;
    border: 1px solid var(--border);
}

.btn-icon.edit {
    background: var(--gold-light);
    color: var(--gold);
    border-color: rgba(212, 169, 106, 0.2);
}

.btn-icon.edit:hover {
    background: rgba(212, 169, 106, 0.25);
}

.btn-icon.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-icon.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ===== DASHBOARD HOME ===== */
.dashboard-greeting {
    margin-bottom: 28px;
}

.dashboard-greeting h2 {
    font-size: 26px;
    font-weight: 700;
}

.dashboard-greeting h2 span {
    color: var(--pink);
}

.dashboard-greeting p {
    color: var(--text-sub);
    font-size: 14px;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--trans);
    cursor: pointer;
}

.stat-card:hover {
    border-color: var(--pink-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    border-radius: 0 var(--radius) 0 70px;
    opacity: 0.06;
}

.stat-card.pink::before {
    background: var(--pink);
}

.stat-card.gold::before {
    background: var(--gold);
}

.stat-card.green::before {
    background: var(--green);
}

.stat-card.blue::before {
    background: #3b82f6;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}

.stat-card.pink .stat-icon {
    background: var(--pink-light);
    color: var(--pink);
}

.stat-card.gold .stat-icon {
    background: var(--gold-light);
    color: var(--gold);
}

.stat-card.green .stat-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.stat-card.blue .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.quick-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    transition: all var(--trans);
}

.quick-link-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card2);
    transform: translateY(-2px);
}

.ql-icon {
    font-size: 22px;
}

.ql-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.ql-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== CARDS GRID (Services, Offers, Gallery, Reviews) ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--trans), transform var(--trans);
}

.admin-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.admin-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-card2);
}

.admin-card-img-placeholder {
    width: 100%;
    height: 160px;
    background: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 32px;
}

.admin-card-body {
    padding: 16px;
}

.admin-card-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--pink-light);
    color: var(--pink);
    border: 1px solid var(--pink-glow);
    margin-bottom: 8px;
}

.admin-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.admin-card-desc {
    font-size: 12.5px;
    color: var(--text-sub);
    line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-card-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 12px;
}

.admin-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}

/* ===== REVIEW CARD ===== */
.review-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color var(--trans), transform var(--trans);
}

.review-admin-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.review-stars-display {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.review-text-preview {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pink-light);
    border: 1px solid var(--pink-glow);
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author-name {
    font-size: 13px;
    font-weight: 600;
}

.review-author-info {
    font-size: 11px;
    color: var(--text-sub);
}

/* ===== GALLERY PAIRS ===== */
.gallery-pair {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--trans), transform var(--trans);
}

.gallery-pair:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.gallery-pair-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 140px;
}

.gallery-pair-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-pair-images .gp-label {
    position: relative;
}

.gallery-pair-images .gp-label::after {
    content: attr(data-label);
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
}

.gallery-pair-body {
    padding: 14px 16px;
}

.gallery-pair-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== TIMINGS SECTION ===== */
.timings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 560px;
}

.timings-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.time-field {
    flex: 1;
    min-width: 140px;
}

.override-group {
    margin-bottom: 24px;
}

.override-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.override-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.override-opt {
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-sub);
    cursor: pointer;
    transition: all var(--trans);
    font-family: inherit;
    background: var(--bg-base);
}

.override-opt:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.override-opt.active-auto {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-light);
}

.override-opt.active-open {
    border-color: var(--green);
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

.override-opt.active-closed {
    border-color: var(--red);
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

.status-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    background: var(--bg-base);
}

.status-preview-label {
    font-size: 13px;
    color: var(--text-sub);
}

.status-preview-badge {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-preview-badge.open {
    color: var(--green);
}

.status-preview-badge.closed {
    color: var(--red);
}

/* ===== ABOUT SECTION ===== */
.about-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.about-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-card h3 i {
    color: var(--pink);
}

/* ===== CONTACT SECTION ===== */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 560px;
}

/* ===== ACCOUNT SECTION ===== */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 480px;
}

.account-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.account-avatar-big {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pink-light);
    border: 2px solid var(--pink-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--pink);
    flex-shrink: 0;
}

.account-name-display {
    font-size: 18px;
    font-weight: 700;
}

.account-role-display {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ===== FORM FIELDS (reusable in panels) ===== */
.admin-form-field {
    margin-bottom: 18px;
}

.admin-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.admin-form-field input,
.admin-form-field textarea,
.admin-form-field select {
    width: 100%;
    background: var(--bg-base);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
    font-family: inherit;
}

.admin-form-field textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.admin-form-field select {
    cursor: pointer;
}

.admin-form-field input:focus,
.admin-form-field textarea:focus,
.admin-form-field select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-light);
}

.admin-form-field input[type="time"] {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Star rating picker */
.star-picker {
    display: flex;
    gap: 4px;
    font-size: 24px;
    cursor: pointer;
}

.star-picker .star {
    color: var(--text-muted);
    transition: color var(--trans);
}

.star-picker .star.filled {
    color: var(--gold);
}

.star-picker .star:hover {
    color: var(--gold);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(16px);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--trans);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease forwards;
    pointer-events: all;
    max-width: 320px;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.3);
}

.toast.success i {
    color: var(--green);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.error i {
    color: var(--red);
}

.toast.out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
    display: block;
}

.empty-state p {
    font-size: 14px;
}

/* ===== DIVIDER ===== */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* ===== IMAGE PREVIEW ===== */
.img-preview-wrap {
    margin-top: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 120px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-preview-wrap .no-img {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.img-preview-wrap .no-img i {
    font-size: 24px;
}

/* ===== OFFER CARD (admin) ===== */
.offer-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color var(--trans), transform var(--trans);
}

.offer-admin-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.offer-admin-card .offer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.offer-admin-card .offer-desc {
    font-size: 12.5px;
    color: var(--text-sub);
    margin-bottom: 12px;
    line-height: 1.5;
}

.offer-admin-card .offer-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.offer-admin-card .price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.offer-admin-card .price-disc {
    font-size: 18px;
    font-weight: 700;
    color: var(--pink);
}

.offer-admin-card .offer-badge-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(212, 169, 106, 0.25);
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-editor {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-w: 0px;
        --topbar-h: 56px;
    }

    .sidebar {
        transform: translateX(-240px);
        width: 240px;
        transition: transform 0.3s ease;
        z-index: 300;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.5);
    }

    .topbar {
        left: 0;
    }

    .hamburger-btn {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px 100px;
    }

    /* Bottom Tab Nav on mobile */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-sidebar);
        border-top: 1px solid var(--border);
        z-index: 200;
        padding: 6px 4px;
        gap: 0;
        justify-content: space-around;
        backdrop-filter: blur(12px);
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 10px;
        font-size: 10px;
        color: var(--text-muted);
        cursor: pointer;
        border-radius: var(--radius-sm);
        transition: all var(--trans);
        min-width: 48px;
    }

    .mob-nav-item i {
        font-size: 17px;
    }

    .mob-nav-item.active {
        color: var(--pink);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar-right .open-status-badge {
        display: none;
    }

    .login-card {
        padding: 32px 24px;
    }

    .modal-overlay {
        padding: 12px;
    }

    .toast-container {
        bottom: 72px;
        right: 12px;
        left: 12px;
    }

    .toast {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ===== SECTION DIVIDER HEADING ===== */
.section-divider {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.account-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 480px) {
    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Tag label */
.tag-label {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 99px;
}

.tag-hair {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-skin {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-makeup {
    background: var(--pink-light);
    color: var(--pink);
    border: 1px solid var(--pink-glow);
}

.tag-spa {
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(212, 169, 106, 0.2);
}

/* sidebar overlay on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.sidebar-overlay.show {
    display: block;
}

/* ===== FILTER FAB (Mobile Only) ===== */
.filter-fab {
    position: fixed;
    bottom: 85px;
    /* Above bottom nav */
    right: 20px;
    background: linear-gradient(135deg, var(--pink), #c2185b);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    display: none;
    /* Desktop hidden */
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px var(--pink-glow);
    z-index: 150;
    transition: all var(--trans);
}

.filter-fab i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .filter-fab {
        display: flex;
    }
}

/* ===== BOTTOM SHEET MODAL ===== */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sheet-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    z-index: 401;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

.bottom-sheet.show {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--text-muted);
    opacity: 0.3;
    border-radius: 99px;
    margin: 12px auto;
}

.sheet-header {
    padding: 0 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sheet-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.btn-close-sheet {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-sub);
}

.sheet-body {
    padding: 24px;
}

.filter-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.filter-option {
    background: var(--bg-card2);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-sub);
    transition: all var(--trans);
    text-align: center;
}

.filter-option .fo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-main);
    transition: all var(--trans);
}

.filter-option span {
    font-size: 13px;
    font-weight: 600;
}

.filter-option.active {
    background: var(--pink-light);
    border-color: var(--pink);
    color: var(--pink);
}

.filter-option.active .fo-icon {
    background: var(--pink);
    color: white;
}

/* Desktop Styles for Filter Header (Keep desktop clear) */
@media (min-width: 769px) {

    .filter-fab,
    .bottom-sheet,
    .sheet-overlay {
        display: none !important;
    }
}

/* IMAGE UPLOAD UI */
.custom-file-upload {
    position: relative;
    width: 100%;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card2);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-sub);
    font-size: 13px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--trans);
    text-transform: none !important;
    letter-spacing: normal !important;
    width: 100%;
}

.custom-file-upload label:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-light);
}

.img-preview-wrap {
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-base);
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
}

.img-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CROPPER.JS OVERRIDES */
#cropModal .modal-body {
    overflow: hidden;
}

#cropModal .img-container {
    background: #111;
}

#cropModal .img-container img {
    display: block;
    max-width: 100%;
}

/* Hide the resize handles since we only want to allow moving the crop box */
.cropper-point,
.cropper-line {
    display: none !important;
}

.cropper-center {
    display: block;
}