/* 2TI Sovereign Meet - Air-Gapped WebRTC Studio (2TITHEME & SpaceBunnyAlpha Cosmic System) */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Cosmic & SpaceBunny Palette */
    --bg: #070b14;
    --bg-primary: #070b14;
    --bg-secondary: #0c1220;
    --bg-tertiary: #131c31;
    --surface: #0f172a;
    --surface-card: rgba(15, 23, 42, 0.78);
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-glass: rgba(56, 189, 248, 0.05);
    
    /* 2TI Brand & Accent Tokens */
    --brand: #38bdf8;
    --primary: #38bdf8;
    --primary-light: #7dd3fc;
    --primary-dark: #0284c7;
    --primary-600: #0284c7;
    --secondary: #0ea5e9;
    --accent: #38bdf8;
    --accent-rgb: 56, 189, 248;
    --glow: rgba(56, 189, 248, 0.28);
    --line: rgba(255, 255, 255, 0.08);
    
    /* Semantic 2TITHEME Compatibility */
    --base: #0f172a;
    --bg-color: #070b14;
    --border-color: rgba(56, 189, 248, 0.16);
    --border-subtle: rgba(56, 189, 248, 0.16);
    --border-glow: rgba(56, 189, 248, 0.45);
    --input-bg: #0f172a;
    --input-stroke: rgba(56, 189, 248, 0.22);
    
    /* Text Tokens */
    --ink: #f8fafc;
    --text-primary: #f8fafc;
    --text-primary-light: #f8fafc;
    --text-secondary: #94a3b8;
    --text-secondary-light: #94a3b8;
    --text-muted: #64748b;
    --muted: #94a3b8;
    
    /* Semantic Status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --danger: #ef4444;
    --info: #38bdf8;
    
    /* Gradients & Shadows */
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --gradient-dark: linear-gradient(180deg, #070b14 0%, #0f172a 100%);
    --shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75);
    --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.25);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    
    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    
    /* Micro-interactions */
    --transition-fast: 160ms ease;
    --transition-normal: 260ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at 80% 8%, var(--glow), transparent 38%),
                radial-gradient(circle at 18% 70%, rgba(2, 132, 199, 0.12), transparent 42%),
                var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   SpaceBunnyAlpha Cosmic Elements & Orbital Animations
   ========================================================================== */

/* 1. Scroll Flight Progress Bar */
#flight-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #a6e2cb 100%);
    z-index: 9999;
    transform-origin: 0 50%;
    transform: scaleX(0);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* 2. Deterministic Starfield */
.starfield {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sky-star {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.35;
    animation: starTwinkle var(--twinkle-duration, 4s) ease-in-out infinite var(--twinkle-delay, 0s);
}

.sky-star.is-cross {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.sky-star.is-cross::before,
.sky-star.is-cross::after {
    content: '';
    position: absolute;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
}
.sky-star.is-cross::before {
    top: 0; left: 50%; width: 1px; height: 100%; transform: translateX(-50%);
}
.sky-star.is-cross::after {
    top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%);
}

.shooting-star {
    position: absolute;
    top: 15%;
    right: 20%;
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, #ffffff, transparent);
    transform: rotate(-35deg) translateX(0);
    opacity: 0;
    animation: shootOrbit 14s infinite 4s ease-out;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.9); }
    50% { opacity: 0.95; transform: scale(1.25); }
}

@keyframes shootOrbit {
    0% { transform: rotate(-35deg) translateX(0); opacity: 0; }
    3% { opacity: 1; }
    8% { transform: rotate(-35deg) translateX(-280px); opacity: 0; }
    100% { opacity: 0; }
}

/* 3. Cosmic Orbits & Beacon Pulse */
@keyframes beaconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--accent), 0 0 0 0 var(--glow); }
    50% { transform: scale(1.2); box-shadow: 0 0 18px var(--accent), 0 0 0 6px transparent; }
}

@keyframes orbitSpin {
    0% { transform: rotate(-28deg) scale(1); }
    50% { transform: rotate(-22deg) scale(1.03); }
    100% { transform: rotate(-28deg) scale(1); }
}

@keyframes orbitReverse {
    0% { transform: rotate(24deg) scale(1); }
    50% { transform: rotate(18deg) scale(1.04); }
    100% { transform: rotate(24deg) scale(1); }
}

@keyframes heroFloat {
    0%, 100% { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-8px); }
}

@keyframes starPulse {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.8; }
    50% { transform: rotate(90deg) scale(1.2); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    animation: beaconPulse 2.6s infinite ease-in-out;
}

.orbit {
    position: absolute;
    inset: 8% 2%;
    border: 1px solid var(--line);
    border-radius: 50%;
    z-index: -1;
    animation: orbitSpin 14s ease-in-out infinite;
    pointer-events: none;
}

.orbit-two {
    inset: 2% 10%;
    border-color: rgba(56, 189, 248, 0.18);
    animation: orbitReverse 18s ease-in-out infinite;
    pointer-events: none;
}

.art-star {
    position: absolute;
    top: 14px;
    right: 8%;
    font-size: 38px;
    color: var(--accent);
    font-weight: 300;
    animation: starPulse 6s ease-in-out infinite;
    pointer-events: none;
}

/* ==========================================================================
   2TI Signature Action Pills & Spark Bursts
   ========================================================================== */

.pill {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #030712 !important;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 30px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.pill:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 18px 40px -6px var(--accent);
    color: #030712 !important;
}

.pill:hover::after {
    transform: translateX(120%);
}

.pill.small {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink) !important;
    border-color: var(--line);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.pill.small:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 8px 24px -6px var(--glow);
    color: var(--primary-light) !important;
}

/* Spark Bursts on Click */
.spark-container {
    position: absolute;
    pointer-events: none;
    z-index: 100;
}

.spark-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: sparkFly 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkFly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ==========================================================================
   Typography & Links
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
}

h1 { font-size: clamp(38px, 5.2vw, 72px); }
h2 { font-size: clamp(28px, 3.8vw, 44px); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

.wrap {
    width: min(1380px, 92%);
    margin-inline: auto;
}

/* ==========================================================================
   Navigation Bar (SpaceBunny Styled Frosted Top Bar)
   ========================================================================== */

.navbar, .app-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 84px;
    display: flex;
    align-items: center;
    background: rgba(7, 11, 20, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}

.navbar .container, .app-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
    transition: transform 0.25s ease;
}

.navbar-brand:hover img {
    transform: scale(1.06) rotate(3deg);
}

.brand-title {
    font-weight: 800;
    font-size: 17px;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.brand-badge {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.navbar-nav a:hover, .navbar-nav a.active {
    color: #ffffff;
}

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

/* ==========================================================================
   Hero Section (Spacious Split Grid)
   ========================================================================== */

.hero {
    min-height: 88vh;
    padding: 60px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.05fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy {
    animation: fadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.24);
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 5.2vw, 70px);
    line-height: 1.06;
    margin: 0 0 20px 0;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 60%, #a6e2cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.hero-note {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Interactive Meeting Console */
.quick-console {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
    margin-top: 24px;
}

.quick-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.quick-console-header span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.quick-console-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.quick-divider {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.quick-input-group {
    display: flex;
    align-items: center;
    background: rgba(7, 11, 20, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px 6px;
    transition: border-color var(--transition-fast);
}

.quick-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 14px var(--glow);
}

.quick-input-group input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    outline: none;
    width: 100%;
}

.quick-input-group button {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.quick-input-group button:hover {
    background: var(--accent);
    color: #030712;
}

/* Trust Badges Strip */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin-top: 24px;
    padding: 0;
}

.trust-badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.trust-badges li iconify-icon {
    color: var(--accent);
    font-size: 14px;
}

/* Hero Art Stage */
.hero-art {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
    isolation: isolate;
    background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
    animation: fadeUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-screen {
    position: relative;
    margin: 0;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.85), 0 0 45px -10px var(--glow);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.hero-screen:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 45px 105px -12px rgba(0, 0, 0, 0.95), 0 0 65px -8px var(--glow);
}

.hero-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.hero-floating-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hero-floating-badge .pulse-green {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

.art-caption {
    position: absolute;
    bottom: -10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* ==========================================================================
   Facts & Metrics Bar (4-Column Strip)
   ========================================================================== */

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--line);
    padding-block: 36px;
    gap: 32px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    margin: 40px 0 80px;
}

.fact-item {
    padding: 8px 18px;
    border-left: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.fact-item:hover {
    border-left-color: var(--accent);
    transform: translateX(4px);
}

.fact-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    font-family: var(--font-sans);
}

.fact-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ==========================================================================
   Capabilities & Feature Cards Grid
   ========================================================================== */

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.section-heading h2 {
    font-size: clamp(32px, 4.2vw, 52px);
    margin: 12px 0;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(7, 11, 20, 0.9));
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #38bdf8, transparent);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 35px -10px var(--glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(4deg);
    background: rgba(56, 189, 248, 0.18);
}

.feature-number {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}


/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.modal-tab.active {
    background: var(--gradient-primary);
    color: white;
}

/* Dashboard */
.dashboard {
    padding-top: 100px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.meeting-card {
    position: relative;
    overflow: hidden;
}

.meeting-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.meeting-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.meeting-status.scheduled {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.meeting-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.meeting-status.ended {
    background: rgba(113, 113, 122, 0.2);
    color: var(--text-muted);
}

.meeting-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.meeting-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meeting-code {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', monospace;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.meeting-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* Video Conference Room */
.conference-room {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.conference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.conference-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conference-title-group {
    display: flex;
    flex-direction: column;
}

.conference-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.conference-branding {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.7;
}

.conference-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--error);
    font-size: 0.875rem;
}

.recording-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.conference-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    position: relative;
    width: 100%;
}

.video-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    align-content: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Single participant - fill the space */
.video-grid.grid-1 .video-tile {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Two participants - side by side */
.video-grid.grid-2 .video-tile {
    width: calc(50% - 0.25rem);
    max-height: 100%;
}

/* 3-4 participants - 2x2 grid */
.video-grid.grid-3 .video-tile,
.video-grid.grid-4 .video-tile {
    width: calc(50% - 0.25rem);
    max-height: calc(50% - 0.25rem);
}

/* Many participants */
.video-grid.grid-many .video-tile {
    width: calc(33.33% - 0.5rem);
    max-height: calc(50% - 0.25rem);
}

.video-tile {
    position: relative;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    isolation: isolate;
}

.video-tile video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    background: #000;
}

.video-tile.speaking {
    box-shadow: 0 0 0 3px var(--success);
}

/* Audio Level Bars */
.audio-level {
    position: absolute;
    bottom: 50px;
    left: 10px;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 20px;
}

.audio-bar {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.1s ease;
}

.audio-bar:nth-child(1) { height: 4px; }
.audio-bar:nth-child(2) { height: 8px; }
.audio-bar:nth-child(3) { height: 12px; }
.audio-bar:nth-child(4) { height: 16px; }
.audio-bar:nth-child(5) { height: 20px; }

.audio-bar.active {
    background: var(--success);
}

.video-tile.screen-share {
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.video-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    font-size: 0.875rem;
    color: white;
}

.indicator.off {
    background: var(--error);
    color: white;
}

.indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.indicator.off {
    color: var(--error);
}

.avatar-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.participants-sidebar {
    width: 300px;
    background: var(--bg-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    flex-direction: column;
}

.participants-sidebar.active {
    display: flex;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.participant-item:hover {
    background: var(--bg-glass);
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 500;
}

.participant-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Conference Controls */
.conference-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.control-btn.active {
    background: var(--error);
}

.control-btn.leave {
    background: var(--error);
    width: 70px;
    height: 48px;
    border-radius: var(--radius-lg);
}

.control-btn.leave:hover {
    background: #dc2626;
}

/* Waiting Room */
.waiting-room {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.waiting-card {
    max-width: 480px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
}

.waiting-animation {
    margin-bottom: 2rem;
}

.waiting-animation svg {
    width: 120px;
    height: 120px;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.waiting-card h2 {
    margin-bottom: 1rem;
}

.waiting-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Alerts & Notifications */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--info);
    color: var(--info);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    animation: toastSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-glass);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .calendar-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar-nav {
        display: none;
    }
    
    .navbar-actions {
        gap: 0.5rem;
    }
    
    .navbar-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 1.25rem;
        font-size: 1.125rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .dashboard-header > div {
        width: 100%;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Video Conference Room */
    .conference-header {
        padding: 0.75rem 1rem;
    }
    
    .conference-title {
        font-size: 1.125rem;
    }
    
    .conference-timer {
        font-size: 0.875rem;
    }
    
    /* Video Grid - Mobile Optimized */
    .video-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
    }
    
    .video-grid.grid-1 .video-tile,
    .video-grid.grid-2 .video-tile,
    .video-grid.grid-3 .video-tile,
    .video-grid.grid-4 .video-tile,
    .video-grid.grid-many .video-tile {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        max-height: 60vh !important;
    }
    
    /* Participants Sidebar - Mobile Fullscreen */
    .participants-sidebar {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        background: rgba(15, 15, 26, 0.95);
        backdrop-filter: blur(10px);
        display: none;
        flex-direction: column;
        animation: slideInRight 0.3s ease;
    }
    
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    
    .participants-sidebar.active {
        display: flex;
    }
    
    .sidebar-header {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .sidebar-content {
        padding: 1rem;
        overflow-y: auto;
        flex: 1;
    }
    
    .participant-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .participant-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Conference Controls - Mobile Optimized */
    .conference-controls {
        gap: 0.75rem;
        flex-wrap: wrap;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
    }
    
    .control-btn {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
        margin: 0;
    }
    
    .control-btn.leave {
        width: 100%;
        height: 56px;
        margin-top: 0.5rem;
    }
    
    /* Modal - Mobile Optimized */
    .modal {
        max-width: 95vw;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-tabs {
        flex-direction: row;
    }
    
    .modal-tab {
        flex: 1;
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    /* Fullscreen Join Modal - Mobile */
    .fullscreen-join-card {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .fullscreen-join-header h2 {
        font-size: 1.5rem;
    }
    
    .fullscreen-join-body .form-input {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .fullscreen-join-footer {
        padding: 1rem;
    }
    
    /* Chat - Mobile */
    .chat-messages {
        padding: 1rem;
    }
    
    .message-bubble {
        max-width: 80%;
        font-size: 1rem;
        padding: 1rem;
    }
    
    .chat-input-area {
        padding: 1rem;
    }
    
    .chat-input-area input {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .chat-input-area button {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Notes Modal - Mobile */
    .notes-card {
        width: 95vw;
        height: 85vh;
        margin: 1rem;
    }
    
    #meetingNotes {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    /* Calendar - Mobile */
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
    
    .calendar-day {
        padding: 0.5rem;
        font-size: 0.875rem;
        aspect-ratio: 1;
    }
    
    .calendar-weekdays span {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
    
    .day-meeting-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .day-meeting-time {
        font-size: 0.875rem;
        min-width: 60px;
    }
    
    .day-meeting-title {
        font-size: 0.9rem;
    }
    
    /* Features Grid - Mobile */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Pricing Cards - Mobile */
    .card {
        padding: 2rem;
    }
    
    .card h3 {
        font-size: 1.25rem;
    }
    
    .card .btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Footer - Mobile */
    footer {
        padding: 3rem 1rem 1rem;
    }
    
    footer .container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .footer-branding {
        justify-content: center;
    }
    
    /* Toast Container - Mobile */
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions .btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .conference-controls {
        padding: 0.75rem;
    }
    
    .control-btn {
        width: 52px;
        height: 52px;
        font-size: 1.125rem;
    }
    
    .control-btn.leave {
        height: 52px;
    }
    
    .video-tile {
        border-radius: 12px;
    }
    
    .video-tile video {
        border-radius: 12px;
    }
    
    .participants-sidebar {
        animation: slideInUp 0.3s ease;
    }
    
    @keyframes slideInUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .sidebar-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* Touch-friendly enhancements */
    .video-tile,
    .participant-item,
    .day-meeting-item,
    .meeting-card {
        min-height: 60px;
    }
    
    /* Prevent zoom on form inputs */
    .form-input {
        font-size: 16px;
    }
    
    /* Better spacing for small screens */
    .card {
        padding: 1.5rem;
    }
    
    .meeting-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meeting-actions .btn {
        width: 100%;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .video-grid.grid-many .video-tile {
        width: calc(50% - 0.375rem) !important;
        max-height: calc(50vh - 0.375rem) !important;
    }
    
    .participants-sidebar {
        width: 60%;
        max-width: 400px;
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .video-grid.grid-many .video-tile {
        width: calc(50% - 0.375rem) !important;
        max-height: calc(50vh - 0.375rem) !important;
    }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .control-btn {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Print styles */
@media print {
    .navbar,
    .conference-controls,
    .participants-sidebar,
    .sidebar-panel,
    .fullscreen-join-overlay,
    .modal-overlay,
    .toast-container {
        display: none !important;
    }
    
    .conference-main {
        height: auto !important;
    }
    
    .video-grid {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }


/* Sidebar & Tabs */
.sidebar-panel {
    width: 300px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.sidebar-panel.active {
    display: flex;
}

.sidebar-header-tabs {
    display: flex;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.02);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.close-sidebar-btn {
    width: 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.close-sidebar-btn:hover {
    color: var(--text-primary);
}

/* Chat Styles */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}

.message-bubble.received {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.message-bubble.sent {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.message-bubble.private {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.message-time {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
    display: block;
}

.message-sender {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-muted);
}

.system-message {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0.5rem 0;
    opacity: 0.7;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}


.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.chat-input-area button:hover {
    transform: scale(1.05);
}

.badge {
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Notes Modal */
/* Notes Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.notes-card {
    max-width: 800px;
    width: 90%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.notes-toolbar {
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#meetingNotes {
    flex: 1;
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

#meetingNotes:focus {
    border-color: var(--primary);
}

.spacer { flex: 1; }

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Utility */
.hidden {
    display: none !important;
}

/* Dashboard Calendar Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

.dashboard-main {
    min-width: 0;
}

.calendar-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.calendar-card {
    padding: 1.25rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
}

.calendar-day:hover {
    background: var(--bg-glass);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.today {
    background: var(--bg-glass);
    border: 1px solid var(--primary);
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--primary);
    color: white;
}

.calendar-day.has-meetings::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.calendar-day.selected.has-meetings::after {
    background: white;
}

/* Day meetings list */
.day-meeting-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-glass);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.day-meeting-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.day-meeting-time {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    min-width: 50px;
}

.day-meeting-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-meeting-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.day-meeting-status.scheduled {
    background: var(--info);
}

.day-meeting-status.active {
    background: var(--success);
}

.day-meeting-status.ended {
    background: var(--text-muted);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .calendar-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .calendar-sidebar {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Meeting Control Buttons - Circular Wowdash Style
   ===================================================== */

.conference-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Active state (mic/cam OFF) */
.control-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.control-btn.active:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

/* Screen share active */
.control-btn#screenBtn.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* Leave button - danger styling */
.control-btn.leave {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    margin-left: 1rem;
}

.control-btn.leave:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

/* Badge on control buttons */
.control-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* SVG icon sizing */
.control-btn svg {
    width: 24px;
    height: 24px;
}

/* Iconify icon sizing */
.control-btn .iconify {
    font-size: 24px;
}

/* Tooltip on hover */
.control-btn::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 8px;
}

.control-btn:hover::before {
    opacity: 1;
}

/* Responsive controls */
@media (max-width: 768px) {
    .conference-controls {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 44px;
        height: 44px;
    }
    
    .control-btn svg,
    .control-btn .iconify {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
    
    .control-btn.leave {
        margin-left: 0.5rem;
    }
}

/* Dark Select Dropdown Styling */
select.dark-select,
.sidebar-content select,
#templateSelect {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

select.dark-select:hover,
.sidebar-content select:hover,
#templateSelect:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
}

select.dark-select:focus,
.sidebar-content select:focus,
#templateSelect:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

select.dark-select option,
.sidebar-content select option,
#templateSelect option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

select.dark-select option:hover,
.sidebar-content select option:hover,
#templateSelect option:hover {
    background: var(--primary);
}

/* Minutes Quick Insert Buttons */
.minutes-quick-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.minutes-quick-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.minutes-quick-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =====================================================
   Enhanced Modal Styles
   ===================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 35, 0.98));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.1);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    padding: 0 1.5rem;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.modal form {
    padding: 1.5rem;
}

.modal .form-group {
    margin-bottom: 1.25rem;
}

.modal .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.modal .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modal .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.modal .form-input::placeholder {
    color: var(--text-muted);
}

.modal .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

/* Responsive Features Grid */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .modal {
        max-width: 100%;
        margin: 0.5rem;
    }
}

/* Footer link hover */
footer a:hover {
    color: var(--primary-light) !important;
}

/* Responsive Schedule Form */
@media (max-width: 900px) {
    #scheduleForm > div {
        grid-template-columns: 1fr !important;
    }
}

/* Dashboard full-width styling */
.dashboard-layout {
    max-width: 100%;
}

.dashboard {
    padding-top: 100px;
}

/* Stat card styling */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* =====================================================
   Full-Screen Join Overlay
   ===================================================== */

.fullscreen-join-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.fullscreen-join-overlay.active {
    display: flex;
}

/* Animated background orbs */
.fullscreen-join-overlay::before,
.fullscreen-join-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 15s ease-in-out infinite;
}

.fullscreen-join-overlay::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -100px;
    left: -100px;
}

.fullscreen-join-overlay::after {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    bottom: -80px;
    right: -80px;
    animation-delay: -7s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.fullscreen-join-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.95));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 120px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    padding: 0;
    overflow: hidden;
    animation: cardAppear 0.4s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fullscreen-join-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fullscreen-join-header .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.fullscreen-join-header .logo-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.fullscreen-join-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fullscreen-join-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.fullscreen-join-body {
    padding: 2rem;
}

.fullscreen-join-body .form-group {
    margin-bottom: 1.5rem;
}

.fullscreen-join-body .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.fullscreen-join-body .form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.fullscreen-join-body .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.fullscreen-join-body .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.fullscreen-join-body .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.fullscreen-join-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.fullscreen-join-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.fullscreen-join-footer a:hover {
    color: var(--primary);
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 24px;
    height: 24px;
    stroke: url(#footerGrad);
}

.footer-branding span {
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.fullscreen-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.fullscreen-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Waiting for acceptance screen */
.fullscreen-waiting-state {
    text-align: center;
    padding: 3rem 2rem;
}

.waiting-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.waiting-spinner svg {
    width: 100%;
    height: 100%;
}

.waiting-spinner circle {
    stroke-dasharray: 220;
    stroke-dashoffset: 50;
    animation: spinnerRotate 2s linear infinite;
    transform-origin: center;
}

@keyframes spinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fullscreen-waiting-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.fullscreen-waiting-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.fullscreen-waiting-state .waiting-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* =====================================================
   Auth Tabs for Fullscreen Login/Register
   ===================================================== */

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 3px 3px 0 0;
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-message:empty {
    display: none;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ========== TRANSCRIPTION STYLES ========== */

/* Transcript Messages Container */
.transcript-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
}

.transcript-messages::-webkit-scrollbar {
    width: 6px;
}

.transcript-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Transcript Entry */
.transcript-entry {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid var(--primary);
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.transcript-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Monaco', 'Consolas', monospace;
}

.transcript-speaker {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.transcript-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-top: 0.25rem;
}

/* Transcript Empty State */
.transcript-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    gap: 0.5rem;
    padding: 2rem;
}

.transcript-empty p {
    margin: 0;
}

/* Transcript Status */
.transcript-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--success);
    margin-left: 0.5rem;
}

/* Recording Pulse Animation */
.recording-pulse {
    display: inline-block;
    color: var(--error);
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Recording Dot in Control Bar */
.recording-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: recordingPulse 1s infinite;
}

/* Transcription Indicator in Tab */
.transcription-indicator {
    width: 6px;
    height: 6px;
    background: var(--error);
    border-radius: 50%;
    margin-left: 4px;
    animation: recordingPulse 1s infinite;
}

/* Transcription Loading Overlay */
.transcription-loading {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Summary Modal */
.summary-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.summary-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.summary-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Meeting Summary Styles */
.meeting-summary {
    color: var(--text-primary);
}

.meeting-summary .summary-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meeting-summary .summary-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.meeting-summary .summary-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.meeting-summary .summary-section {
    margin-bottom: 1.5rem;
}

.meeting-summary .summary-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-light);
}

.meeting-summary .summary-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meeting-summary .summary-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    line-height: 1.5;
}

.meeting-summary .summary-section li:last-child {
    border-bottom: none;
}

.meeting-summary .assignee {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Control button position for recording dot */
.control-btn {
    position: relative;
}

/* ==========================================================================
   2TI SOVEREIGN MEET - MULTI-LAYOUT & TIKTOK CO-HOST DOCK SYSTEM
   ========================================================================== */

/* Layout Switcher Floating Bar */
.sovereign-layout-bar {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    z-index: 40;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.layout-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.layout-pill-btn:hover {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.1);
}

.layout-pill-btn.active {
    color: #020617;
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

/* Viewport Containers */
.conference-main {
    position: relative;
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--bg-primary);
}

.sovereign-viewport {
    position: relative;
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 12px;
    gap: 12px;
    overflow: hidden;
}

/* 1. STAGE MODE (Screenshare / Spotlight Primary + Docked Avatar Rail) */
.sovereign-viewport.layout-stage {
    flex-direction: row;
}

.sovereign-viewport.layout-stage .sovereign-stage {
    flex: 1;
    height: 100%;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: #020617;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sovereign-viewport.layout-stage .sovereign-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sovereign-viewport.layout-stage .sovereign-dock {
    width: 240px;
    max-width: 260px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
}

.sovereign-viewport.layout-stage .sovereign-dock .video-tile {
    width: 100%;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

/* 2. SPLIT MODE (TikTok Live Co-Host / Battle Split 60/40) */
.sovereign-viewport.layout-split {
    flex-direction: row;
}

.sovereign-viewport.layout-split .sovereign-stage {
    flex: 6;
    height: 100%;
    border-radius: var(--radius-lg);
    background: #020617;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sovereign-viewport.layout-split .sovereign-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sovereign-viewport.layout-split .sovereign-dock {
    flex: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.sovereign-viewport.layout-split .sovereign-dock .video-tile {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

/* 3. PiP MODE (Full Screen + Floating Corner Box) */
.sovereign-viewport.layout-pip {
    position: relative;
    padding: 0;
}

.sovereign-viewport.layout-pip .sovereign-stage {
    width: 100%;
    height: 100%;
    background: #000;
}

.sovereign-viewport.layout-pip .sovereign-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sovereign-viewport.layout-pip .sovereign-dock {
    position: absolute;
    bottom: 84px;
    right: 24px;
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
    pointer-events: auto;
}

.sovereign-viewport.layout-pip .sovereign-dock .video-tile {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.3);
}

/* 4. GRID MODE (Dynamic Auto-Fit Gallery) */
.sovereign-viewport.layout-grid {
    display: flex;
    flex-direction: column;
}

.sovereign-viewport.layout-grid .sovereign-stage {
    display: none;
}

.sovereign-viewport.layout-grid .sovereign-dock {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    align-content: center;
    justify-content: center;
}

.sovereign-viewport.layout-grid .sovereign-dock .video-tile {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

/* Speaking Halo Pulse */
.video-tile.speaking,
.strip-tile.speaking {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary), 0 0 24px rgba(56, 189, 248, 0.45) !important;
}

/* Mobile-First TikTok Live Horizontal Dock Adjustment (< 840px) */
@media (max-width: 840px) {
    .sovereign-viewport.layout-stage,
    .sovereign-viewport.layout-split {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .sovereign-viewport.layout-stage .sovereign-stage {
        flex: 1 1 60% !important;
        height: auto !important;
        min-height: 220px;
    }

    .sovereign-viewport.layout-stage .sovereign-dock,
    .sovereign-viewport.layout-split .sovereign-dock {
        width: 100% !important;
        max-width: 100% !important;
        height: 110px !important;
        flex: 0 0 110px !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }

    .sovereign-viewport.layout-stage .sovereign-dock .video-tile,
    .sovereign-viewport.layout-split .sovereign-dock .video-tile {
        width: 130px !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        scroll-snap-align: start;
        flex-shrink: 0 !important;
        border-radius: var(--radius-md) !important;
    }

    .sovereign-viewport.layout-pip .sovereign-dock {
        bottom: 74px;
        right: 12px;
        width: 140px;
    }

    .sovereign-layout-bar {
        top: 8px;
        padding: 2px 4px;
    }
    .layout-pill-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    .layout-pill-btn span.label-text {
        display: none;
    }
}

/* Executive Secretary & Agenda HUD Tab */
.agenda-hud-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
}

.agenda-hud-item.completed {
    opacity: 0.55;
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(16, 185, 129, 0.2);
}

.agenda-hud-item.completed .agenda-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.agenda-check-box {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-grid;
    place-content: center;
}

.agenda-check-box:checked {
    background: var(--success);
    border-color: var(--success);
}

.agenda-check-box:checked::before {
    content: "✓";
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}



/* -------------------------------------------------------------------------- */
/* 2TI Sovereign Meet - Pixel-Perfect Reference UI (Air-Gapped Executive HUD) */
/* -------------------------------------------------------------------------- */

body.in-meeting {
    background-color: #070a12;
    overflow: hidden;
}

.conference-room {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #070a12;
    color: #f8fafc;
    font-family: var(--font-sans);
}

/* 1. macOS Style Header */
.sovereign-mac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 1.25rem;
    background: #0b101c;
    border-bottom: 1px solid #141c2e;
    flex-shrink: 0;
    gap: 1rem;
}

.window-traffic-lights {
    display: flex;
    align-items: center;
    gap: 8px;
}

.traffic-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.traffic-dot.red { background: #ef4444; }
.traffic-dot.yellow { background: #f59e0b; }
.traffic-dot.green { background: #10b981; }

.sovereign-mac-header .conference-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.sovereign-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #38bdf8;
}

.sovereign-mac-header .conference-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.sovereign-mac-header .conference-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
    margin-left: 0.75rem;
    font-family: var(--font-mono);
}

.sovereign-mac-header .header-right-pills {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pill-badge {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.pill-badge.pill-e2ee {
    background: #c6f6d5;
    color: #065f46;
}

.pill-badge.pill-whisper {
    background: #ede9fe;
    color: #6d28d9;
}

.pill-dot {
    font-size: 10px;
    color: #059669;
    line-height: 1;
}

/* 2. Conference Main Area */
.conference-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    background: #070a12;
}

.sovereign-stage-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    position: relative;
    overflow: hidden;
}

/* 2x2 Video Grid */
.sovereign-grid-2x2 {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    min-height: 0;
}

.executive-tile {
    position: relative;
    background: #0b101c;
    border: 1px solid #141c2e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.executive-tile.active-speaker {
    border: 2px solid #38bdf8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.28) !important;
}

.executive-tile .speaking-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #38bdf8;
    color: #070a12;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.6px;
    z-index: 10;
    text-transform: uppercase;
}

.executive-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.avatar-cyan { background: #bae6fd; color: #0284c7; }
.avatar-orange { background: #fed7aa; color: #ea580c; }
.avatar-green { background: #bbf7d0; color: #059669; }
.avatar-purple { background: #e9d5ff; color: #9333ea; }

.executive-tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
}

.executive-tile video.hidden {
    display: none !important;
}

.tile-bottom-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 18, 0.85) 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tile-primary-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.tile-tech-info {
    font-size: 11px;
    color: #64748b;
    font-family: var(--font-mono);
}

/* Floating Controls Capsule */
.sovereign-floating-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 0;
    flex-shrink: 0;
}

.floating-pill {
    background: rgba(13, 19, 34, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 9999px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.16);
}

.pill-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e2e8f0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-action-btn iconify-icon {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.pill-action-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 16px var(--glow);
}

.pill-action-btn:hover iconify-icon {
    transform: scale(1.1);
}

.pill-action-btn.active {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.55);
    color: #fca5a5;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.pill-action-btn.cyan-btn {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}
.pill-action-btn.cyan-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

.pill-action-btn.purple-btn {
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.25);
}
.pill-action-btn.purple-btn:hover {
    background: rgba(192, 132, 252, 0.25);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.3);
}

.pill-action-btn.red-btn {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}
.pill-action-btn.red-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* 3. Right Executive Sidebar */
.sovereign-hud-sidebar {
    width: 380px;
    background: #070a12;
    border-left: 1px solid #141c2e;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.hud-panel-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: 2px;
}

.hud-panel-sub {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
}

.hud-transcript-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 1.45;
    padding: 4px 0;
}

.transcript-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transcript-speaker {
    color: #38bdf8;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 11px;
}

.transcript-message {
    color: #94a3b8;
    font-size: 12px;
}

.hud-card {
    background: #090e1a;
    border: 1px solid #161e31;
    border-radius: 10px;
    padding: 12px 14px;
}

.hud-card-purple-border {
    border-color: rgba(192, 132, 252, 0.28);
}

.action-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px 0;
}

.action-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.35;
}

.action-row .checkmark {
    color: #34d399;
    font-weight: 700;
    margin-top: 1px;
}

.action-row .action-content {
    display: flex;
    flex-direction: column;
}

.action-title-text {
    color: #e2e8f0;
    font-weight: 500;
}

.action-assigned-text {
    color: #64748b;
    font-size: 10.5px;
    font-family: var(--font-mono);
}

.hud-button-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-hud-lmailer {
    background: #bae6fd;
    color: #0369a1;
    border: none;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 8px 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    transition: opacity 0.15s ease;
}

.btn-hud-lmailer:hover {
    opacity: 0.9;
}

.btn-hud-ics {
    background: #bbf7d0;
    color: #065f46;
    border: none;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 8px 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    transition: opacity 0.15s ease;
}

.btn-hud-ics:hover {
    opacity: 0.9;
}

.guarantee-box {
    background: #090e1a;
    border: 1px solid #161e31;
    border-radius: 10px;
    padding: 12px 14px;
}

.guarantee-title {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.guarantee-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
}

.guarantee-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guarantee-list .checkmark {
    color: #34d399;
    font-weight: 700;
}

/* 4. Bottom Telemetry Bar */
.sovereign-telemetry-bar {
    height: 32px;
    background: #050811;
    border-top: 1px solid #111726;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.telemetry-left {
    color: #64748b;
}

.telemetry-right {
    color: #34d399;
}

@media (max-width: 960px) {
    .sovereign-mac-header .conference-sub {
        display: none;
    }
    .sovereign-hud-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #141c2e;
        max-height: 280px;
    }
    .conference-main {
        flex-direction: column;
    }
    .sovereign-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .sovereign-telemetry-bar {
        font-size: 9.5px;
        padding: 0 0.75rem;
    }
}

/* Sovereign Dynamic Grid Layouts */
.sovereign-grid-2x2[data-count="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.sovereign-grid-2x2[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}
.sovereign-grid-2x2[data-count="3"],
.sovereign-grid-2x2[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.sovereign-grid-2x2[data-count="5"],
.sovereign-grid-2x2[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
}

/* Companion QR Modal */
.companion-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.companion-modal-overlay.hidden {
    display: none !important;
}
.companion-modal-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 2rem;
    color: #f8fafc;
    text-align: center;
    position: relative;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.companion-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.companion-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
}
.companion-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s;
}
.companion-close-btn:hover {
    color: #f8fafc;
}
.companion-modal-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-align: left;
}
.companion-qr-wrapper {
    background: #ffffff;
    padding: 1rem;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.25rem;
}
.companion-qr-wrapper canvas,
.companion-qr-wrapper img {
    display: block;
    width: 200px;
    height: 200px;
}
.companion-url-bar {
    display: flex;
    gap: 0.5rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 4px 6px 4px 10px;
    margin-bottom: 1rem;
}
.companion-url-bar input {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    outline: none;
}
.companion-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 500;
}
.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulseGlow 1.5s infinite;
}
.status-pulse-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 1.5s infinite;
}

/* Companion Viewfinder (Mobile Fullscreen Mode) */
.companion-viewfinder {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.companion-viewfinder.hidden {
    display: none !important;
}
.companion-viewfinder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.companion-viewfinder-hud {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    pointer-events: none;
}
.companion-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.companion-hud-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 999px;
}
.companion-hud-room {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 6px 12px;
    border-radius: 999px;
}
.companion-hud-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    pointer-events: auto;
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}
.companion-ctrl-btn {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.companion-ctrl-btn span.iconify {
    font-size: 1.35rem;
}
.companion-ctrl-btn.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #38bdf8;
}
.companion-ctrl-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}
.companion-dimmed-overlay {
    position: absolute;
    inset: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    z-index: 50;
}
.companion-dimmed-overlay.hidden {
    display: none !important;
}
.dimmed-message p {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
}
