/* ========================================
   Mamnoon.ai - Complete Stylesheet
   style.css
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: white;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

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

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-600);
    font-weight: 500;
}

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

.nav-auth {
    display: flex;
    gap: 12px;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* Demo Window */
.demo-window {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.demo-header {
    background: var(--gray-100);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.demo-dots span:first-child {
    background: #ef4444;
}

.demo-dots span:nth-child(2) {
    background: #f59e0b;
}

.demo-dots span:last-child {
    background: #10b981;
}

.demo-title {
    font-size: 13px;
    color: var(--gray-500);
    margin-left: auto;
}

.demo-content {
    padding: 24px;
}

.demo-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.demo-message.sent {
    flex-direction: row-reverse;
}

.demo-avatar {
    font-size: 24px;
}

.demo-bubble {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 280px;
}

.demo-message.sent .demo-bubble {
    background: var(--primary);
    color: white;
}

.demo-bubble .original {
    font-size: 14px;
    margin-bottom: 4px;
}

.demo-bubble .translated {
    font-size: 12px;
    opacity: 0.8;
}

/* Logos Section */
.logos {
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}

.logos-title {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-400);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
}

/* Features */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--gray-50);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray-600);
    font-size: 15px;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gray-300);
    margin-top: 32px;
}

/* Pricing */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-badge.enterprise {
    background: linear-gradient(135deg, #059669, #10b981);
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-description {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
}

.price-period {
    font-size: 16px;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--gray-600);
}

.pricing-trial {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

/* Use Cases */
.use-cases {
    padding: 100px 0;
    background: var(--gray-50);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.use-case {
    text-align: center;
    padding: 32px;
}

.use-case-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.use-case h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.use-case p {
    color: var(--gray-600);
    font-size: 14px;
}

/* CTA */
.cta {
    padding: 100px 0;
    background: var(--gradient);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--gray-900);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 16px;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    padding: 6px 0;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 14px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.back-to-home:hover {
    color: var(--primary);
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-500);
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
}

.forgot-link {
    color: var(--primary);
}

.auth-error {
    background: #fef2f2;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-top: 16px;
    font-size: 14px;
}

.auth-success {
    background: #ecfdf5;
    color: var(--success);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-top: 16px;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    color: var(--gray-600);
}

.auth-terms {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--gray-500);
}

.selected-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.plan-label {
    font-size: 14px;
    color: var(--gray-500);
}

.plan-name {
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
}

.plan-change {
    margin-left: auto;
    font-size: 14px;
}

/* Checkout */
.checkout-card {
    max-width: 480px;
}

.checkout-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.plan-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.plan-info p {
    color: var(--gray-500);
    font-size: 14px;
}

.plan-price .price {
    font-size: 36px;
    font-weight: 800;
}

.plan-price .period {
    color: var(--gray-500);
}

.checkout-features {
    list-style: none;
    margin-bottom: 32px;
}

.checkout-features li {
    padding: 10px 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.checkout-skip {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-500);
}

.checkout-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-400);
}

/* App Page */
.app-page {
    background: var(--gray-100);
    min-height: 100vh;
}

.app-nav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    height: 64px;
}

.app-nav .nav-container {
    height: 64px;
}

.app-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.user-tier {
    padding: 4px 12px;
    background: var(--gray-200);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.user-tier.tier-personal {
    background: #dbeafe;
    color: #1e40af;
}

.user-tier.tier-professional {
    background: #fef3c7;
    color: #92400e;
}

.user-tier.tier-enterprise {
    background: #ede9fe;
    color: #5b21b6;
}

.user-name {
    font-weight: 600;
}

.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 64px);
}

.app-sidebar {
    background: white;
    border-right: 1px solid var(--gray-200);
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.plan-status {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.plan-usage {
    font-size: 14px;
    color: var(--gray-500);
}

.sidebar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background: var(--gray-100);
}

.sidebar-btn-icon {
    font-size: 20px;
}

.language-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
}

.language-select-large {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 18px;
    background: white;
    cursor: pointer;
    margin-bottom: 16px;
}

.language-select-large:focus {
    border-color: var(--primary);
    outline: none;
}

.app-main {
    padding: 32px;
}

.app-state {
    height: 100%;
}

/* Active Session Banner */
.active-session-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    animation: pulse-banner 2s infinite;
}

@keyframes pulse-banner {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.session-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-icon {
    font-size: 12px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.session-text {
    font-size: 14px;
    color: #92400e;
}

.session-text strong {
    font-family: monospace;
    letter-spacing: 2px;
}

.session-time {
    font-size: 12px;
    color: #b45309;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Welcome State */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 500px;
}

.welcome-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.welcome-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.welcome-content p {
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 400px;
}

.welcome-actions {
    display: flex;
    gap: 16px;
}

/* Room State */
.room-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

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

.room-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.room-code {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);
    font-family: monospace;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

.copy-btn:hover {
    opacity: 1;
}

.room-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
}

.timer-icon {
    font-size: 14px;
}

.timer-value {
    font-weight: 700;
    font-family: monospace;
}

.timer-label {
    font-size: 11px;
    color: var(--gray-500);
}

.participant-count {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
}

.count-icon {
    font-size: 14px;
}

.count-value {
    font-weight: 600;
}

/* Multi-party Room Layout */
.room-content-multiparty {
    display: flex;
    gap: 16px;
    height: calc(100vh - 160px);
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Video Grid */
.video-grid {
    flex: 1;
    display: grid;
    gap: 8px;
    background: #111;
    border-radius: var(--radius);
    padding: 8px;
    overflow: hidden;
    min-height: 400px;
}

.video-grid.participants-1 {
    grid-template-columns: 1fr;
}

.video-grid.participants-2 {
    grid-template-columns: repeat(2, 1fr);
}

.video-grid.participants-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.video-grid.participants-3 .video-tile:first-child {
    grid-column: span 2;
}

.video-grid.participants-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.video-grid.participants-5,
.video-grid.participants-6 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.video-grid.participants-7,
.video-grid.participants-8,
.video-grid.participants-9 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.video-section {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 450px;
}

.video-section iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
}

.video-tile {
    background: #1a1a2e;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-tile-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-tile-status {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.video-tile-status span {
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.video-tile.speaking {
    box-shadow: 0 0 0 3px #22c55e;
}

.video-tile.muted .video-tile-status .mic-status {
    color: #ef4444;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.video-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    margin-top: 12px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    border: none;
    background: var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: var(--gray-200);
}

.control-btn.active {
    background: var(--primary);
    color: white;
}

.control-btn.voice-btn.active {
    background: #10b981;
    color: white;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.control-btn.danger {
    background: #fecaca;
    color: #dc2626;
}

.control-btn.danger:hover {
    background: #fca5a5;
}

.control-btn.muted {
    background: #fee2e2;
}

.control-btn.muted .control-icon {
    opacity: 0.5;
}

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

.control-label {
    font-size: 11px;
    font-weight: 500;
}

/* Fullscreen styles - keep controls visible */
.main-area:fullscreen {
    background: #000;
    display: flex;
    flex-direction: column;
}

.main-area:fullscreen .video-grid {
    flex: 1;
}

.main-area:fullscreen .controls-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    margin: 16px auto;
    width: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-area:fullscreen .video-container {
    min-height: auto;
    height: 100%;
}

.main-area:fullscreen .video-container iframe {
    min-height: auto;
}

/* Transcript Dropdown */
.transcript-dropdown {
    position: relative;
    display: inline-block;
}

.transcript-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
    min-width: 180px;
}

.transcript-menu.show {
    display: block;
}

.transcript-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    transition: background 0.2s;
}

.transcript-option:hover {
    background: var(--gray-100);
}

/* Room Sidebar */
.room-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-tab:hover {
    color: var(--gray-700);
    background: var(--gray-50);
}

.sidebar-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -1px;
}

.tab-count {
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.sidebar-tab.active .tab-count {
    background: var(--primary);
    color: white;
}

.tab-badge {
    color: var(--primary);
    font-size: 8px;
}

.sidebar-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

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

/* Participants List */
.participants-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.participant-item:hover {
    background: var(--gray-50);
}

.participant-item.speaking {
    background: rgba(34, 197, 94, 0.1);
}

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

.participant-info {
    flex: 1;
    min-width: 0;
}

.participant-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-name .host-badge {
    background: var(--primary);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
}

.participant-lang {
    font-size: 12px;
    color: var(--gray-500);
}

.participant-status {
    display: flex;
    gap: 8px;
}

.participant-status span {
    font-size: 14px;
    opacity: 0.6;
}

.participant-status span.muted {
    opacity: 1;
    color: var(--danger);
}

.participant-status span.speaking-indicator {
    color: #22c55e;
    animation: pulse-speak 1s infinite;
}

/* Participant Controls (host only) */
.participant-controls {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.participant-control-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.participant-control-btn:hover {
    background: var(--gray-200);
}

.participant-control-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.participant-control-btn.danger:hover {
    background: #fecaca;
}

/* Host Controls Panel */
.host-controls-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    margin: 12px;
    padding: 12px;
}

.host-controls-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.host-controls-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.host-control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.host-control-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

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

.host-control-btn.danger {
    color: #dc2626;
    border-color: #fecaca;
}

.host-control-btn.danger:hover {
    background: #fee2e2;
}

.host-control-btn span {
    font-size: 11px;
}

@keyframes pulse-speak {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Chat in sidebar */
#chatPanel .messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

#chatPanel .chat-input {
    padding: 12px;
    border-top: 1px solid var(--gray-200);
}

#chatPanel .chat-input input {
    padding: 10px 12px;
    font-size: 13px;
}

.chat-section {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.empty-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-400);
    font-size: 13px;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--gray-200);
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
}

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

/* Messages */
.message {
    margin-bottom: 16px;
    max-width: 85%;
}

.message.sent {
    margin-left: auto;
}

.message.system {
    max-width: 100%;
    text-align: center;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
}

.message.sent .message-bubble {
    background: var(--gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
    background: var(--gray-100);
    border-bottom-left-radius: 4px;
}

.message.system .message-bubble {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 13px;
    padding: 8px 16px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.message-sender {
    font-weight: 600;
}

.message-text {
    font-size: 15px;
    line-height: 1.5;
}

.message-original {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
}

/* Conversation Sidebar Messages */
.chat-message {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--gray-50);
}

.chat-message.sent {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
}

.chat-message.received {
    background: var(--gray-50);
    border-left: 3px solid var(--gray-300);
}

.chat-message .message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    opacity: 1;
}

.chat-message .message-icon {
    font-size: 12px;
}

.chat-message .message-sender {
    font-weight: 600;
    font-size: 12px;
    color: var(--gray-700);
}

.chat-message .message-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-left: auto;
}

.chat-message .message-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-800);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 100%;
}

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400);
}

.room-code-input {
    text-transform: uppercase;
    text-align: center;
    font-size: 24px;
    letter-spacing: 4px;
    font-weight: 700;
}

/* Paywall Modal */
.paywall-content {
    max-width: 600px;
    text-align: center;
}

.paywall-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.paywall-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.paywall-content>p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.paywall-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.paywall-plan {
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.paywall-plan:hover,
.paywall-plan.selected {
    border-color: var(--primary);
}

.paywall-plan.featured {
    border-color: var(--primary);
}

.paywall-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 50px;
    white-space: nowrap;
}

.paywall-plan h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.paywall-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.paywall-plan p:last-child {
    font-size: 12px;
    color: var(--gray-500);
}

/* Notifications */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--gray-900);
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success);
}

.notification-error {
    background: var(--danger);
}

.notification-warning {
    background: var(--warning);
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-container {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }

    .room-content-multiparty {
        flex-direction: column;
        height: auto;
    }

    .room-sidebar {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .nav-auth {
        display: none;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .paywall-plans {
        grid-template-columns: 1fr;
    }

    .room-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .room-code {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .controls-bar {
        gap: 8px;
        padding: 12px;
    }

    .control-btn {
        padding: 10px 14px;
    }

    .control-label {
        display: none;
    }

    .video-grid {
        padding: 4px;
        gap: 4px;
    }
}

/* ========================================
   Voice & Subtitle System
   ======================================== */

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
}

/* Subtitle Overlay */
.subtitle-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 800px;
    z-index: 100;
    display: none;
    pointer-events: none;
}

.subtitle-text {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    animation: subtitleFadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.subtitle-text.interim {
    background: rgba(99, 102, 241, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.subtitle-text.fade-out {
    animation: subtitleFadeOut 0.5s ease forwards;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes subtitleFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.subtitle-sender {
    font-size: 12px;
    color: var(--primary-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.subtitle-main {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.subtitle-original {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.speaking-indicator {
    display: inline-block;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Mic Button Container */
.mic-container {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.mic-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gray-800);
    color: white;
    border: 2px solid var(--gray-600);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mic-btn:hover {
    background: var(--gray-700);
    border-color: var(--gray-500);
    transform: scale(1.05);
}

.mic-btn.listening {
    background: var(--primary);
    border-color: var(--primary-light);
    animation: micPulse 2s ease infinite;
}

@keyframes micPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

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

.mic-status {
    font-size: 14px;
}

.mic-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mic-warning {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content .spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-width: 4px;
}

.loading-content p {
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   Room History
   ======================================== */

.room-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--gray-800);
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.2s;
}

.history-item:hover {
    background: var(--gray-700);
}

.history-room {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-status {
    font-size: 10px;
}

.history-code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-light);
}

.history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.history-time {
    color: var(--gray-400);
    font-size: 11px;
}

.history-duration {
    color: var(--gray-500);
    font-size: 11px;
}

.history-empty,
.history-loading {
    text-align: center;
    padding: 16px;
    color: var(--gray-500);
    font-size: 13px;
}

.history-item.active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 8px;
    margin: -4px;
}

.end-session-btn {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: all 0.2s;
}

.end-session-btn:hover {
    background: #ef4444;
    color: white;
}

.rejoin-session-btn {
    background: rgba(34, 197, 94, 0.2);
    border: none;
    color: #22c55e;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s;
}

.rejoin-session-btn:hover {
    background: #22c55e;
    color: white;
}

/* ========================================
   Email Verification Message
   ======================================== */

.verification-message {
    text-align: center;
    padding: 24px;
}

.verification-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.verification-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--gray-100);
}

.verification-message p {
    color: var(--gray-400);
    margin-bottom: 8px;
    line-height: 1.6;
}

.verification-message strong {
    color: var(--primary-light);
}

.auth-success {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 14px;
}

.verification-warning {
    text-align: left;
}

.verification-warning strong {
    display: block;
    margin-bottom: 8px;
    color: #f59e0b;
}

.verification-warning p {
    margin: 4px 0;
    color: var(--gray-300);
}

.verification-warning .resend-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
}

/* ========================================
   Invite Modal
   ======================================== */

.invite-modal-content {
    max-width: 440px;
}

.invite-section {
    margin-bottom: 16px;
}

.invite-section label {
    display: block;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.invite-link-box {
    display: flex;
    gap: 8px;
}

.invite-link-box input {
    flex: 1;
    padding: 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 13px;
}

.invite-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: 10px;
}

.room-code-label {
    color: var(--gray-500);
    font-size: 13px;
}

.invite-code {
    font-size: 22px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 4px;
    color: var(--primary);
}

.invite-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray-500);
    font-size: 12px;
    text-transform: uppercase;
}

.invite-divider::before,
.invite-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-800);
}

.invite-divider span {
    padding: 0 16px;
}

.calendar-buttons {
    display: flex;
    gap: 12px;
}

.calendar-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invite-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--gray-600);
    font-size: 13px;
    margin-top: 16px;
}

.invite-tip .tip-icon {
    font-size: 16px;
}

.email-invite-form {
    display: flex;
    gap: 8px;
}

.email-invite-form input {
    flex: 1;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-800);
    font-size: 14px;
}

.email-invite-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.email-invite-form input::placeholder {
    color: var(--gray-400);
}

.email-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.email-status.success {
    color: var(--success);
}

.email-status.error {
    color: #ef4444;
}

.email-status.sending {
    color: var(--gray-400);
}

/* Quick Start Divider */
.quick-start-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px;
    color: var(--gray-500);
    font-size: 12px;
}

.quick-start-divider::before,
.quick-start-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-800);
}

.quick-start-divider span {
    padding: 0 16px;
}

/* Create Personal Room Section */
.create-personal-room-section {
    text-align: center;
}

.personal-room-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
}

.personal-room-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px dashed rgba(34, 197, 94, 0.3);
}

.personal-room-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border-color: rgba(34, 197, 94, 0.5);
}

/* Pending Invites */
.pending-invites-section {
    margin-top: 32px;
    padding: 20px;
    background: var(--gray-900);
    border-radius: 12px;
    border: 1px solid var(--gray-800);
}

.pending-invites-section h3 {
    font-size: 14px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.pending-invite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-800);
    border-radius: 8px;
    margin-bottom: 8px;
}

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

.pending-invite-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pending-invite-code {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-light);
    font-size: 16px;
}

.pending-invite-time {
    color: var(--gray-500);
    font-size: 12px;
}

.pending-invite-actions {
    display: flex;
    gap: 8px;
}

/* Invite Ready Badge */
.invite-ready-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: #22c55e;
    font-weight: 500;
    margin-bottom: 24px;
}

.invite-ready-badge .badge-icon {
    font-size: 18px;
}

/* Start Room Section */
.start-room-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
}

.start-room-hint {
    text-align: center;
    color: var(--gray-500);
    font-size: 12px;
    margin-top: 12px;
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-400);
    border: 1px dashed var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-800);
    color: white;
    border-color: var(--gray-600);
}

/* Enhanced Invite Modal */
.invite-modal-large {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Schedule Inputs */
.schedule-inputs {
    display: flex;
    gap: 12px;
}

.schedule-input {
    flex: 1;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-800);
    font-size: 14px;
}

.schedule-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.timezone-display {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Personal Message Input */
.invite-message-input {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-800);
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.invite-message-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.invite-message-input::placeholder {
    color: var(--gray-400);
}

.char-count {
    text-align: right;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    background: var(--gray-800);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 70px;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn span {
    font-size: 11px;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.sms:hover {
    background: #5856D6;
    border-color: #5856D6;
}

.share-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.share-btn.email:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Compact Share Buttons */
.share-via-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.share-via-section label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.share-buttons-compact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn-small {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.share-btn-small:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.share-btn-small svg {
    opacity: 0.7;
}

.share-btn-small:hover svg {
    opacity: 1;
}

/* Room Code Section */
.room-code-section {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.room-code-section .invite-code-box {
    background: transparent;
    padding: 0;
}

.room-code-label {
    color: var(--gray-400);
    font-size: 13px;
    margin-right: 8px;
}

/* Custom Confirm Modal */
.confirm-modal-content {
    max-width: 360px;
    text-align: center;
    padding: 32px;
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.confirm-modal-content h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 8px;
}

.confirm-modal-content p {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons .btn {
    flex: 1;
    max-width: 140px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Personal Room Card on Dashboard */
.personal-room-card-dashboard {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
}

.personal-room-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.personal-room-header .icon {
    font-size: 20px;
}

.personal-room-header h3 {
    font-size: 16px;
    color: white;
    margin: 0;
}

.personal-room-link {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.personal-room-link input {
    flex: 1;
    padding: 10px 12px;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-family: monospace;
}

.personal-room-card-dashboard .btn-success {
    width: 100%;
}

/* Personal Room in Sidebar */
.personal-room-sidebar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

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

.personal-room-header-sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.personal-room-link-sidebar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.personal-room-link-sidebar input {
    flex: 1;
    padding: 8px 10px;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-family: monospace;
    min-width: 0;
}

.btn-icon-small {
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-small:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.delete-room-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 24px;
    }

    /* Hide desktop nav items */
    .nav-links,
    .nav-auth {
        display: none !important;
    }

    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--gray-700);
    }

    /* Mobile Menu Dropdown */
    .nav-mobile-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 8px 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        z-index: 1001;
    }

    .nav-mobile-menu.active {
        display: flex;
    }

    .nav-mobile-menu>a {
        padding: 14px 24px;
        color: var(--gray-700);
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-mobile-menu>a:hover {
        background: var(--gray-50);
        color: var(--primary);
    }

    .nav-mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 24px;
    }

    .nav-mobile-auth .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .nav-mobile-menu {
        display: none !important;
    }
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
        margin: 0 auto 24px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
        justify-content: center;
    }

    .stat-number {
        font-size: 24px;
    }

    .hero-visual {
        display: none;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Mobile App Container */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .app-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        padding: 16px;
        overflow-y: auto;
        background: white;
    }

    .app-sidebar.mobile-open {
        display: block;
    }

    .app-main {
        padding: 16px;
        padding-bottom: 80px;
    }

    /* Mobile sidebar toggle button */
    .mobile-sidebar-toggle {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
        background: var(--gradient);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        cursor: pointer;
    }

    .mobile-sidebar-close {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        background: var(--gray-100);
        border: none;
        border-radius: 50%;
        font-size: 20px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}

@media (min-width: 769px) {

    .mobile-sidebar-toggle,
    .mobile-sidebar-close {
        display: none !important;
    }
}

/* Mobile Welcome State */
@media (max-width: 768px) {
    .welcome-content {
        padding: 24px 16px;
    }

    .welcome-icon {
        font-size: 48px !important;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .welcome-content p {
        font-size: 14px;
    }

    .welcome-actions {
        flex-direction: column;
        gap: 12px;
    }

    .welcome-actions .btn {
        width: 100%;
    }
}

/* Mobile Room UI */
@media (max-width: 768px) {
    .room-header {
        padding: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .room-info {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .room-code {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .room-timer {
        font-size: 13px;
    }

    .room-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }

    .room-content-multiparty {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 140px);
        gap: 8px;
        padding: 8px;
    }

    .main-area {
        flex: none;
        height: auto;
        min-height: 350px;
    }

    .room-sidebar {
        width: 100%;
        height: auto;
        min-height: 280px;
        max-height: 50vh;
    }

    .video-container {
        min-height: 320px;
        height: 100%;
        overflow: visible;
        /* Allow Daily controls to show */
    }

    .video-container iframe {
        min-height: 320px;
        height: 100%;
    }

    /* Video grid fills container */
    .video-grid {
        padding: 0;
        gap: 0;
        height: 100%;
    }

    /* Controls bar mobile */
    .controls-bar {
        padding: 8px 12px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .control-btn {
        padding: 10px 12px;
        font-size: 14px;
        flex: 0 0 auto;
    }

    .control-label {
        display: none;
    }

    .control-icon {
        font-size: 18px;
    }

    /* Transcript dropdown mobile */
    .transcript-dropdown {
        position: static;
    }

    .transcript-menu {
        position: fixed;
        bottom: 60px;
        left: 10px;
        right: 10px;
        top: auto;
    }
}

/* Mobile Chat/Messages */
@media (max-width: 768px) {

    .chat-messages,
    .messages-container {
        padding: 12px;
    }

    .chat-message {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 14px;
    }

    .chat-input-form {
        padding: 12px;
    }

    .chat-input {
        font-size: 16px;
        /* Prevents iOS zoom */
        padding: 12px 16px;
    }

    .sidebar-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-tab {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Mobile Participants */
@media (max-width: 768px) {
    .participants-list {
        padding: 12px;
    }

    .participant-item {
        padding: 10px 12px;
    }

    .host-controls {
        padding: 12px;
        gap: 8px;
    }

    .host-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Mobile Modals */
@media (max-width: 768px) {

    .modal-content,
    .invite-modal-content {
        width: 95%;
        max-width: none;
        margin: 16px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2,
    .invite-header h2 {
        font-size: 20px;
    }

    .modal-icon,
    .invite-icon {
        font-size: 40px;
    }

    .join-input {
        font-size: 24px;
        letter-spacing: 4px;
        padding: 16px;
    }
}

/* Mobile Auth Pages */
@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .form-group input {
        font-size: 16px;
        /* Prevents iOS zoom */
        padding: 14px 16px;
    }

    .back-to-home {
        font-size: 14px;
    }
}

/* Mobile Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .pricing-card.featured {
        transform: none;
        margin: 0;
    }

    .price-amount {
        font-size: 36px;
    }
}

/* Mobile Features Section */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

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

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        font-size: 36px;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column h4 {
        margin-bottom: 12px;
    }
}

/* Mobile Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 24px 16px;
    }

    .legal-page h1 {
        font-size: 24px;
    }

    .legal-page h2 {
        font-size: 18px;
    }

    .legal-nav-inner {
        padding: 0 16px;
    }
}

/* Mobile Personal Room Card */
@media (max-width: 768px) {
    .personal-room-card {
        padding: 16px;
    }

    .personal-room-link input {
        font-size: 12px;
    }
}

/* Mobile Room History */
@media (max-width: 768px) {
    .room-history-section h3 {
        font-size: 14px;
    }

    .history-item {
        padding: 12px;
    }

    .history-code {
        font-size: 14px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {

    /* Larger touch targets */
    .btn {
        min-height: 44px;
    }

    .sidebar-btn {
        min-height: 48px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
    }

    /* Remove hover effects on touch */
    @media (hover: none) {
        .btn:hover {
            transform: none;
        }

        .sidebar-btn:hover {
            background: var(--gray-50);
        }
    }
}

/* Subtitle overlay mobile */
@media (max-width: 768px) {
    .subtitle-overlay {
        font-size: 14px;
        padding: 8px 16px;
        bottom: 60px;
    }
}

/* Pseudo-fullscreen for mobile (iOS doesn't support real fullscreen) */
.pseudo-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.pseudo-fullscreen .main-area {
    height: 100vh !important;
    min-height: 100vh !important;
    flex: 1 !important;
}

.pseudo-fullscreen .room-sidebar {
    display: none !important;
}

.pseudo-fullscreen .video-container {
    height: calc(100vh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    border-radius: 0 !important;
}

.pseudo-fullscreen .video-container iframe {
    height: 100% !important;
    min-height: 100% !important;
}

.pseudo-fullscreen .controls-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

body.fullscreen-mode {
    overflow: hidden !important;
}

body.fullscreen-mode .app-nav,
body.fullscreen-mode .room-header,
body.fullscreen-mode .mobile-sidebar-toggle {
    display: none !important;
}

/* Active session banner mobile */
@media (max-width: 768px) {
    .active-session-banner {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        text-align: center;
    }

    .active-session-banner .btn {
        width: 100%;
    }
}

/* Landscape phone adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .room-content-multiparty {
        flex-direction: row;
    }

    .main-area {
        flex: 1;
        height: auto;
    }

    .room-sidebar {
        width: 280px;
        height: auto;
    }

    .video-container {
        min-height: 200px;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .control-btn {
        padding: 8px 10px;
    }

    .room-code {
        font-size: 14px;
    }
}

/* ========================================
   PWA Install Banner
   ======================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1f2937, #111827);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-install-icon {
    font-size: 24px;
}

.pwa-install-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.pwa-install-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .pwa-install-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .pwa-install-actions {
        width: 100%;
        justify-content: center;
    }
}

/* End Session Modal */
.end-session-modal {
    max-width: 500px;
}

.end-session-modal h2 {
    margin-bottom: 20px;
    text-align: center;
}

.session-summary {
    display: flex;
    justify-content: space-around;
    background: var(--gray-800);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.summary-item {
    text-align: center;
}

.summary-item .label {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.summary-item .value {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.download-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.download-buttons .btn {
    flex: 1;
}

.vault-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.vault-warning p {
    margin: 0;
    color: #fbbf24;
    font-size: 14px;
}

.vault-saved {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.vault-saved p {
    margin: 0;
    color: #10b981;
}

.vault-saved .subtext {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.vault-upsell {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.vault-upsell .upsell-header {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.vault-upsell .upsell-header .icon {
    margin-right: 8px;
}

.vault-upsell p {
    color: var(--gray-400);
    font-size: 14px;
    margin: 0 0 16px 0;
}

.btn-accent {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #5558e3, #7c4fe0);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--gray-700);
}

.btn-secondary {
    background: var(--gray-700);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: var(--gray-600);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
    }

    .session-summary {
        flex-direction: column;
        gap: 12px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ========================================
   Resizable Sidebar
   ======================================== */

.app-sidebar {
    position: relative;
    min-width: 280px;
    max-width: 500px;
    width: 280px;
    transition: none;
    /* Disable transition during resize */
}

.sidebar-resize-handle {
    position: absolute;
    top: 0;
    right: -4px;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    z-index: 10;
    transition: background 0.2s;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.dragging {
    background: var(--primary);
}

.sidebar-resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 40px;
    background: var(--gray-600);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-resize-handle:hover::after {
    opacity: 1;
}

body.sidebar-resizing {
    cursor: ew-resize !important;
    user-select: none !important;
}

body.sidebar-resizing * {
    cursor: ew-resize !important;
}

/* ========================================
   Transcript Vault Section in Sidebar
   ======================================== */

.vault-section {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
    margin-top: 16px;
}

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

.vault-section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 1px;
    margin: 0;
}

.vault-refresh-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.vault-refresh-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.vault-refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Transcript Cards */
.vault-transcripts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.transcript-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.transcript-card:hover {
    background: var(--gray-100);
    border-color: var(--primary-light);
    transform: translateX(2px);
}

.transcript-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.transcript-card-icon {
    font-size: 16px;
}

.transcript-card-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}

.transcript-card-time {
    font-size: 11px;
    color: var(--gray-500);
    margin-left: auto;
}

.transcript-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-500);
}

.transcript-card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.transcript-card-languages {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
}

.transcript-card-languages .arrow {
    color: var(--gray-400);
}

/* Empty State */
.vault-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--gray-500);
}

.vault-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.vault-empty p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Upsell State */
.vault-upsell-sidebar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.vault-upsell-sidebar .upsell-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.vault-upsell-sidebar h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 6px 0;
}

.vault-upsell-sidebar p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.vault-upsell-sidebar .btn {
    font-size: 12px;
    padding: 8px 16px;
}

/* Load More */
.vault-load-more {
    text-align: center;
    padding-top: 8px;
}

.vault-load-more button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
}

.vault-load-more button:hover {
    text-decoration: underline;
}

/* ========================================
   Transcript Preview Slide-in Panel
   ======================================== */

.transcript-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.transcript-preview-overlay.open {
    opacity: 1;
    visibility: visible;
}

.transcript-preview-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.transcript-preview-overlay.open .transcript-preview-panel {
    transform: translateX(0);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.preview-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.preview-close-btn:hover {
    color: var(--gray-800);
}

.preview-meta {
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.preview-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-meta-item .label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-meta-item .value {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.preview-entry {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.preview-entry:last-child {
    border-bottom: none;
}

.preview-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.preview-entry-speaker {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
}

.preview-entry-time {
    font-size: 11px;
    color: var(--gray-400);
}

.preview-entry-lang {
    font-size: 11px;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--gray-600);
}

.preview-entry-original {
    font-size: 14px;
    color: var(--gray-800);
    line-height: 1.5;
    margin-bottom: 4px;
}

.preview-entry-translated {
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
    padding-left: 12px;
    border-left: 2px solid var(--gray-200);
}

.preview-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    gap: 12px;
}

.preview-actions .btn {
    flex: 1;
}

.preview-delete-btn {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.preview-delete-btn:hover {
    background: var(--danger);
    color: white;
}

/* Loading state */
.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--gray-500);
}

.preview-loading .spinner {
    width: 32px;
    height: 32px;
    border-color: var(--gray-300);
    border-top-color: var(--primary);
    margin-bottom: 12px;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
    .sidebar-resize-handle {
        display: none;
    }

    .transcript-preview-panel {
        width: 100%;
        max-width: 100%;
    }

    .preview-meta {
        grid-template-columns: 1fr;
    }

    .preview-actions {
        flex-direction: column;
    }
}

/* ========================================
   Pricing Grid Fix - 3 Cards Centered
   ======================================== */
#pricing .pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 960px !important;
    margin: 0 auto !important;
}

#pricing .pricing-card {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 20px !important;
    padding: 40px 32px !important;
    position: relative !important;
}

#pricing .pricing-card:hover {
    border-color: #6366f1 !important;
}

#pricing .pricing-card.featured {
    border-color: #6366f1 !important;
    transform: scale(1.05);
    z-index: 1;
}

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

@media (max-width: 600px) {
    #pricing .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 380px !important;
    }

    #pricing .pricing-card {
        padding: 24px 20px !important;
    }

    #pricing .pricing-card.featured {
        transform: none !important;
    }
}