/* ===== CSS Variables - Blue Color Scheme ===== */
:root {
    --primary-50: #e6f2ff;
    --primary-100: #cce5ff;
    --primary-200: #99ccff;
    --primary-300: #66b3ff;
    --primary-400: #3399ff;
    --primary-500: #0080ff;
    --primary-600: #005eb8;
    --primary-700: #004a94;
    --primary-800: #003d7a;
    --primary-900: #002d5a;
    --primary-950: #001d3d;
    
    
    /* Legacy support - keeping blood names but with blue values */
    --blood-50: #e6f2ff;
    --blood-100: #cce5ff;
    --blood-200: #99ccff;
    --blood-300: #66b3ff;
    --blood-400: #3399ff;
    --blood-500: #0080ff;
    --blood-600: #005eb8;
    --blood-700: #004a94;
    --blood-800: #003d7a;
    --blood-900: #002d5a;
    --blood-950: #001d3d;
    
    --blood-red: #005eb8;
    --blood-red-light: #3399ff;
    --blood-red-dark: #003d7a;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --shadow: rgba(0, 94, 184, 0.08);
    --shadow-lg: rgba(0, 94, 184, 0.25);
    --black-900: #000000;
    --black-800: #080808;
    --black-700: #111111;
    --black-600: #161616;
    --black-overlay-60: rgba(0, 0, 0, 0.6);
    --black-overlay-75: rgba(0, 0, 0, 0.75);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
    position: relative;
}

.admin-body {
    background: #ffffff;
    color: #1a1a1a;
}

.admin-body .admin-main {
    background: transparent;
}

/* ===== Body Background Video ===== */
.body-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.body-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
}

.body-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, var(--black-overlay-60) 100%);
    z-index: 0;
}

/* ===== Hero Section Video ===== */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, var(--black-overlay-60) 100%);
    z-index: 1;
}

/* ===== Main Content ===== */
main {
    position: relative;
    z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    position: static;
    padding: 0.75rem 0;
}

.navbar.navbar-dark {
    background: #1a1a1a;
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.navbar-dark .logo {
    color: #ffffff;
    text-shadow: none;
}

.navbar.navbar-dark .logo span {
    color: #ffffff;
}

.navbar.navbar-dark .nav-buttons .btn-login-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: none;
}

.navbar.navbar-dark .nav-buttons .btn-login-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar.navbar-dark .nav-buttons .btn-primary {
    background: #005eb8;
    color: #ffffff;
    border: none;
    text-shadow: none;
}

.navbar.navbar-dark .nav-buttons .btn-primary:hover {
    background: #004a94;
}

/* Navbar background for pages without video */
body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) {
    background: #1a1a1a;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .logo,
body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .logo span {
    color: #ffffff;
    text-shadow: none;
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-buttons .btn-outline {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .btn-login-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: none;
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .btn-login-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-links .nav-link,
body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-links .nav-dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-dropdown-menu {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body:not(:has(.body-video-container)) .navbar:not(.navbar-dark) .nav-special-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Navbar styling for category and guideline pages with banners */
.category-page .navbar,
.guideline-page .navbar {
    background: #1a1a1a !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.category-page .logo,
.guideline-page .logo {
    color: #ffffff !important;
    text-shadow: none !important;
}

.category-page .nav-buttons .btn-login-badge,
.guideline-page .nav-buttons .btn-login-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: none !important;
}

.category-page .nav-buttons .btn-login-badge:hover,
.guideline-page .nav-buttons .btn-login-badge:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.category-page .nav-buttons .btn-primary,
.guideline-page .nav-buttons .btn-primary {
    background: #005eb8 !important;
    color: white !important;
    text-shadow: none !important;
}

.category-page .nav-buttons .btn-primary:hover,
.guideline-page .nav-buttons .btn-primary:hover {
    background: #004a94 !important;
}

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.logo span {
    display: inline-block;
    line-height: 1.2;
    vertical-align: baseline;
}

.logo svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    vertical-align: baseline;
    position: relative;
    top: 0.15em;
}

.logo-sub {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.2;
    margin-left: -2px;
    display: inline-block;
    vertical-align: baseline;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
    flex: 1;
}

.nav-links:empty {
    display: none;
}

.nav-link,
.nav-dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, opacity 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-link:hover,
.nav-link:focus,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
    color: #ffffff;
    opacity: 1;
    outline: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.show .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
    backdrop-filter: blur(12px);
}

.nav-dropdown.show .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-special-link {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-special-link i {
    font-size: 0.75rem;
}

.nav-special-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-buttons-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-buttons-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-buttons .btn i {
    margin-right: 4px;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e31212 !important;
    color: #ffffff !important;
}

.profile-btn:hover {
    background: #b80e0e !important;
    transform: translateY(-1px);
}

.profile-btn i {
    font-size: 1.1rem;
    margin-right: 0;
}

.profile-btn span {
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blood-600);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 94, 184, 0.18);
}

.btn-primary:hover {
    background: var(--blood-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 94, 184, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255,255,255,0) 40%, rgba(255,255,255,0.35) 80%) 0 0/200% 100% no-repeat,
                radial-gradient(10px 8px at 16px 14px, rgba(204, 229, 255, 0.65) 40%, transparent 41%) repeat-x;
    background-size: 200% 100%, 120px 100%;
    mix-blend-mode: screen;
    animation: redWave 2.6s linear infinite;
    animation-play-state: paused;
    opacity: 0;
}

.btn-primary:hover::before {
    animation-play-state: running;
    animation-duration: 1.8s;
    opacity: 0.85;
}

@keyframes redWave {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 200% 0, -200% 0; }
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav-buttons .btn-primary {
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-white {
    background: var(--white);
    color: var(--blood-700);
    border: 1px solid var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    background-image: url('/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
}

/* Medical Background Animation */
.medical-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.3;
}

.medical-icon {
    position: absolute;
    color: rgba(0, 94, 184, 0.08);
    font-size: 2.5rem;
    opacity: 0.6;
    animation: floatMedicalIcon 15s ease-in-out infinite;
}

.medical-icon-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 2rem;
}

.medical-icon-2 {
    top: 20%;
    right: 8%;
    animation-delay: 2s;
    font-size: 2.2rem;
}

.medical-icon-3 {
    bottom: 25%;
    left: 10%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

.medical-icon-4 {
    bottom: 15%;
    right: 12%;
    animation-delay: 6s;
    font-size: 2.1rem;
}

.medical-icon-5 {
    top: 50%;
    left: 3%;
    animation-delay: 8s;
    font-size: 1.9rem;
}

.medical-icon-6 {
    top: 60%;
    right: 5%;
    animation-delay: 10s;
    font-size: 2.3rem;
}

@keyframes floatMedicalIcon {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(-15px, -50px) rotate(-5deg);
        opacity: 0.6;
    }
    75% {
        transform: translate(30px, -20px) rotate(3deg);
        opacity: 0.5;
    }
}

.blood-cell {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 94, 184, 0.15) 0%, rgba(0, 94, 184, 0.05) 100%);
    animation: floatBloodCell 20s ease-in-out infinite;
}

.blood-cell-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.blood-cell-2 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 20%;
    animation-delay: 3s;
}

.blood-cell-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 25%;
    animation-delay: 6s;
}

.blood-cell-4 {
    width: 70px;
    height: 70px;
    top: 70%;
    right: 15%;
    animation-delay: 9s;
}

.blood-cell-5 {
    width: 50px;
    height: 50px;
    top: 30%;
    left: 8%;
    animation-delay: 12s;
}

.blood-cell-6 {
    width: 90px;
    height: 90px;
    bottom: 30%;
    right: 8%;
    animation-delay: 15s;
}

@keyframes floatBloodCell {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(40px, -60px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, -80px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(50px, -40px) scale(1.05);
        opacity: 0.45;
    }
}

@media (max-width: 768px) {
    .medical-icon {
        font-size: 1.5rem;
        opacity: 0.4;
    }
    
    .medical-icon-1, .medical-icon-2, .medical-icon-3,
    .medical-icon-4, .medical-icon-5, .medical-icon-6 {
        font-size: 1.2rem;
    }
    
    .blood-cell {
        width: 40px !important;
        height: 40px !important;
    }
    
    .blood-cell-1, .blood-cell-3, .blood-cell-6 {
        width: 50px !important;
        height: 50px !important;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: rgba(0, 94, 184, 0.1);
    backdrop-filter: blur(10px);
    color: #005eb8;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 94, 184, 0.2);
    margin-bottom: 1.5rem;
    text-shadow: none;
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.4s both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 100%;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.hero-tagline-divider {
    display: inline-block;
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.hero-subjects {
    margin: 3rem auto 2rem;
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-subjects-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-subjects-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
}

.hero-subject-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(227, 18, 18, 0.1);
    white-space: nowrap;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-subject-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 18, 18, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-subject-item:hover::before {
    left: 100%;
}

.hero-subject-item span {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-subject-item i,
.hero-subject-item svg {
    font-size: 1.1rem;
    color: #e31212;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hero-subject-item svg {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.hero-subject-item:hover {
    background: rgba(255, 255, 255, 1);
    border: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(227, 18, 18, 0.3);
    color: #e31212;
}

.hero-subject-item:hover span {
    color: #e31212;
}

.hero-subject-item:hover i,
.hero-subject-item:hover svg {
    transform: scale(1.15) translateX(2px);
    color: #b80e0e;
}

@media (max-width: 768px) {
    .hero-subjects {
        margin: 2rem auto 1.5rem;
    }
    
    .hero-subjects-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subjects-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .hero-subject-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-subject-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    
    .hero-subject-item span {
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        font-size: 0.75rem;
    }
    
    .hero-subject-item i,
    .hero-subject-item svg {
        font-size: 1rem;
    }

    .hero-subject-item svg {
        width: 1rem;
        height: 1rem;
    }
}

.typing-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background-color: #005eb8;
    vertical-align: -0.15em;
    animation: blinkCaret 1s steps(2, start) infinite;
}

@keyframes blinkCaret {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-browse-btn {
    background: #005eb8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 94, 184, 0.18) !important;
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out 0.9s both;
}

.hero-browse-btn:hover {
    background: #004a94 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 94, 184, 0.35) !important;
}

.hero-pricing-btn {
    background: #ffffff !important;
    color: #005eb8 !important;
    border: 2px solid #005eb8 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out 1.1s both;
}

.hero-pricing-btn:hover {
    background: rgba(0, 94, 184, 0.05) !important;
    color: #004a94 !important;
    border-color: #004a94 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 94, 184, 0.2) !important;
}

.hero-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-mobile-nav .btn {
    width: 100%;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
}

.hero-mobile-nav .btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 94, 184, 0.45);
    color: #3399ff;
}

.hero-mobile-nav .btn-outline:hover {
    background: rgba(0, 94, 184, 0.12);
}

@media (max-width: 768px) {
    .hero-cta {
        display: none;
    }

    .hero-mobile-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .hero-mobile-nav .btn {
        flex: 1;
        width: auto;
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: 0;
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero-mobile-nav .btn:first-child {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    .hero-mobile-nav .btn:last-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
        border-right: none;
    }

    .hero-mobile-nav .btn i {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
}

.verification-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(0, 94, 184, 0.18);
    border: 1px solid rgba(0, 94, 184, 0.35);
    color: #cce5ff;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.verification-alert i {
    color: #3399ff;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.verification-alert strong {
    color: #e6f2ff;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.verification-status i {
    font-size: 1rem;
}

.verification-actions {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.verification-actions form {
    margin: 0;
}

.verify-button {
    background: rgba(0, 94, 184, 0.16);
    color: #f8fafc;
    border: 1px solid rgba(0, 94, 184, 0.5);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease, transform 0.2s ease, border 0.2s ease;
}

.verify-button:hover {
    background: rgba(0, 94, 184, 0.28);
    transform: translateY(-1px);
    border-color: rgba(0, 94, 184, 0.7);
}

.verification-note {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.8rem;
}

.verification-block {
    margin-top: 1.75rem;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px dashed rgba(0, 94, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: rgba(226, 232, 240, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.verification-block h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verification-block p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.demo-content-body {
    background: #ffffff;
    color: #1a1a1a;
}

.demo-content-page {
    position: relative;
    z-index: 1;
}

.demo-section {
    padding: 4rem 0 5rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.demo-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.3) 0%, rgba(0, 61, 122, 0.25) 55%, rgba(0, 45, 90, 0.35) 100%);
    opacity: 0.28;
    pointer-events: none;
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.demo-card-top {
    position: relative;
    padding: 2rem 2rem 1.6rem;
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.92) 0%, rgba(0, 61, 122, 0.9) 55%, rgba(0, 45, 90, 0.85) 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.demo-card-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.demo-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #e6f2ff;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.demo-card-category i {
    font-size: 0.8rem;
}

.demo-card-title {
    margin: 1rem 0 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 6px 20px rgba(8, 15, 26, 0.45);
}

.demo-card-body {
    padding: 1.75rem 2rem;
    position: relative;
    background: #ffffff;
}

.demo-card-description {
    margin: 0;
    color: rgba(26, 26, 26, 0.8);
    line-height: 1.65;
    font-size: 0.98rem;
    min-height: 3.6rem;
}

.demo-card-footer {
    padding: 1.2rem 2rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.demo-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(26, 26, 26, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.demo-card-meta i {
    color: rgba(0, 94, 184, 0.85);
}

.demo-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #005eb8;
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 94, 184, 0.5);
    background: rgba(0, 94, 184, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.demo-card-link:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(8, 15, 26, 0.35);
    border-color: rgba(0, 94, 184, 0.8);
}

/* ===== Subjects Section ===== */
.subjects-section {
    padding: 4rem 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px; /* Offset for sticky navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
}

.section-header-content {
    text-align: center;
    max-width: 700px;
    animation: fadeInDown 0.8s ease-out;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.section-badge i {
    font-size: 0.9rem;
}

.section-title {
    font-size: 2rem !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    text-shadow: none;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

h2.section-title {
    font-size: 2rem !important;
}

.section-title-underline {
    height: 5px;
    width: 120px;
    background: linear-gradient(to right, var(--primary-400), var(--primary-600), var(--primary-400));
    border-radius: 9999px;
    margin: 0 auto 1.25rem;
    animation: expandWidth 0.8s ease-out 0.4s both;
    box-shadow: 0 2px 8px rgba(0, 94, 184, 0.4);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

.section-description {
    color: rgba(26, 26, 26, 0.8);
    margin-bottom: 0;
    text-shadow: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    letter-spacing: 0.3px;
}

.section-description i {
    font-size: 1rem;
    opacity: 0.9;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.subjects-grid.centered-one .subject-card,
.subjects-grid.centered-two .subject-card {
    justify-self: center;
}

@media (max-width: 1200px) {
    .subjects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    h2.section-title {
        font-size: 1.5rem !important;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
}

.subject-card {
    position: relative;
    border-radius: 1rem;
    border: none;
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.subject-card:hover {
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.card-image-wrapper {
    position: relative;
    height: 12rem;
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 0.6s ease;
}

.subject-card:hover .card-bg {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.36) 55%, rgba(0,0,0,0.58) 100%);
    pointer-events: none;
}

.subject-card-content {
    position: relative;
    z-index: 2;
    padding: 0;
    color: var(--white);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    width: 100%;
}

.subject-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px 0;
    padding: 0;
    display: block;
    background: transparent;
    border-radius: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
    width: 100%;
    text-align: center;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 9999px;
    background: rgba(10, 10, 10, 0.5);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
    transition: all 0.16s ease;
    align-self: flex-start;
}

.card-link:hover {
    transform: translateX(4px);
    background: rgba(10, 10, 10, 0.7);
}

.card-link svg {
    width: 16px;
    height: 16px;
    margin-left: 0.25rem;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
    margin-top: 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.footer-main {
    padding: 4rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.footer-logo span {
    display: inline-block;
    line-height: 1.2;
    vertical-align: baseline;
}

.footer-logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    vertical-align: baseline;
    position: relative;
    top: 0.15em;
}

.footer-logo .logo-sub {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.2;
    margin-left: -2px;
    display: inline-block;
    vertical-align: baseline;
}

.footer-brand-tagline {
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    line-height: 1.4;
}

.footer-brand-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
    max-width: 100%;
}

.footer-section-title {
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-section-title i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links li {
    margin: 0;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    position: relative;
}

.footer-links li a i {
    font-size: 0.75rem;
    opacity: 0.7;
    width: 14px;
    text-align: center;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 0.25rem;
}

.footer-links li a:hover i {
    opacity: 1;
}

.footer-link-disabled {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9375rem;
    font-style: italic;
}

.footer-pricing-links {
    gap: 0.5rem;
}

.footer-pricing-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.25s ease;
    margin: 0 !important;
}

.footer-pricing-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    padding-left: 0.875rem !important;
    transform: translateX(2px);
}

.footer-pricing-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.footer-pricing-value {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9375rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
}

/* Footer Responsive Styles */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:nth-child(4) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem 2rem;
    }
    
    .footer-section-brand {
        max-width: 100%;
    }
    
    .footer-section-title {
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        font-size: 1.375rem;
    }
    
    .footer-brand-tagline {
        font-size: 1rem;
    }
    
    .footer-pricing-link {
        padding: 0.75rem 1rem !important;
    }
}

/* ===== Auth Pages ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    position: relative;
}

.auth-body {
    background: #ffffff;
    color: #1a1a1a;
}

.admin-auth-body {
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
}

.admin-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}

.admin-auth-showcase {
    flex: 1 1 46%;
    position: relative;
    padding: 4rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 94, 184, 0.05);
    overflow: hidden;
}

.admin-auth-showcase::before,
.admin-auth-showcase::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.35;
}

.admin-auth-showcase::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -160px;
    background: radial-gradient(circle, rgba(0, 94, 184, 0.35), rgba(0, 13, 26, 0.05));
}

.admin-auth-showcase::after {
    width: 360px;
    height: 360px;
    bottom: -140px;
    left: -120px;
    background: radial-gradient(circle, rgba(0, 94, 184, 0.32), rgba(0, 61, 122, 0.06));
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.showcase-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.showcase-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-logo h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a1a1a;
}

.showcase-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 94, 184, 0.15);
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.showcase-copy h2 {
    margin: 0.4rem 0 0.6rem;
    font-size: 2rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.showcase-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(26, 26, 26, 0.7);
}

.showcase-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.showcase-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    background: rgba(0, 94, 184, 0.08);
    color: rgba(26, 26, 26, 0.9);
    font-size: 0.95rem;
    border: 1px solid rgba(0, 94, 184, 0.12);
    backdrop-filter: blur(4px);
}

.showcase-highlights i {
    color: rgba(0, 94, 184, 0.9);
}

.admin-auth-main {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.admin-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16px);
}

.admin-auth-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.admin-auth-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 94, 184, 0.16);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-auth-header h2 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.admin-auth-header p {
    margin: 0;
    color: rgba(26, 26, 26, 0.7);
    line-height: 1.6;
    font-size: 0.98rem;
}

.admin-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.admin-auth-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.admin-auth-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.9);
}

.field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-wrapper i {
    color: rgba(0, 94, 184, 0.75);
    font-size: 1rem;
}

.field-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-size: 1rem;
    outline: none;
}

.field-wrapper input::placeholder {
    color: rgba(26, 26, 26, 0.5);
}

.field-wrapper:focus-within {
    border-color: rgba(0, 94, 184, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.18);
    background: #ffffff;
}

.password-toggle {
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.75);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: rgba(0, 94, 184, 0.85);
}

.auth-utilities {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(26, 26, 26, 0.7);
}

.utility-link {
    color: rgba(0, 94, 184, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.utility-link:hover {
    color: rgba(0, 94, 184, 1);
    transform: translateX(-2px);
}

.utility-note {
    text-align: right;
}

.admin-auth-submit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: 0.85rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.95), rgba(0, 74, 148, 0.95));
    color: #f8fafc;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 18px 30px rgba(0, 94, 184, 0.25);
}

.admin-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(0, 94, 184, 0.32);
    background: linear-gradient(135deg, rgba(0, 94, 184, 1), rgba(0, 74, 148, 0.98));
}

.admin-auth-submit:active {
    transform: translateY(0);
}

.admin-auth-footer {
    margin-top: 2.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(26, 26, 26, 0.6);
}

.admin-auth-alert {
    margin-bottom: 1.25rem;
    background: rgba(0, 61, 122, 0.28);
    border-color: rgba(0, 94, 184, 0.5);
    color: #cce5ff;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.admin-auth-alert i {
    margin-top: 0.15rem;
}

@media (max-width: 1200px) {
    .admin-auth-showcase {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 992px) {
    .admin-auth-shell {
        flex-direction: column;
    }

    .admin-auth-showcase {
        flex: none;
        padding: 3rem 2rem 2rem;
        order: 2;
    }

    .showcase-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .showcase-copy h2 {
        font-size: 1.75rem;
    }

    .showcase-highlights {
        width: 100%;
    }

    .showcase-highlights li {
        justify-content: center;
        text-align: left;
    }

    .admin-auth-main {
        flex: none;
        padding: 3rem 1.75rem 2rem;
        order: 1;
    }

    .admin-auth-card {
        max-width: 520px;
    }

    .auth-utilities {
        flex-direction: column;
        align-items: flex-start;
    }

    .utility-note {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .admin-auth-showcase {
        display: none;
    }

    .admin-auth-main {
        padding: 2.5rem 1.25rem;
    }

    .admin-auth-card {
        padding: 2.25rem 1.75rem;
        border-radius: 1.2rem;
    }

    .admin-auth-header h2 {
        font-size: 1.65rem;
    }

    .auth-utilities {
        gap: 0.75rem;
    }
}

.auth-body .navbar {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-body .logo,
.auth-body .logo span {
    color: #ffffff;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 0 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(14px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 4rem;
    color: rgba(0, 94, 184, 0.85);
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.auth-header p {
    color: rgba(26, 26, 26, 0.7);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(0, 61, 122, 0.32);
    color: #cce5ff;
    border: 1px solid rgba(0, 94, 184, 0.45);
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(26, 26, 26, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: rgba(0, 94, 184, 0.75);
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.65rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.input-wrapper input:focus {
    outline: none;
    border-color: rgba(0, 94, 184, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.18);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: rgba(26, 26, 26, 0.6);
}

.auth-footer {
    text-align: center;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.auth-footer p {
    color: rgba(26, 26, 26, 0.7);
}

.auth-footer a {
    color: rgba(0, 94, 184, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== Dashboard ===== */
.dashboard-page {
    padding: 2.5rem 0;
    min-height: calc(100vh - 200px);
    background: #ffffff;
    color: #1a1a1a;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.welcome-section h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: rgba(26, 26, 26, 0.7);
    font-size: 1.1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    border-left: 4px solid var(--blood-600);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blood-600), var(--blood-400));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.stat-info h3 {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blood-600);
    margin: 0;
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.dashboard-content {
    display: grid;
    gap: 2rem;
}

.dashboard-section {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
}

.dashboard-section h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-access-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 1.75rem;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-access-card i,
.quick-access-card svg {
    font-size: 2.1rem;
    color: #3399ff;
}

.quick-access-card svg {
    width: 2.1rem;
    height: 2.1rem;
    display: block;
    margin: 0 auto;
}

.quick-access-card:hover {
    border-color: rgba(0, 94, 184, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.info-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: rgba(26, 26, 26, 0.7);
}

.info-value {
    color: #1a1a1a;
    font-weight: 600;
}

.info-value.success {
    color: #22c55e;
}

.info-value.error {
    color: #3399ff;
}

.subscription-reminder {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 94, 184, 0.12);
    border: 1px solid rgba(0, 94, 184, 0.3);
    border-radius: 0.75rem;
    color: rgba(0, 94, 184, 0.95);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subscription-form {
    margin-top: 1.5rem;
}

.subscription-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3399ff, #0080ff);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 12px 25px rgba(0, 94, 184, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscription-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 94, 184, 0.35);
}

.account-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.65);
    color: rgba(226, 232, 240, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-secondary-button:hover {
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.35);
}

.dashboard-secondary-button.small {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
}

.invoice-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.invoice-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.invoice-header .welcome-section p {
    display: none;
}

.invoice-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.invoice-section-heading h2 {
    font-size: 1.1rem;
    margin: 0;
}

.table-note {
    font-size: 0.8rem;
    color: #64748b;
}

.invoice-table-wrapper {
    overflow-x: auto;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 0.875rem;
}

.invoice-table th,
.invoice-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    color: #1a1a1a;
}

.invoice-table th {
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748b;
    background: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoice-table tbody tr:hover {
    background: rgba(227, 18, 18, 0.03);
}

.invoice-table td strong {
    color: #1a1a1a;
    font-weight: 600;
}

.invoice-reference {
    font-size: 0.8rem;
    color: #64748b;
    font-family: monospace;
}

.invoice-table .dashboard-secondary-button.small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.375rem;
}

.invoice-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
}

.invoice-empty i {
    font-size: 2rem;
    color: #94a3b8;
}

.invoice-empty h3 {
    margin: 0;
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.invoice-empty p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.badge-danger {
    background: rgba(0, 94, 184, 0.22);
    color: #3399ff;
}

.badge-info {
    background: rgba(59, 130, 246, 0.22);
    color: #60a5fa;
}

.badge-muted {
    background: rgba(148, 163, 184, 0.25);
    color: rgba(226, 232, 240, 0.85);
}

.table-note {
    font-size: 13px;
    color: rgba(148, 163, 184, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.4);
}

.table-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 94, 184, 0.6);
    border-radius: 4px;
}

.link-light {
    color: rgba(148, 197, 253, 0.9);
    text-decoration: none;
}

.link-light:hover {
    color: rgba(191, 219, 254, 1);
    text-decoration: underline;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.profile-section {
    background: rgba(15, 15, 15, 0.85);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-section h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #f8fafc;
}

.admin-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-meta-list li {
    margin: 10px 0;
    color: rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-state {
    background: rgba(10, 10, 10, 0.85);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: rgba(226, 232, 240, 0.7);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    color: rgba(0, 94, 184, 0.7);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    z-index: 10;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-menu-toggle i {
    display: block;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 94, 184, 0.1);
    background: #f8fafc;
    position: relative;
}

.mobile-sidebar-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    float: left;
}

.mobile-sidebar-logo span {
    display: inline-block;
    line-height: 1.2;
    vertical-align: baseline;
}

.mobile-sidebar-logo svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: baseline;
    position: relative;
    top: 0.15em;
}

.mobile-sidebar-logo .logo-sub {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.2;
    margin-left: -2px;
    display: inline-block;
    vertical-align: baseline;
}

.mobile-sidebar-close {
    position: absolute;
    right: 1.25rem;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mobile-sidebar-close:hover {
    color: #005eb8;
}

.mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.2s ease;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.mobile-sidebar-link:hover {
    background: rgba(0, 94, 184, 0.05);
    color: #005eb8;
}

.mobile-sidebar-link:last-child {
    border-bottom: none;
}

.mobile-sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #64748b;
}

.mobile-sidebar-link:hover i {
    color: #005eb8;
}

.mobile-sidebar-link-profile {
    background: transparent;
}

.mobile-sidebar-link-primary {
    background: #005eb8;
    color: #ffffff;
    font-weight: 600;
    margin: 0.5rem 1.25rem;
    border-radius: 6px;
    border-left: none;
}

.mobile-sidebar-link-primary:hover {
    background: #004a94;
    color: #ffffff;
}

.mobile-sidebar-link-primary i {
    color: #ffffff;
}

.mobile-sidebar-link-logout {
    color: #64748b;
}

.mobile-sidebar-link-logout:hover {
    color: #005eb8;
}

.mobile-sidebar-row {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: nowrap;
}

.mobile-sidebar-link-row {
    flex: 1;
    padding: 0.875rem 0.5rem;
    margin: 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 94, 184, 0.2);
    background: #f8fafc;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sidebar-link-row:hover {
    background: rgba(0, 94, 184, 0.08);
    border-color: #005eb8;
}

.mobile-sidebar-form {
    margin: 0;
    padding: 0;
}

.mobile-sidebar-form button {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
}

.mobile-sidebar-row {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: nowrap;
}

.mobile-sidebar-link-row {
    flex: 1;
    padding: 0.875rem 0.5rem;
    margin: 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 94, 184, 0.2);
    background: #f8fafc;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sidebar-link-row:hover {
    background: rgba(0, 94, 184, 0.08);
    border-color: #005eb8;
}

.mobile-sidebar-link-row-primary {
    background: #005eb8;
    color: #ffffff;
    border-color: #005eb8;
}

.mobile-sidebar-link-row-primary:hover {
    background: #004a94;
    border-color: #004a94;
    color: #ffffff;
}

.mobile-sidebar-link-row-primary i {
    color: #ffffff;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }

    .logo {
        margin: 0 auto;
        float: none;
    }

    .mobile-sidebar {
        display: none !important;
    }

    .mobile-sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        white-space: normal;
        overflow: visible;
        line-height: 1.5;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 3rem 1.5rem 2rem;
    }

    .nav-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .logo {
        margin: 0 auto;
        flex-shrink: 0;
    }

    .nav-buttons {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.5rem 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        flex-wrap: nowrap;
    }

    .nav-buttons::-webkit-scrollbar {
        height: 4px;
    }

    .nav-buttons::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-buttons::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .nav-buttons-left,
    .nav-buttons-right {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .demo-hero {
        padding: 3.5rem 1.25rem 2.5rem;
        min-height: 40vh;
    }

    .demo-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        line-height: 1.5;
        padding: 0 0.75rem;
    }

    .hero-subjects-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .hero-subject-item {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }

    .hero-subject-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .hero-subject-item span {
        font-size: 0.7rem;
    }

    .hero-subject-item i,
    .hero-subject-item svg {
        font-size: 0.9rem;
    }

    .hero-subject-item svg {
        width: 0.9rem;
        height: 0.9rem;
    }

    .hero-content {
        padding: 2.5rem 1.5rem 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .section-title,
    h2.section-title {
        font-size: 1.15rem !important;
    }
}

/* AI Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1201;
    transition: bottom 0.3s ease;
}

/* When Ask Doctor widget is present, move AI chat up */
body:has(.ask-doc-widget) .ai-chat-widget {
    bottom: 90px;
}

.ai-chat-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #e31212, #b80e0e);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(227, 18, 18, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ai-chat-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ai-chat-toggle:hover::before {
    left: 100%;
}

.ai-chat-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(227, 18, 18, 0.4);
    background: linear-gradient(135deg, #ff1a1a, #d01010);
}

.ai-chat-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.ai-chat-toggle span {
    position: relative;
    z-index: 1;
}

.ai-chat-toggle:hover i {
    transform: scale(1.1) translateX(2px);
}


.ai-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffffff;
    color: #e31212;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid #e31212;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(227, 18, 18, 0.4);
    animation: pulse-badge 2s infinite;
    z-index: 2;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.ai-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 600px;
    max-width: calc(100vw - 48px);
    height: 700px;
    max-height: calc(100vh - 180px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1300;
}

.ai-chat-window.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    bottom: auto;
    right: auto;
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background: linear-gradient(135deg, #005eb8, #004a94);
    color: #ffffff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-chat-header-content h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.ai-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-fullscreen,
.ai-chat-close {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
    z-index: 10;
    width: 36px;
    height: 36px;
}

.ai-chat-fullscreen:hover,
.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-chat-fullscreen:active,
.ai-chat-close:active {
    background: rgba(255, 255, 255, 0.3);
}

.ai-chat-fullscreen i,
.ai-chat-close i {
    font-size: 1.1rem;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f8f9fa;
}

.ai-chat-disclaimer {
    padding: 1.5rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.ai-chat-disclaimer-content {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 1.5rem;
}

.ai-chat-disclaimer-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-chat-disclaimer-content h4 {
    margin: 0;
    color: #721c24;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-disclaimer-content h4 i {
    color: #dc3545;
    font-size: 1.2rem;
}

.ai-chat-disclaimer-accepted {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 8px;
    color: #155724;
    font-size: 0.9rem;
    font-weight: 600;
}

.ai-chat-disclaimer-accepted i {
    color: #28a745;
    font-size: 1.1rem;
}

.ai-chat-disclaimer-accepted-date {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
}

.ai-chat-disclaimer-compact {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.ai-chat-disclaimer-compact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 8px;
    color: #155724;
    font-size: 0.9rem;
    font-weight: 500;
}

.ai-chat-disclaimer-compact-label i {
    color: #28a745;
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-chat-disclaimer-view-link {
    margin-left: auto;
    color: #005eb8;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ai-chat-disclaimer-view-link:hover {
    color: #004085;
    text-decoration: none;
}

.ai-chat-disclaimer-text {
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ai-chat-disclaimer-text p {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #721c24;
}

.ai-chat-disclaimer-text ul,
.ai-chat-disclaimer-text ol {
    margin: 0;
    padding-left: 1.5rem;
}

.ai-chat-disclaimer-text ul {
    list-style-type: disc;
}

.ai-chat-disclaimer-text ol {
    list-style-type: decimal;
}

.ai-chat-disclaimer-text li {
    margin: 0.75rem 0;
    color: #333333;
}

.ai-chat-disclaimer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 53, 69, 0.3);
}

.ai-chat-disclaimer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333333;
    font-weight: 600;
}

.ai-chat-disclaimer-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #005eb8;
    flex-shrink: 0;
}

.ai-chat-disclaimer-checkbox span {
    line-height: 1.5;
}

.ai-chat-disclaimer-submit {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-disclaimer-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-chat-welcome {
    text-align: center;
    padding: 2rem 1rem;
    color: #333333;
}

.ai-chat-welcome p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
    text-align: center;
}

.ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-chat-message-question {
    display: flex;
    justify-content: flex-end;
}

.ai-chat-message-question .ai-chat-message-content {
    background: linear-gradient(135deg, #005eb8, #004a94);
    color: #ffffff;
    padding: 0.875rem 1.125rem;
    border-radius: 18px 18px 4px 18px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 94, 184, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-message-answer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    justify-content: flex-start;
}

.ai-chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #005eb8, #004a94);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-chat-message-avatar i {
    font-size: 1rem;
}

.ai-chat-message-answer .ai-chat-message-content {
    background: #ffffff;
    color: #333333;
    padding: 1rem 1.25rem;
    border-radius: 18px 18px 18px 4px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.7;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Formatted content styles */
.ai-chat-message-answer .ai-chat-message-content h1,
.ai-chat-message-answer .ai-chat-message-content h2,
.ai-chat-message-answer .ai-chat-message-content h3,
.ai-chat-message-answer .ai-chat-message-content h4 {
    margin: 1rem 0 0.5rem 0;
    color: #005eb8;
    font-weight: 600;
}

.ai-chat-message-answer .ai-chat-message-content h1 {
    font-size: 1.3rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.ai-chat-message-answer .ai-chat-message-content h2 {
    font-size: 1.15rem;
}

.ai-chat-message-answer .ai-chat-message-content h3 {
    font-size: 1.05rem;
}

.ai-chat-message-answer .ai-chat-message-content h4 {
    font-size: 1rem;
}

.ai-chat-message-answer .ai-chat-message-content p {
    margin: 0.75rem 0;
}

.ai-chat-message-answer .ai-chat-message-content ul,
.ai-chat-message-answer .ai-chat-message-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.ai-chat-message-answer .ai-chat-message-content li {
    margin: 0.5rem 0;
}

.ai-chat-message-answer .ai-chat-message-content strong {
    font-weight: 600;
    color: #005eb8;
}

.ai-chat-message-answer .ai-chat-message-content em {
    font-style: italic;
}

.ai-chat-message-answer .ai-chat-message-content a {
    color: #005eb8;
    text-decoration: underline;
    word-break: break-all;
}

.ai-chat-message-answer .ai-chat-message-content a:hover {
    color: #004a94;
    text-decoration: none;
}

.ai-chat-message-answer .ai-chat-message-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e31212;
}

.ai-chat-message-answer .ai-chat-message-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 3px solid #005eb8;
}

.ai-chat-message-answer .ai-chat-message-content blockquote {
    border-left: 4px solid #005eb8;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

.ai-chat-message-answer .ai-chat-message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9em;
}

.ai-chat-message-answer .ai-chat-message-content table th,
.ai-chat-message-answer .ai-chat-message-content table td {
    border: 1px solid #e9ecef;
    padding: 0.5rem;
    text-align: left;
}

.ai-chat-message-answer .ai-chat-message-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #005eb8;
}

.ai-chat-message-system {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: left;
}

.ai-chat-message-system .ai-chat-message-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #721c24;
    font-size: 0.85rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.ai-chat-message-system .ai-chat-message-content i {
    color: #dc3545;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ai-chat-disclaimer-view-link-inline {
    margin-left: auto;
    color: #dc3545;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.ai-chat-disclaimer-view-link-inline:hover {
    color: #c82333;
    text-decoration: none;
}

.ai-chat-message-pending .ai-chat-message-content {
    background: #ffffff;
    padding: 1rem;
}

.ai-chat-message-failed {
    opacity: 0.9;
}

.ai-chat-message-failed .ai-chat-message-avatar {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.ai-chat-message-failed .ai-chat-message-content {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.ai-chat-limit-status {
    font-size: 0.85rem;
    line-height: 1.5;
}

.ai-chat-countdown-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-chat-countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #005eb8;
    font-size: 0.95rem;
    font-weight: 500;
}

.ai-chat-countdown-timer i {
    font-size: 1rem;
}

.ai-chat-countdown-timer .countdown-seconds {
    color: #005eb8;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    display: inline-block;
    text-align: center;
}

.ai-chat-footer {
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.ai-chat-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ai-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-chat-input:focus {
    border-color: #005eb8;
}

.ai-chat-input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #005eb8, #004a94);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ai-chat-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #004a94, #003d7a);
    transform: scale(1.05);
}

.ai-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-chat-send i {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-chat-window {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}

@media (max-width: 640px) {
    .ai-chat-widget {
        bottom: 16px;
        right: 16px;
    }
    
    body:has(.ask-doc-widget) .ai-chat-widget {
        bottom: 80px;
    }

    .ai-chat-toggle {
        min-width: 160px;
        height: 50px;
        padding: 0 16px;
    }

    .ai-chat-toggle-text {
        font-size: 0.85rem;
    }

    .ai-chat-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 100px);
        bottom: 90px;
    }
    
    .ai-chat-window.fullscreen {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        top: 0;
        left: 0;
        bottom: auto;
        right: auto;
        border-radius: 0;
    }

    .ai-chat-message-question .ai-chat-message-content,
    .ai-chat-message-answer .ai-chat-message-content {
        max-width: 85%;
    }
}

/* Answer Notification */
.ai-chat-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1400;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.ai-chat-notification.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ai-chat-notification-content {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 400px;
}

.ai-chat-notification-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
}

.ai-chat-notification-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ai-chat-notification-content span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .ai-chat-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .ai-chat-notification-content {
        max-width: 100%;
    }
}
