@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════
   SCREEN CHIRP — Design System & CSS
   All class names kept identical to original for PHP compat.
   Only values (colors, fonts, spacing) changed.
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Brand Palette */
    --brand-navy:    #0d3349;
    --brand-navy2:   #0a2438;
    --brand-teal:    #0ea5a0;
    --brand-teal2:   #0c9490;
    --brand-cyan:    #38bdf8;
    --brand-coral:   #f4735e;
    --brand-orange:  #f59e0b;
    --brand-bg:      #f0f7f9;
    --brand-muted:   #64748b;

    /* Legacy aliases (PHP templates reference these) */
    --primary-dark:   var(--brand-navy);
    --secondary-dark: var(--brand-navy2);
    --cream-cta:      var(--brand-teal);
    --cream-hover:    var(--brand-teal2);
    --bg-light:       var(--brand-bg);
    --white:          #ffffff;
    --text-dark:      var(--brand-navy);
    --text-light:     #f0f7f9;
    --text-muted:     var(--brand-muted);
    --border-color:   #e1eaf0;
    --shadow-sm:      0 1px 3px 0 rgba(13,51,73,0.06);
    --shadow-md:      0 4px 12px -2px rgba(13,51,73,0.08), 0 2px 6px -1px rgba(13,51,73,0.04);
    --shadow-lg:      0 12px 24px -4px rgba(13,51,73,0.12), 0 4px 8px -2px rgba(13,51,73,0.06);
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --success:        var(--brand-teal);
    --error:          #f43f5e;
    --warning:        #f59e0b;
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: var(--brand-navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-teal);
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
}
a:hover { opacity: 0.85; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── App Header (authenticated app pages) ───────────────── */
header.app-header {
    background-color: var(--brand-navy);
    color: var(--text-light);
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-navy2);
    position: sticky;
    top: 0;
    z-index: 50;
}

header.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.app-header .logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

header.app-header h1 {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

header.app-header h1 span {
    color: var(--brand-teal);
}

header.app-header nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

header.app-header nav a {
    color: rgba(255,255,255,0.80);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

header.app-header nav a:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    opacity: 1;
}

header.app-header nav a.active {
    color: var(--brand-teal);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand-teal);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14,165,160,0.30);
}
.btn-primary:hover {
    background-color: var(--brand-teal2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14,165,160,0.40);
    opacity: 1;
    color: #ffffff;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--brand-navy);
    border: 1.5px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--brand-bg);
    border-color: var(--brand-teal);
    color: var(--brand-teal);
    opacity: 1;
}

.btn-dark {
    background-color: var(--brand-navy);
    color: #ffffff;
}
.btn-dark:hover {
    background-color: var(--brand-navy2);
    opacity: 1;
}

.btn-danger {
    background-color: var(--error);
    color: #ffffff;
}
.btn-danger:hover { opacity: 0.9; }

.btn-outline-teal {
    background: transparent;
    border: 2px solid var(--brand-teal);
    color: var(--brand-teal);
}
.btn-outline-teal:hover {
    background: var(--brand-teal);
    color: #ffffff;
    opacity: 1;
}

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-navy);
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    color: var(--brand-navy);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(14,165,160,0.12);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--brand-teal);
    cursor: pointer;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px 30px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--brand-navy);
}

/* ── Tables ─────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; width: 100%; margin-bottom: 20px; }

table.table {
    width: 100%; border-collapse: collapse;
    text-align: left; font-size: 14px;
}
table.table th {
    background-color: var(--brand-bg);
    color: var(--brand-muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}
table.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
table.table tr:last-child td { border-bottom: none; }
table.table tr:hover td { background-color: rgba(240,247,249,0.5); }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.alert-success {
    background-color: #f0fdf8;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-danger {
    background-color: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}
.alert-info {
    background-color: #eff8ff;
    color: #1e4d7a;
    border: 1px solid #bae6fd;
}

/* ── Centered Layout (Login, Install, Guest Join) ───────── */
.centered-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #0a2d4a 60%, #0d3d5e 100%);
}
.centered-layout-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    padding: 44px 40px;
}
.centered-layout-logo {
    text-align: center;
    margin-bottom: 32px;
}
.centered-layout-logo h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
    color: var(--brand-navy);
}
.centered-layout-logo h1 span { color: var(--brand-teal); }
.centered-layout-logo p {
    color: var(--brand-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* ── Dashboard ──────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
}
@media (min-width: 992px) {
    .dashboard-grid { grid-template-columns: 2fr 1fr; }
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-top: 40px;
}
.welcome-section h2 { font-size: 28px; letter-spacing: -0.5px; }
.welcome-section p { color: var(--brand-muted); margin-top: 4px; }

/* ── Meeting List ───────────────────────────────────────── */
.meeting-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.meeting-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.meeting-list-info h4 { font-size: 15px; margin-bottom: 4px; }
.meeting-list-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--brand-muted);
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
}
.badge-live    { background: #dcfce7; color: #166534; }
.badge-scheduled { background: #dbeafe; color: #1e40af; }
.badge-ended   { background: var(--brand-bg); color: var(--brand-muted); }
.badge-canceled { background: #fff1f2; color: #9f1239; }

/* ══════════════════════════════════════════════════════════
   MEETING ROOM — Immersive Dark UI
   ══════════════════════════════════════════════════════════ */
.meeting-room-body {
    background-color: #060e14;
    color: #f0f7f9;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Room header bar — deep navy with teal accents */
.meeting-room-header {
    height: 60px;
    background-color: #0a1d2a;
    border-bottom: 1px solid #0d2d42;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
}
.meeting-room-header .room-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.meeting-room-header .room-meta {
    font-size: 13px;
    color: #7da8c0;
}

/* Main stage */
.meeting-room-main {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}
.stage-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #060e14;
    position: relative;
    padding: 20px;
}

/* Video grid */
.video-grid {
    display: grid;
    gap: 14px;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-content: center;
    transition: all 0.3s ease;
}
.grid-1   { grid-template-columns: 1fr; max-width: 900px; max-height: 560px; }
.grid-2   { grid-template-columns: 1fr 1fr; max-width: 1000px; max-height: 400px; }
.grid-3-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; max-width: 1000px; max-height: 650px; }
.grid-5-6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; max-width: 1100px; max-height: 650px; }
.grid-many { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Video cells — rounded tiles */
.video-cell {
    position: relative;
    background-color: #0a1d2a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border: 2px solid #0d2d42;
    transition: border-color 0.2s;
}
.video-cell.active-speaker {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 2px var(--brand-teal), 0 4px 16px rgba(14,165,160,0.3);
}
.video-cell.screen-share-cell { border-color: var(--brand-cyan); }
.video-cell video { width: 100%; height: 100%; object-fit: cover; }
.video-cell.screen-share-cell video { object-fit: contain; background-color: #000; }

.video-cell .participant-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(6,14,20,0.80);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.video-cell .status-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

/* Status icons */
.status-icon {
    background: rgba(6,14,20,0.75);
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.status-icon.muted { background: rgba(244,63,94,0.90); }

/* ── Sidebar Panel — Chirps & People ───────────────────── */
.room-sidebar {
    width: 320px;
    background-color: #0a1d2a;
    border-left: 1px solid #0d2d42;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: transform 0.3s ease;
}
.room-sidebar.hidden { display: none; }

.sidebar-header {
    padding: 15px 18px;
    border-bottom: 1px solid #0d2d42;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #0d2d42;
}
.participant-row:last-child { border-bottom: none; }
.participant-row .name { font-size: 14px; color: #e2edf5; font-weight: 500; }
.participant-row .actions { display: flex; gap: 8px; }

/* ── Controls Bar ────────────────────────────────────────── */
.controls-bar {
    height: 76px;
    background-color: #0a1d2a;
    border-top: 1px solid #0d2d42;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    z-index: 10;
}
.control-group { display: flex; gap: 10px; align-items: center; }

.control-btn {
    background-color: #122638;
    color: #a8c4d6;
    border: 1px solid #1a3a52;
    width: 46px; height: 46px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.control-btn:hover {
    background-color: #1a3a52;
    color: #ffffff;
    border-color: #2a5a7a;
}
.control-btn.active {
    background-color: var(--brand-teal);
    color: #ffffff;
    border-color: var(--brand-teal);
    box-shadow: 0 2px 8px rgba(14,165,160,0.35);
}
.control-btn.danger {
    background-color: var(--error);
    color: #ffffff;
    border-color: var(--error);
}
.control-btn.danger:hover { opacity: 0.9; }
.control-btn svg { width: 20px; height: 20px; fill: currentColor; }

.control-btn-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #7da8c0;
    cursor: pointer;
    gap: 4px;
}
.control-btn-label:hover .control-btn { background-color: #1a3a52; color: #ffffff; }
.control-btn-label:hover span { color: #ffffff; }
.control-btn-label span { margin-top: 4px; transition: color 0.2s; }

/* ── Modals ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,14,20,0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(6px);
}
.modal-container {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    color: var(--brand-navy);
    position: relative;
}
.modal-dark {
    background: #0a1d2a;
    border: 1px solid #0d2d42;
    color: #e2edf5;
}
.modal-dark h3 { color: #ffffff; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-muted);
    font-size: 22px;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--brand-navy); }
.modal-dark .modal-close:hover { color: #ffffff; }

/* ── Copy Block ─────────────────────────────────────────── */
.copy-block {
    background: var(--brand-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    margin-bottom: 14px;
    max-height: 180px;
    overflow-y: auto;
    color: var(--brand-navy);
    line-height: 1.6;
}
.modal-dark .copy-block {
    background: #060e14;
    border-color: #0d2d42;
    color: #e2edf5;
}

/* ── Status Indicator ───────────────────────────────────── */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.active { background: var(--brand-teal); box-shadow: 0 0 0 3px rgba(14,165,160,0.25); }
.status-dot.inactive { background: var(--brand-muted); }

/* ── Avatar Placeholder ─────────────────────────────────── */
.avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
}

.avatar-initials-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(14,165,160,0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(14,165,160,0.35);
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    user-select: none;
    transition: transform 0.3s ease;
}
.video-cell:hover .avatar-initials-circle { transform: scale(1.08); }

/* ── Waiting Room ───────────────────────────────────────── */
.waiting-room-container {
    text-align: center;
    padding: 40px 20px;
}
.waiting-spinner {
    border: 4px solid rgba(14,165,160,0.20);
    border-top: 4px solid var(--brand-teal);
    border-radius: 50%;
    width: 50px; height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ── Impersonation Banner ───────────────────────────────── */
.impersonation-banner {
    background: var(--warning);
    color: var(--brand-navy);
    padding: 8px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.impersonation-banner a { color: var(--brand-navy); text-decoration: underline; }

/* ── Logo helpers ───────────────────────────────────────── */
.tenant-logo-preview { max-height: 38px; max-width: 140px; object-fit: contain; }
.logo-display { max-height: 48px; max-width: 180px; object-fit: contain; }

/* ── Guest Join Options ─────────────────────────────────── */
.guest-join-options { display: flex; justify-content: center; gap: 16px; margin: 20px 0; }
.guest-join-option-btn {
    flex: 1;
    padding: 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.guest-join-option-btn:hover { border-color: var(--brand-teal); background: rgba(14,165,160,0.05); }
.guest-join-option-btn.active {
    border-color: var(--brand-teal);
    background: rgba(14,165,160,0.08);
}
.guest-join-option-btn svg { width: 24px; height: 24px; }

/* ── Screen share active state ──────────────────────────── */
.stage-area.screen-sharing-active { position: relative; }
#screen-share-stage {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}
#screen-share-stage video { width: 100%; height: 100%; object-fit: contain; }

.stage-area.screen-sharing-active #video-grid {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    flex-direction: row !important;
    gap: 10px;
    width: auto !important;
    height: 110px !important;
    max-width: 90%;
    overflow-x: auto;
    z-index: 10;
    background: rgba(10,29,42,0.80);
    padding: 10px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border: 1px solid #0d2d42;
    justify-content: center;
    align-content: center;
}
.stage-area.screen-sharing-active #video-grid .video-cell {
    width: 140px !important;
    height: 78px !important;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border-width: 1px;
}
.stage-area.screen-sharing-active #video-grid .video-cell .participant-name {
    font-size: 10px; padding: 2px 6px; bottom: 5px; left: 5px;
}
.stage-area.screen-sharing-active #video-grid .video-cell .status-icons { top: 5px; right: 5px; }
.stage-area.screen-sharing-active #video-grid .video-cell .status-icon { width: 18px; height: 18px; font-size: 8px; }
.stage-area.screen-sharing-active #video-grid .avatar-initials-circle { width: 36px; height: 36px; font-size: 14px; border-width: 1px; }

/* ── Device Selector ────────────────────────────────────── */
.device-select-control {
    background: #060e14 !important;
    border: 1px solid #0d2d42 !important;
    color: #e2edf5 !important;
    padding: 10px 14px !important;
    border-radius: var(--radius-md) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    width: 100% !important;
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230ea5a0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    padding-right: 36px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.device-select-control:focus {
    border-color: var(--brand-teal) !important;
    box-shadow: 0 0 0 2px rgba(14,165,160,0.20) !important;
}

/* ── Misc ───────────────────────────────────────────────── */
.cam-indicator-overlay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    vertical-align: middle;
}
.cam-indicator-overlay svg { width: 14px; height: 14px; fill: currentColor; }

.status-icon.muted {
    background-color: rgba(244,63,94,0.90) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    transition: transform 0.2s, background-color 0.2s !important;
}
.status-icon.muted:hover { transform: scale(1.1); background-color: rgba(244,63,94,1) !important; }

/* ── Background preset btn ──────────────────────────────── */
.bg-preset-btn {
    height: 45px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.bg-preset-btn:hover { transform: scale(1.05); }
.bg-preset-btn.selected { border-color: var(--brand-teal); box-shadow: 0 0 10px rgba(14,165,160,0.4); }

/* ── Call timer ─────────────────────────────────────────── */
#call-timer {
    font-family: 'Manrope', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   LANDING PAGE — Screen Chirp Marketing Site
   ══════════════════════════════════════════════════════════ */

/* ── Site Header / Nav ──────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(225,234,240,0.8);
    padding: 0;
}
.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-nav-logo img { height: 36px; }
.site-nav-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.5px;
}
.site-nav-logo-text span { color: var(--brand-teal); }
.site-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.site-nav-links a {
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    opacity: 1;
}
.site-nav-links a:hover { background: var(--brand-bg); color: var(--brand-teal); }
.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.site-nav-actions .btn-login {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-navy);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: background 0.15s;
}
.site-nav-actions .btn-login:hover { background: var(--brand-bg); opacity: 1; }

/* ── Hero Section ───────────────────────────────────────── */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(160deg, #ffffff 0%, #f0f7f9 55%, #e8f4f8 100%);
    overflow: hidden;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-mockup { display: none; }
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14,165,160,0.10);
    color: var(--brand-teal);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(14,165,160,0.20);
}
.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-title em {
    font-style: normal;
    color: var(--brand-teal);
}
.hero-sub {
    font-size: 18px;
    color: var(--brand-muted);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust-pills {
    display: flex;
    gap: 18px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.trust-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-muted);
}
.trust-pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-teal);
}

/* ── Hero Mockup Window ─────────────────────────────────── */
.hero-mockup {
    position: relative;
}
.mockup-window {
    background: #0a1d2a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(13,51,73,0.22), 0 0 0 1px rgba(13,51,73,0.10);
    position: relative;
}
.mockup-topbar {
    background: #0d2538;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #0d2d42;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #f4735e; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #38bdf8; }
.mockup-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}
.mockup-status-pill {
    background: rgba(14,165,160,0.25);
    color: var(--brand-teal);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    border: 1px solid rgba(14,165,160,0.30);
}
.mockup-body {
    display: grid;
    grid-template-columns: 1fr 200px;
    min-height: 320px;
}
.mockup-stage {
    background: #060e14;
    padding: 14px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
}
.mockup-presenting-badge {
    background: rgba(14,165,160,0.20);
    border: 1px solid rgba(14,165,160,0.35);
    color: var(--brand-teal);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    align-self: start;
    display: inline-flex;
    width: fit-content;
}
.mockup-screen-area {
    background: #0a1d2a;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 8px;
    overflow: hidden;
}
.mockup-shared-screen {
    background: linear-gradient(135deg, #0d2538 0%, #122638 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}
.mockup-gantt-bar {
    height: 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.mockup-cams {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mockup-cam-tile {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.mockup-cam-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mockup-cam-name {
    position: absolute;
    bottom: 3px;
    left: 4px;
    font-size: 8px;
    font-weight: 600;
    color: #fff;
    background: rgba(6,14,20,0.7);
    padding: 1px 5px;
    border-radius: 3px;
}
.mockup-controls-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 4px;
}
.mockup-ctrl-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: #122638;
    border: 1px solid #1a3a52;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    cursor: default;
}
.mockup-ctrl-btn.active { background: var(--brand-teal); border-color: var(--brand-teal); }
.mockup-ctrl-icon { width: 14px; height: 14px; background: rgba(255,255,255,0.7); border-radius: 2px; }
.mockup-ctrl-label { font-size: 7px; color: rgba(255,255,255,0.5); font-weight: 600; }
.mockup-chirps-panel {
    background: #0d2538;
    border-left: 1px solid #0d2d42;
    display: flex;
    flex-direction: column;
}
.mockup-chirps-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #0d2d42;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mockup-chirps-messages {
    flex: 1;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}
.mockup-chirp-msg {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mockup-chirp-name {
    font-size: 9px;
    font-weight: 700;
    color: var(--brand-teal);
}
.mockup-chirp-text {
    font-size: 10px;
    color: #c0d8e8;
    background: #122638;
    padding: 5px 8px;
    border-radius: 6px;
    line-height: 1.4;
}
.mockup-chirps-input {
    padding: 8px 10px;
    border-top: 1px solid #0d2d42;
    display: flex;
    gap: 6px;
}
.mockup-input-bar {
    flex: 1;
    height: 24px;
    background: #122638;
    border: 1px solid #1a3a52;
    border-radius: 6px;
}
.mockup-send-btn {
    width: 28px; height: 24px;
    background: var(--brand-teal);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Trust Strip ────────────────────────────────────────── */
.trust-strip {
    padding: 28px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.trust-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-strip-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.trust-logos {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-logo-item {
    font-size: 16px;
    font-weight: 800;
    color: #b0c4d4;
    letter-spacing: -0.03em;
    transition: color 0.2s;
    opacity: 0.7;
}
.trust-logo-item:hover { color: var(--brand-navy); opacity: 1; }

/* ── Value Row ──────────────────────────────────────────── */
.value-row-section {
    padding: 64px 0;
    background: #ffffff;
}
.value-row-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (max-width: 900px) { .value-row-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-row-inner { grid-template-columns: 1fr; } }
.value-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.value-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-icon svg { width: 24px; height: 24px; }
.value-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-navy);
}
.value-desc {
    font-size: 14px;
    color: var(--brand-muted);
    line-height: 1.6;
}

/* ── Feature Cards ──────────────────────────────────────── */
.features-section {
    padding: 80px 0;
    background: var(--brand-bg);
}
.section-header {
    text-align: center;
    margin-bottom: 52px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 28px;
}
.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 17px;
    color: var(--brand-muted);
    line-height: 1.65;
}
.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    cursor: default;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(14,165,160,0.20);
}
.feature-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-card-icon svg { width: 26px; height: 26px; }
.feature-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 10px;
}
.feature-card-desc {
    font-size: 14px;
    color: var(--brand-muted);
    line-height: 1.65;
}

/* ── Use Cases ──────────────────────────────────────────── */
.use-cases-section {
    padding: 80px 0;
    background: linear-gradient(160deg, #f0f7f9 0%, #e8f0f5 100%);
}
.use-cases-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .use-cases-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .use-cases-grid { grid-template-columns: 1fr; } }
.use-case-card {
    background: #ffffff;
    border: 1px solid rgba(225,234,240,0.8);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.use-case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.use-case-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.use-case-icon svg { width: 22px; height: 22px; }
.use-case-title { font-size: 14px; font-weight: 700; color: var(--brand-navy); margin-bottom: 8px; }
.use-case-desc { font-size: 13px; color: var(--brand-muted); line-height: 1.55; }

/* ── Differentiator Section ─────────────────────────────── */
.diff-section {
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}
.diff-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 900px) { .diff-inner { grid-template-columns: 1fr; gap: 40px; } }
.diff-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.diff-body {
    font-size: 17px;
    color: var(--brand-muted);
    line-height: 1.65;
    margin-bottom: 28px;
}
.diff-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.diff-bullet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--brand-navy);
    font-weight: 600;
}
.diff-bullet::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-teal);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 13px;
    background-repeat: no-repeat;
    background-position: center;
}
.diff-mockup-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.diff-blob {
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(14,165,160,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.diff-mockup-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}
.diff-decision-toast {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--brand-teal);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(14,165,160,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
}

/* ── Security Section ───────────────────────────────────── */
.security-section {
    padding: 80px 0;
    background: var(--brand-bg);
}
.security-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 900px) { .security-inner { grid-template-columns: 1fr; gap: 40px; } }
.security-trust-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.security-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.security-item:hover { box-shadow: var(--shadow-md); }
.security-item-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.security-item-icon svg { width: 20px; height: 20px; }
.security-item-title { font-size: 13px; font-weight: 700; color: var(--brand-navy); }
.security-item-sub { font-size: 12px; color: var(--brand-muted); margin-top: 3px; }

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band {
    padding: 80px 28px;
    background: linear-gradient(135deg, #0d3349 0%, #0a2438 50%, #063252 100%);
    position: relative;
    overflow: hidden;
}
.cta-band-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) { .cta-band-inner { grid-template-columns: 1fr; text-align: center; } }
.cta-band-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.cta-band-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 480px;
}
.cta-band-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band-art {
    position: relative;
    width: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-band-art img { width: 140px; opacity: 0.9; }
.cta-band-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(14,165,160,0.25) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--brand-navy);
    color: rgba(255,255,255,0.65);
    padding: 64px 0 36px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }
.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.50);
    line-height: 1.65;
    margin-top: 14px;
    margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    opacity: 1;
}
.footer-social a:hover { background: var(--brand-teal); color: #ffffff; }
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}
@media (max-width: 900px) { .footer-links-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: color 0.15s;
    opacity: 1;
}
.footer-col ul a:hover { color: var(--brand-teal); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Responsive tweaks ──────────────────────────────────── */
.hero-title { font-size: clamp(32px, 5vw, 52px); }
.section-title { font-size: clamp(28px, 4vw, 38px); }
.cta-band-title { font-size: clamp(32px, 5vw, 48px); }

/* ── Landing page hero layout override (not meeting join) ─ */
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
