/* landing.css - Landing page and demo animation */

/* ===== LANDING PAGE ===== */
.landing {
    text-align: center;
    padding: 80px 24px;
}

.landing-hero {
    max-width: 700px;
    margin: 0 auto;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.landing-badge img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.landing h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-subtitle {
    font-size: 20px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 40px;
}

.landing-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.landing-cta .btn {
    padding: 16px 32px;
    font-size: 16px;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
    text-align: left;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.landing-pricing {
    margin-top: 80px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
}

.pricing-period {
    font-size: 18px;
    color: var(--text-dim);
}

.pricing-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-dim);
}

.pricing-features span::before {
    content: "✓ ";
    color: var(--accent);
}

/* ===== LANDING PAGE DEMO ANIMATION ===== */
.landing-demo-section {
    margin-top: 80px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.06) 0%, rgba(0, 168, 138, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.landing-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.landing-demo-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 16px;
    background: var(--bg-body);
    z-index: 100;
}

.landing-demo-header .demo-header-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.landing-demo-header .demo-header-step {
    color: var(--accent);
    font-size: 20px;
    font-weight: 600;
    min-height: 1.5em;
    transition: opacity 0.3s ease;
}

/* Mobile sticky header */
@media (max-width: 768px) {
    .landing-demo-header {
        position: sticky;
        top: 0;
        margin-bottom: 20px;
        padding: 16px 12px;
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(10px);
        background: rgba(var(--bg-body-rgb, 13, 13, 15), 0.95);
    }

    .landing-demo-header .demo-header-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .landing-demo-header .demo-header-step {
        font-size: 16px;
    }
}

.landing-demo-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.landing-demo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 180px;
    justify-content: center;
}

.landing-demo-step.active {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.25), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.landing-demo-step.completed {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(0, 168, 138, 0.06) 100%);
}

.landing-demo-icon {
    font-size: 40px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.landing-demo-step.active .landing-demo-icon {
    transform: scale(1.1);
}

.landing-demo-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.landing-demo-value {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-demo-value.hidden {
    color: var(--text-muted);
}

.landing-demo-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.landing-demo-arrow.active {
    color: var(--accent);
}

.landing-demo-arrow svg {
    width: 32px;
    height: 32px;
}

.landing-demo-arrow.sending svg {
    animation: arrowPulse 0.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(6px); opacity: 1; }
}

.landing-demo-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.landing-demo-restart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-demo-restart:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.landing-demo-restart svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.landing-demo-restart:hover svg {
    transform: rotate(-180deg);
}

.landing-demo-status {
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 24px;
    min-height: 20px;
}

.landing-demo-status.success {
    color: var(--accent);
    font-weight: 500;
}

/* Code reveal animation */
.code-digit {
    display: inline-block;
    width: 20px;
    height: 28px;
    line-height: 28px;
    margin: 0 2px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.code-digit.revealed {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* ===== NEW 6-STEP DEMO ANIMATION ===== */

/* Horizontal Flow Layout */
.demo-flow-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 16px 12px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== PHONE FRAME STYLES ===== */
.demo-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.demo-phone.active {
    opacity: 1;
    transform: translateY(-4px);
}

.demo-phone.completed {
    opacity: 1;
}

.phone-frame {
    width: 180px;
    height: 360px;
    background: #1a1a2e;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                inset 0 0 0 2px #2a2a4e,
                inset 0 0 0 4px #0a0a15;
    position: relative;
    overflow: hidden;
}

/* Compact phone for horizontal layout */
.demo-phone-compact .phone-frame {
    width: 140px;
    height: 260px;
    border-radius: 24px;
    padding: 6px;
}

.demo-phone.active .phone-frame {
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.2),
                0 0 40px rgba(0, 212, 170, 0.15),
                inset 0 0 0 2px var(--accent),
                inset 0 0 0 4px #0a0a15;
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #0a0a15;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
    position: relative;
}

.demo-phone-compact .phone-notch {
    width: 50px;
    height: 16px;
    border-radius: 0 0 10px 10px;
    margin-bottom: 4px;
}

.phone-notch::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2a2a4e;
    border-radius: 50%;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.demo-phone-compact .phone-notch::before {
    width: 5px;
    height: 5px;
    top: 5px;
}

.phone-screen {
    background: var(--bg);
    border-radius: 24px;
    height: calc(100% - 32px);
    overflow: hidden;
}

.demo-phone-compact .phone-screen {
    border-radius: 18px;
    height: calc(100% - 20px);
}

.phone-app {
    padding: 20px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.demo-phone-compact .phone-app {
    padding: 12px 10px;
}

.phone-app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 20px;
}

.phone-app-logo {
    width: 24px;
    height: 24px;
}

.demo-phone-compact .phone-app-header {
    font-size: 10px;
    margin-bottom: 10px;
    gap: 5px;
}

.demo-phone-compact .phone-app-logo {
    width: 16px;
    height: 16px;
}

.phone-input-group {
    margin-bottom: 16px;
}

.phone-label {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text);
    font-family: 'Space Mono', monospace;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.demo-phone-compact .phone-input {
    padding: 6px 8px;
    font-size: 9px;
    min-height: 26px;
    border-radius: 5px;
}

.demo-phone-compact .phone-label {
    font-size: 8px;
    margin-bottom: 4px;
}

.phone-input.active {
    border-color: var(--accent);
}

.typing-cursor {
    animation: blink 1s infinite;
    color: var(--accent);
}

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

.phone-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.demo-phone-compact .phone-btn {
    padding: 8px;
    font-size: 9px;
    border-radius: 5px;
}

.phone-btn.pressed {
    transform: scale(0.95);
    background: var(--accent-dim);
}

.phone-btn.loading .btn-text {
    opacity: 0;
}

.phone-btn.loading .btn-spinner {
    opacity: 1;
}

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--bg);
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Phone Code Entry */
.phone-code-entry {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phone-code-digits {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.phone-code-input {
    width: 28px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.demo-phone-compact .phone-code-input {
    width: 16px;
    height: 22px;
    font-size: 10px;
    border-radius: 3px;
}

.demo-phone-compact .phone-code-digits {
    gap: 3px;
    margin-bottom: 8px;
}

.demo-phone-compact .phone-code-hint {
    display: none;
}

.phone-code-input.filled {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.phone-code-input.typing {
    border-color: var(--accent);
    animation: inputPulse 0.5s ease;
}

@keyframes inputPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.phone-code-hint {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
}

/* Phone Profile */
.phone-profile-app {
    align-items: flex-start;
    text-align: left;
    position: relative;
}

/* Profile header row - avatar + name side by side */
.profile-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    transition: all 0.4s ease;
}

.demo-phone.active .profile-avatar-img {
    border-color: var(--accent);
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.demo-phone-compact .profile-avatar-img {
    width: 28px;
    height: 28px;
}

.demo-phone-compact .profile-name {
    font-size: 12px;
}

.profile-welcome {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.demo-phone-compact .profile-welcome {
    font-size: 9px;
}

.profile-email {
    font-size: 11px;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
}

.demo-phone-compact .profile-email {
    font-size: 9px;
}

/* Spacer to push verified badge to bottom */
.profile-spacer {
    flex: 1;
}

/* Verified badge at bottom */
.profile-verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    color: #4CAF50;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.4s ease;
    margin-top: auto;
}

.profile-verified-badge .verified-icon {
    font-size: 12px;
}

.demo-phone.active .profile-verified-badge,
.demo-phone.completed .profile-verified-badge {
    opacity: 1;
    transform: translateY(0);
}

.demo-phone-compact .profile-verified-badge {
    padding: 4px 10px;
    font-size: 8px;
    border-radius: 12px;
}

.demo-phone-compact .profile-verified-badge .verified-icon {
    font-size: 10px;
}

/* Demo Step Label */
.demo-step-label {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.demo-phone.active .demo-step-label,
.demo-email-template.active .demo-step-label,
.demo-server.active .demo-step-label {
    color: var(--accent);
}

/* Compact step labels */
.demo-phone-compact .demo-step-label,
.demo-email-compact .demo-step-label,
.demo-server-compact .demo-step-label {
    margin-top: 10px;
    font-size: 10px;
}

/* Step labels at bottom for email and server columns (same as phone columns) */
.demo-email-compact .demo-step-label,
.demo-server-compact .demo-step-label {
    margin-top: 10px;
    font-size: 10px;
}

/* ===== EMAIL TEMPLATE STYLES ===== */
.demo-email-template {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.4s ease;
}

/* Top alignment for email and server columns */
.demo-email-compact,
.demo-server-compact {
    padding-top: 0;
    padding-bottom: 0;
    justify-content: flex-start;
}

.demo-email-template.active {
    opacity: 1;
    transform: translateY(-4px);
}

.demo-email-template.completed {
    opacity: 1;
}

.email-window {
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Compact email for horizontal layout */
.demo-email-compact .email-window {
    width: 160px;
    border-radius: 8px;
}

.demo-email-compact .email-header {
    padding: 6px 10px;
}

.demo-email-compact .email-dots span {
    width: 6px;
    height: 6px;
}

.demo-email-compact .email-title {
    font-size: 9px;
}

.demo-email-compact .email-content {
    padding: 10px;
}

.demo-email-compact .email-avatar {
    width: 22px;
    height: 22px;
}

.demo-email-compact .email-from {
    margin-bottom: 8px;
    gap: 6px;
}

.demo-email-compact .email-sender {
    font-size: 10px;
}

.demo-email-compact .email-address {
    display: none;
}

.demo-email-compact .email-subject {
    font-size: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.demo-email-compact .email-body p {
    display: none;
}

.demo-email-compact .email-code {
    margin: 8px 0;
    gap: 3px;
}

.demo-email-compact .email-digit {
    width: 18px;
    height: 24px;
    font-size: 11px;
    border-radius: 4px;
}

.demo-email-template.active .email-window {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.15);
}

.email-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.email-dots {
    display: flex;
    gap: 5px;
}

.email-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

.email-dots span:first-child { background: #ff5f57; opacity: 1; }
.email-dots span:nth-child(2) { background: #ffbd2e; opacity: 1; }
.email-dots span:last-child { background: #28ca41; opacity: 1; }

.email-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
}

.email-content {
    padding: 16px;
}

.email-from {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.email-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.email-from-text {
    flex: 1;
}

.email-sender {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.email-address {
    font-size: 10px;
    color: var(--text-muted);
}

.email-subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.email-body p {
    font-size: 11px;
    color: var(--text-dim);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.email-code {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 16px 0;
}

.email-digit {
    width: 28px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.email-digit.revealed {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.email-expires {
    font-size: 9px !important;
    color: var(--text-muted) !important;
    text-align: center;
}

/* ===== STEP LABEL WITH LOGO ===== */
.demo-step-label-with-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.demo-step-label-with-logo .step-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.demo-email-template.active .demo-step-label-with-logo,
.demo-server.active .demo-step-label-with-logo {
    color: var(--accent);
}

/* ===== GMAIL-STYLE EMAIL ===== */
.gmail-email {
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Mac-style titlebar for email */
.gmail-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    border-bottom: 1px solid #b8b8b8;
}

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

.gmail-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.gmail-dots span:first-child { background: #ff5f57; box-shadow: inset 0 -1px 1px rgba(0,0,0,0.2); }
.gmail-dots span:nth-child(2) { background: #febc2e; box-shadow: inset 0 -1px 1px rgba(0,0,0,0.2); }
.gmail-dots span:last-child { background: #28c840; box-shadow: inset 0 -1px 1px rgba(0,0,0,0.2); }

.gmail-title {
    font-size: 11px;
    font-weight: 500;
    color: #4a4a4a;
    flex: 1;
    text-align: center;
    margin-right: 48px; /* Balance with dots */
}

.demo-email-compact .gmail-titlebar {
    padding: 6px 10px;
}

.demo-email-compact .gmail-dots span {
    width: 8px;
    height: 8px;
}

.demo-email-compact .gmail-title {
    font-size: 9px;
    margin-right: 38px;
}

.gmail-header {
    padding: 12px 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8eaed;
}

.gmail-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11px;
    line-height: 1.6;
    color: #3c4043;
    text-align: left;
}

.gmail-label {
    font-weight: 700;
    color: #5f6368;
    min-width: 45px;
}

.gmail-value {
    color: #3c4043;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmail-body {
    padding: 16px 14px;
    background: #fff;
}

.gmail-greeting {
    font-size: 11px;
    color: #3c4043;
    margin: 0 0 14px 0;
    line-height: 1.5;
    text-align: left;
}

.gmail-code-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    margin: 16px 0;
    padding: 14px;
    background: #f1f3f4;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.gmail-digit {
    width: 28px;
    height: 36px;
    background: #fff;
    border: 2px solid #dadce0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Google Sans', 'Roboto Mono', monospace;
    color: #80868b;
    transition: all 0.2s ease;
}

.gmail-digit.revealed {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #e8f0fe;
}

.gmail-code-box.blink-highlight {
    background: #e8f0fe;
    box-shadow: 0 0 20px rgba(26, 115, 232, 0.4);
    transform: scale(1.03);
}

.gmail-code-box.blink-highlight .gmail-digit {
    border-color: #1a73e8;
    background: #fff;
}

.gmail-footer {
    font-size: 10px;
    color: #5f6368;
    margin: 14px 0 6px 0;
    text-align: left;
}

.gmail-signature {
    font-size: 10px;
    color: #3c4043;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

/* Compact Gmail adjustments */
.demo-email-compact .gmail-email {
    width: 200px;
}

.demo-email-compact .gmail-header {
    padding: 10px 12px;
}

.demo-email-compact .gmail-row {
    font-size: 9px;
    line-height: 1.5;
}

.demo-email-compact .gmail-label {
    min-width: 38px;
}

.demo-email-compact .gmail-body {
    padding: 12px;
}

.demo-email-compact .gmail-greeting {
    font-size: 9px;
    margin-bottom: 10px;
}

.demo-email-compact .gmail-code-box {
    margin: 10px 0;
    padding: 10px;
    gap: 4px;
}

.demo-email-compact .gmail-digit {
    width: 22px;
    height: 28px;
    font-size: 12px;
}

.demo-email-compact .gmail-footer,
.demo-email-compact .gmail-signature {
    font-size: 8px;
}

.demo-email-template.active .gmail-email {
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Legacy email-paper styles (keeping for compatibility) */
.email-paper {
    width: 200px;
    background: #fafafa;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.email-paper-header {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.email-paper .email-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
}

.email-meta {
    flex: 1;
    min-width: 0;
}

.email-from-line,
.email-to-line,
.email-subject-line {
    font-size: 9px;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-from-line strong,
.email-to-line strong,
.email-subject-line strong {
    color: #666;
    font-weight: 500;
}

.email-paper-divider {
    height: 1px;
    background: #e0e0e0;
}

.email-paper-body {
    padding: 12px;
    background: #fff;
}

.email-body-text {
    font-size: 9px;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-align: center;
}

.email-code-box {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 12px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.15s ease;
}

.email-code-box .email-digit {
    width: 20px;
    height: 26px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    color: #999;
}

.email-code-box .email-digit.revealed {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.email-code-box.blink-highlight {
    background: rgba(0, 212, 170, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.4);
    transform: scale(1.02);
}

.email-footer-text {
    font-size: 8px;
    color: #888;
    margin: 10px 0 4px 0;
    text-align: center;
}

.email-signature {
    font-size: 8px;
    color: #666;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Compact email paper adjustments */
.demo-email-compact .email-paper {
    width: 180px;
}

.demo-email-compact .email-paper-header {
    padding: 8px;
    gap: 8px;
}

.demo-email-compact .email-paper .email-logo {
    width: 24px;
    height: 24px;
}

.demo-email-compact .email-paper-body {
    padding: 10px;
}

.demo-email-template.active .email-paper {
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== SERVER BOX STYLES ===== */
.demo-server {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.demo-server.active {
    opacity: 1;
    transform: translateY(-4px);
}

.demo-server.completed {
    opacity: 1;
}

.server-frame {
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Compact server for horizontal layout */
.demo-server-compact .server-frame {
    width: 130px;
    border-radius: 8px;
}

.demo-server-compact .server-header {
    padding: 8px 10px;
    gap: 6px;
}

.demo-server-compact .server-logo {
    width: 18px;
    height: 18px;
}

.demo-server-compact .server-header span {
    font-size: 9px;
}

.demo-server-compact .server-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.demo-server-compact .server-step {
    padding: 6px;
    margin-bottom: 6px;
    gap: 6px;
}

.demo-server-compact .server-icon {
    font-size: 12px;
}

.demo-server-compact .server-text {
    font-size: 9px;
}

.demo-server-compact .server-output {
    margin-top: 8px;
    padding: 8px;
}

.demo-server-compact .jwt-token {
    font-size: 7px;
}

.demo-server.active .server-frame {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.15);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.server-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.server-header span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.server-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.server-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 10px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.server-step.active {
    opacity: 1;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--accent);
}

.server-step.completed {
    opacity: 1;
}

.server-step.completed .server-icon {
    opacity: 0.6;
}

.server-icon {
    font-size: 16px;
}

.server-text {
    font-size: 11px;
    color: var(--text-dim);
}

.server-step.active .server-text {
    color: var(--accent);
}

.server-output {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.server-output.visible {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--accent);
}

.server-output.highlight-blink {
    background: rgba(0, 212, 170, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
    transform: scale(1.05);
}

.jwt-token {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    word-break: break-all;
    line-height: 1.4;
}

.jwt-header { color: #ff6b6b; }
.jwt-payload { color: #845ef7; }
.jwt-sig { color: #339af0; }
.jwt-dot { color: var(--text-muted); }

/* ===== CONSOLE WINDOW STYLES (Retro 70s Terminal) ===== */
.console-window {
    width: 220px;
    background: #1a1a0a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 255, 0, 0.03);
    font-family: 'VT323', 'Courier New', monospace;
    border: 8px solid #8b7355;
    border-top-width: 12px;
    border-bottom-width: 16px;
    position: relative;
}

/* Retro bezel styling */
.console-window::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    right: -4px;
    bottom: -12px;
    background: linear-gradient(180deg, #a08060 0%, #8b7355 20%, #6b5540 100%);
    border-radius: 14px;
    z-index: -1;
    box-shadow:
        inset 2px 2px 4px rgba(255,255,255,0.3),
        inset -2px -2px 4px rgba(0,0,0,0.3);
}

/* CRT screen curve effect */
.console-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    border-radius: 4px;
}

.console-titlebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #1a1a0a;
    border-bottom: none;
}

.console-title {
    font-size: 10px;
    color: #33ff33;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.5);
    font-family: 'VT323', 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Hide Mac dots for retro terminal */
.console-dots {
    display: none;
}

.console-body {
    padding: 14px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg,
        rgba(0, 40, 0, 1) 0%,
        rgba(0, 30, 0, 1) 100%);
    position: relative;
}

/* CRT scanline effect */
.console-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.console-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    opacity: 0.4;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.console-line.active {
    opacity: 1;
}

.console-line.completed {
    opacity: 1;
}

.console-line.completed .console-status {
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
}

.console-line.completed .console-status::after {
    content: ' OK';
}

.console-prompt {
    color: #33ff33;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
    font-family: 'VT323', 'Courier New', monospace;
}

.console-cmd {
    color: #33ff33;
    font-size: 10px;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.4);
    font-family: 'VT323', 'Courier New', monospace;
}

.console-status {
    color: #22aa22;
    font-size: 9px;
    margin-left: auto;
    font-family: 'VT323', 'Courier New', monospace;
}

.console-line.active .console-status {
    color: #33ff33;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.8);
    animation: console-blink 0.8s infinite;
}

@keyframes console-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.console-output {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    margin-top: 6px;
    border-top: 1px solid #30363d;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.console-output.visible {
    opacity: 1;
    transform: translateY(0);
}

.console-output .console-prompt {
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
}

.console-output .jwt-token {
    font-size: 8px;
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
    word-break: break-all;
    line-height: 1.3;
    font-family: 'VT323', 'Courier New', monospace;
}

.console-output .jwt-sig {
    color: #66ff66;
    text-shadow: 0 0 8px rgba(102, 255, 102, 0.6);
}

.console-output.highlight-blink {
    background: rgba(51, 255, 51, 0.1);
    border-radius: 4px;
    padding: 8px;
    margin: 6px -8px 0;
}

/* Server flow visualization */
.server-flow-line {
    justify-content: center;
    gap: 6px;
}

.server-label {
    color: #33ff33;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
}

.server-operator {
    color: #66ff66;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(102, 255, 102, 0.6);
}

.server-result {
    color: #33ff33;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
}

.server-checkmark {
    color: #66ff66;
    font-size: 12px;
    text-shadow: 0 0 10px rgba(102, 255, 102, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.console-line.completed .server-checkmark {
    opacity: 1;
}

.server-arrow {
    color: #66ff66;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(102, 255, 102, 0.6);
    margin-right: 6px;
}

.demo-server-compact .server-label {
    font-size: 10px;
}

.demo-server-compact .server-operator {
    font-size: 11px;
}

.demo-server-compact .server-result {
    font-size: 10px;
}

.demo-server-compact .server-checkmark {
    font-size: 10px;
}

.demo-server-compact .server-arrow {
    font-size: 11px;
}

/* Compact console adjustments */
.demo-server-compact .console-window {
    width: 180px;
}

.demo-server-compact .console-titlebar {
    padding: 6px 10px;
}

.demo-server-compact .console-title {
    font-size: 8px;
}

.demo-server-compact .console-dots span {
    width: 8px;
    height: 8px;
}

.demo-server-compact .console-body {
    padding: 10px;
    min-height: 60px;
}

.demo-server-compact .console-line {
    padding: 4px 0;
}

.demo-server-compact .console-prompt {
    font-size: 9px;
}

.demo-server-compact .console-cmd {
    font-size: 8px;
}

.demo-server-compact .console-status {
    font-size: 7px;
}

.demo-server-compact .console-output .jwt-token {
    font-size: 7px;
}

.demo-server.active .console-window {
    box-shadow:
        0 4px 25px rgba(51, 255, 51, 0.3),
        inset 0 0 80px rgba(51, 255, 51, 0.05);
}

/* ===== SERVER VALUE DISPLAY ===== */
.server-value {
    color: #66ff66;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 11px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.server-value.visible {
    opacity: 1;
}

/* Destruction animation - fades and strikes through the original values */
.server-value.destroying {
    opacity: 0.3;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 80, 80, 0.8);
    color: rgba(255, 80, 80, 0.6);
    animation: value-fade-destroy 0.4s ease-out forwards;
}

@keyframes value-fade-destroy {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: blur(1px);
    }
    100% {
        opacity: 0.15;
        transform: scale(0.9);
        filter: blur(2px);
    }
}

.server-code-value {
    letter-spacing: 1px;
    font-weight: bold;
}

.demo-server-compact .server-value {
    font-size: 9px;
}

/* ===== JWT JSON SYNTAX HIGHLIGHTING ===== */
.server-jwt-json {
    margin-top: 6px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.4s ease;
}

.server-jwt-json.visible {
    opacity: 1;
    max-height: 80px;
}

.jwt-json-display {
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid rgba(51, 255, 51, 0.2);
    border-radius: 4px;
    padding: 6px 8px;
    margin: 0;
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 7px;
    line-height: 1.4;
    color: #33ff33;
}

.jwt-json-display code {
    white-space: pre;
}

.jwt-key {
    color: #88ccff;
}

.jwt-string {
    color: #ffcc66;
}

.jwt-number {
    color: #cc99ff;
}

.demo-server-compact .jwt-json-display {
    font-size: 6px;
    padding: 4px 6px;
}

/* ===== PROFILE PLACEHOLDER STYLES ===== */
.profile-generic-state {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.profile-logged-in-state {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.profile-logged-in-state.visible {
    display: flex;
}

.profile-generic-state.hidden {
    display: none;
}

.profile-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
}

.demo-phone-compact .profile-avatar-placeholder {
    width: 28px;
    height: 28px;
}

.profile-placeholder-bar {
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
}

.profile-placeholder-name {
    width: 50px;
    height: 12px;
}

.profile-placeholder-welcome {
    width: 70px;
    height: 8px;
}

.profile-placeholder-email {
    width: 90px;
    height: 8px;
}

.demo-phone-compact .profile-placeholder-bar {
    height: 8px;
}

.demo-phone-compact .profile-placeholder-name {
    width: 40px;
    height: 10px;
}

.demo-phone-compact .profile-placeholder-welcome {
    width: 55px;
    height: 6px;
}

.demo-phone-compact .profile-placeholder-email {
    width: 70px;
    height: 6px;
}

/* Content placeholder bars (web 3.0 style) */
.profile-content-placeholders {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
    width: 100%;
}

.content-placeholder-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    width: 100%;
}

.content-placeholder-bar.short {
    width: 60%;
}

.content-placeholder-bar.medium {
    width: 80%;
}

.demo-phone-compact .content-placeholder-bar {
    height: 6px;
}

.demo-phone-compact .profile-content-placeholders {
    margin-top: 6px;
    gap: 4px;
}

/* Profile content area - container for placeholders and details */
.profile-content-area {
    position: relative;
    margin-top: 8px;
    width: 100%;
}

.demo-phone-compact .profile-content-area {
    margin-top: 6px;
}

/* Profile details (actual content after loading) */
.profile-details {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.profile-details.visible {
    display: flex;
}

.profile-content-placeholders.hidden {
    display: none;
}

.profile-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 10px;
}

.demo-phone-compact .profile-detail-row {
    padding: 3px 6px;
    font-size: 8px;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--accent);
    font-weight: 600;
}

/* Shimmer animation for loading content */
.content-placeholder-bar.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.08) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Initial load animation - quick shimmer burst */
.profile-content-placeholders.loading .content-placeholder-bar {
    animation: shimmer-burst 0.3s ease-out;
}

@keyframes shimmer-burst {
    0% {
        background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.08) 100%);
        background-size: 200% 100%;
        background-position: 200% 0;
    }
    100% {
        background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.08) 100%);
        background-size: 200% 100%;
        background-position: -200% 0;
    }
}

/* ===== COMPACT ARROW STYLES ===== */
.demo-arrow-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    position: relative;
    opacity: 0.3;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: -20px;
}

.demo-arrow-compact.active {
    opacity: 1;
}

.demo-arrow-compact .arrow-svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.demo-arrow-compact.active .arrow-svg {
    color: var(--accent);
}

.demo-arrow-compact .demo-arrow-logo {
    position: absolute;
    left: -10px;
    width: 20px;
    height: 20px;
    opacity: 0;
    z-index: 10;
}

.demo-arrow-compact .demo-arrow-logo img {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.demo-arrow-compact .demo-arrow-logo.flying {
    opacity: 1;
    animation: flyLogoCompact 0.6s ease-in-out forwards;
}

@keyframes flyLogoCompact {
    0% { left: -10px; transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { left: 30px; transform: scale(1); }
}

.demo-arrow-compact .demo-arrow-jwt {
    position: absolute;
    left: -10px;
    font-size: 16px;
    opacity: 0;
    z-index: 10;
}

.demo-arrow-compact .demo-arrow-jwt.flying {
    opacity: 1;
    animation: flyJwtCompact 0.6s ease-in-out forwards;
}

@keyframes flyJwtCompact {
    0% { left: -10px; transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { left: 30px; transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .demo-flow-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .demo-arrow-compact {
        transform: rotate(90deg);
        margin: 0;
        width: 30px;
    }

    .demo-phone-compact .phone-frame,
    .demo-email-compact .email-window,
    .demo-server-compact .server-frame {
        width: auto;
        min-width: 200px;
        max-width: 280px;
    }

    .demo-phone-compact .phone-frame {
        height: auto;
        min-height: 220px;
    }
}
