/* =========================================================================
   STYLING MODUL FITUR TAMBAHAN (RANDOM TEAM GENERATOR & LEARNING TOOLS)
   SMA 1 Barunawati - SmartApp
   File: css/fitur_tambahan.css
   ========================================================================= */

.fitur-tambahan-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 40px 0;
}

/* Navigasi Tab Sub-Fitur */
.fitur-tabs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.fitur-tabs-bar::-webkit-scrollbar {
    display: none;
}
.fitur-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #94a3b8);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.fitur-tab-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}
.fitur-tab-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(14, 165, 233, 0.15));
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

/* Kartu Utama Random Team Generator */
.team-gen-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Header Generator */
.team-gen-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 18px;
}
.team-gen-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(56, 189, 248, 0.1));
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.team-gen-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-color, #f8fafc);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}
.team-gen-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

/* Selector Sumber Siswa (Data Source Pills) */
.team-gen-source-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}
.team-gen-source-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.source-pill-btn {
    flex: 1;
    min-width: 140px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.source-pill-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Banner Siswa Terdeteksi */
.student-class-info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 12px 18px;
    flex-wrap: wrap;
}

/* Form Controls */
.team-gen-field-group {
    margin-bottom: 22px;
}
.team-gen-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color, #f8fafc);
    margin-bottom: 8px;
}
.team-gen-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.team-gen-input:focus {
    outline: none;
    border-color: #0284c7;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}
.team-gen-textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.93rem;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.team-gen-textarea:focus {
    outline: none;
    border-color: #0284c7;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}
.team-gen-help-text {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 6px;
}

/* Tombol Generate Utama (Sesuai Image 1 & 2) */
.team-gen-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0 16px 0;
}
.btn-generate-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 64px;
    min-width: 220px;
    border-radius: 9999px;
    background: #0066ff;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}
.btn-generate-team:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.55);
}
.btn-generate-team:active {
    transform: translateY(0);
}

/* Container Hasil Tim (Sesuai Image 2) */
.team-results-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 24px;
    margin-top: 36px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.team-results-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.team-results-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.team-results-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color, #f8fafc);
    margin: 0;
}
.team-results-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-team-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color, #f8fafc);
}
.btn-team-action:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

/* Grid Kolom Tim (Persis Image 2) */
.team-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
}
.team-column-box {
    padding: 20px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 140px;
    background: rgba(15, 23, 42, 0.4);
    transition: background 0.2s ease;
}
.team-column-box:hover {
    background: rgba(56, 189, 248, 0.04);
}
.team-column-header {
    margin-bottom: 12px;
}
.team-column-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color, #f8fafc);
    margin: 0;
    letter-spacing: -0.01em;
}
.team-column-members-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #cbd5e1;
    word-break: break-word;
}
.team-column-members-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.team-member-item {
    font-size: 0.88rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.team-member-item::before {
    content: "•";
    color: #38bdf8;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Light Mode Overrides */
body.light-theme .team-gen-card,
body.light-theme .team-results-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
body.light-theme .team-gen-title,
body.light-theme .team-results-title,
body.light-theme .team-gen-label,
body.light-theme .team-column-title {
    color: #0f172a;
}
body.light-theme .team-gen-input,
body.light-theme .team-gen-textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-theme .team-columns-grid {
    border-color: #e2e8f0;
    background: #ffffff;
}
body.light-theme .team-column-box {
    background: #ffffff;
    border-color: #e2e8f0;
}
body.light-theme .team-column-box:hover {
    background: #f0f9ff;
}
body.light-theme .team-column-members-text,
body.light-theme .team-member-item {
    color: #334155;
}
body.light-theme .team-gen-source-wrapper {
    background: #f8fafc;
    border-color: #e2e8f0;
}
body.light-theme .btn-team-action {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

/* =========================================================================
   SPINNER WHEEL (RODA PUTAR SISWA) STYLING
   ========================================================================= */

.spinner-wheel-container-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.spinner-wheel-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(340px, 1fr);
    gap: 32px;
    align-items: start;
}

/* Kolom Kiri: Stage Roda */
.spinner-wheel-stage-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wheel-stage-wrapper {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.wheel-canvas-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.12);
    cursor: pointer;
    touch-action: none;
    transition: filter 0.2s ease;
    user-select: none;
}
#wheelCanvas:hover {
    filter: brightness(1.03);
}

/* Center Hub Button */
.wheel-center-hub-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e8f0 60%, #94a3b8 100%);
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.8), inset 0 -2px 5px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.wheel-center-hub-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.9);
}
.wheel-center-hub-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}
.wheel-hub-icon {
    font-size: 1.1rem;
    color: #0284c7;
    margin-left: 2px;
}
.wheel-hub-text {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0f172a;
    line-height: 1;
    margin-top: 2px;
}

/* Jarum Penunjuk (Ticker Pointer di Arah Jam 3) */
.wheel-pointer-triangle {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-right: 38px solid #581c87;
    filter: drop-shadow(-3px 2px 6px rgba(0, 0, 0, 0.5));
    z-index: 12;
    pointer-events: none;
    transition: transform 0.08s ease-out;
    transform-origin: right center;
}
.wheel-pointer-triangle::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -14px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 32px solid #a855f7;
}
.wheel-pointer-triangle.tick-bounce {
    transform: translateY(-50%) rotate(-12deg);
}

/* Bilah Aksi di Bawah Roda */
.wheel-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-spin-wheel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 40px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0284c7, #0066ff);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 102, 255, 0.45);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}
.btn-spin-wheel-cta:hover {
    background: linear-gradient(135deg, #0369a1, #0052cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.6);
}
.btn-spin-wheel-cta:active {
    transform: translateY(0);
}
.btn-spin-wheel-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wheel-quick-ctrls {
    display: flex;
    gap: 8px;
}
.btn-wheel-icon-ctrl {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-color, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-wheel-icon-ctrl:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

/* Kolom Kanan: Kontrol Entri */
.spinner-controls-stage-col {
    display: flex;
    flex-direction: column;
}

.spinner-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}
.spinner-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.15));
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.spinner-panel-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color, #f8fafc);
    margin: 0 0 2px 0;
}
.spinner-panel-desc {
    font-size: 0.84rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

.wheel-entries-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.wheel-entries-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wheel-entries-count-badge {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.wheel-entries-btn-group {
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-wheel-tool {
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color, #f8fafc);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-wheel-tool:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}
.btn-wheel-tool.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.wheel-entries-input {
    width: 100%;
    min-height: 220px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.wheel-entries-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

/* Riwayat Pemenang Roda */
.wheel-winners-history-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.wheel-winners-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}
.btn-clear-history {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0 4px;
}
.btn-clear-history:hover {
    text-decoration: underline;
}
.wheel-winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 90px;
    overflow-y: auto;
}
.wheel-winner-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #fef08a;
    font-size: 0.78rem;
    font-weight: 600;
}

/* =========================================================================
   MODAL PEMENANG SPINNER WHEEL & KONFETI
   ========================================================================= */
.wheel-winner-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw;
    max-height: 100vh;
    background: rgba(5, 9, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeInModal 0.25s ease-out;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wheel-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100000;
}

.wheel-winner-card {
    position: relative;
    z-index: 100001;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1.5px solid rgba(234, 179, 8, 0.4);
    border-radius: 24px;
    padding: 36px 32px 32px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(234, 179, 8, 0.25);
    animation: popWinnerCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popWinnerCard {
    from { transform: scale(0.7) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.wheel-winner-trophy-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.wheel-winner-trophy-glow {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.45) 0%, transparent 70%);
    animation: pulseGlow 1.8s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}
.wheel-winner-trophy-icon {
    font-size: 3.8rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    animation: floatTrophy 2s ease-in-out infinite;
}
@keyframes floatTrophy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.wheel-winner-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #fef08a;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.wheel-winner-name {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 40%, #fef08a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
}

.wheel-winner-sub {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 28px 0;
}

.wheel-winner-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-winner-remove {
    flex: 1;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-winner-remove:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-winner-keep {
    flex: 1;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #0284c7;
    border: 1.5px solid #38bdf8;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}
.btn-winner-keep:hover {
    background: #0369a1;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
}

/* Light Theme Overrides */
body.light-theme .spinner-wheel-container-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
body.light-theme .spinner-panel-title {
    color: #0f172a;
}
body.light-theme .wheel-entries-input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-theme .wheel-winners-history-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}
body.light-theme .btn-wheel-icon-ctrl,
body.light-theme .btn-wheel-tool {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
body.light-theme .wheel-winner-card {
    background: #ffffff;
    border-color: #cbd5e1;
}
body.light-theme .wheel-winner-name {
    background: none;
    -webkit-text-fill-color: initial;
    color: #0f172a;
}

/* Mode Fullscreen Spinner Wheel */
.spinner-wheel-container-card:fullscreen,
.spinner-wheel-container-card:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0f172a !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 24px 32px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .spinner-wheel-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wheel-canvas-box {
        max-width: 380px;
    }
    .wheel-center-hub-btn {
        width: 72px;
        height: 72px;
    }
    .wheel-pointer-triangle {
        border-top: 14px solid transparent;
        border-bottom: 14px solid transparent;
        border-right: 30px solid #581c87;
        right: -10px;
    }
    .wheel-pointer-triangle::after {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 25px solid #a855f7;
        right: -30px;
        top: -10px;
    }
}
@media (max-width: 768px) {
    .spinner-wheel-container-card {
        padding: 20px 16px;
    }
    .btn-spin-wheel-cta {
        width: 100%;
    }
    .wheel-canvas-box {
        max-width: 320px;
    }
    .team-gen-card {
        padding: 22px 16px;
    }
    .team-columns-grid {
        grid-template-columns: 1fr;
    }
    .team-column-box {
        border-right: none;
    }
    .btn-generate-team {
        width: 100%;
        padding: 13px 20px;
    }
}

/* =========================================================================
   LIVE WORD CLOUD (MENTIMETER STYLE) STYLING - MODERN GLASSMORPHISM DESIGN
   ========================================================================= */

.wordcloud-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Sub-nav Mode Switcher Capsule (Host Presentation vs Join Audience) */
.wc-mode-switcher-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.wc-mode-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 9999px;
    padding: 5px;
    gap: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.wc-mode-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.wc-mode-pill-btn i {
    font-size: 0.95rem;
}
.wc-mode-pill-btn:not(.active):hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}
.wc-mode-pill-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

/* =========================================================================
   CARD & FORM DESIGN (HOST CREATION SCREEN & AUDIENCE VIEW)
   ========================================================================= */

.wc-card-voting {
    background: linear-gradient(160deg, rgba(22, 33, 56, 0.88) 0%, rgba(13, 20, 36, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 24px;
    padding: 32px 34px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
}
.wc-card-voting.wc-create-card {
    max-width: 680px;
    margin: 0 auto 24px auto;
}

.wc-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.wc-header-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.15));
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.5rem;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}
.wc-header-text {
    flex: 1;
}
.wc-card-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}
.wc-card-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.45;
}

.wc-form-group {
    margin-bottom: 18px;
}
.wc-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.wc-response-input-field {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    font-size: 0.96rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.wc-response-input-field:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.95);
}
.wc-response-input-field::placeholder {
    color: #64748b;
}

/* Control Row: Select Dropdown & CTA Button with matching 48px height */
.wc-create-controls-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 18px;
}
.wc-select-control-wrap {
    flex: 1;
    min-width: 200px;
}
.wc-custom-select-box {
    position: relative;
    width: 100%;
}
.wc-select-input {
    width: 100%;
    height: 48px;
    padding: 0 38px 0 16px;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.94rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.wc-select-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.95);
}
.wc-select-input option {
    background: #0f172a;
    color: #f8fafc;
    padding: 8px;
}
.wc-custom-chevron {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    font-size: 0.85rem;
}
.wc-btn-create-wrap {
    flex-shrink: 0;
}
.btn-wc-create-primary {
    height: 48px;
    padding: 0 26px;
    border-radius: 13px;
    font-size: 0.96rem;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    white-space: nowrap;
}
.btn-wc-create-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55);
    filter: brightness(1.08);
}
.btn-wc-create-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Previous Sessions Section */
.wc-previous-sessions-box {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wc-prev-sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.wc-prev-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 7px;
}
.btn-wc-refresh-sm {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-wc-refresh-sm:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.wc-host-room-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wc-sessions-empty-state {
    padding: 22px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
    font-size: 0.86rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wc-sessions-empty-state i {
    font-size: 1.6rem;
    color: #38bdf8;
    opacity: 0.8;
    margin-bottom: 2px;
}
.wc-sessions-empty-state.error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.wc-sessions-empty-state.error i {
    color: #ef4444;
}

/* Session Item Row */
.wc-room-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    gap: 14px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}
.wc-room-item-row:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(20, 31, 54, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.wc-room-info-cell {
    flex: 1;
    min-width: 200px;
}
.wc-room-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.wc-room-pin-chip {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 9px;
    border-radius: 7px;
    letter-spacing: 0.06em;
}
.wc-room-status-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 9999px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.wc-room-status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.wc-room-status-badge.locked {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.wc-room-stats-label {
    font-size: 0.78rem;
    color: #94a3b8;
}
.wc-room-topic-label {
    font-weight: 700;
    font-size: 0.94rem;
    color: #f8fafc;
    line-height: 1.35;
}
.wc-room-date-label {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 3px;
}
.wc-room-actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-wc-stage-launch {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}
.btn-wc-stage-launch:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}
.btn-wc-delete-session {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}
.btn-wc-delete-session:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* =========================================================================
   STAGE PRESENTATION VIEW (MENTIMETER PROYEKSI BESAR)
   ========================================================================= */

.wc-presentation-stage {
    background: linear-gradient(160deg, rgba(20, 29, 49, 0.92) 0%, rgba(11, 17, 32, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 24px;
    padding: 26px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Stage Header: Topic & PIN Callout */
.wc-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.wc-topic-info {
    flex: 1;
    min-width: 280px;
}
.wc-topic-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 6px 0 0 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* PIN Callout Box (Glow Cyan Banner) */
.wc-pin-callout-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(15, 23, 42, 0.8));
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 16px;
    padding: 10px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(56, 189, 248, 0.15);
}
.wc-pin-instruction {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.wc-pin-number-badge {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.65);
    user-select: all;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.wc-pin-number-badge:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: scale(1.03);
}

/* Stage Toolbar */
.wc-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    flex-wrap: wrap;
}
.btn-wc-action {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-wc-action:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    transform: translateY(-1px);
}
.btn-wc-action.primary {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}
.btn-wc-action.primary:hover {
    background: #0369a1;
}
.btn-wc-action.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}
.btn-wc-action.danger:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Stage Viewport (Spiral Word Cloud Canvas) */
.wc-cloud-viewport {
    width: 100%;
    min-height: 480px;
    height: 520px;
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.7) 0%, rgba(10, 16, 30, 0.95) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Animated Word Items */
.wc-word-item {
    position: absolute;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), font-size 0.4s ease, opacity 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 8px;
}
.wc-word-item:hover {
    transform: scale(1.18) !important;
    z-index: 100 !important;
    text-shadow: 0 4px 18px currentColor;
    background: rgba(255, 255, 255, 0.1);
}
.wc-word-item.pop-anim {
    animation: wordPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes wordPopIn {
    0% { transform: scale(0.2); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Empty State Placeholder in Cloud Viewport */
.wc-empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 30px;
    color: #94a3b8;
}
.wc-empty-icon {
    font-size: 3.5rem;
    color: #38bdf8;
    opacity: 0.7;
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Stage Footer Status */
.wc-stage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 10px;
}
.wc-live-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-weight: 700;
}

/* =========================================================================
   AUDIENCE VIEW (SISWA / PESERTA KIRIM KATA)
   ========================================================================= */

.wc-audience-container {
    max-width: 520px;
    margin: 0 auto;
}
.wc-pin-input-field {
    width: 100%;
    max-width: 320px;
    height: 56px;
    margin: 0 auto;
    display: block;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.25em;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.wc-pin-input-field:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.25), 0 0 20px rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.btn-wc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid rgba(56, 189, 248, 0.4);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}
.btn-wc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55);
    filter: brightness(1.08);
}
.btn-wc-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Audience active room selection button card */
.wc-audience-room-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.wc-audience-room-card-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}
.wc-audience-room-btn-info {
    flex: 1;
}
.wc-audience-room-pin-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #38bdf8;
    font-family: 'Consolas', monospace;
    letter-spacing: 0.06em;
}
.wc-audience-room-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 3px;
}
.wc-audience-room-host {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
}
.wc-audience-room-btn-action {
    color: #38bdf8;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Chips of submitted responses */
.wc-my-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.wc-my-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================================================
   MODALS: RESPONDEN & FREKUENSI
   ========================================================================= */

.wc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 9, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.wc-modal-card {
    background: linear-gradient(145deg, rgba(26, 36, 60, 0.98), rgba(13, 20, 36, 0.98));
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.wc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wc-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wc-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}
.wc-modal-close-btn:hover {
    color: #ffffff;
}
.wc-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* Tabel Frekuensi */
.wc-freq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.wc-freq-table th, .wc-freq-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wc-freq-table th {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.wc-freq-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wc-freq-bar-bg {
    flex: 1;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.wc-freq-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
}

/* Responden Items */
.wc-resp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
    gap: 12px;
}
.wc-resp-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wc-resp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.wc-resp-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
}
.wc-resp-meta {
    font-size: 0.78rem;
    color: #94a3b8;
}
.wc-resp-word-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.88rem;
}

/* =========================================================================
   FULLSCREEN MODE FOR WORD CLOUD STAGE (CROSS-BROWSER & FALLBACK)
   ========================================================================= */

.wc-presentation-stage.is-stage-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 20px 24px !important;
    background: #090d16 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    backdrop-filter: none !important;
    z-index: 999999 !important;
}
.wc-presentation-stage:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 30px 48px !important;
    background: #090d16 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    backdrop-filter: none !important;
    z-index: 2147483647 !important;
}
.wc-presentation-stage:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 30px 48px !important;
    background: #090d16 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    backdrop-filter: none !important;
    z-index: 2147483647 !important;
}
.wc-presentation-stage.is-stage-fullscreen .wc-cloud-viewport {
    height: calc(100vh - 200px) !important;
    min-height: 360px !important;
}
.wc-presentation-stage:fullscreen .wc-cloud-viewport {
    height: calc(100vh - 220px) !important;
    min-height: 500px !important;
}
.wc-presentation-stage:-webkit-full-screen .wc-cloud-viewport {
    height: calc(100vh - 220px) !important;
    min-height: 500px !important;
}
.wc-presentation-stage.is-stage-fullscreen .wc-topic-title {
    font-size: 1.6rem !important;
}
.wc-presentation-stage:fullscreen .wc-topic-title {
    font-size: 2.2rem !important;
}
.wc-presentation-stage:-webkit-full-screen .wc-topic-title {
    font-size: 2.2rem !important;
}

/* =========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================= */

body.light-theme .wc-mode-switcher {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
body.light-theme .wc-mode-pill-btn {
    color: #64748b;
}
body.light-theme .wc-mode-pill-btn:not(.active):hover {
    color: #0f172a;
    background: #e2e8f0;
}
body.light-theme .wc-presentation-stage,
body.light-theme .wc-card-voting,
body.light-theme .wc-modal-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
body.light-theme .wc-card-title,
body.light-theme .wc-topic-title,
body.light-theme .wc-modal-title,
body.light-theme .wc-resp-name {
    color: #0f172a;
}
body.light-theme .wc-card-subtitle,
body.light-theme .wc-prev-title,
body.light-theme .wc-form-label {
    color: #475569;
}
body.light-theme .wc-response-input-field,
body.light-theme .wc-select-input,
body.light-theme .wc-pin-input-field {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-theme .wc-select-input option {
    background: #ffffff;
    color: #0f172a;
}
body.light-theme .wc-cloud-viewport {
    background: radial-gradient(circle at center, #f8fafc 0%, #edf2f7 100%);
    border-color: #e2e8f0;
}
body.light-theme .wc-pin-callout-box {
    background: #f0f9ff;
    border-color: #bae6fd;
}
body.light-theme .wc-pin-instruction {
    color: #0369a1;
}
body.light-theme .btn-wc-action,
body.light-theme .btn-wc-refresh-sm {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
body.light-theme .wc-room-item-row,
body.light-theme .wc-audience-room-card-btn,
body.light-theme .wc-resp-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}
body.light-theme .wc-room-topic-label,
body.light-theme .wc-audience-room-title {
    color: #0f172a;
}
body.light-theme .wc-sessions-empty-state {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

/* =========================================================================
   LIVE WORD CLOUD RESPONSIVE & MOBILE DESIGN (<= 768px & <= 480px)
   ========================================================================= */

@media (max-width: 768px) {
    .wordcloud-container {
        gap: 16px;
    }
    
    /* Mode Switcher on Mobile */
    .wc-mode-switcher-wrap {
        margin-bottom: 16px;
        width: 100%;
    }
    .wc-mode-switcher {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        gap: 4px;
        padding: 4px;
    }
    .wc-mode-pill-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 8px;
        font-size: 0.82rem;
        gap: 6px;
        white-space: nowrap;
    }
    .wc-mode-pill-btn i {
        font-size: 0.85rem;
    }

    /* Cards */
    .wc-card-voting {
        padding: 20px 16px;
        border-radius: 20px;
    }
    .wc-card-header {
        gap: 12px;
        margin-bottom: 16px;
    }
    .wc-header-icon-box {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.3rem;
        border-radius: 12px;
    }
    .wc-card-title {
        font-size: 1.15rem;
    }
    .wc-card-subtitle {
        font-size: 0.8rem;
    }

    /* Create Room Form Controls */
    .wc-create-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 14px;
    }
    .wc-select-control-wrap {
        width: 100%;
        min-width: 100%;
    }
    .wc-btn-create-wrap {
        width: 100%;
    }
    .btn-wc-create-primary {
        width: 100%;
        justify-content: center;
        height: 46px;
        font-size: 0.92rem;
    }

    /* Host Session List on Mobile */
    .wc-room-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }
    .wc-room-info-cell {
        min-width: 100%;
    }
    .wc-room-actions-cell {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }
    .btn-wc-stage-launch {
        flex: 1;
        justify-content: center;
    }

    /* Stage Presentation View on Mobile */
    .wc-presentation-stage {
        padding: 16px 12px;
        border-radius: 18px;
    }
    .wc-stage-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .wc-topic-info {
        min-width: 100%;
    }
    .wc-topic-title {
        font-size: 1.25rem;
        line-height: 1.35;
    }
    .wc-pin-callout-box {
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 14px;
        border-radius: 14px;
    }
    .wc-pin-number-badge {
        font-size: 1.8rem;
        letter-spacing: 0.12em;
        text-align: center;
    }

    /* Actions Toolbar on Mobile */
    .wc-actions-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 8px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .btn-wc-action {
        height: 34px;
        padding: 0 10px;
        font-size: 0.78rem;
        gap: 5px;
        flex-shrink: 0;
    }
    .btn-wc-action[onclick*="exitStage"] {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
        order: 99;
    }

    /* Cloud Viewport on Mobile */
    .wc-cloud-viewport {
        height: 380px;
        min-height: 340px;
        border-radius: 16px;
    }
    .wc-empty-placeholder {
        padding: 18px 12px;
    }
    .wc-empty-icon {
        font-size: 2.8rem;
    }

    /* Stage Footer on Mobile */
    .wc-stage-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }
    .wc-stage-footer > div {
        justify-content: center;
        flex-wrap: wrap;
    }
    .wc-live-counter-badge {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    /* Audience View on Mobile */
    .wc-audience-container {
        padding: 0;
        max-width: 100%;
    }
    .wc-pin-input-field {
        max-width: 100%;
        height: 52px;
        font-size: 1.7rem;
        letter-spacing: 0.2em;
    }
    .btn-wc-submit {
        height: 46px;
        font-size: 0.94rem;
        border-radius: 12px;
    }
    .wc-audience-room-card-btn {
        padding: 10px 12px;
        gap: 10px;
    }

    /* Modals on Mobile */
    .wc-modal-overlay {
        padding: 12px;
    }
    .wc-modal-card {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        border-radius: 18px;
    }
    .wc-modal-header {
        padding: 14px 16px;
    }
    .wc-modal-title {
        font-size: 1.05rem;
    }
    .wc-modal-body {
        padding: 14px 16px;
    }
    .wc-freq-table th, .wc-freq-table td {
        padding: 8px 8px;
        font-size: 0.82rem;
    }
    .wc-resp-item {
        padding: 8px 10px;
        gap: 8px;
    }
    .wc-resp-name {
        font-size: 0.85rem;
    }
    .wc-resp-meta {
        font-size: 0.72rem;
    }
    .wc-resp-word-badge {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .wc-mode-pill-btn {
        font-size: 0.75rem;
        padding: 7px 6px;
    }
    .wc-mode-pill-btn i {
        display: none;
    }
    .wc-pin-number-badge {
        font-size: 1.6rem;
    }
    .wc-cloud-viewport {
        height: 320px;
        min-height: 300px;
    }
    
    /* Global Custom Alert Dialog Mobile Polish */
    .custom-alert-box {
        padding: 22px 18px !important;
        border-radius: 20px !important;
        max-width: 92vw !important;
    }
    .custom-alert-title {
        font-size: 1.15rem !important;
    }
    .custom-alert-message {
        font-size: 0.86rem !important;
        margin-bottom: 18px !important;
    }
    .custom-alert-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .custom-alert-actions .custom-alert-btn {
        width: 100% !important;
    }
}

/* =========================================================================
   VIEWBOARD INTERACTIVE PRESENTATION STUDIO STYLING
   ========================================================================= */

.vb-studio-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 165px);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* Presentation & Workspace Fullscreen Mode (Separated rules so no browser invalidates the selector list) */
.vb-studio-wrapper.is-fullscreen-studio,
.vb-studio-wrapper.is-presenting {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    background: #0f172a !important;
}
.vb-studio-wrapper:fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 2147483647 !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    background: #0f172a !important;
}
.vb-studio-wrapper:-webkit-full-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 2147483647 !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    background: #0f172a !important;
}

/* Top Navigation Bar */
.vb-top-bar {
    height: 48px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    z-index: 40;
    flex-shrink: 0;
}
.vb-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vb-brand-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: -0.01em;
}
.vb-brand-accent {
    color: #f8fafc;
}
.vb-badge-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-left: 2px;
}
.vb-deck-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 5px 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
}
.vb-deck-title {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vb-deck-rename-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.vb-deck-rename-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.vb-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vb-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.vb-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vb-btn-accent:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.vb-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vb-btn-icon:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.btn-vb-present {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.4);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}
.btn-vb-present:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* Theme Dropdown */
.vb-dropdown-wrap {
    position: relative;
}
.vb-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 190px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 6px;
    z-index: 70;
}
.vb-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}
.vb-dropdown-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}
.vb-theme-preview {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}
.vb-bg-white-preview { background-color: #ffffff; }
.vb-bg-grid-preview {
    background-color: #ffffff;
    background-size: 6px 6px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 1px, transparent 1px);
}
.vb-bg-ruled-preview {
    background-color: #fcfbf7;
    background-size: 100% 6px;
    background-image: linear-gradient(to bottom, rgba(70, 130, 180, 0.5) 1px, transparent 1px);
}
.vb-bg-dotted-preview {
    background-color: #ffffff;
    background-size: 6px 6px;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.4) 1px, transparent 1px);
}
.vb-bg-blackboard-preview {
    background-color: #1a2721;
}

/* Stage Viewport */
.vb-stage-viewport {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Board Container & Background Patterns */
.vb-board-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: crosshair;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.vb-bg-white {
    background-color: #ffffff !important;
}
.vb-bg-grid {
    background-color: #ffffff !important;
    background-size: 32px 32px !important;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px) !important;
}
.vb-bg-ruled {
    background-color: #fcfbf7 !important;
    background-size: 100% 36px !important;
    background-image: linear-gradient(to bottom, rgba(70, 130, 180, 0.25) 1px, transparent 1px) !important;
}
.vb-bg-dotted {
    background-color: #ffffff !important;
    background-size: 28px 28px !important;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.18) 1.5px, transparent 1.5px) !important;
}
.vb-bg-blackboard {
    background-color: #1a2721 !important;
    background-size: 40px 40px !important;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px) !important;
}

/* Canvas & Layers */
#vbPaintCanvas {
    position: absolute;
    top: 0;
    left: 0;
    touch-action: none;
}
.vb-elements-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}
.vb-laser-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

/* Laser Dot Animation */
.vb-laser-point {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, #ff2e63 35%, rgba(255, 46, 99, 0) 80%);
    transform: translate(-50%, -50%);
    z-index: 999;
    animation: vbLaserFade 0.6s linear forwards;
}
@keyframes vbLaserFade {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
}

/* Sticky Notes */
.vb-sticky-note {
    position: absolute;
    width: 200px;
    min-height: 155px;
    padding: 12px;
    box-shadow: 0 10px 24px -3px rgba(0, 0, 0, 0.22), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.25rem;
    border-radius: 6px;
    cursor: move;
    z-index: 25;
    pointer-events: auto;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}
.vb-sticky-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 6px;
    cursor: move;
}
.vb-sticky-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    color: #475569;
    letter-spacing: 0.05em;
}
.vb-sticky-del-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}
.vb-sticky-del-btn:hover {
    color: #ef4444;
}
.vb-sticky-note textarea {
    width: 100%;
    height: 110px;
    background: transparent;
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: #1e293b;
    line-height: 1.35;
    pointer-events: auto;
    user-select: text;
    box-sizing: border-box;
}

/* Interactive Text Boxes */
.vb-text-box-element {
    position: absolute;
    padding: 6px 12px;
    cursor: move;
    min-width: 80px;
    border: 1.5px dashed transparent;
    z-index: 25;
    pointer-events: auto;
    border-radius: 6px;
    user-select: none;
}
.vb-text-box-element:hover,
.vb-text-box-element.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
}
.vb-text-box-element div[contenteditable="true"] {
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: text;
    font-family: 'Inter', sans-serif;
}
.vb-text-del-btn {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.vb-text-box-element:hover .vb-text-del-btn {
    display: flex;
}

/* Slide Sorter Drawer */
.vb-slide-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 270px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.45);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 45;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.vb-slide-drawer.closed {
    transform: translateX(-100%);
}
.vb-drawer-header {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vb-drawer-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 7px;
}
.vb-drawer-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}
.vb-drawer-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
.vb-thumbnails-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vb-thumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}
.vb-thumb-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(255, 255, 255, 0.08);
}
.vb-thumb-item.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.vb-thumb-idx {
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    width: 24px;
    text-align: center;
}
.vb-thumb-item.active .vb-thumb-idx {
    color: #38bdf8;
}
.vb-thumb-preview {
    flex: 1;
    height: 52px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #64748b;
    overflow: hidden;
}
.vb-drawer-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    gap: 8px;
}
.vb-btn-add-slide-lg {
    flex: 1;
    height: 36px;
    border-radius: 10px;
    background: #0284c7;
    border: 1px solid #38bdf8;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.vb-btn-add-slide-lg:hover {
    background: #0369a1;
}
.vb-btn-del-slide {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.vb-btn-del-slide:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Floating Docks (myViewBoard Style) */
.vb-dock-pill {
    position: absolute;
    bottom: 20px;
    z-index: 35;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.22), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    display: flex;
    align-items: center;
}

/* Page Navigation Dock (Bottom-Left) */
.vb-page-dock {
    left: 20px;
    padding: 5px 8px;
    gap: 3px;
}
.vb-page-counter {
    padding: 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Consolas', monospace;
    color: #1e293b;
    letter-spacing: 0.05em;
}

/* Main Tools Dock (Bottom-Center) */
.vb-main-dock {
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    gap: 5px;
}

/* Zoom Dock (Bottom-Right) */
.vb-zoom-dock {
    right: 20px;
    padding: 5px 8px;
    gap: 3px;
}
.vb-zoom-badge {
    padding: 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Consolas', monospace;
    color: #334155;
    min-width: 44px;
    text-align: center;
}

/* Dock Elements & Buttons */
.vb-dock-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s ease;
}
.vb-dock-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}
.vb-dock-btn.text-accent {
    color: #2563eb;
    font-weight: 700;
}
.vb-dock-btn.text-accent:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.vb-dock-divider {
    width: 1px;
    height: 18px;
    background: #cbd5e1;
    margin: 0 3px;
}

/* Main Tool Buttons */
.vb-tool-anchor {
    position: relative;
}
.vb-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.vb-tool-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-2px);
}
.vb-tool-btn.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: inset 0 0 0 1.5px #3b82f6 !important;
}
.vb-tool-btn:active {
    transform: scale(0.95);
}
.vb-pen-color-dot {
    position: absolute;
    bottom: 3px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid #ffffff;
}

/* Tool Submenu Popovers */
.vb-popover {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 12px;
    width: 220px;
    z-index: 60;
    box-sizing: border-box;
}
.vb-popover-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}
.vb-popover-row strong {
    color: #0f172a;
}
.vb-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    accent-color: #2563eb;
}
.vb-color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 6px;
}
.vb-color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease;
    padding: 0;
}
.vb-color-circle:hover {
    transform: scale(1.15);
    border-color: #3b82f6;
}
.vb-highlighter-palette {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.vb-popover-btn {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}
.vb-popover-btn:hover {
    background: #f1f5f9;
}
.vb-popover-btn.danger {
    color: #ef4444;
}
.vb-popover-btn.danger:hover {
    background: #fef2f2;
}

/* Shapes Grid in Popover */
.vb-shapes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.vb-shape-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font-size: 0.72rem;
    gap: 5px;
    transition: all 0.15s ease;
}
.vb-shape-item i {
    font-size: 1.15rem;
}
.vb-shape-item:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

/* Fullscreen Presenter Dock */
.vb-presenter-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483647;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}
.vb-pres-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
.vb-pres-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}
.vb-pres-counter {
    font-family: 'Consolas', monospace;
    font-weight: 800;
    font-size: 0.88rem;
    color: #f8fafc;
    letter-spacing: 0.06em;
    padding: 0 4px;
}
.vb-pres-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
}
.vb-pres-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.vb-pres-tool-btn:hover,
.vb-pres-tool-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}
.vb-pres-exit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-left: 4px;
}
.vb-pres-exit-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Light Theme Overrides for ViewBoard */
body.light-theme .vb-studio-wrapper {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
body.light-theme .vb-top-bar {
    background: rgba(248, 250, 252, 0.95);
    border-color: #e2e8f0;
}
body.light-theme .vb-brand-accent {
    color: #0f172a;
}
body.light-theme .vb-deck-tab {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-theme .vb-btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
body.light-theme .vb-btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}
body.light-theme .vb-btn-icon {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
body.light-theme .vb-slide-drawer {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e2e8f0;
}
body.light-theme .vb-drawer-header {
    border-color: #e2e8f0;
}
body.light-theme .vb-drawer-title {
    color: #0f172a;
}
body.light-theme .vb-thumb-item {
    border-color: #e2e8f0;
    background: #f8fafc;
}
body.light-theme .vb-drawer-footer {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* =========================================================================
   VIEWBOARD STUDIO RESPONSIVE & MOBILE DESIGN (<= 900px, <= 768px, <= 480px)
   ========================================================================= */

@media (max-width: 900px) {
    .vb-deck-tab {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .vb-studio-wrapper {
        height: calc(100vh - 140px);
        min-height: 520px;
        border-radius: 16px;
    }
    .vb-studio-wrapper.is-fullscreen-studio,
    .vb-studio-wrapper.is-presenting {
        height: 100vh !important;
        min-height: 100vh !important;
        border-radius: 0 !important;
    }

    /* Top Bar Mobile Polish */
    .vb-top-bar {
        height: 46px;
        padding: 0 8px;
        gap: 6px;
    }
    .vb-top-left {
        gap: 6px;
    }
    .vb-brand-badge {
        font-size: 0.85rem;
        gap: 4px;
    }
    .vb-badge-pill {
        display: none;
    }
    .vb-top-right {
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .vb-top-right::-webkit-scrollbar {
        display: none;
    }
    .vb-btn-secondary,
    .vb-btn-accent,
    .btn-vb-present {
        padding: 6px 9px;
        font-size: 0.78rem;
        gap: 4px;
    }
    /* Hide button text on mobile to ensure all 7 buttons fit neatly */
    .vb-btn-secondary span,
    .vb-btn-accent span,
    .btn-vb-present span {
        display: none;
    }
    .vb-btn-secondary i,
    .vb-btn-accent i,
    .btn-vb-present i {
        font-size: 0.92rem;
        margin: 0;
    }

    /* Floating Docks on Mobile: Clean 2-Tier Stack */
    /* Tier 1: Main Tools (Bottom-most at 8px, horizontally scrollable) */
    .vb-main-dock {
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100% - 16px) !important;
        width: max-content !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 6px !important;
        gap: 2px !important;
        border-radius: 14px !important;
        z-index: 38 !important;
    }
    .vb-main-dock::-webkit-scrollbar {
        display: none;
    }
    .vb-tool-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.88rem !important;
        flex-shrink: 0 !important;
        border-radius: 9px !important;
    }
    .vb-dock-divider {
        height: 16px !important;
        margin: 0 1px !important;
    }

    /* Tier 2: Slide Navigation (Left at 54px) & Zoom/Fullscreen (Right at 54px) */
    .vb-page-dock {
        bottom: 54px !important;
        left: 8px !important;
        padding: 3px 6px !important;
        gap: 2px !important;
        border-radius: 12px !important;
        z-index: 37 !important;
    }
    .vb-page-dock .vb-dock-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.78rem !important;
    }
    .vb-page-counter {
        font-size: 0.72rem !important;
        min-width: 32px !important;
        padding: 0 2px !important;
    }

    .vb-zoom-dock {
        bottom: 54px !important;
        right: 8px !important;
        padding: 3px 6px !important;
        gap: 2px !important;
        border-radius: 12px !important;
        z-index: 37 !important;
    }
    .vb-zoom-dock .vb-dock-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.78rem !important;
    }
    .vb-zoom-badge {
        font-size: 0.7rem !important;
        min-width: 34px !important;
        padding: 0 2px !important;
    }

    /* Tool Popovers Fixed on Mobile (so dock scrolling doesn't clip them) */
    .vb-popover {
        position: fixed !important;
        bottom: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: min(290px, 92vw) !important;
        max-width: 92vw !important;
        z-index: 999 !important;
        border-radius: 16px !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    }

    /* Slide Sorter Drawer on Mobile */
    .vb-slide-drawer {
        width: 82vw !important;
        max-width: 280px !important;
        z-index: 55 !important;
    }

    /* Sticky Notes & Textbox on Mobile */
    .vb-sticky-note {
        width: 140px !important;
        min-height: 120px !important;
        padding: 10px !important;
    }
    .vb-note-textarea {
        font-size: 0.95rem !important;
    }

    /* Presenter Dock on Mobile */
    .vb-presenter-dock {
        bottom: 14px !important;
        padding: 6px 12px !important;
        gap: 6px !important;
        max-width: 95vw !important;
    }
    .vb-pres-tool-btn,
    .vb-pres-exit-btn {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .vb-studio-wrapper {
        min-height: 480px;
    }
    .vb-top-bar {
        padding: 0 6px;
    }
    .vb-brand-badge span {
        font-size: 0.8rem;
    }
}

/* ========================================================================= */
/* SMART FACE RECOGNITION AI STYLES & ANIMATIONS                             */
/* ========================================================================= */
@keyframes pulseRing {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 6px rgba(56, 189, 248, 0.3);
        opacity: 1;
    }
    100% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
        opacity: 0.7;
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(8px);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.matched-student-pill {
    animation: popIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.2s ease;
}

.matched-student-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

