/* ==========================================================================
   BD BÌNH DÂN HỌC VỤ — WARM WINE RED EDITORIAL DESIGN SYSTEM v3.1
   Inspired by ScamReady ASEAN: Graph-paper editorial canvas, tactile borders,
   3D interactive floating BeeDee emblem, Editorial Satellite Orbit Visualizer
   Key Brand Color: Warm Wine Red / Bordeaux (#881337 / #9B1C31 / #680E29)
   Typography: Be Vietnam Pro (Headings) + Inter (Body & Tabular Data)
   ========================================================================== */

:root {
    /* Key Brand Color: Warm Wine Red (Đỏ Rượu Vang Ấm) */
    --ed-wine: #881337;
    --ed-wine-rich: #9B1C31;
    --ed-wine-dark: #680E29;
    --ed-wine-deep: #3B0918;
    --ed-wine-soft: #FDF2F4;
    --ed-wine-tint: #FCE7EB;
    --ed-wine-border: rgba(136, 19, 55, 0.22);

    /* Semantic Aliases mapped to Warm Wine Red */
    --ed-navy: #881337;
    --ed-navy-dark: #680E29;
    --ed-navy-soft: #FDF2F4;
    --ed-blue: #9B1C31;
    --ed-blue-soft: #FEF2F4;

    /* Complementary Warm Editorial Accents */
    --ed-amber: #F59E0B;
    --ed-amber-dark: #B45309;
    --ed-amber-hover: #D97706;
    --ed-amber-soft: #FFFBEB;
    --ed-emerald: #059669;
    --ed-emerald-soft: #ECFDF5;
    --ed-rose: #BE123C;
    --ed-rose-soft: #FFF1F2;
    --ed-indigo: #7C2D12;
    --ed-indigo-soft: #FFF7ED;
    --ed-teal: #0F766E;
    --ed-teal-soft: #F0FDFA;
    --ed-purple: #6D28D9;
    --ed-purple-soft: #F5F3FF;

    /* Warm Editorial Surfaces & Borders */
    --ed-bg: #FFFFFF;
    --ed-surface: #FAF7F7;
    --ed-canvas: #FAF8F6;
    --ed-border: #EAE2E4;
    --ed-border-strong: #D6C8CC;
    --ed-ink: #1B1416;
    --ed-ink-secondary: #3C2F34;
    --ed-ink-muted: #574A4F;
    --ed-ink-subtle: #786A70;

    /* Typography */
    --ed-font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --ed-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Radii & Depth */
    --ed-radius-sm: 8px;
    --ed-radius-md: 12px;
    --ed-radius-lg: 16px;
    --ed-radius-xl: 20px;
    --ed-radius-pill: 9999px;
    --ed-shadow-sm: 0 1px 2px rgba(27, 20, 22, 0.05);
    --ed-shadow-md: 0 8px 24px rgba(136, 19, 55, 0.08);
    --ed-shadow-lg: 0 16px 40px rgba(136, 19, 55, 0.11);
    --ed-shadow-tactile: 0 3px 0 #1B1416;

    /* Motion */
    --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ed-dur: 200ms;

    /* Legacy Compatibility Bridge for script.js, theme-toggle.js & ai-chat.js */
    --primary: #881337;
    --primary-light: #9B1C31;
    --accent-glow: #B45309;
    --bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-main: #1B1416;
    --text-primary: #1B1416;
    --text-light: #574A4F;
    --text-muted: #786A70;
    --border-color: #EAE2E4;
    --shadow: 0 8px 24px rgba(136, 19, 55, 0.08);
    --bd-top-ribbon-height: 40px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body.ed-body,
body.ed-body.dark-theme {
    margin: 0;
    padding: 0;
    font-family: var(--ed-font-body);
    color: var(--ed-ink);
    background-color: var(--ed-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ed-font-display);
    color: var(--ed-ink);
    letter-spacing: -0.02em;
    margin-top: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

:focus-visible {
    outline: 2.5px solid var(--ed-wine);
    outline-offset: 2px;
    border-radius: 6px;
}

.hidden { display: none !important; }

/* Skip to main content (WCAG AA) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--ed-wine);
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: var(--ed-radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 99999;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Layout Containers & Warm Editorial Graph-Paper Grid */
.ed-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ed-section {
    padding: 84px 0;
    position: relative;
}

.ed-section-white { background-color: var(--ed-bg); }

.ed-section-slate {
    background-color: var(--ed-surface);
    border-top: 1px solid var(--ed-border);
    border-bottom: 1px solid var(--ed-border);
}

.ed-canvas-grid {
    background-color: var(--ed-canvas);
    background-image:
        linear-gradient(to right, rgba(136, 19, 55, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(136, 19, 55, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Section Headers */
.ed-section-head {
    max-width: 720px;
    margin-bottom: 40px;
}
.ed-section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: var(--ed-radius-pill);
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    border: 1px solid var(--ed-wine-border);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ed-section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ed-ink);
    margin: 0 0 12px 0;
}

.ed-section-subtitle {
    font-size: 1.02rem;
    color: var(--ed-ink-muted);
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   1. FIXED TOP 500K ANNOUNCEMENT BAR + STICKY SINGLE-ROW NAVIGATION (ZERO OVERLAP)
   ========================================================================== */
:root {
    --bd-ribbon-h: 0px;
}
html.bd-has-fixed-ribbon {
    --bd-ribbon-h: 36px;
}
html.bd-has-fixed-ribbon body.ed-body {
    padding-top: var(--bd-ribbon-h, 36px) !important;
}

#bd-top-announcement-ribbon.ed-announce-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: var(--bd-ribbon-h, 36px);
    background: var(--ed-wine-dark);
    color: #FDF2F4;
    font-size: 0.84rem;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 1010 !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
#bd-top-announcement-ribbon.ed-announce-bar.hidden {
    display: none !important;
}

.ed-announce-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 42px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

.ed-announce-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--ed-amber);
    color: #1B1416;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ed-announce-link {
    color: #FDE68A;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid rgba(253, 230, 138, 0.45);
    transition: color var(--ed-dur) ease, border-color var(--ed-dur) ease;
}
.ed-announce-link:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }

.ed-announce-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #FBCFE8;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--ed-dur) ease, color var(--ed-dur) ease;
}
.ed-announce-close:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }

/* Sticky Navbar (Pinned cleanly directly beneath fixed 500k ribbon) */
.ed-nav {
    position: sticky;
    top: var(--bd-ribbon-h, 0px);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ed-border);
    transition: box-shadow var(--ed-dur) ease, top 0.2s ease;
}
.ed-nav.is-scrolled { box-shadow: 0 4px 20px rgba(136, 19, 55, 0.07); }

.ed-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ed-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ed-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ed-wine);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ed-font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    border: 1.5px solid var(--ed-ink);
    box-shadow: 0 2px 0 var(--ed-ink);
    position: relative;
}
.ed-brand-mark::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--ed-amber);
    border: 1.5px solid #FFFFFF;
}

.ed-brand-text { display: flex; flex-direction: column; line-height: 1.15; gap: 2px; }
.ed-brand-name { font-family: var(--ed-font-display); font-weight: 800; font-size: 0.98rem; color: var(--ed-ink); }
.ed-brand-tag {
    font-family: var(--ed-font-body);
    font-size: 0.69rem;
    font-weight: 600;
    font-style: italic;
    color: var(--ed-ink-subtle);
    letter-spacing: 0.005em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.ed-brand-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ed-wine);
    display: inline-block;
    flex-shrink: 0;
}

/* Desktop Center Nav Links (Max 5 Top-Level Items) */
.ed-nav-links { display: flex; align-items: center; gap: 4px; }
.ed-nav-item { position: relative; }

.ed-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ed-ink-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--ed-dur) ease, color var(--ed-dur) ease;
    white-space: nowrap;
}
.ed-nav-link:hover,
.ed-nav-item.open > .ed-nav-link {
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
}
.ed-nav-link.active { background: var(--ed-wine); color: #FFFFFF; }

.ed-nav-chevron { width: 14px; height: 14px; transition: transform var(--ed-dur) ease; }
.ed-nav-item:hover .ed-nav-chevron,
.ed-nav-item.open .ed-nav-chevron { transform: rotate(180deg); }

.ed-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #FFFFFF;
    border: 1px solid var(--ed-border-strong);
    border-radius: var(--ed-radius-lg);
    box-shadow: var(--ed-shadow-lg);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s var(--ed-ease), visibility 0.18s;
    z-index: 1100;
}
.ed-nav-item:hover .ed-dropdown-panel,
.ed-nav-item:focus-within .ed-dropdown-panel,
.ed-nav-item.open .ed-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.ed-dropdown-mega { width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ed-dropdown-compact { width: 285px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }

.ed-dropdown-col-title {
    font-family: var(--ed-font-display);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ed-wine);
    padding: 0 8px 8px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--ed-border);
}

.ed-dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    margin-bottom: 4px;
    transition: background var(--ed-dur) ease, border-color var(--ed-dur) ease, transform var(--ed-dur) ease;
}
.ed-dropdown-link:hover { background: var(--ed-wine-soft); }

/* Featured 5 Flagship Tools inside Bộ Công Cụ Mega Dropdown */
.ed-dropdown-link.is-featured {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFBEB 100%);
    border: 1px solid rgba(136, 19, 55, 0.22);
    border-left: 3px solid var(--ed-wine);
    box-shadow: 0 2px 8px rgba(136, 19, 55, 0.06);
}
.ed-dropdown-link.is-featured:hover {
    background: linear-gradient(135deg, #FCE7EB 0%, #FEF3C7 100%);
    border-color: var(--ed-wine);
    transform: translateX(2px);
}
.ed-dropdown-link.is-featured .ed-dropdown-icon {
    background: var(--ed-wine);
    color: #FFFFFF;
    border-color: var(--ed-wine-dark);
}
.ed-dropdown-link.is-featured .ed-dropdown-link-title {
    color: var(--ed-wine);
    font-weight: 800;
}
.ed-hot-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--ed-font-display);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1.5px 6px;
    border-radius: 9999px;
    background: var(--ed-wine);
    color: #FFFFFF;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1.3;
}
.ed-hot-pill.gold {
    background: var(--ed-amber);
    color: #1B1416;
}
.ed-drawer-link.is-featured {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFBEB 100%);
    border: 1px solid rgba(136, 19, 55, 0.24);
    border-left: 3px solid var(--ed-wine);
    color: var(--ed-wine);
    font-weight: 800;
}

.ed-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ed-dropdown-link-title { display: block; font-weight: 700; font-size: 0.86rem; color: var(--ed-ink); line-height: 1.3; }
.ed-dropdown-link-desc { display: block; font-size: 0.75rem; color: var(--ed-ink-subtle); line-height: 1.35; margin-top: 2px; }

/* Right Actions */
.ed-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.ed-lang-btn,
#bd-lang-toggle.bd-lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1.5px solid var(--ed-ink);
    background: #FFFFFF;
    color: var(--ed-ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background var(--ed-dur) ease;
    white-space: nowrap;
}
.ed-lang-btn:hover,
#bd-lang-toggle.bd-lang-toggle-btn:hover { background: var(--ed-wine-soft); }

/* Keep Single-Row Navbar Pristine Against Legacy theme-toggle.js Injections */
body.ed-body #ed-main-nav .nav-notification-bell,
body.ed-body #ed-main-nav #btn-noti-bell,
body.ed-body #ed-main-nav .nav-register-btn,
body.ed-body #ed-main-nav #btn-navbar-register,
body.ed-body #ed-main-nav .nav-share-btn,
body.ed-body #ed-main-nav .theme-toggle-btn,
body.ed-body #ed-main-nav [id*="online"],
body.ed-body #ed-main-nav [class*="online"],
body.ed-body #ed-main-nav [id*="vault"],
body.ed-body #ed-main-nav [class*="vault"],
body.ed-body #ed-main-nav [id*="ebook"],
body.ed-body #ed-main-nav .mobile-header-utilities,
body.ed-body #ed-main-nav .live-counter,
body.ed-body #ed-main-nav #live-user-counter,
body.ed-body #live-user-counter,
body.ed-body #b2b-bug-report-launcher {
    display: none !important;
}

body.ed-body #ed-main-nav #navbar-user-hud {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ed-body #ed-main-nav .nav-login-btn,
body.ed-body #ed-main-nav #btn-navbar-login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 36px !important;
    padding: 0 13px !important;
    border-radius: 8px !important;
    border: 1.5px solid var(--ed-border-strong) !important;
    background: #FFFFFF !important;
    background-image: none !important;
    color: var(--ed-ink) !important;
    font-family: var(--ed-font-display) !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
body.ed-body #ed-main-nav .nav-login-btn:hover,
body.ed-body #ed-main-nav #btn-navbar-login:hover {
    border-color: var(--ed-wine) !important;
    color: var(--ed-wine) !important;
    background: var(--ed-wine-soft) !important;
}

.ed-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--ed-radius-pill);
    background: var(--ed-amber);
    color: #1B1416;
    font-family: var(--ed-font-display);
    font-size: 0.8rem;
    font-weight: 800;
    border: 1.5px solid var(--ed-ink);
    box-shadow: 0 2px 0 var(--ed-ink);
    transition: transform var(--ed-dur) var(--ed-ease), box-shadow var(--ed-dur) ease, background var(--ed-dur) ease;
    white-space: nowrap;
}
.ed-nav-cta:hover { background: #FBBF24; transform: translateY(-1px); box-shadow: 0 3px 0 var(--ed-ink); }
.ed-nav-cta:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ed-ink); }

/* Standalone Highlighted Alumni VIP Navbar Link */
.ed-nav-link-vip {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 12px !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
    color: #92400E !important;
    border: 1.5px solid #F59E0B !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.22);
    white-space: nowrap;
}
.ed-nav-link-vip svg { color: #D97706; flex-shrink: 0; }
.ed-nav-link-vip:hover {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
    color: #7A0C2E !important;
    border-color: #7A0C2E !important;
    transform: translateY(-1px);
}

.ed-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid var(--ed-border-strong);
    background: #FFFFFF;
    color: var(--ed-ink);
    cursor: pointer;
}

/* Mobile Slide-Over Drawer */
.ed-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 20, 22, 0.48);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
}
.ed-drawer-backdrop.open { opacity: 1; visibility: visible; }

.ed-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: #FFFFFF;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.28s var(--ed-ease);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ed-border);
    box-shadow: -12px 0 36px rgba(27, 20, 22, 0.16);
}
.ed-drawer.open { transform: translateX(0); }

.ed-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ed-border);
    flex-shrink: 0;
}
.ed-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--ed-border);
    background: #FDFBFA;
    color: var(--ed-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
}
.ed-drawer-close:hover { background: #FDF2F4; color: var(--ed-wine); border-color: var(--ed-wine); }
.ed-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ed-drawer-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #786A70;
    margin: 0 0 6px 2px;
}
.ed-drawer-vip-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #F59E0B;
    color: #78350F;
    text-decoration: none;
}
.ed-drawer-vip-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.ed-drawer-vip-star {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #FFFFFF;
    color: #D97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.ed-drawer-vip-left strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #7A0C2E;
    line-height: 1.2;
}
.ed-drawer-vip-left small {
    display: block;
    font-size: 0.7rem;
    color: #92400E;
    font-weight: 600;
}
.ed-drawer-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.ed-drawer-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 10px;
    border-radius: 11px;
    background: #FDFBFA;
    border: 1px solid #EAE2E4;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1B1416;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    touch-action: manipulation;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.ed-drawer-tile > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
}
.ed-drawer-tile:active { transform: scale(0.98); }
.ed-drawer-tile:hover { background: #FDF2F4; border-color: #7A0C2E; color: #7A0C2E; }
.ed-drawer-tile.is-hot {
    background: #FFFFFF;
    border-color: rgba(122, 12, 46, 0.22);
}
.ed-drawer-tile.is-span-2 {
    grid-column: span 2;
}
.ed-drawer-tile-ico {
    font-size: 0.92rem;
    line-height: 1;
    flex-shrink: 0;
}
.ed-drawer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7A0C2E;
    margin-left: auto;
    flex-shrink: 0;
}
.ed-drawer-dot.gold {
    background: #F59E0B;
}
.ed-drawer-footer {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--ed-border);
    background: #FDFBFA;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.ed-drawer-login-btn {
    width: 100%;
    min-height: 38px !important;
    font-size: 0.82rem !important;
    padding: 0 12px !important;
}
.ed-drawer-cta-btn {
    width: 100%;
    min-height: 42px !important;
    font-size: 0.84rem !important;
    padding: 0 14px !important;
}

/* ==========================================================================
   2. EDITORIAL HERO + 3D FLOATING ANIMATED BEEDEE SHIELD + 01/02/03 STRIP
   ========================================================================== */
.ed-hero {
    padding: 60px 0 72px;
    border-bottom: 1px solid var(--ed-border);
}

.ed-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: center;
}

.ed-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: var(--ed-radius-pill);
    background: #FFFFFF;
    border: 1px solid var(--ed-border-strong);
    box-shadow: var(--ed-shadow-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ed-ink-secondary);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.ed-eyebrow-sep { color: var(--ed-border-strong); }

.ed-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ed-emerald);
    font-weight: 700;
}
.ed-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ed-emerald);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    animation: edPulse 2s infinite;
}
@keyframes edPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); }
}

.ed-hero-title {
    font-size: clamp(2.25rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--ed-ink);
    margin: 0 0 18px 0;
}

.ed-hero-title-accent {
    color: var(--ed-wine);
    display: inline;
    background: linear-gradient(transparent 72%, rgba(245, 158, 11, 0.34) 72%);
}

.ed-hero-sub {
    font-size: 1.08rem;
    color: var(--ed-ink-muted);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 0 28px 0;
}

/* Tactile Editorial CTA Buttons (Warm Wine Red Primary + Crisp White Outline) */
.ed-cta-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.ed-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 10px;
    background: var(--ed-wine);
    color: #FFFFFF;
    font-family: var(--ed-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    border: 1.5px solid var(--ed-ink);
    box-shadow: 0 3px 0 var(--ed-ink);
    cursor: pointer;
    transition: transform var(--ed-dur) var(--ed-ease), box-shadow var(--ed-dur) ease, background var(--ed-dur) ease;
}
.ed-btn-primary:hover {
    background: var(--ed-wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--ed-ink);
}
.ed-btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ed-ink); }

.ed-btn-amber-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--ed-amber);
    color: #1B1416;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.ed-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ed-ink);
    font-family: var(--ed-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    border: 1.5px solid var(--ed-ink);
    box-shadow: 0 3px 0 var(--ed-ink);
    cursor: pointer;
    transition: transform var(--ed-dur) var(--ed-ease), box-shadow var(--ed-dur) ease, background var(--ed-dur) ease;
}
.ed-btn-outline:hover {
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--ed-ink);
}
.ed-btn-outline:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ed-ink); }

/* ==========================================================================
   LIVING ARTICULATED MASCOT RIG: CHÚ CÚ THÔNG THÁI BEEDEE
   True animated owl mascot (NO card/shield frame!) with Wave/Say Hi,
   Whistle + floating notes, Polite Bow, B2B Role-Play & Live User Greeting
   ========================================================================== */
.ed-beedee-mascot-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4px 0;
}

.ed-beedee-speech {
    position: relative;
    max-width: 390px;
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    border-radius: 16px;
    padding: 13px 18px;
    box-shadow: 0 4px 0 rgba(136, 19, 55, 0.14);
    margin-bottom: 10px;
    text-align: left;
    transition: transform 0.25s var(--ed-ease);
}

.ed-beedee-speech::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border-right: 1.5px solid var(--ed-ink);
    border-bottom: 1.5px solid var(--ed-ink);
}

.ed-beedee-speech-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.ed-beedee-speech-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ed-font-display);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ed-wine);
}

.ed-beedee-state-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--ed-amber-soft);
    color: var(--ed-amber-dark);
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.ed-beedee-speech-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ed-ink);
    font-weight: 500;
}

.ed-beedee-speech-text strong {
    color: var(--ed-wine);
    font-weight: 800;
}

.ed-owl-rig-wrap {
    position: relative;
    width: 268px;
    height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.ed-owl-svg {
    width: 248px;
    height: 248px;
    overflow: visible;
    filter: drop-shadow(0 10px 18px rgba(136, 19, 55, 0.14));
}

/* Living Base Idle Breathing */
.owl-whole {
    transform-origin: 130px 215px;
    animation: owlIdleBreathe 3.4s ease-in-out infinite;
}
@keyframes owlIdleBreathe {
    0%, 100% { transform: translateY(0) scaleY(1) scaleX(1); }
    50% { transform: translateY(-5px) scaleY(1.02) scaleX(0.99); }
}

.owl-head { transform-origin: 130px 118px; transition: transform 0.3s var(--ed-ease); }
.owl-wing-left { transform-origin: 66px 142px; transition: transform 0.28s var(--ed-ease); }
.owl-wing-right { transform-origin: 194px 142px; transition: transform 0.28s var(--ed-ease); }
.owl-eyelids { opacity: 0; transition: opacity 0.08s ease; }
.owl-happy-eyes { opacity: 0; transition: opacity 0.18s ease; }
.owl-beak-whistle { opacity: 0; transition: opacity 0.15s ease; }
.owl-beak-normal { transition: opacity 0.15s ease; }
.owl-roleplay-gear { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s var(--ed-ease); }
.owl-notes { opacity: 0; pointer-events: none; }

/* Blink class triggered periodically by JS */
.ed-owl-rig-wrap.is-blinking .owl-eyelids { opacity: 1; }

/* ACTION 1: SAY HI / VẪY TAY */
.ed-owl-rig-wrap[data-emote="wave"] .owl-whole {
    animation: owlHopWave 0.7s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="wave"] .owl-wing-right {
    animation: owlWingWave 0.42s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="wave"] .owl-head {
    transform: rotate(-7deg);
}
.ed-owl-rig-wrap[data-emote="wave"] .owl-happy-eyes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="wave"] .owl-open-eyes { opacity: 0; }

@keyframes owlHopWave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes owlWingWave {
    0%, 100% { transform: rotate(-118deg) translate(4px, -10px); }
    50% { transform: rotate(-150deg) translate(8px, -16px); }
}

/* ACTION 2: HUÝT SÁO (WHISTLE + FLOATING MUSIC NOTES) */
.ed-owl-rig-wrap[data-emote="whistle"] .owl-whole {
    animation: owlWhistleSway 1.1s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="whistle"] .owl-head {
    animation: owlWhistleHead 1.1s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="whistle"] .owl-beak-normal { opacity: 0; }
.ed-owl-rig-wrap[data-emote="whistle"] .owl-beak-whistle { opacity: 1; }
.ed-owl-rig-wrap[data-emote="whistle"] .owl-notes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="whistle"] .owl-note-1 {
    animation: owlNoteFloat 1.5s ease-out infinite;
}
.ed-owl-rig-wrap[data-emote="whistle"] .owl-note-2 {
    animation: owlNoteFloat 1.5s ease-out 0.55s infinite;
}
.ed-owl-rig-wrap[data-emote="whistle"] .owl-note-3 {
    animation: owlNoteFloat 1.5s ease-out 1.05s infinite;
}

@keyframes owlWhistleSway {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-5px); }
}
@keyframes owlWhistleHead {
    0%, 100% { transform: rotate(-5deg) translateY(-2px); }
    50% { transform: rotate(5deg) translateY(2px); }
}
@keyframes owlNoteFloat {
    0% { opacity: 0; transform: translate(0, 12px) scale(0.7); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translate(22px, -48px) scale(1.15); }
}

/* ACTION 3: CÚI ĐẦU CHÀO (POLITE EXECUTIVE BOW) */
.ed-owl-rig-wrap[data-emote="bow"] .owl-whole {
    animation: owlBowMotion 1.6s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="bow"] .owl-head {
    transform: translateY(14px) scaleY(0.95);
}
.ed-owl-rig-wrap[data-emote="bow"] .owl-wing-left {
    transform: rotate(-16deg) translate(6px, 4px);
}
.ed-owl-rig-wrap[data-emote="bow"] .owl-wing-right {
    transform: rotate(16deg) translate(-6px, 4px);
}
.ed-owl-rig-wrap[data-emote="bow"] .owl-happy-eyes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="bow"] .owl-open-eyes { opacity: 0; }

@keyframes owlBowMotion {
    0%, 100% { transform: translateY(0) scaleY(1); }
    45%, 65% { transform: translateY(14px) scaleY(0.91); }
}

/* ACTION 4: ROLE-PLAY CHỐT DEAL (MENTOR GLASSES + EXECUTIVE SWAGGER) */
.ed-owl-rig-wrap[data-emote="roleplay"] .owl-whole {
    animation: owlRoleplayNod 1.3s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="roleplay"] .owl-wing-left {
    transform: rotate(28deg) translate(-4px, -6px);
}
.ed-owl-rig-wrap[data-emote="roleplay"] .owl-wing-right {
    animation: owlPointDeal 1.3s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="roleplay"] .owl-roleplay-gear {
    opacity: 1;
    transform: translateY(0);
}

/* ACTION 5: HÁT NGHÊU NGAO (SINGING WITH MINI GOLD MIC + BOUNCY DANCE) */
.owl-sing-mic,
.owl-beak-sing,
.owl-sparkles {
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s var(--ed-ease);
    pointer-events: none;
}
.ed-owl-rig-wrap[data-emote="sing"] .owl-whole {
    animation: owlSingDance 0.65s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="sing"] .owl-head {
    animation: owlSingHead 0.65s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="sing"] .owl-wing-left {
    transform: rotate(-38deg) translate(14px, -18px);
}
.ed-owl-rig-wrap[data-emote="sing"] .owl-wing-right {
    animation: owlSingWing 0.65s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="sing"] .owl-beak-normal { opacity: 0; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-beak-sing { opacity: 1; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-sing-mic { opacity: 1; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-happy-eyes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-open-eyes { opacity: 0; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-notes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-note-1 { animation: owlNoteFloat 1.25s ease-out infinite; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-note-2 { animation: owlNoteFloat 1.25s ease-out 0.4s infinite; }
.ed-owl-rig-wrap[data-emote="sing"] .owl-note-3 { animation: owlNoteFloat 1.25s ease-out 0.8s infinite; }

@keyframes owlSingDance {
    0%, 100% { transform: translateY(0) rotate(-3deg) scaleY(1); }
    50% { transform: translateY(-9px) rotate(3deg) scaleY(1.03); }
}
@keyframes owlSingHead {
    0%, 100% { transform: rotate(4deg); }
    50% { transform: rotate(-5deg); }
}
@keyframes owlSingWing {
    0%, 100% { transform: rotate(-92deg) translate(4px, -6px); }
    50% { transform: rotate(-122deg) translate(8px, -12px); }
}

/* ACTION 6: ĂN MỪNG CHỐT DEAL (CELEBRATE HOP + SPARKLES) */
.ed-owl-rig-wrap[data-emote="celebrate"] .owl-whole {
    animation: owlCelebrateJump 0.62s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}
.ed-owl-rig-wrap[data-emote="celebrate"] .owl-wing-left {
    transform: rotate(125deg) translate(-6px, -14px);
}
.ed-owl-rig-wrap[data-emote="celebrate"] .owl-wing-right {
    transform: rotate(-125deg) translate(6px, -14px);
}
.ed-owl-rig-wrap[data-emote="celebrate"] .owl-happy-eyes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="celebrate"] .owl-open-eyes { opacity: 0; }
.ed-owl-rig-wrap[data-emote="celebrate"] .owl-sparkles {
    opacity: 1;
    animation: owlSparklePulse 0.9s ease-in-out infinite;
}

@keyframes owlCelebrateJump {
    0%, 100% { transform: translateY(0) scaleY(0.97) scaleX(1.03); }
    45% { transform: translateY(-18px) scaleY(1.04) scaleX(0.97); }
}
@keyframes owlSparklePulse {
    0%, 100% { transform: scale(0.92); opacity: 0.7; }
    50% { transform: scale(1.12); opacity: 1; }
}

/* Sound Toggle Pill under BeeDee */
.ed-sound-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--ed-radius-pill);
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    box-shadow: 0 2px 0 var(--ed-ink);
    color: var(--ed-ink);
    font-family: var(--ed-font-display);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--ed-dur) ease;
}
.ed-sound-btn:hover {
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
}
.ed-sound-btn.sound-on {
    background: var(--ed-wine);
    color: #FFFFFF;
    border-color: var(--ed-ink);
}

@keyframes owlRoleplayNod {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes owlPointDeal {
    0%, 100% { transform: rotate(-42deg) translate(2px, -4px); }
    50% { transform: rotate(-64deg) translate(4px, -10px); }
}

/* Ground Shadow under Living Owl */
.ed-beedee-ground-shadow {
    width: 158px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(136, 19, 55, 0.22) 0%, rgba(27, 20, 22, 0.08) 52%, transparent 75%);
    margin-top: -10px;
    animation: edShadowPulse 3.4s ease-in-out infinite;
}
@keyframes edShadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(0.86); opacity: 0.5; }
}

/* ==========================================================================
   LIVING TIME-OF-DAY & LIVE REGIONAL WEATHER BEEDEE CENTERPIECE (v3.6)
   ========================================================================== */
.ed-beedee-mascot-stage {
    position: relative;
    padding: 6px 0 4px;
}

/* Live Regional Telemetry Bar (Local Weather + Real Local Clock) */
.ed-weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid var(--ed-border-strong);
    box-shadow: 0 3px 12px rgba(136, 19, 55, 0.08);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ed-ink-secondary);
    margin-bottom: 10px;
    transition: all 0.2s ease;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    cursor: default;
}
.ed-weather-pill:hover {
    border-color: var(--ed-wine);
}
.ed-weather-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}
.ed-weather-temp {
    font-family: var(--ed-font-display);
    font-weight: 800;
    color: var(--ed-wine);
}
.ed-weather-sep { color: #CBD5E1; }

/* Expanded Centerpiece Stage for Living Diorama */
.ed-owl-rig-wrap {
    width: 300px;
    height: 276px;
}
.ed-owl-svg {
    width: 294px;
    height: 272px;
}

/* Atmospheric Sky Aura behind floating BeeDee */
.owl-sky-aura {
    transition: fill 0.6s ease, opacity 0.6s ease;
    opacity: 0.92;
}
.ed-owl-rig-wrap[data-time-slot="morning_wake"] .owl-sky-aura { fill: url(#skySunriseGrad); }
.ed-owl-rig-wrap[data-time-slot="work_morning"] .owl-sky-aura { fill: url(#skyDayGrad); }
.ed-owl-rig-wrap[data-time-slot="lunch"] .owl-sky-aura { fill: url(#skyNoonGrad); }
.ed-owl-rig-wrap[data-time-slot="work_afternoon"] .owl-sky-aura { fill: url(#skyDayGrad); }
.ed-owl-rig-wrap[data-time-slot="commute_home"] .owl-sky-aura { fill: url(#skySunsetGrad); }
.ed-owl-rig-wrap[data-time-slot="evening_chill"] .owl-sky-aura { fill: url(#skyEveningGrad); }
.ed-owl-rig-wrap[data-time-slot="sleepy_night"] .owl-sky-aura { fill: url(#skyNightGrad); }

/* Weather & Life-Scene SVG Layers (Hidden by default, toggled cleanly by data attributes) */
.owl-weather-sun,
.owl-weather-clouds,
.owl-weather-rain,
.owl-weather-lightning,
.owl-night-sky,
.owl-commute-road,
.owl-prop-umbrella,
.owl-prop-sunglasses,
.owl-prop-coffee,
.owl-prop-morning-cap,
.owl-prop-laptop,
.owl-prop-lunch,
.owl-prop-helmet,
.owl-prop-scooter,
.owl-prop-scarf,
.owl-prop-headphones,
.owl-prop-ebook,
.owl-prop-nightcap,
.owl-prop-pillow,
.owl-prop-zzz,
.owl-sleepy-eyes,
.owl-beak-munch {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease, transform 0.32s var(--ed-ease);
}

/* WEATHER OVERLAYS (Regional Live Driven!) */
.ed-owl-rig-wrap[data-weather="sunny"] .owl-weather-sun,
.ed-owl-rig-wrap[data-weather="hot"] .owl-weather-sun {
    opacity: 1;
}
.ed-owl-rig-wrap[data-weather="hot"] .owl-weather-sun {
    animation: owlSunSpin 14s linear infinite;
    transform-origin: 242px 54px;
}
.ed-owl-rig-wrap[data-weather="hot"]:not([data-emote="sleepy_night"]) .owl-prop-sunglasses {
    opacity: 1;
}
.ed-owl-rig-wrap[data-weather="cloudy"] .owl-weather-clouds,
.ed-owl-rig-wrap[data-weather="rain"] .owl-weather-clouds,
.ed-owl-rig-wrap[data-weather="storm"] .owl-weather-clouds {
    opacity: 1;
    animation: owlCloudDrift 5.5s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-weather="rain"] .owl-weather-rain,
.ed-owl-rig-wrap[data-weather="storm"] .owl-weather-rain {
    opacity: 1;
}
.ed-owl-rig-wrap[data-weather="rain"] .owl-rain-line-1,
.ed-owl-rig-wrap[data-weather="storm"] .owl-rain-line-1 { animation: owlRainDrop 0.85s linear infinite; }
.ed-owl-rig-wrap[data-weather="rain"] .owl-rain-line-2,
.ed-owl-rig-wrap[data-weather="storm"] .owl-rain-line-2 { animation: owlRainDrop 0.85s linear 0.28s infinite; }
.ed-owl-rig-wrap[data-weather="rain"] .owl-rain-line-3,
.ed-owl-rig-wrap[data-weather="storm"] .owl-rain-line-3 { animation: owlRainDrop 0.85s linear 0.56s infinite; }
.ed-owl-rig-wrap[data-weather="storm"] .owl-weather-lightning {
    opacity: 1;
    animation: owlLightningFlash 2.6s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-weather="rain"]:not([data-emote="sleepy_night"]):not([data-emote="lunch"]) .owl-prop-umbrella,
.ed-owl-rig-wrap[data-weather="storm"]:not([data-emote="sleepy_night"]):not([data-emote="lunch"]) .owl-prop-umbrella {
    opacity: 1;
}
.ed-owl-rig-wrap[data-weather="night_clear"] .owl-night-sky,
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-night-sky,
.ed-owl-rig-wrap[data-emote="evening_chill"] .owl-night-sky {
    opacity: 1;
}

/* SCENE 1: MỚI NGỦ DẬY CHÀO BUỔI SÁNG (Cà phê sữa đá bốc khói + Vươn vai) */
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-whole {
    animation: owlMorningStretch 2.4s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-wing-right {
    animation: owlWingWave 0.65s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-wing-left {
    transform: rotate(-22deg) translate(10px, -8px);
}
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-prop-coffee,
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-prop-morning-cap {
    opacity: 1;
}
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-happy-eyes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-open-eyes { opacity: 0; }
.ed-owl-rig-wrap[data-emote="morning_wake"] .owl-steam {
    animation: owlSteamRise 1.9s ease-out infinite;
}

/* SCENE 2: GIỜ VÀNG LÀM VIỆC SĂN DEAL (Laptop + Kính học giả) */
.ed-owl-rig-wrap[data-emote="work_morning"] .owl-whole {
    animation: owlRoleplayNod 1.8s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="work_morning"] .owl-roleplay-gear,
.ed-owl-rig-wrap[data-emote="work_morning"] .owl-prop-laptop {
    opacity: 1;
    transform: translateY(0);
}
.ed-owl-rig-wrap[data-emote="work_morning"] .owl-wing-left {
    animation: owlTypeLeft 0.45s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="work_morning"] .owl-wing-right {
    animation: owlTypeRight 0.45s ease-in-out 0.22s infinite;
}

/* SCENE 3: ĐANG ĂN TRƯA NẠP NĂNG LƯỢNG (Tô bún/phở nóng hổi + Đũa + Nhai ngon lành) */
.ed-owl-rig-wrap[data-emote="lunch"] .owl-whole {
    animation: owlLunchBounce 1.1s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="lunch"] .owl-prop-lunch {
    opacity: 1;
}
.ed-owl-rig-wrap[data-emote="lunch"] .owl-happy-eyes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="lunch"] .owl-open-eyes { opacity: 0; }
.ed-owl-rig-wrap[data-emote="lunch"] .owl-beak-normal { opacity: 0; }
.ed-owl-rig-wrap[data-emote="lunch"] .owl-beak-munch {
    opacity: 1;
    animation: owlMunchBeak 0.45s ease-in-out infinite;
    transform-origin: 150px 128px;
}
.ed-owl-rig-wrap[data-emote="lunch"] .owl-chopsticks {
    animation: owlChopstickLift 1.1s ease-in-out infinite;
    transform-origin: 196px 190px;
}
.ed-owl-rig-wrap[data-emote="lunch"] .owl-steam {
    animation: owlSteamRise 1.6s ease-out infinite;
}

/* SCENE 4: ĐANG LÁI XE CHUẨN BỊ VỀ (Mũ bảo hiểm đỏ rượu vang + Tay lái xe máy + Hoàng hôn) */
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-whole {
    animation: owlScooterRide 0.46s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-head {
    transform: rotate(-4deg) translateX(2px);
}
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-wing-left {
    transform: rotate(-28deg) translate(16px, -4px);
}
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-wing-right {
    transform: rotate(28deg) translate(-16px, -4px);
}
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-prop-helmet,
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-prop-scooter,
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-prop-scarf,
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-commute-road {
    opacity: 1;
}
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-scarf-tail {
    animation: owlScarfFlutter 0.55s ease-in-out infinite;
    transform-origin: 112px 158px;
}
.ed-owl-rig-wrap[data-emote="commute_home"] .owl-road-dash {
    animation: owlRoadZip 0.7s linear infinite;
}

/* SCENE 5: BUỔI TỐI CHILL ĐỌC EBOOK & NGHE NHẠC */
.ed-owl-rig-wrap[data-emote="evening_chill"] .owl-whole {
    animation: owlWhistleSway 2.1s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="evening_chill"] .owl-prop-headphones,
.ed-owl-rig-wrap[data-emote="evening_chill"] .owl-prop-ebook,
.ed-owl-rig-wrap[data-emote="evening_chill"] .owl-notes {
    opacity: 1;
}
.ed-owl-rig-wrap[data-emote="evening_chill"] .owl-note-1 { animation: owlNoteFloat 1.9s ease-out infinite; }
.ed-owl-rig-wrap[data-emote="evening_chill"] .owl-note-2 { animation: owlNoteFloat 1.9s ease-out 0.8s infinite; }

/* SCENE 6: CHUẨN BỊ ĐI NGỦ (Mũ ngủ sao + Ôm gối + Mắt lim dim + Zzz...) */
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-whole {
    animation: owlSleepBreathe 3.8s ease-in-out infinite;
}
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-head {
    transform: rotate(7deg) translateY(5px);
}
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-open-eyes { opacity: 0; }
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-sleepy-eyes { opacity: 1; }
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-prop-nightcap,
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-prop-pillow,
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-prop-zzz {
    opacity: 1;
}
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-zzz-1 { animation: owlZzzFloat 2.8s ease-out infinite; }
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-zzz-2 { animation: owlZzzFloat 2.8s ease-out 0.9s infinite; }
.ed-owl-rig-wrap[data-emote="sleepy_night"] .owl-zzz-3 { animation: owlZzzFloat 2.8s ease-out 1.8s infinite; }

/* Keyframes for New Life & Weather Scenes */
@keyframes owlMorningStretch {
    0%, 100% { transform: translateY(0) scaleY(1); }
    45% { transform: translateY(-9px) scaleY(1.04) scaleX(0.97); }
}
@keyframes owlSteamRise {
    0% { opacity: 0; transform: translateY(4px); }
    35% { opacity: 0.85; }
    100% { opacity: 0; transform: translateY(-16px); }
}
@keyframes owlTypeLeft {
    0%, 100% { transform: rotate(-18deg) translate(12px, 4px); }
    50% { transform: rotate(-28deg) translate(14px, -2px); }
}
@keyframes owlTypeRight {
    0%, 100% { transform: rotate(18deg) translate(-12px, 4px); }
    50% { transform: rotate(28deg) translate(-14px, -2px); }
}
@keyframes owlLunchBounce {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-5px) rotate(1.5deg); }
}
@keyframes owlMunchBeak {
    0%, 100% { transform: scaleY(0.85); }
    50% { transform: scaleY(1.18); }
}
@keyframes owlChopstickLift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-9deg); }
}
@keyframes owlScooterRide {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-4px) rotate(1.5deg); }
}
@keyframes owlScarfFlutter {
    0%, 100% { transform: rotate(0deg) scaleX(1); }
    50% { transform: rotate(-10deg) scaleX(1.08); }
}
@keyframes owlRoadZip {
    0% { transform: translateX(28px); opacity: 0; }
    25% { opacity: 0.9; }
    100% { transform: translateX(-56px); opacity: 0; }
}
@keyframes owlSleepBreathe {
    0%, 100% { transform: translateY(0) scaleY(0.98) scaleX(1.02); }
    50% { transform: translateY(-3px) scaleY(1.03) scaleX(0.98); }
}
@keyframes owlZzzFloat {
    0% { opacity: 0; transform: translate(0, 10px) scale(0.75); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translate(18px, -44px) scale(1.18); }
}
@keyframes owlRainDrop {
    0% { transform: translate(6px, -16px); opacity: 0; }
    20% { opacity: 0.85; }
    100% { transform: translate(-18px, 64px); opacity: 0; }
}
@keyframes owlCloudDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}
@keyframes owlSunSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes owlLightningFlash {
    0%, 82%, 100% { opacity: 0; }
    85%, 92% { opacity: 1; }
    88% { opacity: 0.2; }
}

/* ==========================================================================
   5 NEW EMOTIONAL EXPRESSIONS ON HOMEPAGE BEEDEE (v3.8.0: Vui, Buồn, Giận, Yêu, Nhớ)
   ========================================================================== */
.owl-sad-eyes,
.owl-angry-eyes,
.owl-love-eyes,
.owl-miss-eyes,
.owl-beak-angry,
.owl-emo-sad-fx,
.owl-emo-angry-fx,
.owl-emo-love-fx,
.owl-emo-miss-fx {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s var(--ed-ease);
}

/* 1. VUI (happy — joyful hop + smiling eyes + sparkles) */
.ed-owl-rig-wrap[data-emote="happy"] .owl-whole {
    animation: owlCelebrateJump 0.68s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}
.ed-owl-rig-wrap[data-emote="happy"] .owl-open-eyes { opacity: 0; }
.ed-owl-rig-wrap[data-emote="happy"] .owl-happy-eyes,
.ed-owl-rig-wrap[data-emote="happy"] .owl-sparkles { opacity: 1; }
.ed-owl-rig-wrap[data-emote="happy"] .owl-wing-right { animation: owlWingWave 0.48s ease-in-out infinite; }

/* 2. BUỒN (sad — droopy brows + teardrop + mini sad rain cloud + sigh) */
.ed-owl-rig-wrap[data-emote="sad"] .owl-open-eyes,
.ed-owl-rig-wrap[data-emote="sad"] .owl-prop-sunglasses { opacity: 0; }
.ed-owl-rig-wrap[data-emote="sad"] .owl-sad-eyes,
.ed-owl-rig-wrap[data-emote="sad"] .owl-emo-sad-fx { opacity: 1; }
.ed-owl-rig-wrap[data-emote="sad"] .owl-head { transform: translateY(9px) rotate(-6deg); }
.ed-owl-rig-wrap[data-emote="sad"] .owl-whole { animation: homeOwlSadSigh 2.8s ease-in-out infinite; }
.ed-owl-rig-wrap[data-emote="sad"] .owl-teardrop { animation: homeTearFall 1.5s ease-in infinite; }
.ed-owl-rig-wrap[data-emote="sad"] .owl-sad-drop-1 { animation: homeTearFall 1.0s linear infinite; }
.ed-owl-rig-wrap[data-emote="sad"] .owl-sad-drop-2 { animation: homeTearFall 1.0s linear 0.45s infinite; }

/* 3. GIẬN DỮ (angry — V-brows + flushed cheeks + 💢 + steam puffs + shake!) */
.ed-owl-rig-wrap[data-emote="angry"] .owl-open-eyes,
.ed-owl-rig-wrap[data-emote="angry"] .owl-beak-normal,
.ed-owl-rig-wrap[data-emote="angry"] .owl-prop-sunglasses { opacity: 0; }
.ed-owl-rig-wrap[data-emote="angry"] .owl-angry-eyes,
.ed-owl-rig-wrap[data-emote="angry"] .owl-beak-angry,
.ed-owl-rig-wrap[data-emote="angry"] .owl-emo-angry-fx { opacity: 1; }
.ed-owl-rig-wrap[data-emote="angry"] .owl-cheek-left,
.ed-owl-rig-wrap[data-emote="angry"] .owl-cheek-right { fill: #EF4444; opacity: 0.75; }
.ed-owl-rig-wrap[data-emote="angry"] .owl-whole { animation: homeOwlAngryShake 0.26s ease-in-out infinite; }
.ed-owl-rig-wrap[data-emote="angry"] .owl-angry-steam-l { animation: homeSteamPuffL 0.85s ease-out infinite; }
.ed-owl-rig-wrap[data-emote="angry"] .owl-angry-steam-r { animation: homeSteamPuffR 0.85s ease-out 0.2s infinite; }

/* 4. YÊU THƯƠNG (love — glossy heart eyes ♥ ♥ + floating hearts + warm sway) */
.ed-owl-rig-wrap[data-emote="love"] .owl-open-eyes,
.ed-owl-rig-wrap[data-emote="love"] .owl-prop-sunglasses { opacity: 0; }
.ed-owl-rig-wrap[data-emote="love"] .owl-love-eyes,
.ed-owl-rig-wrap[data-emote="love"] .owl-emo-love-fx { opacity: 1; }
.ed-owl-rig-wrap[data-emote="love"] .owl-cheek-left,
.ed-owl-rig-wrap[data-emote="love"] .owl-cheek-right { fill: #F43F5E; opacity: 0.68; }
.ed-owl-rig-wrap[data-emote="love"] .owl-whole { animation: owlWhistleSway 1.5s ease-in-out infinite; }
.ed-owl-rig-wrap[data-emote="love"] .owl-love-h1 { animation: homeHeartFloat 1.8s ease-out infinite; }
.ed-owl-rig-wrap[data-emote="love"] .owl-love-h2 { animation: homeHeartFloat 1.8s ease-out 0.55s infinite; }
.ed-owl-rig-wrap[data-emote="love"] .owl-love-h3 { animation: homeHeartFloat 1.8s ease-out 1.1s infinite; }

/* 5. NHỚ (miss — dreamy nostalgic upward gaze + wing-on-chin + 💭 ♥ thought bubble) */
.ed-owl-rig-wrap[data-emote="miss"] .owl-open-eyes,
.ed-owl-rig-wrap[data-emote="miss"] .owl-prop-sunglasses { opacity: 0; }
.ed-owl-rig-wrap[data-emote="miss"] .owl-miss-eyes,
.ed-owl-rig-wrap[data-emote="miss"] .owl-emo-miss-fx { opacity: 1; }
.ed-owl-rig-wrap[data-emote="miss"] .owl-head { transform: rotate(8deg) translateY(-2px); }
.ed-owl-rig-wrap[data-emote="miss"] .owl-wing-left { transform: rotate(-42deg) translate(20px, -20px); }
.ed-owl-rig-wrap[data-emote="miss"] .owl-emo-miss-fx { animation: homeMissPulse 2.4s ease-in-out infinite; }

@keyframes homeOwlSadSigh {
    0%, 100% { transform: translateY(4px) scaleY(0.96); }
    50% { transform: translateY(8px) scaleY(0.93); }
}
@keyframes homeTearFall {
    0% { opacity: 0; transform: translateY(-2px); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translateY(18px); }
}
@keyframes homeOwlAngryShake {
    0%, 100% { transform: translate(-2.5px, 0) rotate(-1.5deg); }
    50% { transform: translate(2.5px, -1px) rotate(1.5deg); }
}
@keyframes homeSteamPuffL {
    0% { opacity: 0.95; transform: translate(6px, 6px) scale(0.75); }
    100% { opacity: 0; transform: translate(-16px, -18px) scale(1.25); }
}
@keyframes homeSteamPuffR {
    0% { opacity: 0.95; transform: translate(-6px, 6px) scale(0.75); }
    100% { opacity: 0; transform: translate(16px, -18px) scale(1.25); }
}
@keyframes homeHeartFloat {
    0% { opacity: 0; transform: translateY(12px) scale(0.7); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-28px) scale(1.18); }
}
@keyframes homeMissPulse {
    0%, 100% { transform: translateY(0) scale(0.96); opacity: 0.88; }
    50% { transform: translateY(-5px) scale(1.04); opacity: 1; }
}

/* Compact Scene & Weather Quick-Preview Strip below BeeDee */
.ed-beedee-scene-bar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    max-width: 440px;
}
.ed-scene-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid var(--ed-border-strong);
    color: var(--ed-ink-muted);
    font-family: var(--ed-font-display);
    font-size: 0.71rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}
.ed-scene-chip:hover {
    border-color: var(--ed-wine);
    color: var(--ed-wine);
    background: var(--ed-wine-soft);
}
.ed-scene-chip.active {
    background: var(--ed-wine);
    border-color: var(--ed-ink);
    color: #FFFFFF;
    box-shadow: 0 2px 0 var(--ed-ink);
}
.ed-scene-chip.is-live-chip.active {
    background: #065F46;
    border-color: var(--ed-ink);
    color: #FFFFFF;
}

/* Highlighted 5 Featured Tools in Satellite Orbit & Grid */
.ed-sat-node.is-featured-sat .ed-sat-circle {
    border: 2px solid var(--ed-wine);
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFBEB 100%);
    color: var(--ed-wine);
    box-shadow: 0 4px 14px rgba(136, 19, 55, 0.16);
    position: relative;
}
.ed-sat-node.is-featured-sat .ed-sat-circle::after {
    content: '★';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--ed-amber);
    color: #1B1416;
    border: 1.5px solid #1B1416;
    font-size: 0.62rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ed-sat-node.is-featured-sat .ed-sat-label {
    color: var(--ed-wine);
    font-weight: 800;
}
.ed-tool-card.is-featured {
    border-color: rgba(136, 19, 55, 0.34);
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F9 100%);
    box-shadow: 0 4px 18px rgba(136, 19, 55, 0.08);
    position: relative;
}
.ed-tool-card.is-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--ed-wine) 0%, var(--ed-amber) 100%);
    border-radius: 16px 16px 0 0;
}

/* Interactive Mascot Action Bar */
.ed-beedee-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    max-width: 420px;
}

.ed-emote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--ed-radius-pill);
    background: #FFFFFF;
    border: 1.5px solid var(--ed-border-strong);
    color: var(--ed-ink-secondary);
    font-family: var(--ed-font-display);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ed-dur) ease;
}
.ed-emote-btn:hover {
    border-color: var(--ed-wine);
    color: var(--ed-wine);
    background: var(--ed-wine-soft);
}
.ed-emote-btn.active {
    background: var(--ed-wine);
    border-color: var(--ed-ink);
    color: #FFFFFF;
    box-shadow: 0 2px 0 var(--ed-ink);
}

.ed-emote-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 13px;
    border-radius: var(--ed-radius-pill);
    background: var(--ed-amber);
    border: 1.5px solid var(--ed-ink);
    color: #1B1416;
    font-family: var(--ed-font-display);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 0 var(--ed-ink);
    transition: transform 0.15s ease, background 0.15s ease;
}
.ed-emote-chat-btn:hover {
    background: #FBBF24;
    transform: translateY(-1px);
}

/* Impact Metrics Strip */
.ed-metrics-strip {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #FFFFFF;
    border: 1px solid var(--ed-border-strong);
    border-radius: var(--ed-radius-lg);
    overflow: hidden;
    box-shadow: var(--ed-shadow-sm);
}

.ed-metric-item {
    padding: 20px 24px;
    border-right: 1px dashed var(--ed-border-strong);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ed-metric-item:last-child { border-right: none; }

.ed-metric-val {
    font-family: var(--ed-font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ed-wine);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.ed-metric-label { font-size: 0.85rem; color: var(--ed-ink-muted); font-weight: 500; }

/* 3 Flagship Entry Cards — 01 + 02 + 03 Unified Strip */
.ed-flagship-strip {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    border-radius: var(--ed-radius-xl);
    box-shadow: 0 4px 0 rgba(27, 20, 22, 0.08);
    overflow: visible;
    position: relative;
}

.ed-flagship-card {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    border-right: 1.5px dashed var(--ed-border-strong);
    transition: background var(--ed-dur) ease;
}
.ed-flagship-card:first-child { border-radius: 18px 0 0 18px; }
.ed-flagship-card:last-child { border-right: none; border-radius: 0 18px 18px 0; }
.ed-flagship-card:hover { background: #FFFDFD; }

.ed-flagship-card:not(:last-child)::after {
    content: '+';
    position: absolute;
    right: -12px;
    top: 32px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--ed-wine);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ed-flagship-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-flagship-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ed-flagship-icon.navy { background: var(--ed-wine-soft); color: var(--ed-wine); }
.ed-flagship-icon.amber { background: var(--ed-amber-soft); color: var(--ed-amber-dark); }
.ed-flagship-icon.emerald { background: var(--ed-emerald-soft); color: var(--ed-emerald); }

.ed-flagship-step {
    font-family: var(--ed-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #D6C8CC;
    font-variant-numeric: tabular-nums;
}

.ed-flagship-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 10px;
    border-radius: var(--ed-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ed-flagship-pill.amber { background: var(--ed-amber-soft); color: var(--ed-amber-dark); border: 1px solid rgba(217, 119, 6, 0.25); }
.ed-flagship-pill.emerald { background: var(--ed-emerald-soft); color: var(--ed-emerald); border: 1px solid rgba(5, 150, 105, 0.25); }
.ed-flagship-pill.navy { background: var(--ed-wine-soft); color: var(--ed-wine); border: 1px solid var(--ed-wine-border); }

.ed-flagship-title { font-size: 1.12rem; font-weight: 800; color: var(--ed-ink); margin: 6px 0 6px 0; }
.ed-flagship-desc { font-size: 0.9rem; color: var(--ed-ink-muted); margin: 0; line-height: 1.55; }
.ed-flagship-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ed-wine);
    margin-top: 4px;
}
.ed-flagship-card:hover .ed-flagship-cta { text-decoration: underline; }

/* ==========================================================================
   3. HỆ SINH THÁI 10 CÔNG CỤ — EDITORIAL SATELLITE ORBIT + FILTERABLE GRID
   ========================================================================== */
.ed-tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ed-view-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ed-view-toggle {
    display: inline-flex;
    padding: 4px;
    background: var(--ed-surface);
    border: 1.5px solid var(--ed-border-strong);
    border-radius: 11px;
    gap: 4px;
}

.ed-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ed-ink-muted);
    font-family: var(--ed-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ed-dur) ease;
}
.ed-view-btn.active {
    background: var(--ed-wine);
    color: #FFFFFF;
}

/* Editorial Orbital Satellite System */
.ed-orbit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.78fr);
    gap: 28px;
    align-items: center;
}

.ed-orbit-stage {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--ed-radius-xl);
    border: 1.5px solid var(--ed-ink);
    background-color: var(--ed-canvas);
    background-image:
        linear-gradient(to right, rgba(136, 19, 55, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(136, 19, 55, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    box-shadow: 0 5px 0 rgba(27, 20, 22, 0.07);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ed-orbit-stage-inner {
    position: relative;
    width: 600px;
    height: 600px;
    flex-shrink: 0;
    transform-origin: center center;
}

.ed-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px dashed rgba(136, 19, 55, 0.22);
    pointer-events: none;
}
.ed-orbit-ring.ring-1 { width: 224px; height: 224px; }
.ed-orbit-ring.ring-2 { width: 372px; height: 372px; }
.ed-orbit-ring.ring-3 { width: 512px; height: 512px; border-color: rgba(136, 19, 55, 0.14); }

.ed-orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--ed-wine);
    border: 3px solid var(--ed-ink);
    box-shadow: 0 0 0 8px rgba(136, 19, 55, 0.09), 0 8px 24px rgba(136, 19, 55, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 6;
    color: #FFFFFF;
    padding: 8px;
}
.ed-orbit-core img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FDE68A;
    background: #FFFBF5;
    margin-bottom: 4px;
}
.ed-orbit-core span {
    font-family: var(--ed-font-display);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: #FDE68A;
}

.ed-sat-node {
    position: absolute;
    top: calc(50% + var(--sy));
    left: calc(50% + var(--sx));
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.22s var(--ed-ease), z-index 0s;
}
.ed-sat-node:hover,
.ed-sat-node.active {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 20;
}

.ed-sat-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    box-shadow: 0 3px 0 rgba(27, 20, 22, 0.14);
    color: var(--ed-wine);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ed-dur) ease, color var(--ed-dur) ease, border-color var(--ed-dur) ease;
}

.ed-sat-node:hover .ed-sat-circle,
.ed-sat-node.active .ed-sat-circle {
    background: var(--ed-wine);
    color: #FFFFFF;
    border-color: var(--ed-ink);
    box-shadow: 0 0 0 5px rgba(136, 19, 55, 0.16), 0 4px 0 var(--ed-ink);
}

.ed-sat-label {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ed-border-strong);
    font-family: var(--ed-font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ed-ink);
    white-space: nowrap;
    box-shadow: var(--ed-shadow-sm);
}

.ed-sat-node.active .ed-sat-label {
    background: var(--ed-ink);
    color: #FFFFFF;
    border-color: var(--ed-ink);
}

/* Right Orbital Inspector Panel */
.ed-orbit-inspector {
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    border-radius: var(--ed-radius-xl);
    padding: 28px;
    box-shadow: 0 5px 0 rgba(27, 20, 22, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ed-orbit-ins-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ed-orbit-ins-index {
    font-family: var(--ed-font-display);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ed-ink-subtle);
    font-variant-numeric: tabular-nums;
}

.ed-orbit-ins-title {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--ed-ink);
    margin: 0;
    line-height: 1.25;
}

.ed-orbit-ins-desc {
    font-size: 0.94rem;
    color: var(--ed-ink-muted);
    line-height: 1.65;
    margin: 0;
}

.ed-orbit-ins-meta {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--ed-wine-soft);
    border: 1px dashed var(--ed-wine-border);
    font-size: 0.82rem;
    color: var(--ed-wine-dark);
    font-weight: 600;
}

.ed-orbit-quick-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--ed-border);
    font-size: 0.8rem;
    color: var(--ed-ink-subtle);
}

/* Category Filter Tabs + Modular 10-Tool Grid */
.ed-filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ed-filter-tab {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ed-ink-muted);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ed-dur) ease;
}
.ed-filter-tab:hover { color: var(--ed-wine); background: rgba(255, 255, 255, 0.8); }
.ed-filter-tab.active { background: var(--ed-wine); color: #FFFFFF; box-shadow: var(--ed-shadow-sm); }

.ed-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.ed-tool-card {
    background: #FFFFFF;
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: transform var(--ed-dur) var(--ed-ease), box-shadow var(--ed-dur) ease, border-color var(--ed-dur) ease;
}
.ed-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--ed-wine);
    box-shadow: var(--ed-shadow-md);
}

.ed-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ed-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ed-tool-icon.navy { background: var(--ed-wine-soft); color: var(--ed-wine); }
.ed-tool-icon.blue { background: var(--ed-wine-soft); color: var(--ed-wine-rich); }
.ed-tool-icon.amber { background: var(--ed-amber-soft); color: var(--ed-amber-dark); }
.ed-tool-icon.emerald { background: var(--ed-emerald-soft); color: var(--ed-emerald); }
.ed-tool-icon.indigo { background: var(--ed-indigo-soft); color: var(--ed-indigo); }
.ed-tool-icon.teal { background: var(--ed-teal-soft); color: var(--ed-teal); }
.ed-tool-icon.purple { background: var(--ed-purple-soft); color: var(--ed-purple); }
.ed-tool-icon.rose { background: var(--ed-rose-soft); color: var(--ed-rose); }

.ed-tool-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--ed-surface);
    color: var(--ed-ink-muted);
    border: 1px solid var(--ed-border);
}

.ed-tool-title { font-size: 1.06rem; font-weight: 800; color: var(--ed-ink); margin: 0 0 6px 0; }
.ed-tool-desc {
    font-size: 0.89rem;
    color: var(--ed-ink-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ed-tool-footer {
    padding-top: 12px;
    border-top: 1px dashed var(--ed-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ed-wine);
}
.ed-tool-card:hover .ed-tool-footer { color: var(--ed-wine-dark); }

/* ==========================================================================
   4. "MA TRẬN TƯ DUY B2B BD" (HIGH-CONTRAST EDITORIAL BAND)
   ========================================================================== */
.ed-formula-bar { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ed-formula-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: var(--ed-font-display);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.ed-formula-chip.dark { background: var(--ed-ink); color: #FFFFFF; }
.ed-formula-chip.navy { background: var(--ed-wine); color: #FFFFFF; }
.ed-formula-chip.emerald { background: var(--ed-emerald); color: #FFFFFF; }
.ed-formula-op { font-family: var(--ed-font-display); font-weight: 800; font-size: 1.1rem; color: var(--ed-ink-subtle); }

.ed-matrix-card {
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    border-radius: var(--ed-radius-xl);
    overflow: hidden;
    box-shadow: 0 5px 0 rgba(27, 20, 22, 0.07);
}
.ed-matrix-table { width: 100%; border-collapse: collapse; text-align: left; }
.ed-matrix-table thead { background: var(--ed-wine); color: #FFFFFF; }
.ed-matrix-table th {
    padding: 16px 22px;
    font-family: var(--ed-font-display);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.ed-matrix-table td { padding: 18px 22px; border-bottom: 1px solid var(--ed-border); font-size: 0.94rem; vertical-align: middle; }
.ed-matrix-table tbody tr:last-child td { border-bottom: none; }
.ed-matrix-table tbody tr:hover { background: #FFFDFD; }

.ed-matrix-aspect { font-family: var(--ed-font-display); font-weight: 800; color: var(--ed-ink); white-space: nowrap; }
.ed-pill-avoid {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--ed-radius-pill);
    background: #FFF1F2;
    color: #BE123C;
    border: 1px solid rgba(190, 18, 60, 0.24);
    font-weight: 600;
    font-size: 0.88rem;
}
.ed-pill-expert {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--ed-radius-pill);
    background: var(--ed-emerald-soft);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.25);
    font-weight: 700;
    font-size: 0.88rem;
}
.ed-matrix-shift { color: var(--ed-ink-secondary); font-weight: 500; }

/* ==========================================================================
   5. LỘ TRÌNH RÈN LUYỆN & ĐẤU TRƯỜNG BD (STEPPER + ARCADE TAB)
   ========================================================================== */
.ed-arena-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.ed-mode-switch {
    display: inline-flex;
    padding: 5px;
    background: var(--ed-surface);
    border: 1.5px solid var(--ed-border-strong);
    border-radius: 12px;
    gap: 6px;
}
.ed-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ed-ink-muted);
    font-family: var(--ed-font-display);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ed-dur) ease;
}
.ed-mode-btn.active { background: var(--ed-wine); color: #FFFFFF; box-shadow: var(--ed-shadow-sm); }

.ed-welcome-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--ed-wine-soft);
    border: 1px solid var(--ed-wine-border);
    border-radius: var(--ed-radius-md);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ed-stage-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }

.ed-stage-stepper .level-tab-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 16px 18px !important;
    border-radius: var(--ed-radius-md) !important;
    border: 1.5px solid var(--ed-border-strong) !important;
    background: #FFFFFF !important;
    color: var(--ed-ink) !important;
    font-family: var(--ed-font-display) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-align: left !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all var(--ed-dur) var(--ed-ease) !important;
}
.ed-stage-stepper .level-tab-btn::before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}
.ed-stage-stepper .level-tab-btn:hover { border-color: var(--ed-wine) !important; background: #FFFDFD !important; }
.ed-stage-stepper .level-tab-btn.active {
    background: var(--ed-wine) !important;
    border-color: var(--ed-ink) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 0 var(--ed-ink) !important;
}
.ed-stage-stepper .level-tab-btn.active::before { background: var(--ed-amber); color: #1B1416; }

.ed-arena-panel {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-xl);
    padding: 28px;
}

.ed-slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ed-progress-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--ed-radius-pill);
    background: #FFFFFF;
    border: 1px solid var(--ed-border-strong);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ed-wine);
}
.ed-slider-controls { display: flex; gap: 8px; }
.slider-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--ed-border-strong);
    background: #FFFFFF;
    color: var(--ed-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--ed-dur) ease;
}
.slider-nav-btn:hover { border-color: var(--ed-wine); background: var(--ed-wine); color: #FFFFFF; }

.game-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 10px;
}
.game-slider-container::-webkit-scrollbar { display: none; }
#game-slider-track { display: flex; gap: 18px; width: max-content; }

#game-slider-track .game-card {
    background: #FFFFFF !important;
    border: 1px solid var(--ed-border-strong) !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-shadow: var(--ed-shadow-sm) !important;
    width: 318px !important;
    max-width: calc(100vw - 64px) !important;
    transition: transform var(--ed-dur) var(--ed-ease), box-shadow var(--ed-dur) ease, border-color var(--ed-dur) ease !important;
}
#game-slider-track .game-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--ed-wine) !important;
    box-shadow: var(--ed-shadow-md) !important;
}
#game-slider-track .game-card button,
#game-slider-track .game-card .btn-primary {
    background: var(--ed-wine) !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

#game-intro, #game-play, #game-result {
    background: #FFFFFF;
    border: 1px solid var(--ed-border-strong);
    border-radius: var(--ed-radius-lg);
    padding: 28px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.progress-bar { width: 100%; height: 8px; background: var(--ed-border); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.progress-bar .progress { height: 100%; background: var(--ed-wine); transition: width 0.3s ease; }
.timer-display {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: var(--ed-radius-pill);
    background: var(--ed-amber-soft);
    color: var(--ed-amber-dark);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.question-text { font-family: var(--ed-font-display); font-size: 1.18rem; font-weight: 700; color: var(--ed-ink); line-height: 1.5; margin: 0 0 20px 0; text-align: left; }
.options-container { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.option-btn, .options-container button {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--ed-border-strong);
    background: #FFFFFF;
    color: var(--ed-ink);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.option-btn:hover, .options-container button:hover { border-color: var(--ed-wine); background: var(--ed-wine-soft); }
.feedback-msg { margin-top: 16px; border-radius: 12px; border: 1px solid var(--ed-border-strong); background: var(--ed-surface); }

/* Tab 2: B2B Arcade + Premium Styled Hall of Fame Leaderboard */
.ed-arcade-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr);
    gap: 24px;
    align-items: stretch;
}
.ed-arcade-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.ed-arcade-card {
    background: #FFFFFF;
    border: 1.5px solid var(--ed-border-strong);
    border-top: 4px solid var(--ed-wine);
    border-radius: var(--ed-radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    box-shadow: var(--ed-shadow-sm);
    transition: transform var(--ed-dur) var(--ed-ease), box-shadow var(--ed-dur) ease, border-color var(--ed-dur) ease;
}
.ed-arcade-card[data-game="game-wend"] { border-top-color: #2563EB; }
.ed-arcade-card[data-game="game-tango"] { border-top-color: #059669; }
.ed-arcade-card[data-game="game-queens"] { border-top-color: #7C3AED; }

.ed-arcade-card:hover {
    transform: translateY(-4px);
    border-color: var(--ed-ink);
    box-shadow: 0 5px 0 rgba(27, 20, 22, 0.08), var(--ed-shadow-md);
}
.ed-arcade-card .ed-tool-desc {
    -webkit-line-clamp: 3;
}
.ed-arcade-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--ed-border-strong);
}
.ed-arcade-level {
    font-family: var(--ed-font-display);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ed-wine);
}
.ed-arcade-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ed-arcade-pts {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--ed-radius-pill);
    background: var(--ed-amber-soft);
    color: var(--ed-amber-dark);
    border: 1px solid rgba(217, 119, 6, 0.3);
}
.ed-arcade-play-pill {
    font-family: var(--ed-font-display);
    font-size: 0.76rem;
    font-weight: 800;
    color: #FFFFFF;
    background: var(--ed-wine);
    padding: 4px 11px;
    border-radius: 8px;
    transition: background var(--ed-dur) ease;
}
.ed-arcade-card:hover .ed-arcade-play-pill {
    background: var(--ed-wine-dark);
}

/* Redesigned Bảng Vàng Chiến Thần B2B */
.ed-leaderboard-box {
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    border-radius: var(--ed-radius-xl);
    overflow: hidden;
    box-shadow: 0 5px 0 rgba(27, 20, 22, 0.08);
    display: flex;
    flex-direction: column;
}
.ed-leaderboard-head {
    background: var(--ed-wine);
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 2px solid var(--ed-amber);
}
.ed-leaderboard-head h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ed-leaderboard-head .ed-tool-tag {
    background: var(--ed-amber);
    color: #1B1416;
    border: none;
    font-weight: 800;
}
#leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    max-height: 410px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #D6C8CC transparent;
}
#leaderboard-list::-webkit-scrollbar { width: 6px; }
#leaderboard-list::-webkit-scrollbar-thumb { background: #D6C8CC; border-radius: 99px; }

#leaderboard-list .leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FAF8F8;
    border: 1px solid var(--ed-border);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
#leaderboard-list .leaderboard-item:first-child {
    background: #FFFBEB;
    border-color: rgba(245, 158, 11, 0.5);
}
#leaderboard-list .leaderboard-item:hover {
    border-color: var(--ed-wine);
    background: #FFFFFF;
    transform: translateX(2px);
}
#leaderboard-list .rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ed-font-display);
    font-size: 0.84rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1.5px solid rgba(27, 20, 22, 0.15);
}
#leaderboard-list .rank-badge.gold {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    color: #1B1416;
    border-color: #B45309;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
#leaderboard-list .rank-badge.silver {
    background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 100%);
    color: #1E293B;
    border-color: #94A3B8;
}
#leaderboard-list .rank-badge.bronze {
    background: linear-gradient(135deg, #FED7AA 0%, #EA580C 100%);
    color: #FFFFFF;
    border-color: #C2410C;
}
#leaderboard-list .rank-badge.other {
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    border-color: var(--ed-wine-border);
}
#leaderboard-list .user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#leaderboard-list .user-name {
    font-family: var(--ed-font-display);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ed-ink);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#leaderboard-list .user-title {
    font-size: 0.74rem;
    color: var(--ed-ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#leaderboard-list .score-badge {
    font-family: var(--ed-font-display);
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 4px 10px;
    border-radius: var(--ed-radius-pill);
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    border: 1px solid var(--ed-wine-border);
    flex-shrink: 0;
}

/* ==========================================================================
   6. SỰ KIỆN B2B & WORKSHOP NỔI BẬT
   ========================================================================== */
.ed-events-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.events-grid, #events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

#events-grid .event-card {
    background: #FFFFFF !important;
    border: 1px solid var(--ed-border-strong) !important;
    border-radius: var(--ed-radius-lg) !important;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--ed-shadow-sm) !important;
    transition: transform var(--ed-dur) var(--ed-ease), box-shadow var(--ed-dur) ease, border-color var(--ed-dur) ease;
}
#events-grid .event-card:hover { transform: translateY(-4px); border-color: var(--ed-wine) !important; box-shadow: var(--ed-shadow-md) !important; }
#events-grid .event-title { font-family: var(--ed-font-display); font-size: 1.06rem; font-weight: 800; line-height: 1.4; color: var(--ed-ink); margin: 0; }
#events-grid .event-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; color: var(--ed-ink-muted); }
#events-grid .meta-item { display: flex; align-items: center; gap: 7px; }
#events-grid .event-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    font-size: 0.72rem;
    font-weight: 700;
}
#events-grid .event-live-stats { padding-top: 12px; border-top: 1px dashed var(--ed-border); font-size: 0.84rem; color: var(--ed-ink-muted); }
#events-grid .btn,
#events-grid .btn-register-event,
#events-grid a.event-register-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--ed-wine);
    background: transparent;
    border: none;
    padding: 4px 0;
    cursor: pointer;
}

.ed-events-footer { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ed-inline-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ed-font-display);
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--ed-wine);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--ed-wine);
    background: #FFFFFF;
    transition: all var(--ed-dur) ease;
}
.ed-inline-more-link:hover { background: var(--ed-wine); color: #FFFFFF; }

/* ==========================================================================
   7. FOUNDER QUOTE & TRUST BLOCK
   ========================================================================== */
.ed-founder-card {
    background: #FFFFFF;
    border: 1.5px solid var(--ed-ink);
    border-radius: var(--ed-radius-xl);
    padding: 40px 44px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 5px 0 rgba(27, 20, 22, 0.07);
}
.ed-founder-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--ed-wine);
    box-shadow: 0 6px 20px rgba(136, 19, 55, 0.16);
}
.ed-founder-quote {
    font-family: var(--ed-font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--ed-ink);
    margin: 0 0 14px 0;
}
.ed-founder-meta { font-size: 0.95rem; color: var(--ed-ink-muted); margin: 0 0 22px 0; }
.ed-founder-meta strong { color: var(--ed-ink); }
.ed-founder-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ed-chip-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid var(--ed-border-strong);
    background: var(--ed-surface);
    color: var(--ed-ink);
    cursor: pointer;
    transition: all var(--ed-dur) ease;
}
.ed-chip-action:hover { border-color: var(--ed-wine); background: var(--ed-wine-soft); color: var(--ed-wine); }
.ed-chip-action.linkedin { background: #0A66C2; border-color: #0A66C2; color: #FFFFFF; }
.ed-chip-action.linkedin:hover { background: #004182; color: #FFFFFF; }
.ed-chip-action.zalo { background: var(--ed-emerald); border-color: var(--ed-emerald); color: #FFFFFF; }
.ed-chip-action.zalo:hover { background: #047857; color: #FFFFFF; }

.ed-hero-corp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--ed-wine-soft);
    color: var(--ed-wine);
    font-size: 0.78rem;
    font-weight: 700;
    transition: background var(--ed-dur) ease;
}
.ed-hero-corp-link:hover { background: var(--ed-wine-tint); }

/* ==========================================================================
   8. FLOATING CHÚ CÚ BEEDEE AI ASSISTANT REFINEMENT
   ========================================================================== */
#b2b-ai-chat-root .ai-chat-launcher {
    width: auto !important;
    height: 50px !important;
    padding: 6px 16px 6px 8px !important;
    border-radius: 9999px !important;
    background: #FFFFFF !important;
    border: 1.5px solid var(--ed-ink) !important;
    box-shadow: 0 4px 0 rgba(136, 19, 55, 0.18), 0 10px 24px rgba(27, 20, 22, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}
#b2b-ai-chat-root .ai-chat-launcher img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--ed-wine) !important;
}
#b2b-ai-chat-root .ai-chat-launcher::after {
    content: 'Chú Cú BeeDee AI';
    font-family: var(--ed-font-display);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--ed-ink);
    white-space: nowrap;
}

/* ==========================================================================
   9. STRUCTURED 4-COLUMN FOOTER (DEEP VELVET WINE)
   ========================================================================== */
.ed-footer {
    background: #280912;
    color: #E7D5DA;
    padding: 64px 0 32px;
    border-top: 3px solid var(--ed-amber);
}

.ed-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 1fr 1.15fr;
    gap: 36px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ed-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ed-footer-brand-name { font-family: var(--ed-font-display); font-size: 1.12rem; font-weight: 800; color: #FFFFFF; }

.ed-footer-legal-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #E7D5DA;
    margin-bottom: 14px;
}
.ed-footer-legal-box strong { color: #FFFFFF; }
.ed-footer-legal-box a { color: #FDE68A; }

.ed-bct-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(253, 230, 138, 0.28);
}
.ed-bct-badge img { height: 40px; width: auto; }

.ed-footer-col-title {
    font-family: var(--ed-font-display);
    font-size: 0.92rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ed-amber);
    display: inline-block;
}
.ed-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.86rem; }
.ed-footer-list a { color: #E7D5DA; transition: color var(--ed-dur) ease; }
.ed-footer-list a:hover { color: #FDE68A; }

/* 8:45 AM Daily Tip Form inside Footer Col 4 */
body.ed-body #challenge-funny-trigger-box.ed-tip-box,
.ed-tip-box {
    display: block !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 16px !important;
    text-align: left !important;
}
.ed-tip-title { font-family: var(--ed-font-display); font-size: 0.86rem; font-weight: 800; color: #FFFFFF; margin: 0 0 6px 0; }
.ed-tip-desc { font-size: 0.8rem; color: #D4B5BF; margin: 0 0 12px 0; line-height: 1.45; }
body.ed-body #challenge-trigger-form.ed-tip-form,
.ed-tip-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
}
.ed-tip-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(27, 8, 14, 0.72);
    color: #FFFFFF;
    font-size: 0.85rem;
}
.ed-tip-input::placeholder { color: #C2A3AD; }
.ed-tip-submit {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: var(--ed-amber);
    color: #1B1416;
    font-family: var(--ed-font-display);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--ed-dur) ease;
}
.ed-tip-submit:hover { background: #FBBF24; }

.ed-footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: #C2A3AD;
    line-height: 1.6;
}

/* Scroll Reveal */
.ed-reveal { opacity: 1; transform: none; transition: opacity 0.55s var(--ed-ease), transform 0.55s var(--ed-ease); }
.js-ed-motion .ed-reveal { opacity: 0; transform: translateY(18px); }
.js-ed-motion .ed-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js-ed-motion .ed-reveal { opacity: 1; transform: none; }
    .ed-live-dot, .ed-beedee-3d-float, .ed-shield-owl-ring img, .ed-shield-front::before, .ed-beedee-ground-shadow { animation: none !important; }
    * { transition-duration: 0.01ms !important; }
}

/* Mobile Swipe Hint Pill (Shown only on mobile <= 768px) */
.ed-mobile-swipe-hint {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ed-wine);
    margin: 10px 0 0 2px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1180px, 768px Tablet, 375px Mobile)
   - Mobile keeps Hero BeeDee Greeting AND Satellite Orbit Diagram (scaled cleanly)
   - Long vertical lists transform into smooth horizontal snap-scroll carousels!
   ========================================================================== */
@media (max-width: 1180px) {
    .ed-nav-links,
    .ed-nav-cta { display: none; }
    .ed-mobile-toggle { display: inline-flex; }
    .ed-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .ed-orbit-layout { grid-template-columns: 1fr; gap: 20px; }
    .ed-tools-grid, .events-grid, #events-grid { grid-template-columns: repeat(2, 1fr); }
    .ed-arcade-layout { grid-template-columns: 1fr; }
    .ed-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Keep Satellite Orbit Diagram visible & proportionally scaled on Tablet & Mobile! */
@media (max-width: 960px) {
    .ed-orbit-stage {
        height: 480px;
    }
    .ed-orbit-stage-inner {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .ed-section { padding: 48px 0; }
    .ed-container { padding: 0 16px; }
    .ed-nav-inner { padding: 0 14px; height: 64px; }
    .ed-mobile-swipe-hint { display: inline-flex; }

    /* Proportional Mobile Satellite Orbit (Identical to Desktop, 0px overflow!) */
    .ed-orbit-stage {
        height: 360px;
    }
    .ed-orbit-stage-inner {
        transform: scale(0.57);
    }
    .ed-orbit-inspector {
        padding: 20px;
    }

    /* 1. Horizontal Snap Slider for 3 Flagship Entry Cards */
    .ed-flagship-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 2px 2px 10px;
    }
    .ed-flagship-strip::-webkit-scrollbar { display: none; }
    .ed-flagship-card {
        flex: 0 0 84%;
        scroll-snap-align: start;
        background: #FFFFFF;
        border: 1.5px solid var(--ed-ink) !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 0 rgba(27, 20, 22, 0.08);
        padding: 20px;
    }
    .ed-flagship-card:not(:last-child)::after { display: none; }

    /* 2. Horizontal Snap Slider for 10 Tools Grid */
    .ed-tools-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 8px;
    }
    .ed-tools-grid::-webkit-scrollbar { display: none; }
    .ed-tools-grid .ed-tool-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    /* 3. Horizontal Snap Slider for 5 Mindset Matrix Rows */
    .ed-matrix-card {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }
    .ed-matrix-table, .ed-matrix-table thead, .ed-matrix-table th, .ed-matrix-table td { display: block; }
    .ed-matrix-table thead { display: none; }
    .ed-matrix-table tbody {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding: 2px 2px 10px;
    }
    .ed-matrix-table tbody::-webkit-scrollbar { display: none; }
    .ed-matrix-table tbody tr {
        flex: 0 0 84%;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 18px;
        background: #FFFFFF;
        border: 1.5px solid var(--ed-ink);
        border-radius: 16px;
        box-shadow: 0 4px 0 rgba(27, 20, 22, 0.07);
    }
    .ed-matrix-table td {
        padding: 4px 0;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .ed-matrix-table td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--ed-ink-subtle);
    }

    /* 4. Horizontal Snap Slider for 4 B2B Arcade Cards */
    .ed-arcade-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 8px;
    }
    .ed-arcade-grid::-webkit-scrollbar { display: none; }
    .ed-arcade-grid .ed-arcade-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    /* 5. Horizontal Snap Slider for B2B Events Spotlight */
    .events-grid, #events-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 10px;
    }
    #events-grid::-webkit-scrollbar { display: none; }
    #events-grid .event-card {
        flex: 0 0 86%;
        scroll-snap-align: start;
    }

    .ed-stage-stepper,
    .ed-footer-grid {
        grid-template-columns: 1fr;
    }
    .ed-arena-panel { padding: 16px; }
    .ed-founder-card { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; gap: 18px; }
    .ed-founder-avatar { margin: 0 auto; width: 92px; height: 92px; }
    .ed-founder-actions { justify-content: center; }
    .ed-cta-group .ed-btn-primary, .ed-cta-group .ed-btn-outline { width: 100%; }
    #b2b-ai-chat-root .ai-chat-launcher,
    .ai-chat-launcher { display: none !important; visibility: hidden !important; pointer-events: none !important; }
}

/* Global Hide Bottom-Right Floating BeeDee Launcher (Replaced by Top BeeDee + "Chat với chú cú BeeDee nhé") */
#b2b-ai-chat-root .ai-chat-launcher,
.ai-chat-launcher {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Mobile-First Hero Redesign: BeeDee Mascot FIRST at top + Ultra-Slim 1-Line Course Header */
@media (max-width: 960px) {
    html.bd-has-fixed-ribbon {
        --bd-ribbon-h: 34px;
    }
    .ed-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .ed-hero-grid > * {
        min-width: 0;
        max-width: 100%;
    }
    .ed-beedee-mascot-stage {
        order: -1;
        padding-top: 0;
        width: 100%;
    }
    .ed-beedee-speech {
        max-width: 100%;
    }
    .ed-announce-long { display: none; }
    #bd-top-announcement-ribbon.ed-announce-bar .ed-announce-inner {
        padding: 6px 32px 6px 12px;
        font-size: 0.73rem;
        gap: 7px;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
    }
    .ed-announce-pill {
        padding: 1.5px 6px;
        font-size: 0.65rem;
        flex-shrink: 0;
    }
    .ed-announce-text {
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }
    .ed-announce-link {
        flex-shrink: 0;
        font-size: 0.72rem;
    }
    .ed-announce-close {
        right: 6px;
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 640px) {
    body.ed-body #ed-main-nav #navbar-user-hud { display: none !important; }
    .ed-nav-inner { padding: 0 12px; height: 58px; gap: 8px; }
    .ed-brand { gap: 8px; min-width: 0; }
    .ed-brand-mark { width: 32px; height: 32px; font-size: 0.82rem; border-radius: 8px; flex-shrink: 0; }
    .ed-brand-name { font-size: 0.86rem; }
    .ed-brand-tag {
        font-size: 0.57rem;
        letter-spacing: -0.01em;
        max-width: none;
        overflow: visible;
        white-space: nowrap;
    }
    .ed-nav-actions { gap: 6px; }
    .bd-lang-toggle-btn { padding: 0 8px !important; height: 32px !important; font-size: 0.72rem !important; }
    .ed-mobile-toggle { width: 36px; height: 36px; }

    .ed-hero { padding: 14px 0 34px; }
    .ed-weather-pill {
        font-size: 0.69rem;
        padding: 4px 10px;
        gap: 5px;
        margin-bottom: 8px;
    }
    .ed-beedee-speech {
        padding: 10px 13px;
        border-radius: 14px;
        margin-bottom: 6px;
    }
    .ed-beedee-speech-badge { font-size: 0.65rem; }
    .ed-beedee-state-pill { font-size: 0.64rem; padding: 2px 7px; }
    .ed-beedee-speech-text { font-size: 0.81rem; line-height: 1.45; }
    .ed-owl-rig-wrap { width: 214px; height: 196px; }
    .ed-owl-svg { width: 210px; height: 194px; }
    .ed-beedee-actions {
        margin-top: 10px;
        gap: 6px;
        width: 100%;
    }
    .ed-rec-launch-btn,
    .ed-emote-chat-btn {
        height: 36px;
        padding: 0 12px;
        font-size: 0.73rem;
    }
    .ed-sound-btn {
        height: 32px;
        padding: 0 11px;
        font-size: 0.71rem;
    }

    /* Clean compact editorial text right underneath BeeDee */
    .ed-eyebrow {
        font-size: 0.68rem;
        padding: 4px 10px;
        gap: 6px;
        margin-bottom: 12px;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow: hidden;
    }
    .ed-eyebrow > span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ed-live-indicator { flex-shrink: 0; white-space: nowrap; }
    .ed-hero-title { font-size: 1.78rem; line-height: 1.18; margin-bottom: 10px; }
    .ed-hero-sub { font-size: 0.9rem; line-height: 1.55; margin-bottom: 16px; }
    .ed-cta-group .ed-btn-primary { min-height: 46px; font-size: 0.88rem; }
}

/* Smooth Mobile Drawer & Touch Ergonomics Parity (v4.3.0) */
.ed-drawer {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}
.ed-drawer-link {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}
.ed-drawer-link:active {
    transform: scale(0.985);
}
.ed-drawer-link.is-vip {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
    border: 1.5px solid #F59E0B !important;
    color: #92400E !important;
    font-weight: 800 !important;
}
.ed-nav-link, .ed-dropdown-link, .ed-btn-primary, .ed-btn-outline, .ed-mobile-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
