:root {
    --bg-deep: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --sidebar-bg: #0f172a;
    --accent-primary: #f59e0b;
    --accent-secondary: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gold: #fbbf24;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shutter-size: 72px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

/* Login View */
.login-view-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
}

.login-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-container h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-google {
    background: #fff;
    color: #0f172a;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-smooth);
    margin-top: 2rem;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

/* Dashboard Styles */
#dashboard-view {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.header-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    background: var(--error);
    color: #fff;
}

.stage-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.2);
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05), transparent);
    pointer-events: none;
}

.stage-name {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.02em;
}



@keyframes pulse-border {
    0% {
        border-color: rgba(16, 185, 129, 0.2);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.1);
    }

    50% {
        border-color: rgba(16, 185, 129, 0.5);
        box-shadow: 0 0 10px 0 rgba(16, 185, 129, 0.2);
    }

    100% {
        border-color: rgba(16, 185, 129, 0.2);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.1);
    }
}

.stage-label {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.program-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.program-time {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 90px;
}

.program-details {
    flex-grow: 1;
    padding: 0 1rem;
}

.program-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.program-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-style: italic;
}

.hidden {
    display: none !important;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Better for multiline titles */
    gap: 1rem;
}

.modal-header>div:first-child {
    flex: 1;
    min-width: 0;
    /* Allow title to truncate if needed */
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem;
    margin: -0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--glass-border);
}

.participant-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.chance-number {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.participant-name {
    flex: 1;
    padding: 0 1rem;
    font-weight: 500;
    color: #fff;
    text-align: left;
}

/* Lottery Styles */
.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
}

.btn-clear {
    background: rgba(239, 68, 68, 0.08) !important;
    color: var(--error) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
}

.btn-clear i {
    font-size: 0.85rem;
}

.btn-random {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
}

.btn-random:hover {
    background: var(--accent-primary);
    color: #000;
}

.btn-clear {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.btn-clear:hover {
    background: var(--error);
    color: #fff;
}

.clickable {
    cursor: pointer !important;
    transition: var(--transition-smooth);
}

.clickable:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.participant-actions {
    display: flex;
    gap: 0.5rem;
}

.swap-btn {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.swap-btn:hover {
    background: #a78bfa;
    color: #fff;
}

.swap-here-btn {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.participant-item.swapping {
    border-color: #a78bfa;
    background: rgba(167, 139, 250, 0.05);
}

.dice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 200px;
}

.dice {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    position: relative;
}

.dice i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.dice-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.8;
}

.dice:hover {
    transform: translateY(-5px) scale(1.05);
}

.dice.rolling {
    animation: shake 0.1s infinite;
    cursor: default;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.roll-value {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.final-value {
    font-size: 5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.dice.landed {
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.taken-info {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #dashboard-view {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .user-controls {
        width: 100%;
        justify-content: space-between;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .stage-card {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }

    .stage-name {
        font-size: 1.75rem;
    }

    .program-card {
        padding: 1rem;
    }

    .program-time {
        font-size: 1.1rem;
        min-width: 70px;
    }

    .program-details {
        padding: 0 1rem;
    }

    .program-name {
        font-size: 1rem;
    }

    .modal-content {
        max-height: 95vh;
        width: 100%;
        border-radius: 0;
        border: none;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .pro-subtitle-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .pro-subtitle-row span:nth-child(2) {
        display: none !important;
        /* Hide the | separator on mobile */
    }
}

@media (max-width: 480px) {
    #user-display {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    .stage-name {
        font-size: 1.5rem;
    }

    .participant-item {
        padding: 0.75rem;
        gap: 8px;
    }

    .participant-name {
        padding: 0 0.25rem;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .participant-actions {
        gap: 4px;
    }

    .status-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .dice {
        width: 100px;
        height: 100px;
    }

    .final-value {
        font-size: 4rem;
    }

    .recording-controls {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 4px;
    }

    .action-btn i {
        font-size: 1.1rem;
    }
}

/* --- Professional "Pro" UI Overhaul Styles --- */

.pro-modal {
    background: #000 !important;
    max-width: 500px !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    /* Use dynamic viewport height */
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

@media (min-width: 768px) {
    .pro-modal {
        height: auto !important;
        max-height: 90vh !important;
        border-radius: 2rem !important;
        border: 1px solid var(--glass-border) !important;
    }
}

.pro-modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 100;
}

.pro-header-info h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.pro-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.pro-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.pro-modal-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Enable vertical scroll for whole body */
    -webkit-overflow-scrolling: touch;
}

.pro-video-viewport {
    position: relative;
    width: 100%;
    min-height: 40vh;
    /* Ensure video takes significant space but allows controls */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pro-video-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-indicator {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pro-blink 1s infinite;
}

@keyframes pro-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.pro-controls-section {
    padding: 1.5rem 1rem 2.5rem;
    /* Tightened padding */
    background: #000;
    flex-shrink: 0;
}

.pro-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.shutter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
}

.pro-shutter {
    width: var(--shutter-size);
    height: var(--shutter-size);
    border-radius: 50%;
    border: 4px solid #fff;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shutter-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pro-btn-record .shutter-inner {
    background: #fff;
}

.pro-btn-stop-rec .shutter-inner {
    background: #ef4444;
    border-radius: 4px;
    width: 40%;
    height: 40%;
}

.pro-shutter:active {
    transform: scale(0.9);
}

.shutter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pro-btn-secondary {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.pro-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pro-save-section {
    display: flex;
    justify-content: center;
}

.pro-btn-save {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.pro-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pro-upload-status {
    width: 100%;
    margin-top: 1rem;
}

.pro-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.pro-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.3s ease;
}

.pro-upload-msg {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--success);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 8px;
    width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.upload-toast.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(127, 29, 29, 0.9);
}

.upload-toast.success {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(6, 78, 59, 0.95);
    border-width: 1.5px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.upload-toast.success a:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.uploading-pill {
    font-size: 0.7rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* New Status and Objection Styles */
.status-live {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.status-completed {
    opacity: 0.6;
    filter: grayscale(0.5);
    background: rgba(255, 255, 255, 0.02);
}

.live-indicator-pulse {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--success);
    background: rgba(16, 185, 129, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.status-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-live:hover {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-stop {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-stop:hover {
    background: var(--error);
    color: white;
}

.btn-complete {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.2);
}

.btn-complete:hover {
    background: #6366f1;
    color: white;
}

.completed-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
}