:root {
    --bg-color: #0b0e14;
    --accent-cyan: #00d2ff;
    --accent-emerald: #2ecc71;
    --accent-warn: #ff9a00;
    --accent-danger: #ff4b2b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: move-blob 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #7000ff;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-emerald);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes move-blob {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 100px); }
}

/* Header */
.premium-header {
    text-align: center;
    padding: 60px 20px;
}

.premium-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.premium-header h1 span {
    color: var(--accent-cyan);
    font-style: italic;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Container & Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.metabolic-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Controller */
.controller h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

#age-slider {
    width: 100%;
    accent-color: var(--accent-cyan);
    margin-bottom: 25px;
}

.status-indicators {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.indicator .label { color: var(--text-secondary); }
.indicator .value { font-weight: 600; color: var(--accent-warn); }

/* Organ Map */
.organ-map {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.organ-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.organ-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.organ-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.organ-btn.active {
    background: var(--accent-cyan);
    color: black;
    font-weight: 600;
}

.organ-detail h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.organ-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.bio-mechanism {
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    padding: 20px;
}

.bio-mechanism h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.bio-mechanism ul {
    list-style: none;
}

.bio-mechanism li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.bio-mechanism li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Metformine Box */
.metformine-box {
    position: relative;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-emerald);
    color: black;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
}

.metformine-animation {
    margin-top: 30px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mitochondria {
    width: 200px;
    height: 60px;
    background: rgba(46, 204, 113, 0.1);
    border: 2px dashed var(--accent-emerald);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ampk-sensor {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Glossary Terms */
.glossary-term {
    color: var(--accent-cyan);
    border-bottom: 1px dashed var(--accent-cyan);
    cursor: help;
    font-weight: 500;
}

/* Tooltip */
.tooltip-box {
    position: fixed;
    z-index: 1000;
    background: rgba(15, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-cyan);
    padding: 15px;
    border-radius: 10px;
    max-width: 250px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
    display: none;
}

/* Footer */
.premium-footer {
    display: flex;
    justify-content: space-around;
    padding: 60px 20px;
    border-top: 1px solid var(--glass-border);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ref-links {
    list-style: none;
    margin-top: 15px;
}

.ref-links li {
    margin-bottom: 12px;
}

.ref-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.ref-links a::before {
    content: "🔗";
    margin-right: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.ref-links a:hover {
    color: var(--accent-cyan);
}

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