/* =====================================================
   ÁLBUM DE PRESENTES - Camila & David
   Tema: Verde Folhagem + Branco
   ===================================================== */

:root {
    /* Cores principais */
    --green-dark: #2d5a3d;
    --green-medium: #4a7c59;
    --green-light: #7fb069;
    --green-pale: #c8e6c9;
    --green-bg: #f1f8e9;
    
    --white: #ffffff;
    --cream: #fafdf7;
    --gold: #d4a84b;
    --gold-light: #f5e6c8;
    
    --text-dark: #1a3325;
    --text-medium: #3d5a47;
    --text-light: #6b8b6f;
    
    /* Sombras - Material Design elevations */
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.14);
    --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-4: 0 6px 12px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-8: 0 12px 24px rgba(0, 0, 0, 0.15), 0 8px 12px rgba(0, 0, 0, 0.1);
    
    /* Legacy aliases */
    --shadow-soft: var(--shadow-1);
    --shadow-medium: var(--shadow-2);
    --shadow-lifted: var(--shadow-8);
    
    /* Tipografia - Display elegante + Apple System */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    
    /* Espaçamentos - Apple style (mais generosos) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--green-bg);
    color: var(--text-dark);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    
    /* Padrão tropical sutil no fundo */
    background-image: 
        radial-gradient(circle at 15% 85%, rgba(127, 176, 105, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(127, 176, 105, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(200, 230, 201, 0.3) 0%, transparent 60%);
}


.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

/* =====================================================
   HERO HEADER
   ===================================================== */
.hero {
    position: relative;
    height: 220px;
    margin: calc(-1 * var(--spacing-md));
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

/* Fotos lado a lado como fundo */
.hero-photos {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.hero-photo-wrapper {
    flex: 1;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Corta mais do topo, mostra mais o centro */
}

/* Overlay com gradiente verde */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(45, 90, 61, 0.3) 0%,
        rgba(45, 90, 61, 0.5) 50%,
        rgba(45, 90, 61, 0.85) 100%
    );
}

/* Conteúdo centralizado */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 var(--spacing-md);
}

.names {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.name {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    font-style: italic;
}

.name::first-letter {
    text-transform: uppercase;
}

.ampersand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-light);
    font-weight: 400;
    font-style: italic;
    margin: 0 0.2em;
}

/* Data do casamento */
.wedding-date {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    font-style: italic;
    color: var(--gold-light);
    margin-top: var(--spacing-sm);
    letter-spacing: 0.05em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}


/* =====================================================
   INFO SECTION
   ===================================================== */
.info-section {
    text-align: center;
    padding: 6px 0;
    margin-bottom: 12px;
}

.info-main {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.info-hint {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* =====================================================
   GRID DE CARDS
   ===================================================== */
.cards-wrapper {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-height: 360px;
}

/* Indicadores de swipe */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-indicator.visible {
    opacity: 1;
}

.swipe-left {
    left: -8px;
}

.swipe-right {
    right: -8px;
}

.swipe-arrow {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--green-medium);
    animation: swipePulse 1.5s ease-in-out infinite;
}

.swipe-left .swipe-arrow {
    animation-name: swipePulseLeft;
}

.swipe-right .swipe-arrow {
    animation-name: swipePulseRight;
}

@keyframes swipePulseLeft {
    0%, 100% { 
        opacity: 0.4;
        transform: translateX(0);
    }
    50% { 
        opacity: 1;
        transform: translateX(-4px);
    }
}

@keyframes swipePulseRight {
    0%, 100% { 
        opacity: 0.4;
        transform: translateX(0);
    }
    50% { 
        opacity: 1;
        transform: translateX(4px);
    }
}

/* Card Container (para o flip) */
.card-container {
    perspective: 1000px;
    height: 115px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

/* Esconde completamente a frente quando flipped (fallback para Safari) */
.card.flipped .card-front {
    visibility: hidden;
}

.card.flipped .card-back {
    visibility: visible;
}

/* Faces do Card - Material Design */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    padding: 8px;
}

/* Frente do Card - Material surface */
.card-front {
    background: var(--white);
}

.card:hover .card-front,
.card:active .card-front {
    box-shadow: var(--shadow-4);
}

.sticker {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--green-bg);
    border-radius: 10px;
    margin-bottom: 4px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Emoji */
.sticker-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* =====================================================
   CARD COM IMAGEM FULL
   ===================================================== */
.card-with-image .card-front {
    padding: 0;
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    border-radius: 0 0 8px 8px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-with-image .card-title {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.card-with-image .card-value {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-with-image .card-value::before {
    color: rgba(255, 255, 255, 0.8);
}

.card:not(.flipped):hover .sticker,
.card:not(.flipped):active .sticker {
    transform: scale(1.1) rotate(-3deg);
}

.card-title {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: -0.02em;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-value::before {
    content: 'R$ ';
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-medium);
}

/* Verso do Card - QR Code - Material surface */
.card-back {
    background: var(--green-dark);
    transform: rotateY(180deg);
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    visibility: hidden;
}

.qr-wrapper {
    background: var(--white);
    padding: 4px;
    border-radius: 4px;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-1);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(100% - 20px);
    aspect-ratio: 1;
}

.qr-wrapper:active {
    transform: scale(0.95);
}

.qr-code {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.qr-hint {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    flex-shrink: 0;
}

/* =====================================================
   PAGINAÇÃO
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-1);
}

.page-btn:hover {
    box-shadow: var(--shadow-2);
    background: var(--green-bg);
}

.page-btn:active {
    transform: scale(0.95);
}

.page-btn.active {
    background: var(--green-medium);
    box-shadow: var(--shadow-2);
}

.page-number {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-dark);
    transition: color 0.2s ease;
}

.page-btn.active .page-number {
    color: var(--white);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* =====================================================
   TOAST
   ===================================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-family: var(--font-body);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.toast-text {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* =====================================================
   ANIMAÇÕES DE ENTRADA
   ===================================================== */
.card-container {
    opacity: 0;
    transform: translateY(20px);
    animation: cardEnter 0.5s ease forwards;
}

.card-container:nth-child(1) { animation-delay: 0.05s; }
.card-container:nth-child(2) { animation-delay: 0.1s; }
.card-container:nth-child(3) { animation-delay: 0.15s; }
.card-container:nth-child(4) { animation-delay: 0.2s; }
.card-container:nth-child(5) { animation-delay: 0.25s; }
.card-container:nth-child(6) { animation-delay: 0.3s; }

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

/* =====================================================
   RESPONSIVO
   ===================================================== */

/* Tablets pequenos */
@media (min-width: 400px) {
    .cards-grid {
        gap: 10px;
    }
    
    .card-container {
        height: 125px;
    }
    
    .sticker {
        width: 44px;
        height: 44px;
        font-size: 1.7rem;
    }
    
}

/* Tablets */
@media (min-width: 600px) {
    .container {
        max-width: 560px;
    }
    
    
    .hero {
        height: 260px;
        margin: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .name {
        font-size: 3.2rem;
    }
    
    .ampersand {
        font-size: 2.2rem;
    }
    
    .wedding-date {
        font-size: 1.2rem;
    }
}

/* iPads e tablets maiores */
@media (min-width: 768px) {
    .container {
        max-width: 520px;
        padding: var(--spacing-lg);
    }
    
    .hero {
        height: 300px;
    }
    
    .card-container {
        height: 135px;
    }
    
    .sticker {
        width: 48px;
        height: 48px;
        font-size: 1.9rem;
    }
    
    .card-value {
        font-size: 1rem;
    }
    
    
    .name {
        font-size: 3.8rem;
    }
    
    .ampersand {
        font-size: 2.5rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 140px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .ampersand {
        font-size: 1.4rem;
    }
    
    .card-container {
        height: 100px;
    }
    
    .countdown {
        display: none;
    }
}

/* Preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode (opcional - respeita preferência do sistema) */
@media (prefers-color-scheme: dark) {
    /* Mantém tema claro por ser um site de casamento */
}

/* =====================================================
   HOME PAGE - Landing Principal
   ===================================================== */
.home-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Hero Full Screen */
.home-hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.home-photo-wrapper {
    width: 100%;
    height: 100%;
}

.home-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(45, 90, 61, 0.4) 0%,
        rgba(45, 90, 61, 0.6) 40%,
        rgba(45, 90, 61, 0.85) 100%
    );
}

/* Conteúdo Central da Home */
.home-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-lg);
    max-width: 420px;
    width: 100%;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decoração */
.home-decoration {
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

.home-decoration-bottom {
    margin-bottom: 0;
    margin-top: var(--spacing-lg);
    animation-delay: 1s;
}

.leaf {
    font-size: 2rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Nomes do Casal */
.home-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.home-name {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: lowercase;
    font-style: italic;
    line-height: 1.1;
}

.home-name::first-letter {
    text-transform: uppercase;
}

.home-ampersand {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold-light);
    font-weight: 400;
    font-style: italic;
    margin: 0.1em 0;
}

/* Subtítulo */
.home-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.03em;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
}

/* Data com linhas decorativas */
.home-date-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.home-date-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.home-date {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Countdown */
.home-countdown {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.7s forwards;
}

/* Botões de Ação */
.home-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-4);
}

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

.home-btn-primary {
    background: var(--white);
    color: var(--green-dark);
}

.home-btn-primary:hover {
    background: var(--cream);
    box-shadow: var(--shadow-8);
    transform: translateY(-2px);
}

.home-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-8);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    white-space: nowrap;
}

/* =====================================================
   MODAL DE CONFIRMAÇÃO
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 380px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-8);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--green-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--green-pale);
    color: var(--green-dark);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--green-dark);
    margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Modal Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--green-pale);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--green-medium);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(127, 176, 105, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--green-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover {
    background: var(--green-medium);
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Modal Success */
.modal-success {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--green-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
    animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--green-dark);
    margin-bottom: var(--spacing-xs);
}

.success-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* =====================================================
   BOTÃO VOLTAR (Página de Presentes)
   ===================================================== */
.back-link {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green-medium);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-1);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--green-bg);
    box-shadow: var(--shadow-2);
    color: var(--green-dark);
}

/* =====================================================
   RESPONSIVO - HOME
   ===================================================== */
@media (min-width: 400px) {
    .home-name {
        font-size: 4rem;
    }
    
    .home-ampersand {
        font-size: 2.2rem;
    }
    
    .home-date {
        font-size: 1.5rem;
    }
}

@media (min-width: 600px) {
    .home-name {
        font-size: 4.5rem;
    }
    
    .home-ampersand {
        font-size: 2.5rem;
    }
    
    .home-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .home-btn {
        padding: 18px 32px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .home-content {
        padding: var(--spacing-sm);
    }
    
    .home-name {
        font-size: 2.5rem;
    }
    
    .home-ampersand {
        font-size: 1.5rem;
    }
    
    .home-decoration {
        display: none;
    }
    
    .home-countdown {
        margin-bottom: var(--spacing-md);
    }
    
    .home-actions {
        flex-direction: row;
        justify-content: center;
    }
}

