/* --- THEME VARIABLES --- */
:root { 
    --primary: #c0392b; 
    --primary-dark: #a93226; 
    --accent: #e74c3c; 
    --herb-green: #27ae60; 
    --herb-dark: #219653;
    --bg: #fdfdfd; 
    --text: #2c3e50; 
    --card-bg: #ffffff; 
    --input-bg: #f8f9fa;
    --border: #eaeced;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 35px rgba(0,0,0,0.12);
    --header-bg: rgba(255, 255, 255, 0.95); 
    --footer-bg: #111111;
    --footer-text: #b0b0b0;
    --hero-overlay: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    --nav-height: 80px; 
}

body.dark-mode {
    --bg: #121212; 
    --text: #e0e0e0; 
    --card-bg: #1e1e1e; 
    --input-bg: #2d2d2d;
    --border: #333333; 
    --shadow: 0 5px 20px rgba(0,0,0,0.5); 
    --hover-shadow: 0 10px 30px rgba(0,0,0,0.7);
    --header-bg: rgba(18, 18, 18, 0.95); 
    --footer-bg: #000000;
    --hero-overlay: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 100%);
}

/* --- RESET & GLOBAL LAYOUT --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Poppins', sans-serif; 
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; 
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    position: relative;
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    font-size: 16px;
    line-height: 1.6;
}

main { flex: 1; padding-bottom: 60px; }
a { text-decoration: none; color: inherit; }

/* LAYOUT HELPERS */
.home-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
.section-spacing { margin-top: 80px; }

/* --- HEADER & NAVIGATION --- */
header { 
    background: var(--header-bg); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    height: var(--nav-height);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); 
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container { 
    width: 100%;
    max-width: 1300px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 25px; 
    height: 100%;
}

.logo-link { display: flex; align-items: center; z-index: 1002; }
.text-logo { height: 50px; width: auto; object-fit: contain; }
.header-logo-enhanced { height: 55px !important; transition: transform 0.3s ease; }
.header-logo-enhanced:hover { transform: scale(1.05); }

.nav-actions { display: flex; align-items: center; height: 100%; }
.nav-links-group { display: flex; gap: 30px; align-items: center; }

/* New Mobile Header inside Drawer */
.mobile-menu-header { display: none; } 

.nav-link { 
    font-weight: 500; 
    color: var(--text); 
    font-size: 0.95rem; 
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 50%; background-color: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* RIGHT CONTROLS - FIXED FOR FLEX LAYOUT */
.nav-right-group { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    z-index: 1002;
}

.profile-pic { 
    width: 40px; height: 40px; 
    border-radius: 50%; object-fit: cover; 
    border: 2px solid var(--primary); cursor: pointer; 
    transition: transform 0.2s;
}
.profile-pic:hover { transform: scale(1.1); }

.courses-btn-menu { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
    color: white !important; padding: 8px 22px; 
    border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.25);
    transition: 0.3s; display: inline-flex; align-items: center;
}
.courses-btn-menu:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35); }
.courses-btn-menu::after { display: none; } 

.hamburger { 
    display: none; flex-direction: column; cursor: pointer; 
    gap: 6px; z-index: 1003; padding: 5px; margin-left: 10px;
    justify-content: center; width: 35px; height: 35px;
}
.hamburger span {
    width: 100%; height: 2px; background-color: var(--text);
    border-radius: 5px; transition: all 0.3s ease-in-out; transform-origin: center;
}

/* --- UPDATED NOTIFICATION BELL STYLES --- */
.notif-bell { position: relative; cursor: pointer; font-size: 1.3rem; color: var(--text); transition: 0.3s; margin-right: 5px; }
.notif-bell:hover { color: var(--primary); }

/* FIXED BADGE STYLING */
.notif-badge { 
    position: absolute; 
    top: -8px; 
    right: -8px; 
    min-width: 18px; 
    height: 18px; 
    padding: 0 4px; /* Grows with numbers */
    background: var(--primary); 
    color: white; 
    border-radius: 10px; /* Pill shape */
    display: none; 
    border: 2px solid var(--header-bg); /* Matches header background */
    font-size: 0.7rem; 
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}
.notif-badge.active { display: flex; }

/* Bell Shake Animation */
@keyframes bellShake {
    0% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

.notif-bell.shaking i {
    animation: bellShake 0.6s cubic-bezier(.36,.07,.19,.97) both;
    color: var(--primary);
}

/* Notification Dropdown */
.notif-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 320px;
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    display: none; /* Hidden by default */
    z-index: 2000;
    border: 1px solid var(--border);
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown.active {
    display: block;
}

.notif-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-list-container {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text);
}

.notif-item:hover {
    background: var(--input-bg);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item i {
    color: var(--herb-green);
    font-size: 1.2rem;
    margin-top: 2px;
}

.notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text);
    opacity: 0.6;
    font-size: 0.95rem;
}
/* --- END NOTIFICATION STYLES --- */

.theme-toggle { 
    cursor: pointer; font-size: 1rem; padding: 0;
    background: transparent; color: var(--text); 
    border: 1px solid var(--border); display: flex; align-items: center; 
    justify-content: center; width: 38px; height: 38px;
    border-radius: 50%; transition: 0.3s;
}
.theme-toggle:hover { background: var(--input-bg); color: var(--primary); border-color: var(--primary); }
.theme-toggle span { display: none; margin-left: 10px; font-weight: 500; font-size: 1rem; }

.menu-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); 
    z-index: 998; opacity: 0; visibility: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

@media(max-width: 992px) { 
    .nav-container { padding: 0 15px; }
    .hamburger { display: flex; }
    
    .nav-actions { 
        position: fixed; 
        top: var(--nav-height); 
        right: -100%; 
        width: 300px; 
        height: calc(100vh - var(--nav-height)); 
        background: var(--card-bg); 
        box-shadow: -5px 10px 30px rgba(0,0,0,0.15); 
        flex-direction: column; align-items: flex-start;
        padding: 0; 
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 999; 
        gap: 0; overflow-y: auto;
    }
    
    .nav-actions.active { right: 0; }
    
    .nav-links-group {
        flex-direction: column; align-items: flex-start;
        width: 100%; gap: 0; padding: 20px 25px 30px;
    }

    .nav-link { 
        font-size: 1.1rem; width: 100%; 
        border-bottom: 1px solid var(--border);
        padding: 16px 0; text-align: left;
    }
    .nav-link:last-of-type { border-bottom: none; }
    .nav-link::after { display: none; }
    
    .courses-btn-menu { 
        width: 100%; text-align: center; justify-content: center; 
        margin-top: 25px; padding: 14px;
    }
    
    .theme-toggle { 
        width: 100%; justify-content: flex-start; 
        border-radius: 10px; padding: 15px; 
        border: 1px solid var(--border);
        height: auto; margin-top: 20px;
    }
    .theme-toggle span { display: inline-block; }
    
    .nav-actions.active ~ .nav-right-group .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-actions.active ~ .nav-right-group .hamburger span:nth-child(2) { opacity: 0; }
    .nav-actions.active ~ .nav-right-group .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- PROFILE PAGE DASHBOARD STYLES --- */

/* PROFILE HEADER CUSTOM CLEANUP */
.profile-header-clean .nav-container {
    padding-left: 20px;
    padding-right: 20px; /* Ensure margin for hamburger */
}

/* Hide the small avatar specifically in the profile header */
.profile-header-clean #authButtons .profile-pic {
    display: none !important;
}

/* Ensure right group aligns perfectly */
.profile-header-clean .nav-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

/* Logout Button Style */
.btn-logout-profile {
    border-color: #e74c3c;
    color: #e74c3c;
    padding: 6px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    display: none; /* Controlled by JS */
}
.btn-logout-profile:hover {
    background: #e74c3c;
    color: white;
}

/* Main Container */
.profile-dashboard-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 1. Header Card */
.profile-header-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

/* Header Background Accent */
.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.profile-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.profile-pic-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--card-bg);
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.edit-avatar-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

.profile-info-text {
    flex: 1;
}

.profile-info-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-meta-badge {
    font-size: 0.9rem;
    color: var(--text);
    background: var(--input-bg);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* 2. Horizontal Tabs */
.profile-tabs-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Ensures no horizontal scrolling */
    justify-content: center;
    padding-bottom: 5px;
}

.profile-tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.profile-tab-btn i { color: var(--primary); opacity: 0.8; }

.profile-tab-btn:hover {
    background: var(--input-bg);
    transform: translateY(-2px);
}

.profile-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3);
}

.profile-tab-btn.active i { color: white; opacity: 1; }

/* 3. Content Card */
.profile-content-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-height: 400px;
}

.section-title h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* Tables & Lists */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.admin-table th {
    background: var(--input-bg);
    color: var(--text);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 15px;
    border-top: 1px solid var(--border);
    color: var(--text);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text);
    opacity: 0.7;
}
.empty-state p { margin-bottom: 20px; font-size: 1.1rem; }

/* Settings Form Clean Up */
.settings-box-clean {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: 500px;
}

.input-group-vertical input {
    margin-bottom: 15px;
}

.danger-zone {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.danger-zone h4 { color: #c0392b; margin-bottom: 15px; }

/* Responsive adjustments for Profile */
@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .profile-content-card {
        padding: 20px;
    }
    
    .profile-tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        flex: 1 1 auto; /* Allow buttons to grow nicely */
        justify-content: center;
    }
}

/* BUTTONS (General reuse) */
.btn-red { 
    background: transparent; color: var(--primary); 
    border: 2px solid var(--primary); padding: 8px 25px; 
    border-radius: 50px; cursor: pointer; font-weight: 600; 
    white-space: nowrap; transition: 0.3s; font-size: 0.9rem; display: inline-block;
}
.btn-red:hover { 
    background: var(--primary); color: white;
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3); 
}

/* REPLACEMENT FOR .btn-green */
.btn-green {
    background-color: var(--herb-green) !important; /* Solid Green Background */
    color: #ffffff !important;                      /* White Text */
    border: 2px solid var(--herb-green);
    padding: 10px 30px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3); /* Nice shadow */
    margin-top: 15px;
    display: inline-block;
}

.btn-green:hover { 
    background-color: var(--herb-dark) !important;  /* Darker Green on Hover */
    border-color: var(--herb-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

.btn-outline { 
    border: 2px solid var(--primary); color: var(--primary); 
    background: transparent; padding: 8px 20px; 
    border-radius: 50px; cursor: pointer; font-weight: 600; 
    display: inline-block; 
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-hero-outline {
    border: 2px solid white; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px); color: white;
    padding: 16px 45px; border-radius: 50px;
    font-size: 1.15rem; font-weight: 600; cursor: pointer;
    display: inline-block; letter-spacing: 0.5px; margin-top: 20px;
}
.btn-hero-outline:hover {
    background: white; color: var(--primary);
    transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* SECTIONS */
.section-header { text-align: center; margin-bottom: 50px; margin-top: 40px; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 5px; color: var(--text); font-weight: 700; letter-spacing: -0.5px; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 50px; height: 4px; background: var(--primary); margin: 10px auto 0; border-radius: 2px; opacity: 0.8; }
.section-header p { color: var(--text); opacity: 0.7; font-size: 1.1rem; margin-top: 10px; }

/* HERO */
.hero { 
    position: relative; width: 100%; height: 70vh; min-height: 550px; 
    display: flex; align-items: center; justify-content: center; 
    overflow: hidden; background-color: #222; 
    margin: 0 auto 60px; text-align: center; 
}
@media(min-width: 1200px) { 
    .hero { border-radius: 0 0 30px 30px; width: 98%; max-width: 1350px; margin-top: 10px; } 
}
@media (max-width: 768px) { 
    .hero { height: 50vh; min-height: 400px; border-radius: 0; width: 100%; margin-top: 0; } 
    .hero-content h1 { font-size: 2.5rem !important; } 
    .hero-content p { font-size: 1rem !important; }
}

.slideshow-container, .overlay, .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.overlay { 
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1; pointer-events: none;
}
.slide { object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out, transform 8s ease; transform: scale(1.1); }
.slide.active { opacity: 1; transform: scale(1); }

.hero-content { position: relative; z-index: 2; color: white; padding: 20px; max-width: 800px; }
.hero-content h1 { 
    font-size: 4.5rem; font-weight: 700; text-shadow: 0 4px 30px rgba(0,0,0,0.5); 
    margin-bottom: 10px; line-height: 1.1; letter-spacing: -1.5px; 
}
.hero-content p { font-size: 1.2rem; margin-bottom: 10px; font-weight: 300; letter-spacing: 0.5px; opacity: 0.95; }
.hero-visual-btn { margin-top: 20px; display: inline-block; font-size: 1.15rem; }

/* GRIDS & CARDS */
.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-bottom: 50px; }
@media (max-width: 600px) {
    .care-grid.services-2-per-row { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .care-grid.featured-products-2row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.care-card { 
    background: var(--card-bg); padding: 35px 25px; 
    border-radius: 20px; text-align: center; border: 1px solid var(--border); 
    cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.care-card:hover { transform: translateY(-10px); box-shadow: var(--hover-shadow); border-color: transparent; }
.icon-box {
    width: 70px; height: 70px; background: rgba(192, 57, 43, 0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: 0.3s;
}
.care-card:hover .icon-box { background: var(--primary); }
.care-card:hover .care-icon { color: white; }
.care-icon { font-size: 2rem; color: var(--primary); transition: 0.3s; }
.care-card h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card-link-text { font-size: 0.85rem; color: var(--primary); font-weight: 500; opacity: 0; transform: translateY(10px); transition: 0.3s; }
.care-card:hover .card-link-text { opacity: 1; transform: translateY(0); }

/* HERBAL BANNER (FIXED OVERFLOW) */
.herbal-banner { 
    display: flex; align-items: center; justify-content: space-between; 
    background: linear-gradient(135deg, var(--herb-green) 0%, #2ecc71 100%); 
    color: white; padding: 60px; border-radius: 25px; margin-bottom: 60px; 
    box-shadow: 0 20px 50px rgba(39, 174, 96, 0.25); cursor: pointer; position: relative; overflow: hidden;
    width: 100%; max-width: 100%; box-sizing: border-box; /* Prevent overflow */
}
.herbal-banner::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}
.herbal-image-wrapper { position: relative; z-index: 2; flex-shrink: 0; }
.herbal-logo-banners { width: 160px; height: 160px; border-radius: 50%; border: 6px solid rgba(255,255,255,0.2); object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.5s; }
.herbal-banner:hover .herbal-logo-banners { transform: scale(1.05) rotate(5deg); }
.herbal-content { z-index: 2; max-width: 600px; margin-left: 40px; }
.herbal-content h2 { font-size: 2.8rem; margin-bottom: 10px; font-weight: 700; line-height: 1.2; }
.herbal-content p { font-size: 1.2rem; opacity: 0.95; margin-bottom: 20px; font-weight: 300; }
.btn-herb { 
    background: white; color: var(--herb-green); 
    padding: 14px 40px; border-radius: 50px; font-weight: 700; 
    border: none; cursor: pointer; font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-herb:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* PRODUCT GRID HOME SPECIFIC */
.product-grid-home { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.prod-card { 
    background: var(--card-bg); padding: 20px; border-radius: 15px; 
    text-align: center; border: 1px solid var(--border); 
    transition: 0.3s; position: relative; box-shadow: var(--shadow); 
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--hover-shadow); border-color: var(--herb-green); }
.prod-img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 15px; padding: 10px; }
.prod-card h4 { font-size: 1.1rem; color: var(--text); margin-bottom: 5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.2em; }
.prod-card .price-val { font-size: 1.2rem; font-weight: 700; color: var(--herb-green); margin-bottom: 15px; }

.prod-card .book-btn {
    width: 100%; background: transparent !important;
    border: 2px solid var(--herb-green) !important; color: var(--herb-green) !important;
    padding: 10px !important; border-radius: 50px !important;
    font-weight: 600 !important; text-transform: uppercase;
    font-size: 0.8rem !important; letter-spacing: 0.5px;
    margin-top: auto; transition: 0.3s !important;
}
.prod-card .book-btn:hover {
    background: var(--herb-green) !important; color: white !important;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* PRICING & SERVICES PAGE SPECIFIC */
.pricing-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.price-card { 
    background: var(--card-bg); padding: 30px; border-radius: 20px; 
    box-shadow: var(--shadow); border: 1px solid var(--border); 
    position:relative; overflow: hidden; 
}
.price-card::before { content:''; position:absolute; top:0; left:0; width:5px; height:100%; background: var(--primary); }
.price-name { font-weight: 700; font-size: 1.3rem; display: block; margin-bottom: 10px; color: var(--text); }
.price-val { font-size: 1.4rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 15px; }
.book-btn { 
    width: 100%; background: transparent; color: var(--primary); 
    border: 2px solid var(--primary); padding: 10px 0; 
    border-radius: 50px; cursor: pointer; font-weight: 600; transition: 0.3s; 
}
.book-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* FORMS & INPUTS */
.form-box { 
    background: var(--card-bg); padding: 40px; border-radius: 25px; 
    max-width: 600px; margin: 0 auto; 
    box-shadow: var(--shadow); border: 1px solid var(--border); 
}
input, select, textarea { 
    width: 100%; padding: 14px; margin-bottom: 15px; 
    border: 1px solid var(--border); background: var(--input-bg); 
    color: var(--text); border-radius: 12px; font-family: inherit; 
    outline: none; font-size: 1rem; transition: 0.3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--primary); color: white; padding: 18px; text-align:left; }
.admin-table td { padding: 15px; border-bottom: 1px solid var(--border); color: var(--text); }

/* REVIEWS */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.review-card { background: var(--card-bg); padding: 25px; border-radius: 20px; border: 1px solid var(--border); }
.stars { color: #f1c40f; letter-spacing: 2px; }
.review-image-preview { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-top: 15px; border: 1px solid var(--border); }
.review-summary-box { text-align: center; margin-bottom: 40px; }
.big-rating { font-size: 3.5rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.star-row { color: #f1c40f; font-size: 1.5rem; margin: 10px 0; letter-spacing: 3px; }

/* --- CART & MODALS --- */
#loadingOverlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:9999; align-items:center; justify-content:center; flex-direction:column; color:white; }
.spinner { width: 50px; height: 50px; border: 5px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: var(--primary); animation: spin 1s ease-in-out infinite; margin-bottom:15px; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal { display: none; position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 2000; justify-content: center; align-items: center; padding: 15px; pointer-events: none; }
.modal[style*="display: flex"] { opacity: 1; pointer-events: auto; }

.modal-content { 
    background: var(--card-bg); color: var(--text); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 30px; border-radius: 25px; text-align: center; position: relative; border: 1px solid var(--border); box-shadow: 0 25px 50px rgba(0,0,0,0.3); animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.modal-close-icon { position: absolute; top: 20px; right: 20px; width: 35px; height: 35px; border-radius: 50%; background: var(--input-bg); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--border); transition: 0.3s; }
.modal-close-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }
.modal-success .modal-content { border-top: 6px solid var(--herb-green); }
.modal-error .modal-content { border-top: 6px solid var(--primary); }
@keyframes modalPop { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

#cartItemsList { text-align: left; max-height: 250px; overflow-y: auto; margin-bottom: 20px; border-bottom: 2px dashed var(--border); }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.cart-summary { background: var(--input-bg); padding: 20px; border-radius: 15px; margin-bottom: 20px; }
.cart-summary div { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; color: var(--text); }
.cart-summary .total-row { font-size: 1.4rem; font-weight: 800; color: var(--herb-green); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }

#cartCheckoutForm { margin-top: 20px; text-align: left; }
#cartCheckoutForm button {
    width: 100%; background-color: var(--herb-green) !important; color: white !important; border: none; padding: 16px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 15px; display: block; box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}
#cartCheckoutForm button:hover { background-color: var(--herb-dark) !important; transform: translateY(-2px); }

.qty-controls { display: flex; align-items: center; gap: 10px; background: var(--input-bg); border-radius: 8px; padding: 4px 10px; border: 1px solid var(--border); }
.qty-btn { cursor: pointer; font-weight: bold; color: var(--text); user-select: none; font-size: 1.1rem; }

/* FLOATING CART */
#floatingCartBtn { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: var(--herb-green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4); cursor: pointer; z-index: 1100; transition: 0.3s; transform: scale(0); }
#floatingCartBtn.visible { transform: scale(1); }
#floatingCartBtn:hover { transform: scale(1.1); box-shadow: 0 15px 40px rgba(39, 174, 96, 0.6); }
#cartCount { position: absolute; top: -2px; right: -2px; background: #e74c3c; color: white; font-size: 0.8rem; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; font-weight: 700; }

/* FOOTER */
footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 80px 0 30px; font-size: 0.95rem; margin-top: auto; border-top: 3px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 60px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-logo h3 { font-size: 1.8rem; color: white; margin-bottom: 10px; }
.footer-socials { display: flex; gap: 15px; margin-top: 25px; }
.social-btn { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); }
.social-btn:hover { background: var(--primary); transform: translateY(-3px); border-color: var(--primary); }
.map-container { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); height: 220px; border: 1px solid rgba(255,255,255,0.1); }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; opacity: 0.6; }

/* ADMIN DASHBOARD STYLES */
.admin-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.tab-btn { background: transparent; border: none; padding: 10px 20px; cursor: pointer; font-weight: 600; color: var(--text); border-radius: 5px; transition: 0.3s; }
.tab-btn:hover { background: var(--input-bg); }
.tab-btn.active { background: var(--primary); color: white; }
.kpi-card { background: var(--card-bg); padding: 25px; border-radius: 15px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kpi-card i { font-size: 2.5rem; margin-bottom: 10px; }
.kpi-card h3 { font-size: 2rem; margin: 5px 0; color: var(--text); }
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; background: var(--input-bg); padding: 15px; border-radius: 10px; }
.filter-bar input, .filter-bar select { margin-bottom: 0; width: auto; min-width: 150px; }
.status-badge { padding: 4px 10px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.status-pending { background: #ffeeba; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-completed { background: #cce5ff; color: #004085; }

/* FEATURE: our story & achievements - Specific Styles for Home Poster */
.story-poster-section { 
    background: var(--card-bg); border-radius: 20px; box-shadow: var(--shadow); 
    border: 1px solid var(--border); padding: 40px; margin-bottom: 60px; 
    display: flex; gap: 40px; align-items: center; position: relative;
    width: 100%; max-width: 100%; box-sizing: border-box; overflow: visible;
}
.story-poster-text { flex: 1; min-width: 0; }
.story-poster-text h3 { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.story-poster-text p { font-size: 1.05rem; line-height: 1.7; opacity: 0.9; margin-bottom: 25px; color: var(--text); }
.story-visuals { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.story-images { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.story-img-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; }
.story-owner-img { width: 150px; height: 200px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); border: 4px solid white; transition: 0.3s; }
.story-owner-img:hover { transform: scale(1.03); }
.story-badge { position: absolute; top: -10px; right: 10px; background: var(--primary); color: white; padding: 6px 15px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 2; border: 2px solid white; white-space: nowrap; }
.story-caption { margin-top: 10px; font-weight: 600; color: var(--text); font-size: 0.9rem; text-align: center; background: rgba(255,255,255,0.8); padding: 2px 10px; border-radius: 20px; backdrop-filter: blur(5px); }

/* FIX FOR DARK MODE CAPTIONS */
body.dark-mode .story-caption {
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media(max-width: 768px) { 
    .story-poster-section { flex-direction: column; text-align: center; } 
    .story-visuals { width: 100%; justify-content: center; margin-top: 20px; } 
}

/* FEATURE: owner facebook links */
.owner-facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    background: rgba(192, 57, 43, 0.05);
    padding: 3px 10px;
    border-radius: 15px;
}
.owner-facebook-link:hover {
    color: var(--primary-dark);
    background: rgba(192, 57, 43, 0.1);
    transform: translateY(-2px);
}

/* FEATURE: Multi-service Booking */
.service-tag-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.service-tag { background: var(--input-bg); border: 1px solid var(--primary); color: var(--primary); padding: 5px 12px; border-radius: 50px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.service-tag i { cursor: pointer; color: var(--text); font-size: 0.8rem; transition:0.3s; }
.service-tag i:hover { color: red; }

/* GLOBAL MOBILE FIXES (Applied last to override) */
@media(max-width: 900px) { 
    .nav-container { padding: 0 15px; } 
    .text-logo { height: 50px; } 
    
    .herbal-banner { 
        padding: 40px 20px; 
        text-align: center; 
        flex-direction: column; 
        justify-content: center; 
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .herbal-content { margin-left: 0; margin-top: 20px; }
    .herbal-image-wrapper { margin-bottom: 10px; }
    
    /* FIX: Story Section Mobile Layout */
    .story-poster-section { 
        flex-direction: column; 
        text-align: center; 
        padding: 30px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible; /* Ensure badge isn't clipped */
    } 
    
    .story-visuals { 
        width: 100%; 
        justify-content: center; 
        margin-top: 35px; /* Add space for badge top */
        margin-bottom: 10px; 
        position: relative;
    } 
    
    /* FORCE SIDE BY SIDE IMAGES */
    .story-images { 
        display: flex; 
        justify-content: center; 
        align-items: flex-start;
        gap: 10px; 
        flex-wrap: nowrap !important; /* Ensure no wrap */
    }
    
    .story-owner-img {
        width: 100%; 
        max-width: 140px; 
        height: auto; 
        aspect-ratio: 3/4;
    }
    
    /* BADGE FIXED: TOP CENTER (FIXED CLIPPING/POSITION) */
    .story-badge { 
        position: absolute;
        top: -15px; 
        left: 50%; 
        transform: translateX(-50%); 
        right: auto;
        bottom: auto;
        white-space: nowrap;
        z-index: 10;
        font-size: 0.9rem;
        padding: 6px 15px;
        /* Ensure contrast */
        background: var(--primary);
        color: white;
    }
    
    .section-header h2 { font-size: 2.5rem; }
    .footer-grid { gap: 40px; }
    .header-logo-enhanced { height: 65px !important; }
}

@media (max-width: 600px) {
    .care-grid.services-2-per-row { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .care-grid.featured-products-2row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
/* --- MOBILE FIXES FOR NOTIFICATIONS & HEADER --- */
@media (max-width: 600px) {
    /* 1. Fix Notification Dropdown Overflow */
    .notif-dropdown {
        position: fixed !important; /* Detach from the bell */
        top: 75px !important;       /* Position below header */
        left: 5% !important;        /* Center horizontally */
        right: 5% !important;
        width: 90% !important;      /* Take up 90% of screen width */
        max-width: 400px !important;
        box-shadow: 0 10px 50px rgba(0,0,0,0.3) !important;
        transform: none !important; /* Remove any previous transforms */
    }

    /* 2. Fix Profile Header Overflow */
    .profile-header-clean .nav-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Reduce gap between elements in the right group on mobile */
    .nav-right-group {
        gap: 10px !important;
    }

    /* Make the Logout button smaller on mobile to save space */
    .btn-logout-profile {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    /* Adjust Hamburger margin */
    .hamburger {
        margin-left: 8px !important;
    }
}
/* --- MOBILE TABLE FIX: Polished Clean List --- */
@media (max-width: 768px) {
    /* 1. Reset Table Structure */
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { 
        display: block; 
        width: 100%; 
    }
    .admin-table thead { display: none; } /* Hide Header Row */

    /* 2. Card Style for Each Order */
    .admin-table tr { 
        background: var(--card-bg);
        margin-bottom: 20px;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--shadow); /* Uses your theme shadow */
        padding: 20px;
    }

    /* 3. Row Styling (Flexbox for perfect alignment) */
    .admin-table td { 
        display: flex;
        justify-content: space-between; /* Label left, Value right */
        align-items: flex-start;        /* Top align for long text */
        text-align: right;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
        color: var(--text);
    }

    .admin-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .admin-table td:first-child {
        padding-top: 0;
    }

    /* 4. Labels (Left Side) */
    .admin-table td::before { 
        font-weight: 600;
        color: var(--primary); /* Theme Red color for labels */
        margin-right: 15px;
        min-width: 80px;       /* Ensures labels align neatly */
        text-align: left;
    }

    /* --- ORDER LABELS --- */
    #myOrdersList td:nth-of-type(1)::before { content: "Date"; }
    #myOrdersList td:nth-of-type(2)::before { content: "Items"; }
    #myOrdersList td:nth-of-type(3)::before { content: "Total"; }
    #myOrdersList td:nth-of-type(4)::before { content: "Status"; }
    #myOrdersList td:nth-of-type(5)::before { content: "Tracking"; }

    /* Styling Specific Data */
    #myOrdersList td:nth-of-type(3) { /* Total Price */
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--herb-green); /* Green color for money */
    }
    
    #myOrdersList td:nth-of-type(2) { /* Items Description */
        font-size: 0.9rem;
        opacity: 0.9;
        max-width: 65%; /* Prevent text from hitting label */
    }

    /* --- APPOINTMENT LABELS --- */
    #myAppointmentsList td:nth-of-type(1)::before { content: "Date"; }
    #myAppointmentsList td:nth-of-type(2)::before { content: "Service"; }
    #myAppointmentsList td:nth-of-type(3)::before { content: "Status"; }
}

/* --- FIX: Cart Promo Input Alignment --- */
.promo-input-group {
    display: flex;
    align-items: stretch; /* Ensures both are same height */
    gap: 10px;
    width: 100%; /* Occupy full width of the form */
    margin-bottom: 10px;
}

.promo-input-group input {
    flex-grow: 1 !important;  /* Force input to take ALL available space */
    width: auto !important;   /* Reset fixed widths */
    margin-bottom: 0 !important;
    min-width: 0; /* Prevents input from overflowing flex container */
}

.promo-input-group button {
    flex-grow: 0 !important;    /* Prevent button from growing */
    flex-shrink: 0 !important;  /* Prevent button from shrinking */
    width: auto !important;     /* Force button to fit text only */
    margin-top: 0 !important;   
    padding: 0 20px !important;
    white-space: nowrap;        /* Keep "Apply" on one line */
}

/* --- ADMIN SETTINGS SIDE-BY-SIDE LAYOUT --- */

/* The main flex container */
.admin-visual-management {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap; /* Stacks on mobile automatically */
    margin-top: 30px;
}

/* The cards for each section */
.visual-card {
    flex: 1;
    min-width: 320px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Fixes the upload bar alignment */
.upload-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.upload-row input[type="file"] {
    margin-bottom: 0 !important; /* Removes existing margin */
    padding: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Portfolio grid specifically for admin view */
.mini-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 10px !important;
}

.mini-admin-grid img {
    height: 100px !important;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Layout for Banner Slideshow images with red X buttons */
.slide-list-admin {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .admin-visual-management {
        flex-direction: column;
    }
    .visual-card {
        width: 100%;
    }
}

/* Ensure the Portfolio Grid container allows buttons to overlap */
.mini-admin-grid div {
    position: relative;
    overflow: visible; /* Allows the 'x' to sit outside the image border slightly */
}

/* Optional: Add a hover effect to the delete buttons */
.mini-admin-grid button:hover, 
.slide-list-admin button:hover {
    background-color: darkred !important;
    transform: scale(1.1);
    transition: 0.2s;
}

/* --- MOBILE COMPACT SERVICE LIST --- */
@media (max-width: 768px) {
    /* 1. Tighten the Grid Gap */
    .pricing-list {
        display: grid;
        grid-template-columns: 1fr; /* Keep 1 column for readability */
        gap: 12px; /* Reduce gap between cards */
        padding-bottom: 20px;
    }

    /* 2. Make Cards Compact (Horizontal Layout) */
    .price-card {
        padding: 12px 15px; /* Drastically reduce padding */
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr auto; /* Name/Details on Left, Price/Btn on Right */
        gap: 10px;
        align-items: center;
        text-align: left; /* Align text left instead of center */
    }

    /* 3. Style the Name */
    .price-card .price-name {
        font-size: 1rem;
        margin-bottom: 2px;
        grid-column: 1 / 2; /* Left column */
    }

    /* 4. Style the Details (Limit to 1 line or hide if needed) */
    .price-card p {
        font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.2;
        opacity: 0.8;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        grid-column: 1 / 2; /* Left column, below name */
    }

    /* 5. Style the Price */
    .price-card .price-val {
        font-size: 1rem;
        margin-bottom: 5px;
        text-align: right;
        grid-column: 2 / 3; /* Right column */
        grid-row: 1 / 2;    /* Top right */
    }

    /* 6. Compact Button */
    .price-card .book-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
        width: auto;
        grid-column: 2 / 3; /* Right column */
        grid-row: 2 / 3;    /* Bottom right */
    }

    /* 7. Hide the Admin Edit/Delete links on mobile to save space (Optional) */
    .price-card div[style*="text-align:right"] {
        display: none !important;
    }
}

/* --- LIGHTBOX (UPDATED) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow: auto; /* Allows scrolling when zoomed */
    text-align: center;
    /* Flexbox is used to center, but we handle zoom separately */
    display: none; /* Hidden by default */
}

/* We use a wrapper to handle flex centering + scrolling correctly */
.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 90vw;  /* Fit to screen width */
    max-height: 90vh; /* Fit to screen height */
    object-fit: contain;
    cursor: zoom-in;  /* Icon shows you can zoom */
    transition: transform 0.2s ease; /* Smooth transition */
    margin: auto;
}

/* ZOOMED STATE */
.lightbox-content.zoomed {
    max-width: none;  /* Remove limits */
    max-height: none; /* Remove limits */
    width: auto;      /* Use natural image size */
    height: auto;     /* Use natural image size */
    cursor: zoom-out; /* Icon shows you can zoom out */
    transform: scale(1.5); /* Optional: Force extra magnification */
    margin-top: 50px; /* Spacing so it doesn't hit top immediately */
}

/* ON MOBILE: Adjust zoom scale */
@media (max-width: 768px) {
    .lightbox-content.zoomed {
        transform: scale(1); /* Reset scale, just rely on natural size */
        width: 150%; /* Force it to be wider than screen */
    }
}

.lightbox-close {
    position: fixed; /* Keep close button fixed on screen even if scrolling */
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.5); /* bg for visibility on white images */
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
}

/* --- SECURE LOGIN STYLES --- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* Make space for the icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%; /* Center vertically */
    transform: translateY(-80%); /* Adjust based on your input height */
    cursor: pointer;
    color: #888;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary);
}