/* Style sheet for Life Line Blood Donor Portal */

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

:root {
    --primary: #dc2626; /* Crimson Red */
    --primary-hover: #b91c1c;
    --primary-light: #fee2e2;
    --secondary: #0f172a; /* Slate 900 */
    --bg-main: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --border-color: #e2e8f0; /* Slate 200 */
    --success: #10b981; /* Emerald 500 */
    --warning: #f59e0b; /* Amber 500 */
    --danger: #ef4444; /* Red 500 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #fdf8f7 0%, #fee2e2 35%, #e0f2fe 75%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
}

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

/* Header & Fixed Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1100 !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    padding-top: 80px !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--secondary);
}

.logo svg {
    color: var(--primary);
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.45));
    animation: pulse-drop 2.5s infinite ease-in-out;
}
@keyframes pulse-drop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.logo span {
    background: linear-gradient(135deg, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

nav a:hover, nav a.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.cta-btn {
    background-color: var(--primary) !important;
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

.cta-btn:hover, .cta-btn.active {
    background-color: var(--primary-hover) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.35) !important;
}

/* Layout container */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    min-height: 450px;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1.5rem 0;
    }
    .hero-img {
        order: -1;
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--secondary) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

@media (max-width: 768px) {
    .hero-text p {
        margin: 0 auto 2rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .hero-actions {
        justify-content: center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.hero-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Page Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Elements */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

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

/* Search Area */
.search-box {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: white;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.search-box h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 150px;
    gap: 1.25rem;
    align-items: end;
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #cbd5e1; /* Slate 300 */
}

.form-group label.dark-label {
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Light form elements for register & dashboard */
.form-control-light {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Checkboxes grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.checkbox-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-btn label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main) !important;
}

.checkbox-btn input[type="checkbox"]:checked + label {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

.checkbox-btn label:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

/* Results section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}

.bb-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.bb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.bb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.bb-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    display: inline-block;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.bb-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bb-details-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.bb-details-item svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--primary);
}

.bb-groups-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.bb-groups-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.blood-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(220, 38, 38, 0.15);
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.bb-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.bb-website {
    font-weight: 600;
    color: var(--primary);
}

.bb-website:hover {
    text-decoration: underline;
}

/* Forms styling in register.php */
.form-container {
    max-width: 750px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.span-full {
    grid-column: 1 / -1;
}

/* Alert Notification Banner */
.alert-banner {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-banner-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-banner-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Footer styling */
footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h5 {
    color: white;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.25rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Dashboard Table styling */
.dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-sidebar {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-muted);
}

.sidebar-menu-link:hover, .sidebar-menu-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.table-container {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 1.5px solid var(--border-color);
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(248, 250, 252, 0.5);
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-success {
    background-color: #d1fae5;
    color: #059669;
}

.btn-icon-success:hover {
    background-color: #059669;
    color: white;
}

.btn-icon-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-icon-danger:hover {
    background-color: #dc2626;
    color: white;
}

.no-data {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.no-data svg {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Background Blobs Animation */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -10;
    opacity: 0.65;
    animation: float 25s infinite alternate ease-in-out;
    pointer-events: none;
}
.bg-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.05) 100%);
    top: -100px;
    left: -100px;
}
.bg-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, rgba(225, 29, 72, 0.05) 100%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 30s;
}
.bg-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.38) 0%, rgba(14, 165, 233, 0.05) 100%);
    top: 30%;
    left: 35%;
    animation-delay: -10s;
    animation-duration: 22s;
}
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(40px, -50px) scale(1.15) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* Glassmorphism Overlays on Cards & Headers */
header {
    background-color: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.card, .bb-card, .dashboard-sidebar, .table-container {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}
.card:hover, .bb-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 12px 40px 0 rgba(220, 38, 38, 0.08);
    border-color: rgba(239, 68, 68, 0.25) !important;
}
.search-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3) !important;
    border: none !important;
    transition: var(--transition);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: var(--secondary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
}

/* Hide Mobile Navigation Elements by default on Desktop (> 768px) */
.mobile-header-actions,
.mobile-drawer-menu,
.mobile-bottom-nav {
    display: none !important;
}

.desktop-nav {
    display: flex !important;
}

/* Mobile Screen Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-header-actions {
        display: flex !important;
        align-items: center;
        gap: 0.6rem;
    }

    .mobile-top-btn {
        background: rgba(37, 211, 102, 0.12);
        color: #25d366;
        border: 1px solid rgba(37, 211, 102, 0.25);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: transform 0.2s;
    }
    .mobile-top-btn:active {
        transform: scale(0.92);
    }

    .mobile-menu-btn {
        background: rgba(220, 38, 38, 0.08);
        border: 1px solid rgba(220, 38, 38, 0.2);
        color: var(--primary);
        border-radius: 0.65rem;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-drawer-menu {
        display: none !important;
    }
    .mobile-drawer-menu.open {
        display: block !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        padding: 0.75rem 1.25rem 1.25rem 1.25rem;
        animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

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

    .drawer-nav-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    .drawer-nav-list a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 0.85rem;
        border-radius: var(--radius-md);
        color: var(--text-main);
        font-weight: 600;
        font-size: 0.92rem;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }
    .drawer-nav-list a:hover, .drawer-nav-list a.active {
        background: var(--primary-light);
        color: var(--primary);
    }
    .badge-live {
        margin-left: auto;
        background: var(--primary);
        color: white;
        font-size: 0.65rem;
        font-weight: 800;
        padding: 0.15rem 0.45rem;
        border-radius: 1rem;
        text-transform: uppercase;
    }

    body {
        padding-bottom: 85px !important; /* prevent content overlap */
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
        justify-content: space-around;
        padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom));
        z-index: 1000;
    }
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 600;
        text-decoration: none;
        flex: 1;
        padding: 0.35rem 0.2rem;
        border-radius: 0.85rem;
        transition: all 0.2s ease;
    }
    .mobile-nav-item svg {
        transition: transform 0.2s;
    }
    .mobile-nav-item.active {
        color: var(--primary);
    }
    .mobile-nav-item.active svg {
        transform: scale(1.12);
    }
    .mobile-nav-item:active {
        transform: scale(0.94);
    }
}
