/* public/css/style.css */

/* ========================================================= */
/* 1. ROOT & BASE STYLES                                     */
/* ========================================================= */
:root {
    --bg-space: #0f172a; 
    --glass-bg: rgba(30, 41, 59, 0.7); 
    --glass-border: rgba(56, 189, 248, 0.2); 
    --neon-blue: #0ea5e9; 
    --neon-glow: rgba(14, 165, 233, 0.4);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --success: #10b981;
    --yh-card-bg: rgba(30, 41, 59, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }

body {
    background: #050816;
    color: var(--text-main);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========================================================= */
/* 2. UTILITIES                                              */
/* ========================================================= */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hidden-step { display: none !important; }
.fade-in { animation: fadeIn 0.8s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.yh-reveal-up {
    opacity: 0;
    transform: translateY(18px);
    animation: yhRevealUp 0.8s ease forwards;
}

.yh-landing-title.yh-reveal-up { animation-delay: 0.05s; }
.yh-landing-narrative.yh-reveal-up { animation-delay: 0.16s; }
.yh-landing-subtitle.yh-reveal-up { animation-delay: 0.26s; }
.yh-landing-cta-row.yh-reveal-up { animation-delay: 0.36s; }
.yh-landing-proof-strip.yh-reveal-up { animation-delay: 0.46s; }
.yh-landing-metrics.yh-reveal-up { animation-delay: 0.56s; }
.yh-landing-visual-card.yh-reveal-up { animation-delay: 0.24s; }

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

@keyframes yhScrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateY(4px);
        opacity: 1;
    }
}

@keyframes yhVideoFloat {
    0% {
        transform: scale(1.04) translateY(0);
    }
    100% {
        transform: scale(1.08) translateY(-8px);
    }
}

@keyframes yhNoiseDrift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-16px, -24px, 0);
    }
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-large { margin-bottom: 2rem; }
.mb-1-25 { margin-bottom: 1.25rem; }
.mb-small { margin-bottom: 1rem; }
.mt-large { margin-top: 2rem; }
.mt-small { margin-top: 0.5rem; }
.py-large { padding-top: 2rem; padding-bottom: 2rem; }
.flex-row { display: flex; align-items: center; gap: 0.5rem; }
.w-full { width: 100%; }
.color-neon { color: var(--neon-blue); }
.fw-bold { font-weight: bold; }
.relative-panel { position: relative; }

/* Global Fonts */
.main-title { font-size: 2rem; font-weight: 700; color: var(--text-main); letter-spacing: 1px; }
.subtitle { color: var(--text-muted); font-size: 0.875rem; font-weight: 300; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }

/* ========================================================= */
/* 3. MAIN MODAL CONTAINERS                                  */
/* ========================================================= */
.step-container {
    display: flex;
    align-items: center;       /* Center vertically */
    justify-content: center;   /* Center horizontally */
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;          /* Scrollable kung maliit screen */
}

/* Base Modal Card (Para sa Step 2, 5, 6, 7, 8) */
.card {
    background: var(--yh-card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%; max-width: 450px; min-height: 400px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; flex-direction: column; justify-content: center;
}

/* ========================================================= */
/* 4. STEP 1: 3D FLIP CARD (LOGIN & REGISTER)                */
/* ========================================================= */
.form-card-ultrawide { 
    max-width: 1100px; width: 95vw; height: 75vh; min-height: 650px; 
    padding: 0; display: flex; flex-direction: row; overflow: hidden; 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    border: 1px solid var(--glass-border); border-radius: 1rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); 
}

.panel-left { width: 45%; background: #000; border-right: 1px solid var(--glass-border); display: flex; position: relative; z-index: 10; }
.intro-video { width: 100%; height: 100%; object-fit: cover; }

.panel-right-wrapper { width: 55%; height: 100%; position: relative; perspective: 1500px; background: transparent; }

.flip-card-inner { 
    width: 100%; height: 100%; position: absolute; 
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; 
}
.flip-card-inner.is-flipped { transform: rotateY(-180deg); }

.flip-card-front, .flip-card-back { 
    width: 100%; height: 100%; position: absolute; top: 0; left: 0; 
    backface-visibility: hidden; -webkit-backface-visibility: hidden; 
    display: flex; flex-direction: column; padding: 2.5rem 4rem; overflow-y: auto; 
    background: rgba(30, 41, 59, 0.85); /* Mas maliwanag na background ng form */
}
.flip-card-front { z-index: 2; transform: rotateY(0deg); cursor: pointer; }
.flip-card-back { transform: rotateY(180deg); }

/* Magic Wrapper para laging nasa gitna ang forms */
.auth-center-wrapper { margin: auto; display: flex; flex-direction: column; align-items: center; width: 100%; }

.step1-logo { width: 70px; margin-bottom: 5px; opacity: 0.9; }
.step-indicator-badge { display: inline-block; background: rgba(14, 165, 233, 0.1); border: 1px solid var(--neon-blue); padding: 8px 20px; border-radius: 20px; color: var(--neon-blue); font-weight: 600; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ========================================================= */
/* 5. FORM INPUTS & BUTTONS                                  */
/* ========================================================= */
/* Pill Inputs (Login) */
.login-ui-container { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 350px; cursor: default; }
.pill-input { background: transparent; border: 1px solid var(--neon-blue); color: #fff; border-radius: 30px; padding: 12px 20px; width: 100%; margin-bottom: 1.25rem; text-align: center; outline: none; font-size: 0.95rem; transition: 0.3s; }
.pill-input:focus { border-color: #fff; box-shadow: 0 0 10px rgba(14,165,233,0.3); }
.pill-btn-login { background: transparent; border: 1px solid var(--success); color: #fff; border-radius: 30px; padding: 12px 40px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s; width: 50%; }
.pill-btn-login:hover { background: rgba(16,185,129,0.1); box-shadow: 0 0 15px rgba(16,185,129,0.3); }

/* Standard Inputs (Register & Modals) */
.form-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; width: 100%; justify-content: center; }
.form-row-last { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; width: 100%; justify-content: center; }
.form-group { margin-bottom: 1.25rem; text-align: left; width: 100%; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-muted); }
.input-field { width: 100%; padding: 0.875rem; background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.5rem; outline: none; font-size: 0.95rem; transition: 0.3s; }
.input-field:focus { border-color: var(--neon-blue); box-shadow: 0 0 10px var(--neon-glow); }
.input-field option { background: #111827; color: white; }
textarea.input-field { resize: none; }

/* Buttons */
.btn-primary { width: 100%; background: var(--neon-blue); color: #fff; padding: 0.875rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; box-shadow: 0 4px 15px var(--neon-glow); }
.btn-primary:hover { background: #0284c7; transform: translateY(-2px); }
.btn-secondary { width: 100%; background: transparent; color: var(--neon-blue); border: 1px solid var(--neon-blue); padding: 0.875rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-secondary:hover { background: var(--neon-glow); color: #fff; }
.btn-large { padding: 1rem; font-size: 1.1rem; }
.btn-back-icon { position: absolute; top: 1.5rem; left: 1.5rem; background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 0.85rem; transition: 0.3s; z-index: 10; }
.btn-back-icon:hover { color: var(--neon-blue); }

.forgot-link { color: var(--text-muted); font-size: 0.85rem; text-decoration: underline; margin-bottom: 2rem; transition: 0.2s; }
.forgot-link:hover { color: #fff; }
.divider { display: flex; align-items: center; text-align: center; color: var(--text-muted); width: 100%; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
.divider span { padding: 0 10px; font-size: 0.8rem; font-weight: 600; }

/* ========================================================= */
/* 6. SPECIFIC STEPS (AI, APPROVED, OTP)                     */
/* ========================================================= */
/* AI Spinner */
.spinner { border: 3px solid rgba(255, 255, 255, 0.1); border-top: 3px solid var(--neon-blue); border-radius: 50%; width: 56px; height: 56px; animation: spin 1s linear infinite; margin: 0 auto 2rem; box-shadow: 0 0 15px var(--neon-glow); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#ai-status-title { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* Approved Card (Overrides default card width) */
.approved-card-container { display: flex; height: 85vh; padding: 0 !important; overflow: hidden !important; max-width: 1200px !important; }
.approved-form-right { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 2.5rem 4rem; width: 55%; overflow-y: auto; }
.approved-badge-section { margin-bottom: 1rem; }
.approved-title-big { font-size: 2.5rem; font-weight: 800; margin: 0; }
.success-badge-new { display: inline-block; background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); padding: 5px 15px; border-radius: 20px; color: var(--success); font-weight: 600; font-size: 0.85rem; margin-top: 1rem; }
.guidelines-box-approved { background: rgba(14, 165, 233, 0.03); border: 1px solid var(--glass-border); padding: 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* OTP Inputs */
.otp-styled-input { font-size: 2.5rem; letter-spacing: 15px; font-weight: bold; background: rgba(0,0,0,0.4); padding: 15px; text-align: center; }
.timer-container { font-family: 'Courier New', monospace; margin: 1.5rem 0; }

/* Toast */
#toast-notification { position: fixed; bottom: 30px; right: 30px; background: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: var(--success); padding: 1rem 2rem; border-radius: 8px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 9999; font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 10px; transform: translateY(150px); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#toast-notification.show { transform: translateY(0); opacity: 1; }
#toast-notification.error-toast { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #ef4444; }

/* ========================================================= */
/* 7. STRICT RESPONSIVENESS                                  */
/* ========================================================= */
@media (max-width: 1280px) {
    .form-card-ultrawide { max-width: 900px; height: 65vh; min-height: 550px; margin-top: 40px; }
    .flip-card-front, .flip-card-back, .approved-form-right { padding: 2rem 2.5rem; }
}

@media (max-width: 1024px) {
    .form-card-ultrawide { flex-direction: row; max-width: 900px; height: 60vh; min-height: 500px; }
    .panel-left { width: 45%; } 
    .panel-right-wrapper, .approved-form-right { width: 55%; height: 100%; }
    .flip-card-front, .flip-card-back { padding: 2rem; } 
    .card { padding: 2rem 1.5rem; min-height: 400px; } /* Modals */
}

@media (max-width: 850px) {
    .form-card-ultrawide { flex-direction: column; max-width: 700px; height: auto; min-height: 85vh; }
    .panel-left { width: 100%; height: 250px; border-right: none; border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
    .panel-right-wrapper, .approved-form-right { width: 100%; height: calc(85vh - 250px); min-height: 500px; flex: 1; }
    .form-row, .form-row-last { flex-direction: column; gap: 1rem; margin-bottom: 1rem; align-items: center; } 
    .form-group { max-width: 350px; } 
}

@media (max-width: 820px) {
    .form-card-ultrawide { width: 90%; height: 85vh; }
    .panel-left { display: none; } /* Tago na ang video sa maliliit na screen */
    .panel-right-wrapper, .approved-form-right { height: 100%; min-height: 60vh; }
}

@media (max-width: 430px) {
    .form-card-ultrawide { max-width: 95%; width: 95%; height: 80vh; }
    .flip-card-front, .flip-card-back, .approved-form-right { padding: 1.5rem 1.2rem; }
    .pill-input { padding: 10px 15px; font-size: 0.85rem; }
    .pill-btn-login { width: 80%; padding: 10px 20px; }
    .btn-back-icon { top: 1rem; left: 1rem; font-size: 0.75rem; }
    .step1-logo { width: 60px; margin-bottom: 0px; }
    .card { width: 95%; max-width: 400px; padding: 2rem 1rem; }
}

.main-title { font-size: 2rem; font-weight: 700; color: var(--text-main); letter-spacing: 1px; }
.subtitle { color: var(--text-muted); font-size: 0.875rem; font-weight: 300; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; color: var(--neon-blue); }

.form-group { margin-bottom: 1.25rem; text-align: left; width: 100%; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-muted); }
.input-field { width: 100%; padding: 0.875rem; background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.5rem; outline: none; font-size: 0.95rem; transition: all 0.3s ease; }
.input-field:focus { border-color: var(--neon-blue); background: rgba(14, 165, 233, 0.05); box-shadow: 0 0 10px var(--neon-glow); }
.input-field option { background: #111827; color: white; }

.btn-primary { width: 100%; background: var(--neon-blue); color: #fff; padding: 0.875rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s ease; box-shadow: 0 4px 15px var(--neon-glow); }
.btn-primary:hover { background: #0284c7; box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6); transform: translateY(-2px); }
.btn-secondary { width: 100%; background: transparent; color: var(--neon-blue); border: 1px solid var(--neon-blue); padding: 0.875rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-secondary:hover { background: var(--neon-glow); color: #fff; }
.btn-large { padding: 1rem; font-size: 1.1rem; width: 100%; }
.btn-back-layout { padding: 1rem; width: 30%; }
.btn-next-layout { padding: 1rem; font-size: 1.1rem; width: 70%; }
.btn-try-again { display: none; margin: 1.5rem auto 0; width: auto; padding: 0.5rem 2rem; }

.spinner { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--neon-blue); border-radius: 50%; width: 48px; height: 48px; animation: spin 1s linear infinite; margin: 0 auto 1.5rem; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#toast-notification { position: fixed; bottom: 30px; right: 30px; background: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: var(--success); padding: 1rem 2rem; border-radius: 8px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 9999; font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 10px; transform: translateY(150px); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#toast-notification.show { transform: translateY(0); opacity: 1; }
#toast-notification.error-toast { background: rgba(239, 68, 68, 0.15) !important; border: 1px solid #ef4444 !important; color: #ef4444 !important; }

.academy-feed-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 8, 23, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.academy-feed-delete-dialog {
    width: 100%;
    max-width: 360px;
    padding: 20px 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.38);
    text-align: center;
}

.academy-feed-delete-title {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.academy-feed-delete-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.academy-feed-delete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.academy-feed-delete-actions .btn-secondary,
.academy-feed-delete-actions .btn-primary {
    width: auto !important;
    min-width: 110px;
    padding: 10px 16px !important;
    border-radius: 999px !important;
}

.approved-card-container { height: 80vh !important; min-height: 550px; width: 95vw !important; max-width: 1300px !important; overflow: hidden !important; padding: 0 !important; }
.approved-form-right { padding: 2rem 3.5rem !important; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.form-logo-small { width: 55px; margin: 0 auto; filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.3)); }
.yh-title-small { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0.2rem 0 0 0; letter-spacing: 1px; text-transform: uppercase; }
.yh-subtitle-small { font-size: 0.75rem; color: var(--text-muted); margin: 0 0 0.5rem 0; font-weight: 400; }
.approved-badge-section { margin-bottom: 1rem; }
.approved-title-big { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; letter-spacing: 0.5px; }
.success-badge-new { display: inline-block; background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); padding: 4px 12px; border-radius: 20px; color: var(--success); font-weight: 600; font-size: 0.75rem; margin-top: 0.3rem; }
.guidelines-box-approved { background: rgba(14, 165, 233, 0.03); border: 1px solid var(--glass-border); padding: 0.8rem; border-radius: 0.5rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.form-group-compact { margin: 0; }
.form-group-compact label { font-size: 0.8rem; margin-bottom: 4px; display: block; }
.input-field-compact { width: 100%; padding: 10px; background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.5rem; outline: none; font-size: 0.85rem; transition: 0.3s; }
.input-field-compact:focus { border-color: var(--neon-blue); }
.input-readonly { opacity: 0.6; cursor: not-allowed; background: rgba(0,0,0,0.2); }
.terms-container { margin-bottom: 1.5rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.checkbox-terms { margin-top: 0.2rem; cursor: pointer; }
.label-terms { font-size: 0.75rem; color: var(--text-muted); cursor: pointer; line-height: 1.4; }
.link-terms { color: var(--neon-blue); text-decoration: none; }
.btn-finish-compact { padding: 0.9rem; font-size: 1rem; width: 100%; text-transform: uppercase; letter-spacing: 1px; }

.top-login-bar { position: absolute; top: 20px; right: 40px; display: flex; gap: 10px; align-items: center; z-index: 50; background: rgba(17, 24, 39, 0.6); padding: 10px 20px; border-radius: 8px; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.login-input { width: 180px !important; padding: 8px 12px !important; font-size: 0.8rem !important; margin-bottom: 0 !important; }
.login-btn { width: auto !important; padding: 8px 20px !important; font-size: 0.85rem !important; margin: 0 !important; }

/* ========================================================= */
/* --- YH DASHBOARD UI --- */
/* ========================================================= */

.dashboard-layout { display: flex; flex-direction: column; height: 100vh; width: 100vw; overflow: hidden; background: var(--bg-space); position: relative; }

.yh-top-nav { height: 60px; background: rgba(10, 15, 25, 0.85); border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; backdrop-filter: blur(20px); z-index: 50; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; color: #fff; }
.nav-brand img { width: 32px; filter: drop-shadow(0 0 5px var(--neon-blue)); }
.nav-tabs { display: flex; gap: 1rem; height: 100%; }
.nav-tab { background: transparent; border: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 0 1.5rem; cursor: pointer; transition: 0.3s; position: relative; height: 100%; }
.nav-tab:hover { color: #fff; }
.nav-tab.active { color: var(--neon-blue); }
.nav-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--neon-blue); box-shadow: 0 -2px 10px var(--neon-glow); border-radius: 3px 3px 0 0; }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

/* --- NOTIFICATION BELL --- */
.notif-wrapper { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; transition: 0.2s; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.notif-wrapper:hover { background: rgba(255,255,255,0.1); }
.notif-icon { font-size: 1.1rem; }
.notif-badge { position: absolute; top: -2px; right: -2px; background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: bold; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #0f172a; }
.notif-dropdown { position: absolute; top: 50px; right: -50px; width: 320px; background: rgba(15, 20, 30, 0.95); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(16px); display: none; flex-direction: column; z-index: 100; overflow: hidden; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; }
.notif-dropdown.show { display: flex; opacity: 1; transform: translateY(0); }
.notif-header { padding: 15px; font-weight: 600; font-size: 0.9rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.notif-header span { font-size: 0.75rem; color: var(--neon-blue); cursor: pointer; font-weight: 400; }
.notif-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.notif-list li { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.02); font-size: 0.85rem; color: var(--text-main); display: flex; align-items: flex-start; gap: 10px; transition: 0.2s; cursor: pointer; }
.notif-list li:hover { background: rgba(255,255,255,0.05); }
.notif-list li.unread { background: rgba(14, 165, 233, 0.1); }
.notif-list li.unread:hover { background: rgba(14, 165, 233, 0.15); }
.notif-img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; font-size: 0.8rem; }
.notif-text { flex: 1; line-height: 1.4; }
.notif-time { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

.profile-mini { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: 0.2s; }
.profile-mini:hover { opacity: 0.8; }
.profile-avatar-mini { width: 28px; height: 28px; background: var(--neon-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; background-size: cover; background-position: center; }
.btn-logout { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; transition: 0.2s; }
.btn-logout:hover { background: #ef4444; color: #fff; }

.dashboard-core { flex: 1; display: flex; flex-direction: row; overflow: hidden; background: rgba(0,0,0,0.2); transition: 0.3s; }

.yh-sidebar { width: 280px; background: rgba(15, 20, 30, 0.5); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; z-index: 9; position: relative; transition: opacity 0.5s ease, visibility 0.5s ease; }
.yh-sidebar.collapsed { width: 85px; }
.yh-sidebar.collapsed .sidebar-text { opacity: 0; width: 0; display: none; }
.yh-sidebar.collapsed .channel-search-container { padding: 1.5rem 0.5rem 0.5rem 0.5rem; }
.yh-sidebar.collapsed .channel-search { display: none; }
.yh-sidebar.collapsed .search-wrapper { justify-content: center; background: rgba(0,0,0,0.4); padding: 10px; border-radius: 8px; }
.yh-sidebar.collapsed .step-item { padding: 8px; justify-content: center; }
.yh-sidebar.collapsed .channel-list li { padding: 10px; justify-content: center; }
.yh-sidebar.collapsed .support-section { padding: 1rem 0.5rem; flex-direction: column; }
.yh-sidebar.collapsed .btn-support { padding: 0.8rem 0; display: flex; justify-content: center; width: 100%; }

.sidebar-toggle-btn { position: absolute; top: 20px; right: -14px; width: 28px; height: 28px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50%; color: #fff; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.5); backdrop-filter: blur(10px); transition: 0.3s; }
.sidebar-toggle-btn:hover { background: var(--neon-blue); border-color: var(--neon-blue); }

.channel-search-container { padding: 1.5rem 1rem 0.5rem 1rem; transition: 0.3s; }
.search-wrapper { display: flex; align-items: center; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; transition: 0.3s; }
.search-wrapper:focus-within { border-color: var(--neon-blue); box-shadow: 0 0 10px rgba(14, 165, 233, 0.2); }
.search-icon-mini { padding: 0 10px; color: var(--text-muted); font-size: 0.9rem; }
.channel-search { flex: 1; background: transparent; border: none; color: var(--text-main); font-size: 0.85rem; outline: none; padding: 10px 0; }

.channel-content { padding: 0 1rem; flex: 1; overflow-y: auto; transition: 0.3s; }
.channel-category { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.8rem; letter-spacing: 1px; padding: 0 6px; transition: 0.3s; white-space: nowrap; overflow: hidden; }
.category-mt { margin-top: 1.5rem; }
.category-mt-large { margin-top: 2rem; }

.sidebar-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; position: relative; flex-shrink: 0; }
.sidebar-text { white-space: nowrap; transition: opacity 0.3s; }

.channel-action-row { margin-bottom: 10px; padding: 0 6px; }
.channel-action-row button { padding: 6px; font-size: 0.75rem; }
.channel-action-row .btn-primary { border: none; }

.channel-icon { font-size: 1.2rem; filter: grayscale(0.6) opacity(0.8); transition: 0.2s; }
.channel-list { list-style: none; padding: 0; margin: 0; }
.channel-list li { position: relative; padding: 0.6rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; color: var(--text-muted); transition: 0.2s; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 10px; }
.channel-list li:hover { background: rgba(255,255,255,0.05); color: #fff; }
.channel-list li:hover .channel-icon { filter: grayscale(0) opacity(1); transform: scale(1.1); }
.channel-list li.active { background: rgba(14, 165, 233, 0.1); border-left: 3px solid var(--neon-blue); color: #fff; font-weight: 500; }
.channel-list li.active .channel-icon { filter: grayscale(0) opacity(1); }

.delete-room-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #ef4444; font-size: 0.9rem; cursor: pointer; opacity: 0; transition: 0.2s; padding: 5px; border-radius: 5px; }
.delete-room-btn:hover { background: rgba(239, 68, 68, 0.2); }
.channel-list li:hover .delete-room-btn { opacity: 1; }

.btn-icon-add { background: transparent; border: none; color: var(--neon-blue); font-size: 1.2rem; cursor: pointer; line-height: 1; }

.blueprint-progress { padding: 0 6px 10px 6px; }
.progress-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.progress-bar-fill { height: 100%; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-glow); border-radius: 3px; transition: width 0.5s ease-out; }
.progress-text { font-size: 0.7rem; color: var(--neon-blue); font-weight: 600; text-align: right; }

.action-steps-compact { display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.step-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(0,0,0,0.2); border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); transition: 0.2s; cursor: pointer; }
.step-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.step-circle { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; background: rgba(255,255,255,0.1); transition: 0.3s; }
.step-item.done .step-circle { background: var(--success); color: #fff; box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.step-item span { font-size: 0.85rem; color: var(--text-main); transition: 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-item.done span { color: var(--success); }
.delete-task-btn { margin-left: auto; background: transparent; border: none; color: #ef4444; font-size: 1rem; cursor: pointer; opacity: 0; transition: 0.2s; padding: 0 5px; }
.step-item:hover .delete-task-btn { opacity: 1; }
.delete-task-btn:hover { transform: scale(1.3); }

/* --- THE MEMBER LIST FIX (RIGHT SIDEBAR) --- */
.yh-right-sidebar { width: 260px; background: rgba(15, 20, 30, 0.5); border-left: 1px solid var(--glass-border); padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; transition: opacity 0.5s ease, visibility 0.5s ease; }
@media (max-width: 900px) { .yh-right-sidebar { display: none; } .yh-sidebar { width: 220px; } .yh-sidebar.collapsed { width: 70px; } }

.member-list { list-style: none; padding: 0; margin: 0; }
.member-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s; border: 1px solid transparent; margin-bottom: 2px; }
.member-list li:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.interactive-avatar { cursor: pointer; transition: 0.2s; }
.interactive-avatar:hover { opacity: 0.8; transform: scale(1.05); }

.member-avatar { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; font-size: 0.95rem; flex-shrink: 0; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.4); background-size: cover; background-position: center; }
.member-name { font-size: 0.85rem; color: var(--text-main); font-weight: 500; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar-hq { background: #ef4444; }
.agent-avatar { background: #8b5cf6; }
.dev-avatar { background: #10b981; }

.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); position: absolute; bottom: -3px; right: -3px; border: 2px solid #0f172a; }
.role-badge { font-size: 0.65rem; padding: 3px 8px; border-radius: 6px; font-weight: bold; letter-spacing: 0.5px; }
.founder { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.bot { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.rank-badge { background: rgba(14, 165, 233, 0.15); color: var(--neon-blue); border: 1px solid rgba(14, 165, 233, 0.3); font-size: 0.6rem; padding: 2px 0; width: 48px; text-align: center; display: inline-block; border-radius: 4px; }

/* --- SUPPORT BUTTON DESIGN --- */
.support-section { padding: 1rem; border-top: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); transition: 0.3s; }
.btn-support { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--neon-blue); color: #fff; border: none; padding: 0.8rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 0.85rem; box-shadow: 0 4px 15px rgba(14,165,233,0.3); white-space: nowrap; overflow: hidden; }
.btn-support:hover { background: #0284c7; box-shadow: 0 6px 20px rgba(14,165,233,0.6); transform: translateY(-2px); }
.btn-support-secondary { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.btn-support-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-settings-icon { width: auto; padding: 0.8rem 1rem; }

/* 3. MAIN CHAT AREA */
.yh-main-chat { flex: 1; display: flex; flex-direction: column; position: relative; min-width: 0; transition: max-width 0.5s cubic-bezier(0.2, 0, 0, 1), border 0.4s ease; }

.chat-header { height: 65px; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--glass-border); background: transparent; }
.header-left { display: flex; align-items: center; gap: 10px; }
.hash-big { font-size: 1.5rem; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
.chat-header h3 { margin: 0; font-size: 1.2rem; color: #fff; letter-spacing: 0.5px; }
.header-divider { width: 2px; height: 20px; background: var(--glass-border); margin: 0 12px; }
.header-topic { font-size: 0.9rem; color: var(--text-muted); }

.header-right { display: flex; align-items: center; gap: 15px; }
.btn-focus-mode { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.btn-focus-mode:hover { background: rgba(255,255,255,0.1); }

.pinned-message { display: flex; align-items: center; gap: 10px; background: rgba(14, 165, 233, 0.1); padding: 10px 2rem; border-bottom: 1px solid rgba(14, 165, 233, 0.2); }
.pinned-icon { font-size: 1.2rem; }
.pinned-content { flex: 1; font-size: 0.85rem; color: #d1d5db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinned-label { font-weight: 700; color: #fff; margin-right: 5px; letter-spacing: 0.5px; }
.pinned-jump { font-size: 0.75rem; font-weight: 600; color: var(--neon-blue); cursor: pointer; transition: 0.2s; }
.pinned-jump:hover { text-decoration: underline; color: #fff; }

.chat-messages { flex: 1; padding: 2rem 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }

.welcome-embed { background: var(--yh-card-bg); border: 1px solid var(--glass-border); padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px); max-width: 750px; margin-left: auto; margin-right: auto; width: 100%; }
.welcome-title { font-size: 1.5rem; margin-bottom: 0.3rem; color: #fff; }
.welcome-desc { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.85rem; }

.video-container { width: 100%; max-width: 500px; height: auto; max-height: 280px; aspect-ratio: 16/9; background: #000; border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; border: 1px solid rgba(14,165,233,0.3); margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,0.4); }
.video-container video { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.3s; }
.video-container:hover video { opacity: 1; }
.play-btn { position: absolute; width: 50px; height: 50px; background: rgba(14, 165, 233, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; box-shadow: 0 0 20px var(--neon-glow); padding-left: 4px; transition: 0.2s; }
.video-container:hover .play-btn { transform: scale(1.1); }

.chat-bubble { position: relative; background: rgba(20, 25, 35, 0.7); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 0.8rem 1rem; max-width: 75%; align-self: flex-start; backdrop-filter: blur(10px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.2s ease; border-left: 3px solid transparent; margin-left: 1rem; }
.chat-bubble:hover { border-left-color: var(--neon-blue); background: rgba(20, 25, 35, 0.9); }

/* --- RIGHT ALIGNED CHAT (YOUR MESSAGES) --- */
.chat-bubble.mine { align-self: flex-end; background: rgba(14, 165, 233, 0.15); border-left: none; border-right: 3px solid transparent; margin-left: auto; margin-right: 0; border-radius: 12px 0px 12px 12px; }
.chat-bubble.mine:hover { border-right-color: var(--neon-blue); background: rgba(14, 165, 233, 0.25); }
.chat-bubble.mine .bubble-header { flex-direction: row-reverse; }
.chat-bubble.mine .bubble-time { margin-left: 0; margin-right: 5px; }
.chat-bubble.mine .bubble-body { padding-left: 0; padding-right: 38px; text-align: right; }
.chat-bubble.mine .chat-actions { padding-left: 0; padding-right: 38px; justify-content: flex-end; }
.chat-bubble.mine .delete-msg-btn { right: auto; left: 10px; }

.delete-msg-btn { position: absolute; top: 8px; right: 8px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; border-radius: 6px; padding: 2px 6px; font-size: 0.7rem; cursor: pointer; opacity: 0; transition: 0.2s; }
.delete-msg-btn:hover { background: #ef4444; color: #fff; }
.chat-bubble:hover .delete-msg-btn { opacity: 1; }

.bubble-header { display: flex; align-items: center; gap: 8px; margin-bottom: 0.4rem; }
.bubble-avatar { width: 28px; height: 28px; border-radius: 6px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.8rem; box-shadow: 0 2px 5px rgba(0,0,0,0.3); background-size: cover; background-position: center; }
.bubble-author { font-weight: 600; font-size: 0.9rem; color: #fff; }
.bubble-time { font-size: 0.7rem; color: var(--text-muted); margin-left: 5px; }

/* --- AGREE/UPVOTE BUTTON IN CHAT --- */
.bubble-body { font-size: 0.85rem; color: #d1d5db; line-height: 1.5; padding-left: 36px; margin-bottom: 4px; }
.chat-actions { padding-left: 36px; display: flex; gap: 8px; margin-top: 4px; }
.upvote-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 5px; }
.upvote-btn:hover { background: rgba(234, 179, 8, 0.2); border-color: #eab308; color: #eab308; }
.upvote-btn.liked { background: rgba(234, 179, 8, 0.2); border-color: #eab308; color: #eab308; font-weight: bold; }

/* --- PREMIUM CHAT INPUT UI --- */
.chat-input-area { padding: 0.5rem 1rem 1.5rem 1rem; background: transparent; border-top: none; }
.chat-input-wrapper { display: flex; align-items: center; gap: 15px; background: rgba(20, 25, 35, 0.85); border-radius: 24px; padding: 8px 20px; width: 100%; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.05); backdrop-filter: blur(20px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); min-height: 50px; }
.chat-input-wrapper:focus-within { border-color: rgba(14, 165, 233, 0.6); box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(14, 165, 233, 0.2); transform: translateY(-3px); background: rgba(25, 30, 45, 0.95); }
.plus-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); font-size: 1.1rem; flex-shrink: 0; }
.plus-btn:hover { background: var(--neon-blue); border-color: var(--neon-blue); transform: rotate(90deg) scale(1.1); }

.chat-input-container { position: relative; flex: 1; display: flex; align-items: center; }
.chat-text-input { flex: 1; background: transparent; border: none; outline: none; padding: 10px 0; color: #fff; font-size: 0.95rem; padding-right: 45px; }
.chat-text-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.chat-send-btn { position: absolute; right: 10px; background: transparent; border: none; color: var(--neon-blue); cursor: pointer; transition: 0.2s; padding: 5px; z-index: 10; display: flex; align-items: center; justify-content: center; }
.chat-send-btn:hover { color: #fff; transform: scale(1.1) rotate(-10deg); text-shadow: 0 0 10px rgba(14, 165, 233, 0.8); }

.input-extras { display: flex; gap: 10px; align-items: center; }
.input-extras span { background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; color: var(--text-main); transition: 0.2s; display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.05); }
.input-extras span:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* --- OTHER VIEWS --- */
.vault-main { background: rgba(10, 15, 25, 0.85); }
.vault-search { width: 200px; border-radius: 20px; }
.announcements-main { background: rgba(10, 15, 25, 0.6); }
.announcement-empty { text-align: center; color: var(--text-muted); margin-top: 2rem; font-size: 0.9rem; }
.lounge-main { background: rgba(10, 15, 25, 0.8); }
.lounge-container { padding: 2rem; overflow-y: auto; flex: 1; }
.lounge-title { font-size: 1.2rem; margin-bottom: 1.5rem; color: #fff; }
.btn-start-lounge-action { padding: 8px 16px; font-size: 0.85rem; width: auto; box-shadow: 0 0 15px var(--neon-glow); }
.stage-main { background: rgba(10, 15, 25, 0.95); }

/* --- STAGE LAYOUT (VOICE/VIDEO) --- */
.stage-layout-wrapper { display: flex; flex: 1; overflow: hidden; padding: 1.5rem; gap: 1.5rem; }
.stage-container { flex: 1; overflow-y: auto; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.05); }
.stage-chat-panel { width: 320px; background: rgba(15, 20, 30, 0.6); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; overflow: hidden; }
.stage-chat-header { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 600; color: #fff; font-size: 0.9rem; }
.stage-chat-history { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.stage-chat-welcome { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.stage-chat-input-wrapper { padding: 10px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 8px; align-items: center; }
.stage-chat-input { flex: 1; border-radius: 20px; }
.stage-chat-send-btn { background: var(--neon-blue); border: none; width: 35px; height: 35px; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.stage-chat-send-btn:hover { transform: scale(1.1) rotate(-10deg); box-shadow: 0 0 10px rgba(14, 165, 233, 0.6); }

.poll-card { background: rgba(15, 20, 30, 0.8); border: 1px solid rgba(14, 165, 233, 0.3); border-radius: 12px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.poll-header h4 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.poll-header p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.poll-option { position: relative; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; margin-bottom: 0.8rem; overflow: hidden; cursor: pointer; transition: 0.2s; }
.poll-option:hover { border-color: var(--neon-blue); }
.poll-option-bg { position: absolute; top: 0; left: 0; height: 100%; background: rgba(14, 165, 233, 0.2); transition: width 0.5s ease-out; }
.poll-option-content { position: relative; padding: 12px 15px; display: flex; justify-content: space-between; color: #fff; font-weight: 500; font-size: 0.95rem; z-index: 2; }
.poll-percent { font-weight: 700; color: var(--neon-blue); opacity: 0.5; transition: 0.3s; }
.poll-option.voted { border-color: var(--neon-blue); background: rgba(14, 165, 233, 0.1); }
.poll-option.voted .poll-option-bg { background: rgba(14, 165, 233, 0.4); }
.poll-option.voted .poll-percent { opacity: 1; }
.poll-footer { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); text-align: right; }

/* --- VOICE LOUNGE & STAGE STYLES --- */
.lounge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.lounge-card { background: linear-gradient(145deg, rgba(25, 30, 45, 0.9), rgba(15, 20, 30, 0.9)); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 1.5rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 8px 20px rgba(0,0,0,0.4); display: flex; flex-direction: column; min-height: 180px; }
.lounge-card:hover { transform: translateY(-5px); border-color: rgba(14, 165, 233, 0.4); box-shadow: 0 12px 30px rgba(14,165,233,0.15), inset 0 0 20px rgba(14,165,233,0.05); }

.lounge-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.live-badge { background: rgba(239, 68, 68, 0.15); color: #ef4444; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(239, 68, 68, 0.3); text-transform: uppercase; letter-spacing: 1px; }
.pulse-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; box-shadow: 0 0 8px #ef4444; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.listener-count { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 5px; font-weight: 500; }
.lounge-topic { font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; line-height: 1.4; font-weight: 600; flex: 1; }
.lounge-host { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.lounge-host strong { color: #e2e8f0; }

.lounge-avatars { display: flex; align-items: center; }
.lounge-avatars .member-avatar { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(25, 30, 45, 1); box-shadow: none; font-size: 1.1rem; }
.avatar-more { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: #fff; margin-left: -15px; border: 3px solid rgba(25, 30, 45, 1); z-index: 1; backdrop-filter: blur(5px); }

.stage-section-title { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 1rem; }
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; justify-items: center; max-width: 1000px; margin: 0 auto; }
.speaker-card { position: relative; width: 100%; aspect-ratio: 16/9; background: linear-gradient(145deg, rgba(20,25,35,0.9), rgba(10,15,25,0.9)); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.5); overflow: hidden; transition: 0.3s; flex-direction: column;}
.speaker-card.active-speaker { border: 2px solid var(--neon-blue); box-shadow: 0 0 0 2px rgba(14,165,233,0.3), 0 10px 30px rgba(14,165,233,0.15); }
.speaker-card .speaker-avatar { width: 80px; height: 80px; font-size: 2.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border-radius: 50%; z-index: 2; margin-bottom: 20px;}
.speaker-name { position: absolute; bottom: 15px; left: 15px; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 8px; color: #fff; z-index: 2;}
.audience-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.audience-member { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.aud-name { font-size: 0.75rem; color: var(--text-muted); }
.stage-controls-bar { height: 80px; background: rgba(0,0,0,0.5); border-top: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; gap: 20px; }
.control-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 1.2rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.control-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.1); }
.btn-leave-call { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); padding: 10px 24px; border-radius: 30px; }

/* 5. MISC MODALS & CLASSES */
.fade-in { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.coming-soon-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); text-align: center; padding: 2rem; }
.coming-soon-title { font-size: 3rem; color: #fff; margin-bottom: 1rem; font-weight: 700; letter-spacing: 2px; }
.coming-soon-desc { font-size: 1.1rem; max-width: 500px; line-height: 1.6; color: var(--text-muted); }
.coming-soon-icon { font-size: 6rem; margin-bottom: 1.5rem; animation: floatIcon 3s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(14,165,233,0.3)); }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ========================================================= */
/* 🛡️ UPDATED MODAL OVERLAY STYLING (FOR BLUR EFFECT) */
/* ========================================================= */

.modal-overlay {
    position: fixed; /* Locked on screen */
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* 🔥 FIX 1: Gumawa ng dark background (80% opacity) 🔥 */
    background-color: rgba(0, 0, 0, 0.8);
    
    /* 🔥 FIX 1: Idagdag ang blur effect sa background elements 🔥 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    
    z-index: 9999; /* Ensure it's on top of everything */
    display: flex; /* Centers modal content */
    align-items: center; 
    justify-content: center;
    padding: 20px;
    opacity: 0; /* Hidden by default for fade-in */
    transition: opacity 0.3s ease; /* Smooth fade-in */
    visibility: hidden; /* Hidden from interactions when not active */
}

/* Kapag ipinakita na natin ang modal... */
.modal-overlay:not(.hidden-step) {
    opacity: 1;
    visibility: visible;
}

/* Stylings para sa content box ng form */
.modal-content.hide-scrollbar {
    background: var(--panel-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem 2.5rem;
    
    /* 🔥 FIX 1: Tiyakin na malinaw at hindi blur ang mismong form 🔥 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    
    transform: scale(0.9); /* Subtle scale-in animation */
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden-step) .modal-content {
    transform: scale(1);
}
.modal-card { background: rgba(15, 20, 30, 0.95); width: 100%; max-width: 440px; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.modal-center { max-width: 350px; text-align: center; }
.modal-small { max-width: 350px; }
.modal-medium { max-width: 400px; }
.modal-large { max-width: 550px; }

.modal-header { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.modal-header-center { justify-content: center; border-bottom: none; }
.modal-header h3 { margin: 0; color: #fff; font-size: 1.2rem; }
.modal-emoji-title { margin: 0; font-size: 1.5rem; }
.close-btn { color: var(--text-muted); cursor: pointer; font-size: 1.2rem; transition: 0.2s; }
.close-btn:hover { color: #fff; transform: rotate(90deg); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.5rem; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); }

.modal-title-text { color: #fff; margin-bottom: 10px; }
.modal-desc-text { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.modal-desc-text-left { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 1rem; line-height: 1.4; text-align: left; }
.btn-success-action { background: var(--success); border-color: var(--success); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
.btn-danger-action { background: #ef4444; border-color: #ef4444; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
.btn-disabled { opacity: 0.5; }

.modal-search { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; color: #fff; font-size: 0.95rem; margin-bottom: 1rem; outline: none; transition: 0.3s;}
.modal-search:focus { border-color: var(--neon-blue); box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);}

.modal-user-list { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.modal-user-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.modal-user-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.settings-profile-section { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.settings-avatar-wrapper { position: relative; width: 80px; height: 80px; border-radius: 50%; cursor: pointer; overflow: hidden; background: var(--neon-blue); box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.1); }
.settings-avatar-preview { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: bold; color: #fff; background-size: cover; background-position: center; }
.settings-avatar-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; opacity: 0; transition: 0.2s; color: #fff; }
.settings-avatar-wrapper:hover .settings-avatar-overlay { opacity: 1; }

.in-focus-mode .yh-sidebar,
.in-focus-mode .yh-right-sidebar { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* --- MINI PROFILE MODAL & LEADERBOARD --- */
.mp-card { padding: 0; }
.mp-banner { height: 100px; background: linear-gradient(135deg, var(--neon-blue), #8b5cf6); }
.mp-body { position: relative; padding: 0 1.5rem 1.5rem 1.5rem; text-align: center; margin-top: -45px; }
.mp-avatar { width: 90px; height: 90px; font-size: 2.5rem; border: 4px solid rgba(15, 20, 30, 1); margin: 0 auto 10px auto; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.mp-name { margin: 0; color: #fff; font-size: 1.3rem; }
.mp-role-container { margin-bottom: 1rem; }
.mp-close { position: absolute; top: 15px; right: 15px; }

.profile-stats { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; background: rgba(0,0,0,0.3); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.4rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }
.leaderboard-list li { margin-bottom: 5px; }

/* --- BUTTON STATES & BADGES --- */
.btn-following { background: rgba(255, 255, 255, 0.05) !important; color: var(--text-muted) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; box-shadow: none !important; }
.rank-1 { background: rgba(234, 179, 8, 0.2) !important; color: #eab308 !important; border-color: #eab308 !important; }
.my-profile-tag { background: rgba(14, 165, 233, 0.15); color: var(--neon-blue); border: 1px solid rgba(14, 165, 233, 0.3); font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; display: inline-block; }

/* ========================================================= */
/* --- NEW: THE VAULT UI (PERSONAL FILE LIBRARY) --- */
/* ========================================================= */
.vault-filters { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.vault-filter { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; }
.vault-filter:hover { background: rgba(255,255,255,0.05); color: #fff; }
.vault-filter.active { background: rgba(14, 165, 233, 0.15); color: var(--neon-blue); border-color: var(--neon-blue); font-weight: 600; }
.vault-btn-action { padding: 6px 12px; font-size: 0.8rem; width: auto; }

.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.vault-card { background: rgba(20, 25, 35, 0.6); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 1.2rem; transition: 0.3s; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.vault-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); box-shadow: 0 10px 25px rgba(14,165,233,0.15); background: rgba(20, 25, 35, 0.9); }
.vault-icon { font-size: 2.5rem; margin-bottom: 10px; text-align: center; }
.vault-filename { color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.vault-meta { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-bottom: 15px; }
.vault-origin { background: rgba(0,0,0,0.4); padding: 4px 8px; border-radius: 6px; font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-bottom: 10px; }
.btn-vault-action { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: 0.2s; width: 100%; text-align: center; }
.vault-card:hover .btn-vault-action { background: var(--neon-blue); border-color: var(--neon-blue); }

.vault-folder { background: rgba(14, 165, 233, 0.05); border: 1px dashed rgba(14, 165, 233, 0.3); }
.vault-folder:hover { background: rgba(14, 165, 233, 0.15); border-color: var(--neon-blue); }
.vault-folder .vault-icon { color: var(--neon-blue); }

.chat-attachment { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.3); padding: 10px; border-radius: 8px; margin-top: 8px; border: 1px solid rgba(255,255,255,0.05); }
.chat-attachment-icon { font-size: 1.8rem; }
.chat-attachment-info { display: flex; flex-direction: column; text-align: left; }
.chat-attachment-name { font-size: 0.85rem; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.chat-attachment-size { font-size: 0.7rem; color: var(--text-muted); }
.chat-bubble.mine .chat-attachment { background: rgba(0,0,0,0.15); }

.vault-image-preview { width: 100%; height: 60px; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.1); }
.vault-folder-header { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; color: var(--neon-blue); font-weight: 600; cursor: pointer; grid-column: 1 / -1; background: rgba(14,165,233,0.1); padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(14,165,233,0.3); transition: 0.2s; }
.vault-folder-header:hover { background: rgba(14,165,233,0.2); transform: translateX(5px); }

.context-menu { position: fixed; background: rgba(20, 25, 35, 0.95); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.6); z-index: 9999; display: flex; flex-direction: column; min-width: 160px; overflow: hidden; }
.context-btn { background: transparent; border: none; color: #fff; padding: 12px 15px; text-align: left; cursor: pointer; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.context-btn:hover { background: rgba(255,255,255,0.1); padding-left: 20px; }
.context-btn:last-child { border-bottom: none; }
.ctx-delete-btn { color: #ef4444; }

.preview-card { max-width: 800px; width: 95%; background: transparent; box-shadow: none; padding: 0; }
.preview-header { background: rgba(15, 20, 30, 0.95); border-radius: 8px 8px 0 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.preview-close { background: rgba(239, 68, 68, 0.2); color: #ef4444; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.preview-body { background: rgba(0,0,0,0.85); padding: 20px; display: flex; justify-content: center; align-items: center; min-height: 400px; border-radius: 0 0 8px 8px; border: 1px solid rgba(255,255,255,0.1); border-top: none; }

.attach-preview-box { margin-bottom: 15px; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 8px; min-height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.btn-attach-send { background: var(--neon-blue); border-color: var(--neon-blue); }

.share-modal-body { max-height: 300px; overflow-y: auto; }
.share-dest-list { display: flex; flex-direction: column; gap: 8px; }
.share-dest-btn { padding: 10px; text-align: left; }

.gift-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 15px; max-height: 250px; overflow-y: auto; padding: 5px; }
.gift-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.gift-box:hover, .gift-box.selected-gift { border-color: var(--neon-blue); transform: translateY(-2px); background: rgba(14, 165, 233, 0.1); }
.gift-icon { font-size: 1.8rem; }
.gift-name { color: #fff; font-weight: bold; font-size: 0.75rem; margin-top: 5px; }
.gift-price { font-size: 0.65rem; color: #eab308; }
.gift-balance-bar { font-size: 0.85rem; color: #fff; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.gift-balance-amt { color: #eab308; font-weight: bold; }
.gift-topup-link { color: var(--neon-blue); text-decoration: none; margin-left: 10px; font-size: 0.75rem; }

/* --- ACTIVE & MUTED TOGGLE STATES --- */
.control-btn.toggled-off { background: rgba(239, 68, 68, 0.2); color: #ef4444; border-color: rgba(239, 68, 68, 0.4); position: relative; }
.control-btn.toggled-off::after { content: ''; position: absolute; width: 60%; height: 2px; background: #ef4444; transform: rotate(45deg); }
.control-btn.toggled-on { background: rgba(16, 185, 129, 0.2); color: #10b981; border-color: rgba(16, 185, 129, 0.4); }

.stage-chat-msg { background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; color: #fff; line-height: 1.4; border: 1px solid rgba(255,255,255,0.02); }
.stage-chat-msg strong { color: var(--neon-blue); font-weight: 600; margin-right: 5px; }
/* --- STAGE VIDEO AVATAR OVERLAYS (MUTE & OFF-CAM) --- */
.speaker-card .overlay-status { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); padding: 5px 10px; border-radius: 8px; font-size: 0.8rem; color: #ef4444; border: 1px solid rgba(239,68,68,0.3); display: none; align-items: center; gap: 5px; z-index: 5; backdrop-filter: blur(4px); font-weight: bold; }
.speaker-card.is-muted .overlay-status.mute-alert { display: flex; }
.speaker-card.is-offcam .speaker-avatar { border-radius: 12px; font-size: 1rem; width: 100%; height: 100%; background: #1a1f2e !important; color: var(--text-muted); display: flex; flex-direction: column; gap: 10px; }
.speaker-card.is-offcam .speaker-avatar::after { content: 'Camera Off'; font-size: 0.85rem; font-weight: normal; }

/* Stage Invite Button */
.btn-invite-stage { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); padding: 10px 20px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-invite-stage:hover { background: rgba(16, 185, 129, 0.25); transform: translateY(-2px); }
/* --- STEP 4 OTP UI STYLES --- */
.otp-styled-input { font-size: 2.5rem; letter-spacing: 15px; font-weight: bold; background: rgba(0,0,0,0.6); padding: 15px; transition: 0.3s border; }
.otp-styled-input:focus { letter-spacing: 20px; border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-glow); }
.btn-resend { background: transparent; border: none; color: var(--neon-blue); font-weight: 600; cursor: pointer; text-decoration: underline; margin-top: 5px; transition: 0.2s; }
.btn-resend:hover:not(:disabled) { color: #fff; }

/* ========================================================= */
/* --- STRICT RESPONSIVENESS (PER DEVICE BREAKPOINT) --- */
/* ========================================================= */

/* 1920x1080 (Base/Default Desktop - Styles are inherited from main CSS) */

/* 1440x900 (Smaller Laptops) */
@media (max-width: 1440px) {
    .form-card-ultrawide { max-width: 1000px !important; min-height: 70vh; }
    .panel-right { padding: 2rem 3rem; }
}

/* ========================================================= */
/* --- STRICT RESPONSIVENESS (CLEAN CODE VERSION) --- */
/* ========================================================= */

/* 1280x800 (MacBook 13" / Standard Laptops) */
@media (max-width: 1280px) {
    .form-card-ultrawide { max-width: 880px; min-height: 55vh; margin-top: 40px; }
    .panel-right { padding: 2rem 2.5rem; }
    .main-title.step1-title { font-size: 1.6rem; }
    .input-field { font-size: 0.85rem; padding: 0.75rem; }
    .form-group label { font-size: 0.8rem; margin-bottom: 0.3rem; }
}

/* 1024x1366 (iPad Pro / Large Tablets) */
@media (max-width: 1024px) {
    .form-card-ultrawide { flex-direction: row; max-width: 900px; min-height: 500px; margin-top: 60px; }
    .panel-left { display: flex; width: 45%; } 
    .panel-right { width: 55%; padding: 2rem; overflow-y: visible; }
    .top-login-bar { top: 15px; right: 20px; transform: none; padding: 8px 15px; width: auto; max-width: none; flex-wrap: nowrap; justify-content: flex-end; }
    .top-login-bar p { display: block; }
}

/* 820x1180 (iPad Air) & 768x1024 (iPad Mini) - Unified View */
@media (max-width: 820px) {
    .form-card-ultrawide {
        flex-direction: column;
        max-width: 700px;
        width: 90%;
        max-height: 80vh; 
        margin-top: 80px;
    }
    .panel-left { display: none; } 
    .panel-right {
        width: 100%;
        padding: 2rem;
        max-height: 80vh;
        overflow-y: auto; 
    }
    .form-row, .form-row-last {
        flex-direction: row; 
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    .form-group, .form-group-compact { width: 100%; }
    .top-login-bar { top: 15px; right: 50%; transform: translateX(50%); padding: 8px 15px; flex-wrap: nowrap; justify-content: center; width: auto; min-width: 350px; gap: 8px; z-index: 100; }
    .top-login-bar p { display: none; }
    .login-input { width: 140px; height: 32px; }
    .login-btn { height: 32px; padding: 0 15px; }
}

/* 430x932 (iPhone) & 390x844 (Small Phones) */
@media (max-width: 430px) {
    .form-card-ultrawide {
        max-width: 95%;
        width: 95%;
        margin-top: 90px;
        max-height: 75vh; 
    }
    .panel-right {
        padding: 1.2rem;
        max-height: 75vh;
        overflow-y: auto; 
        scrollbar-width: none; 
    }
    .panel-right::-webkit-scrollbar { display: none; }
    .main-title.step1-title { font-size: 1.4rem; }
    .step1-logo { width: 60px; margin-bottom: 0px; }
    .form-row, .form-row-last {
        flex-direction: row;
        gap: 0.5rem; 
        margin-bottom: 0.8rem;
    }
    .form-group label { font-size: 0.65rem; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .input-field { padding: 0.6rem; font-size: 0.75rem; }
    .btn-primary { padding: 0.8rem; font-size: 0.9rem; margin-top: 10px; }
    .top-login-bar { padding: 8px; width: 95%; max-width: 350px; gap: 5px; min-width: auto; }
    .login-input { width: 45%; height: 32px; font-size: 11px; padding: 0 8px; }
    .login-btn { height: 32px; font-size: 11px; padding: 0 10px; flex: 1; }
    .otp-styled-input { font-size: 1.5rem; letter-spacing: 5px; padding: 10px; }
}
/* ========================================================= */
/* 🌌 YH UNIVERSE HUB (PORTALS) STYLING */
/* ========================================================= */
.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

.portal-card {
    background: rgba(26, 31, 46, 0.7); /* Match dashboard panel dark */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-card.active-portal {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.portal-card.active-portal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.2);
}

.portal-card.locked-portal {
    opacity: 0.6;
}

.portal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.portal-title {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.portal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes button to bottom */
}


/* ========================================================= */
/* 🤖 ACADEMY AI ADMISSIONS MODAL STYLING (UPDATED FIX) */
/* ========================================================= */

#academy-apply-modal .modal-content {
    background: var(--panel-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem;
    position: relative;
    max-width: 700px;
    width: 90%;
    margin: 5vh auto; 
    max-height: 90vh; /* 🔥 DINAGDAG: Para pwedeng i-scroll pababa kung maliit ang screen */
    overflow-y: auto; /* 🔥 DINAGDAG: Scrollable para hindi maputol ang submit button */
}

/* ... (Hayaan mo lang yung #close-academy-apply style dito) ... */

/* 🔥 ITO ANG MGA BABAGUHIN PARA LUMITAW ANG TEXTBOXES 🔥 */
#form-academy-apply .input-field {
    background: rgba(255, 255, 255, 0.06); /* Lighter background para umangat sa itim */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Mas malinaw na white border */
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#form-academy-apply .input-field:focus {
    outline: none;
    background: rgba(14, 165, 233, 0.05); /* Magkaka-subtle neon blue tint pag kinlick */
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

/* 🔥 DINAGDAG: Para malinaw yung placeholder text sa loob ng textbox */
#form-academy-apply .input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
/* ========================================================= */
/* 🤖 ADMISSIONS FORM: DROPDOWN STYLING FIX */
/* ========================================================= */

#academy-apply-modal .input-field.styled-select {
    background-color: rgba(14, 165, 233, 0.1); /* Lighter neon tint */
    border: 1px solid var(--neon-blue);
    color: #fff;
    height: 47px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

#academy-apply-modal .input-field.styled-select:focus {
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
    background-color: rgba(14, 165, 233, 0.15);
}

#academy-apply-modal .input-field.styled-select option {
    background: #1e293b; /* Solid dark background */
    color: #f9fafb; /* White text */
    padding: 12px;
}
/* ========================================================= */
/* 🤖 ADMISSIONS FORM: LOADING SPINNER STYLING FIX */
/* ========================================================= */

.pulse-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(14, 165, 233, 0.2);
    border-top-color: var(--neon-blue);
    animation: pulseSpin 1s linear infinite;
}

@keyframes pulseSpin {
    0% { transform: rotate(0deg); box-shadow: 0 0 10px rgba(14, 165, 233, 0.5); }
    100% { transform: rotate(360deg); box-shadow: 0 0 25px rgba(14, 165, 233, 0.2); }
}
/* ==========================================
   MOBILE-FIRST PRIORITY PATCH
   Append at the very end of public/css/style.css
   ========================================== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .yh-right-sidebar {
        display: none !important;
    }

    .dashboard-core {
        grid-template-columns: 280px minmax(0, 1fr) !important;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    body {
        min-height: 100dvh;
    }

    .step-container,
    .dashboard-layout,
    .dashboard-view-layer,
    .dashboard-core,
    .yh-main-chat,
    .yh-sidebar,
    .form-card-ultrawide,
    .card,
    .modal-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* APPLY / AUTH */
    .form-card-ultrawide,
    .step1-flipper-container,
    .approved-card-container {
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 18px !important;
    }

    .panel-left {
        display: none !important;
    }

    .panel-right-wrapper,
    .auth-center-wrapper,
    .login-ui-container,
    #form-register-simple {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-row,
    .form-row-last {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .input-field,
    .pill-input,
    .btn-primary,
    .btn-secondary,
    .pill-btn-login,
    .btn-large {
        width: 100% !important;
        box-sizing: border-box;
    }

    .main-title.step1-title {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
    }

    .subtitle.step1-subtitle {
        font-size: 0.95rem !important;
    }

    /* DASHBOARD TOP NAV */
    .yh-top-nav {
        position: sticky;
        top: 0;
        z-index: 200;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
        min-height: auto !important;
    }

    .nav-brand,
    .nav-actions {
        width: 100%;
    }

    .nav-brand {
        justify-content: center;
    }

    .nav-tabs {
        width: 100%;
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .profile-mini span,
    .btn-logout {
        font-size: 0.85rem !important;
    }

    /* HUB / PORTALS */
    #universe-hub-view {
        top: 120px !important;
        padding: 16px !important;
        justify-content: flex-start !important;
    }

    .portals-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .portal-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .portal-title {
        font-size: 1.25rem !important;
    }

    .portal-desc {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }

    /* DASHBOARD BODY */
    .dashboard-core {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100dvh - 130px) !important;
    }

    .yh-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .channel-search-container,
    .channel-content,
    .support-section {
        width: 100% !important;
        box-sizing: border-box;
    }

    .yh-main-chat {
        width: 100% !important;
        min-width: 0 !important;
    }

    .chat-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .header-left,
    .header-right {
        width: 100% !important;
    }

    .header-topic {
        font-size: 0.82rem !important;
    }

    .chat-messages,
    .vault-container,
    .lounge-container,
    .stage-layout-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .chat-input-area {
        padding: 10px 12px !important;
    }

    .chat-input-wrapper {
        width: 100% !important;
        gap: 8px !important;
    }

    .chat-input-container {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .chat-text-input,
    .stage-chat-input {
        min-width: 0 !important;
        width: 100% !important;
    }

    .input-extras {
        display: none !important;
    }

    .lounge-grid,
    .vault-grid {
        grid-template-columns: 1fr !important;
    }

    .stage-layout-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .stage-container,
    .stage-chat-panel {
        width: 100% !important;
    }

    .speakers-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-overlay {
        padding: 12px !important;
    }

    .modal-card,
    .modal-center {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 480px) {
    .yh-top-nav {
        padding: 10px !important;
    }

    #universe-hub-view {
        top: 112px !important;
        padding: 12px !important;
    }

    .main-title {
        font-size: 1.5rem !important;
    }

    .subtitle {
        font-size: 0.9rem !important;
    }

    .portal-card,
    .modal-card,
    .form-card-ultrawide {
        border-radius: 16px !important;
    }

    .btn-primary,
    .btn-secondary,
    .pill-btn-login,
    .btn-large {
        min-height: 48px !important;
    }

    .chat-header h3,
    .portal-title,
    .coming-soon-title {
        font-size: 1.1rem !important;
    }
}
/* ==========================================
   ACADEMY INTERIOR UI AUTHORITY
   sidebar shell + home + feed + lounge
   ========================================== */

#academy-wrapper {
    gap: 0;
}

#academy-wrapper .yh-sidebar {
    background: rgba(10, 15, 25, 0.72);
    border-right: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
}

#academy-wrapper .academy-sidebar-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 12px 14px;
    height: 100%;
}

#academy-wrapper .academy-sidebar-intro {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

#academy-wrapper .academy-sidebar-kicker {
    color: var(--neon-blue);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

#academy-wrapper .academy-sidebar-title {
    margin: 8px 0 6px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.2;
}

#academy-wrapper .academy-sidebar-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

#academy-wrapper .academy-mobile-nav-drawer {
    display: none;
}

#academy-wrapper .academy-channel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#academy-wrapper .academy-channel-list .channel-link {
    margin-bottom: 0;
    border-radius: 14px;
    padding: 12px 12px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.025);
}

#academy-wrapper .academy-channel-list .channel-link.active {
    border-left: none;
    border-color: rgba(14,165,233,0.28);
    background: rgba(14,165,233,0.12);
    box-shadow: inset 0 0 0 1px rgba(14,165,233,0.06);
}

#academy-wrapper .academy-sidebar-progress {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.academy-profile-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.academy-profile-hero-card,
.academy-profile-card {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.academy-profile-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.academy-profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(14,165,233,0.18);
    border: 1px solid rgba(14,165,233,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.academy-profile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.academy-profile-username {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.academy-profile-role {
    color: var(--neon-blue);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 6px;
}

.academy-profile-bio {
    color: #dbe7f3;
    line-height: 1.55;
    font-size: 0.92rem;
}

.academy-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.academy-profile-card-kicker {
    color: var(--neon-blue);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.academy-profile-card-title {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.academy-profile-stat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.academy-profile-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: #dbe7f3;
    font-size: 0.9rem;
}

.academy-profile-stat-row strong {
    color: #fff;
}

#academy-wrapper .academy-sidebar-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#academy-wrapper .academy-support-row {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

body[data-yh-view="academy"] .yh-main-chat {
    background: rgba(10, 15, 25, 0.38);
}

body[data-yh-view="academy"] .chat-header {
    height: auto !important;
    min-height: 72px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(10, 15, 25, 0.55) !important;
    backdrop-filter: blur(12px);
}

body[data-yh-view="academy"] .chat-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body[data-yh-view="academy"] .chat-header .header-divider {
    height: 18px;
}

body[data-yh-view="academy"] .chat-messages {
    padding: 18px 16px 20px !important;
}

.academy-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.academy-home-eyebrow {
    color: var(--neon-blue);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.academy-home-title {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.1;
}

.academy-home-copy {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted);
    line-height: 1.7;
}

.academy-home-meta {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.academy-home-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
}

.academy-home-action-btn {
    width: auto !important;
    min-height: 44px;
    padding: 10px 16px !important;
}

.academy-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.academy-home-stat-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.academy-home-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.academy-home-stat-value {
    margin-top: 8px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.academy-home-stat-value span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.academy-home-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 12px;
}

.academy-home-panel {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.academy-home-panel-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.academy-home-panel-copy {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #fff;
}

.academy-home-chip-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.academy-home-missions {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.academy-feed-shell {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.academy-feed-composer-card,
.academy-feed-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

#voice-lobby-view .lounge-container,
#video-lobby-view .lounge-container {
    padding: 20px;
}

#lounge-grid,
#video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

#center-stage-view .stage-layout-wrapper {
    gap: 16px;
}

@media (max-width: 1024px) {
    .academy-home-hero {
        grid-template-columns: 1fr;
    }

    .academy-home-actions {
        justify-content: flex-start;
    }

    #voice-lobby-view .lounge-container,
    #video-lobby-view .lounge-container {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    #academy-wrapper .academy-sidebar-shell {
        gap: 12px;
        padding: 12px 0 0;
    }

    #academy-wrapper .academy-sidebar-intro,
    #academy-wrapper .academy-sidebar-progress,
    #academy-wrapper .academy-support-row {
        display: none !important;
    }

    #academy-wrapper .academy-channel-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    #academy-wrapper .academy-channel-list .channel-link {
        padding: 12px 8px;
        justify-content: center;
        border-radius: 14px;
    }

    #academy-wrapper .academy-channel-list .channel-link .sidebar-text {
        font-size: 0.74rem !important;
        text-align: center;
    }

    .academy-home-hero {
        padding: 16px;
        border-radius: 18px;
    }

    .academy-home-title {
        font-size: 1.45rem;
    }

    .academy-home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .academy-home-action-btn {
        width: 100% !important;
    }

    .academy-home-stat-card,
    .academy-home-panel,
    .academy-feed-composer-card,
    .academy-feed-card {
        border-radius: 16px;
        padding: 14px;
    }

    body[data-yh-view="academy"] .chat-header {
        padding: 14px 12px !important;
    }

    body[data-yh-view="academy"] .chat-header .header-left,
    body[data-yh-view="academy"] .chat-header .header-right {
        width: 100%;
    }

    body[data-yh-view="academy"] .header-topic {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }

    #voice-lobby-view .lounge-container,
    #video-lobby-view .lounge-container,
    body[data-yh-view="academy"] .chat-messages {
        padding: 12px !important;
    }

    #center-stage-view .stage-layout-wrapper {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .academy-home-title {
        font-size: 1.28rem;
    }

    .academy-home-stat-value {
        font-size: 1.45rem;
    }

    .academy-home-stat-card,
    .academy-home-panel,
    .academy-feed-composer-card,
    .academy-feed-card {
        border-radius: 14px;
        padding: 12px;
    }
}
/* ==========================================
   MOBILE UI CLEANUP HOTFIX
   Append at the very end
   ========================================== */

.video-container,
.play-btn,
.intro-video {
    display: none !important;
}

@media (max-width: 768px) {
    .yh-top-nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
        padding: 10px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        min-height: auto !important;
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .nav-brand {
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .nav-brand img {
        width: 28px !important;
        height: 28px !important;
    }

    .nav-brand span {
        font-size: 1rem !important;
        letter-spacing: 0.5px !important;
    }

    .nav-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .nav-tab {
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
        line-height: 1.15 !important;
        text-align: center !important;
        white-space: normal !important;
        min-height: 48px !important;
    }

    .nav-actions {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .notif-wrapper {
        justify-self: start !important;
    }

    .profile-mini {
        min-width: 0 !important;
        justify-self: start !important;
        gap: 8px !important;
    }

    .profile-mini span {
        display: none !important;
    }

    .btn-logout {
        width: auto !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        justify-self: end !important;
        min-height: 40px !important;
    }

    #universe-hub-view {
        top: 122px !important;
        padding: 12px !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    #universe-hub-view .text-center {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
    }

    #universe-hub-view .main-title {
        font-size: 1.9rem !important;
        line-height: 1.05 !important;
    }

    #universe-hub-view .subtitle {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
    }

    .portal-card {
        padding: 18px 16px !important;
        border-radius: 18px !important;
    }

    .portal-title,
    .portal-desc {
        text-align: center !important;
    }

    .portal-desc {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
    }

    .dashboard-core {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100dvh - 122px) !important;
    }

    .yh-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .channel-search-container,
    .support-section {
        display: none !important;
    }

    .channel-content {
        width: 100% !important;
        padding: 0 !important;
    }

    .channel-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .channel-link {
        min-width: 0 !important;
        justify-content: center !important;
        padding: 12px 8px !important;
    }

    .channel-link .sidebar-text {
        font-size: 0.76rem !important;
    }

    .yh-main-chat {
        width: 100% !important;
        min-width: 0 !important;
    }

    .chat-header {
        padding: 14px 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .header-left,
    .header-right {
        width: 100% !important;
    }

    .header-left h3 {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
    }

    .header-topic {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }

    .pinned-message {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    .chat-messages {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .academy-feed-composer-card,
    .academy-feed-card {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .chat-input-area {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 30 !important;
        padding: 10px 12px !important;
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
    }

    .chat-input-wrapper {
        width: 100% !important;
        gap: 8px !important;
    }

    .chat-input-container {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .chat-text-input {
        width: 100% !important;
        min-width: 0 !important;
    }

    .input-extras {
        display: none !important;
    }

    .notif-dropdown {
        left: auto !important;
        right: 0 !important;
        width: min(320px, calc(100vw - 24px)) !important;
    }
}

@media (max-width: 430px) {
    .nav-tab {
        font-size: 0.72rem !important;
        padding: 9px 6px !important;
    }

    #universe-hub-view {
        top: 116px !important;
    }

    .portal-card {
        padding: 16px 14px !important;
    }
.yh-auth-card .flip-card-front,
.yh-auth-card .flip-card-back {
    padding: 1.15rem !important;
}

.yh-auth-card .auth-center-wrapper .text-center.mb-large {
    margin-bottom: 1.2rem !important;
}
}
/* ==========================================
   MOBILE TOP SECTION CLEAN FIX
   Append at the very end of style.css
   ========================================== */

.universe-hub-view {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .yh-top-nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 10px 12px !important;
        min-height: 64px !important;
        width: 100% !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(14px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .nav-brand {
        grid-area: brand !important;
        width: auto !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .nav-brand img {
        width: 26px !important;
        height: 26px !important;
    }

    .nav-brand span {
        font-size: 0.95rem !important;
        letter-spacing: 0.4px !important;
    }

    .nav-actions {
        grid-area: logout !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
    }

    .notif-wrapper,
    .profile-mini {
        display: none !important;
    }

    .btn-logout {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-height: 38px !important;
        padding: 8px 10px !important;
        margin: 0 !important;
        font-size: 0.76rem !important;
        line-height: 1 !important;
    }

    .nav-tabs {
        grid-area: tabs !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .nav-tab {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 42px !important;
        padding: 8px 6px !important;
        font-size: 0.70rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .universe-hub-view {
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        min-height: calc(100dvh - 132px) !important;
        padding: 12px 12px 24px !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    .universe-hub-view .text-center {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    .universe-hub-view .main-title {
        font-size: 1.9rem !important;
        line-height: 1.05 !important;
        margin-bottom: 4px !important;
    }

    .universe-hub-view .subtitle {
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }

    .portals-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .portal-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .portal-title {
        font-size: 1.18rem !important;
        text-align: center !important;
    }

    .portal-desc {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
}

@media (max-width: 430px) {
    .yh-top-nav {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .nav-brand span {
        font-size: 0.9rem !important;
    }

    .nav-tab {
        font-size: 0.66rem !important;
        padding: 8px 4px !important;
        min-height: 40px !important;
    }

    .btn-logout {
        padding: 7px 9px !important;
        font-size: 0.72rem !important;
    }

    .universe-hub-view {
        min-height: calc(100dvh - 124px) !important;
        padding: 10px 10px 20px !important;
    }

    .portal-card {
        padding: 15px 14px !important;
    }
}
/* ==========================================
   FINAL RESPONSIVE SHELL AUTHORITY
   swipeable universe hub + desktop user strip
   ========================================== */

body[data-yh-view="hub"] #academy-wrapper,
body[data-yh-view="hub"] #view-plazas,
body[data-yh-view="hub"] #view-federation {
    display: none !important;
}

body[data-yh-view="academy"] #universe-hub-view,
body[data-yh-view="plazas"] #universe-hub-view,
body[data-yh-view="federation"] #universe-hub-view {
    display: none !important;
}

body.academy-launcher-open {
    overflow: hidden;
}

.nav-tabs {
    display: none !important;
}

.desktop-user-strip {
    display: block;
    padding: 10px 24px 0;
    background: transparent;
}

.desktop-user-strip-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
}

.desktop-user-strip .profile-mini {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.desktop-user-strip .profile-mini span {
    display: inline !important;
}

.universe-hub-view {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 22px 20px 56px;
    overflow-y: auto;
    background: #0f172a;
}

.yh-universe-carousel-shell {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yh-universe-intro {
    text-align: center;
    margin-bottom: 2px;
}

.yh-universe-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-blue);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.yh-universe-title {
    font-size: 2.3rem !important;
    line-height: 1.04 !important;
    margin-bottom: 0 !important;
}

.yh-universe-carousel {
    width: 100%;
    overflow: hidden;
}

.yh-universe-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.yh-universe-track.no-transition {
    transition: none !important;
}

.yh-universe-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 2px;
}

.yh-universe-slide .portal-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 14px !important;
    border-radius: 18px !important;
}

.yh-universe-card-core {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yh-universe-slide .portal-icon {
    font-size: 2.5rem !important;
    margin-bottom: 2px !important;
}

.yh-universe-slide .portal-title {
    font-size: 1.55rem !important;
    margin-bottom: 0 !important;
    text-align: left !important;
}

.yh-universe-slide .portal-desc {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

.yh-universe-slide .btn-primary,
.yh-universe-slide .btn-secondary {
    min-height: 46px;
}

.yh-universe-slide.is-active .portal-card {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.yh-universe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.yh-universe-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.yh-universe-meta-copy {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.yh-universe-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
}

.yh-universe-dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: all 0.25s ease;
}

.yh-universe-dot.active {
    width: 26px;
    background: var(--neon-blue);
    box-shadow: 0 0 16px var(--neon-glow);
}

.yh-universe-feature-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.yh-universe-feature-kicker {
    color: var(--neon-blue);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.yh-universe-feature-title {
    margin: 0;
    color: #fff;
    font-size: 1.06rem;
    line-height: 1.3;
}

.yh-universe-feature-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.yh-universe-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yh-universe-feature-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: #d9f3ff;
    font-size: 0.78rem;
    line-height: 1;
}

#academy-wrapper {
    display: none;
}

#academy-apply-modal.hidden-step {
    display: none !important;
}

#academy-apply-modal:not(.hidden-step) {
    display: flex !important;
}

@media (min-width: 1025px) {
    .yh-top-nav {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 24px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .nav-brand,
    .nav-actions {
        width: auto !important;
    }

    .nav-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        height: 100% !important;
    }

    .nav-brand img {
        width: 30px !important;
        height: 30px !important;
    }

    .nav-brand span {
        font-size: 1.12rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
    }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        height: 100% !important;
    }

    .btn-logout {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
        padding: 10px 14px !important;
    }

    .dashboard-core {
        display: flex !important;
        flex-direction: row !important;
        min-height: calc(100dvh - 108px) !important;
    }

    .yh-sidebar {
        display: flex !important;
        width: 280px !important;
        max-width: 280px !important;
        border-right: 1px solid var(--glass-border) !important;
        border-bottom: none !important;
        padding: 0 !important;
    }

    .yh-right-sidebar {
        display: flex !important;
        width: 260px !important;
    }

    .channel-search-container,
    .support-section {
        display: block !important;
    }

    .channel-list {
        display: block !important;
    }

    .chat-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 24px !important;
        min-height: 65px !important;
    }

    .header-left,
    .header-right {
        width: auto !important;
    }
}

@media (max-width: 1024px) {
    .desktop-user-strip {
        display: none !important;
    }

    .yh-right-sidebar {
        display: none !important;
    }

    .dashboard-core {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100dvh - 84px) !important;
    }

    .universe-hub-view {
        top: 84px !important;
        padding: 18px 14px 50px !important;
        align-items: stretch !important;
    }
}

@media (max-width: 768px) {
    .yh-top-nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        min-height: 64px !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(14px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .nav-brand {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        min-height: 44px !important;
        margin: 0 !important;
        flex: 0 1 auto !important;
    }

    .nav-brand img {
        width: 30px !important;
        height: 30px !important;
    }

    .nav-brand span {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        line-height: 1 !important;
    }

    .nav-actions {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        min-height: 44px !important;
        margin: 0 0 0 auto !important;
        width: auto !important;
        flex: 0 0 auto !important;
        gap: 8px !important;
    }

    .btn-logout {
        width: auto !important;
        min-height: 40px !important;
        padding: 10px 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .desktop-user-strip {
        display: none !important;
    }

    .universe-hub-view {
        top: 72px !important;
        padding: 12px 12px 48px !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }

    .yh-universe-carousel-shell {
        max-width: 100%;
        gap: 12px;
    }

    .yh-universe-kicker {
        font-size: 0.68rem;
        padding: 6px 10px;
        margin-bottom: 10px;
    }

    .yh-universe-title {
        font-size: 1.85rem !important;
    }

    .yh-universe-slide .portal-card {
        padding: 14px 14px 13px !important;
        border-radius: 16px !important;
    }

    .yh-universe-slide .portal-icon {
        font-size: 2.25rem !important;
    }

    .yh-universe-slide .portal-title {
        font-size: 1.34rem !important;
    }

    .yh-universe-slide .portal-desc {
        font-size: 0.87rem !important;
        line-height: 1.5 !important;
    }

    .yh-universe-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .yh-universe-meta-copy {
        font-size: 0.8rem;
    }

    .yh-universe-feature-panel {
        padding: 13px 13px 14px;
        border-radius: 16px;
    }

    .yh-universe-feature-title {
        font-size: 1rem;
    }

    .yh-universe-feature-desc {
        font-size: 0.86rem;
    }

    body[data-yh-view="academy"] #academy-wrapper {
        display: block !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    body[data-yh-view="academy"] .dashboard-layout,
    body[data-yh-view="academy"] .dashboard-core,
    body[data-yh-view="academy"] .yh-main-chat {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    body[data-yh-view="academy"] .yh-sidebar {
        position: fixed !important;
        left: 14px !important;
        bottom: 18px !important;
        z-index: 160 !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        overflow: visible !important;
    }

    body[data-yh-view="academy"] #sidebar-toggle {
        display: none !important;
    }

    body[data-yh-view="academy"] .channel-search-container,
    body[data-yh-view="academy"] .support-section,
    body[data-yh-view="academy"] .academy-sidebar-intro,
    body[data-yh-view="academy"] .academy-sidebar-progress,
    body[data-yh-view="academy"] .academy-channel-list {
        display: none !important;
    }

    body[data-yh-view="academy"] .channel-content {
        width: auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body[data-yh-view="academy"] .academy-mobile-nav-drawer {
        display: block !important;
        position: relative;
    }

    body[data-yh-view="academy"] .academy-mobile-nav-toggle {
        border: 1px solid rgba(14,165,233,0.3);
        background: rgba(15, 23, 42, 0.96);
        color: #fff;
        border-radius: 999px;
        padding: 12px 14px;
        min-height: 48px;
        font-weight: 600;
        font-size: 0.9rem;
        box-shadow: 0 14px 35px rgba(0,0,0,0.28);
        backdrop-filter: blur(12px);
        cursor: pointer;
    }

    body[data-yh-view="academy"] .academy-mobile-nav-toggle::before,
    body[data-yh-view="academy"] .academy-mobile-nav-toggle::after {
        display: none !important;
        content: none !important;
    }

    body[data-yh-view="academy"] .academy-mobile-nav-menu {
        position: absolute;
        left: 0;
        bottom: calc(100% + 10px);
        min-width: 220px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 18px 45px rgba(0,0,0,0.35);
        backdrop-filter: blur(14px);
    }

    body[data-yh-view="academy"] .academy-mobile-nav-item {
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.03);
        color: #fff;
        border-radius: 14px;
        padding: 12px 14px;
        text-align: left;
        font-weight: 600;
        cursor: pointer;
    }

    body[data-yh-view="academy"] .academy-mobile-nav-item:hover {
        border-color: rgba(14,165,233,0.35);
        background: rgba(14,165,233,0.12);
    }

    body[data-yh-view="academy"] .yh-main-chat {
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .academy-profile-grid {
        grid-template-columns: 1fr;
    }

    .academy-profile-hero-left {
        align-items: flex-start;
    }
    body[data-yh-view="academy"] .chat-header {
        padding: 14px 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    body[data-yh-view="academy"] .header-left,
    body[data-yh-view="academy"] .header-right {
        width: 100% !important;
    }

    body[data-yh-view="academy"] .pinned-message {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    body[data-yh-view="academy"] .chat-messages,
    body[data-yh-view="academy"] .lounge-container,
    body[data-yh-view="academy"] .stage-container,
    body[data-yh-view="academy"] .stage-chat-history {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: visible !important;
        flex: 0 0 auto !important;
        max-height: none !important;
    }

    body[data-yh-view="academy"] .chat-input-area {
        position: static !important;
        bottom: auto !important;
        z-index: auto !important;
        padding: 10px 12px !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border-top: none !important;
    }

    #academy-apply-modal {
        padding: 12px !important;
        align-items: center !important;
    }

    #academy-apply-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 24px) !important;
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 480px) {
    .yh-top-nav {
        padding: 9px 10px !important;
        min-height: 62px !important;
    }

    .nav-brand img {
        width: 28px !important;
        height: 28px !important;
    }

    .nav-brand span {
        font-size: 1rem !important;
    }

    .btn-logout {
        padding: 8px 10px !important;
        font-size: 0.74rem !important;
    }

    .desktop-user-strip {
        display: none !important;
    }

    .universe-hub-view {
        top: 68px !important;
        padding: 10px 10px 46px !important;
    }

    .yh-universe-title {
        font-size: 1.66rem !important;
    }

    .yh-universe-slide .portal-card,
    .yh-universe-feature-panel,
    #academy-apply-modal .modal-content {
        border-radius: 15px !important;
    }

    .yh-universe-slide .portal-title {
        font-size: 1.18rem !important;
    }

    .yh-universe-slide .portal-desc,
    .yh-universe-feature-desc {
        font-size: 0.83rem !important;
    }
}

/* ========================================================= */
/* ACADEMY SCROLL SAFETY OVERRIDE                            */
/* ========================================================= */
body[data-yh-view="academy"] {
    overflow-y: auto !important;
}

body[data-yh-view="academy"] .dashboard-layout,
body[data-yh-view="academy"] .dashboard-core,
body[data-yh-view="academy"] .yh-main-chat,
body[data-yh-view="academy"] #academy-chat,
body[data-yh-view="academy"] #academy-feed-view,
body[data-yh-view="academy"] #voice-lobby-view,
body[data-yh-view="academy"] #video-lobby-view,
body[data-yh-view="academy"] #center-stage-view {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}
.academy-feed-composer-head {
    display: none !important;
}

.academy-feed-composer-textarea {
    min-height: 64px !important;
}

.academy-feed-composer-facebook {
    padding: 12px !important;
    border-radius: 18px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.academy-feed-composer-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.academy-feed-composer-avatar {
    flex-shrink: 0;
    width: 42px !important;
    height: 42px !important;
    font-size: 1rem !important;
}

.academy-feed-facebook-textarea {
    flex: 1;
    min-height: 58px !important;
    resize: none !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    line-height: 1.45 !important;
}

.academy-feed-composer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.academy-feed-gallery-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(14,165,233,0.28);
    background: rgba(255,255,255,0.04);
    color: var(--neon-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s ease;
}

.academy-feed-gallery-btn:hover {
    background: rgba(14,165,233,0.12);
    transform: translateY(-1px);
}

.academy-feed-post-submit-btn {
    width: auto !important;
    min-width: 118px;
    padding: 11px 18px !important;
    border-radius: 999px !important;
}

.academy-feed-image-preview-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-top: 2px;
}

.academy-feed-image-preview {
    width: 100%;
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.academy-feed-post-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: center !important;
}

.academy-feed-post-actions .btn-secondary {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 480px) {
    .academy-feed-post-actions .btn-secondary {
        padding: 8px 8px !important;
        font-size: 0.76rem !important;
    }
}
#toast-notification {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, calc(-50% + 150px)) !important;
    z-index: 9999 !important;
}

#toast-notification.show {
    transform: translate(-50%, -50%) !important;
}

.academy-feed-post-compact {
    padding: 14px !important;
}

.academy-feed-post-compact .btn-secondary,
.academy-feed-post-compact .btn-primary {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
}

.academy-feed-post-compact .academy-feed-comments-toggle-btn {
    min-height: 42px !important;
}

@media (max-width: 480px) {
    .academy-feed-post-compact {
        padding: 12px !important;
    }
}
/* ==========================================
   ACADEMY FEED COMPACT TUNING
   ========================================== */

#academy-feed-view .academy-feed-shell {
    max-width: 820px;
}

#academy-feed-view .academy-feed-card,
#academy-feed-view .academy-feed-composer-card {
    padding: 12px;
    border-radius: 18px;
}

#academy-feed-view .academy-feed-card {
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

#academy-feed-view .academy-feed-comments-wrap textarea.chat-text-input {
    min-height: 72px !important;
    padding: 10px 12px !important;
}

#academy-feed-view .academy-feed-comment-submit-btn,
#academy-feed-view .academy-feed-like-btn,
#academy-feed-view .academy-feed-comments-toggle-btn,
#academy-feed-view .academy-feed-share-btn {
    min-height: 40px !important;
    padding: 8px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    border-radius: 12px !important;
}

#academy-feed-view .academy-feed-post-menu-btn {
    min-height: 34px !important;
    padding: 6px 10px !important;
}

#academy-feed-image-preview-wrap {
    border-radius: 12px;
    overflow: hidden;
}

#academy-feed-image-preview {
    max-height: 220px;
    object-fit: cover;
}

/* share/post modal vertical tightening */
#academy-feed-share-modal .modal-content,
#academy-post-modal .modal-content {
    max-height: min(72vh, 620px) !important;
    padding: 18px 16px !important;
}

#academy-feed-share-modal textarea,
#academy-post-modal textarea {
    min-height: 88px !important;
}

#academy-feed-share-modal .academy-feed-share-preview,
#academy-post-modal .academy-feed-share-preview {
    max-height: 180px;
    overflow: auto;
}
/* ==========================================
   ACADEMY HUB BUTTON CLICK FIX
   ========================================== */

.yh-universe-carousel,
.yh-universe-track,
.yh-universe-slide,
.yh-universe-slide .portal-card {
    position: relative;
}

.yh-universe-carousel {
    overflow: hidden !important;
    isolation: isolate;
}

.yh-universe-track {
    overflow: visible !important;
    will-change: transform;
}

.yh-universe-slide {
    overflow: hidden !important;
    pointer-events: none;
}

.yh-universe-slide.is-active {
    pointer-events: auto !important;
    z-index: 20 !important;
}

.yh-universe-slide.is-active .portal-card.active-portal {
    position: relative;
    z-index: 25 !important;
    overflow: hidden !important;
}

.yh-universe-slide.is-active .portal-card.active-portal,
.yh-universe-slide.is-active .portal-card.active-portal * {
    pointer-events: auto !important;
}

#btn-open-academy-apply {
    position: relative;
    z-index: 60 !important;
    display: block;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
    .yh-universe-carousel {
        overflow: hidden !important;
        touch-action: pan-y !important;
    }

    .yh-universe-track {
        overflow: visible !important;
        will-change: transform;
    }

    .yh-universe-slide {
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .yh-universe-slide.is-active {
        pointer-events: auto !important;
        z-index: 20 !important;
    }

    .yh-universe-slide.is-active .portal-card.active-portal {
        overflow: hidden !important;
        z-index: 25 !important;
    }

    .yh-universe-slide.is-active .portal-card.active-portal,
    .yh-universe-slide.is-active .portal-card.active-portal * {
        pointer-events: auto !important;
    }

    #btn-open-academy-apply {
        position: relative;
        z-index: 60 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        user-select: none;
        -webkit-user-select: none;
    }
}

/* ==========================================
   ACADEMY FEED ACTION BUTTON SIZE MATCH
   ========================================== */

#academy-feed-view .academy-feed-post-compact {
    padding: 11px !important;
    border-radius: 14px !important;
}

#academy-feed-view .academy-feed-post-actions-grid {
    gap: 6px !important;
    margin-top: 10px !important;
}

#academy-feed-view .academy-feed-like-btn,
#academy-feed-view .academy-feed-comments-toggle-btn,
#academy-feed-view .academy-feed-share-btn,
#academy-feed-view .academy-feed-comment-submit-btn {
    min-height: 40px !important;
    height: 40px !important;
    padding: 7px 8px !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 10px !important;
}

#academy-feed-view .academy-feed-comments-wrap {
    margin-top: 10px !important;
}

#academy-feed-view .academy-feed-comments-wrap textarea.chat-text-input {
    min-height: 64px !important;
    padding: 10px !important;
}

@media (max-width: 480px) {
    #academy-feed-view .academy-feed-like-btn,
    #academy-feed-view .academy-feed-comments-toggle-btn,
    #academy-feed-view .academy-feed-share-btn,
    #academy-feed-view .academy-feed-comment-submit-btn {
        font-size: 0.72rem !important;
        padding: 6px 6px !important;
    }
}
@media (max-width: 1024px) {
    #btn-open-academy-apply {
        position: relative;
        z-index: 20 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        user-select: none;
        -webkit-user-select: none;
    }

    .yh-universe-slide .portal-card {
        overflow: visible !important;
    }

    .yh-universe-carousel,
    .yh-universe-track,
    .yh-universe-slide {
        overflow: visible !important;
    }
}
@media (max-width: 1024px) {
    .yh-universe-slide.is-active {
        position: relative;
        z-index: 20 !important;
    }

    .yh-universe-slide.is-active .portal-card.active-portal {
        position: relative;
        z-index: 25 !important;
        overflow: visible !important;
    }

    #btn-open-academy-apply {
        position: relative;
        z-index: 40 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        user-select: none;
        -webkit-user-select: none;
    }
}
@media (max-width: 1024px) {
    .yh-universe-carousel,
    .yh-universe-track,
    .yh-universe-slide,
    .yh-universe-slide .portal-card {
        overflow: visible !important;
    }

    .yh-universe-slide {
        pointer-events: none;
    }

    .yh-universe-slide.is-active {
        position: relative;
        z-index: 20 !important;
        pointer-events: auto !important;
    }

    .yh-universe-slide.is-active .portal-card.active-portal {
        position: relative;
        z-index: 25 !important;
        overflow: visible !important;
    }

    #btn-open-academy-apply {
        position: relative;
        z-index: 40 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        user-select: none;
        -webkit-user-select: none;
    }
}
#btn-open-academy-apply {
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 120 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

#btn-open-academy-apply * {
    pointer-events: none !important;
}

.yh-universe-slide .portal-card.active-portal {
    position: relative !important;
    z-index: 10 !important;
}
/* ========================================================= */
/* YH LANDING PAGE                                           */
/* ========================================================= */
.yh-landing-step {
    position: relative !important;
    width: 100%;
    min-height: 100vh;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    padding: 0 !important;
}

.yh-landing-shell {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    padding: 1.25rem;
    overflow: hidden;
}

.yh-landing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.yh-landing-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    opacity: 0.12;
    transform: scale(0.9);
}

.yh-landing-bg-logo {
    padding: clamp(24px, 6vw, 72px);
    filter: drop-shadow(0 0 40px rgba(14, 165, 233, 0.08));
}

.yh-landing-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(14, 165, 233, 0.14), transparent 26%),
        radial-gradient(circle at 80% 78%, rgba(56, 189, 248, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(5, 8, 22, 0.84), rgba(5, 8, 22, 0.97));
}
.yh-landing-hero,
.yh-landing-section,
.yh-landing-auth-wrap {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
}

.yh-landing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.yh-landing-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.yh-landing-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.yh-landing-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.yh-landing-brand-kicker {
    color: var(--neon-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.yh-landing-brand-name {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
}

.yh-topbar-btn {
    width: auto;
    padding: 0.9rem 1.1rem;
}

.yh-landing-hero {
    padding: 2rem 0 1rem;
}

.yh-landing-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.yh-landing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(14, 165, 233, 0.45);
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-blue);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08), 0 12px 30px rgba(2, 132, 199, 0.08);
}

.yh-landing-title {
    font-size: clamp(2.9rem, 6vw, 5.3rem);
    line-height: 0.92;
    margin-bottom: 0.85rem;
    font-weight: 800;
    letter-spacing: -1.4px;
    text-wrap: balance;
}

.yh-landing-narrative {
    max-width: 720px;
    margin-bottom: 0.9rem;
    color: #f8fafc;
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 600;
}

.yh-landing-subtitle {
    max-width: 680px;
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.yh-landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.yh-landing-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.yh-landing-cta-note {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.84rem;
    font-weight: 500;
    padding-left: 0.2rem;
}

.yh-landing-cta-primary,
.yh-landing-cta-secondary {
    width: auto;
    min-width: 210px;
    padding: 0.98rem 1.28rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.yh-landing-cta-primary {
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.yh-landing-cta-primary:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.34);
}

.yh-landing-cta-secondary {
    opacity: 0.9;
}

.yh-landing-cta-secondary:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.yh-landing-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.35rem;
}

.yh-landing-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(56, 189, 248, 0.12);
    color: #e5e7eb;
    font-size: 0.86rem;
    font-weight: 500;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.yh-landing-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.yh-landing-metric-card {
    position: relative;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 1rem;
    padding: 1rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yh-landing-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.34);
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.35);
}

.yh-landing-metric-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.yh-landing-metric-card span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.yh-landing-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
    color: rgba(148, 163, 184, 0.92);
    font-size: 0.84rem;
    font-weight: 500;
}

.yh-landing-scroll-arrow {
    display: inline-block;
    animation: yhScrollBounce 1.8s ease-in-out infinite;
}

.yh-landing-hero-visual {
    display: flex;
    justify-content: center;
}

.yh-landing-visual-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 520px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.yh-landing-visual-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.yh-landing-visual-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.22), transparent 48%);
    z-index: 1;
    pointer-events: none;
}

.yh-landing-visual-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        radial-gradient(rgba(255,255,255,0.45) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    animation: yhNoiseDrift 18s linear infinite;
}

.yh-landing-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: yhVideoFloat 12s ease-in-out infinite alternate;
}

.yh-landing-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.18) 40%, rgba(2, 6, 23, 0.7) 100%);
}

.yh-landing-visual-caption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.yh-landing-visual-kicker {
    display: block;
    color: var(--neon-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 0.25rem;
}

.yh-landing-section {
    margin-top: 4rem;
}

.yh-landing-section-head {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.yh-landing-section-kicker {
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.yh-landing-section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0;
}

.yh-landing-section-copy {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.yh-landing-division-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.yh-landing-division-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 1.25rem;
    padding: 1.35rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.yh-landing-division-card.is-live {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.18), 0 18px 40px rgba(0, 0, 0, 0.2);
}

.yh-landing-division-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.yh-landing-status {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.yh-landing-status.live {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.yh-landing-status.soon {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.yh-landing-icon {
    font-size: 1.8rem;
}

.yh-landing-division-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
}

.yh-landing-division-card p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.yh-landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: grid;
    gap: 0.7rem;
}

.yh-landing-feature-list li {
    color: var(--text-muted);
    font-size: 0.92rem;
    padding-left: 1rem;
    position: relative;
}

.yh-landing-feature-list li::before {
    content: "•";
    color: var(--neon-blue);
    position: absolute;
    left: 0;
    top: 0;
}

.yh-division-btn {
    margin-top: auto;
}

.yh-dashboard-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.yh-dashboard-preview-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 1rem;
    padding: 1.1rem;
    min-height: 150px;
}

.yh-dashboard-preview-card h4 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.yh-dashboard-preview-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.yh-landing-auth-wrap {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.yh-auth-card {
    min-height: unset;
}

.yh-auth-panel-left {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(2, 132, 199, 0.22), rgba(15, 23, 42, 0.82)),
        rgba(0, 0, 0, 0.35);
    min-height: 720px;
}

.yh-auth-panel-copy {
    max-width: 380px;
    padding: 2rem;
}

.yh-auth-panel-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (max-width: 1100px) {
    .yh-landing-hero-grid,
    .yh-landing-division-grid,
    .yh-dashboard-preview-grid {
        grid-template-columns: 1fr;
    }

    .yh-landing-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .yh-landing-section-copy {
        max-width: none;
    }

    .yh-landing-metrics {
        grid-template-columns: 1fr;
    }

    .yh-auth-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .yh-auth-card .panel-left,
    .yh-auth-card .panel-right-wrapper {
        width: 100%;
    }

    .yh-auth-card .panel-left {
        min-height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
}

@media (max-width: 768px) {
    .yh-landing-shell {
        padding: 1rem;
    }

    .yh-landing-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .yh-landing-brand {
        gap: 0.95rem;
    }

    .yh-landing-brand-logo {
        width: 62px;
        height: 62px;
    }

    .yh-landing-brand-name {
        font-size: 1.18rem;
        line-height: 1.15;
    }

    .yh-topbar-btn,
    .yh-landing-cta-primary,
    .yh-landing-cta-secondary {
        width: 100%;
    }

    .yh-landing-cta-stack {
        width: 100%;
    }

    .yh-landing-title {
        font-size: 2.65rem;
        line-height: 0.96;
    }

    .yh-landing-narrative {
        font-size: 1rem;
        line-height: 1.55;
    }

    .yh-landing-subtitle {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .yh-landing-proof-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .yh-landing-proof-item {
        width: 100%;
        justify-content: flex-start;
    }

    .yh-landing-scroll-hint {
        margin-top: 1rem;
    }

    .yh-landing-visual-card,
    .yh-landing-video {
        min-height: 340px;
    }

    .yh-auth-panel-title {
        font-size: 1.5rem;
    }
}
/* FIX: Remove modal behavior for landing page */
#step-1.yh-landing-step {
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    align-items: unset !important;
    justify-content: unset !important;
}
/* ========================================================= */
/* LANDING AUTH CARD FIX                                     */
/* ========================================================= */
.yh-auth-card {
    max-width: 1100px;
    width: 95vw;
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
    align-items: stretch;
}

.yh-auth-card .panel-left,
.yh-auth-card .panel-right-wrapper {
    height: auto !important;
    min-height: 720px;
}

.yh-auth-card .panel-right-wrapper {
    position: relative;
    overflow: visible !important;
}

.yh-auth-card .flip-card-inner {
    position: relative !important;
    width: 100%;
    height: auto !important;
    min-height: 720px;
    transform-style: preserve-3d;
}

.yh-auth-card .flip-card-front,
.yh-auth-card .flip-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 720px;
    height: 100%;
    overflow-y: auto;
}

.yh-auth-card .auth-center-wrapper {
    min-height: 100%;
    justify-content: center;
}

.yh-auth-card .flip-card-back {
    transform: rotateY(180deg);
}

.yh-auth-card .flip-card-front {
    transform: rotateY(0deg);
}

@media (max-width: 1100px) {
    .yh-auth-card {
        height: auto !important;
        min-height: unset !important;
    }

    .yh-auth-card .panel-left,
    .yh-auth-card .panel-right-wrapper,
    .yh-auth-card .flip-card-inner,
    .yh-auth-card .flip-card-front,
    .yh-auth-card .flip-card-back {
        min-height: auto !important;
        height: auto !important;
    }

    .yh-auth-card .panel-right-wrapper {
        min-height: auto !important;
    }

    .yh-auth-card .flip-card-front,
    .yh-auth-card .flip-card-back {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        padding: 1.5rem !important;
    }

    .yh-auth-card .flip-card-inner {
        transform: none !important;
        min-height: auto !important;
    }

    .yh-auth-card .auth-center-wrapper {
        min-height: auto !important;
        justify-content: flex-start !important;
    }

    .yh-auth-card .flip-card-back {
        display: none;
    }

    .yh-auth-card .flip-card-inner.is-flipped .flip-card-front {
        display: none;
    }

    .yh-auth-card .flip-card-inner.is-flipped .flip-card-back {
        display: flex;
    }
}
/* ========================================================= */
/* FEATURED PARTNERSHIPS / FEATURED WEBSITES                 */
/* ========================================================= */
.yh-featured-sites-wrap {
    width: 100%;
    margin-top: 4px;
}

.yh-featured-sites-wrap .yh-universe-feature-panel {
    position: relative;
    overflow: hidden;
    padding: 20px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 15, 30, 0.92));
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255,255,255,0.03);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.yh-featured-sites-wrap .yh-universe-feature-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.01) 38%,
        rgba(255,255,255,0.00) 100%
    );
}

.yh-featured-sites-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-height: 228px !important;
    padding: 18px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
        rgba(15, 23, 42, 0.82) !important;
    box-shadow:
        0 10px 28px rgba(0,0,0,0.26),
        inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,0.04), transparent 42%);
    opacity: 0.9;
    z-index: -1;
    pointer-events: none;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.34),
        rgba(255,255,255,0.04),
        rgba(56, 189, 248, 0.14)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow:
        0 18px 36px rgba(0,0,0,0.34),
        0 0 0 1px rgba(56, 189, 248, 0.08),
        0 0 30px rgba(14, 165, 233, 0.12);
}

.yh-featured-sites-wrap .yh-dashboard-preview-card > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 7px !important;
    border-radius: 14px !important;
    object-fit: contain;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 10px 18px rgba(0,0,0,0.18);
}

.yh-featured-sites-wrap .yh-dashboard-preview-card > div:first-child > div:last-child {
    min-width: 0;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card > div:first-child > div:last-child > div:first-child {
    margin-bottom: 4px !important;
    color: rgba(255,255,255,0.62) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card h4 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card p {
    margin: 0 !important;
    color: var(--text-muted) !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    max-width: 42ch;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card .btn-secondary {
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    align-self: flex-start !important;
    border: 1px solid rgba(56, 189, 248, 0.34) !important;
    background: rgba(14, 165, 233, 0.08) !important;
    color: #d9f4ff !important;
    font-size: 0.84rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
    pointer-events: none;
}

.yh-featured-sites-wrap .yh-dashboard-preview-card .btn-secondary:hover {
    transform: none !important;
    background: rgba(14, 165, 233, 0.08) !important;
    color: #d9f4ff !important;
}

@media (max-width: 1024px) {
    .yh-featured-sites-wrap .yh-universe-feature-panel {
        padding: 18px !important;
    }

    .yh-featured-sites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card {
        min-height: 214px !important;
        padding: 16px !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card h4 {
        font-size: 1rem !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card p {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 768px) {
    .yh-featured-sites-grid {
        grid-template-columns: 1fr !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card {
        min-height: 198px !important;
    }
}

@media (max-width: 480px) {
    .yh-featured-sites-wrap {
        margin-top: 2px;
    }

    .yh-featured-sites-wrap .yh-universe-feature-panel {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .yh-featured-sites-grid {
        gap: 12px !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card {
        min-height: auto !important;
        padding: 14px !important;
        border-radius: 16px !important;
        gap: 12px !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card img {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card h4 {
        font-size: 0.95rem !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card p {
        font-size: 0.84rem !important;
        line-height: 1.55 !important;
    }

    .yh-featured-sites-wrap .yh-dashboard-preview-card .btn-secondary {
        padding: 9px 12px !important;
        font-size: 0.78rem !important;
    }
}