/* ═══════════════════════════════════════════════════════════════
   SITE-ULTRA.CSS — Medical Design System v3.0
   Teal/Cyan Primary · Clean · Professional · 2026
   Applied across ALL pages via !important overrides
   ═══════════════════════════════════════════════════════════════ */

/* ── Font already loaded via <link> in HTML — no @import needed ── */

/* ── HEADER ─────────────────────────────────────────────────── */
.header,
header[role="banner"],
.site-header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border-bottom: 1px solid rgba(13, 148, 136, 0.12) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 4px 24px rgba(13,148,136,0.06) !important;
}

/* Logo title — teal gradient */
.logo h1,
.logo-text h1,
header h1 {
    background: linear-gradient(135deg, #0369A1, #0D9488, #0891b2) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
}

.logo-developer strong {
    color: #0369A1 !important;
}

/* Nav links */
.nav-link {
    color: #64748b !important;
    border-radius: 10px !important;
}
.nav-link:hover {
    background: rgba(13, 148, 136, 0.08) !important;
    color: #0D9488 !important;
}
.nav-link.active {
    background: linear-gradient(135deg, #0369A1, #0D9488) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.3) !important;
    -webkit-text-fill-color: #fff !important;
}

/* ── BODY & BACKGROUND ─────────────────────────────────────── */
body {
    background: #F4F4F5 !important;
    background-image:
        radial-gradient(ellipse 70% 45% at 5% 0%, rgba(13, 148, 136, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 100%, rgba(3, 105, 161, 0.06) 0%, transparent 55%) !important;
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card,
.calculator-card,
.tool-card,
[class*="card"] {
    background: #ffffff !important;
    border: 1px solid rgba(13, 148, 136, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(13,148,136,0.07) !important;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}
.card:hover,
.calculator-card:hover,
.tool-card:hover,
[class*="card"]:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 16px 40px rgba(13,148,136,0.12) !important;
    border-color: rgba(13, 148, 136, 0.2) !important;
}

/* ── SECTION BACKGROUNDS ───────────────────────────────────── */
.tools-section,
.about-section,
.section,
[class*="section"] {
    background: #FAFAFA !important;
}

/* ── TOOL ICON ──────────────────────────────────────────────── */
.tool-icon {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(3, 105, 161, 0.08)) !important;
    color: #0D9488 !important;
    border: 1px solid rgba(13, 148, 136, 0.12) !important;
}
.tool-card:hover .tool-icon {
    background: linear-gradient(135deg, #0D9488, #0369A1) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ── TOOL LINK ──────────────────────────────────────────────── */
.tool-link {
    background: rgba(13, 148, 136, 0.07) !important;
    border: 1px solid rgba(13, 148, 136, 0.15) !important;
    color: #0D9488 !important;
    border-radius: 10px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 700 !important;
}
.tool-link:hover {
    background: linear-gradient(135deg, #0D9488, #0369A1) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn,
button[class*="btn"],
a[class*="btn"] {
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.btn-primary,
button[class*="btn-primary"],
a[class*="btn-primary"] {
    background: linear-gradient(135deg, #0D9488, #0369A1) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(13,148,136,0.3) !important;
    border: none !important;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 28px rgba(13,148,136,0.4) !important;
}
.btn-secondary,
button[class*="btn-secondary"],
a[class*="btn-secondary"] {
    background: #fff !important;
    color: #0D9488 !important;
    border: 1.5px solid rgba(13, 148, 136, 0.25) !important;
}
.btn-secondary:hover {
    background: rgba(13, 148, 136, 0.05) !important;
    border-color: #0D9488 !important;
    transform: translateY(-2px) !important;
}

/* ── STAT NUMBERS ──────────────────────────────────────────── */
.stat-number {
    background: linear-gradient(135deg, #0D9488, #0369A1) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer,
footer {
    background: #0f172a !important;
    color: rgba(255,255,255,0.6) !important;
}
.footer a,
footer a {
    color: #7dd3fc !important;
}
.footer h4,
footer h4 {
    color: rgba(255,255,255,0.9) !important;
}

/* ── THEME TOGGLE ──────────────────────────────────────────── */
.theme-toggle {
    background: #fff !important;
    border: 1px solid rgba(13, 148, 136, 0.2) !important;
    border-radius: 10px !important;
    color: #64748b !important;
}
.theme-toggle:hover {
    background: rgba(13, 148, 136, 0.08) !important;
    color: #0D9488 !important;
}

/* ── BOTTOM TAB BAR ────────────────────────────────────────── */
.bottom-tab-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(13, 148, 136, 0.12) !important;
    box-shadow: 0 -4px 24px rgba(13,148,136,0.08) !important;
}
.tab-item {
    color: #94a3b8 !important;
}
.tab-item.active {
    color: #0D9488 !important;
    background: rgba(13, 148, 136, 0.08) !important;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: #1E293B !important;
    letter-spacing: -0.02em;
}
p {
    color: #64748B;
}
.text-primary {
    -webkit-text-fill-color: unset;
    color: #0D9488 !important;
}

/* ── INPUTS ────────────────────────────────────────────────── */
input:not([type=checkbox]):not([type=radio]),
select,
textarea {
    background: #FAFAFA !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #1E293B !important;
    border-radius: 12px !important;
}
input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
    border-color: #0D9488 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1) !important;
    outline: none !important;
}

/* ── HERO BADGE ─────────────────────────────────────────────── */
.hero-badge {
    background: rgba(13, 148, 136, 0.07) !important;
    border: 1px solid rgba(13, 148, 136, 0.2) !important;
    color: #0D9488 !important;
}

/* ── FEATURE PILLS ─────────────────────────────────────────── */
.feature {
    background: #fff !important;
    border: 1px solid rgba(13, 148, 136, 0.12) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(13,148,136,0.07) !important;
}
.feature-icon {
    color: #10B981 !important;
}

/* ── DONATE BUTTON (header) ────────────────────────────────── */
.donate-header-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #F97316, #ea580c) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 10px rgba(249,115,22,0.3) !important;
    white-space: nowrap !important;
}
.donate-header-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(249,115,22,0.4) !important;
    background: linear-gradient(135deg, #ea580c, #c2410c) !important;
}

/* ── DONATE WRAPPER (page) ────────────────────────────────── */
.donate-wrapper {
    text-align: center !important;
    padding: 40px 20px !important;
    background: linear-gradient(135deg, #0D9488 0%, #0369A1 100%) !important;
    margin: 40px auto !important;
    border-radius: 16px !important;
    max-width: 600px !important;
}
.donate-wrapper h3 {
    color: #fff !important;
    font-size: 1.3rem !important;
    margin: 0 0 8px !important;
    font-weight: 700 !important;
}
.donate-wrapper p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.9rem !important;
    margin: 0 0 20px !important;
}
.donate-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #F97316 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 15px rgba(249,115,22,0.4) !important;
}
.donate-btn:hover {
    background: #ea580c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(249,115,22,0.5) !important;
}

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 99px; }
::-webkit-scrollbar-thumb { background: rgba(13,148,136,0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13,148,136,0.45); }

/* ── ABOUT SECTION ─────────────────────────────────────────── */
.about-section {
    background: linear-gradient(135deg, #F4F4F5 0%, #ecfdf5 50%, #f0f9ff 100%) !important;
}

/* ── MOBILE RESPONSIVENESS ─────────────────────────────────── */
@media (max-width: 768px) {
    body, html {
        overflow-x: clip !important;
        width: 100% !important;
    }
    #main-content {
        padding-bottom: 5.5rem !important;
    }
    .footer {
        padding-bottom: 5.5rem !important;
    }
    .grid, .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    img, svg, video, iframe {
        max-width: 100% !important;
        height: auto;
    }
    /* Hide donate btn on mobile menu — it lives in header-actions */
    .nav.open .donate-header-btn {
        display: none !important;
    }
}
