:root {
    /* STRICT LIGHT THEME ENFORCEMENT */
    --color-bg-page: #2D1B36;
    /* Background stays dark purple as per reference */
    --color-card-bg: #FFFFFF;
    /* Card MUST be white */
    --color-primary: #8B5CF6;
    --color-primary-dark: #7C3AED;
    --color-text-main: #1F2937;
    /* Dark text for white background */
    --color-text-sub: #6B7280;
    --color-green-cta: #10B981;
    --color-green-hover: #059669;
    --shadow-deep: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
    --radius-card: 24px;
    --grad-lux: linear-gradient(135deg, #8B5CF6 0%, #D946EF 100%);
    --grad-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);

    /* OVERRIDE SYSTEM DRIVEN DARK MODE */
    color-scheme: light;
}

/* PREMIUM ICONS */
.icon-premium {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-premium.filled {
    fill: currentColor;
    stroke: none;
}

.text-gradient {
    background: var(--grad-lux);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow-x: hidden;
}

/* BACKGROUND */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../background.png') center center;
    background-size: cover;
    filter: blur(12px) brightness(0.6) saturate(0.8);
    z-index: -2;
    transform: scale(1.1);
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 27, 54, 0.85), rgba(88, 28, 135, 0.6));
    z-index: -1;
}

/* --- V18 HEADER LAYOUT (FLEX ROW) --- */
.card-header-internal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator */
    padding-bottom: 15px;
}

/* INTERNAL LOGO (V18 - Left) */
.card-logo-container {
    flex-shrink: 0;
}

.card-logo-img {
    height: 36px;
    /* Slightly larger for prominence */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
    display: block;
}

/* EMOTIONAL TIMER (V18 - Right, Subtle -> PREMIUM V19) */
.emotional-timer-container {
    width: auto;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeTimerIn 1s ease forwards 0.5s;
}

.emotional-timer-pill {
    /* Premium Light Theme Look */
    background: #FFFFFF;
    backdrop-filter: blur(8px);
    border: 2px solid #F3E8FF;
    /* Soft purple border */
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    /* Soft purple glow */
    color: #4B5563;
    /* Dark Gray text */
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect on the pill */
.emotional-timer-pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent);
}

.timer-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #9CA3AF;
    /* Soft gray */
}

@media (max-width: 400px) {
    .timer-text {
        display: none;
    }
}

.timer-val {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #C084FC;
    /* Bright Purple */
    font-size: 0.95rem;
    /* Slightly larger */
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    /* Glow */
}

/* --- TRUST BAR (V19) --- */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* Space between items */
    margin-top: 15px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

.trust-item svg {
    width: 14px;
    height: 14px;
    color: #9CA3AF;
    /* Muted icon color */
    stroke-width: 2;
}

.trust-divider {
    color: #D1D5DB;
    font-size: 0.6rem;
}

/* Animation Classes */
.timer-fade-out {
    animation: fadeTimerOut 1s ease forwards;
}

/* --- CATALOG RIBBON (V19 Premium - REFINED) --- */
.ribbon-wrapper {
    position: absolute;
    right: -14px;
    width: 143px;
    height: 150px;
    overflow: hidden;
    z-index: 30;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(139, 92, 246, 0.4));
}

.ribbon-catalog {
    /* Lux Gradient instead of flat color */
    background: linear-gradient(90deg, #7C3AED 0%, #D946EF 100%);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    transform: rotate(45deg);
    position: absolute;
    left: -32px;
    top: 32px;
    width: 220px;
    height: 30px;
    /* Base height explicitly defined */

    /* Perfect Centering */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* Subtle gloss/border details */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Shine Effect */
.ribbon-catalog::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: ribbonShine 4s infinite linear;
}

@keyframes ribbonShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 200%;
    }
}

/* Ensure Mobile Header clears the Ribbon */
@media (max-width: 899px) {
    .card-header-internal {
        padding-right: 60px;
        flex-wrap: nowrap;
        /* Prevent ugly wrapping if possible */
    }

    .ribbon-wrapper {
        width: 120px;
        height: 120px;
        top: -3px;
        right: -3px;
    }

    .ribbon-catalog {
        font-size: 0.55rem;
        padding: 8px 0;
        top: 24px;
        width: 170px;
        left: -25px;
    }

    .emotional-timer-container {
        margin-left: auto;
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeTimerIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

@keyframes fadeTimerOut {
    to {
        opacity: 0;
        transform: translateY(-5px);
        pointer-events: none;
    }
}


/* SOCIAL PROOF TOASTS (V19 Light Theme) */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: auto;
    max-width: calc(100% - 40px);
}

.social-proof-toast {
    /* Light Theme Adaptation */
    background: #FFFFFF;
    padding: 12px 16px;
    border-radius: 12px;
    /* Soft, deep shadow for lift on white bg */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #F3F4F6;
    border-left: 4px solid #8B5CF6;
    /* Purple accent line */
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-width: 280px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: toastIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

/* Shine Effect (Subtle for white) */
.social-proof-toast::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    animation: toastShine 3s infinite linear;
}

@keyframes toastShine {
    0% {
        left: -100%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.social-proof-toast.hiding {
    animation: toastOut 0.5s ease forwards;
}

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

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #8B5CF6;
    /* Purple icon */
    background: #F3E8FF;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1F2937;
    /* Dark text */
    margin-bottom: 2px;
}

.toast-action {
    font-size: 0.75rem;
    color: #6B7280;
    /* Soft Gray */
    line-height: 1.2;
}


/* MASTER CARD V13/V14 Preserved */
.master-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 1050px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-deep);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 20;
    margin-top: 10px;
}

@media (min-width: 900px) {
    .master-card {
        flex-direction: row;
        min-height: 580px;
    }
}

/* LEFT: CHECKOUT */
.col-left {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to accommodate header at top */
    position: relative;
    z-index: 2;
}

@media (min-width: 900px) {
    .col-left {
        flex: 1.4;
        padding: 35px 45px;
    }
}

/* RIGHT: VISUALS */
.col-right {
    padding: 25px;
    flex: 1;
    background: radial-gradient(circle at top right, #FDF4FF, #F3E8FF);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (min-width: 900px) {
    .col-right {
        flex: 1;
        padding: 30px;
    }
}

/* TYPOGRAPHY */
.headline-emotional {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 0 0 6px;
    line-height: 1.2;
    text-align: center;
}

@media (min-width: 900px) {
    .headline-emotional {
        text-align: left;
    }
}

.subhead-emotional {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 900px) {
    .subhead-emotional {
        text-align: left;
    }
}

/* PRICE BLOCK */
.price-container {
    background: #FAFAFA;
    border: 1px dashed #E5E7EB;
    border-radius: 14px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.price-old {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2px;
}

.price-new {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1;
}

.price-desc {
    font-size: 0.8rem;
    color: #4B5563;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.badge-v12 {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    position: absolute;
    top: -10px;
    right: 15px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

/* PIX INFO BLOCK */
.pix-payment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.pix-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #059669;
    font-size: 0.95rem;
}

.pix-brand-logo {
    height: 68px;
    width: auto;
    object-fit: contain;
    display: block;
}

.pix-release-hint {
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
    padding-left: 14px;
}

.cta-microcopy {
    text-align: center;
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

/* BENEFITS */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.icon-soft {
    width: 24px;
    height: 24px;
    background: #F3E8FF;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.icon-soft svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

/* FORM */
.form-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.input-cozy-wrapper {
    margin-bottom: 10px;
}

.label-cozy {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 4px;
}

.input-cozy {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #F9FAFB;
    transition: all 0.2s;
    box-sizing: border-box;
    /* Fix overflow */
}

/* Mobile Input Adjustment */
@media (max-width: 899px) {
    .input-cozy {
        padding: 10px;
        /* Smaller padding */
        font-size: 0.9rem;
        /* Smaller text */
    }
}

.input-cozy:focus {
    background: #FFF;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    outline: none;
}

.input-hint {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 2px;
    font-style: italic;
}

/* CTA */
.btn-refugio {
    width: 100%;
    background: var(--color-green-cta);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px;
    border-radius: 10px;
    border: none;
    border-bottom: 4px solid var(--color-green-hover);
    cursor: pointer;
    margin-top: 5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-refugio:active {
    margin-top: 7px;
    border-bottom-width: 2px;
}

.cta-sub {
    text-align: center;
    color: #6B7280;
    font-size: 0.8rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* VISUALS */
/* VISUALS & RIGHT COLUMN REFINEMENTS (V19) */
.stack-visual {
    width: 100%;
    max-width: 260px;
    /* Reduced from 300px for better proportion */
    margin: 0 auto 24px auto;
    /* Centered with breathing room */
    position: relative;
    transition: transform 0.3s ease;
}

.stack-visual:hover {
    transform: translateY(-5px);
}

.img-devices {
    width: 100%;
    height: auto;
    /* Soft, elegant shadow as requested */
    filter: drop-shadow(0 15px 30px rgba(139, 92, 246, 0.25));
}

.card-community {
    /* Premium Dark Glass - "Fundo escuro ou levemente translúcido" */
    background: linear-gradient(145deg, rgba(30, 20, 50, 0.9), rgba(60, 20, 90, 0.85));
    backdrop-filter: blur(12px);
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for depth */
.card-community::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.comm-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F3E8FF;
    /* Light Lilac for Dark Bg */
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.msg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.msg-bubble {
    /* Chat bubble aesthetic */
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 0.85rem;
    color: #E5E7EB;
    /* White/Gray Text */
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.msg-bubble:hover {
    background: rgba(255, 255, 255, 0.12);
}

.comm-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #A78BFA;
    /* Soft Purple */
    margin-top: 18px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

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

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

/* INTERNAL FOOTER REMOVED (V19) */

/* PIX */
.pix-box {
    padding: 15px;
}

.pix-qr {
    margin: 10px 0;
}

/* --- DYNAMIC SAVINGS TEXT (V19) --- */
.savings-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-green-cta);
    /* Green to emphasize savings */
    margin-top: 4px;
    margin-bottom: 4px;
    display: block;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    width: fit-content;
    border: 1px solid rgba(16, 185, 129, 0.2);
    /* Animation pulse */
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* --- MOBILE FIRST OVERHAUL (Senior Product Designer Specs) --- */
@media (max-width: 899px) {

    /* MASTER CARD: Remove padding/shadow for full width feel */
    .master-card {
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        background: #FFFFFF;
    }

    body {
        padding: 0;
        background: #FFFFFF;
        /* Match card for seamless look */
    }

    body::before,
    body::after {
        display: none;
        /* Remove distracting backgrounds on mobile */
    }

    /* HEADER: Clean & Compact */
    .card-header-internal {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-bottom: 20px;
        border-bottom: none;
    }

    .card-logo-img {
        height: 60px;
        /* Logo larger for trust */
    }

    .emotional-timer-container {
        margin: 0;
        opacity: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .emotional-timer-pill {
        background: #F3E8FF;
        /* Light purple pill */
        color: #7C3AED;
        border: none;
        box-shadow: none;
        padding: 6px 16px;
        border-radius: 50px;
    }

    .timer-text {
        display: inline-block;
        color: #6B7280;
        font-size: 0.75rem;
    }

    .timer-val {
        color: #7C3AED;
        text-shadow: none;
    }

    /* HEADLINE & HERO */
    .headline-emotional {
        font-size: 1.5rem;
        text-align: center;
        padding: 0 10px;
        line-height: 1.2;
    }

    .subhead-emotional {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 20px;
    }

    /* RIBBON: Hide on Mobile (Distraction) */
    .ribbon-wrapper {
        display: none;
    }

    /* PRICE CARD: Compact */
    .price-container {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #FAFAFA;
        border: 1px solid #F3F4F6;
        margin-bottom: 15px;
    }

    .badge-v12 {
        position: relative;
        top: -24px;
        right: auto;
        font-size: 0.7rem;
    }

    .price-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* FORM: Simple & Friendly */
    .col-left {
        padding: 20px;
    }

    .form-header {
        text-align: center;
        color: #6B7280;
        font-weight: 500;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .input-cozy-wrapper {
        margin-bottom: 12px;
    }

    .label-cozy {
        font-size: 0.85rem;
        margin-left: 2px;
    }

    .input-cozy {
        height: 48px;
        /* Balanced touch target */
        padding: 8px 12px;
        /* Reduced vertical padding */
        font-size: 16px;
        /* Prevent iOS zoom */
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    /* CTA: DOMINANT */
    .btn-refugio {
        position: relative;
        /* Fixed visual preference */
        width: 100%;
        padding: 20px;
        font-size: 1.15rem;
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
        margin-top: 10px;
        border-bottom-width: 4px;
    }

    /* TRUST BAR: Single Line */
    .trust-bar {
        flex-wrap: nowrap;
        gap: 5px;
        justify-content: space-around;
        margin-top: 20px;
        background: #F9FAFB;
        padding: 10px;
        border-radius: 10px;
    }

    .trust-item {
        font-size: 0.65rem;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        color: #6B7280;
    }

    .trust-item svg {
        color: #8B5CF6;
        /* Purple icons */
    }

    .trust-divider {
        display: none;
    }

    /* Remove dots for space */

    /* VISUALS: REMOVE DESKTOP MOCKUP */
    .img-devices {
        display: none;
        /* "REMOVER COMPLETAMENTE" */
    }

    .col-right {
        padding: 30px 20px;
        background: #F9FAFB;
        border-top: 1px dashed #E5E7EB;
    }

    .card-community {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        max-width: 100%;
    }

    .card-community::before {
        display: none;
    }

    .comm-title {
        color: #4B5563;
        text-shadow: none;
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .msg-bubble {
        background: #FFFFFF;
        color: #374151;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        border: 1px solid #E5E7EB;
        font-size: 0.9rem;
    }

    .comm-footer {
        color: #6B7280;
        font-weight: 500;
    }

    /* Hide extra messages on mobile, keep top 3 */
    /* Hide extra messages on mobile, keep top 3 */
    .msg-bubble:nth-child(n+4) {
        display: none;
    }
}

/* Default: Hide Mobile Pill on Desktop */
.ribbon-mobile {
    display: none;
}

/* Default: Hide Mobile Pill on Desktop */
.ribbon-mobile {
    display: none;
}

/* --- MOBILE CHECKOUT MODAL (Senior UX/CRO Specs) --- */
@media (max-width: 899px) {

    /* HIDE DESKTOP RIBBON */
    .ribbon-desktop {
        display: none;
    }

    /* 1. BACKGROUND LAYER */
    body {
        /* Restore branding background for the context layer overlap */
        background-color: #2D1B36;
        overflow: hidden;
        /* Prevent body scroll, only modal scrolls */
        height: 100vh;
        width: 100vw;
    }

    .bg-context-layer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background-image: url('../../mockup_user_notebook.png');
        /* Use existing asset, check path */
        background-size: cover;
        background-position: center;
        /* The Blur & Overlay */
        filter: blur(8px) brightness(0.6);
        opacity: 0.8;
        transform: scale(1.1);
        /* Prevent blur edges */
    }

    /* 2. MODAL CARD (Compacted for faster form access) */
    .master-card {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 92vh;
        background: #FFFFFF;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        z-index: 100;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0;
        padding-bottom: 30px;

        /* Animation */
        transform: translateY(100%);
        animation: slideModalUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    }

    @keyframes slideModalUp {
        to {
            transform: translateY(0);
        }
    }

    /* 3. MODAL HEADER ELEMENTS */
    .card-header-internal {
        padding-top: 10px;
        /* Reduced padding for Header Pill */
        position: relative;
    }

    /* Close Button */
    .modal-close-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        background: #F3F4F6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9CA3AF;
        cursor: pointer;
    }

    .modal-close-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Fix Logo & Timer Sizing for Modal */
    .card-logo-img {
        height: 50px;
    }

    .emotional-timer-pill {
        margin-top: 5px;
    }

    /* 4. CONTENT COMPACTING (CRITICAL UX) */
    .headline-emotional {
        font-size: 1.25rem;
        margin-top: 8px;
    }

    .subhead-emotional {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .price-container {
        padding: 10px;
        margin-bottom: 12px;
        background: #F9FAFB;
    }

    .benefit-item {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .col-left {
        padding: 0 16px 15px 16px;
    }

    .price-block {
        margin-bottom: 15px !important;
    }

    .benefit-list {
        margin-bottom: 15px !important;
    }

    /* 5. STICKY CTA (If supported, else normal flow) */
    /* The user asked for Sticky CTA at bottom of modal. 
       We can try sticky positioning the button container or the button itself. 
       However, sticky inside a scroll container works relative to content. 
       To make it TRULY sticky at the view bottom of the modal, we need a sticky wrapper or fixed inside modal.
       Let's keep it simple first as part of the flow to ensure it's seen. 
       But "CTA sempre visível" is a strong request. 
       Let's try position: sticky; bottom: 0; z-index: 10;
    */
    #btn-submit {
        position: sticky;
        bottom: 20px;
        z-index: 10;
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
        /* Stronger shadow/lift */
    }

    /* Remove Desktop Mockup */
    .img-devices {
        display: none;
    }

    /* RIBBON: Repurposed as Mobile Badge (Bottom of Header) */
    .ribbon-mobile {
        display: flex;
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        justify-content: center;
        padding-top: 10px;
        /* Space from Timer */
        padding-bottom: 0;
        z-index: 50;
        pointer-events: none;
        overflow: visible;
        border-radius: 0;
    }

    .ribbon-catalog {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        transform: none;
        background: #F3E8FF;
        border: 1px solid #E9D5FF;
        color: #7C3AED;
        text-shadow: none;
        box-shadow: none;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 6px 16px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ribbon-catalog::before {
        content: '✨';
        font-size: 0.8rem;
    }

    .ribbon-catalog::before {
        content: '✨';
        font-size: 0.8rem;
    }


    /* Right Column / Social Proof */
    .col-right {
        padding: 20px;
        padding-bottom: 80px;
        /* Extra padding for bottom stuff */
    }

    .card-community {
        margin-top: 0;
    }

    /* Ensure Toast is above modal? Or inside? 
       Toast is fixed to viewport. It will show ON TOP of modal if z-index is higher. 
       Modal z-index is 100. Toast is 1500. Correct.
    */
    .toast-container {
        bottom: auto;
        /* Reset bottom */
        top: 20px;
        /* Move to Top */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        z-index: 2000;
        /* Ensure it's above everything including ribbon */
    }
}

/* --- PIX ENHANCEMENTS (Global) --- */
.pix-box {
    padding: 24px;
    background: #FAFAFA;
    border: 2px dashed #E5E7EB;
    border-radius: 16px;
    text-align: center;
    margin-top: 25px;
    animation: fadeInPix 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle success background gradient */
.pix-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #10B981, #34D399);
}

@keyframes fadeInPix {
    from {
        opacity: 0;
        transform: translateY(10px);
        scale: 0.98;
    }

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

.pix-qr {
    display: block;
    margin: 20px auto;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border: 8px solid white;
    /* Frame effect */
    background: white;
}

/* Input that looks like a ticket/code */
.pix-key {
    width: 100%;
    max-width: 320px;
    padding: 14px;
    font-size: 0.85rem;
    color: #4B5563;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    /* Code feel */
    box-sizing: border-box;
    cursor: text;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pix-key:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* --- STEP 2: INLINE PIX VIEW --- */
.pix-step-view {
    animation: fadeInPix 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding: 20px 0;
}

.pix-step-view .pix-box {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pix-step-view .pix-box::before {
    display: none;
    /* Remove the top line if inline */
}

/* Feedback message positioning */
#copy-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    color: #059669;
    /* Darker green */
    min-height: 20px;
    /* Prevent layout jump */
}

/* --- PIX MODAL & ENHANCEMENTS (V20 Premium) --- */
/* Unused modal styles removed */

.pix-instructions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #FDF4FF;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #F3E8FF;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #7C3AED;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.85rem;
    color: #581C87;
    font-weight: 600;
}

/* Mobile Tweaks - Step 2 FIX */
@media (max-width: 480px) {
    .pix-step-view {
        padding: 0;
        /* Let master-card handle side padding */
    }

    .pix-box {
        padding: 0;
    }

    .pix-qr {
        width: 170px;
        /* Slightly larger for visibility */
        height: 170px;
    }

    .pix-instructions {
        padding: 15px;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .pix-title {
        font-size: 1.4rem;
        /* Keep it bold */
        margin-top: 10px;
    }

    .pix-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}