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

:root {
    /* Modern Color Palette - Dark Cyberpunk Theme */
    --primary: #00d9ff;
    --primary-dark: #00b8d4;
    --primary-light: #6fefff;
    --secondary: #ff3d71;
    --secondary-dark: #e6335d;
    --accent: #7b2cbf;
    --accent-light: #9d4edd;
    --success: #00ffa3;
    --warning: #ffaa00;
    --danger: #ff3d71;
    --dark: #0a0e27;
    --dark-card: #151932;
    --dark-hover: #1e2345;
    --text: #e4e6eb;
    --text-secondary: #a8adb7;
    --glass: rgba(21, 25, 50, 0.8);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1428 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 61, 113, 0.08) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes bgShift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-5%, 5%) rotate(120deg);
    }

    66% {
        transform: translate(5%, -5%) rotate(240deg);
    }
}

.container {
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Join Screen - Glass Morphism Card */
.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    padding: 48px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(0, 217, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: cardEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

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

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(0, 217, 255, 0.05),
            transparent);
    animation: cardShine 6s ease-in-out infinite;
}

@keyframes cardShine {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(50%, 50%) rotate(180deg);
    }
}

.card h1 {
    color: var(--text);
    margin-bottom: 36px;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.08);
    box-shadow:
        0 0 0 4px rgba(0, 217, 255, 0.1),
        0 0 20px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

/* Role Selection - Neon Cards */
.role-selection {
    margin: 32px 0;
}

.role-selection h3 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.role-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.role-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.role-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(0, 217, 255, 0.3),
        0 0 50px rgba(0, 217, 255, 0.2);
}

.role-btn:hover::before {
    width: 300px;
    height: 300px;
}

.role-btn.active {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-color: var(--primary);
    color: var(--text);
    box-shadow:
        0 8px 32px rgba(0, 217, 255, 0.4),
        0 0 60px rgba(0, 217, 255, 0.3),
        inset 0 0 30px rgba(0, 217, 255, 0.1);
    transform: scale(1.05);
}

.role-icon {
    font-size: 40px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px currentColor);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

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

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

.role-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.role-desc {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.9;
}

.role-btn.active .role-desc,
.role-btn.active .role-title {
    color: var(--text);
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.btn {
    flex: 1;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(0, 217, 255, 0.5),
        0 0 40px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--success) 0%, #00d4aa 100%);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(0, 255, 163, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(0, 255, 163, 0.5),
        0 0 40px rgba(0, 255, 163, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #d63031 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 61, 113, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(255, 61, 113, 0.5),
        0 0 40px rgba(255, 61, 113, 0.3);
}

/* Meeting Screen - Cyberpunk Header */
.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 20px 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 217, 255, 0.1);
    animation: headerSlide 0.6s ease-out;
    gap: 24px;
}

@keyframes headerSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.header-info {
    display: flex;
    gap: 16px;
    flex: 1;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 180px;
}

.info-card:hover {
    background: rgba(0, 217, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
}

.info-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px var(--primary));
    animation: iconFloat 3s ease-in-out infinite;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-leave {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px !important;
    min-width: 180px;
    justify-content: center;
}

.btn-icon {
    font-size: 20px;
    animation: iconPulse 2s ease-in-out infinite;
}

.btn-text {
    font-size: 14px;
    font-weight: 700;
}

@keyframes headerSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.video-wrapper {
    position: relative;
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 217, 255, 0.2),
        inset 0 0 40px rgba(0, 217, 255, 0.05);
    animation: videoEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s ease;
}

@keyframes videoEntry {
    from {
        opacity: 0;
        transform: scale(0.9) rotateY(10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.video-wrapper:hover {
    border-color: var(--primary);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 217, 255, 0.4),
        inset 0 0 60px rgba(0, 217, 255, 0.1);
    transform: translateY(-4px);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.local-video {
    border: 3px solid var(--primary);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 217, 255, 0.5),
        inset 0 0 60px rgba(0, 217, 255, 0.1);
}

/* Controls - Futuristic Glow Buttons */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 217, 255, 0.1);
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 110px;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(0, 217, 255, 0.4),
        0 0 50px rgba(0, 217, 255, 0.3);
}

.control-btn.active {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-color: var(--primary);
    color: var(--text);
    box-shadow:
        0 8px 32px rgba(0, 217, 255, 0.5),
        0 0 60px rgba(0, 217, 255, 0.4),
        inset 0 0 40px rgba(0, 217, 255, 0.15);
}

.control-btn .icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px currentColor);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.control-btn .label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

/* Transcript Panel - Premium Cyberpunk Design */
.transcript-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 217, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.2);
    animation: panelSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes panelSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.transcript-panel.hidden {
    display: none;
}

.panel-header {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(123, 44, 191, 0.3) 100%);
    backdrop-filter: blur(20px);
    color: var(--text);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.panel-title h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.panel-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.status-indicators {
    display: flex;
    gap: 18px;
    align-items: center;
}

.status-indicator {
    background: rgba(0, 217, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.listening {
    background: rgba(0, 255, 163, 0.15);
    border-color: rgba(0, 255, 163, 0.4);
    box-shadow: 0 4px 20px rgba(0, 255, 163, 0.3);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 255, 163, 1);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.9);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(0, 255, 163, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 163, 0);
    }
}

.detection-stats {
    display: flex;
    gap: 18px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.stat-item.warning .stat-value {
    color: var(--warning);
    text-shadow: 0 0 10px var(--warning);
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.transcript-content {
    padding: 28px;
    max-height: 420px;
    overflow-y: auto;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.transcript-content::-webkit-scrollbar {
    width: 10px;
}

.transcript-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.transcript-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.transcript-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

.transcript-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {

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

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

.transcript-empty p {
    margin: 10px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.transcript-empty small {
    font-size: 14px;
    color: var(--text-secondary);
}

.transcript-item {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(123, 44, 191, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 217, 255, 0.1);
    animation: itemSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.transcript-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.6s;
}

.transcript-item:hover::before {
    left: 100%;
}

.transcript-item:hover {
    transform: translateX(8px) translateY(-4px);
    border-color: var(--primary);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 217, 255, 0.3),
        -4px 0 30px rgba(0, 217, 255, 0.4);
}

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) rotateY(10deg);
    }

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

.transcript-item .timestamp {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.transcript-item .text {
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 400;
}

.transcript-item .confidence {
    font-size: 12px;
    color: var(--primary);
    margin-top: 10px;
    display: inline-block;
    background: rgba(0, 217, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(0, 217, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

.transcript-item.ai-detected {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(255, 61, 113, 0.1) 0%, rgba(255, 61, 113, 0.05) 100%);
    border-color: rgba(255, 61, 113, 0.4);
    box-shadow:
        0 8px 32px rgba(255, 61, 113, 0.3),
        0 0 60px rgba(255, 61, 113, 0.2);
    animation: aiDetectPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes aiDetectPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 61, 113, 0.8);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 40px 20px rgba(255, 61, 113, 0);
    }

    100% {
        transform: scale(1);
        box-shadow:
            0 8px 32px rgba(255, 61, 113, 0.3),
            0 0 60px rgba(255, 61, 113, 0.2);
    }
}

.transcript-item .ai-warning {
    color: var(--danger);
    font-weight: 800;
    font-size: 14px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 61, 113, 0.15);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 61, 113, 0.4);
    text-shadow: 0 0 10px rgba(255, 61, 113, 0.8);
    box-shadow: 0 0 20px rgba(255, 61, 113, 0.3);
    animation: warningGlow 2s ease-in-out infinite;
}

@keyframes warningGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 61, 113, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 61, 113, 0.6);
    }
}

.transcript-item .ai-warning::before {
    content: '⚠️';
    font-size: 20px;
    animation: warningShake 0.8s ease-in-out infinite;
}

@keyframes warningShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }
}

/* Responsive Design - Mobile Optimized */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 32px 24px;
    }

    .card h1 {
        font-size: 26px;
    }

    .video-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .controls {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .control-btn {
        min-width: 85px;
        padding: 14px 18px;
    }

    .control-btn .icon {
        font-size: 24px;
    }

    .control-btn .label {
        font-size: 12px;
    }

    .meeting-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    .header-info {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .info-card {
        width: 100%;
        min-width: auto;
    }

    .btn-leave {
        width: 100%;
        min-width: auto;
    }

    .panel-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
    }

    .detection-stats {
        width: 100%;
        justify-content: center;
    }

    .transcript-content {
        padding: 20px;
        max-height: 350px;
    }

    .transcript-item {
        padding: 16px 18px;
    }
}

@media (max-width: 480px) {
    .role-buttons {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .controls {
        gap: 8px;
    }

    .control-btn {
        min-width: 70px;
        padding: 12px 14px;
    }

    .info-card {
        padding: 10px 14px;
    }

    .info-icon {
        font-size: 20px;
    }

    .info-label {
        font-size: 10px;
    }

    .info-value {
        font-size: 13px;
    }
}