/* =========================================================
   EQ-LEAD | Professional Blue & Yellow Theme
   Full Version — Complete & Optimized
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary-blue: #1e40af;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --accent-yellow: #facc15;
    --accent-yellow-dark: #eab308;
    --accent-yellow-glow: rgba(250, 204, 21, 0.35);
    --dark-bg: #0f172a;
    --dark-bg-soft: #1e293b;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #e2e8f0;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: #fff;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.nav-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fff;
}
.nav-brand-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent-yellow);
    letter-spacing: 0.3px;
}
.nav-brand::before { display: none; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 9px 16px;
    font-size: 0.93rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links a:hover {
    background: rgba(250, 204, 21, 0.15);
    color: var(--accent-yellow);
}
.nav-links a:hover::after { width: 60%; }

.nav-btn-login {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    color: var(--primary-blue-dark) !important;
    font-weight: 700 !important;
    padding: 9px 20px !important;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--accent-yellow-glow);
    border: none;
    cursor: pointer;
    font-size: 0.93rem;
    font-family: inherit;
    transition: all 0.25s ease;
}
.nav-btn-login::after { display: none; }
.nav-btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fde047 0%, var(--accent-yellow) 100%) !important;
    box-shadow: 0 6px 18px rgba(250, 204, 21, 0.5);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1150px;
    margin: 36px auto;
    padding: 0 24px;
}

/* ==================== HEADINGS ==================== */
h1 {
    color: var(--primary-blue-dark);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    animation: fadeInUp 0.5s ease;
}
h2 {
    color: var(--primary-blue-dark);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 32px 0 16px;
    position: relative;
    padding-left: 14px;
}
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    background: var(--accent-yellow);
    border-radius: 3px;
    animation: growHeight 0.5s ease;
}
@keyframes growHeight {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
.subtitle {
    color: var(--text-muted);
    margin-bottom: 26px;
    font-size: 1rem;
    animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== AUTH BOX (login.php / register.php standalone) ==================== */
.auth-box {
    max-width: 440px;
    margin: 70px auto;
    background: var(--card-bg);
    padding: 42px 38px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent-yellow);
    animation: authPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.auth-box::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-box::after {
    content: "";
    position: absolute;
    bottom: -80px; left: -80px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
@keyframes authPop {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}
.auth-logo img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.18);
    border: none;
    animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.auth-box h2 {
    color: var(--primary-blue-dark);
    margin-bottom: 6px;
    font-size: 1.55rem;
    padding-left: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}
.auth-box h2::before { display: none; }
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 26px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.auth-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 2;
}
.auth-box input {
    width: 100%;
    padding: 13px 15px;
    margin-bottom: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
    z-index: 2;
}
.auth-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}
.auth-box button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.auth-box button::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;
}
.auth-box button:hover::before { left: 100%; }
.auth-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
}
.auth-alt {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 18px;
    position: relative;
    z-index: 2;
}
.auth-alt a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.auth-alt a:hover { color: var(--accent-yellow-dark); }

/* ==================== MESSAGES ==================== */
.error {
    color: var(--danger);
    background: var(--danger-bg);
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--danger);
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: shakeIn 0.4s ease;
}
@keyframes shakeIn {
    0% { transform: translateX(-8px); opacity: 0; }
    25% { transform: translateX(6px); }
    50% { transform: translateX(-4px); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); opacity: 1; }
}
.success {
    color: var(--success);
    background: var(--success-bg);
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--success);
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInLeft 0.4s ease;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== STATS CARDS ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 22px 0 34px;
}
.stat-card {
    background: var(--card-bg);
    padding: 24px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 4px solid var(--accent-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.03) 0%, transparent 100%);
    pointer-events: none;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    animation: countUp 0.6s ease;
    position: relative;
    z-index: 2;
}
@keyframes countUp {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* ==================== MODULE CARDS ==================== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 18px;
}
.module-card {
    background: var(--card-bg);
    padding: 28px 26px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}
.module-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.module-card:nth-child(1) { animation-delay: 0.05s; }
.module-card:nth-child(2) { animation-delay: 0.1s; }
.module-card:nth-child(3) { animation-delay: 0.15s; }
.module-card:nth-child(4) { animation-delay: 0.2s; }
.module-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-yellow);
    transition: width 0.35s ease;
}
.module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-yellow);
}
.module-card:hover::after { width: 100%; }
.module-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 10px;
    font-size: 1.12rem;
    font-weight: 700;
    transition: color 0.25s ease;
    position: relative;
    z-index: 2;
}
.module-card:hover h3 { color: var(--primary-blue); }
.module-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* ==================== STEP CONTAINER ==================== */
.step-container {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 22px;
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
}
.step-container::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ==================== STEP PROGRESS ==================== */
.step-progress {
    display: flex;
    margin-bottom: 36px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 0.78rem;
    box-shadow: var(--shadow-sm);
}
.step-progress span {
    flex: 1;
    text-align: center;
    padding: 13px 6px;
    background: #e2e8f0;
    color: var(--text-muted);
    font-weight: 500;
    border-right: 1px solid #cbd5e1;
    transition: all 0.3s ease;
    position: relative;
}
.step-progress span:last-child { border-right: none; }
.step-progress span.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    font-weight: 700;
    animation: pulseActive 2s infinite;
}
@keyframes pulseActive {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(250, 204, 21, 0.4); }
    50% { box-shadow: inset 0 0 0 4px rgba(250, 204, 21, 0.15); }
}
.step-progress span.done {
    background: var(--accent-yellow);
    color: var(--primary-blue-dark);
    font-weight: 600;
}

/* ==================== MOOD SELECTOR ==================== */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.mood-btn {
    padding: 17px 12px;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.mood-btn::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}
.mood-btn:hover::before { width: 300px; height: 300px; }
.mood-btn:hover {
    border-color: var(--primary-blue);
    background: #eff6ff;
    transform: translateY(-2px);
}
.mood-btn.selected {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* ==================== BREATHING CIRCLE ==================== */
.breathing-circle {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-blue-dark);
    transition: transform 4s ease-in-out, box-shadow 0.3s ease;
    box-shadow: 0 0 0 0 var(--accent-yellow-glow);
    animation: pulseGlow 2.5s infinite;
    position: relative;
}
.breathing-circle::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(250, 204, 21, 0.4);
    animation: rotateRing 12s linear infinite;
}
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.breathing-circle.inhale {
    transform: scale(1.5);
    box-shadow: 0 0 40px 10px var(--accent-yellow-glow);
}
.breathing-circle.exhale {
    transform: scale(1);
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-yellow-glow); }
    50% { box-shadow: 0 0 0 18px rgba(250, 204, 21, 0); }
}

/* ==================== SLIDERS ==================== */
.slider-group { margin: 24px 0; }
.slider-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}
.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
    accent-color: var(--primary-blue);
    cursor: pointer;
    transition: background 0.2s ease;
}
.slider-group input[type="range"]:hover { background: #94a3b8; }
.slider-value {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 800;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 6px;
    transition: all 0.2s ease;
}

/* ==================== SCRIPT COMPARISON ==================== */
.script-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 24px 0;
}
.script-box {
    padding: 24px;
    border-radius: var(--radius-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.script-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.script-box.low {
    background: var(--danger-bg);
    border-left: 5px solid var(--danger);
}
.script-box.high {
    background: var(--success-bg);
    border-left: 5px solid var(--success);
}
.script-box h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.script-box.low h4 { color: var(--danger); }
.script-box.high h4 { color: var(--success); }
.script-box label {
    display: block;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s ease;
}
.script-box label:hover { color: var(--primary-blue); }
.script-box input[type="radio"] {
    accent-color: var(--primary-blue);
    margin-right: 6px;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    color: var(--primary-blue-dark);
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px var(--accent-yellow-glow);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.55);
    background: linear-gradient(135deg, #fde047 0%, var(--accent-yellow) 100%);
}
.btn-primary:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-primary:disabled::before { display: none; }

/* ==================== SUCCESS BOX ==================== */
.success-box {
    background: linear-gradient(135deg, #eff6ff 0%, var(--success-bg) 100%);
    padding: 26px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--success);
    margin: 24px 0;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.success-box h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 10px;
    font-size: 1.15rem;
}
.success-box p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* ==================== SCENARIO / CONTEXT BOX ==================== */
.scenario-box,
.context-preview {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary-blue);
    margin: 22px 0;
    animation: fadeInUp 0.5s ease;
}
.scenario-box h3,
.context-preview h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.scenario-box p,
.context-preview p {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* ==================== DATA TABLES ==================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 18px 0 28px;
    background: var(--card-bg);
    animation: fadeInUp 0.5s ease;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.data-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
}
.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.data-table td {
    padding: 13px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-main);
    transition: background 0.2s ease;
}
.data-table tbody tr:nth-child(even) { background: #f8fafc; }
.data-table tbody tr:hover { background: #eff6ff; }
.data-table tbody tr:hover td {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}
.data-table tbody tr:last-child td { border-bottom: none; }

/* ==================== EXPORT ACTIONS ==================== */
.export-actions {
    display: flex;
    gap: 14px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}
.export-actions .btn-primary { padding: 12px 26px; }

/* ==================== TEXTAREA ==================== */
textarea {
    resize: vertical;
    transition: border 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    font-family: inherit;
}
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

/* ==================== REFLECTION PROMPT ==================== */
.reflection-prompt {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid var(--accent-yellow-dark);
    padding: 22px 26px;
    border-radius: var(--radius-md);
    margin: 20px 0 30px;
    box-shadow: var(--shadow-sm);
    animation: slideInLeft 0.5s ease;
    position: relative;
    overflow: hidden;
}
.reflection-prompt::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}
.reflection-prompt h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}
.reflection-prompt p {
    color: var(--text-main);
    margin-bottom: 14px;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    color: var(--text-light);
    padding: 60px 40px 0;
    margin-top: 60px;
    text-align: left;
    font-size: 0.88rem;
    animation: fadeIn 0.8s ease;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.footer::after {
    content: "";
    position: absolute;
    bottom: -100px; left: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.footer-container {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}
.footer-col h4 {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-yellow);
    display: inline-block;
    letter-spacing: 0.3px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 0;
}
.footer-col ul li a::before {
    content: "›";
    color: var(--accent-yellow);
    font-weight: 800;
    transition: transform 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--accent-yellow);
    padding-left: 6px;
}
.footer-col ul li a:hover::before { transform: translateX(3px); }

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}
.footer-brand-name::before {
    content: "◆ ";
    color: var(--accent-yellow);
}
.footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.88rem;
    margin-bottom: 20px;
    max-width: 380px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-socials a:hover {
    background: var(--accent-yellow);
    color: #1e3a8a;
    transform: translateY(-4px) rotate(8deg);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.45);
    border-color: var(--accent-yellow);
}
.footer-contact li {
    display: flex;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    align-items: flex-start;
    margin-bottom: 12px;
}
.footer-contact li span {
    color: var(--accent-yellow);
    font-size: 1rem;
    flex-shrink: 0;
}
.footer-bottom {
    max-width: 1150px;
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}
.footer-bottom p {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 6px;
}
.footer-bottom p:first-child {
    color: #facc15;
    font-weight: 600;
    font-size: 0.86rem;
}

/* =========================================================
   HERO SECTION (Landing Page)
   ========================================================= */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
    color: #fff;
    padding: 60px 40px 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(250,204,21,0.18) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -160px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-left { animation: fadeInUp 0.7s ease; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(250,204,21,0.35);
    color: #facc15;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 22px;
    animation: badgePulse 3s infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(250, 204, 21, 0); }
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.hero-title {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero-highlight {
    color: #facc15;
    position: relative;
    display: inline-block;
}
.hero-highlight::after {
    content: "";
    position: absolute;
    bottom: 2px; left: 0;
    width: 100%; height: 8px;
    background: rgba(250, 204, 21, 0.25);
    border-radius: 4px;
    z-index: -1;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: #dbeafe;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #1e3a8a;
    padding: 15px 32px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(250,204,21,0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-hero-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.6s ease;
}
.btn-hero-primary:hover::before { left: 100%; }
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(250,204,21,0.6);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 15px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.16);
    border-color: #facc15;
    transform: translateY(-3px);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 22px 20px;
    backdrop-filter: blur(8px);
}
.hero-stat { text-align: center; }
.hero-stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #facc15;
    line-height: 1.1;
}
.hero-stat-label {
    display: block;
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Hero visual */
.hero-right { display: flex; justify-content: center; align-items: center; }
.hero-visual {
    position: relative;
    width: 380px; height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease;
}
.hero-visual-ring {
    position: absolute;
    inset: 0;
    border: 1.5px dashed rgba(250,204,21,0.35);
    border-radius: 50%;
    animation: rotateRing 30s linear infinite;
}
.hero-visual-ring.ring-2 {
    inset: 40px;
    border-style: solid;
    border-color: rgba(255,255,255,0.15);
    animation-direction: reverse;
    animation-duration: 45s;
}
.hero-visual-core {
    width: 180px; height: 180px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.25),
                0 0 0 16px rgba(250, 204, 21, 0.12),
                0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 3;
    animation: floatCore 4s ease-in-out infinite;
    overflow: hidden;
}
@keyframes floatCore {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-visual-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
}
.hero-visual-label {
    margin-top: 28px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    z-index: 3;
}
.hero-visual-sub {
    font-size: 0.7rem;
    color: #93c5fd;
    letter-spacing: 2px;
    margin-top: 4px;
    z-index: 3;
}
.hero-visual-version {
    margin-top: 14px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #86efac;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}
.version-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 1.5s infinite;
}
.hero-scroll {
    position: absolute;
    bottom: 25px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    color: #93c5fd;
    z-index: 2;
}
.scroll-arrow {
    display: block;
    font-size: 1.6rem;
    color: #facc15;
    margin-top: 4px;
    animation: bounceArrow 2s infinite;
}
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
    padding: 80px 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}
.section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.15), transparent);
}
.section::after {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-alt {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
    position: relative;
    overflow: hidden;
}
.section-alt::before {
    content: "";
    position: absolute;
    bottom: -100px; left: -100px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.section-alt::after {
    content: "";
    position: absolute;
    top: 30px; right: 30px;
    width: 180px; height: 180px;
    background-image:
        radial-gradient(circle, rgba(30, 64, 175, 0.08) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.section-container {
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.section-title {
    font-size: 2.1rem;
    color: var(--primary-blue-dark);
    text-align: center;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.3px;
    padding-left: 0;
    display: block;
    position: relative;
    width: 100%;
}
.section-title::before { display: none; }
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 50px;
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================================
   ABOUT CARDS
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.about-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 34px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15,23,42,0.07);
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-card::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15,23,42,0.12);
    border-top-color: var(--accent-yellow);
}
.about-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    color: var(--primary-blue-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 18px;
    box-shadow: 0 6px 16px var(--accent-yellow-glow);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}
.about-card:hover .about-icon {
    transform: rotate(-8deg) scale(1.1);
}
.about-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}
.about-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

/* =========================================================
   PHYSIOLOGY CARDS
   ========================================================= */
.physiology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}
.physiology-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15,23,42,0.07);
    border-top: 4px solid var(--accent-yellow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.physiology-card::after {
    content: "";
    position: absolute;
    bottom: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.physiology-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15,23,42,0.12);
    border-top-color: var(--primary-blue);
}
.physiology-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 18px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    transition: transform 0.3s ease;
    border: 2px solid rgba(250, 204, 21, 0.4);
}
.physiology-card:hover .physiology-icon {
    transform: rotate(-6deg) scale(1.1);
}
.physiology-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 12px;
    font-size: 1.08rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-align: center;
}
.physiology-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    text-align: center;
}
.physiology-card p strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.feature-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    padding: 28px 26px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(15,23,42,0.06);
    border-left: 4px solid var(--accent-yellow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(30, 64, 175, 0.04) 50%);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(15,23,42,0.12);
    border-left-color: var(--primary-blue);
}
.feature-card h4 {
    color: var(--primary-blue-dark);
    font-size: 1.05rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}
.feature-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid #bfdbfe;
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
}
.feature-card:hover .feature-tag {
    background: var(--accent-yellow);
    color: var(--primary-blue-dark);
    border-color: var(--accent-yellow);
}

/* =========================================================
   STEPS TIMELINE
   ========================================================= */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.timeline-step {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px 22px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(15,23,42,0.06);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}
.timeline-step::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.timeline-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(15,23,42,0.12);
}
.timeline-step:hover::after { opacity: 1; }
.timeline-num {
    width: 54px; height: 54px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #facc15;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(30,64,175,0.3);
    transition: transform 0.3s ease;
}
.timeline-step:hover .timeline-num {
    transform: scale(1.1) rotate(-8deg);
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    color: var(--primary-blue-dark);
}
.timeline-step h4 {
    color: var(--primary-blue-dark);
    font-size: 0.98rem;
    margin-bottom: 8px;
}
.timeline-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    padding: 50px 40px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(30,64,175,0.25);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(250,204,21,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 7s ease-in-out infinite;
}
.cta-banner::after {
    content: "";
    position: absolute;
    bottom: -80px; left: -80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner h3 {
    font-size: 1.65rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.cta-banner p {
    color: #dbeafe;
    margin-bottom: 24px;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}
.cta-banner .btn-hero-primary {
    position: relative;
    z-index: 2;
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-yellow-dark));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-dark));
    color: var(--primary-blue-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 28px rgba(250, 204, 21, 0.7);
}

/* =========================================================
   SCROLL REVEAL CLASSES
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Section title animated underline */
.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--primary-blue));
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.section-title.visible::after {
    width: 80px;
}

@keyframes rippleAnim {
    to { transform: scale(2.5); opacity: 0; }
}

/* =========================================================
   FINAL LOGO FIX — Transparent, no white bg
   ========================================================= */
.navbar .nav-logo,
nav .nav-logo,
img.nav-logo {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer .footer-logo,
footer .footer-logo,
img.footer-logo {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* =========================================================
   MODAL STYLES — Login & Register (NO SCROLLBAR, FIT)
   ========================================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
    overflow: hidden;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: #ffffff;
    max-width: 400px;
    width: 100%;
    padding: 28px 30px 24px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-top: 5px solid var(--accent-yellow);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: none;
    height: auto;
    overflow: visible;
}
.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}
/* Hide scrollbar in all browsers */
.modal-box::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.modal-box,
.modal-overlay {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-box::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.modal-box::after {
    content: "";
    position: absolute;
    bottom: -80px; left: -80px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}
.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}
.modal-box .auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.modal-box .auth-logo img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.22) !important;
    border: none;
    animation: floatLogo 4s ease-in-out infinite;
}
.modal-box h2 {
    color: var(--primary-blue-dark);
    margin-bottom: 4px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 800;
    position: relative;
    z-index: 2;
    padding-left: 0;
}
.modal-box h2::before { display: none; }
.modal-box .auth-subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.modal-box label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}
.modal-box input {
    width: 100%;
    padding: 10px 13px;
    margin-bottom: 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
    z-index: 2;
}
.modal-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}
.modal-box button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: 4px;
}
.modal-box button[type="submit"]::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;
}
.modal-box button[type="submit"]:hover::before { left: 100%; }
.modal-box button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
}
.modal-box .auth-alt {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 14px;
    position: relative;
    z-index: 2;
}
.modal-box .auth-alt a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.modal-box .auth-alt a:hover { color: var(--accent-yellow-dark); }
.modal-box .error {
    padding: 8px 12px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    border-radius: 6px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-right { order: -1; }
    .hero-visual { width: 300px; height: 300px; }
    .hero-visual-core { width: 140px; height: 140px; }
    .hero-visual-logo { width: 100%; height: 100%; }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .script-split { grid-template-columns: 1fr; }
    .physiology-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
    }
    .physiology-card { padding: 26px 22px; }
    .physiology-icon {
        width: 58px;
        height: 58px;
        font-size: 1.7rem;
    }
    .physiology-card h3 { font-size: 1.02rem; }
    .physiology-card p { font-size: 0.88rem; }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }
    .nav-brand-text { align-items: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .nav-links a { margin: 0; padding: 8px 12px; font-size: 0.85rem; }
    .step-progress { font-size: 0.68rem; }
    .step-progress span { padding: 10px 4px; }
    .step-container { padding: 24px 18px; }
    h1 { font-size: 1.5rem; }
    .export-actions { flex-direction: column; }
    .export-actions .btn-primary { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
    .modal-box .auth-logo img {
        width: 90px !important;
        height: 90px !important;
    }
}

@media (max-width: 400px) {
    .modal-box .auth-logo img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Sa mababang screen (laptop), bawasan ng kaunti */
@media (max-height: 700px) {
    .modal-box .auth-logo img {
        width: 90px !important;
        height: 90px !important;
    }
}
@media (max-width: 600px) {
    .hero { padding: 40px 20px 70px; }
    .hero-title { font-size: 1.8rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .section { padding: 50px 20px; }
    .section-title { font-size: 1.45rem; padding: 0 10px; }
    .section-subtitle { padding: 0 10px; font-size: 0.92rem; }
    .footer { padding: 40px 20px 20px; }
    .footer-container { grid-template-columns: 1fr; gap: 28px; }
    .footer-col h4 { font-size: 0.92rem; }
    .auth-box { margin: 40px 15px; padding: 32px 24px; }

    .about-grid,
    .features-grid,
    .steps-timeline,
    .physiology-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .about-card,
    .feature-card,
    .timeline-step,
    .physiology-card {
        padding: 24px 20px;
    }
    .physiology-icon {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
        margin-bottom: 14px;
    }
    .physiology-card h3 { font-size: 1rem; margin-bottom: 10px; }
    .physiology-card p { font-size: 0.85rem; line-height: 1.6; }

    .modal-overlay { padding: 10px; }
    .modal-box {
        padding: 24px 22px 20px;
        max-width: 100%;
        border-radius: 14px;
    }
    .modal-close {
        top: 8px;
        right: 10px;
        font-size: 1.3rem;
        width: 28px;
        height: 28px;
    }
    .modal-box .auth-logo img { width: 54px; height: 54px; }
    .modal-box h2 { font-size: 1.15rem; }
    .modal-box .auth-subtitle { font-size: 0.78rem; margin-bottom: 14px; }
    .modal-box label { font-size: 0.78rem; }
    .modal-box input { padding: 9px 12px; font-size: 0.88rem; margin-bottom: 10px; }
    .modal-box button[type="submit"] { padding: 10px; font-size: 0.9rem; }
    .modal-box .auth-alt { font-size: 0.78rem; margin-top: 12px; }
}

@media (max-width: 400px) {
    .section-title { font-size: 1.3rem; }
    .physiology-card h3 { font-size: 0.95rem; }
    .physiology-card p { font-size: 0.82rem; }
}

@media (max-height: 700px) {
    .modal-box { padding: 22px 26px 18px; }
    .modal-box .auth-logo img { width: 54px; height: 54px; }
    .modal-box h2 { font-size: 1.15rem; }
    .modal-box .auth-subtitle { margin-bottom: 12px; }
    .modal-box input { margin-bottom: 10px; padding: 9px 12px; }
    .modal-box button[type="submit"] { padding: 10px; }
}

/* ==================== UTILITY ==================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }