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

body,
html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000000;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
}

.svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
}

/* Double-Buffering Overlapping Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000000;
    /* No default CSS transition — animations are applied via JS classes */
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide.inactive {
    opacity: 0;
    z-index: 1;
}

/* =====================================================
   TRANSITION KEYFRAMES
   ===================================================== */

/* --- FADE --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* --- SLIDE LEFT (push from right) --- */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* --- SLIDE UP (push from bottom) --- */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutToTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* --- ZOOM IN --- */
@keyframes zoomIn {
    from {
        transform: scale(1.08);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.94);
        opacity: 0;
    }
}

/* --- GLITCH / FLASH CUT --- */
@keyframes glitchIn {
    0% {
        opacity: 0;
        filter: brightness(3) saturate(0);
        transform: scale(1.015) skewX(-2deg);
    }

    10% {
        opacity: 1;
        filter: brightness(2) saturate(0);
        transform: scale(1.01) skewX(1deg);
    }

    20% {
        opacity: 0;
        filter: brightness(3) saturate(0);
        transform: scale(1.02) skewX(-1deg);
    }

    35% {
        opacity: 1;
        filter: brightness(1.5) saturate(0.5);
        transform: scale(1.005) skewX(0.5deg);
    }

    55% {
        opacity: 1;
        filter: brightness(1.1) saturate(0.8);
        transform: scale(1) skewX(0);
    }

    100% {
        opacity: 1;
        filter: brightness(1) saturate(1);
        transform: scale(1) skewX(0);
    }
}

@keyframes glitchOut {
    0% {
        opacity: 1;
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }

    25% {
        opacity: 1;
        filter: brightness(2) saturate(0);
        transform: scale(1.01) skewX(2deg);
    }

    50% {
        opacity: 0;
        filter: brightness(3) saturate(0);
        transform: scale(0.99) skewX(-2deg);
    }

    100% {
        opacity: 0;
        filter: brightness(0);
    }
}

/* =====================================================
   TRANSITION HELPER CLASSES
   Applied transiently by JS during a swap
   ===================================================== */
.tx-duration {
    --tx-dur: 0.65s;
}

/* FADE */
.tx-fade-in {
    animation: fadeIn var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tx-fade-out {
    animation: fadeOut var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* SLIDE LEFT */
.tx-slide-left-in {
    animation: slideInFromRight var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tx-slide-left-out {
    animation: slideOutToLeft var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* SLIDE UP */
.tx-slide-up-in {
    animation: slideInFromBottom var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tx-slide-up-out {
    animation: slideOutToTop var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ZOOM IN */
.tx-zoom-in-in {
    animation: zoomIn var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tx-zoom-in-out {
    animation: zoomOut var(--tx-dur, 0.65s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* GLITCH */
.tx-glitch-in {
    animation: glitchIn 0.55s steps(1, end) forwards;
}

.tx-glitch-out {
    animation: glitchOut 0.45s steps(1, end) forwards;
}



.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000000;
}

.slide iframe {
    width: 100vw;
    height: 100vh;
    border: none;
    background-color: #ffffff;
}

/* Fallback Card Styling */
.fallback-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
    color: #f87171;
    padding: 2rem;
    text-align: center;
}

.fallback-card .error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.fallback-card h2 {
    font-size: 2rem;
    color: #f87171;
    margin-bottom: 0.5rem;
}

.fallback-card p {
    font-size: 1.25rem;
    color: #94a3b8;
}

/* Pairing Code Card Overlay */
.pairing-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1e1b4b 0%, #090d16 100%);
    transition: opacity 0.5s ease-in-out;
}

.pairing-card.hidden {
    opacity: 0;
    pointer-events: none;
}

.glass-box {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    max-width: 540px;
    width: 90%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo .icon {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.code-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}

.code-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #818cf8;
    margin-bottom: 0.5rem;
}

.code-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #ffffff;
}

/* QR Code block on pairing screen */
.pair-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#pair-qr-box {
    padding: 12px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35), 0 12px 40px rgba(0, 0, 0, 0.5);
    display: inline-block;
    animation: qrFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pair-qr-box canvas,
#pair-qr-box img {
    display: block;
    border-radius: 8px;
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pair-qr-label {
    font-size: 1rem;
    font-weight: 600;
    color: #818cf8;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    display: none;
}

.pair-qr-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
    flex-shrink: 0;
}

.screen-info {
    font-size: 0.9rem;
    color: #64748b;
}


.screen-info p {
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #a5b4fc;
    font-weight: 600;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6366f1;
}

.dot.pulse {
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Toast */
.toast {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    z-index: 200;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.toast.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Circular Slide Countdown Timer Overlay (Bottom Right) */
.slide-timer-container {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 95;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-timer-container.hidden {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 7.5;
}

.timer-progress {
    fill: none;
    stroke: #818cf8;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 113.1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear, stroke 0.4s ease;
}

.timer-text {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* Native World Clock Styling */
.native-clock-wrapper {
    width: 100vw;
    height: 100vh;
    background-color: #090d16;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.2) 0px, transparent 50%);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow: hidden;
}

.native-clock-header {
    text-align: center;
    margin-bottom: 3rem;
}

.native-clock-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #c084fc 0%, #6366f1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.native-clock-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.native-clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1500px;
}

.native-clock-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.native-clock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

.native-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.native-city-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.native-status-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.native-time-display {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1;
    text-shadow: 0 0 25px rgba(129, 140, 248, 0.4);
}

.native-date-display {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.native-utc-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ---------------------------------------------------- */
/* NATIVE MEETING MODE SLIDE STYLES                     */
/* ---------------------------------------------------- */
.native-meeting-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f172a 70%, #020617 100%);
    color: #f8fafc;
    padding: 3rem 4rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meeting-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;

}

.meeting-header-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meeting-header-desc {
    margin: 0.5rem 0 0 0;
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 400;
}

.meeting-progress-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #818cf8;
}

.meeting-subjects-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    scroll-behavior: smooth;
}

.meeting-subjects-container::-webkit-scrollbar {
    width: 8px;
}

.meeting-subjects-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.meeting-subjects-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.meeting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2.25rem;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.meeting-card-left {
    margin-right: 1.5rem;
}

.meeting-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 800;
    font-size: 1.1rem;
    color: #94a3b8;
}

.meeting-card-center {
    flex: 1;
}

.meeting-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #f8fafc;
}

.meeting-card-desc {
    margin: 0.35rem 0 0 0;
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.4;
}

.meeting-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    margin-left: 2rem;
}

.meeting-card-duration {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    display: none;
}

.meeting-card-status {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Completed Card */
.meeting-card-completed {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    opacity: 0.75;
}



.meeting-card-completed .meeting-card-status {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Active Card */
.meeting-card-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
    border: 2px solid #818cf8;
    transform: scale(1.02);
}

.meeting-header-meta {
    margin: auto 0;
}

.meeting-card-active .meeting-card-title {
    font-size: 1.85rem;
    color: #ffffff;

}

.meeting-card-active .meeting-card-status {
    background: #6366f1;
    color: #ffffff;

}

/* Pending Card */
.meeting-card-pending {
    opacity: 0.65;
}

.meeting-card-pending .meeting-card-status {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

/* =====================================================
   MEETING TIMER OVERLAY
   ===================================================== */

.meeting-timer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;

    /* Normal phase: transparent bg, compact widget centered */
    background: transparent;
    transition: background 0.6s ease;
}

.meeting-timer-overlay.hidden {
    display: none;
}

/* Inner card — compact pill in normal phase */
.meeting-timer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.6rem 3rem;
    border-radius: 24px;
    background: rgba(10, 12, 25, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(99, 102, 241, 0.45);
    transition:
        padding 0.5s ease,
        border-radius 0.5s ease,
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    min-width: 260px;
}

.meeting-timer-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #818cf8;
    text-transform: uppercase;
    transition: font-size 0.4s ease, color 0.4s ease;
}

.meeting-timer-display {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 0.04em;
    transition: font-size 0.4s ease, color 0.4s ease;
}

.meeting-timer-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    transition: height 0.4s ease;
}

.meeting-timer-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transform-origin: left center;
    transition: background 0.4s ease;
}

/* ---- PANIC MODE (last 10 seconds) ---- */

.meeting-timer-overlay.panic {
    background: rgba(180, 20, 20, 0.0);
    animation: timerPanicBg 1s ease-in-out infinite alternate;
}

@keyframes timerPanicBg {
    from {
        background: rgba(127, 10, 10, 0.88);
    }

    to {
        background: rgba(220, 20, 20, 0.96);
    }
}

.meeting-timer-overlay.panic .meeting-timer-inner {
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    gap: 1.2rem;
    min-width: unset;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.meeting-timer-overlay.panic .meeting-timer-label {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    color: rgba(255, 220, 220, 0.9);
    letter-spacing: 0.3em;
}

.meeting-timer-overlay.panic .meeting-timer-display {
    font-size: clamp(14rem, 35vw, 28rem);
    color: #ffffff;

    animation: timerPanicPulse 0.8s ease-in-out infinite alternate;
}

@keyframes timerPanicPulse {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.04);
        opacity: 0.88;
    }
}

.meeting-timer-overlay.panic .meeting-timer-bar {
    width: 80%;
    max-width: 700px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.meeting-timer-overlay.panic .meeting-timer-bar-fill {
    background: linear-gradient(90deg, #fbbf24, #ef4444);
}

/* Final flash on expire */
@keyframes timerExpireFlash {
    0% {
        background: rgba(255, 255, 255, 1);
    }

    100% {
        background: rgba(255, 255, 255, 0);
    }
}

.meeting-timer-overlay.expire-flash {
    animation: timerExpireFlash 0.6s ease-out forwards !important;
}

/* ── Offline Banner ────────────────────────────────────────────────────── */
.offline-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(15, 15, 20, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.offline-banner.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.offline-banner svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Subtle pulse on the offline banner icon */
@keyframes offlinePulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.offline-banner:not(.hidden) svg {
    animation: offlinePulse 2s ease-in-out infinite;
}


/* ---------------------------------------------------
   VOTE OVERLAY (Full Screen)
--------------------------------------------------- */
.vote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.vote-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.vote-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #1e1b4b 0%, #020617 100%);
    opacity: 0.95;
    z-index: -1;
}

.vote-inner {
    width: 90%;
    max-width: 1400px;
    height: 85%;
    display: flex;
    flex-direction: column;
}

.vote-header {
    text-align: center;
    margin-bottom: 3rem;
}

.vote-header-top {
    margin-bottom: 1rem;
}

.vote-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.vote-live-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

.vote-motion-title {
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.vote-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 1rem;
    padding-bottom: 2rem;
}

.vote-member-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.vote-member-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: #e2e8f0;
}

.vote-status-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vote-status-pending {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.vote-status-yes {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    box-shadow: none;
    padding: 1rem;
}

.vote-status-no {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 1rem;

}