/* --- GLOBAL RESET & FIXES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* --- PREMIUM DASHBOARD VARIABLES --- */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --sidebar-width: 260px;

    --md-sys-color-primary: #6366f1;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-secondary: #8b5cf6;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-surface: #ffffff;
    --md-sys-color-surface-container: #ffffff;
    --md-sys-color-surface-container-high: #f1f5f9;
    --md-sys-color-on-surface: #0f172a;
    --md-sys-color-outline: #e2e8f0;
    --md-sys-color-background: #f8fafc;
    --md-sys-color-error: #ef4444;
    --md-sys-color-on-error: #ffffff;
    --md-sys-color-secondary-container: #e0e7ff;
    --md-sys-color-on-secondary-container: #4f46e5;

    --radius-extra: 24px;
    --radius-large: 20px;
    --radius-medium: 12px;
    --radius-pill: 9999px;
}

/* --- DARK MODE VARIABLES --- */
body.dark-mode {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);

    --md-sys-color-primary: #818cf8;
    --md-sys-color-secondary: #a78bfa;
    --md-sys-color-surface: #1e293b;
    --md-sys-color-surface-container: #1e293b;
    --md-sys-color-surface-container-high: #334155;
    --md-sys-color-on-surface: #f8fafc;
    --md-sys-color-outline: #334155;
    --md-sys-color-background: #0f172a;
    --md-sys-color-error: #f87171;
    --md-sys-color-secondary-container: #3730a3;
    --md-sys-color-on-secondary-container: #e0e7ff;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: var(--md-sys-color-surface-container-high) !important;
    color: var(--text-main) !important;
    border-color: var(--md-sys-color-outline) !important;
}

/* --- GLOBAL STYLES --- */
body {
    background: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
}

.lucide {
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* --- DASHBOARD LAYOUT --- */
#main-app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--md-sys-color-outline);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-logo {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 1px solid var(--md-sys-color-outline);
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    margin-right: 12px;
}

.nav-container {
    padding: 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 12px 20px;
    border-radius: var(--radius-medium);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--md-sys-color-surface-container-high);
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: calc(100% - var(--sidebar-width));
    transition: all 0.3s ease;
}

/* Topbar */
.topbar {
    height: auto !important;
    min-height: 80px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top) + 15px) 30px 15px 30px !important;
    border-bottom: 1px solid var(--md-sys-color-outline);
    z-index: 999;
}
.search-dummy {
    background: var(--md-sys-color-surface-container-high);
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    width: 300px;
    border: 1px solid transparent;
    transition: 0.3s ease;
}
.search-dummy:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.search-dummy input {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    color: var(--text-main);
}
.search-dummy input:focus { box-shadow: none; outline: none; border:none;}

.topbar-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-color);
}
.topbar-mobile-logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-actions .icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--md-sys-color-surface-container-high);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text-main);
    transition: all 0.2s;
    border: 1px solid var(--md-sys-color-outline);
}
.topbar-actions .icon-btn:hover {
    background: var(--md-sys-color-secondary-container);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#home-p-img, .profile-pic-upload img, #profile-img-lg, #chat-profile-img {
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--primary-color), 0 8px 16px -4px rgba(15, 23, 42, 0.25);
    object-fit: cover;
    border-radius: 50%;
}
#home-p-img { width: 45px; height: 45px; padding: 0; }

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: var(--bg-color);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: 70px;
        top: auto;
        bottom: 0;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-top: 1px solid var(--md-sys-color-outline);
        border-radius: 20px 20px 0 0;
    }
    .sidebar-logo { display: none; }
    .nav-container {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        gap: 0;
        width: 100%;
    }
    .nav-item {
        flex-direction: column;
        padding: 6px 4px;
        gap: 4px;
        font-size: 0.65rem;
        border-radius: 12px;
        flex: 1;
        justify-content: center;
        text-align: center;
        overflow: hidden;
    }
    .nav-item svg { width: 22px; height: 22px; }
    .nav-item.active {
        box-shadow: none;
        background: transparent;
        color: var(--primary-color);
    }
    .nav-item.active .nav-item-text { font-weight: 700; }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding-bottom: 75px;
    }
    .search-dummy { display: none; }
    .topbar-mobile-logo { display: flex; }
    .topbar { padding: 0 20px; }
    .content-area { padding: 20px 15px; }
}

/* --- CARDS & UI ELEMENTS --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--radius-large);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    position: relative;
}
.card:hover { box-shadow: var(--shadow-hover); }

/* --- BUTTONS --- */
.btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-medium);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
    width: 100%;
    margin: 8px 0;
    font-family: inherit;
}
.btn:hover { box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--text-main);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--md-sys-color-surface-container-high);
}
.btn-red { background: var(--md-sys-color-error); color: white; box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2); }
.btn-red:hover { box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3); }
.btn-green { background: #10b981; color: white; box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2); }
.btn-green:hover { box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3); }

/* --- INPUTS --- */
input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 8px 0;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--radius-medium);
    background: var(--bg-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
input[type="checkbox"], input[type="radio"] {
    width: auto;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* --- AUTH & MODALS (Modern Glassmorphism) --- */
#auth-screen, .sub-page, #edit-modal, #itracking-modal, #chat-profile-modal, #update-modal, #install-instruction-modal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4) !important;
}

#auth-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 4000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; padding: 20px;
}
.video-bg-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; pointer-events: none; }
.video-bg-container iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; pointer-events: none; border: none; }
.video-overlay { background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(79, 70, 229, 0.9)); position: absolute; top:0; left:0; width:100%; height:100%; z-index:-1; }

.auth-container, #edit-modal .card, #chat-profile-modal .card, #update-modal .card, #install-instruction-modal .card, .sub-page-content {
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-container {
    width: 100%; max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: var(--radius-extra);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.4);
}
body.dark-mode .auth-container { background: rgba(30, 41, 59, 0.95); border-color: rgba(255,255,255,0.1); }

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.profile-pic-upload {
    width: 120px; height: 120px;
    margin: 0 auto 25px;
    overflow: hidden;
    position: relative; cursor: pointer;
    transition: 0.3s;
}
.profile-pic-upload:hover { transform: scale(1.05); }

/* --- SERVICE GRID --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}
.service-box {
    background: var(--card-bg);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--radius-large);
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    font-weight: 600;
}
.service-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-color); }
.service-box .lucide { width: 40px; height: 40px; margin-bottom: 12px; color: var(--primary-color); stroke-width: 1.5; }

/* --- MAP & LOADING --- */
#map { height: 400px; width: 100%; border-radius: var(--radius-large); box-shadow: var(--shadow-soft); }
#loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 5000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.spinner {
    width: 60px; height: 60px; border-radius: 50%;
    background: radial-gradient(farthest-side, var(--primary-color) 94%, #0000) top/10px 10px no-repeat, conic-gradient(#0000 30%, var(--primary-color));
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 10px), #000 0);
    animation: spin 1s infinite linear;
}
@keyframes spin { 100% { transform: rotate(1turn); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- SUB PAGES (Modal Style inside Main Content) --- */
.sub-page {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000; display: none; overflow-y: auto; padding: 20px; align-items: flex-start; justify-content: center;
}
.sub-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding: 15px 0; border-bottom: 1px solid var(--md-sys-color-outline);
    position: sticky; top: 0; z-index: 100; background: var(--bg-color);
}
.sub-header .back-btn { cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.sub-header .back-btn:hover { color: var(--primary-color); }
.sub-page-content { background: var(--bg-color); padding: 30px; max-width: 800px; margin: 40px auto; border-radius: var(--radius-large); box-shadow: var(--shadow-hover); }

/* --- CHAT --- */
.chat-container { background: var(--card-bg); border-radius: var(--radius-large); padding: 20px; box-shadow: var(--shadow-soft); }
.chat-bubble { padding: 12px 18px; border-radius: 20px; margin: 8px 0; max-width: 75%; font-size: 0.95rem; position: relative; box-shadow: var(--shadow-soft); }
.chat-sent { background: var(--primary-color); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-received { background: var(--md-sys-color-surface-container-high); color: var(--text-main); border-bottom-left-radius: 4px; }
.msg-actions { position: absolute; top: -12px; display: flex; gap: 5px; opacity: 0; transition: 0.2s; }
.chat-bubble:hover .msg-actions { opacity: 1; }
.msg-btn {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 1px solid var(--md-sys-color-outline); background: var(--card-bg); box-shadow: var(--shadow-soft);
}

/* --- SECTION ANIMATION --- */
.section { display: none; animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); width: 100%; max-width: 1200px; margin: 0 auto; }
.section.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.notif-badge {
    position: absolute; top: -2px; right: -2px; background: var(--md-sys-color-error); color: white; font-size: 10px;
    font-weight: 700; width: 18px; height: 18px; display: none; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid var(--card-bg);
}

/* Scrollbar styling for a cleaner look */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--md-sys-color-outline); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@media (max-width: 420px) {
    .nav-item { font-size: 0.6rem; padding: 6px 2px; gap: 2px; }
    .nav-item .lucide { width: 20px; height: 20px; }
}

/* Specific styling for prominent Export Buttons */
.btn-export-excel { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; }
.btn-export-pdf { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; border: none; }
.btn-export-excel:hover { box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3); }
.btn-export-pdf:hover { box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3); }

/* ============================================
   BLOOD BANK PAGE - MEDICAL THEME
   ============================================ */
:root {
    /* Blood Theme Colors */
    --blood-primary: #e41e3f;
    --blood-secondary: #ff6b6b;
    --blood-light: rgba(228, 30, 63, 0.1);
    --blood-success: #10b981;
    --blood-bg: #fff8f8;
}

body.dark-mode {
    --blood-primary: #ff6b6b;
    --blood-secondary: #ff8787;
    --blood-light: rgba(255, 107, 107, 0.15);
    --blood-success: #34d399;
    --blood-bg: #1a0a0a;
}

/* Blood Page Container */
.blood-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Blood Section Styling */
.blood-section {
    background: var(--card-bg);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--radius-large);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.blood-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.blood-section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
}

/* Donor Card Styling */
.donor-card {
    background: var(--blood-bg);
    border: 1px solid rgba(228, 30, 63, 0.2);
    border-radius: var(--radius-medium);
    padding: 16px;
    transition: all 0.2s ease;
}

.donor-card:hover {
    border-color: var(--blood-primary);
    box-shadow: 0 4px 12px rgba(228, 30, 63, 0.15);
}

/* Blood Request Card Styling */
.blood-request-card {
    background: var(--card-bg);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--radius-medium);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.blood-request-card:hover {
    box-shadow: var(--shadow-hover);
}

.blood-request-card.found {
    opacity: 0.85;
}

/* Blood Button Styling */
.btn-blood {
    background: var(--blood-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(228, 30, 63, 0.2);
}

.btn-blood:hover {
    background: var(--blood-secondary);
    box-shadow: 0 10px 15px -3px rgba(228, 30, 63, 0.3);
}

.btn-blood-outline {
    background: transparent;
    border: 1px solid var(--blood-primary);
    color: var(--blood-primary);
    box-shadow: none;
}

.btn-blood-outline:hover {
    background: var(--blood-light);
    border-color: var(--blood-secondary);
    color: var(--blood-secondary);
}

/* Dark Mode Adjustments for Blood Buttons */
body.dark-mode .btn-blood-outline {
    background: rgba(255, 107, 107, 0.1);
}

/* ============================================
   FOOD REVIEW PAGE - PREMIUM ZOMATO THEME
   ============================================ */
.food-hero {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: var(--radius-large);
    padding: 40px 30px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.food-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.food-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--md-sys-color-outline);
    display: flex;
    flex-direction: column;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 107, 0.4);
}

.fc-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--md-sys-color-outline);
}

.fc-avatar {
    width: 42px; height: 42px; 
    border-radius: 50%; object-fit: cover;
    border: 2px solid #feca57;
}

.fc-user-info { flex: 1; }
.fc-user-info h4 { margin: 0; font-size: 1rem; color: var(--text-main); font-weight: 700; }
.fc-user-info span { font-size: 0.8rem; color: var(--text-muted); }

.fc-image-wrap {
    width: 100%;
    height: 220px;
    position: relative;
    background: var(--md-sys-color-surface-container-high);
}

.fc-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}

.fc-place-badge {
    position: absolute;
    bottom: 12px; left: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.fc-body {
    padding: 20px;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Premium Modal */
.food-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    z-index: 6000; display: none; align-items: center; justify-content: center;
    padding: 20px;
}

.food-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    width: 100%; max-width: 500px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 90vh;
    overflow-y: auto;
}

.img-upload-zone {
    border: 2px dashed #feca57;
    border-radius: var(--radius-medium);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(254, 202, 87, 0.05);
    transition: all 0.2s;
    margin-bottom: 16px;
}

.img-upload-zone:hover { background: rgba(254, 202, 87, 0.15); border-color: #ff6b6b; }
.img-upload-zone img { max-width: 100%; max-height: 200px; border-radius: 8px; display: none; margin-top: 15px; object-fit: cover; box-shadow: var(--shadow-soft); }

.btn-food { background: linear-gradient(135deg, #ff6b6b, #ff4757); color: white; border: none; }
.btn-food:hover { box-shadow: 0 8px 15px rgba(255, 107, 107, 0.4); transform: translateY(-2px); }
/* ============================================
   MARKETPLACE PAGE - BIKROY CLONE THEME
   ============================================ */
.market-hero {
    background: linear-gradient(135deg, #009688, #059669);
    border-radius: var(--radius-large);
    padding: 40px 30px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.market-hero::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -20px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: #009688;
}

.pc-img-wrap {
    height: 200px;
    background: var(--md-sys-color-surface-container-high);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}

.pc-price-tag {
    position: absolute;
    bottom: 12px; left: 12px;
    background: #f59e0b;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.pc-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.pc-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--md-sys-color-outline);
    padding-top: 12px;
    margin-top: auto;
}

.pc-contact {
    font-size: 0.9rem;
    font-weight: 600;
    color: #009688;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Marketplace Modal (Overrides generic modal) */
.market-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    z-index: 6000; display: none; align-items: center; justify-content: center;
    padding: 20px;
}

.market-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    width: 100%; max-width: 500px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 90vh;
    overflow-y: auto;
}

.guidelines-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.guidelines-box ul {
    margin-top: 12px;
    margin-left: 20px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.guidelines-box li {
    margin-bottom: 8px;
}

.btn-market { background: linear-gradient(135deg, #009688, #059669); color: white; border: none; }
.btn-market:hover { box-shadow: 0 8px 15px rgba(0, 150, 136, 0.3); transform: translateY(-2px); }
/* ============================================
   CAMPUS CLUBS - PREMIUM HUB THEME
   ============================================ */
.club-hero {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: var(--radius-large);
    padding: 40px 30px;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.club-tabs {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    border: 1px solid var(--md-sys-color-outline);
    overflow-x: auto;
}

.club-tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.club-tab-btn:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
}

.club-tab-btn.active {
    background: #0ea5e9;
    color: white;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.club-tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.club-tab-content.active {
    display: block;
}

/* Premium Club Card */
.club-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.club-hub-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--md-sys-color-outline);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.club-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #0ea5e9;
}

.chc-cover {
    height: 100px;
    background: linear-gradient(135deg, rgba(14,165,233,0.2), rgba(37,99,235,0.2));
    position: relative;
}

.chc-logo-wrap {
    width: 70px; height: 70px;
    border-radius: 16px;
    background: var(--card-bg);
    padding: 4px;
    position: absolute;
    bottom: -35px;
    left: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.chc-logo-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.chc-body {
    padding: 45px 20px 20px;
}

.chc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.chc-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.chc-action {
    color: #0ea5e9;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Premium Modal */
.club-profile-cover {
    height: 120px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    margin: -30px -30px 20px -30px;
    position: relative;
}

.club-profile-logo {
    width: 90px; height: 90px;
    border-radius: 20px;
    border: 4px solid var(--card-bg);
    position: absolute;
    bottom: -45px;
    left: 30px;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    object-fit: cover;
}
