/**
 * criar.css — Estilos exclusivos da página /criar
 * Tema de amor com efeitos premium
 */

/* ========================================
   PAGE LAYOUT
   ======================================== */
.criar-page {
    min-height: 100dvh;
    min-height: 100vh; /* Fallback */
    position: relative;
}

.criar-main {
    min-height: 100dvh;
    min-height: 100vh; /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

/* ========================================
   AMBIENT BACKGROUND — Orbs flutuantes
   ======================================== */
.criar-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 77, 109, 0.12);
    top: -10%;
    left: -5%;
    animation: orb-drift-1 18s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 143, 163, 0.1);
    bottom: -15%;
    right: -5%;
    animation: orb-drift-2 22s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(244, 114, 182, 0.08);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: orb-drift-3 15s ease-in-out infinite;
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.12; }
    33% { transform: translate(60px, 40px) scale(1.1); opacity: 0.18; }
    66% { transform: translate(-30px, 60px) scale(0.95); opacity: 0.1; }
}

@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    50% { transform: translate(-50px, -40px) scale(1.15); opacity: 0.16; }
}

@keyframes orb-drift-3 {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.08; }
    50% { transform: translateX(-50%) translate(30px, -20px) scale(1.2); opacity: 0.14; }
}


/* ========================================
   LOVE CANVAS — Corações flutuando
   ======================================== */
#love-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}



/* ========================================
   BACK BUTTON
   ======================================== */
.criar-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 24px;
    text-decoration: none;
}

.criar-back-btn:hover {
    color: var(--foreground);
    transform: translateX(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ========================================
   QUESTION SECTION
   ======================================== */
.criar-question-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.question-mascot {
    position: relative;
    flex-shrink: 0;
}

.mascot-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.25), transparent 70%);
    border-radius: 50%;
    animation: mascot-pulse 3s ease-in-out infinite;
}

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

.mascot-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(255, 143, 163, 0.1));
    border: 1px solid rgba(255, 77, 109, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.question-bubble {
    padding: 18px 28px;
    border-radius: 20px 20px 20px 4px;
    position: relative;
    max-width: 400px;
}

.question-bubble p {
    font-size: 1.1rem;
    color: var(--foreground);
    font-weight: 500;
    margin: 0;
}

.bubble-typing {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    opacity: 0;
    animation: typing-appear 0.6s 1.5s both;
}

.bubble-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    animation: typing-dot 1.4s ease-in-out infinite;
}

.bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-6px); opacity: 0.8; }
}

@keyframes typing-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ========================================
   OPTIONS GRID
   ======================================== */
.criar-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

/* Row for "Em Breve" cards */
.criar-options-soon-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========================================
   OPTION CARD BASE
   ======================================== */
.option-card {
    padding: 32px;
    border-radius: 24px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.option-card:hover {
    transform: translateY(-4px);
}


/* ========================================
   LOVE OPTION — O Card Principal
   ======================================== */
.option-love {
    background: linear-gradient(135deg,
        rgba(255, 77, 109, 0.08),
        rgba(255, 143, 163, 0.04),
        rgba(255, 77, 109, 0.06)
    );
    border: 2px solid rgba(255, 77, 109, 0.25);
    padding: 24px 32px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 24px;
}

.option-love::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.4), rgba(255, 143, 163, 0.2), rgba(244, 114, 182, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(1px);
}

.option-love:hover {
    border-color: rgba(255, 77, 109, 0.5);
    box-shadow:
        0 20px 60px rgba(255, 77, 109, 0.15),
        0 0 40px rgba(255, 77, 109, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-6px) scale(1.01);
}

.option-love:hover::after {
    opacity: 0.3;
}

/* Badge "Mais Popular" */
.option-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #ff8fa3);
    color: white;
    padding: 5px 16px;
    border-radius: 0 0 10px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
    animation: badge-shimmer 3s ease-in-out infinite;
}

@keyframes badge-shimmer {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 77, 109, 0.6), 0 0 10px rgba(255, 77, 109, 0.2); }
}

/* Icon wrapper com rings animados */
.option-icon-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.option-main-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 77, 109, 0.5));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255, 77, 109, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(255, 77, 109, 0.7)); }
}

.love-icon-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 77, 109, 0.2);
    border-radius: 50%;
    animation: ring-expand 3s ease-out infinite;
}

.love-icon-ring.ring-2 {
    animation-delay: 1.5s;
}

@keyframes ring-expand {
    0% { transform: scale(0.8); opacity: 0.6; border-color: rgba(255, 77, 109, 0.4); }
    100% { transform: scale(1.6); opacity: 0; border-color: rgba(255, 77, 109, 0); }
}

.option-love-text {
    flex: 1;
    min-width: 0;
}

.option-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--foreground);
}

.option-desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Feature pills */
.option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    margin-bottom: 0;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.option-love:hover .feature-pill {
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 77, 109, 0.25);
}

/* CTA dentro do card */
.option-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.4);
    flex-shrink: 0;
    white-space: nowrap;
}

.option-love:hover .option-cta {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 77, 109, 0.5);
}

/* Love particles (dentro do card) */
.love-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}


/* ========================================
   SOON CARDS — Em Breve
   ======================================== */
.criar-options .option-soon {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
}

.option-soon .option-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.option-soon .option-main-icon {
    width: 20px;
    height: 20px;
    color: var(--muted-foreground);
    filter: none;
    animation: none;
}

.option-soon .option-title {
    font-size: 0.95rem;
    margin-bottom: 2px;
    text-align: left;
}

.option-soon .option-desc {
    margin-bottom: 0;
    text-align: left;
    font-size: 0.8rem;
}

.soon-overlay {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}


/* ========================================
   LOVE DETAIL PANEL
   ======================================== */
.love-detail-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--background);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0.5s;
}

.love-detail-panel.active {
    opacity: 1;
    visibility: visible;
}

.love-detail-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.detail-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.detail-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 77, 109, 0.15);
    top: -20%;
    right: -10%;
    animation: detail-orb-1 12s ease-in-out infinite;
}

.detail-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(244, 114, 182, 0.1);
    bottom: -20%;
    left: -10%;
    animation: detail-orb-2 16s ease-in-out infinite;
}

@keyframes detail-orb-1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.15; }
    50% { transform: translate(-40px, 30px); opacity: 0.2; }
}

@keyframes detail-orb-2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.1; }
    50% { transform: translate(30px, -20px); opacity: 0.15; }
}

/* Back button */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--muted-foreground);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 100px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-back:hover {
    color: var(--foreground);
    transform: translateX(-4px);
    background: rgba(255, 255, 255, 0.06);
}

/* Detail Content */
.detail-content {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}

.detail-hero {
    text-align: center;
    margin-bottom: 48px;
}

.detail-icon-large {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 77, 109, 0.15);
    border-radius: 50%;
    animation: detail-ring-pulse 4s ease-out infinite;
}

.detail-pulse-ring.ring-delay {
    animation-delay: 2s;
}

@keyframes detail-ring-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.detail-subtitle {
    color: var(--muted-foreground);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* Detail Features */
.detail-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: translateX(-20px);
}

.love-detail-panel.active .detail-feature {
    opacity: 1;
    transform: translateX(0);
}

.love-detail-panel.active .detail-feature[data-index="0"] { transition-delay: 0.2s; }
.love-detail-panel.active .detail-feature[data-index="1"] { transition-delay: 0.35s; }
.love-detail-panel.active .detail-feature[data-index="2"] { transition-delay: 0.5s; }
.love-detail-panel.active .detail-feature[data-index="3"] { transition-delay: 0.65s; }

.detail-feature:hover {
    transform: translateX(8px);
    border-color: rgba(255, 77, 109, 0.3);
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.08);
}

.df-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(255, 77, 109, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.detail-feature:hover .df-icon {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.25), rgba(255, 77, 109, 0.1));
    transform: scale(1.1) rotate(5deg);
}

.df-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--foreground);
}

.df-text p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
}

/* Detail CTA */
.detail-cta-wrapper {
    text-align: center;
}

.detail-cta-btn {
    padding: 18px 48px !important;
    font-size: 1.15rem !important;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.4);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-cta-btn:hover {
    transform: scale(1.06) !important;
    box-shadow: 0 12px 40px rgba(255, 77, 109, 0.5) !important;
}

.detail-cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    opacity: 0.7;
}


/* ========================================
   WIZARD PANEL — Formulário de criação
   ======================================== */
.wizard-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--background);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0.5s;
}

.wizard-panel-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.wizard-panel.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   WIZARD TWO-COLUMN LAYOUT
   ======================================== */
.wizard-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    min-height: 100dvh;
    min-height: 100vh; /* Fallback */
    position: relative;
    z-index: 1;
}

.wizard-form-col {
    flex: 1;
    min-width: 0;
    max-width: 600px;
}

.wizard-preview-col {
    width: 340px;
    flex-shrink: 0;
    display: block;
}

.preview-sticky {
    position: sticky;
    top: 40px;
    padding-top: 80px;
}

.preview-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted-foreground);
    opacity: 0.6;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   PHONE MOCKUP
   ======================================== */
.phone-mockup {
    width: 100%;
    max-width: 310px;
    aspect-ratio: 9 / 18;
    background: #141414;
    border-radius: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efeito Holográfico e Glow baseado no movimento do mouse */
.phone-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    border-radius: 33px; /* Slightly less than parent */
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 77, 109, 0.15),
        transparent 40%
    );
    mix-blend-mode: screen;
}

.phone-mockup:hover::before {
    opacity: 1;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #000;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0508;
    position: relative;
}

/* Iframe Preview — renderiza presente.html real, escalado */
.preview-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 414px;
    height: 896px;
    border: none;
    transform-origin: top left;
    transform: scale(0.735);  /* 310px / 414px ≈ 0.735 */
    background: #0a0508;
    pointer-events: auto;
}

/* ========================================
   PHONE PREVIEW — Mirrors presente.html
   ======================================== */

/* Hero Section */
.pv-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 16px 16px;
    position: relative;
    background: radial-gradient(circle at center top, #240c14, #0a0508);
}

/* Rotating Disc */
.pv-disc {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(255,77,109,0.3);
    animation: pv-rotate 20s linear infinite;
    animation-play-state: paused;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pv-disc.playing { animation-play-state: running; }

@keyframes pv-rotate { 100% { transform: rotate(360deg); } }

.pv-disc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-disc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.pv-disc-img.visible { display: block; }

.pv-disc-hole {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: #0a0508;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    z-index: 2;
}

/* Couple Names */
.pv-couple-names {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-style: italic;
    color: white;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.pv-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-heart {
    font-size: 0.7rem;
    animation: pv-beat 1s infinite alternate;
}

@keyframes pv-beat { to { transform: scale(1.25); } }

/* Mini Player (pill) */
.pv-mini-player {
    margin-top: 12px;
    background: rgba(255,255,255,0.06);
    padding: 8px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}

.pv-track-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.pv-song-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-song-artist {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sound Wave */
.pv-sound-wave { display: flex; gap: 2px; height: 14px; align-items: flex-end; }
.pv-sound-wave span {
    display: block; width: 2.5px; background: #ff4d6d; border-radius: 1px;
    animation: pv-wave 1s infinite ease-in-out;
}
.pv-sound-wave span:nth-child(2) { animation-delay: 0.2s; }
.pv-sound-wave span:nth-child(3) { animation-delay: 0.4s; }
.pv-sound-wave span:nth-child(4) { animation-delay: 0.6s; }
@keyframes pv-wave { 0%, 100% { height: 3px; } 50% { height: 100%; } }

/* Scroll Hint */
.pv-scroll-hint {
    position: absolute;
    bottom: 10px;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.3);
    animation: pv-bounce 2s infinite;
}
@keyframes pv-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Counter Section */
.pv-counter-section {
    padding: 20px 16px;
    text-align: center;
    background: #0a0508;
}

.pv-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.pv-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pv-time-box {
    background: rgba(255,77,109,0.1);
    border: 1px solid rgba(255,77,109,0.2);
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
}

.pv-time-box span {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #ff758f;
    display: block;
}

.pv-time-box small {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pv-date-since {
    margin-top: 8px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

/* Declaration Section */
.pv-declaration-section {
    padding: 16px;
    text-align: center;
    background: #0a0508;
}

.pv-quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: rgba(255,77,109,0.25);
    line-height: 1;
    margin-bottom: 4px;
}

.pv-declaration-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.68rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    white-space: pre-wrap;
}

/* Journey Section */
.pv-journey-section {
    padding: 16px;
    background: #0a0508;
}

/* ========================================
   MOBILE PREVIEW BUTTON & OVERLAY
   ======================================== */
.mobile-preview-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 210;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--primary), #ff8fa3);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
    transition: all 0.3s ease;
}

.mobile-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 77, 109, 0.5);
}

.mobile-preview-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-preview-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 310;
    transition: all 0.3s ease;
}

.mobile-preview-close:hover {
    background: rgba(255, 77, 109, 0.2);
    border-color: rgba(255, 77, 109, 0.3);
}

.full-screen-preview {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
}

.full-screen-preview .phone-notch {
    display: none !important;
}

.full-screen-preview .phone-screen {
    border-radius: 0 !important;
    height: 100% !important;
}

/* ========================================
   RESPONSIVE — Preview
   ======================================== */
@media (max-width: 1024px) {
    .wizard-preview-col {
        display: none;
    }

    .mobile-preview-btn {
        display: flex;
        bottom: 96px;
    }

    .wizard-layout {
        padding: 0 20px;
    }

    .wizard-form-col {
        max-width: 100%;
        padding-bottom: 100px;
    }

    .wizard-nav {
        display: none !important;
    }
}

/* Barra de nav fixa — filha direta do wizard-panel (sem overflow) */
.wizard-nav-fixed {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 20px;
    background: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 1024px) {
    .wizard-nav-fixed {
        display: flex;
    }
}

@media (max-width: 600px) {
    .wizard-layout {
        padding: 0 16px;
    }

    .mobile-preview-btn {
        bottom: 96px;
        right: 16px;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .wizard-nav {
        padding: 12px 16px;
    }
}

/* Wizard Background Orbs */
.wizard-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.wizard-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
}

.wizard-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 77, 109, 0.1);
    top: -15%;
    left: -10%;
    animation: orb-drift-1 20s ease-in-out infinite;
}

.wizard-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(244, 114, 182, 0.08);
    bottom: -20%;
    right: -10%;
    animation: orb-drift-2 24s ease-in-out infinite;
}

.wizard-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 143, 163, 0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-drift-3 16s ease-in-out infinite;
}

/* Wizard Header */
.wizard-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 40px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.wizard-back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--muted-foreground);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

.wizard-back-btn:hover {
    color: var(--foreground);
    transform: translateX(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Progress Bar */
.wizard-progress {
    flex: 1;
    max-width: 700px;
}

.mobile-progress-header {
    display: none;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-fill {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff8fa3, var(--primary));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: gradient-flow 4s ease infinite;
    box-shadow: 0 0 12px rgba(255, 77, 109, 0.5);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .progress-steps {
        display: none;
    }

    .mobile-progress-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .mobile-progress-label {
        font-size: 0.8rem;
        color: var(--muted-foreground);
    }

    .mobile-progress-pct {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--primary);
    }

    .progress-track {
        height: 8px;
        margin-bottom: 0;
    }
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.progress-step.active {
    opacity: 1;
    color: var(--primary);
}

.progress-step.completed {
    opacity: 1;
    color: var(--secondary);
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.progress-step.active .step-dot {
    background: rgba(255, 77, 109, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.progress-step.completed .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    position: relative;
    z-index: 2;
    animation: step-enter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wizard-step.active {
    display: block;
}

@keyframes step-enter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.step-content {
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Step Icon — oculto para reduzir espaço nas telas de criação */
.step-icon-wrap {
    display: none;
}

.step-icon-glow {
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.2), transparent 70%);
    border-radius: 50%;
    animation: mascot-pulse 3s ease-in-out infinite;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.12), rgba(255, 143, 163, 0.06));
    border: 1px solid rgba(255, 77, 109, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Step Title */
.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-subtitle {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.form-input:focus {
    border-color: rgba(255, 77, 109, 0.5);
    background: rgba(255, 77, 109, 0.03);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.08),
                0 8px 25px rgba(255, 77, 109, 0.06);
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* Input Glow Effect */
.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 2px;
}

.form-group:focus-within .input-glow {
    width: 80%;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 160px;
    max-height: 400px;
    line-height: 1.7;
}

.textarea-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    opacity: 0.5;
    margin-top: 6px;
}

/* Date Hint */
.form-hint {
    display: block;
    font-size: 0.82rem;
    margin-top: 8px;
    color: var(--secondary);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-left: 2px;
}

.form-hint.visible {
    opacity: 1;
    max-height: 40px;
}

/* Error Input */
.form-input.error {
    border-color: rgba(255, 77, 77, 0.6);
    background: rgba(255, 77, 77, 0.04);
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1);
    animation: shake-input 0.4s ease;
}

@keyframes shake-input {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}


/* ========================================
   SPOTIFY STEP — Música do Casal
   ======================================== */

/* Search Input Wrapper */
.spotify-search-wrap {
    position: relative;
}

.spotify-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.spotify-search-wrap:focus-within .spotify-search-icon {
    color: var(--primary);
    opacity: 1;
}

.spotify-input {
    padding-left: 48px !important;
}

.spotify-link-input {
    padding-left: 44px !important;
    font-size: 0.88rem !important;
}

/* Search Results */
.spotify-results {
    display: none;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.spotify-results.active {
    display: flex;
}

.spotify-results-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.spotify-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 77, 109, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.spotify-results-list {
    display: flex;
    flex-direction: column;
}

/* Spotify Result Item */
.spotify-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    animation: result-fade-in 0.3s ease both;
}

@keyframes result-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.spotify-result-item:last-child {
    border-bottom: none;
}

.spotify-result-item:hover {
    background: rgba(255, 77, 109, 0.06);
    transform: translateX(6px);
}

.spotify-result-item:active {
    transform: scale(0.98);
}

.result-album-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-artist {
    font-size: 0.82rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-duration {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    opacity: 0.6;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.spotify-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--muted-foreground);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Selected Track */
.spotify-selected {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: step-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.spotify-selected.active {
    display: flex;
}

.spotify-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spotify-selected-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.spotify-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--muted-foreground);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotify-change-btn:hover {
    background: rgba(255, 77, 109, 0.08);
    border-color: rgba(255, 77, 109, 0.2);
    color: var(--primary);
}

.spotify-selected-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
}

/* Album Art */
.spotify-album-art {
    position: relative;
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 14px;
    overflow: visible;
}

.spotify-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.spotify-art-glow {
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.3), rgba(244, 114, 182, 0.2));
    border-radius: 20px;
    filter: blur(20px);
    z-index: 0;
    animation: art-glow 4s ease-in-out infinite;
}

@keyframes art-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.spotify-art-pulse {
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(255, 77, 109, 0.2);
    border-radius: 18px;
    z-index: 1;
    animation: detail-ring-pulse 3s ease-out infinite;
}

/* Track Info */
.spotify-track-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spotify-track-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
}

.spotify-track-artist {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin: 0;
}

.spotify-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(29, 185, 84, 0.08);
    border: 1px solid rgba(29, 185, 84, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    color: #1DB954;
    font-weight: 600;
    width: fit-content;
    margin-top: 6px;
}

/* Spotify Embed */
.spotify-embed-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.spotify-embed-wrapper iframe {
    display: block;
}

/* Divider */
.spotify-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted-foreground);
    font-size: 0.82rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.spotify-divider::before,
.spotify-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Hidden state */
.hidden {
    display: none !important;
}

/* Ghost Button (Skip) */
.wizard-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-btn-ghost:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

/* 3-button nav layout */
.wizard-nav-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Step icon Spotify variant */
.step-icon-spotify {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.12), rgba(255, 77, 109, 0.08)) !important;
    border-color: rgba(29, 185, 84, 0.2) !important;
}


/* ========================================
   COVER PHOTO UPLOAD
   ======================================== */
.cover-upload-section {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cover-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cover-optional-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 50px;
    opacity: 0.7;
}

.cover-upload-hint {
    font-size: 0.82rem;
    color: var(--muted-foreground);
    opacity: 0.6;
    margin-bottom: 12px;
}

/* Dropzone */
.cover-dropzone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}

.cover-dropzone:hover {
    border-color: rgba(255, 77, 109, 0.3);
    background: rgba(255, 77, 109, 0.03);
}

.cover-dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(255, 77, 109, 0.06);
    transform: scale(1.01);
    box-shadow: 0 0 30px rgba(255, 77, 109, 0.1);
}

.cover-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.cover-dropzone-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.cover-dropzone-icon {
    color: var(--muted-foreground);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.cover-dropzone:hover .cover-dropzone-icon {
    color: var(--primary);
    opacity: 0.8;
}

.cover-dropzone-text {
    font-size: 0.84rem;
    color: var(--muted-foreground);
}

.cover-dropzone-text strong {
    color: var(--primary);
}

.cover-dropzone-formats {
    display: none;
}

/* Preview */
.cover-preview {
    display: none;
    position: relative;
    width: 100%;
    justify-content: center;
    background: transparent;
}

.cover-preview.active {
    display: flex;
}

.cover-preview img {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: step-enter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cover-remove-btn {
    position: absolute;
    top: -8px;
    right: calc(50% - 108px);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 60, 60, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.cover-remove-btn:hover {
    background: rgba(255, 30, 30, 1);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 60, 60, 0.4);
}

.cover-dropzone.has-preview {
    border-style: solid;
    border-color: rgba(255, 77, 109, 0.2);
    background: rgba(255, 77, 109, 0.02);
    padding: 20px;
}

.cover-dropzone.has-preview .cover-dropzone-content {
    display: none;
}

.cover-dropzone.has-preview .cover-file-input {
    display: none;
}


/* ========================================
   GENERATE DECLARATION BUTTON
   ======================================== */
.generate-btn {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    border: 1.5px solid rgba(255, 77, 109, 0.25);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.generate-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 77, 109, 0.08),
        rgba(244, 114, 182, 0.05),
        rgba(255, 143, 163, 0.08)
    );
    transition: opacity 0.4s ease;
}

.generate-btn:hover .generate-btn-bg {
    opacity: 1;
    background: linear-gradient(135deg,
        rgba(255, 77, 109, 0.15),
        rgba(244, 114, 182, 0.1),
        rgba(255, 143, 163, 0.15)
    );
}

.generate-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.generate-btn:hover {
    border-color: rgba(255, 77, 109, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.15),
                0 0 20px rgba(255, 77, 109, 0.06);
}

.generate-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Shimmer effect on generate btn */
.generate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 77, 109, 0.08),
        rgba(255, 255, 255, 0.06),
        transparent
    );
    transition: none;
    animation: shimmer-btn 3s ease-in-out infinite;
}

@keyframes shimmer-btn {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Typing animation on generate */
.generate-btn.generating {
    pointer-events: none;
    border-color: rgba(255, 77, 109, 0.6);
}

.generate-btn.generating .generate-btn-content span {
    animation: text-blink 0.8s ease-in-out infinite;
}

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

/* ========================================
   WIZARD NAVIGATION BUTTONS
   ======================================== */
.wizard-nav {
    display: none; /* oculto — substituído pela barra fixa desktop */
}

/* Barra fixa desktop */
.wizard-nav-fixed-desktop {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--background);
    padding: 18px 40px;
    align-items: center;
    justify-content: center;
}

.wizard-nav-fixed-desktop-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 18px;
}

@media (min-width: 1025px) {
    .wizard-nav-fixed-desktop {
        display: flex;
    }

    /* Empurra o conteúdo para não ficar atrás da barra */
    .wizard-panel-scroll {
        padding-bottom: 90px;
    }
}

.wizard-nav-step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-foreground);
    letter-spacing: 0.02em;
}

/* ========================================
   SCROLL HINT — gradiente + seta
   Filho direto do .wizard-panel, fora do scroll.
   ======================================== */
@keyframes hint-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(5px); }
}

/* Oculto por padrão — só aparece dentro do wizard-panel.active */
.scroll-fade-mobile,
.scroll-hint-mobile {
    display: none;
}

/* Quando o wizard está ativo (ou visível via edit-mode), mostra automaticamente */
.wizard-panel.active .scroll-fade-mobile,
.wizard-panel[style*="display: block"] .scroll-fade-mobile {
    display: none; /* Gradiente preto removido — mantém apenas a seta */
}

.wizard-panel.active .scroll-hint-mobile,
.wizard-panel[style*="display: block"] .scroll-hint-mobile {
    display: block;
    position: fixed;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    color: var(--muted-foreground);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: hint-bounce 1.4s ease-in-out infinite;
}

.wizard-panel.active .scroll-fade-mobile.hidden,
.wizard-panel[style*="display: block"] .scroll-fade-mobile.hidden { opacity: 0; }
.wizard-panel.active .scroll-hint-mobile.hidden,
.wizard-panel[style*="display: block"] .scroll-hint-mobile.hidden { opacity: 0; }

/* Desktop: esconde o scroll hint (apenas mobile) */
@media (min-width: 1025px) {
    .scroll-fade-mobile,
    .scroll-hint-mobile { display: none !important; }
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    font-family: 'Inter', sans-serif;
}

.wizard-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted-foreground);
}

.wizard-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--foreground);
    transform: translateX(-4px);
}

.wizard-btn-primary {
    background: linear-gradient(135deg, var(--primary), #e0446a);
    color: white;
    box-shadow: 0 6px 25px rgba(255, 77, 109, 0.35);
}

.wizard-btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 35px rgba(255, 77, 109, 0.5);
}

.wizard-btn-primary:active {
    transform: scale(0.97);
}

/* Validation shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-6px); }
    30%, 70% { transform: translateX(6px); }
}

.form-input.error {
    border-color: #ff4d6d !important;
    animation: shake 0.5s ease-in-out;
}

.form-input.error::placeholder {
    color: rgba(255, 77, 109, 0.4);
}


/* ========================================
   ANIMATIONS GLOBAIS
   ======================================== */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animated gradient text class redeclarado para garantir */
.animated-gradient {
    background: linear-gradient(270deg, #ff4d6d, #ff8fa3, #f472b6, #fb7185, #ff4d6d);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ========================================
   WIZARD AUTH STEP (Login Inline — Step 8)
   ======================================== */
.wizard-auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wizard-auth-google-btn:active {
    transform: scale(0.98);
}

.wizard-auth-card .form-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.wizard-auth-card .wizard-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
    .criar-main {
        padding: 80px 0 30px;
    }

    .criar-question-section {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .question-bubble {
        border-radius: 20px;
    }

    .criar-options {
        gap: 12px;
    }

    .option-love {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .option-love-text {
        text-align: center;
    }

    .option-features {
        justify-content: center;
    }

    .option-badge {
        font-size: 0.6rem;
        padding: 4px 12px;
    }

    .option-title {
        font-size: 1.1rem;
    }

    .criar-options-soon-row {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 2.2rem;
    }

    .detail-back {
        margin-top: 80px;
    }

    .detail-feature {
        padding: 18px;
        gap: 14px;
    }

    .df-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .detail-cta-btn {
        padding: 16px 36px !important;
        font-size: 1.05rem !important;
    }

    /* Wizard Responsive */
    .wizard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 24px;
    }

    .wizard-progress {
        max-width: 100%;
        width: 100%;
    }

    .step-title {
        font-size: 1.6rem;
    }

    .step-subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .wizard-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .generate-btn-content {
        font-size: 0.85rem;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .option-features {
        gap: 5px;
    }

    .feature-pill {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .mascot-icon {
        width: 56px;
        height: 56px;
    }

    .mascot-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
}


/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .love-icon-ring,
    .option-main-icon,
    .option-badge,
    .mascot-glow,
    .detail-pulse-ring,
    .bubble-typing span {
        animation: none !important;
    }

    .option-card,
    .detail-feature,
    .detail-back,
    .option-cta {
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Jornada Form & Preview Styles
   ======================================== */

.journey-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    animation: fade-in 0.3s ease;
}

.journey-item-card .remove-journey-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--muted-foreground);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.journey-item-card .remove-journey-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.journey-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.journey-form-row .form-group {
    flex: 1;
}

.journey-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    min-height: 120px;
}
.journey-photo-upload:hover {
    border-color: var(--primary);
    background: rgba(255, 77, 109, 0.05);
}

.journey-photo-preview {
    display: none;
    width: 100%;
    position: relative;
}
.journey-photo-preview img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
}
.journey-photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Timeline Preview in Phone Mockup */
.preview-journey-section {
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-journey-title {
    text-align: center;
    margin-bottom: 30px;
}

.preview-journey-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 4px;
}

.preview-journey-title p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

.preview-timeline {
    position: relative;
    max-width: 100%;
}

.preview-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.2) 6px, transparent 6px, transparent 12px);
    transform: translateX(-50%);
}

.preview-timeline-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.preview-timeline-item.right {
    justify-content: flex-end;
}

.preview-timeline-content {
    width: 42%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.preview-timeline-item.left .preview-timeline-content {
    align-items: flex-end;
    text-align: right;
}

.preview-timeline-item.right .preview-timeline-content {
    align-items: flex-start;
    text-align: left;
}

.preview-timeline-photo {
    background: #fff;
    padding: 4px 4px 14px 4px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    width: 80%; /* Takes up 80% of the 42% column, approx 33% of phone width */
    max-width: 100px;
    position: relative;
}

.preview-timeline-item.left .preview-timeline-photo {
    transform: rotate(-3deg);
}

.preview-timeline-item.right .preview-timeline-photo {
    transform: rotate(3deg);
}

.preview-timeline-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background: #eee;
    display: block;
}

.preview-timeline-date {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.preview-timeline-desc {
    color: #fff;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.3;
}

.preview-timeline-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #11090d; /* Matching phone mockup background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 2;
    border: 1px solid rgba(255, 77, 109, 0.3);
}

.preview-timeline-icon svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.empty-timeline-msg {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    padding: 20px 0;
}

/* ==========================================================================
   # UX: cursor pointer em elementos interativos
   ========================================================================== */
.detail-feature,
.spotify-result-item,
.city-suggestion-item {
    cursor: pointer;
}

/* ==========================================================================
   # DECLARATION GENERATE BUTTON — Botão principal com gradiente cheio
   ========================================================================== */

/* Botão grande de gerar declaração — gradiente rosa/roxo */
.decl-generate-btn {
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4d6d 0%, #c026d3 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 24px rgba(255, 77, 109, 0.35);
    position: relative;
    overflow: hidden;
}

/* Efeito shimmer ao passar o mouse */
.decl-generate-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.decl-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255, 77, 109, 0.45);
}

.decl-generate-btn:hover::after {
    opacity: 1;
}

.decl-generate-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Animação de pulso durante geração */
.decl-generate-btn.generating {
    animation: declPulse 0.6s ease;
}

@keyframes declPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.97); }
    100% { transform: scale(1); }
}

.decl-generate-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Texto "ou escreva manualmente" abaixo do botão */
.decl-manual-toggle {
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 12px 0 0;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.decl-manual-toggle:hover {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

/* Área da textarea — oculta por padrão, animada ao revelar */
/* Oculto por padrão — revelado apenas ao clicar em gerar ou em escrever manualmente */
.decl-textarea-wrap {
    display: none;
    opacity: 0;
    margin-top: 0;
    transition: opacity 0.35s ease, margin 0.3s ease;
}

/* Estado visível — JS adiciona esta classe */
.decl-textarea-wrap.visible {
    display: block;
    opacity: 1;
    margin-top: 16px;
}

/* ==========================================================================
   # DECLARATION TEMPLATES — Grade de modelos de declaração
   ========================================================================== */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

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

.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 77, 109, 0.15);
}

.template-card.selected {
    border-color: var(--primary);
    background: rgba(255, 77, 109, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.3);
}

.template-emoji {
    font-size: 1.5rem;
}

.template-titulo {
    font-size: 0.78rem;
    color: var(--foreground);
    font-weight: 500;
}
