/* ==========================
   RESET & VARIABLES (PREMIUM)
========================== */

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

html {
    scroll-behavior: smooth;
}

:root {
    /* Premium Color Palette */
    --bg-main: #f8fafc;
    --surface: #ffffff;
    --primary: #0f172a;
    --primary-light: #334155;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    
    /* Accent Colors */
    --green: #22c55e;
    --green-light: #f0fdf4;
    --green-border: #bbf7d0;
    --red: #ef4444;
    --red-light: #fef2f2;
    --red-border: #fecaca;
    --gold: #f59e0b;
    --gold-light: #fffbeb;
    --gold-border: #fde68a;
    --blue-light: #eff6ff;
    --blue-border: #bfdbfe;
    
    /* Elegant Shadows */
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.03);
    --shadow-mid: 0 12px 35px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 20px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 8px 25px var(--accent-glow);
    
    /* Refined Radii */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* ==========================
   NAVBAR (GLASSMORPHISM)
========================== */

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: 0.3s var(--ease);
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s var(--ease);
}

.nav-links a:hover::after {
    width: 100%;
}

#userArea {
    display: flex;
    gap: 16px;
    align-items: center;
}

.login-btn,
.signup-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s var(--ease);
}

.login-btn {
    background: transparent;
    color: var(--text-dark);
    border: none;
}

.login-btn:hover {
    color: var(--accent);
}

.signup-btn {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-soft);
}

.signup-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-mid);
}

/* ==========================
   HERO (SLEEK DARK MODE)
========================== */

.hero {
    padding: 100px 8%;
    background: var(--primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px auto;
    position: relative;
    font-weight: 400;
}

/* ==========================
   SEARCH BOX (MINIMAL)
========================== */

.search-box {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

#searchInput, #citySelect {
    padding: 18px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--surface);
    color: var(--text-dark);
    box-shadow: var(--shadow-mid);
    transition: 0.3s var(--ease);
}

#searchInput {
    width: 420px;
}

#citySelect {
    width: 220px;
    cursor: pointer;
}

#searchInput:focus, #citySelect:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

#compareBtn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: 0.3s var(--ease);
}

#compareBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
    background: #1d4ed8;
}

/* ==========================
   SUGGESTIONS
========================== */

#suggestions {
    width: 420px;
    margin: 10px auto;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

#suggestions div {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.2s var(--ease);
    border-bottom: 1px solid #f1f5f9;
}

#suggestions div:hover {
    background: #f8fafc;
    padding-left: 28px;
    color: var(--accent);
}

/* ==========================
   RESULTS & CARDS (PREMIUM WITH ALL BADGES)
========================== */

.results {
    padding: 80px 8%;
}

#resultHeading {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 32px;
}

#resultCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ==========================
   RESULT CARD - PREMIUM DESIGN
========================== */
.result-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: left;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-mid);
    border-color: #cbd5e1;
}

/* Lab Header with Logo */
.lab-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfc, #ffffff);
}

.lab-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.lab-logo.lab-2 { background: #059669; }
.lab-logo.lab-3 { background: #d97706; }
.lab-logo.lab-4 { background: #dc2626; }

.lab-info {
    flex: 1;
}

.lab-info .lab-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
}

.lab-info .lab-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Rating Stars */
.lab-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.lab-rating .stars {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
}

.lab-rating .rating-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.lab-rating .rating-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* Badges Row */
.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-nabl {
    background: var(--blue-light);
    color: var(--accent);
    border: 1px solid var(--blue-border);
}

.badge-home {
    background: var(--green-light);
    color: #166534;
    border: 1px solid var(--green-border);
}

.badge-fast {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.badge-cashback {
    background: var(--gold-light);
    color: #b45309;
    border: 1px solid var(--gold-border);
}

/* Card Content */
.card-content {
    padding: 24px;
}

.result-card h3 {
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.test-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Savings Badge */
.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--red-light);
    color: var(--red);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid var(--red-border);
}

/* Price Section */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.result-price {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1px;
}

.original-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

/* Report Time */
.report-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.report-time .clock-icon {
    font-size: 14px;
}

/* Cashback Banner */
.cashback-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    margin: 0 -24px 20px -24px;
}

/* Card Actions */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-btn, .fav-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s var(--ease);
}

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

.book-btn:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-soft);
}

.fav-btn {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.fav-btn:hover {
    background: #fee2e2;
}

/* Best Deal Ribbon */
.best-deal {
    position: absolute;
    top: 16px;
    right: -35px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    padding: 5px 40px;
    font-size: 10px;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

/* ==========================
   POPULAR CARDS
========================== */
.popular-card, .lab-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.popular-card:hover, .lab-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-mid);
    border-color: #cbd5e1;
}

.popular-card h3, .lab-card h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 20px;
}

.popular-card p, .lab-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ==========================
   BOOKING CARDS
========================== */
.booking-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: 0.4s var(--ease);
}

.booking-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-mid);
}

.booking-card h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 18px;
}

.booking-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.status {
    display: inline-block;
    background: var(--green-light);
    color: #166534;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--green-border);
    margin-top: 8px;
}

.receipt-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s var(--ease);
}

.receipt-btn:hover {
    background: var(--primary-light);
}

/* ==========================
   RESULT & HISTORY TABLES
========================== */

#resultTable, #historyTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

#resultTable th, #historyTable th {
    background: #f8fafc;
    color: var(--text-muted);
    padding: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

#resultTable td, #historyTable td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
    font-size: 14px;
    text-align: left;
}

#resultTable tr:last-child td, #historyTable tr:last-child td {
    border-bottom: none;
}

#resultTable tr:hover, #historyTable tr:hover {
    background: #fcfcfd;
}

#historyTable button {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red-border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s var(--ease);
}

#historyTable button:hover {
    background: var(--red-light);
}

/* Table Badges */
.table-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    margin: 0 2px;
}

.table-badge-nabl {
    background: var(--blue-light);
    color: var(--accent);
}

.table-badge-home {
    background: var(--green-light);
    color: #166534;
}

/* ==========================
   POPUPS (GLASSMORPHISM)
========================== */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup.show {
    display: flex;
}

.popup-content {
    width: 460px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: popupIn 0.4s var(--ease);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

.popup-content h2 {
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 24px;
}

.popup-content input, .popup-content select {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: 0.3s var(--ease);
    background: rgba(255, 255, 255, 0.8);
}

.popup-content input:focus, .popup-content select:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.popup-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.popup-buttons button, .payment-btn, .cancel-btn, #downloadReceiptBtn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s var(--ease);
}

#confirmBtn, .online-btn, #downloadReceiptBtn {
    background: var(--primary);
    color: white;
}

#confirmBtn:hover, .online-btn:hover, #downloadReceiptBtn:hover {
    background: var(--primary-light);
}

.popup-buttons button:last-child, .cancel-btn {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.popup-buttons button:last-child:hover, .cancel-btn:hover {
    background: #f1f5f9;
}

.cash-btn {
    background: var(--green-light);
    color: #166534;
    border: 1px solid var(--green-border);
    margin-top: 12px;
}

.cash-btn:hover {
    background: #dcfce7;
}

/* Success Popup */
.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #166534;
    border: 2px solid var(--green-border);
}

.success-popup p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 8px;
    text-align: center;
}

/* ==========================
   PROFILE SECTION
========================== */

.profile-section {
    padding: 80px 8%;
}

.profile-section h2, .booking-history h2, .popular-tests h2, .popular-labs h2, .about h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 32px;
}

.profile-card {
    max-width: 500px;
    margin: auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-mid);
    border: 1px solid var(--border-light);
}

.profile-avatar {
    width: 110px;
    height: 110px;
    margin: auto;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h3 {
    margin-top: 24px;
    font-size: 22px;
    color: var(--text-dark);
}

.profile-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.profile-card button {
    margin-top: 24px;
    padding: 12px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    transition: 0.3s var(--ease);
}

.profile-card button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.profile-stats {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.stat-card h3 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 800;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================
   BOOKING HISTORY
========================== */

.booking-history {
    padding: 80px 8%;
    background: var(--surface);
}

.history-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.history-top input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    transition: 0.3s var(--ease);
}

.history-top input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.history-top button {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: 0.3s var(--ease);
}

.history-top button:hover {
    background: var(--primary-light);
}

/* ==========================
   POPULAR SECTIONS & ABOUT
========================== */

.popular-tests, .popular-labs {
    padding: 80px 8%;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.about {
    text-align: center;
    background: white;
}

.about p {
    max-width: 800px;
    margin: auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ==========================
   FOOTER
========================== */

.footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #1e293b;
}

.footer h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer p {
    color: #94a3b8;
    font-size: 14px;
}

/* ==========================
   PROFILE DROPDOWN
========================== */

.profile-dropdown {
    position: relative;
}

.profile-btn {
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s var(--ease);
}

.profile-btn:hover {
    background: #e2e8f0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 240px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    animation: popupIn 0.2s var(--ease);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: white;
    text-align: left;
    font-size: 14px;
    color: var(--text-dark);
    transition: 0.2s var(--ease);
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu button:hover {
    background: #f8fafc;
    color: var(--accent);
    padding-left: 24px;
}

/* ==========================
   NOTIFICATIONS
========================== */

.notification-card {
    background: var(--surface);
    padding: 20px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: 0.3s var(--ease);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.notification-card:hover {
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.notification-card.unread {
    background: var(--blue-light);
    border-left: 4px solid var(--accent);
    border-color: var(--blue-border);
}

.notification-card button {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s var(--ease);
}

.notification-card button:hover {
    background: var(--red-light);
    color: var(--red);
    border-color: var(--red-border);
}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width: 992px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .hero h1 { font-size: 40px; }
    #searchInput { width: 100%; max-width: 100%; }
    .search-box { flex-direction: column; width: 100%; max-width: 500px; margin: 0 auto; }
    #citySelect, #compareBtn { width: 100%; }
    .history-top { flex-direction: column; }
}

@media(max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 32px; }
    #historyTable { display: block; overflow-x: auto; white-space: nowrap; }
    .popup-content { width: 90%; padding: 30px; }
    #resultCards { grid-template-columns: 1fr; }
    .lab-header { flex-wrap: wrap; }
}

@media(max-width: 480px) {
    .navbar { padding: 16px; }
    .nav-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 28px; }
    .card-badges { flex-direction: column; align-items: flex-start; }
    .popup-content { padding: 24px; }
}