/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --rosa: #FF6B9D;
    --rosa-light: #FFD6E0;
    --rosa-glow: #FF8FB1;
    --oro-rosa: #B76E79;
    --oro: #D4AF37;
    --navy: #1A1A3E;
    --navy-light: #2D2D5E;
    --bianco: #FEFEFE;
    --font-elegant: 'Playfair Display', Georgia, serif;
    --font-romantic: 'Dancing Script', cursive;
    --font-mono: 'Space Mono', 'Courier New', monospace;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-elegant);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--navy);
    color: var(--bianco);
}

/* ============================================
   PHASE SYSTEM
   ============================================ */
.phase {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.phase.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ============================================
   FASE 1: PASSAPORTO
   ============================================ */
#phase-passport {
    background: linear-gradient(135deg, var(--navy) 0%, #0D0D2B 100%);
}

.passport-book {
    width: 340px;
    max-width: 90vw;
    perspective: 1000px;
}

.passport-cover {
    background: linear-gradient(180deg, #6B1D2A 0%, #5A1623 50%, #4A1020 100%);
    border: none;
    border-radius: 10px;
    padding: 32px 30px 28px;
    text-align: center;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.passport-cover::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
}

.passport-cover:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.passport-eu-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--oro);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.passport-country-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--oro);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.passport-emblem {
    width: 90px;
    height: 108px;
    margin: 0 auto 18px;
}

.emblem-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.passport-title {
    font-family: var(--font-mono);
    font-size: 18px;
    letter-spacing: 6px;
    color: var(--oro);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.passport-chip {
    width: 36px;
    height: 28px;
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 50%, #D4AF37 100%);
    border-radius: 4px;
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
    position: relative;
}

.passport-chip::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 2px;
}

/* Passport Page (inner) */
.passport-page {
    display: none;
    background: linear-gradient(180deg, #F5F0E8 0%, #EDE5D8 100%);
    border-radius: 8px;
    padding: 24px 20px;
    color: var(--navy);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.passport-page.visible {
    display: block;
}

.passport-page::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border: 1px solid rgba(26, 26, 62, 0.15);
    border-radius: 4px;
    pointer-events: none;
}

.passport-page-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(26, 26, 62, 0.15);
}

.passport-country {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--navy);
    margin-bottom: 4px;
}

.passport-doc-type {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(26, 26, 62, 0.5);
}

.passport-form-area {
    text-align: center;
    margin-bottom: 20px;
}

.passport-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(26, 26, 62, 0.6);
    margin-bottom: 12px;
}

.passport-input {
    width: 100%;
    background: rgba(26, 26, 62, 0.04);
    border: 2px solid rgba(26, 26, 62, 0.2);
    border-radius: 4px;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 20px;
    letter-spacing: 6px;
    text-align: center;
    color: var(--navy);
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 48px;
}

.passport-input:focus {
    border-color: var(--navy);
}

.passport-input.shake {
    animation: shake 0.5s ease-in-out;
}

.passport-input.error {
    border-color: #E74C3C;
}

.passport-input.success {
    border-color: #27AE60;
}

.verify-btn {
    margin-top: 16px;
    width: 100%;
    background: var(--navy);
    color: var(--bianco);
    border: none;
    border-radius: 4px;
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-height: 48px;
}

.verify-btn:hover {
    background: var(--navy-light);
}

.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stamps */
.passport-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0);
    font-family: var(--font-mono);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    line-height: 1.2;
}

.stamp-denied {
    color: #C0392B;
    border: 3px solid #C0392B;
    font-size: 18px;
}

.stamp-approved {
    color: #27AE60;
    border: 3px solid #27AE60;
    font-size: 22px;
}

.passport-stamp.slam {
    animation: stampSlam 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards;
}

.passport-mrz {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 26, 62, 0.15);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 1px;
    color: rgba(26, 26, 62, 0.3);
    line-height: 1.6;
    word-break: break-all;
}

/* ============================================
   FASE 2: TRANSIZIONE MAGICA
   ============================================ */
#phase-transition {
    background: linear-gradient(135deg, var(--rosa) 0%, #FF8FB1 50%, var(--rosa-light) 100%);
    flex-direction: column;
}

#hearts-canvas {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.transition-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

.typewriter-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typewriter-text {
    font-family: var(--font-romantic);
    font-size: clamp(28px, 6vw, 48px);
    color: var(--bianco);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    line-height: 1.4;
}

.typewriter-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--bianco);
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

.transition-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(16px, 3vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    opacity: 0;
}

/* ============================================
   FASE 3: MAPPA
   ============================================ */
#phase-map {
    background: var(--rosa-light);
}

.map-container {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hearts-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Pink tint on map tiles */
.map-container .leaflet-tile-pane {
    filter: saturate(0.3) sepia(0.4) hue-rotate(310deg) brightness(1.05);
}

.map-container .leaflet-control-zoom {
    display: none;
}

/* Airplane marker */
.airplane-icon {
    font-size: 34px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
    transition: none;
    will-change: transform;
    line-height: 1;
    z-index: 9999 !important;
}

/* Flight trail */
.flight-trail {
    stroke: var(--rosa);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(255, 107, 157, 0.5));
}

/* ============================================
   DESTINATION REVEAL OVERLAY
   ============================================ */
.destination-reveal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 62, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 200;
}

.destination-reveal-inner {
    text-align: center;
}

.reveal-code {
    font-family: var(--font-mono);
    font-size: clamp(56px, 15vw, 100px);
    font-weight: 700;
    color: var(--oro);
    letter-spacing: 8px;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

.reveal-name {
    font-family: var(--font-romantic);
    font-size: clamp(28px, 7vw, 52px);
    color: var(--rosa-light);
    margin-top: 8px;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.reveal-scalo {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--oro);
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--oro);
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ============================================
   BOARDING PASS
   ============================================ */
.boarding-pass {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 62, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 100;
    padding: 20px;
}

.boarding-pass.hidden {
    display: none;
}

.boarding-pass-inner {
    background: var(--bianco);
    border-radius: 16px;
    width: 340px;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
}

.boarding-pass-inner.show {
    animation: cardReveal 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards;
}

.bp-header {
    background: linear-gradient(135deg, var(--rosa) 0%, var(--oro-rosa) 100%);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bp-airline {
    font-family: var(--font-elegant);
    font-size: 13px;
    font-weight: 700;
    color: var(--bianco);
    letter-spacing: 1px;
}

.bp-class {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.bp-body {
    padding: 24px 20px 16px;
}

.bp-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bp-city {
    text-align: center;
}

.bp-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 2px;
}

.bp-name {
    display: block;
    font-family: var(--font-elegant);
    font-size: 12px;
    color: rgba(26, 26, 62, 0.6);
    margin-top: 2px;
}

.bp-plane-icon {
    font-size: 24px;
    color: var(--rosa);
    transform: rotate(0deg);
}

.bp-details {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px dashed rgba(26, 26, 62, 0.15);
    border-bottom: 1px dashed rgba(26, 26, 62, 0.15);
}

.bp-detail {
    text-align: center;
}

.bp-detail-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(26, 26, 62, 0.4);
    margin-bottom: 4px;
}

.bp-detail-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.bp-message {
    padding: 16px 20px;
    font-family: var(--font-elegant);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    line-height: 1.5;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(255, 214, 224, 0.15) 100%);
    border-top: 1px solid rgba(255, 107, 157, 0.15);
}

.bp-footer {
    padding: 0 20px 20px;
}

.bp-continue-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--rosa) 0%, var(--oro-rosa) 100%);
    color: var(--bianco);
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
}

.bp-continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* ============================================
   PHOTO GALLERY OVERLAY
   ============================================ */
.gallery-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 62, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 150;
    padding: 20px;
}

.gallery-inner {
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.gallery-title {
    font-family: var(--font-romantic);
    font-size: clamp(24px, 6vw, 38px);
    color: var(--rosa-light);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.gallery-viewport {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
    display: block;
}

.gallery-caption {
    font-family: var(--font-elegant);
    font-size: 15px;
    color: var(--rosa-light);
    margin-top: 10px;
    min-height: 22px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.gallery-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.2s;
}

.gallery-dot.active {
    background: var(--rosa);
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
}

.gallery-prev, .gallery-next {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--bianco);
    font-size: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}

.gallery-prev:hover, .gallery-next:hover {
    background: rgba(255,107,157,0.3);
}

.gallery-counter {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
}

.gallery-close {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--rosa) 0%, var(--oro-rosa) 100%);
    color: var(--bianco);
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    min-height: 48px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* ============================================
   IN-FLIGHT TEASER
   ============================================ */
.flight-teaser {
    position: fixed;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-elegant);
    font-size: clamp(16px, 4vw, 22px);
    font-style: italic;
    color: var(--bianco);
    background: rgba(26, 26, 62, 0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 107, 157, 0.3);
    text-align: center;
    z-index: 50;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================
   SURPRISE MESSAGE
   ============================================ */
.surprise-message {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 62, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 20px;
}

.surprise-message.hidden {
    display: none;
}

.surprise-text {
    font-family: var(--font-elegant);
    font-size: clamp(20px, 4vw, 28px);
    color: var(--bianco);
    opacity: 0;
    margin-bottom: 12px;
}

.surprise-text-big {
    font-family: var(--font-romantic);
    font-size: clamp(32px, 7vw, 56px);
    color: var(--rosa);
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
    opacity: 0;
}

/* ============================================
   FASE 4: CELEBRAZIONE
   ============================================ */
#phase-celebration {
    background: linear-gradient(135deg, var(--navy) 0%, #2D1B3D 50%, var(--navy) 100%);
    flex-direction: column;
}

#hearts-canvas-final {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.celebration-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 500px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.celebration-title {
    font-family: var(--font-romantic);
    font-size: clamp(36px, 8vw, 64px);
    color: var(--rosa);
    text-shadow: 0 0 40px rgba(255, 107, 157, 0.4);
    margin-bottom: 8px;
    opacity: 0;
}

.celebration-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(16px, 3vw, 22px);
    color: var(--rosa-light);
    margin-bottom: 40px;
    opacity: 0;
}

/* ── Boarding Pass Carousel ── */
.bp-carousel {
    width: 100%;
    margin-bottom: 30px;
    opacity: 0;
}

.bp-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 0 12px;
    scrollbar-width: none;
}

.bp-carousel-track::-webkit-scrollbar { display: none; }

.bp-card {
    flex: 0 0 290px;
    scroll-snap-align: center;
    background: var(--bianco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
}

.bp-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    width: 12px; height: 12px;
    background: var(--navy);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 296px 0 0 var(--navy);
}

.bp-card-header {
    background: linear-gradient(135deg, var(--rosa) 0%, var(--oro-rosa) 100%);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bp-card-airline {
    font-family: var(--font-elegant);
    font-size: 11px;
    font-weight: 700;
    color: var(--bianco);
}

.bp-card-flight {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

.bp-card-body { padding: 16px; }

.bp-card-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bp-card-city { text-align: center; }

.bp-card-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 2px;
}

.bp-card-name {
    display: block;
    font-family: var(--font-elegant);
    font-size: 11px;
    color: rgba(26,26,62,0.5);
}

.bp-card-arrow {
    font-size: 22px;
    color: var(--rosa);
}

.bp-card-info {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed rgba(26,26,62,0.15);
}

.bp-card-field { text-align: center; }

.bp-card-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 2px;
    color: rgba(26,26,62,0.4);
    margin-bottom: 2px;
}

.bp-card-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
}

.bp-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px dashed rgba(26,26,62,0.15);
}

.bp-card-pax {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 1px;
    color: rgba(26,26,62,0.5);
}

.bp-card-seat {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--rosa);
}

.bp-card-barcode {
    padding: 6px 16px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(26,26,62,0.15);
    text-align: center;
}

.bp-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.bp-carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s;
}

.bp-carousel-dot.active {
    background: var(--rosa);
}

.final-message {
    opacity: 0;
}

.final-quote {
    font-family: var(--font-elegant);
    font-style: italic;
    font-size: clamp(14px, 2.5vw, 18px);
    color: rgba(255, 214, 224, 0.8);
    line-height: 1.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@keyframes stampSlam {
    0% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(3);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(0.9);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
        opacity: 1;
    }
}

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

@keyframes cardReveal {
    0% {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 157, 0.7); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 400px) {
    .passport-book {
        width: 300px;
    }

    .passport-cover {
        padding: 30px 20px;
    }

    .passport-title {
        font-size: 18px;
        letter-spacing: 6px;
    }

    .bp-code {
        font-size: 26px;
    }

    .stamps-collection {
        gap: 10px;
    }

    .stamp-collected {
        min-width: 85px;
        padding: 12px 8px;
    }
}

@media (min-width: 768px) {
    .passport-book {
        width: 380px;
    }

    .boarding-pass-inner {
        width: 400px;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.hidden {
    display: none !important;
}

/* Prevent text selection on interactive elements */
.passport-cover,
.verify-btn,
.bp-continue-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth transitions for will-change elements */
.airplane-icon,
.boarding-pass-inner,
.passport-stamp {
    will-change: transform;
}
