/* ========================================
   🌟 DESIGN UAU - O MAIS BELO SITE
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================
   🔧 VARIÁVEIS DO DESIGN SYSTEM
   ======================================== */
:root {
    /* Cores Primárias */
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd0;
    --secondary: #ff6b9d;
    --accent: #ffd700;
    --accent-light: #fff3cd;

    /* Cores Neutras */
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --light: #ffffff;
    --light-secondary: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #adb5bd;

    /* Cores de Estado */
    --success: #00b894;
    --info: #00cec9;
    --warning: #fdcb6e;
    --danger: #ff7675;

    /* Efeitos */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-solid: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(233, 30, 99, 0.3);

    /* Tipografia */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;

    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Tema Escuro */
[data-theme="dark"] {
    --glass-bg: rgba(26, 26, 46, 0.6);
    --glass-bg-solid: rgba(22, 33, 62, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --dark: #f8f9fa;
    --light: #1a1a2e;
    --gray: #adb5bd;
}

/* ========================================
   🔄 RESET E BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--dark);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========================================
   🎆 BACKGROUND EFFECTS
   ======================================== */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 15s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e91e63 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #9c27b0 0%, transparent 70%);
    top: 50%;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #00cec9 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 10s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   🎯 BOTÃO DE TEMA
   ======================================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   💎 MAIN CARD
   ======================================== */
.main-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    animation: cardEntrance 0.8s ease-out;
    margin: 0 auto;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   📝 CABEÇALHO DO CARD
   ======================================== */
.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-decoration {
    margin-bottom: 15px;
}

.sparkle {
    display: inline-block;
    font-size: 24px;
    color: var(--accent);
    margin: 0 8px;
    animation: sparklePulse 2s ease-in-out infinite;
}

.sparkle:nth-child(2) {
    animation-delay: 0.5s;
    font-size: 32px;
}

.sparkle:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sparklePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.card-header h1 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.card-header .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
}

/* ========================================
   📋 FORMULÁRIO
   ======================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.full-width {
    grid-column: 1 / -1;
}

.input-group {
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--light);
    font-weight: 500;
    font-size: 14px;
}

.input-group .icon {
    font-size: 16px;
}

.input-group .required {
    color: var(--danger);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.08);
    color: var(--light);
    transition: all var(--transition-normal);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.2), var(--shadow-md);
    transform: translateY(-2px);
}

.input-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   🎨 SELETOR DE TEMA
   ======================================== */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.theme-option:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.theme-option.active {
    border-color: var(--primary);
    background: rgba(233, 30, 99, 0.2);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
    color: white;
}

.theme-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

.theme-option.active .theme-preview {
    border-color: white;
    transform: scale(1.1);
}

.theme-option:hover .theme-preview {
    transform: scale(1.1);
}

/* Theme Preview Colors */
.theme-preview.romantic {
    background: linear-gradient(135deg, #e91e63 0%, #ff6b9d 50%, #f8bbd0 100%);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.theme-preview.festive {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #a29bfe 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.theme-preview.elegant {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #dfe6e9 100%);
    box-shadow: 0 4px 15px rgba(45, 52, 54, 0.4);
}

.theme-preview.nature {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 50%, #81ecec 100%);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.theme-preview.ocean {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 50%, #a29bfe 100%);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.4);
}

.theme-preview.sunset {
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 50%, #fab1a0 100%);
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.4);
}

/* Media Inputs */
.media-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ========================================
   📎 ZONA DE ARQUIVOS
   ======================================== */
.file-drop-zone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.05);
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(233, 30, 99, 0.1);
}

.file-drop-zone .drop-content i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-drop-zone .drop-content p {
    color: var(--light);
    font-size: 16px;
    margin-bottom: 8px;
}

.file-drop-zone .drop-content span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.file-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(233, 30, 99, 0.2);
    border-radius: var(--radius-full);
    color: var(--light);
    font-size: 13px;
}

.file-item i {
    color: var(--primary);
}

.file-item .remove-file {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.file-item .remove-file:hover {
    opacity: 1;
}

/* ========================================
   ❤️ SEÇÃO DE COISAS QUE GOSTO
   ======================================== */
.likes-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.likes-section h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heart-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.likes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.likes-grid input {
    text-align: center;
}

/* ========================================
   🎯 BOTÃO SUBMIT
   ======================================== */
.submit-btn {
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--primary), #9c27b0);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.5);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 24px;
}

/* ========================================
   📋 CARD DE RESULTADO
   ======================================== */
.result-card {
    margin-top: 30px;
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: var(--radius-lg);
    padding: 30px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.result-header i {
    font-size: 32px;
    color: var(--success);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.result-header p {
    font-size: 20px;
    font-weight: 600;
    color: var(--success);
}

.result-content input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 184, 148, 0.3);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    color: var(--light);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.action-btn.copy {
    background: linear-gradient(135deg, var(--info), #00b894);
}

.action-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #20bf6b);
}

.action-btn.qrcode {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* QR Code Modal */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.qrcode-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-qr {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition-fast);
}

.close-qr:hover {
    color: var(--dark);
}

.qrcode-content p {
    margin-top: 20px;
    color: var(--gray);
    font-weight: 500;
}

#qrcode {
    display: inline-block;
}

/* ========================================
   👁️ PREVIEW SECTION
   ======================================== */
.preview-section {
    margin-top: 30px;
    animation: slideUp 0.5s ease;
}

.preview-section h3 {
    font-size: 18px;
    color: var(--light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.preview-content {
    text-align: center;
}

.preview-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.preview-content p {
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   🎉 PÁGINA DE EXIBIÇÃO
   ======================================== */
.display-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 650px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: cardEntrance 0.8s ease-out;
    margin: 0 auto;
    overflow: hidden;
}

.display-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulseBG 8s ease-in-out infinite;
}

@keyframes pulseBG {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.display-header {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.display-header h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--light);
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--accent);
    animation: sparklePulse 2s ease-in-out infinite;
}

.decoration.left {
    left: 0;
}

.decoration.right {
    right: 0;
    animation-delay: 1s;
}

.display-meta {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.display-meta .recipient {
    font-size: 26px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 8px;
}

.display-meta .sender {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.date-badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #9c27b0);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-glow);
}

.display-message {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    line-height: 1.9;
    font-size: 18px;
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.display-message::before,
.display-message::after {
    content: '"';
    font-family: var(--font-display);
    font-size: 60px;
    color: var(--primary-light);
    position: absolute;
    line-height: 1;
}

.display-message::before {
    top: 10px;
    left: 20px;
}

.display-message::after {
    bottom: -10px;
    right: 20px;
}

.display-link {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.display-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: rgba(233, 30, 99, 0.15);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.display-link a:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Media Sections */
.media-section {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.youtube-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.audio-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.audio-label {
    background: linear-gradient(135deg, var(--primary), #9c27b0);
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.audio-container audio {
    width: 100%;
    display: block;
}

/* Likes Display */
.likes-display {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.likes-display h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--light);
    margin-bottom: 20px;
}

.likes-display ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.likes-display li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 243, 205, 0.9));
    padding: 18px 28px;
    border-radius: var(--radius-full);
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
    border: 2px solid var(--accent);
    animation: popIn 0.5s ease backwards;
    transition: all var(--transition-normal);
}

.likes-display li:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.likes-display li:nth-child(1) { animation-delay: 0.1s; }
.likes-display li:nth-child(2) { animation-delay: 0.2s; }
.likes-display li:nth-child(3) { animation-delay: 0.3s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Display Photo */
.display-photo {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    animation: photoReveal 0.8s ease-out;
    margin-bottom: 30px;
}

@keyframes photoReveal {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Display Actions */
.display-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.action-like {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--light);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.action-like i {
    font-size: 20px;
    transition: all var(--transition-normal);
}

.action-like.liked i {
    color: var(--danger);
    animation: heartbeat 0.6s ease;
}

.action-like:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.action-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), #9c27b0);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.action-share:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.display-footer {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.display-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ========================================
   🎊 CONFETE
   ======================================== */
.confetti {
    position: fixed;
    z-index: 1000;
    animation: confettiFall linear forwards;
}

.confetti.circle { border-radius: 50%; }
.confetti.square { border-radius: 3px; }
.confetti.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.confetti.ribbon {
    width: 15px;
    height: 8px;
    border-radius: 4px;
}

@keyframes confettiFall {
    0% {
        top: -20px;
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        top: 100vh;
        transform: translateX(var(--drift)) rotate(720deg) scale(0.8);
        opacity: 0.8;
    }
}

/* ========================================
   🍞 TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 16px 30px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, var(--success), #00cec9);
}

.toast.error {
    background: linear-gradient(135deg, var(--danger), #ff7675);
}

.toast.info {
    background: linear-gradient(135deg, var(--info), #74b9ff);
}

/* ========================================
   😊 EMOJI PICKER
   ======================================== */
.emoji-picker-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.emoji-trigger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.emoji-trigger:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    background: var(--glass-bg-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.emoji-category {
    display: flex;
    padding: 10px;
    gap: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.emoji-cat {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.emoji-cat:hover,
.emoji-cat.active {
    background: rgba(233, 30, 99, 0.1);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 22px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.emoji-btn:hover {
    background: rgba(233, 30, 99, 0.15);
    transform: scale(1.2);
}

/* ========================================
   📱 RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .main-card,
    .display-card {
        padding: 30px 20px;
    }

    .card-header h1 {
        font-size: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .likes-grid {
        grid-template-columns: 1fr;
    }

    .media-inputs {
        grid-template-columns: 1fr;
    }

    .display-header h1 {
        font-size: 32px;
    }

    .display-message {
        padding: 25px;
        font-size: 16px;
    }

    .display-actions {
        flex-direction: column;
        align-items: center;
    }

    .result-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .emoji-picker-container {
        bottom: 80px;
        right: 15px;
    }

    .emoji-picker {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .card-header h1 {
        font-size: 24px;
    }

    .display-header h1 {
        font-size: 26px;
    }

    .decoration {
        display: none;
    }

    .display-meta .recipient {
        font-size: 22px;
    }
}

/* ========================================
   ♿ ACESSIBILIDADE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   🎨 TEMAS PERSONALIZADOS DO CARTÃO
   ======================================== */

/* Tema Romântico */
.display-card.theme-romantic {
    --theme-primary: #e91e63;
    --theme-secondary: #ff6b9d;
    --theme-accent: #ffd700;
    --theme-bg: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(255, 107, 157, 0.1) 100%);
    --theme-glow: rgba(233, 30, 99, 0.4);
}

.display-card.theme-romantic::before {
    background: radial-gradient(circle, rgba(233, 30, 99, 0.3) 0%, transparent 60%);
}

.display-card.theme-romantic .date-badge {
    background: linear-gradient(135deg, #e91e63, #ff6b9d);
}

.display-card.theme-romantic .display-message {
    border-left: 4px solid #e91e63;
}

.display-card.theme-romantic .action-share {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.display-card.theme-romantic .likes-display li {
    border-color: #e91e63;
    background: linear-gradient(135deg, #fff0f5, #ffe4ec);
}

/* Tema Festas */
.display-card.theme-festive {
    --theme-primary: #ffd700;
    --theme-secondary: #ff6b6b;
    --theme-accent: #a29bfe;
    --theme-bg: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    --theme-glow: rgba(255, 215, 0, 0.4);
}

.display-card.theme-festive::before {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 60%);
}

.display-card.theme-festive .date-badge {
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
}

.display-card.theme-festive .display-message {
    border-left: 4px solid #ffd700;
}

.display-card.theme-festive .action-share {
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
}

.display-card.theme-festive .likes-display li {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
}

/* Tema Elegante */
.display-card.theme-elegant {
    --theme-primary: #2d3436;
    --theme-secondary: #636e72;
    --theme-accent: #dfe6e9;
    --theme-bg: linear-gradient(135deg, rgba(45, 52, 54, 0.3) 0%, rgba(99, 110, 114, 0.1) 100%);
    --theme-glow: rgba(45, 52, 54, 0.4);
}

.display-card.theme-elegant::before {
    background: radial-gradient(circle, rgba(45, 52, 54, 0.4) 0%, transparent 60%);
}

.display-card.theme-elegant .date-badge {
    background: linear-gradient(135deg, #2d3436, #636e72);
}

.display-card.theme-elegant .display-message {
    border-left: 4px solid #2d3436;
}

.display-card.theme-elegant .action-share {
    background: linear-gradient(135deg, #2d3436, #636e72);
}

.display-card.theme-elegant .likes-display li {
    border-color: #2d3436;
    background: linear-gradient(135deg, #f5f6fa, #dfe6e9);
}

/* Tema Natureza */
.display-card.theme-nature {
    --theme-primary: #00b894;
    --theme-secondary: #55efc4;
    --theme-accent: #81ecec;
    --theme-bg: linear-gradient(135deg, rgba(0, 184, 148, 0.2) 0%, rgba(85, 239, 196, 0.1) 100%);
    --theme-glow: rgba(0, 184, 148, 0.4);
}

.display-card.theme-nature::before {
    background: radial-gradient(circle, rgba(0, 184, 148, 0.3) 0%, transparent 60%);
}

.display-card.theme-nature .date-badge {
    background: linear-gradient(135deg, #00b894, #55efc4);
}

.display-card.theme-nature .display-message {
    border-left: 4px solid #00b894;
}

.display-card.theme-nature .action-share {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.display-card.theme-nature .likes-display li {
    border-color: #00b894;
    background: linear-gradient(135deg, #e8f8f5, #d1f2eb);
}

/* Tema Oceano */
.display-card.theme-ocean {
    --theme-primary: #0984e3;
    --theme-secondary: #74b9ff;
    --theme-accent: #a29bfe;
    --theme-bg: linear-gradient(135deg, rgba(9, 132, 227, 0.2) 0%, rgba(116, 185, 255, 0.1) 100%);
    --theme-glow: rgba(9, 132, 227, 0.4);
}

.display-card.theme-ocean::before {
    background: radial-gradient(circle, rgba(9, 132, 227, 0.3) 0%, transparent 60%);
}

.display-card.theme-ocean .date-badge {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
}

.display-card.theme-ocean .display-message {
    border-left: 4px solid #0984e3;
}

.display-card.theme-ocean .action-share {
    background: linear-gradient(135deg, #0984e3, #6c5ce7);
}

.display-card.theme-ocean .likes-display li {
    border-color: #0984e3;
    background: linear-gradient(135deg, #ebf5fb, #d6eaf8);
}

/* Tema Pôr do Sol */
.display-card.theme-sunset {
    --theme-primary: #e17055;
    --theme-secondary: #fdcb6e;
    --theme-accent: #fab1a0;
    --theme-bg: linear-gradient(135deg, rgba(225, 112, 85, 0.2) 0%, rgba(253, 203, 110, 0.1) 100%);
    --theme-glow: rgba(225, 112, 85, 0.4);
}

.display-card.theme-sunset::before {
    background: radial-gradient(circle, rgba(225, 112, 85, 0.3) 0%, transparent 60%);
}

.display-card.theme-sunset .date-badge {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.display-card.theme-sunset .display-message {
    border-left: 4px solid #e17055;
}

.display-card.theme-sunset .action-share {
    background: linear-gradient(135deg, #e17055, #d63031);
}

.display-card.theme-sunset .likes-display li {
    border-color: #e17055;
    background: linear-gradient(135deg, #fef5e7, #fdebd0);
}

/* Decorações temáticas para o cabeçalho */
.display-card .theme-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.theme-romantic .theme-decoration {
    background: linear-gradient(90deg, #e91e63, #ff6b9d, #e91e63);
}

.theme-festive .theme-decoration {
    background: linear-gradient(90deg, #ffd700, #ff6b6b, #a29bfe, #ffd700);
}

.theme-elegant .theme-decoration {
    background: linear-gradient(90deg, #2d3436, #636e72, #2d3436);
}

.theme-nature .theme-decoration {
    background: linear-gradient(90deg, #00b894, #55efc4, #00b894);
}

.theme-ocean .theme-decoration {
    background: linear-gradient(90deg, #0984e3, #74b9ff, #a29bfe);
}

.theme-sunset .theme-decoration {
    background: linear-gradient(90deg, #e17055, #fdcb6e, #e17055);
}

/* Responsividade do seletor de tema */
@media (max-width: 768px) {
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .theme-option {
        padding: 10px 5px;
    }
    
    .theme-preview {
        width: 40px;
        height: 40px;
    }
    
    .theme-option span:last-child {
        font-size: 10px;
    }
}

/* ========================================
   🎨 FUNDO POR TEMA
   ======================================== */
body.theme-background-romantic {
    background: linear-gradient(135deg, #2d0a1e 0%, #4a1942 50%, #1a1a2e 100%);
}

body.theme-background-festive {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2a0a 50%, #3d2e00 100%);
}

body.theme-background-elegant {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 50%, #0d0d0d 100%);
}

body.theme-background-nature {
    background: linear-gradient(135deg, #0a1f1a 0%, #134e4a 50%, #042f2e 100%);
}

body.theme-background-ocean {
    background: linear-gradient(135deg, #0a1628 0%, #0c3d5c 50%, #062c54 100%);
}

body.theme-background-sunset {
    background: linear-gradient(135deg, #1a0f0a 0%, #3d1f0a 50%, #2d1510 100%);
}

/* ========================================
   ☀️ TEMA CLARO DA PÁGINA
   ======================================== */
[data-page-theme="light"] {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-solid: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --dark: #1a1a2e;
    --light: #ffffff;
    --gray: #6c757d;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 50%, #d0d5db 100%) !important;
}

[data-page-theme="light"] .main-card,
[data-page-theme="light"] .display-card,
[data-page-theme="light"] .result-card,
[data-page-theme="light"] .preview-card {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-page-theme="light"] .input-group input,
[data-page-theme="light"] .input-group textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a2e !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-page-theme="light"] .input-group label {
    color: #1a1a2e !important;
}

[data-page-theme="light"] .card-header h1,
[data-page-theme="light"] .display-header h1 {
    color: #1a1a2e !important;
}

[data-page-theme="light"] .card-header .subtitle {
    color: #6c757d !important;
}

[data-page-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a2e !important;
}

[data-page-theme="light"] .display-message {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a2e !important;
}
