/* iMessage Blast demo — extracted from static/css/landing.css for
   /features/imessage-blast (see templates/landing.html's hidden demo section).
   The :root props below are the landing design tokens the demo rules reference. */
:root {
    --sf-pro-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    --sf-pro-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    --ease-ios: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-ios-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-instant: 0.1s;
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --touch-scale: 0.97;
    --touch-opacity: 0.7;
    --content-max-width: 1440px;
    --section-padding: 60px 40px;
    --apple-transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--section-padding);
}

.blast-demo-section {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(12, 12, 12, 1) 100%);
    padding: 48px 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.blast-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Premium noise texture overlay */
.blast-demo-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.blast-demo-section .section {
    position: relative;
    z-index: 1;
}

.blast-demo-section .section-headline {
    text-align: center;
    /* Golden ratio: 21px ≈ 13 × 1.618 */
    margin-bottom: 21px;
    font-size: clamp(32px, 5vw, 48px);
}

.blast-demo-section .section-subheadline {
    font-family: var(--sf-pro-text);
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin-bottom: 34px;
    line-height: 1.5;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Blast Demo Caption - appears after animation */
.blast-demo-caption {
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(10px);
}
.blast-demo-caption .pain {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}
.blast-demo-caption .solution {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Mobile responsive for caption */
@media (max-width: 480px) {
    .blast-demo-caption {
        font-size: 16px;
        margin-top: 16px;
    }
}

.blast-demo-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   BLAST DEMO ANIMATION - SIMPLE & CLEAN
   No complex phone frames - just clean cards
   ============================================ */

/* Realistic Blast Demo Container */
.blast-demo-realistic {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 21px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* no reserved min-height: the poster modal provides the initial height and
       the timeline collapses the modal's box after send (dead-band fix) */
    min-height: 0;
    position: relative;
}

/* Subtle breathing animation on idle */
.blast-demo-realistic.breathing .blast-modal-sheet {
    animation: subtleBreath 4s ease-in-out infinite;
}

@keyframes subtleBreath {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            inset 0 0.5px 0 rgba(255,255,255,0.08),
            0 4px 12px rgba(0,0,0,0.3),
            0 16px 48px rgba(0,0,0,0.4);
    }
    50% {
        transform: translateY(-2px) scale(1.005);
        box-shadow:
            inset 0 0.5px 0 rgba(255,255,255,0.1),
            0 6px 16px rgba(0,0,0,0.35),
            0 20px 56px rgba(0,0,0,0.45);
    }
}

/* Modal Sheet (iOS App Style - systemGray6Dark) */
.blast-modal-sheet {
    position: relative;
    width: 100%;
    max-width: 400px; /* iPhone Pro Max Width */
    background: rgba(30, 30, 32, 0.85); /* Slightly translucent */
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    backdrop-filter: blur(32px) saturate(180%);
    border-radius: 36px; /* Increased radius for phone aesthetic */
    overflow: hidden;
    /* Deep, premium shadow stack */
    box-shadow:
        inset 0 0.5px 0 rgba(255,255,255,0.15),
        0 8px 32px rgba(0,0,0,0.4),
        0 24px 64px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    /* Poster-first: composed modal is visible at load (product above the fold);
       startBlastDemo() hides it via GSAP right before the animation plays. */
    opacity: 1;
    transform: none;
    will-change: transform, opacity;
}

.blast-modal-header {
    background: rgba(28, 28, 30, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.modal-back {
    background: none;
    border: none;
    color: #0A84FF;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px 8px 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.modal-title {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.modal-send-btn {
    background: linear-gradient(180deg, #1A8FFF 0%, #0A84FF 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 32px;
    letter-spacing: -0.2px;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modal-send-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(10, 132, 255, 0.3);
}

.modal-send-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.5);
}

.modal-back:focus-visible {
    outline: none;
    background: rgba(10, 132, 255, 0.1);
    border-radius: 8px;
}

.blast-modal-body {
    padding: 16px;
    background: #1C1C1E;
}

/* Recipients "To:" Section */
.blast-to-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.blast-to-label {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

.blast-selected-tag {
    background: rgba(10,132,255,0.15);
    color: #0A84FF;
    padding: 6px 12px 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag-remove {
    background: rgba(10,132,255,0.2);
    border: none;
    color: #0A84FF;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Avatar Grid (3x3 = 9 avatars) - 8pt grid aligned */
.blast-avatars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 176px;
    margin: 16px auto;
}

.blast-avatars-grid .avatar-circle {
    width: 48px;
    height: 48px;
    font-size: 15px;
    /* visible in the poster state; GSAP hides + pops them during the animation */
    opacity: 1;
    transform: none;
    position: relative;
}

/* Highlight ring for selected avatars that become phone cards */
.blast-avatars-grid .avatar-circle.highlighted::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #0A84FF;
    box-shadow: 0 0 12px rgba(10, 132, 255, 0.5);
    animation: pulseRing 1.5s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.blast-selected-count {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.blast-message-field {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    min-height: 80px;
}

.blast-message-text {
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    line-height: 1.5;
}

/* Typing cursor */
.blast-message-text.typing::after {
    content: '|';
    color: #0A84FF;
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
    margin-left: 1px;
}

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

/* Sending state overlay */
.blast-sending-state {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.blast-sending-state .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #0A84FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.blast-sending-state span {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

/* iPhone Devices Row - Container for phone layout */
.blast-phones-row {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: 580px;
    margin: 16px auto 0;
    opacity: 0;
    transform-origin: center center;
}

/* ============================================
   9-PHONE 3-ROW DEPTH LAYOUT
   Back row (7-9) → Middle row (4-6) → Front row (1-3)
   ============================================ */

/* All phones in blast demo - positioned absolutely within container */
.blast-demo-section .iphone-device {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: absolute;
    opacity: 0; /* GSAP animates in */
}

/* 6-PHONE 2-ROW LAYOUT (Front & Middle/Back) */

/* Middle Row (Phones 4-6): Back row at 0.85 scale */
.blast-demo-section .phone-row-middle {
    transform: scale(0.85);
    z-index: 2;
}

/* Back row: notification rides just under the clock so it stays visible in the
   peek zone above the front row — all six deliveries readable at once */
.blast-demo-section .phone-row-middle .lockscreen-spacer { flex: 0.12; }

/* Middle row: lifted up to reduce clipping by front row */
.blast-demo-section .phone-row-middle.blast-phone-4 { left: calc(50% - 232px); top: -24px; }
.blast-demo-section .phone-row-middle.blast-phone-5 { left: calc(50% - 80px); top: -24px; }
.blast-demo-section .phone-row-middle.blast-phone-6 { left: calc(50% + 72px); top: -24px; }

/* Front Row (Phones 1-3): Main focus at full scale */
.blast-demo-section .phone-row-front {
    transform: scale(1);
    z-index: 3;
}

/* Front row: centered with 20px gaps (160px phones) */
.blast-demo-section .phone-row-front.blast-phone-1 { left: calc(50% - 260px); top: 144px; }
.blast-demo-section .phone-row-front.blast-phone-2 { left: calc(50% - 80px); top: 144px; }
.blast-demo-section .phone-row-front.blast-phone-3 { left: calc(50% + 100px); top: 144px; }

/* iPhone Device Frame */
.iphone-frame {
    width: 160px;
    height: 347px; /* iPhone 15 Pro 19.5:9 ratio */
    /* Titanium finish - iPhone 15 Pro inspired */
    background: linear-gradient(
        165deg,
        #48484a 0%,
        #3a3a3c 8%,
        #2c2c2e 50%,
        #1c1c1e 92%,
        #28282a 100%
    );
    border-radius: 30px;
    padding: 6px;
    position: relative;
    /* Premium multi-layer shadow system */
    box-shadow:
        inset 0 0.5px 0 rgba(255,255,255,0.15),
        inset 0 1px 1px rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(0,0,0,0.4),
        0 2px 4px rgba(0,0,0,0.2),
        0 8px 24px rgba(0,0,0,0.4),
        0 20px 48px rgba(0,0,0,0.35);
    border: 0.5px solid rgba(255,255,255,0.1);
}

/* iPhone side buttons - Power (right) */
.iphone-frame::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 72px;
    width: 3px;
    height: 29px;
    background: linear-gradient(90deg, #3a3a3c 0%, #4a4a4c 50%, #3a3a3c 100%);
    border-radius: 0 2px 2px 0;
    box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.2), 1px 0 2px rgba(0,0,0,0.3);
}

/* iPhone side buttons - Volume + Action (left) */
.iphone-frame::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 52px;
    width: 3px;
    height: 48px;
    background: linear-gradient(90deg, #3a3a3c 0%, #4a4a4c 50%, #3a3a3c 100%);
    border-radius: 2px 0 0 2px;
    box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.2), -1px 0 2px rgba(0,0,0,0.3);
}

/* Dynamic Island - authentic iPhone 14/15/16 Pro pill shape */
/* Now positioned INSIDE the screen element */
.iphone-dynamic-island {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 20px;
    background: #000;
    border-radius: 16px;  /* Full pill shape */
    z-index: 25;        /* Above status bar */
    /* Visible edge - stronger border for visibility */
    box-shadow:
        inset 0 0 0 1.5px rgba(255,255,255,0.15),
        0 0 12px 4px rgba(0,0,0,0.9);
}

/* Legacy fallback */
.dynamic-island {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 20px;
    background: #000;
    border-radius: 16px;
    z-index: 25;
    box-shadow:
        inset 0 0 0 1.5px rgba(255,255,255,0.15),
        0 0 12px 4px rgba(0,0,0,0.9);
}

/* Blast demo iPhone screen - must be concentric with frame */
.blast-demo-section .iphone-screen,
.iphone-frame .iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;  /* Pure black - no gradient */
    border-radius: 24px; /* Concentric: frame 30px - padding 6px = 24px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Glass reflection overlay - inherits border-radius from parent */
.blast-demo-section .iphone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.03) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255,255,255,0.015) 100%
    );
    pointer-events: none;
    z-index: 100;
    border-radius: inherit;  /* Match parent screen radius */
}

/* iOS Status Bar - authentic styling */
.iphone-status-bar {
    padding: 36px 14px 4px;  /* Clear Dynamic Island: 8px top + 24px height + 4px gap = 36px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 15;
    position: relative;
    font-size: 12px;
    font-weight: 600;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: #000;  /* Prevent frame color showing through */
    flex-shrink: 0;    /* CRITICAL: Prevent flex collapse */
    min-height: 44px;  /* Ensure minimum height */
}

.status-time {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    min-width: 32px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-right svg {
    height: 11px;
    width: auto;
}

.status-signal,
.status-wifi,
.status-battery {
    flex-shrink: 0;
}

/* Hide legacy class */
.status-icons {
    display: none;
}

.iphone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #000;
    min-height: 0;  /* Allow flex shrinking */
}

/* iMessage Full Nav - translucent glass extending to top */
.imessage-nav-full {
    position: relative;
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(84, 84, 88, 0.36);
    padding-top: 36px;  /* Space for Dynamic Island */
}

.imessage-nav-full .iphone-dynamic-island {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.imessage-nav-full .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 10px;
}

.imessage-nav-full .nav-chevron {
    width: 11px;
    height: 18px;
    flex-shrink: 0;
}

.imessage-nav-full .nav-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.imessage-nav-full .contact-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.imessage-nav-full .contact-name {
    font-size: 9px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
}

.imessage-nav-full .nav-video {
    width: 22px;
    height: 16px;
    flex-shrink: 0;
}

/* Legacy iMessage Navigation Bar */
.imessage-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 6px;
    background: rgba(28, 28, 30, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.imessage-nav .nav-chevron {
    flex-shrink: 0;
    width: 7px;
    height: 13px;
}

.imessage-nav .nav-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.imessage-nav .contact-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.imessage-nav .contact-name {
    font-size: 7px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.01em;
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imessage-nav .nav-video {
    flex-shrink: 0;
    width: 22px;
    height: 16px;
}

/* Legacy back arrow - hide */
.imessage-nav .nav-back {
    display: none;
}

/* iMessage Thread */
.imessage-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Start from top, not centered */
    padding: 12px 10px 8px;       /* More top padding */
    gap: 2px;
    background: #000;             /* Pure black background */
}

/* Received message (gray bubble, left-aligned) */
.message-bubble.received {
    align-self: flex-start;
    background: #3A3A3C;
    color: white;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px; /* Larger radius */
    font-size: 13px;
    line-height: 1.4;
    max-width: 95%;
    white-space: normal;
    word-break: normal;
    word-wrap: break-word;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    position: relative;
    margin-left: 10px; /* Space for tail */
}

/* iMessage Tail */
.message-bubble.received::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -6px;
    width: 12px;
    height: 20px;
    background-color: #3A3A3C;
    border-bottom-right-radius: 16px 14px;
    z-index: -1;
}

/* Mask for tail curve */
.message-bubble.received::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 10px;
    height: 20px;
    background-color: #000; /* Match thread background exactly */
    border-bottom-right-radius: 10px;
    z-index: -1;
}

/* Blast demo message bubble - authentic iOS 17 style */
.blast-demo-section .message-bubble.received {
    margin: 0 auto 0 6px;
    margin-right: auto;
    position: relative;
    max-width: 75%;
    padding: 6px 9px;
    font-size: 9px;
    line-height: 1.35;
    background: #3A3A3C;
    border-radius: 12px 12px 12px 3px;
    align-self: flex-start;
}

/* iMessage bubble tail - authentic iOS look */
.blast-demo-section .message-bubble.received::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 8px;
    height: 8px;
    background: #3A3A3C;
    border-bottom-left-radius: 8px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.message-time {
    font-size: 10px; /* Increased */
    color: rgba(255,255,255,0.4);
    text-align: center;
    opacity: 0;
    margin-top: 4px;
}

/* Delivered status - iOS style (left-aligned under bubble) */
.blast-demo-section .message-status {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.35);
    text-align: left;
    margin-top: 1px;
    margin-left: 5px;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0;
}

/* iMessage Input Field */
.imessage-input {
    padding: 4px 6px;
    border-top: 0.5px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Plus Icon - now in HTML */
.imessage-input .input-plus {
    width: 16px;
    height: 16px;
    background: #3A3A3C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
    font-size: 11px;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
}

/* Remove legacy pseudo-element */
.imessage-input::before {
    display: none;
}

.imessage-input .input-field {
    flex: 1;
    background: #1C1C1E;
    border: 1px solid #3A3A3C;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mic Icon (simulated) */
.imessage-input .input-field::after {
    content: '';
    width: 10px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' y1='19' x2='12' y2='23'/%3E%3Cline x1='8' y1='23' x2='16' y2='23'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* iMessage Composer - authentic iOS styling */
.imessage-composer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 6px;
    background: #1C1C1E;
    border-top: 0.5px solid rgba(255,255,255,0.08);
}

.imessage-composer .composer-plus {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imessage-composer .composer-plus svg {
    width: 16px;
    height: 16px;
}

.imessage-composer .composer-field {
    flex: 1;
    background: #2C2C2E;
    border: 1px solid #48484A;
    border-radius: 14px;
    padding: 5px 9px;
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    min-height: 22px;
    display: flex;
    align-items: center;
}

/* Legacy styles for backwards compatibility */
.message-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0 8px;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.blast-demo-section .contact-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    color: white;
}

.contact-name {
    font-size: 9px;
    font-weight: 600;
    color: white;
}

.message-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 8px;
}

.message-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(180deg, #1A8FFF 0%, #0A84FF 100%);
    color: white;
    padding: 8px 10px;
    border-radius: 14px 14px 4px 14px;
    font-size: 10px;
    line-height: 1.4;
    max-width: 100px;
    margin-bottom: 6px;
}

.message-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 9px;
    color: rgba(255,255,255,0.5);
}

.message-status span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Home Indicator - authentic iOS style */
.iphone-home-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2.5px;
    z-index: 50;  /* Above all content including composer */
}

/* Lock Screen */
.lockscreen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #0a0a14 0%, #000 40%, #0a0a0a 100%);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    position: relative;
}

/* Unique iOS-style wallpaper gradients — black at top, Apple-toned color at bottom */
.blast-phone-1 .lockscreen { background: linear-gradient(180deg, #000 0%, #06061a 40%, #141438 80%, #1c1c4a 100%); }
.blast-phone-2 .lockscreen { background: linear-gradient(180deg, #000 0%, #040e14 40%, #0c2230 80%, #103040 100%); }
.blast-phone-3 .lockscreen { background: linear-gradient(180deg, #000 0%, #0a0a0c 40%, #1a1a20 80%, #24242c 100%); }
.blast-phone-4 .lockscreen { background: linear-gradient(180deg, #000 0%, #040c10 40%, #0e2028 80%, #142c36 100%); }
.blast-phone-5 .lockscreen { background: linear-gradient(180deg, #000 0%, #080818 40%, #181834 80%, #202046 100%); }
.blast-phone-6 .lockscreen { background: linear-gradient(180deg, #000 0%, #08080c 40%, #161620 80%, #1e1e2a 100%); }

/* Dynamic Island */
.lockscreen-dynamic-island {
    width: 48px;
    height: 15px;
    background: #000;
    border-radius: 10px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.lockscreen-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 0;
    font-size: 10px;
    font-weight: 600;
}

.lockscreen-status-bar .status-time {
    letter-spacing: 0.5px;
}

.lockscreen-status-bar .status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lockscreen-status-bar .status-right svg {
    width: 11px;
    height: auto;
}

.lockscreen-clock {
    text-align: center;
    padding-top: 4px;
}

.lockscreen-date {
    font-size: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.2px;
}

.lockscreen-time-large {
    font-size: 34px;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1;
    margin-top: -1px;
}

.lockscreen-spacer {
    flex: 1;
}

.lockscreen-fill {
    flex: 1;
}

/* Bottom Lock Screen Controls */
.lockscreen-bottom-controls {
    display: flex;
    justify-content: space-between;
    padding: 0 28px 14px;
}

.lockscreen-control-btn {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lockscreen-control-btn svg {
    width: 13px;
    height: 13px;
    opacity: 0.85;
}

/* Notification Banner */
.lockscreen-notification {
    margin: 0 8px;
    padding: 10px 12px;
    background: rgba(44, 44, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
}

.notification-app-icon {
    width: 20px;
    height: 20px;
    background: #34C759;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-app-icon svg {
    width: 12px;
    height: 12px;
}

.lockscreen .notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.notification-sender {
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.notification-body {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-body strong {
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

/* Blast demo notification — iOS-accurate proportions.
   Solid background, NO backdrop-filter: Safari refuses to paint backdrop-filtered
   elements inside the scale(0.85) overflow-hidden back-row phones (2026-07-19 —
   back row rendered empty lock screens while the pill said "Sent to 6"). */
.blast-demo-section .lockscreen-notification {
    margin: 0 5px;
    padding: 6px 7px;
    gap: 6px;
    border-radius: 12px;
    border: 0.5px solid rgba(255,255,255,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background: rgba(40, 40, 43, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.blast-demo-section .notification-app-icon {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}
.blast-demo-section .notification-app-icon svg {
    width: 9px;
    height: 9px;
}
.blast-demo-section .notification-sender {
    font-size: 9px;
}
.blast-demo-section .notification-time {
    font-size: 8px;
}
.blast-demo-section .notification-body {
    font-size: 8px;
    margin-top: 1px;
    -webkit-line-clamp: 2;
}

/* Phone checkmark inside iPhone */
.iphone-device .phone-checkmark {
    width: 14px;
    height: 14px;
    opacity: 0;
    filter: drop-shadow(0 1px 4px rgba(52,199,89,0.4));
}

.phone-checkmark.visible circle {
    animation: circleGrow 0.4s ease-out forwards;
}

.phone-checkmark.visible .check-path {
    animation: checkDraw 0.4s 0.2s ease-out forwards;
}

.phone-checkmark.visible + span {
    opacity: 1;
}

/* Sent Success Indicator */
.blast-sent-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(
        180deg,
        rgba(52, 199, 89, 0.12) 0%,
        rgba(52, 199, 89, 0.06) 100%
    );
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 100px;
    color: #34C759;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
}

.blast-sent-indicator svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Replay Button for Blast Demo */
.blast-demo-realistic .demo-restart-btn {
    display: inline-flex;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 100px;
    font-family: var(--sf-pro-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.blast-demo-realistic .demo-restart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.blast-demo-realistic .demo-restart-btn:active {
    transform: translateY(0) scale(0.98);
}

.blast-demo-realistic .demo-restart-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.4);
    border-color: #0A84FF;
}

.blast-demo-realistic .demo-restart-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.blast-demo-realistic .demo-restart-btn:hover svg {
    transform: rotate(-45deg);
    opacity: 1;
}

/* Additional gradient colors for avatars */
.avatar-green { background: linear-gradient(135deg, #34C759, #28CD41); }
.avatar-indigo { background: linear-gradient(135deg, #5856D6, #5E5CE6); }

/* Supreme Morph Animation - Flying Avatars */
.morph-avatar {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.5),
        0 8px 32px rgba(0,0,0,0.4),
        0 0 40px rgba(10, 132, 255, 0.3);
    z-index: 100;
    will-change: transform, left, top, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ghost trail effect */
.morph-trail {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    pointer-events: none;
    will-change: transform, left, top, opacity, filter;
    backface-visibility: hidden;
}

/* Keyframes for checkmark drawing */
@keyframes circleGrow {
    to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

/* Blast demo - Hide status bar, use full nav instead */
.blast-demo-section .iphone-status-bar {
    display: none;
}

/* Blast demo - Full nav styling */
.blast-demo-section .imessage-nav-full {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.blast-demo-section .imessage-nav-full .iphone-dynamic-island {
    width: 64px;
    height: 18px;
    border-radius: 12px;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .blast-demo-realistic {
        min-height: 0;
        padding: 0 16px;
    }

    .blast-modal-sheet {
        max-width: 100%;
    }

    .blast-phones-row {
        gap: 10px;
        margin-top: 20px;
        height: 420px;
    }

    /* 6-Phone 2-Row Layout - Tablet (130px phones) */
    .blast-demo-section .phone-row-middle {
        transform: scale(0.82);
    }
    .blast-demo-section .phone-row-middle.blast-phone-4 { left: calc(50% - 190px); top: 20px; }
    .blast-demo-section .phone-row-middle.blast-phone-5 { left: calc(50% - 65px); top: 20px; }
    .blast-demo-section .phone-row-middle.blast-phone-6 { left: calc(50% + 60px); top: 20px; }

    .blast-demo-section .phone-row-front {
        transform: scale(1);
    }
    .blast-demo-section .phone-row-front.blast-phone-1 { left: calc(50% - 210px); top: 160px; }
    .blast-demo-section .phone-row-front.blast-phone-2 { left: calc(50% - 65px); top: 160px; }
    .blast-demo-section .phone-row-front.blast-phone-3 { left: calc(50% + 80px); top: 160px; }

    /* iPhone Device - Tablet */
    .blast-demo-section .iphone-frame {
        width: 130px;
        height: 260px;
        border-radius: 22px;
        padding: 5px;
    }

    .blast-demo-section .iphone-notch {
        width: 42px;
        height: 14px;
        border-radius: 0 0 9px 9px;
    }

    .blast-demo-section .iphone-screen {
        border-radius: 17px;  /* Concentric: frame 22px - padding 5px = 17px */
        background: #000;
    }

    .blast-demo-section .iphone-status-bar {
        padding: 22px 6px 3px;
        font-size: 8px;
        flex-shrink: 0;
        min-height: 28px;
    }

    /* iMessage Nav - Tablet */
    .blast-demo-section .imessage-nav {
        gap: 1px;
        padding: 2px 5px 2px;
    }

    .blast-demo-section .imessage-nav .contact-avatar {
        width: 16px;
        height: 16px;
        font-size: 6px;
    }

    .blast-demo-section .imessage-nav .contact-name {
        font-size: 5.5px;
    }

    /* iMessage Thread - Tablet */
    .blast-demo-section .imessage-thread {
        padding: 3px 5px;
    }

    .blast-demo-section .message-bubble.received {
        padding: 4px 6px;
        font-size: 7px;
        max-width: 88%;
        margin: 0 0 0 3px;
        border-radius: 8px 8px 8px 3px;
    }

    .blast-demo-section .message-bubble.received::before {
        width: 5px;
        height: 5px;
        left: -2px;
    }

    .blast-demo-section .message-status {
        font-size: 6px;
        margin-left: 4px;
    }

    /* Dynamic Island - Tablet scaled */
    .blast-demo-section .dynamic-island,
    .blast-demo-section .imessage-nav-full .iphone-dynamic-island {
        width: 44px;
        height: 12px;
        top: 4px;
        border-radius: 8px;
        box-shadow:
            inset 0 0 0 1.5px rgba(255,255,255,0.15),
            0 0 10px 3px rgba(0,0,0,0.9);
    }

    /* Full Nav - Tablet */
    .blast-demo-section .imessage-nav-full {
        padding-top: 24px;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    .blast-demo-section .imessage-nav-full .nav-content {
        padding: 4px 8px 6px;
    }

    .blast-demo-section .imessage-nav-full .nav-chevron {
        width: 8px;
        height: 13px;
    }

    .blast-demo-section .imessage-nav-full .contact-avatar {
        width: 18px;
        height: 18px;
        font-size: 7px;
    }

    .blast-demo-section .imessage-nav-full .contact-name {
        font-size: 7px;
    }

    .blast-demo-section .imessage-nav-full .nav-video {
        width: 14px;
        height: 10px;
    }

    /* Legacy iMessage Nav Icons - Tablet */
    .blast-demo-section .imessage-nav .nav-chevron {
        width: 5px;
        height: 9px;
    }

    .blast-demo-section .imessage-nav .nav-video {
        width: 12px;
        height: 8px;
    }

    /* iMessage Input - Tablet */
    .blast-demo-section .imessage-input {
        padding: 3px 5px;
        gap: 3px;
    }

    .blast-demo-section .imessage-input .input-plus {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .blast-demo-section .imessage-input .input-field {
        padding: 3px 5px;
        font-size: 7px;
        border-radius: 8px;
    }

    /* iMessage Composer - Tablet */
    .blast-demo-section .imessage-composer {
        padding: 3px 5px 12px;
        gap: 4px;
    }

    .blast-demo-section .imessage-composer .composer-plus svg {
        width: 12px;
        height: 12px;
    }

    .blast-demo-section .imessage-composer .composer-field {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 10px;
        min-height: 16px;
    }

    .blast-demo-section .iphone-home-indicator {
        width: 48px;
        height: 3px;
        bottom: 3px;
        z-index: 50;
    }

    .blast-sent-indicator {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Lock Screen - Tablet */
    .blast-demo-section .lockscreen-dynamic-island {
        width: 38px;
        height: 12px;
        border-radius: 8px;
        top: 5px;
    }

    .blast-demo-section .lockscreen-status-bar {
        padding: 8px 6px 0;
        font-size: 7px;
    }

    .blast-demo-section .lockscreen-status-bar .status-right svg {
        width: 8px;
    }

    .blast-demo-section .lockscreen-clock {
        padding-top: 3px;
    }

    .blast-demo-section .lockscreen-date {
        font-size: 6px;
    }

    .blast-demo-section .lockscreen-time-large {
        font-size: 24px;
        font-weight: 300;
        letter-spacing: -0.8px;
    }

    .blast-demo-section .lockscreen-bottom-controls {
        padding: 0 14px 6px;
    }

    .blast-demo-section .lockscreen-control-btn {
        width: 18px;
        height: 18px;
    }

    .blast-demo-section .lockscreen-control-btn svg {
        width: 8px;
        height: 8px;
    }

    .blast-demo-section .lockscreen-notification {
        margin: 0 4px;
        padding: 4px 5px;
        border-radius: 9px;
        gap: 4px;
    }

    .blast-demo-section .notification-app-icon {
        width: 11px;
        height: 11px;
        border-radius: 2.5px;
    }

    .blast-demo-section .notification-app-icon svg {
        width: 7px;
        height: 7px;
    }

    .blast-demo-section .notification-sender {
        font-size: 6.5px;
    }

    .blast-demo-section .notification-time {
        font-size: 6px;
    }

    .blast-demo-section .notification-body {
        font-size: 6.5px;
        margin-top: 1px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .blast-demo-section {
        padding: 24px 12px 16px;
    }

    .blast-demo-section .section-headline {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .blast-demo-section .section-subheadline {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .blast-demo-realistic {
        min-height: auto; /* Let content determine height */
        padding: 0 4px;
        position: relative;
    }

    /* Modal absolutely positioned so it doesn't leave empty space when faded */
    .blast-modal-sheet {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 14px;
        width: calc(100% - 24px);
        max-width: 320px;
        z-index: 10;
    }

    .blast-modal-header {
        padding: 10px 14px;
    }

    .modal-title {
        font-size: 14px;
    }

    .modal-send-btn {
        padding: 5px 10px;
        font-size: 13px;
    }

    .blast-modal-body {
        padding: 12px;
    }

    .blast-avatars-grid {
        gap: 5px;
        max-width: 140px;
    }

    .blast-avatars-grid .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .blast-message-field {
        padding: 10px;
        min-height: 56px;
        font-size: 13px;
    }

    .blast-phones-row {
        flex-direction: row;
        gap: 8px;
        margin-top: 0; /* No top margin - modal is absolute */
        justify-content: center;
        height: 400px; /* Increased height for visible rows */
    }

    /* 6-Phone 2-Row Layout - Mobile (100px phones, 12px gaps) */
    .blast-demo-section .phone-row-middle {
        transform: scale(0.82);
    }
    .blast-demo-section .phone-row-middle.blast-phone-4 { left: calc(50% - 138px); top: 20px; }
    .blast-demo-section .phone-row-middle.blast-phone-5 { left: calc(50% - 50px); top: 20px; }
    .blast-demo-section .phone-row-middle.blast-phone-6 { left: calc(50% + 38px); top: 20px; }

    .blast-demo-section .phone-row-front {
        transform: scale(1);
    }
    .blast-demo-section .phone-row-front.blast-phone-1 { left: calc(50% - 162px); top: 160px; }
    .blast-demo-section .phone-row-front.blast-phone-2 { left: calc(50% - 50px); top: 160px; }
    .blast-demo-section .phone-row-front.blast-phone-3 { left: calc(50% + 62px); top: 160px; }

    /* iPhone Device - Mobile - LARGER for readability */
    .blast-demo-section .iphone-frame {
        width: 100px; /* Fit 3 col on mobile */
        height: 200px;
        border-radius: 20px;
        padding: 4px;
    }

    .blast-demo-section .iphone-notch {
        width: 44px;
        height: 14px;
        border-radius: 0 0 9px 9px;
        top: 6px;
    }

    .blast-demo-section .iphone-screen {
        border-radius: 16px;  /* Concentric: frame 20px - padding 4px = 16px */
        background: #000;
    }

    .blast-demo-section .iphone-status-bar {
        display: none; /* Hide status bar on mobile - too cluttered */
    }

    .blast-demo-section .iphone-content {
        padding: 2px 2px 0;
    }

    /* iMessage Nav - Mobile */
    .blast-demo-section .imessage-nav {
        gap: 1px;
        padding: 2px 4px 3px;
        flex-direction: row;
        justify-content: center;
    }

    .blast-demo-section .imessage-nav .nav-chevron,
    .blast-demo-section .imessage-nav .nav-video {
        display: none; /* Hide on mobile - too small */
    }

    .blast-demo-section .imessage-nav .nav-contact-info {
        flex-direction: row;
        gap: 4px;
        align-items: center;
    }

    .blast-demo-section .imessage-nav .contact-avatar {
        width: 18px;
        height: 18px;
        font-size: 7px;
    }

    .blast-demo-section .imessage-nav .contact-name {
        font-size: 8px;
        max-width: 50px;
    }

    /* iMessage Thread - Mobile */
    .blast-demo-section .imessage-thread {
        padding: 8px 4px 3px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;  /* Start from top */
    }

    .blast-demo-section .message-bubble.received {
        padding: 4px 6px;
        font-size: 7px;
        line-height: 1.25;
        max-width: 92%;
        margin: 0 0 0 3px;
        border-radius: 8px 8px 8px 2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .blast-demo-section .message-bubble.received::before {
        width: 5px;
        height: 5px;
        left: -3px;
    }

    .blast-demo-section .message-status {
        font-size: 5px;
        margin-top: 1px;
        margin-left: 3px;
    }

    /* Dynamic Island - Mobile scaled */
    .blast-demo-section .dynamic-island,
    .blast-demo-section .imessage-nav-full .iphone-dynamic-island {
        width: 36px;
        height: 10px;
        top: 3px;
        border-radius: 6px;
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.15),
            0 0 6px 2px rgba(0,0,0,0.9);
    }

    /* Full Nav - Mobile */
    .blast-demo-section .imessage-nav-full {
        padding-top: 16px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .blast-demo-section .imessage-nav-full .nav-content {
        padding: 2px 4px 4px;
    }

    .blast-demo-section .imessage-nav-full .nav-chevron {
        width: 6px;
        height: 10px;
    }

    .blast-demo-section .imessage-nav-full .contact-avatar {
        width: 16px;
        height: 16px;
        font-size: 6px;
    }

    .blast-demo-section .imessage-nav-full .contact-name {
        font-size: 6px;
    }

    .blast-demo-section .imessage-nav-full .nav-video {
        width: 14px;
        height: 10px;
    }

    /* iMessage Input - Mobile */
    .blast-demo-section .imessage-input {
        padding: 2px 3px;
        gap: 3px;
    }

    .blast-demo-section .imessage-input .input-plus {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .blast-demo-section .imessage-input .input-field {
        padding: 3px 5px;
        font-size: 6px;
    }

    /* iMessage Composer - Mobile */
    .blast-demo-section .imessage-composer {
        padding: 2px 4px 12px;
        gap: 4px;
    }

    .blast-demo-section .imessage-composer .composer-plus svg {
        width: 12px;
        height: 12px;
    }

    .blast-demo-section .imessage-composer .composer-field {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 10px;
        min-height: 16px;
    }

    .blast-demo-section .iphone-home-indicator {
        width: 40px;
        height: 3px;
        bottom: 3px;
        z-index: 50;  /* Above all content */
    }

    /* Morph avatar size on mobile */
    .morph-avatar {
        width: 22px;
        height: 22px;
        font-size: 8px;
    }

    .blast-sent-indicator {
        padding: 8px 16px;
        font-size: 13px;
        margin-top: 16px;
    }

    .blast-sent-indicator svg {
        width: 16px;
        height: 16px;
    }

    .blast-demo-realistic .demo-restart-btn {
        margin-top: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Mobile-optimized benefits grid - Professional polish */
    /* Lock Screen - Mobile */
    .blast-demo-section .lockscreen-dynamic-island {
        width: 34px;
        height: 11px;
        border-radius: 7px;
        top: 4px;
    }

    .blast-demo-section .lockscreen-status-bar {
        padding: 8px 6px 0;
        font-size: 7px;
    }

    .blast-demo-section .lockscreen-status-bar .status-right svg {
        width: 7px;
    }

    .blast-demo-section .lockscreen-status-bar .status-right {
        gap: 2px;
    }

    .blast-demo-section .lockscreen-clock {
        padding-top: 2px;
    }

    .blast-demo-section .lockscreen-date {
        font-size: 5px;
    }

    .blast-demo-section .lockscreen-time-large {
        font-size: 18px;
        font-weight: 300;
        letter-spacing: -0.5px;
    }

    .blast-demo-section .lockscreen-bottom-controls {
        padding: 0 14px 6px;
    }

    .blast-demo-section .lockscreen-control-btn {
        width: 18px;
        height: 18px;
    }

    .blast-demo-section .lockscreen-control-btn svg {
        width: 8px;
        height: 8px;
    }

    .blast-demo-section .lockscreen-notification {
        margin: 0 3px;
        padding: 4px 5px;
        border-radius: 9px;
        gap: 3px;
    }

    .blast-demo-section .notification-app-icon {
        width: 10px;
        height: 10px;
        border-radius: 2px;
    }

    .blast-demo-section .notification-app-icon svg {
        width: 6px;
        height: 6px;
    }

    .blast-demo-section .notification-sender {
        font-size: 7px;
    }

    .blast-demo-section .notification-time {
        font-size: 5px;
    }

    .blast-demo-section .notification-body {
        font-size: 7px;
        margin-top: 0;
        -webkit-line-clamp: 2;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .blast-modal-sheet,
    .blast-avatars-grid .avatar-circle,
    .blast-phone-card,
    .phone-checkmark,
    .blast-sent-indicator,
    .phone-row-back,
    .phone-row-middle,
    .phone-row-front {
        transition: opacity 0.3s ease !important;
        animation: none !important;
    }

    .blast-avatars-grid .avatar-circle.highlighted::after {
        animation: none;
        opacity: 1;
    }

    .blast-message-text.typing::after {
        animation: none;
        opacity: 1;
    }

    .blast-sending-state .spinner {
        animation: none;
        border-top-color: #0A84FF;
        opacity: 0.7;
    }

    .phone-checkmark.visible circle,
    .phone-checkmark.visible .check-path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    position: relative;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.avatar-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.avatar-pink { background: linear-gradient(135deg, #f093fb, #f5576c); }
.avatar-cyan { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.avatar-orange { background: linear-gradient(135deg, #FF9500, #FF6B00); }

.avatar-more {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    padding: 0 4px;
}
