:root {
    /* Color Palette - Enhanced & More Colorful */
    --primary-color: #2D5A27;
    --primary-light: #4A7C44;
    --primary-gradient: linear-gradient(135deg, #2D5A27 0%, #4A7C44 100%);
    --secondary-color: #76A36D;
    --secondary-light: #A8C69F;
    --accent-color: #D4A373;
    --cta-color: #FF9F1C;
    --cta-gradient: linear-gradient(135deg, #FF9F1C 0%, #FFBF69 100%);
    --lavender: #9381FF;
    --mint: #B8F2E6;
    
    --bg-color: #FDFEFB;
    --card-bg: #FFFFFF;
    --text-color: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --error-color: #EF4444;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 65px;
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    --shadow-hover: 0 30px 60px -12px rgba(0,0,0,0.15);

    /* Responsive Font Sizes */
    --fs-h1: 64px;
    --fs-h2: 36px;
    --fs-h3: 24px;
    --fs-body: 16px;
}

@media (max-width: 992px) {
    :root {
        --fs-h1: 48px;
        --fs-h2: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-h1: 36px;
        --fs-h2: 28px;
        --fs-h3: 20px;
        --fs-body: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-h1: 32px;
        --fs-h2: 24px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--fs-body);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-size: var(--fs-h1);
}

h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-size: var(--fs-h2);
}

h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-size: var(--fs-h3);
}

h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px; /* Pill shape for modern look */
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.3);
}

.btn-cta {
    background: var(--cta-gradient);
    color: white;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    background-color: transparent;
    color: var(--text-color);
}

.btn-text:hover {
    color: var(--primary-color);
}

/* Header */
.main-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 3000;
    border-bottom: 1px solid rgba(45, 90, 39, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

.logo:hover .logo-icon {
    animation: logo-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes logo-bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.25) rotate(-15deg); }
    60% { transform: scale(0.9) rotate(10deg); }
    80% { transform: scale(1.05) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5px;
    color: var(--primary-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    max-width: calc(100vw - 320px);
}

.main-nav ul {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
}
.main-nav ul li {
    flex-shrink: 0;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    letter-spacing: 0.1px;
    font-size: 13.5px;
}

.main-nav a:hover {
    color: var(--primary-color);
    background: rgba(45, 90, 39, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.05);
}

.main-nav ul li a.active {
    color: white !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3d1a 100%) !important;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.22) !important;
    transform: translateY(-1px);
}

/* ── NAV DROPDOWNS ───────────────────────────────────── */
.nav-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.nav-item-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(45, 90, 39, 0.1);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* Active class for JS toggle (all devices) */
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937; /* Explicit dark color for contrast */
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: left;
}

.nav-dropdown-menu a i, 
.nav-dropdown-menu a svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.nav-dropdown-menu a:hover {
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 8px 0;
}

.dropdown-all {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}


.nav-dashboard { color: var(--cta-color) !important; font-weight: 700 !important; }
.nav-danger    { color: #c2410c !important; font-weight: 700 !important; }

/* Hide medium-priority nav icons on desktop */
@media (min-width: 993px) {
    .nav-icon-md { display: none !important; }
}

/* ── NAV ACTIONS (Cart · Bell · Profile) ─────────────── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Icon buttons (cart & bell) */
.nav-action-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(45, 90, 39, 0.06);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
}
.nav-action-icon:hover {
    background: rgba(45, 90, 39, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.12);
}

/* Numeric badges on Cart & Bell */
.action-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50px;
    background: var(--cta-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(212, 163, 115, 0.45);
    animation: badgePulse 2s infinite;
}
/* Override for notif badge color */
.notif-badge { background: #e53e3e; box-shadow: 0 2px 8px rgba(229, 62, 62, 0.4); }

/* ── PROFILE AVATAR ───────────────────────────────────── */
.nav-profile-wrap {
    position: relative;
}
.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #4a8c40);
    color: white;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(45, 90, 39, 0.2);
}
.profile-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
}

/* Profile dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 0 0 1px rgba(255,255,255,0.7) inset;
    border: 1px solid rgba(45,90,39,0.07);
    padding: 12px;
    display: none;
    z-index: 4500;
    animation: dropdownBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.profile-dropdown.open { display: block; }

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
}
.profile-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #4a8c40);
    color: white;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-role-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-role-badge.patient      { background: #d1fae5; color: #065f46; }
.profile-role-badge.admin        { background: #fee2e2; color: #991b1b; }
.profile-role-badge.practitioner { background: #dbeafe; color: #1e40af; }

.profile-link {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}
.profile-link:hover {
    background: rgba(45,90,39,0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}
.logout-link { color: #e53e3e !important; }
.logout-link:hover { background: rgba(229,62,62,0.08) !important; color: #c53030 !important; }

/* header-actions legacy hide */
.header-actions { display: none; }

/* Hide mobile-only sidebar elements on desktop */
.mobile-nav-header { display: none; }
.mobile-nav-close  { display: none; }

/* ── Notification System - Ultra Premium v2 */
.nav-notification-container {
    position: relative;
}

/* Bell Trigger Animation - Rings on hover and when new */
.nav-notification-container a:hover .nav-icon {
    display: inline-block;
    animation: bellShake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

#notifBadge:not([style*="display: none"]) ~ .nav-icon {
    animation: bellShake 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    right: -10px;
    width: 350px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(45, 90, 39, 0.08);
    display: none;
    z-index: 4000;
    overflow: visible; /* For arrow */
    animation: dropdownBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Stylish arrow pointing to bell */
.notifications-dropdown::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 25px;
    width: 16px;
    height: 16px;
    background: rgba(235, 245, 235, 0.98);
    transform: rotate(45deg);
    border-top: 1px solid rgba(45, 90, 39, 0.08);
    border-left: 1px solid rgba(45, 90, 39, 0.08);
}

.notifications-dropdown.active {
    display: block;
}

.notif-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(235, 245, 235, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h4 { 
    font-size: 16px; 
    margin: 0; 
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-header .btn-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--cta-color);
    background: rgba(212, 163, 115, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
}

.notif-header .btn-text:hover {
    background: var(--cta-color);
    color: white;
    transform: translateY(-2px);
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0 0 24px 24px;
}

/* Custom scrollbar */
.notif-list::-webkit-scrollbar { width: 5px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

.notif-item {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    opacity: 0; /* Animated in via active class */
}

.notifications-dropdown.active .notif-item {
    animation: slideInRight 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Stagger item entrance */
.notif-item:nth-child(1) { animation-delay: 0.1s; }
.notif-item:nth-child(2) { animation-delay: 0.15s; }
.notif-item:nth-child(3) { animation-delay: 0.2s; }
.notif-item:nth-child(4) { animation-delay: 0.25s; }
.notif-item:nth-child(5) { animation-delay: 0.3s; }

.notif-item:hover { 
    background: rgba(255, 255, 255, 1); 
    transform: scale(1.02) translateX(8px);
}

.notif-item.unread { 
    background: linear-gradient(90deg, rgba(235, 245, 235, 0.5) 0%, transparent 100%);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--cta-color);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 15px var(--cta-color);
}

.notif-msg { 
    font-size: 14px; 
    color: var(--text-color); 
    margin-bottom: 6px;
    font-weight: 500;
}

.notif-time { 
    font-size: 11px; 
    color: var(--secondary-color);
    opacity: 0.7;
}

.notif-empty {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
}

/* Animations */
@keyframes dropdownBounce {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.reveal {
    animation: revealIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

@keyframes revealIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 993px) {
    .nav-icon-desktop-hide {
        display: none;
    }
}

.main-nav ul li a .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.main-nav ul li a .nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.25px;
}

.main-nav ul li a:hover .nav-icon {
    transform: translateY(-2px) scale(1.1);
}

.nav-icon-md svg {
    width: 20px;
    height: 20px;
}

/* Refined Badge Styling */
#cartCount, .notif-badge {
    position: absolute;
    top: -5px;
    right: -2px;
    background: var(--cta-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);
    border: 2px solid white;
    animation: badgePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* Specific ringing effect for the bell when unread notifications exist */
.nav-notification-container.has-unread a .nav-icon {
    display: inline-block;
    animation: bellRinging 2.5s infinite ease-in-out;
}

@keyframes bellRinging {
    0%, 100% { transform: rotate(0); }
    5%, 15%, 25% { transform: rotate(15deg); }
    10%, 20%, 30% { transform: rotate(-15deg); }
    35% { transform: rotate(0); }
}

@media (max-width: 1200px) {
    .main-nav ul li a.active {
        background: var(--mint) !important;
        color: var(--primary-color) !important;
        padding-left: 25px !important;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f7ef 0%, #ffffff 100%);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--secondary-light), var(--mint)) border-box;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

/* Footer */
.main-footer {
    background-color: #1a2e18;
    color: white;
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col .logo-text {
    color: white;
}

.footer-col h3 {
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
        margin: 30px auto;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(45, 90, 39, 0.07);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
    z-index: 2001;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(45, 90, 39, 0.14);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.25s ease,
                width     0.25s ease;
    transform-origin: center;
}

/* X animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-content p {
        margin: 0 auto 40px;
    }
    .hero-cta {
        justify-content: center;
    }
    
    /* ═══════════════════════════════════════════════════
       MOBILE SIDEBAR — Light theme matching site palette
       ═══════════════════════════════════════════════════ */
    .main-nav {
        position: fixed;
        top: 0;
        right: -105%;
        width: 72%;
        max-width: 270px;
        height: 100vh;
        background: var(--bg-color, #FDFEFB);
        z-index: 2000;
        padding: 0;
        box-shadow: -8px 0 40px rgba(0,0,0,0.12),
                    -1px 0 0 var(--border-color);
        transition: right 0.45s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        pointer-events: none;
    }

    .main-nav::-webkit-scrollbar { width: 3px; }
    .main-nav::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 10px;
    }

    .main-nav.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }

    /* Staggered entrance animation */
    .main-nav.active ul li {
        animation: sidebarItemIn 0.45s cubic-bezier(0.23, 1, 0.32, 1) both;
        opacity: 0;
    }
    .main-nav.active ul li:nth-child(1) { animation-delay: 0.06s; }
    .main-nav.active ul li:nth-child(2) { animation-delay: 0.11s; }
    .main-nav.active ul li:nth-child(3) { animation-delay: 0.16s; }
    .main-nav.active ul li:nth-child(4) { animation-delay: 0.21s; }
    .main-nav.active ul li:nth-child(5) { animation-delay: 0.26s; }
    .main-nav.active ul li:nth-child(6) { animation-delay: 0.31s; }
    .main-nav.active ul li:nth-child(7) { animation-delay: 0.36s; }
    .main-nav.active ul li:nth-child(8) { animation-delay: 0.41s; }
    .main-nav.active ul li:nth-child(9) { animation-delay: 0.46s; }

    @keyframes sidebarItemIn {
        from { opacity: 0; transform: translateX(22px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Sidebar brand header */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px 16px;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
        background: linear-gradient(135deg,
            rgba(45, 90, 39, 0.06) 0%,
            rgba(45, 90, 39, 0.02) 100%);
    }

    .mobile-nav-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--primary-color) !important;
        font-family: var(--font-heading);
        font-size: 17px;
        font-weight: 700;
        text-decoration: none;
        background: none !important;
        padding: 0 !important;
        border: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .mobile-nav-logo .logo-icon { font-size: 22px; }
    .mobile-nav-logo .logo-text { color: var(--primary-color) !important; }

    .mobile-nav-close {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: rgba(45, 90, 39, 0.07);
        border: 1px solid rgba(45, 90, 39, 0.12);
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease;
        flex-shrink: 0;
    }
    .mobile-nav-close:hover { background: rgba(45, 90, 39, 0.15); }
    .mobile-nav-close svg { width: 16px; height: 16px; stroke-width: 2.5px; }

    /* Nav list */
    .main-nav ul {
        flex-direction: column;
        gap: 2px;
        padding: 14px 10px 36px;
        flex: 1;
    }

    .main-nav ul li { width: 100%; }

    /* Nav links */
    .main-nav a {
        display: flex !important;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 600;
        padding: 11px 13px !important;
        border-radius: 11px;
        color: var(--text-color) !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        transition: background 0.2s ease,
                    color 0.2s ease,
                    padding-left 0.2s ease !important;
    }

    .main-nav a:hover {
        background: rgba(45, 90, 39, 0.07) !important;
        color: var(--primary-color) !important;
        padding-left: 18px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Active nav link */
    .main-nav ul li a.active {
        background: linear-gradient(90deg,
            rgba(45, 90, 39, 0.12),
            rgba(45, 90, 39, 0.04)) !important;
        color: var(--primary-color) !important;
        font-weight: 700 !important;
        border-left: 3px solid var(--primary-color) !important;
        padding-left: 16px !important;
        box-shadow: none !important;
    }

    /* Nav icons */
    .main-nav ul li a .nav-icon {
        opacity: 0.55;
        flex-shrink: 0;
        color: var(--primary-color);
    }
    .main-nav ul li a:hover .nav-icon,
    .main-nav ul li a.active .nav-icon { opacity: 1; }
    .main-nav ul li a .nav-icon svg { width: 17px; height: 17px; }

    /* Dropdown trigger chevron */
    .main-nav .dropdown-trigger {
        position: relative;
        padding-right: 38px !important;
    }
    .main-nav .dropdown-trigger::after {
        content: '';
        position: absolute;
        right: 14px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                    border-color 0.2s ease;
    }
    .main-nav .nav-item-dropdown.active .dropdown-trigger::after {
        transform: translateY(-30%) rotate(-135deg);
        border-color: var(--primary-color);
    }

    /* Inline accordion dropdown */
    .main-nav .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-width: unset !important;
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 11px !important;
        margin-top: 3px;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                    padding 0.3s ease,
                    border-color 0.3s ease !important;
        border-color: transparent !important;
    }

    .main-nav .nav-dropdown-menu.active {
        max-height: 600px !important;
        padding: 6px !important;
        border-color: var(--border-color) !important;
    }

    /* Dropdown sub-links */
    .main-nav .nav-dropdown-menu a {
        color: var(--text-color) !important;
        font-size: 13px !important;
        padding: 9px 12px !important;
        border-radius: 9px !important;
        gap: 9px !important;
    }
    .main-nav .nav-dropdown-menu a:hover {
        background: rgba(45, 90, 39, 0.07) !important;
        color: var(--primary-color) !important;
        padding-left: 17px !important;
        transform: none !important;
    }
    .main-nav .nav-dropdown-menu a svg,
    .main-nav .nav-dropdown-menu a i {
        opacity: 0.5;
        color: var(--primary-color);
    }
    .main-nav .nav-dropdown-menu a:hover svg,
    .main-nav .nav-dropdown-menu a:hover i { opacity: 1; }

    /* Overlay — subtle blur */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1999;
        display: none;
    }
    .nav-overlay.active { display: block; }

    .mobile-only-actions { display: block !important; }
    .header-actions { display: none !important; }
    .mobile-menu-toggle { display: flex; }
}

/* Base Responsive Utilities */
.hidden-mobile {
    display: inherit;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Layout Utilities */
.grid-stack {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.responsive-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Admin Responsive Styles */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-form {
        grid-template-columns: 1fr !important;
    }
    
    .admin-container {
        padding: 20px 10px !important;
    }

    .service-card {
        padding: 20px !important;
    }

    h1 {
        font-size: 28px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 30px;
        margin-top: -40px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--cta-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(255, 159, 28, 0.5);
    z-index: 2000;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.floating-cart:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
}

.floating-cart .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}
/* ── TOAST NOTIFICATIONS ─────────────────────────────── */
#toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.toast.info::before { background: #3b82f6; }
.toast.success::before { background: #10b981; }
.toast.warning::before { background: #f59e0b; }
.toast.error::before { background: #ef4444; }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-message {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.toast-close {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
