/* ═══════════════════════════════════════
   QUESTO HUB – Ultra-Clean Dark Luxury Homepage Styles
   Flat modern luxury, zero heavy shadows, razor-thin borders,
   deep obsidian backgrounds, and signature Questo Gold highlights
   ═══════════════════════════════════════ */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    --qh-bg: #0b0e14;
    --qh-bg-alt: #0e1320;
    --qh-surface-solid: #111624;
    --qh-surface-card: #141a29;
    --qh-surface-hover: #182032;
    --qh-border: rgba(255, 255, 255, 0.08);
    --qh-border-hover: rgba(255, 255, 255, 0.18);
    --qh-border-gold: rgba(249, 223, 123, 0.35);
    
    /* Typography Colors */
    --qh-text: #e2e8f0;
    --qh-text-bright: #ffffff;
    --qh-text-muted: #94a3b8;
    --qh-text-dim: #64748b;
    
    /* Accent Palettes */
    --qh-gold: #f9df7b;
    --qh-gold-hover: #fce89b;
    --qh-teal: #0d9488;
    --qh-teal-bright: #14b8a6;
    --qh-purple: #8b5cf6;
    --qh-purple-bright: #a855f7;
    --qh-rose: #f43f5e;
    --qh-amber: #f59e0b;
    --qh-emerald: #10b981;
    --qh-success: #10b981;
    --qh-danger: #ef4444;
    
    /* Radii & Effects */
    --qh-radius-lg: 18px;
    --qh-radius-md: 12px;
    --qh-radius-sm: 8px;
    --qh-radius-pill: 9999px;
    --qh-transition: 0.2s ease;
}

/* Helper Text Classes */
.text-gold { color: var(--qh-gold) !important; }
.text-teal { color: var(--qh-teal-bright) !important; }
.text-purple { color: var(--qh-purple-bright) !important; }
.text-rose { color: var(--qh-rose) !important; }
.text-amber { color: var(--qh-amber) !important; }
.text-emerald { color: var(--qh-emerald) !important; }

/* ═══════════════════════════════════════
   PAGE WRAPPER
   ═══════════════════════════════════════ */
.qh-home {
    max-width: 1220px;
    margin: 80px auto 50px;
    padding: 0 20px;
    min-height: 80vh;
    color: var(--qh-text);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   1. HERO SECTION
   ═══════════════════════════════════════ */
.qh-hero-v2 {
    background: #111624;
    border-radius: var(--qh-radius-lg);
    padding: 44px 36px 30px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--qh-border);
    border-top: 1px solid var(--qh-border-gold);
    box-shadow: none !important;
}

/* Gradient Mesh Blobs (Soft, Subtle Ambient Background) */
.qh-hero-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.qh-hero-mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.16;
    animation: qh-mesh-float 16s ease-in-out infinite alternate;
}

.qh-hero-mesh-blob:nth-child(1) {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: -10%;
    left: 15%;
}

.qh-hero-mesh-blob:nth-child(2) {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #0d9488 0%, transparent 70%);
    bottom: -15%;
    right: 10%;
    animation-delay: -5s;
}

.qh-hero-mesh-blob:nth-child(3) {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #f9df7b 0%, transparent 70%);
    top: 30%;
    left: 45%;
    opacity: 0.12;
    animation-delay: -10s;
}

@keyframes qh-mesh-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
    100% { transform: translate(-20px, 20px) scale(0.96); }
}

.qh-hero-v2-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    position: relative;
    z-index: 2;
}

.qh-hero-v2-content {
    flex: 1;
    max-width: 580px;
}

.qh-hero-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--qh-radius-pill);
    background: rgba(249, 223, 123, 0.08);
    border: 1px solid rgba(249, 223, 123, 0.25);
    color: var(--qh-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.qh-hero-badge-v2 i {
    color: #ef4444;
}

.qh-hero-v2 h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--qh-text-bright);
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.accent-grad {
    background: linear-gradient(135deg, #f9df7b 0%, #38bdf8 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.qh-hero-v2-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--qh-text-muted);
    margin-bottom: 24px;
    max-width: 500px;
}

.qh-hero-v2-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Hero Action Buttons - Clean Luxury (No Harsh Shadows) */
.qh-btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--qh-radius-sm);
    background: var(--qh-gold);
    color: #0b0e14 !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid var(--qh-gold);
    cursor: pointer;
    box-shadow: none !important;
    transition: var(--qh-transition);
}

.qh-btn-glow:hover {
    background: var(--qh-gold-hover);
    border-color: var(--qh-gold-hover);
    color: #000 !important;
    transform: translateY(-2px);
}

.qh-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--qh-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--qh-text) !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
    transition: var(--qh-transition);
}

.qh-btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--qh-text-bright) !important;
    transform: translateY(-2px);
}

/* Interactive Hero Quiz Card - Clean Surface */
.qh-hero-quiz-card {
    width: 350px;
    flex-shrink: 0;
    background: var(--qh-surface-card);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 20px;
    position: relative;
    border-top: 2px solid var(--qh-gold);
    box-shadow: none !important;
}

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: var(--qh-text-muted);
    font-weight: 600;
}

.quiz-card-header span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-card-xp {
    background: rgba(249, 223, 123, 0.1);
    color: var(--qh-gold);
    padding: 3px 8px;
    border-radius: var(--qh-radius-pill);
    font-weight: 700;
    font-size: 0.74rem;
    border: 1px solid rgba(249, 223, 123, 0.2);
}

.quiz-card-question {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--qh-text-bright);
    line-height: 1.4;
    margin-bottom: 14px;
}

.quiz-card-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.quiz-card-option {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--qh-radius-sm);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--qh-text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--qh-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none !important;
}

.option-letter {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--qh-text-muted);
    flex-shrink: 0;
}

.quiz-card-option:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--qh-text-bright);
    transform: translateX(3px);
}

.quiz-card-option.correct {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
    font-weight: 600;
}

.quiz-card-option.correct .option-letter {
    background: #10b981;
    color: #fff;
}

.quiz-card-option.wrong {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

.quiz-card-option.wrong .option-letter {
    background: #ef4444;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM TOP TOAST NOTIFICATION (RECTANGULAR LUXURY CARD - ZERO SHADOWS)
   ═══════════════════════════════════════════════════════════════════ */
.qh-daily-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -60px);
    opacity: 0;
    visibility: hidden;
    z-index: 999999;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    width: 460px;
    max-width: calc(100vw - 32px);
}

.qh-daily-toast.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.qh-daily-toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(20, 24, 36, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #10b981;
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: none !important;
    position: relative;
}

.qh-daily-toast.toast-success .qh-daily-toast-inner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(16, 185, 129, 0.35);
    border-top: 3px solid #10b981;
}

.qh-daily-toast.toast-error .qh-daily-toast-inner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(239, 68, 68, 0.35);
    border-top: 3px solid #ef4444;
}

.qh-daily-toast.toast-info .qh-daily-toast-inner {
    background: linear-gradient(135deg, rgba(249, 223, 123, 0.12) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(249, 223, 123, 0.35);
    border-top: 3px solid #f9df7b;
}

.qh-daily-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast-success .qh-daily-toast-icon {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast-error .qh-daily-toast-icon {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-info .qh-daily-toast-icon {
    background: rgba(249, 223, 123, 0.16);
    color: #f9df7b;
    border: 1px solid rgba(249, 223, 123, 0.3);
}

.qh-daily-toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    min-width: 0;
}

.qh-daily-toast-topline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qh-daily-toast-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.toast-success .qh-daily-toast-badge {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.toast-error .qh-daily-toast-badge {
    background: rgba(239, 68, 68, 0.22);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.toast-info .qh-daily-toast-badge {
    background: rgba(249, 223, 123, 0.22);
    color: #f9df7b;
    border: 1px solid rgba(249, 223, 123, 0.35);
}

.qh-daily-toast-time {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.qh-daily-toast-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.qh-daily-toast-sub {
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.qh-daily-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.qh-daily-toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Stats Row */
.qh-hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 22px;
    margin-top: 26px;
    border-top: 1px solid var(--qh-border);
    position: relative;
    z-index: 2;
}

.qh-hero-stat-pill {
    text-align: center;
}

.stat-pill-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--qh-gold);
    line-height: 1.2;
}

.stat-pill-label {
    display: block;
    font-size: 0.74rem;
    color: var(--qh-text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.stat-pill-divider {
    width: 1px;
    height: 26px;
    background: var(--qh-border);
}

.qh-scroll-hint {
    text-align: center;
    padding: 10px 0 0;
    color: var(--qh-text-dim);
    animation: qh-bounce 2s infinite;
    font-size: 0.8rem;
}

@keyframes qh-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ═══════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════ */
.qh-section-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.qh-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--qh-radius-pill);
    background: rgba(249, 223, 123, 0.08);
    border: 1px solid rgba(249, 223, 123, 0.2);
    color: var(--qh-gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.qh-section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--qh-text-bright);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.qh-section-header p {
    color: var(--qh-text-muted);
    font-size: 0.86rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   ELEGANT SECTION DIVIDERS & BALANCED SPACING
   ═══════════════════════════════════════ */
.qh-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 44px auto;
    max-width: 580px;
    padding: 0 20px;
    box-sizing: border-box;
}

.qh-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 35%, rgba(249, 223, 123, 0.28) 50%, rgba(255, 255, 255, 0.08) 65%, transparent);
}

.qh-divider-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111624;
    border: 1px solid rgba(249, 223, 123, 0.3);
    color: var(--qh-gold);
    font-size: 0.68rem;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.qh-divider-node i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 0;
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qh-section-divider:hover .qh-divider-node {
    border-color: var(--qh-gold);
    background: #151c2e;
}

.qh-section-divider:hover .qh-divider-node i {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════
   2. SEARCH HUB (SPOTLIGHT COMMAND BAR)
   ═══════════════════════════════════════ */
.qh-search-v2 {
    padding: 10px 0 36px;
}

.qh-search-glass-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 18px 20px;
    position: relative;
    border-top: 1px solid var(--qh-border-gold);
    box-shadow: none !important;
}

.qh-search-tabs-v2 {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.qh-search-tab-v2 {
    padding: 5px 13px;
    border-radius: var(--qh-radius-pill);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--qh-border);
    color: var(--qh-text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--qh-transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: none !important;
}

.qh-search-tab-v2:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--qh-text-bright);
}

.qh-search-tab-v2.active {
    background: var(--qh-gold);
    color: #0b0e14;
    border-color: var(--qh-gold);
    font-weight: 700;
}

.qh-search-input-v2-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(11, 14, 20, 0.7);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-sm);
    padding: 11px 15px;
    transition: var(--qh-transition);
    margin-bottom: 12px;
}

.qh-search-input-v2-wrap:focus-within {
    border-color: var(--qh-gold);
    background: rgba(11, 14, 20, 0.95);
}

.qh-search-icon-v2 {
    color: var(--qh-gold);
    font-size: 0.95rem;
}

.qh-search-input-v2-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--qh-text-bright);
    font-size: 0.88rem;
    font-weight: 500;
}

.qh-search-input-v2-wrap input::placeholder {
    color: var(--qh-text-dim);
}

.qh-search-kbd {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--qh-border);
    color: var(--qh-text-dim);
    font-family: monospace;
    font-weight: 600;
}

/* Search Trending Tags */
.qh-search-trending-v2 {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.78rem;
}

.trending-label {
    color: var(--qh-text-dim);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trending-label i {
    color: var(--qh-amber);
}

.qh-trending-pill {
    padding: 4px 10px;
    border-radius: var(--qh-radius-pill);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--qh-border);
    color: var(--qh-text-muted);
    text-decoration: none;
    font-size: 0.74rem;
    transition: var(--qh-transition);
    box-shadow: none !important;
}

.qh-trending-pill:hover {
    background: rgba(249, 223, 123, 0.1);
    border-color: var(--qh-gold-border);
    color: var(--qh-gold);
    transform: translateY(-1px);
}

/* Dropdown Results */
.qh-search-dropdown-v2 {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    max-height: 380px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.qh-search-group {
    padding: 6px 0;
}

.qh-search-group + .qh-search-group {
    border-top: 1px solid var(--qh-border);
}

.qh-search-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--qh-gold);
    padding: 6px 16px 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qh-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--qh-text);
    transition: var(--qh-transition);
}

.qh-search-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--qh-text-bright);
}

.qh-search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.qh-search-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(249, 223, 123, 0.1);
    color: var(--qh-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.qh-search-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--qh-teal);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.qh-search-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.qh-search-item-title {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qh-search-item-sub {
    font-size: 0.72rem;
    color: var(--qh-text-dim);
}

.qh-search-item-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: var(--qh-radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--qh-text-muted);
}

.qh-search-loading,
.qh-search-empty {
    padding: 24px;
    text-align: center;
    color: var(--qh-text-dim);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ═══════════════════════════════════════
   3. THE 4 POWER PORTALS (BENTO GRID WITH TAGS)
   ═══════════════════════════════════════ */
.qh-portals {
    padding: 10px 0 44px;
}

.qh-portals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.qh-portal-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: var(--qh-radius-lg);
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    text-decoration: none;
    color: var(--qh-text);
    position: relative;
    overflow: hidden;
    transition: var(--qh-transition);
    min-height: 240px;
    box-sizing: border-box;
    box-shadow: none !important;
}

.qh-portal-card:hover {
    transform: translateY(-3px);
    border-color: var(--qh-border-hover);
    background: var(--qh-surface-card);
}

.portal-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    top: -30px;
    right: -30px;
    pointer-events: none;
    transition: var(--qh-transition);
}

.qh-portal-card:hover .portal-glow {
    opacity: 0.2;
}

.portal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.portal-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.portal-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--qh-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tag-purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.tag-emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.tag-teal { background: rgba(13, 148, 136, 0.12); color: #2dd4bf; border: 1px solid rgba(13, 148, 136, 0.25); }
.tag-amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.tag-rose { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.25); }
.tag-gold { background: rgba(249, 223, 123, 0.12); color: var(--qh-gold); border: 1px solid rgba(249, 223, 123, 0.25); }

/* Specific Portal Glow Colors */
.portal-purple .portal-glow { background: var(--qh-purple); }
.portal-purple .portal-icon { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.portal-purple:hover { border-color: rgba(168, 85, 247, 0.35); }

.portal-emerald .portal-glow { background: var(--qh-teal); }
.portal-emerald .portal-icon { background: rgba(13, 148, 136, 0.12); color: #2dd4bf; border: 1px solid rgba(13, 148, 136, 0.25); }
.portal-emerald:hover { border-color: rgba(13, 148, 136, 0.35); }

.portal-amber .portal-glow { background: var(--qh-amber); }
.portal-amber .portal-icon { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.portal-amber:hover { border-color: rgba(245, 158, 11, 0.35); }

.portal-rose .portal-glow { background: var(--qh-rose); }
.portal-rose .portal-icon { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.25); }
.portal-rose:hover { border-color: rgba(244, 63, 94, 0.35); }

.portal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--qh-transition);
}

.portal-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--qh-text-bright);
    margin-bottom: 6px;
}

.portal-desc {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--qh-text-muted);
    margin-bottom: 14px;
    flex: 1;
}

.portal-highlights {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.portal-highlights span {
    font-size: 0.74rem;
    color: var(--qh-text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.portal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--qh-text-dim);
}

.portal-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--qh-gold);
    transition: var(--qh-transition);
}

.qh-portal-card:hover .portal-arrow {
    gap: 9px;
    color: #fff;
}

/* ═══════════════════════════════════════
   4. INTERACTIVE CLINICAL TOOLKITS GRID
   ═══════════════════════════════════════ */
.qh-tools-suite {
    padding: 10px 0 44px;
}

.qh-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.qh-tool-card {
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 18px 16px;
    text-decoration: none;
    color: var(--qh-text);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--qh-transition);
    box-sizing: border-box;
    box-shadow: none !important;
}

.qh-tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--qh-border-hover);
    background: var(--qh-surface-card);
}

.tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tool-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--qh-transition);
}

.tool-badge-pill {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--qh-radius-pill);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Tool Color Accents */
.tool-teal .tool-icon-box { background: rgba(13, 148, 136, 0.15); color: #2dd4bf; border: 1px solid rgba(13, 148, 136, 0.25); }
.tool-teal .tool-badge-pill { background: rgba(13, 148, 136, 0.12); color: #2dd4bf; border: 1px solid rgba(13, 148, 136, 0.2); }
.tool-teal:hover { border-color: rgba(13, 148, 136, 0.4); }

.tool-rose .tool-icon-box { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.25); }
.tool-rose .tool-badge-pill { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.2); }
.tool-rose:hover { border-color: rgba(244, 63, 94, 0.4); }

.tool-amber .tool-icon-box { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.tool-amber .tool-badge-pill { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.tool-amber:hover { border-color: rgba(245, 158, 11, 0.4); }

.tool-purple .tool-icon-box { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.tool-purple .tool-badge-pill { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.tool-purple:hover { border-color: rgba(168, 85, 247, 0.4); }

.tool-gold .tool-icon-box { background: rgba(249, 223, 123, 0.15); color: var(--qh-gold); border: 1px solid rgba(249, 223, 123, 0.25); }
.tool-gold .tool-badge-pill { background: rgba(249, 223, 123, 0.12); color: var(--qh-gold); border: 1px solid rgba(249, 223, 123, 0.2); }
.tool-gold:hover { border-color: rgba(249, 223, 123, 0.4); }

.tool-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--qh-text-bright);
    margin-bottom: 5px;
}

.tool-desc {
    font-size: 0.76rem;
    color: var(--qh-text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
}

.tool-cta {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--qh-gold);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: var(--qh-transition);
}

.qh-tool-card:hover .tool-cta {
    gap: 8px;
    color: #fff;
}

/* ═══════════════════════════════════════
   5. LIVE PLATFORM METRICS
   ═══════════════════════════════════════ */
.qh-metrics-v2 {
    padding: 10px 0 44px;
}

.qh-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}

.qh-metric-card {
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 18px 14px;
    text-align: center;
    transition: var(--qh-transition);
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

.qh-metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--qh-border-hover);
    background: var(--qh-surface-card);
}

.qh-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(249, 223, 123, 0.1);
    color: var(--qh-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 0 auto 8px;
    border: 1px solid rgba(249, 223, 123, 0.2);
}

.qh-metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--qh-text-bright);
    line-height: 1.1;
    margin-bottom: 3px;
}

.qh-metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--qh-text-muted);
    margin-bottom: 2px;
}

.qh-metric-sub {
    font-size: 0.7rem;
    color: var(--qh-text-dim);
}

/* ═══════════════════════════════════════
   6. MED LOUNGE — SPLIT COMMUNITY HUB SHOWCASE
   ═══════════════════════════════════════ */
.qh-lounge {
    padding: 10px 0 44px;
    width: 100%;
}

.qh-lounge-showcase {
    background: #111624;
    border: 1px solid var(--qh-border);
    border-top: 1px solid var(--qh-border-gold);
    border-radius: var(--qh-radius-lg);
    padding: 32px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    box-sizing: border-box;
    width: 100%;
}

.qh-lounge-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.qh-lounge-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: var(--qh-radius-pill);
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: var(--qh-teal-bright);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
    margin-bottom: 12px;
}

.qh-lounge-info h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--qh-text-bright);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    word-break: break-word;
}

.qh-lounge-info p {
    color: var(--qh-text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.qh-lounge-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.lounge-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-sm);
    padding: 7px 10px;
    min-width: 0;
    box-sizing: border-box;
}

.lounge-chip i {
    font-size: 1rem;
    flex-shrink: 0;
}

.lounge-chip div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lounge-chip strong {
    font-size: 0.9rem;
    color: var(--qh-text-bright);
    line-height: 1.1;
}

.lounge-chip span {
    font-size: 0.66rem;
    color: var(--qh-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qh-lounge-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Right Side: Pulse Discussion Feed */
.qh-lounge-feed-preview {
    background: #141a29;
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: none !important;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--qh-border);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--qh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feed-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.feed-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--qh-radius-sm);
    padding: 9px 11px;
    transition: var(--qh-transition);
    min-width: 0;
    box-sizing: border-box;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--qh-border-hover);
    transform: translateX(3px);
}

.feed-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 6px;
}

.feed-badge {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--qh-radius-pill);
    flex-shrink: 0;
}

.feed-time {
    font-size: 0.66rem;
    color: var(--qh-text-dim);
    flex-shrink: 0;
}

.feed-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qh-text-bright);
    line-height: 1.35;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: var(--qh-text-dim);
    gap: 6px;
}

.feed-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════
   7. TESTIMONIALS MARQUEE
   ═══════════════════════════════════════ */
.qh-feedback-v2 {
    padding: 10px 0 44px;
    overflow: hidden;
}

.qh-feedback-marquee-v2 {
    overflow: hidden;
    position: relative;
    padding: 6px 0 16px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.qh-feedback-track-v2 {
    display: flex;
    gap: 14px;
    animation: qh-marquee-anim 45s linear infinite;
    width: max-content;
}

.qh-feedback-track-v2:hover {
    animation-play-state: paused;
}

@keyframes qh-marquee-anim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.qh-feedback-card-v2 {
    min-width: 290px;
    max-width: 330px;
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 18px;
    flex-shrink: 0;
    box-shadow: none !important;
    transition: var(--qh-transition);
}

.qh-feedback-card-v2:hover {
    border-color: var(--qh-border-hover);
    background: var(--qh-surface-card);
}

.qh-feedback-author-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qh-feedback-author-v2 img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--qh-border);
}

.qh-feedback-author-v2 h4 {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--qh-text-bright);
}

.qh-feedback-author-v2 span {
    font-size: 0.72rem;
    color: var(--qh-text-dim);
}

.qh-feedback-card-v2 p {
    font-size: 0.82rem;
    color: var(--qh-text-muted);
    line-height: 1.5;
    font-style: italic;
}

.qh-feedback-date-v2 {
    font-size: 0.68rem;
    color: var(--qh-text-dim);
    margin-top: 10px;
    display: block;
}

.qh-feedback-cta-v2 {
    text-align: center;
    margin-top: 10px;
}

/* ═══════════════════════════════════════
   8. FAQ ACCORDION
   ═══════════════════════════════════════ */
.qh-faq-v2 {
    padding: 10px 0 44px;
}

.qh-faq-list-v2 {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qh-faq-item-v2 {
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-sm);
    overflow: hidden;
    transition: var(--qh-transition);
    box-shadow: none !important;
}

.qh-faq-item-v2:hover {
    border-color: var(--qh-border-hover);
}

.qh-faq-item-v2.active {
    border-color: var(--qh-border-gold);
}

.qh-faq-question-v2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--qh-text-bright);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.qh-faq-question-v2 i {
    color: var(--qh-gold);
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.qh-faq-answer-v2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.qh-faq-answer-v2 p {
    padding: 0 18px 14px;
    font-size: 0.82rem;
    color: var(--qh-text-muted);
    line-height: 1.55;
}

.qh-faq-item-v2.active .qh-faq-answer-v2 {
    max-height: 220px;
}

/* ═══════════════════════════════════════
   9. TOP SCHOLARS LEADERBOARD
   ═══════════════════════════════════════ */
.qh-scholars-v2 {
    padding: 10px 0 44px;
}

.qh-scholars-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qh-scholar-card-v2 {
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 24px 18px;
    text-align: center;
    position: relative;
    transition: var(--qh-transition);
    box-shadow: none !important;
}

.qh-scholar-card-v2:hover {
    border-color: var(--qh-border-hover);
    background: var(--qh-surface-card);
    transform: translateY(-3px);
}

.qh-scholar-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.74rem;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-1 { background: rgba(249, 223, 123, 0.2); color: var(--qh-gold); border: 1px solid var(--qh-gold); }
.rank-2 { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid #94a3b8; }
.rank-3 { background: rgba(205, 127, 50, 0.2); color: #f59e0b; border: 1px solid #d97706; }

.qh-scholar-xp-v2 {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--qh-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(249, 223, 123, 0.08);
    padding: 3px 8px;
    border-radius: var(--qh-radius-pill);
    border: 1px solid rgba(249, 223, 123, 0.2);
}

.qh-scholar-avatar-v2 {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid var(--qh-border);
}

.qh-scholar-card-v2 h4 {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--qh-text-bright);
    margin-bottom: 2px;
}

.qh-scholar-level {
    font-size: 0.72rem;
    color: var(--qh-teal-bright);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.qh-scholar-quote-v2 {
    font-size: 0.78rem;
    color: var(--qh-text-muted);
    line-height: 1.45;
    font-style: italic;
}

/* ═══════════════════════════════════════
   10. FINAL CTA BANNER
   ═══════════════════════════════════════ */
.qh-cta-v2 {
    padding: 10px 0 24px;
}

.qh-cta-v2-card {
    background: #111624;
    border: 1px solid var(--qh-border);
    border-top: 1px solid var(--qh-border-gold);
    border-radius: var(--qh-radius-lg);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

.qh-cta-v2-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--qh-text-bright);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.qh-cta-v2-card p {
    color: var(--qh-text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.qh-cta-v2-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.qh-cta-trust {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.qh-cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--qh-radius-pill);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--qh-text);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    transition: var(--qh-transition);
}

.qh-cta-trust span:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--qh-text-bright);
    transform: translateY(-1px);
}

.qh-cta-trust span i {
    color: #10b981;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   MODAL DIALOG
   ═══════════════════════════════════════ */
.qh-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    touch-action: manipulation;
}

.qh-modal-overlay.active {
    display: flex !important;
}

.qh-modal {
    background: var(--qh-surface-solid);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-md);
    padding: 24px;
    max-width: min(480px, 94vw);
    width: 100%;
    box-shadow: none !important;
    border-top: 2px solid var(--qh-gold);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.qh-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--qh-border);
}

.qh-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--qh-text-bright);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qh-modal-close-icon {
    background: transparent;
    border: none;
    color: var(--qh-text-dim);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--qh-transition);
}

.qh-modal-close-icon:hover,
.qh-modal-close-icon:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.qh-modal label {
    font-size: 0.8rem;
    color: var(--qh-text-muted);
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.qh-modal input,
.qh-modal textarea {
    width: 100%;
    padding: 9px 13px;
    background: rgba(11, 14, 20, 0.7);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-sm);
    color: var(--qh-text-bright);
    font-size: 0.86rem;
    outline: none;
    margin-bottom: 12px;
    transition: var(--qh-transition);
}

.qh-modal input:focus,
.qh-modal textarea:focus {
    border-color: var(--qh-gold);
}

.qh-modal-char {
    font-size: 0.7rem;
    color: var(--qh-text-dim);
    text-align: right;
    margin-top: -8px;
    margin-bottom: 12px;
}

.qh-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════
   ANIMATIONS & SCROLL REVEAL
   ═══════════════════════════════════════ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-on-scroll.revealed,
.reveal-on-scroll.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered entrance in Hero */
.qh-anim-1, .qh-anim-2, .qh-anim-3, .qh-anim-4, .qh-anim-5, .qh-anim-6 {
    animation: qh-fade-up 0.5s ease forwards;
}

.qh-anim-1 { animation-delay: 0.06s; }
.qh-anim-2 { animation-delay: 0.12s; }
.qh-anim-3 { animation-delay: 0.18s; }
.qh-anim-4 { animation-delay: 0.24s; }
.qh-anim-5 { animation-delay: 0.30s; }
.qh-anim-6 { animation-delay: 0.36s; }

@keyframes qh-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .qh-hero-v2-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .qh-hero-v2-content {
        max-width: 100%;
    }
    
    .qh-hero-v2-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .qh-hero-v2-actions {
        justify-content: center;
    }
    
    .qh-hero-quiz-card {
        width: 100%;
        max-width: 440px;
    }
    
    .qh-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qh-lounge-showcase {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 20px;
    }
    
    .qh-scholars-grid-v2 {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .qh-home {
        margin-top: 70px;
        padding: 0 14px;
    }
    
    .qh-hero-v2 {
        padding: 28px 16px 18px;
    }

    /* Daily Mini-Challenge Card Mobile */
    .qh-hero-quiz-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 18px auto 0 !important;
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .quiz-card-header {
        font-size: 0.88rem !important;
    }

    .quiz-card-xp {
        font-size: 0.75rem !important;
        padding: 3px 10px !important;
    }

    .quiz-card-question {
        font-size: 0.90rem !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
    }

    .quiz-card-option {
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
        gap: 8px !important;
        border-radius: 10px !important;
    }

    .option-letter {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.72rem !important;
    }

    /* Floating Top Toast Mobile */
    .qh-daily-toast {
        top: 16px !important;
        width: calc(100vw - 28px) !important;
        max-width: 440px !important;
    }

    .qh-daily-toast-inner {
        padding: 12px 14px !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }

    .qh-daily-toast-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
    }

    .qh-daily-toast-title {
        font-size: 0.88rem !important;
    }

    .qh-daily-toast-sub {
        font-size: 0.74rem !important;
    }

    .qh-daily-toast-badge {
        padding: 2px 7px !important;
        font-size: 0.68rem !important;
        border-radius: 5px !important;
    }
    
    .qh-portals-grid {
        grid-template-columns: 1fr;
    }
    
    .qh-portal-card {
        padding: 20px 18px;
        min-height: auto;
    }
    
    .qh-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .qh-hero-stats-row {
        gap: 14px;
    }
    
    .stat-pill-divider {
        display: none;
    }
    
    .qh-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qh-lounge-showcase {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 20px 14px;
        border-radius: var(--qh-radius-md);
    }
    
    .qh-lounge-info h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .qh-lounge-chips {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
        margin-bottom: 18px;
    }
    
    .lounge-chip {
        padding: 8px 6px;
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: center;
        min-width: 0;
    }
    
    .lounge-chip i {
        font-size: 0.92rem;
        flex-shrink: 0;
    }
    
    .lounge-chip strong {
        font-size: 0.84rem;
        line-height: 1.1;
    }
    
    .lounge-chip span {
        font-size: 0.58rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .qh-lounge-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .qh-lounge-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .feed-title {
        white-space: normal;
        font-size: 0.78rem;
    }
    
    .feed-footer {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .qh-cta-v2-card {
        padding: 30px 16px;
    }
}

@media (max-width: 480px) {
    .qh-hero-v2 h1 {
        font-size: 1.65rem;
    }
    
    .qh-hero-v2-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .qh-btn-glow, .qh-btn-glass {
        width: 100%;
        justify-content: center;
    }
    
    .qh-metrics-grid {
        grid-template-columns: 1fr;
    }

    /* Small mobile adjustments */
    .qh-daily-toast {
        top: 10px !important;
        width: calc(100vw - 16px) !important;
    }

    .qh-daily-toast-inner {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }

    .qh-daily-toast-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.88rem !important;
        border-radius: 7px !important;
    }

    .qh-daily-toast-title {
        font-size: 0.84rem !important;
    }

    .qh-daily-toast-sub {
        font-size: 0.70rem !important;
    }

    .qh-daily-toast-badge {
        padding: 1px 6px !important;
        font-size: 0.64rem !important;
    }

    .qh-hero-quiz-card {
        padding: 16px 12px !important;
    }

    .quiz-card-option {
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }
}