@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700&family=Outfit:wght@500;600;700;800;900&display=swap');

/* ==========================================================================
   QUIZLITE DESIGN SYSTEM - KAHOOT INSPIRED & BRAND ALIGNED
   ========================================================================== */

:root {
    /* Brand Colors (derived from QuizLite Logo) */
    --ql-blue: #0D72EA;
    --ql-blue-dark: #0A53AD;
    --ql-blue-deep: #08346E;
    --ql-blue-light: #EBF4FE;
    
    --ql-orange: #FF7A00;
    --ql-orange-dark: #D46300;
    --ql-orange-light: #FFF4EB;
    
    --ql-yellow: #FFC700;
    --ql-yellow-dark: #D4A000;
    --ql-yellow-light: #FFF9E0;

    --ql-navy: #0B2545;
    --ql-navy-dark: #071930;
    --ql-navy-soft: #183B6B;
    
    /* Iconic 4 Game Colors (Kahoot Palette) */
    --game-red: #E21B3C;
    --game-red-shadow: #A31027;
    --game-blue: #1368CE;
    --game-blue-shadow: #0A4389;
    --game-yellow: #FFA602;
    --game-yellow-shadow: #B87600;
    --game-green: #26890C;
    --game-green-shadow: #185E07;

    /* Neutrals & Surfaces */
    --bg-page: #F6F8FC;
    --bg-card: #FFFFFF;
    --bg-dark: #0B1E36;
    --border-light: #E4E8F1;
    --border-subtle: #EDF0F7;
    
    --text-primary: #1C2430;
    --text-secondary: #5A6A80;
    --text-muted: #8E9BAE;
    --text-inverse: #FFFFFF;

    /* Typography */
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Montserrat', sans-serif;

    /* Elevation */
    --shadow-sm: 0 2px 6px rgba(11, 37, 69, 0.06);
    --shadow-md: 0 6px 18px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 16px 36px rgba(11, 37, 69, 0.12);
    --shadow-3d-green: 0 4px 0 var(--game-green-shadow);
    --shadow-3d-blue: 0 4px 0 var(--ql-blue-dark);
    --shadow-3d-orange: 0 4px 0 var(--ql-orange-dark);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

p {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
    hyphens: manual;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ==========================================================================
   BUTTON SYSTEM (KAHOOT 3D TACTILE FEEL)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    position: relative;
    user-select: none;
    letter-spacing: 0.01em;
}

.btn:active {
    transform: translateY(3px);
}

/* Kahoot Green CTA */
.btn-green {
    background-color: var(--game-green);
    color: var(--text-inverse);
    box-shadow: 0 4px 0 var(--game-green-shadow);
}
.btn-green:hover {
    background-color: #2da10e;
}
.btn-green:active {
    box-shadow: 0 1px 0 var(--game-green-shadow);
}

/* QuizLite Blue */
.btn-blue {
    background-color: var(--ql-blue);
    color: var(--text-inverse);
    box-shadow: 0 4px 0 var(--ql-blue-dark);
}
.btn-blue:hover {
    background-color: #1a82fc;
}
.btn-blue:active {
    box-shadow: 0 1px 0 var(--ql-blue-dark);
}

/* QuizLite Orange Accent */
.btn-orange {
    background-color: var(--ql-orange);
    color: var(--text-inverse);
    box-shadow: 0 4px 0 var(--ql-orange-dark);
}
.btn-orange:hover {
    background-color: #ff8c21;
}
.btn-orange:active {
    box-shadow: 0 1px 0 var(--ql-orange-dark);
}

/* White 3D button */
.btn-white {
    background-color: #ffffff;
    color: var(--ql-navy);
    box-shadow: 0 4px 0 #d3d7e0;
}
.btn-white:hover {
    background-color: #f7f9fd;
}
.btn-white:active {
    box-shadow: 0 1px 0 #d3d7e0;
}

/* Outline Buttons */
.btn-outline-blue {
    border: 2px solid var(--ql-blue);
    color: var(--ql-blue);
    background: transparent;
}
.btn-outline-blue:hover {
    background: var(--ql-blue-light);
}

.btn-outline-dark {
    border: 2px solid var(--ql-navy);
    color: var(--ql-navy);
    background: transparent;
}
.btn-outline-dark:hover {
    background: rgba(11, 37, 69, 0.05);
}

.btn-lg {
    padding: 0.95rem 1.9rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.ql-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border-light);
}

/* Notification / Top Announcement Bar */
.ql-topbar {
    background: linear-gradient(90deg, var(--ql-navy-dark) 0%, var(--ql-blue-deep) 100%);
    color: #ffffff;
    padding: 0.35rem 1.25rem;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ql-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ql-topbar-badge {
    background: var(--ql-orange);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ql-topbar-link {
    color: var(--ql-yellow);
    font-weight: 700;
    text-decoration: underline;
    margin-left: 0.35rem;
}
.ql-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.ql-topbar-right a {
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}
.ql-topbar-right a:hover {
    color: #fff;
}

/* Main Navbar */
.ql-navbar {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ql-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}
.ql-logo-link:hover {
    transform: scale(1.02);
}

.ql-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.ql-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.ql-nav-item {
    position: relative;
}

.ql-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.ql-nav-btn:hover {
    background-color: #f1f4f9;
    color: var(--ql-blue);
}

.ql-dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}
.ql-nav-item:hover .ql-dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.ql-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.75rem 0;
    display: none;
    z-index: 100;
    animation: fadeInSlide 0.2s ease forwards;
}
.ql-nav-item:hover .ql-dropdown-menu {
    display: block;
}

.ql-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.ql-dropdown-link:hover {
    background: var(--ql-blue-light);
    color: var(--ql-blue);
}
.ql-dropdown-badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    background: #f1f4f9;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Right Nav Actions */
.ql-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Kahoot Signature "Join / Play" PIN Trigger */
.btn-join-pin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1368CE 0%, #0D72EA 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    border: 2px solid #fff;
    box-shadow: 0 3px 0 var(--game-blue-shadow), 0 4px 10px rgba(19, 104, 206, 0.3);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-join-pin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--game-blue-shadow), 0 6px 14px rgba(19, 104, 206, 0.4);
}
.btn-join-pin:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--game-blue-shadow);
}
.pin-sparkle {
    display: inline-block;
    animation: pulseGlow 1.5s infinite alternate;
}

.btn-login {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}
.btn-login:hover {
    color: var(--ql-blue);
}

.btn-signup-nav {
    background-color: var(--game-green);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 3px 0 var(--game-green-shadow);
    transition: all var(--transition-fast);
}
.btn-signup-nav:hover {
    background-color: #2ea80e;
}
.btn-signup-nav:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--game-green-shadow);
}

/* Mobile Hamburger Toggle */
.ql-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    cursor: pointer;
    z-index: 1010;
}
.ql-menu-bar {
    width: 100%;
    height: 3px;
    background-color: var(--ql-navy);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ==========================================================================
   HERO SECTION (KAHOOT PLAYFUL VIBE + QUIZLITE IDENTITY)
   ========================================================================== */

.ql-hero {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(13, 114, 234, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 122, 0, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #FFFFFF 0%, #F5F7FC 100%);
    padding: 3.5rem 1.5rem 4.5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.ql-hero-container {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.ql-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ql-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ql-blue-light);
    border: 1px solid rgba(13, 114, 234, 0.2);
    color: var(--ql-blue-deep);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
}

.ql-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--ql-navy);
    letter-spacing: -0.02em;
}

.ql-highlight-gradient {
    background: linear-gradient(135deg, var(--ql-blue) 0%, var(--ql-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ql-highlight-star {
    position: relative;
    display: inline-block;
    color: var(--ql-orange);
}

.ql-hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Fast PIN Entry Box directly in Hero */
.ql-quick-pin-box {
    background: #ffffff;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 500px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.ql-quick-pin-box:focus-within {
    border-color: var(--ql-blue);
    box-shadow: 0 0 0 4px rgba(13, 114, 234, 0.15);
}
.ql-pin-input {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    border: none;
    outline: none;
    color: var(--ql-navy);
    background: transparent;
}
.ql-pin-input::placeholder {
    font-weight: 500;
    letter-spacing: normal;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Hero CTA Row */
.ql-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ql-hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}
.ql-avatar-stack {
    display: flex;
}
.ql-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 2px solid #ffffff;
    margin-left: -10px;
    background-size: cover;
    background-position: center;
}
.ql-avatar:first-child {
    margin-left: 0;
}
.ql-proof-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.ql-proof-stars {
    color: #FFB800;
    font-size: 0.95rem;
}

/* ==========================================================================
   INTERACTIVE HERO PREVIEW (KAHOOT GAME MOCKUP)
   ========================================================================== */

.ql-hero-game-wrapper {
    position: relative;
}

.ql-game-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(11, 37, 69, 0.16);
    border: 2px solid var(--border-light);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-base);
}

.ql-game-topbar {
    background: var(--ql-navy);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ql-game-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4ADE80;
}
.ql-live-dot {
    width: 8px;
    height: 8px;
    background-color: #4ADE80;
    border-radius: 50%;
    animation: blinkDot 1.2s infinite ease-in-out;
}
.ql-game-pin-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Question Area */
.ql-question-box {
    background: #FAFAFD;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.ql-question-number {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ql-blue);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}
.ql-question-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ql-navy);
    line-height: 1.35;
}
.ql-timer-ring-container {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 3px solid var(--ql-orange);
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--ql-orange);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* The 4 Kahoot Answer Blocks */
.ql-answer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: #F1F4F9;
}

.ql-answer-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1rem;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    user-select: none;
}
.ql-answer-btn:active {
    transform: translateY(3px);
}

.ql-answer-shape {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Colors with 3D button press depth */
.ans-red {
    background-color: var(--game-red);
    box-shadow: 0 4px 0 var(--game-red-shadow);
}
.ans-red:hover { filter: brightness(1.08); }
.ans-red:active { box-shadow: 0 1px 0 var(--game-red-shadow); }

.ans-blue {
    background-color: var(--game-blue);
    box-shadow: 0 4px 0 var(--game-blue-shadow);
}
.ans-blue:hover { filter: brightness(1.08); }
.ans-blue:active { box-shadow: 0 1px 0 var(--game-blue-shadow); }

.ans-yellow {
    background-color: var(--game-yellow);
    box-shadow: 0 4px 0 var(--game-yellow-shadow);
}
.ans-yellow:hover { filter: brightness(1.08); }
.ans-yellow:active { box-shadow: 0 1px 0 var(--game-yellow-shadow); }

.ans-green {
    background-color: var(--game-green);
    box-shadow: 0 4px 0 var(--game-green-shadow);
}
.ans-green:hover { filter: brightness(1.08); }
.ans-green:active { box-shadow: 0 1px 0 var(--game-green-shadow); }

/* Feedback overlay inside game mock */
.ql-feedback-banner {
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.95rem;
    animation: slideUpFade 0.3s ease;
}
.feedback-correct {
    background: #DCFCE7;
    color: #15803D;
    border-top: 2px solid #86EFAC;
}
.feedback-wrong {
    background: #FEE2E2;
    color: #B91C1C;
    border-top: 2px solid #FCA5A5;
}

/* Floating Badges around Hero Mock */
.ql-badge-floating {
    position: absolute;
    background: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    animation: floatGently 4s infinite ease-in-out;
}
.badge-streak {
    top: -16px;
    left: -20px;
    border-left: 4px solid var(--ql-orange);
}
.badge-players {
    bottom: -16px;
    right: -15px;
    border-left: 4px solid var(--game-green);
    animation-delay: 2s;
}

/* ==========================================================================
   AUDIENCE SECTION (WHO USES QUIZLITE?) - KAHOOT STYLE TABS
   ========================================================================== */

.ql-section {
    padding: 5rem 1.5rem;
    max-width: 1360px;
    margin: 0 auto;
}

.ql-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}
.ql-section-tag {
    display: inline-block;
    color: var(--ql-blue);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.ql-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: var(--ql-navy);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.ql-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: justify;
    text-justify: inter-word;
    text-align-last: center;
    -webkit-hyphens: manual;
    hyphens: manual;
}

/* Tabs */
.ql-audience-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.ql-audience-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.ql-audience-tab:hover {
    color: var(--ql-blue);
    border-color: var(--ql-blue);
}
.ql-audience-tab.active {
    background: var(--ql-blue);
    color: #ffffff;
    border-color: var(--ql-blue);
    box-shadow: 0 4px 14px rgba(13, 114, 234, 0.35);
}

/* Audience Card Grid */
.ql-persona-display {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.ql-persona-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.ql-persona-tag {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    width: fit-content;
}
.ql-persona-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ql-navy);
    line-height: 1.25;
}
.ql-persona-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.ql-feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ql-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
}
.ql-feature-item span:last-child {
    flex: 1;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.ql-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 2px;
}

.ql-persona-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.ql-persona-visual {
    background: linear-gradient(135deg, #F0F4FA 0%, #E8EEF8 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    border: 1px solid var(--border-light);
}

/* ==========================================================================
   AI QUIZ GENERATOR DEMO (INTERACTIVE FEATURE)
   ========================================================================== */

.ql-ai-banner {
    background: linear-gradient(135deg, #071A33 0%, #0F3870 50%, #162B4D 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(7, 26, 51, 0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.ql-ai-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ql-ai-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.ql-ai-badge {
    background: rgba(255, 199, 0, 0.15);
    border: 1px solid var(--ql-yellow);
    color: var(--ql-yellow);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    width: fit-content;
}
.ql-ai-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
}
.ql-ai-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
    word-break: break-word;
}

.ql-ai-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}
.ql-ai-feat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #F1F5F9;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ql-ai-interactive-card {
    background: #ffffff;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.ql-ai-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.ql-ai-input-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ql-navy);
    letter-spacing: 0.04em;
}
.ql-ai-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ql-navy);
    outline: none;
    transition: all var(--transition-fast);
    background: #FAFAFD;
}
.ql-ai-input:focus {
    border-color: var(--ql-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 114, 234, 0.12);
}

.ql-ai-chips-group {
    margin-bottom: 1.25rem;
}
.ql-ai-chips-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.ql-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ql-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #F1F4F9;
    border: 1px solid var(--border-light);
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}
.ql-ai-chip:hover {
    background: var(--ql-blue-light);
    color: var(--ql-blue);
    border-color: rgba(13, 114, 234, 0.3);
    transform: translateY(-1px);
}
.ql-ai-chip.active {
    background: #EBF4FE;
    color: var(--ql-blue);
    border-color: var(--ql-blue);
    box-shadow: 0 2px 8px rgba(13, 114, 234, 0.15);
}

.btn-ai-generate {
    width: 100%;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 0 var(--ql-blue-dark);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ql-ai-preview-box {
    background: #F8FAFC;
    border-radius: var(--radius-md);
    padding: 1.15rem;
    border: 1px dashed #CBD5E1;
    min-height: 120px;
    font-size: 0.88rem;
}

.ql-ai-loading-state {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--ql-blue);
    font-weight: 700;
}
.ql-ai-pulse-icon {
    font-size: 1.75rem;
    animation: pulseGlow 0.8s infinite alternate;
    margin-bottom: 0.5rem;
}
.ql-ai-loading-text {
    font-size: 0.9rem;
    color: var(--ql-blue-deep);
}

.ql-ai-result-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ql-ai-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}
.ql-ai-result-title {
    font-weight: 800;
    color: var(--ql-navy);
    font-size: 0.88rem;
}
.ql-badge-ready {
    background: #DCFCE7;
    color: #16A34A;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.ql-ai-q-card {
    background: #ffffff;
    padding: 0.75rem 0.95rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ql-ai-q-text {
    font-weight: 750;
    color: var(--ql-navy);
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}
.ql-ai-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    font-size: 0.8rem;
}
.ql-ai-opt-item {
    background: #F8FAFC;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.25;
}
.ql-ai-opt-item.opt-correct {
    background: #F0FDF4;
    border-color: #86EFAC;
    color: #15803D;
    font-weight: 800;
}

.ql-ai-empty-state {
    text-align: center;
    padding: 1.25rem 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   HOW QUIZLITE WORKS (3-STEP KAHOOT STYLE)
   ========================================================================== */

.ql-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.ql-step-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.ql-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ql-step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.badge-step-1 { background: var(--ql-blue); }
.badge-step-2 { background: var(--ql-orange); }
.badge-step-3 { background: var(--game-green); }

.ql-step-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ql-navy);
}
.ql-step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.ql-step-illustration {
    margin-top: auto;
    background: #F6F8FC;
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.82rem;
    border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   TRENDING & EXPLORE QUIZZES (DISCOVER KAHOOT STYLE)
   ========================================================================== */

.ql-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.ql-filter-pill {
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.ql-filter-pill:hover, .ql-filter-pill.active {
    background: var(--ql-navy);
    color: #ffffff;
    border-color: var(--ql-navy);
}

.ql-quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.ql-quiz-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.ql-quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ql-quiz-banner {
    height: 145px;
    position: relative;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background-size: cover !important;
    background-position: center !important;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    overflow: hidden;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.ql-quiz-card:hover .ql-quiz-banner {
    filter: brightness(1.06);
}
.ql-quiz-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}
.ql-quiz-category-tag {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.ql-quiz-theme-badge {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.ql-quiz-qcount {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: var(--ql-navy);
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ql-quiz-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.ql-quiz-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ql-navy);
    line-height: 1.3;
}
.ql-quiz-desc,
.ql-quiz-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.ql-testimonial-desc,
.ql-stats-band p {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.ql-quiz-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   METRICS & TESTIMONIALS (TRUST SECTION)
   ========================================================================== */

.ql-stats-band {
    background: linear-gradient(135deg, var(--ql-blue-deep) 0%, var(--ql-navy) 100%);
    color: #ffffff;
    padding: 4rem 1.5rem;
    border-radius: var(--radius-xl);
    margin: 4rem auto;
    max-width: 1360px;
}
.ql-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.ql-stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--ql-yellow);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}
.ql-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* ==========================================================================
   MODALS (PIN JOIN & HOST GAME)
   ========================================================================== */

.ql-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(11, 37, 69, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.2s ease forwards;
}

.ql-modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    max-width: 480px;
    width: 100%;
    margin: auto;
    padding: 2.25rem;
    position: relative;
    box-sizing: border-box;
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ql-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.ql-modal-close:hover {
    background: #f1f4f9;
    color: var(--text-primary);
}

.ql-modal-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.ql-modal-logo-center img {
    height: 48px;
    width: auto;
}

.ql-modal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ql-navy);
    margin-bottom: 0.35rem;
}
.ql-modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.ql-modal-pin-input {
    width: 100%;
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    padding: 0.95rem;
    border: 3px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    outline: none;
    color: var(--ql-navy);
    transition: border-color var(--transition-fast);
}
.ql-modal-pin-input:focus {
    border-color: var(--ql-blue);
    box-shadow: 0 0 0 4px rgba(13, 114, 234, 0.15);
}

/* ==========================================================================
   FOOTER (KAHOOT STYLE MULTI-COLUMN)
   ========================================================================== */

.ql-footer {
    background: var(--ql-navy-dark);
    color: #ffffff;
    padding: 4.5rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ql-footer-container {
    max-width: 1360px;
    margin: 0 auto;
}

.ql-footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.ql-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.ql-footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    padding: 2px 6px;
}
.ql-footer-tagline {
    color: #94A3B8;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 300px;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.ql-app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.ql-app-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: background var(--transition-fast);
}
.ql-app-badge:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.ql-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.ql-footer-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}
.ql-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.ql-footer-link {
    color: #94A3B8;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.ql-footer-link:hover {
    color: var(--ql-yellow);
}

.ql-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #64748B;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px #fff); }
    100% { transform: scale(1.18); filter: drop-shadow(0 0 8px #FFC700); }
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes floatGently {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
    .ql-nav-links {
        display: none;
    }
    .ql-menu-toggle {
        display: flex;
    }
    .ql-hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .ql-persona-display {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .ql-ai-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .ql-steps-grid {
        grid-template-columns: 1fr;
    }
    .ql-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .ql-footer-top {
        grid-template-columns: 1fr 1fr;
    }
    /* Justify paragraphs on tablet & mobile */
    p,
    .ql-hero-subtitle,
    .ql-section-subtitle,
    .ql-persona-desc,
    .ql-feature-item,
    .ql-feature-item span:last-child,
    .ql-ai-desc,
    .ql-step-desc,
    .ql-quiz-desc,
    .ql-quiz-body p,
    .ql-testimonial-desc,
    .ql-stats-band p,
    .ql-footer-tagline {
        text-align: justify !important;
        text-justify: inter-word !important;
        text-align-last: left !important;
        -webkit-hyphens: auto !important;
        hyphens: auto !important;
    }
}

@media (max-width: 900px) {
    .ql-host-command-badge {
        display: none !important;
    }
    .ql-user-desktop-actions {
        display: none !important;
    }
    .btn-login,
    .btn-signup-nav {
        display: none !important; /* Drawer handles these */
    }
    .ql-nav-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    /* Header & Safe Area */
    .ql-header-wrapper {
        padding-top: env(safe-area-inset-top);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .ql-topbar {
        display: none; /* Keep clean on small mobile */
    }
    .ql-navbar {
        padding: 0.55rem 0.85rem;
    }
    .ql-logo-img {
        height: 36px;
    }
    .btn-join-pin {
        padding: 0.42rem 0.8rem;
        font-size: 0.8rem;
    }
    .btn-login,
    .btn-signup-nav {
        display: none !important; /* Available in mobile drawer */
    }

    /* Modals Center Alignment & Dimensions on Mobile */
    .ql-modal-backdrop {
        padding: 0.75rem !important;
    }
    .ql-modal-card {
        padding: 1.5rem 1.15rem !important;
        max-width: calc(100vw - 1.5rem) !important;
        width: 100% !important;
        margin: auto !important;
        border-radius: var(--radius-md) !important;
    }
    .ql-modal-pin-input {
        font-size: 1.85rem !important;
        letter-spacing: 0.25rem !important;
        padding: 0.7rem 0.5rem !important;
    }
    .ql-dash-hero-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .ql-dash-hero-actions .btn {
        width: 100% !important;
        padding: 0.65rem 0.5rem !important;
        font-size: 0.82rem !important;
        justify-content: center !important;
    }

    /* Sections General Spacing */
    .ql-section {
        padding: 2.5rem 0.85rem !important;
    }
    .ql-section-header {
        margin-bottom: 1.75rem !important;
        text-align: center;
    }
    .ql-section-title {
        font-size: clamp(1.6rem, 6.5vw, 2.1rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }
    .ql-section-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }

    /* Hero */
    .ql-hero {
        padding: 1.75rem 0.85rem 2.5rem !important;
    }
    .ql-hero-title {
        font-size: clamp(1.95rem, 8vw, 2.6rem) !important;
        line-height: 1.15 !important;
    }
    .ql-hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
    }
    .ql-quick-pin-box {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.75rem;
    }
    .ql-quick-pin-box .btn {
        width: 100%;
    }
    .ql-hero-ctas {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.65rem;
    }
    .ql-hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    .ql-hero-social-proof {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    .ql-answer-grid {
        grid-template-columns: 1fr;
    }
    .badge-streak, .badge-players {
        display: none;
    }

    /* Audience Tabs - 2x2 Grid so all 4 buttons fit 100% inside the screen */
    .ql-audience-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }
    .ql-audience-tab {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.65rem 0.4rem !important;
        font-size: clamp(0.78rem, 3.4vw, 0.88rem) !important;
        text-align: center !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }
    .ql-persona-display {
        padding: 1.25rem 0.85rem !important;
        gap: 1.5rem !important;
        border-radius: var(--radius-lg) !important;
    }
    .ql-persona-title {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
    }
    .ql-persona-desc {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
    }
    .ql-persona-visual {
        padding: 1rem 0.75rem !important;
        border-radius: var(--radius-md) !important;
    }
    .ql-persona-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.65rem;
    }
    .ql-persona-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* AI Quiz Generator Demo */
    .ql-ai-banner {
        padding: 1.35rem 0.85rem !important;
        border-radius: var(--radius-lg) !important;
        margin-top: 0.75rem !important;
        gap: 1.5rem !important;
    }
    .ql-ai-title {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
    }
    .ql-ai-desc {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
    }
    .ql-ai-feature-badges {
        gap: 0.4rem !important;
    }
    .ql-ai-feat-pill {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.55rem !important;
    }
    .ql-ai-interactive-card {
        padding: 1.15rem 0.85rem !important;
        border-radius: var(--radius-md) !important;
    }
    .ql-ai-chips {
        gap: 0.35rem !important;
    }
    .ql-ai-chip {
        font-size: 0.76rem !important;
        padding: 0.35rem 0.6rem !important;
    }
    .btn-ai-generate {
        font-size: 0.92rem !important;
        padding: 0.8rem 1rem !important;
    }
    .ql-ai-preview-box {
        padding: 0.85rem 0.7rem !important;
    }
    .ql-ai-options-grid {
        grid-template-columns: 1fr !important;
        gap: 0.35rem !important;
    }
    .ql-ai-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    /* Steps */
    .ql-steps-grid {
        gap: 1.25rem !important;
    }
    .ql-step-card {
        padding: 1.35rem 1rem !important;
        border-radius: var(--radius-md) !important;
        gap: 0.65rem !important;
    }
    .ql-step-title {
        font-size: 1.2rem !important;
    }
    .ql-step-desc {
        font-size: 0.9rem !important;
    }

    /* Trending Quizzes Filter Bar - wraps cleanly on screen */
    .ql-filter-bar {
        display: flex !important;
        justify-content: center !important;
        overflow: visible !important;
        flex-wrap: wrap !important;
        gap: 0.45rem !important;
        padding-bottom: 0 !important;
    }
    .ql-filter-pill {
        white-space: nowrap !important;
        padding: 0.45rem 0.8rem !important;
        font-size: 0.82rem !important;
    }
    .ql-quiz-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Stats Band */
    .ql-stats-band {
        padding: 2.25rem 0.85rem !important;
        margin: 2rem 0 !important;
        border-radius: var(--radius-lg) !important;
    }
    .ql-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem 0.75rem !important;
    }
    .ql-stat-value {
        font-size: 2.2rem !important;
    }
    .ql-stat-label {
        font-size: 0.85rem !important;
    }

    /* Footer */
    .ql-footer {
        padding: 2.5rem 0.85rem 1.5rem !important;
    }
    .ql-footer-top {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }

    /* Strictly justify all paragraphs in mobile responsive without breaking words */
    p,
    .ql-hero-subtitle,
    .ql-section-subtitle,
    .ql-persona-desc,
    .ql-feature-item,
    .ql-feature-item span:last-child,
    .ql-ai-desc,
    .ql-step-desc,
    .ql-quiz-desc,
    .ql-quiz-body p,
    .ql-testimonial-desc,
    .ql-stats-band p,
    .ql-footer-tagline {
        text-align: justify !important;
        text-justify: inter-word !important;
        text-align-last: left !important;
        -webkit-hyphens: manual !important;
        hyphens: manual !important;
        word-break: break-word !important;
    }
}

/* Mobile Drawer */
.ql-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.ql-mobile-drawer.open {
    transform: translateX(0);
}
.ql-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.ql-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}
.ql-drawer-link {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ql-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ql-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   QUIZLITE CREATOR STUDIO - KAHOOT STYLE
   ========================================================================== */

.ql-creator-shell {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #F1F4F9;
}

.ql-creator-topbar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 20;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ql-topbar-left-zone {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ql-creator-logo {
    height: 34px;
    width: auto;
}

.ql-title-editor-wrapper {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2px 4px;
}

.ql-title-input {
    border: none;
    background: transparent;
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ql-navy);
    outline: none;
    min-width: 220px;
}

.ql-settings-pill {
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.ql-draft-badge {
    font-size: 0.8rem;
    font-weight: 700;
}

.ql-topbar-right-zone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ql-topbar-err {
    font-size: 0.82rem;
    color: #DC2626;
    font-weight: 700;
}

.ql-creator-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* LEFT SIDEBAR - Question Thumbnails */
.ql-questions-sidebar {
    width: 220px;
    background: #ffffff;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.ql-questions-sidebar-header {
    padding: 0.75rem 1rem;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-light);
}

.ql-thumbnails-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ql-question-thumb-card {
    background: #F8FAFC;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ql-question-thumb-card:hover {
    border-color: #A5B4FC;
}

.ql-question-thumb-card.active {
    border-color: #4F46E5;
    background: #EEF2FF;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.18);
}

.ql-thumb-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.ql-thumb-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.ql-thumb-actions {
    display: flex;
    gap: 2px;
}

.ql-thumb-mini-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.7;
}

.ql-thumb-mini-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

.ql-thumb-del:hover {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

.ql-thumb-preview-box {
    background: #ffffff;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 52px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
}

.ql-thumb-preview-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ql-navy);
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.25rem;
}

.ql-thumb-answers-preview {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.ql-thumb-answers-preview span {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.ql-thumb-time-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
}

.ql-sidebar-bottom-actions {
    padding: 0.75rem;
    border-top: 1px solid var(--border-light);
    background: #ffffff;
}

/* CENTER CANVAS */
.ql-creator-canvas {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    transition: background 0.3s ease;
}

.ql-canvas-content {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ql-prompt-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    display: flex;
    align-items: center;
}

.ql-prompt-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    color: var(--ql-navy);
}

.ql-prompt-input::placeholder {
    color: #94A3B8;
}

.ql-char-counter {
    position: absolute;
    right: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94A3B8;
}

.ql-canvas-media-box {
    width: 280px;
    height: 150px;
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 2px dashed rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ql-canvas-media-box:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: #ffffff;
}

.ql-media-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* 4 ANSWERS GRID */
.ql-answers-quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    width: 100%;
}

.ql-answers-duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
}

.ql-answer-card {
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    position: relative;
    border: 3px solid transparent;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.ql-answer-card.correct-answer {
    border-color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.4), 0 4px 14px rgba(0,0,0,0.25);
}

.ql-answer-red { background: var(--game-red); }
.ql-answer-blue { background: var(--game-blue); }
.ql-answer-yellow { background: var(--game-yellow); }
.ql-answer-green { background: var(--game-green); }

.ql-answer-shape {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    opacity: 0.95;
    flex-shrink: 0;
}

.ql-answer-input {
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.ql-answer-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.ql-circle-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ql-circle-toggle:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.ql-circle-toggle.checked {
    background: #ffffff;
    border-color: #ffffff;
    color: #16A34A;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
}

/* RIGHT INSPECTOR SIDEBAR */
.ql-inspector-sidebar {
    width: 280px;
    background: #ffffff;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.ql-inspector-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.ql-inspector-tab-btn {
    flex: 1;
    padding: 0.85rem;
    border: none;
    background: transparent;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.ql-inspector-tab-btn.active {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
}

.ql-inspector-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1rem;
}

.ql-property-group {
    margin-bottom: 1.25rem;
}

.ql-property-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.ql-property-select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ql-navy);
    background: #ffffff;
    outline: none;
}

.ql-themes-drawer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ql-theme-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ql-themes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.ql-theme-card {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px;
    background: #F8FAFC;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.ql-theme-card:hover {
    background: #EEF2FF;
}

.ql-theme-card.selected {
    border-color: #4F46E5;
    background: #EEF2FF;
}

.ql-theme-preview {
    height: 52px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.ql-theme-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ql-navy);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* TYPE PICKER GRID (Modal 1) */
.ql-type-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.ql-type-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ql-type-card:hover {
    background: #EEF2FF;
    border-color: #6366F1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ql-type-icon-box {
    margin-bottom: 0.5rem;
}

.ql-type-card-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--ql-navy);
}

@media (max-width: 900px) {
    .ql-creator-body {
        flex-direction: column;
    }
    .ql-questions-sidebar {
        width: 100%;
        height: 140px;
    }
    .ql-thumbnails-scroll {
        flex-direction: row;
    }
    .ql-inspector-sidebar {
        width: 100%;
        height: 220px;
    }
    .ql-answers-quad-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   QUESTION & ANSWER PREVIEW MODE
   ========================================================================== */

.ql-preview-container {
    width: 95vw;
    max-width: 1040px;
    height: 88vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.25);
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ql-preview-topbar {
    padding: 0.85rem 1.5rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.ql-preview-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.ql-preview-stage {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.ql-preview-prompt-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 0.75rem;
}

.ql-preview-prompt-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ql-navy);
    margin: 0;
    line-height: 1.3;
}

.ql-preview-timer-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EEF2FF;
    color: #4F46E5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    border: 2px solid #C7D2FE;
}

.ql-preview-feedback-banner {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    animation: scaleIn 0.2s ease;
}

.ql-preview-feedback-banner.correct {
    background: #DCFCE7;
    color: #15803D;
    border: 2px solid #86EFAC;
}

.ql-preview-feedback-banner.wrong {
    background: #FEE2E2;
    color: #DC2626;
    border: 2px solid #FCA5A5;
}

.ql-preview-answer-btn {
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
    border: 3px solid transparent;
}

.ql-preview-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ql-preview-ans-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    flex: 1;
    line-height: 1.3;
}

.ql-preview-ans-marker {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    background: #16A34A;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.preview-correct-highlight {
    border-color: #22C55E !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.9) !important;
}

.preview-selected-correct {
    border-color: #ffffff !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.95), 0 4px 16px rgba(0,0,0,0.3) !important;
}

.preview-selected-wrong {
    border-color: #DC2626 !important;
    opacity: 0.6;
}

.preview-dimmed {
    opacity: 0.45;
}

.ql-preview-footbar {
    padding: 0.85rem 1.5rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.ql-preview-dots {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    overflow-x: auto;
    max-width: 50%;
}

.ql-preview-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ql-preview-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ql-preview-dot.active {
    background: #ffffff;
    color: var(--ql-navy);
    font-weight: 900;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   QUESTION & ANSWER PREVIEW & OVERVIEW STYLES
   ========================================================================== */

.ql-qa-overview-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(11, 37, 69, 0.45);
    backdrop-filter: blur(8px);
}

.ql-qa-summary-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ql-qa-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--ql-blue);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ql-qa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.ql-qa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ql-qa-question-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ql-navy);
    line-height: 1.35;
    margin: 0;
}

.ql-qa-meta-pill {
    background: #F1F5F9;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.ql-qa-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ql-qa-option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1.5px solid transparent;
}

.ql-qa-option-item.correct {
    background: #DCFCE7;
    color: #15803D;
    border-color: #86EFAC;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.ql-qa-option-item.default {
    background: #F8FAFC;
    color: #334155;
    border-color: #E2E8F0;
}

.ql-qa-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
}

.ql-qa-option-correct-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 800;
    color: #16A34A;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #86EFAC;
}

.ql-import-preview-box {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #ffffff;
}

/* ==========================================================================
   KAHOOT DUAL-VIEW PREVIEW & EXPAND SIMULATOR
   ========================================================================== */

.ql-dual-preview-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.94);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.85rem 1.25rem 0.65rem;
    overflow: hidden;
}

.ql-dual-preview-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.25rem;
    max-height: calc(100vh - 65px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 0;
}

.ql-dual-preview-workspace.expanded {
    grid-template-columns: 1fr;
}

/* Host View Pane */
.ql-host-view-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.ql-pane-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.ql-host-stage-box {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.15rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.18);
    background-size: cover;
    background-position: center;
    min-height: 0;
}

.ql-host-prompt-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.ql-host-prompt-title {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--ql-navy);
    margin: 0;
    line-height: 1.25;
}

.ql-host-center-area {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    min-height: 160px;
}

.ql-host-timer-circle {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #4C1D95;
    border: 3.5px solid #7C3AED;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.6);
    z-index: 6;
}

.ql-host-answers-circle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 6;
}

.ql-answers-circle-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #3B0764;
    border: 3.5px solid #6B21A8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(59, 7, 100, 0.6);
}

.ql-answers-circle-pill {
    margin-top: -8px;
    background: #581C87;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ql-host-media-preview {
    max-height: 180px;
    max-width: 60%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Results Histogram Bar Chart */
.ql-results-histogram {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.85rem;
    height: 150px;
    z-index: 10;
    animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ql-histogram-col {
    width: 72px;
    border-radius: 8px 8px 4px 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 7px;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 38px;
}

.ql-histogram-val {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1.15rem;
    font-weight: 900;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    line-height: 1;
}

.ql-histogram-icon {
    font-size: 0.95rem;
}

.ql-histogram-num {
    font-size: 1.25rem;
}

/* Host 4 Answer Bars */
.ql-host-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    z-index: 5;
}

.ql-host-answer-bar {
    border-radius: 10px;
    padding: 0.75rem 1.15rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    overflow: hidden;
}

.ql-host-answer-bar.dimmed {
    opacity: 0.35;
    filter: grayscale(35%) brightness(0.7);
}

.ql-host-answer-bar.highlight-correct {
    box-shadow: 0 0 0 3.5px #ffffff, 0 10px 28px rgba(0,0,0,0.6);
    transform: scale(1.01);
    opacity: 1;
}

.ql-host-answer-shape {
    font-size: 1.65rem;
    color: #ffffff;
    margin-right: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    flex-shrink: 0;
}

.ql-host-option-img {
    max-height: 48px;
    max-width: 130px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin-right: 0.5rem;
}

.ql-host-answer-text {
    flex: 1;
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.25;
}

.ql-host-answer-status-icon {
    font-size: 1.55rem;
    font-weight: 900;
    margin-left: auto;
    padding-left: 0.5rem;
    flex-shrink: 0;
}

.ql-host-answer-status-icon.correct {
    color: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.ql-host-answer-status-icon.incorrect {
    color: rgba(255, 255, 255, 0.55);
}

/* Participant View Pane (Phone layout) */
.ql-participant-view-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ql-participant-phone {
    flex: 1;
    background: #FEF3C7;
    border-radius: 18px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
    min-height: 0;
}

.ql-participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.ql-participant-qnum {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--ql-navy);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ql-participant-type-badge {
    background: #ffffff;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--ql-navy);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ql-participant-pad {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.ql-participant-btn {
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.2s ease;
}

.ql-participant-btn:hover {
    transform: scale(1.02);
}

.ql-participant-btn:active {
    transform: scale(0.96);
}

.ql-participant-btn.selected {
    outline: 4px solid #ffffff;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
}

.ql-participant-submitted-msg {
    margin-top: 0.6rem;
    background: rgba(255,255,255,0.92);
    border-radius: 8px;
    padding: 0.45rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--ql-navy);
    animation: scaleIn 0.2s ease;
}

/* Bottom Control Toolbar */
.ql-preview-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.25rem 0;
}

.ql-preview-center-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.ql-preview-nav-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ql-preview-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
}

.ql-preview-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ql-preview-nav-counter {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0 10px;
    letter-spacing: 0.05em;
}

.ql-preview-expand-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ql-preview-expand-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}


