/* =========================================
   1. CORE THEME & RESET
   ========================================= */
:root {
    --bg-void: #000000;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;

    /* Deeper Blue Gradients */
    --brand-gradient: linear-gradient(135deg, #1e40af 0%, #6b21a8 100%);
    --ghost-gradient: linear-gradient(135deg, #ffffff 0%, #a0a0a0 50%, #ffffff 100%);

    /* Glass Effects */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-highlight: rgba(255, 255, 255, 0.08);

    /* Phone colors - more realistic */
    --phone-bg: #000;
    --phone-border: #1a1a1a;
    --phone-notch: #0a0a0a;

    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light Theme */
[data-theme="light"] {
    --bg-void: #e8e8e8;
    --text-main: #0a0a0a;
    --text-muted: #64748b;

    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-surface: rgba(255, 255, 255, 0.8);
    --glass-highlight: rgba(255, 255, 255, 0.5);

    /* Light theme phone - white background, black outline */
    --phone-bg: #ffffff;
    --phone-border: #000000;
    --phone-notch: #1a1a1a;
}

/* Light theme navbar override */
[data-theme="light"] .navbar,
[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-login {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0a0a0a;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-stack); }

html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-void);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* =========================================
   NEW BACKGROUND (IFRAME)
   ========================================= */
.background-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts it behind everything */
    border: none;
    pointer-events: none; /* Prevents it from stealing mouse clicks */
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar, nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 24px 40px;
    background: rgba(3, 3, 3, 0.5); /* More transparent */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: center;
}

.nav-content {
    width: 100%; max-width: 1600px; /* Wide Layout */
    display: flex; justify-content: space-between; align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem; font-weight: 900; color: var(--text-main); text-decoration: none; letter-spacing: -1px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-main);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

.btn-login, .btn-nav-login {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 12px 28px;
    border-radius: 100px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

[data-theme="dark"] .btn-login:hover,
[data-theme="dark"] .btn-nav-login:hover {
    background: #fff;
    color: #000;
}

[data-theme="light"] .btn-login:hover,
[data-theme="light"] .btn-nav-login:hover {
    background: #000;
    color: #fff;
}


/* =========================================
   4. HERO SECTION (Balanced like BodyBuddy)
   ========================================= */
.hero-section {
    min-height: 90vh;
    padding: 160px 80px 100px;
    max-width: 1500px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 80px; align-items: center;
}

.hero-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }

/* Badges row container */
.badges-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.badge {
    background: rgba(30, 64, 175, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
}

.badge strong {
    font-weight: 700;
}

/* NEW users badge - same blue as main badge */
.badge-new {
    background: rgba(30, 64, 175, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* CTA Buttons container */
.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Live notification - centered in navbar */
.live-notification {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

#liveMessage strong {
    color: #fff;
    font-weight: 700;
}

[data-theme="light"] .live-notification {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] #liveMessage strong {
    color: #000;
}

/* QR Code Section (desktop only) */
.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    text-align: center;
}

.qr-code {
    width: 320px;
    height: 320px;
    border-radius: 16px;
    object-fit: contain;
}

h1 {
    font-size: 5rem; line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 28px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.6);
}

/* --- THE GHOSTING ANIMATION --- */
.gradient-text {
    background: var(--ghost-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
}
@keyframes shine { to { background-position: 200% center; } }

.hero-sub {
    font-size: 1.3rem; color: var(--text-muted); margin-bottom: 44px; max-width: 560px; line-height: 1.7;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}

/* --- CTA BUTTON (Balanced) --- */
.btn-super-cta {
    background: #fff; color: #000;
    padding: 22px 56px; border-radius: 18px;
    font-weight: 700; font-size: 1.2rem; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.25);
    display: inline-flex; align-items: center; gap: 12px;
}

/* Desktop: Show desktop text, hide mobile text */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

.btn-super-cta:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.7); /* Intensive Glow */
}

/* --- REALISTIC PHONE MOCKUP --- */
.phone-mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatPhone 6s ease-in-out infinite;
}

/* Image-based mockup (primary) - transparent PNG */
/* Original image: 400x609px */
.phone-mockup-image {
    width: 460px;
    height: auto; /* Will be ~700px at this width */
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 3;
}

/* Screen content positioned behind the frame, visible through transparent area */
/* Screen area is ~73.5% width, ~92% height of frame, starts ~2.6% from top */
.phone-screen-content {
    position: absolute;
    top: 2.6%;
    left: 50%;
    transform: translateX(-50%);
    width: 338px;  /* 73.5% of 460px */
    height: 644px; /* 92% of 700px */
    background: #F2F2F7; /* iOS light mode background */
    border-radius: 38px;
    overflow: hidden;
    z-index: 1; /* Behind the frame */
    display: flex;
    flex-direction: column;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* CSS fallback frame (only shown if no image) */
.phone-mockup-container.no-image::before {
    content: '';
    position: absolute;
    width: 290px;
    height: 600px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0d0d0d 100%);
    border-radius: 45px;
    z-index: 0;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.1),
        inset 0 -1px 1px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 12px 24px -8px rgba(0, 0, 0, 0.4),
        0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.phone-mockup-container.no-image::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    top: 28px;
    z-index: 5;
}

.phone-mockup-container.no-image .phone-mockup-image {
    display: none;
}

.phone-mockup-container.no-image .phone-screen-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 268px;
    height: 578px;
    border-radius: 38px;
}

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

/* Hide legacy phone styles */
.phone-wrapper, .phone-frame, .notch {
    display: none;
}
/* Legacy screen styles (kept for backward compatibility) */
.screen {
    padding: 80px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

.chat-bubble {
    padding: 18px 24px; border-radius: 24px; font-size: 1.1rem; line-height: 1.4; max-width: 90%;
    opacity: 0; transform: translateY(20px); animation: chatPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.left { background: #222; color: #eee; align-self: flex-start; border-bottom-left-radius: 4px; }
.right { background: var(--brand-gradient); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4); }

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

/* =========================================
   4. FEATURES SECTION
   ========================================= */
.features-section {
    padding: 100px 40px;
    position: relative;
    z-index: 2;
}

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

.feature-card-large {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
}

.feature-card-large:hover {
    background: var(--glass-highlight);
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.feature-card-large h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card-large p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   5. PRICING (Simplified & Animated)
   ========================================= */
.pricing-section { padding: 100px 40px 160px; position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 {
    font-size: 3.5rem; margin-bottom: 16px; font-weight: 800;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.6);
}
.section-header p {
    font-size: 1.25rem; color: var(--text-muted);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border);
    padding: 50px 40px; border-radius: 32px; position: relative; display: flex; flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
    background: radial-gradient(circle at top right, rgba(59,130,246,0.15), transparent 80%), rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(59,130,246,0.5); z-index: 5; box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}
.pricing-card.popular:hover { border-color: #60a5fa; box-shadow: 0 40px 80px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.4); }

.popular-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: var(--brand-gradient); padding: 8px 20px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; color: #fff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.plan-name {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.price {
    font-size: 4rem; font-weight: 900; margin: 20px 0; color: #fff; letter-spacing: -2px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}
.price span { font-size: 1.2rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }

.features { list-style: none; margin-bottom: 48px; flex: 1; margin-top: 20px; }
.features li {
    display: flex; gap: 14px; margin-bottom: 18px; color: #cbd5e1; font-size: 1.1rem; align-items: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.check { color: #60a5fa; font-weight: 800; font-size: 1.2rem; }

.btn-price {
    display: block; text-align: center; padding: 18px; border-radius: 18px;
    background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; font-weight: 700;
    transition: 0.2s; font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.1);
}
.btn-price:hover { background: #fff; color: #000; }
.popular .btn-price { background: var(--brand-gradient); border: none; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); }
.popular .btn-price:hover { transform: scale(1.02); box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5); color: #fff; }

/* =========================================
   6. DASHBOARD STYLES (FIXED & CENTERED)
   ========================================= */
.dashboard-layout {
    padding: 140px 24px 60px;
    min-height: 100vh;
    display: flex; justify-content: center;
}

.dashboard-content {
    width: 100%; 
    max-width: 1000px; /* FIXED: Prevents stretching on wide screens */
    display: flex; flex-direction: column; gap: 24px;
}

.panel {
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 40px;
}

.panel-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.panel h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }

.data-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--glass-border); }
.data-row:last-child { border-bottom: none; }

.label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.value { font-size: 1rem; color: #fff; font-weight: 500; }

.input-field, .nice-select {
    width: 100%; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border);
    padding: 14px 16px; border-radius: 12px; color: #fff; font-size: 1rem; outline: none; transition: 0.2s;
}
.input-field:focus { border-color: #3b82f6; }

.badge-active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }
.badge-inactive { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }

/* Buttons */
.btn-primary { 
    background: #fff; color: #000; padding: 14px 32px; border-radius: 14px; 
    font-weight: 700; text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; 
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,255,255,0.2); }

.btn-ghost { background: transparent; color: #94a3b8; border: 1px solid var(--glass-border); padding: 12px 24px; border-radius: 12px; cursor: pointer; }
.btn-ghost:hover { color: #fff; border-color: #fff; }

.btn-danger { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); padding: 12px 24px; border-radius: 12px; cursor: pointer; }
.btn-danger:hover { background: #ef4444; color: #fff; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 2000; }
.modal-box { background: #0a0a0a; border: 1px solid var(--glass-border); padding: 40px; border-radius: 24px; width: 90%; max-width: 450px; text-align: center; }
.modal-title { font-size: 1.5rem; margin-bottom: 10px; }
.modal-desc { color: var(--text-muted); margin-bottom: 24px; }
.modal-btns { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }

/* FOOTER */
footer { border-top: 1px solid var(--glass-border); padding: 60px 0; background: #000; margin-top: 60px; }
.footer-inner { max-width: 1600px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 1rem; }
.footer-links a, .legal-footer a { color: var(--text-muted); text-decoration: none; margin-left: 32px; transition: 0.2s; }
.footer-links a:hover, .legal-footer a:hover { color: #fff; }
.legal-footer { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
    .hero-section { padding: 140px 40px 60px; gap: 50px; }
    h1 { font-size: 4rem; }
    .hero-sub { font-size: 1.15rem; }
    .qr-code { width: 240px; height: 240px; }
    .qr-container { padding: 30px; }
    .qr-label { font-size: 1.1rem; }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hero-section { grid-template-columns: 1fr; text-align: center; padding: 120px 24px 60px; min-height: auto; }
    .hero-text { align-items: center; }
    h1 { font-size: 3.2rem; }
    .hero-sub { max-width: 100%; font-size: 1.1rem; }
    .badges-row { justify-content: center; }
    .badge { font-size: 0.85rem; padding: 8px 14px; }
    .cta-buttons { justify-content: center; width: 100%; }
    .btn-super-cta { justify-content: center; padding: 18px 48px; font-size: 1.1rem; }
    /* Hide QR and live notification on mobile */
    .qr-section { display: none; }
    .live-notification { display: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
    .pricing-card.popular { transform: scale(1); }
    .dashboard-content { max-width: 100%; }
}

@media (max-width: 768px) {
    .badges-row { flex-direction: row; justify-content: center; gap: 8px; }
    .badge { font-size: 0.8rem; padding: 6px 12px; }
    .cta-buttons { flex-direction: column; }
    .btn-super-cta { width: 100%; justify-content: center; }
}

/* =========================================
   IOS / iMESSAGE THEME - LIGHT MODE
   ========================================= */
.ios-screen {
    background: #F2F2F7;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
}

/* --- STATUS BAR (Light Mode) --- */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 0 20px;
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    z-index: 20;
    background: #F2F2F7;
}
.status-icons { display: flex; align-items: center; }
.status-icons svg { color: #000; fill: #000; }

/* --- HEADER (Light Mode) --- */
.imessage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(242, 242, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 2px; color: #007AFF; font-size: 14px; }
.unread-count {
    background: #007AFF; color: #fff; font-size: 11px; font-weight: 600;
    padding: 2px 7px; border-radius: 10px;
}
.header-center { display: flex; flex-direction: column; align-items: center; }
.contact-avatar {
    width: 30px; height: 30px; background: linear-gradient(135deg, #FF6B6B, #FF8E53); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-weight: 600; font-size: 13px; color: white;
}
.contact-name { font-size: 10px; font-weight: 500; margin-top: 2px; color: #000; }

/* --- MESSAGES (Light Mode) --- */
.message-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: none;
    background: #fff;
}
.message-content::-webkit-scrollbar { display: none; }

/* Chat Bubbles - Light Mode iOS Style */
.chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.3;
    position: relative;
    box-shadow: none;
}

.left {
    background: #E9E9EB; /* iOS light gray bubble */
    color: #000;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.right {
    background: #007AFF; /* Apple Blue */
    color: #fff;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* --- FOOTER INPUT (Light Mode) --- */
.imessage-footer {
    padding: 8px 12px 20px;
    background: #F2F2F7;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.plus-btn {
    width: 26px; height: 26px; background: #E9E9EB; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}
.plus-btn svg { stroke: #8E8E93; }
.input-pill {
    flex: 1;
    background: #fff;
    border: 1px solid #C7C7CC;
    border-radius: 18px;
    padding: 7px 14px;
    color: #8E8E93;
    font-size: 15px;
    display: flex; align-items: center;
}