:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-light: #2d3a4f;
    --surface-glass: rgba(30, 41, 59, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #10b981; /* Emerald */
    --accent-glow: rgba(16, 185, 129, 0.3);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --secondary: #3b82f6; /* Blue */
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-height: 70px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Blur Effects */
.blob {
    position: fixed;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
}

.blob-1 { top: -100px; left: -100px; }
.blob-2 { bottom: -100px; right: -100px; background: var(--secondary); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease;
}

.hero-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

@media (max-width: 480px) {
    .hero-header {
        margin-bottom: 2.5rem;
    }
    
    .hero-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
    
    .hero-header .subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}

h1 {
    font-size: clamp(1.4rem, 6vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glass Card */
.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: var(--radius);
    }
}

/* Stream Switcher Styles */
.stream-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 20px;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass-border);
}

.stream-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stream-btn .icon {
    font-size: 1.2rem;
    filter: grayscale(1);
    transition: var(--transition);
}

.stream-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.stream-btn.active .icon {
    filter: grayscale(0);
}

.stream-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

@media (max-width: 480px) {
    .stream-switcher {
        width: 100%;
    }
    .stream-btn {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Navigation Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.4rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

@media (max-width: 768px) {
    .tabs::-webkit-scrollbar {
        display: block;
        height: 3px;
    }
    .tabs::-webkit-scrollbar-thumb {
        background: var(--accent-glow);
        border-radius: 10px;
    }
}

.tab-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
    .tabs {
        padding: 0.3rem;
        gap: 0.25rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    select, input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

select, input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

select:focus, input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

select:disabled, input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0,0,0,0.1);
}

.btn-primary {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
    filter: brightness(1.1);
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Results Area */
.results-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255,255,255,0.03);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

@media (max-width: 480px) {
    .metric-card {
        padding: 1rem;
    }
    .metric-value {
        font-size: 1.5rem;
    }
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

/* Table Design */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .table-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border);
}

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

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-safe { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-probable { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

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

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

/* Premium Full-Screen Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-overlay.active {
    display: flex;
    opacity: 1;
}

.loader-card {
    background: var(--surface-glass);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.premium-loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: rotation 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

.premium-loader::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid var(--border);
    border-bottom: 3px solid var(--secondary);
    border-radius: 50%;
    animation: rotation 1.5s linear infinite reverse;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Premium Top Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow), 0 0 5px var(--accent);
    transition: width 0.4s cubic-bezier(0.1, 0.05, 0, 1);
    opacity: 0;
}

.progress-bar.active {
    opacity: 1;
}

.progress-bar.complete {
    width: 100% !important;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--surface);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top Navigation & User Profile */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 1rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .top-nav {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .top-nav {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    padding-right: 1.2rem;
    border-radius: 40px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    max-width: 180px;
}

@media (max-width: 480px) {
    .user-badge {
        padding: 0.3rem;
        padding-right: 0.4rem;
        max-width: fit-content;
        gap: 0.5rem;
    }
    .user-badge .user-details {
        display: none;
    }
    .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

.user-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent-glow);
}

.avatar {
    width: 34px;
    height: 34px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-details .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.logout-btn {
    font-size: 0.75rem;
    color: #f87171;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: #ef4444;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .auth-links {
        gap: 0.75rem;
        width: auto;
        justify-content: center;
    }
}

.login-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.signup-btn {
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.3s ease;
}

.signup-btn:hover {
    transform: scale(1.05);
}

/* Profile Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    .modal-overlay {
        align-items: flex-end;
    }
}

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

.profile-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    width: 95%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card {
    max-width: 700px;
}

@media (max-width: 480px) {
    .profile-card {
        width: 100%;
        max-width: 100% !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 1.5rem 1rem;
        transform: translateY(100%);
    }
    
    .profile-header {
        margin-bottom: 1.2rem;
    }

    .profile-header h2 {
        font-size: 1.1rem !important;
    }

    .avatar-large {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .profile-body {
        padding-right: 0 !important;
        gap: 0.5rem;
        font-size: 0.75rem !important;
    }

    .profile-body h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .modal-overlay.active .profile-card {
        transform: translateY(0) !important;
    }
}

@media (min-width: 481px) {
    .modal-overlay.active .profile-card {
        transform: scale(1);
    }
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease forwards;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-glow);
    transform: translateX(4px);
}

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

@media (max-width: 480px) {
    .modal-overlay.active .profile-card {
        transform: translateY(0) !important;
    }
}

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

.avatar-large {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 0 20px var(--accent-glow);
}

.profile-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.profile-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.detail-item {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.detail-item label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.detail-item span {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--accent);
}

.btn-logout-full {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.2s;
}

.btn-logout-full:hover {
    background: #ef4444;
    color: white;
}

.btn-delete-account {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: #991b1b;
    text-align: center;
    border: 1px solid rgba(153, 27, 27, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-account:hover {
    background: rgba(153, 27, 27, 0.05);
    border-color: #991b1b;
}

.btn-close {
    width: 100%;
    padding: 0.8rem;
    background: var(--surface-light);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close:hover {
    background: var(--glass-bg);
}

/* Mini button for results */
.btn-mini {
    padding: 0.4rem 0.8rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Searchable Select Styles */
.searchable-select {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding-left: 3rem; /* Space for search icon on left */
    padding-right: 4.5rem; /* Space for arrow and clear btn on right */
    text-overflow: ellipsis;
}

.search-input-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.4;
    transition: var(--transition);
}

.clear-btn {
    position: absolute;
    right: 2.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-light);
    border: none;
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.clear-btn:hover {
    background: #ef4444;
    color: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.6;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
}

.search-results.active {
    display: block;
}

@media (max-width: 480px) {
    .search-results {
        max-height: 220px;
    }
    
    .search-item {
        padding: 0.8rem 1rem;
    }
}

.search-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.search-item:hover, .search-item.selected {
    background: rgba(16, 185, 129, 0.1);
    padding-left: 1.5rem;
}

.search-item .college-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.search-item .college-code {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scrollbar for results */
.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-track {
    background: transparent;
}
.search-results::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 10px;
}
/* Landing Page Specific Styles */
html {
    scroll-behavior: smooth;
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
}

.logo-text span {
    color: var(--accent);
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-left: auto;
    padding-left: 4rem;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.badge-new {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '''';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-glow);
    z-index: -1;
}

.hero .subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.main-cta {
    width: auto !important;
    padding: 1rem 2.5rem !important;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features */
.features {
    padding: 10rem 0;
    background: rgba(0,0,0,0.1);
    scroll-margin-top: 80px; /* Account for sticky header */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 span { color: var(--accent); }

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--surface);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-glow);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Predictor Section */
.predictor-section {
    padding: 8rem 0;
}

.region-card {
    padding: 1.5rem !important;
    text-align: center;
    margin-bottom: 2rem !important;
}

.region-options-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.radio-option:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--accent-glow);
}

.radio-option input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

@media (max-width: 480px) {
    .region-options-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .radio-option {
        width: 100%;
        justify-content: center;
    }
}

.region-card label { margin-bottom: 0; }

.region-options {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.radio-label:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--accent-glow);
}

.radio-label input { width: 20px; height: 20px; margin: 0; cursor: pointer; }

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    background: #080c14;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text);
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1.25rem;
        height: var(--nav-height);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        max-width: 100% !important;
        margin: 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .logo-text {
        margin-right: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -0.5px;
    }

    .nav-menu .auth-links {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 1rem;
        margin-top: 1rem;
    }

    .signup-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .hero-btns .btn-primary, 
    .hero-btns .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .features {
        padding: 5rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2.5rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand p {
        margin: 1.5rem auto 0;
    }

    .link-group {
        text-align: center;
    }

    .search-input-wrapper input {
        padding-left: 2.5rem;
        padding-right: 3rem;
        font-size: 0.9rem;
    }

    .search-icon {
        left: 0.75rem;
    }

    .clear-btn {
        right: 0.75rem;
    }

    /* Tabs scrollable on mobile */
    .tabs {
        padding: 0.3rem;
        gap: 0.3rem;
        margin-bottom: 2rem;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex: 0 0 auto;
    }
}
/* Auth Modal Specifics */
.auth-card {
    max-width: 450px !important;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

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

.auth-card form input {
    width: 100%;
}
