@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400..900;1,400..900&family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #d4af37;
    --primary-dark: #aa8c2c;
    --secondary: #831010;
    --secondary-light: #b91c1c;
    --bg: #fafaf9;
    --text: #0c0a09;
    --text-muted: #44403c;
    --glass: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 20px 40px rgba(0,0,0,0.1);
    --radius: 24px;
    --font-heading: 'Bodoni Moda', serif;
    --font-body: 'Jost', sans-serif;
    --accent-green: #25d366;
    --accent-fire: #f97316;
    --level-bronze: #cd7f32;
    --level-silver: #adb5bd;
    --level-gold: #ffd700;
    --level-diamond: #60a5fa;
    --nav-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f5f5f4;
    background-image: radial-gradient(#e7e5e4 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 450px;
    background: var(--bg);
    min-height: 100vh;
    box-shadow: 0 0 80px rgba(0,0,0,0.05);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary) 0%, #4c0a0a 100%);
    color: white;
    padding: 60px 20px 80px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: -30px;
    position: relative;
    box-shadow: 0 15px 40px rgba(131, 16, 16, 0.15);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.pavel-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px;
    margin-bottom: 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 25px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

/* Glass Card PRO MAX */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-5px);
}

/* Stats Card */
.stats-card {
    background: var(--glass);
    margin: -50px 20px 20px;
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-around;
    box-shadow: var(--shadow);
    z-index: 2;
    position: relative;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Alerts & FOMO */
.alert-box {
    margin: 10px 20px;
    padding: 20px;
    background: #fff9db;
    border-radius: 15px;
    border: 1px solid #ffec99;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fomo-text {
    color: #e03131;
    font-weight: 700;
    font-size: 16px;
    animation: pulse 2s infinite;
}

/* Buttons PRO MAX */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.btn:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(131, 16, 16, 0.08);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 8px 20px rgba(131, 16, 16, 0.2);
}

.btn-link-premium {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 15px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.btn-link-premium:hover {
    opacity: 1;
    color: var(--secondary);
    letter-spacing: 3px;
}

@keyframes pulsar-gold {
    0% { transform: scale(1); box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 25px 60px rgba(212, 175, 55, 0.6); }
    100% { transform: scale(1); box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4); }
}

/* Referral Box PRO MAX */
.referral-box {
    margin: 20px;
    padding: 30px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.cristina-side-img {
    position: absolute;
    left: -15px;
    bottom: -15px;
    width: 110px;
    z-index: 1;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.referral-content {
    position: relative;
    z-index: 2;
    padding-left: 75px;
}

.referral-content p:first-child {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.link-copy {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.link-copy input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-muted);
}

.btn-copy {
    padding: 0 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Login & Register UI */
.login-header {
    text-align: center;
    margin-bottom: 30px;
    z-index: 2;
}

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

.login-header h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.login-header p {
    font-size: 16px;
    color: #888;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    max-width: 380px;
    padding: 40px 25px 30px;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.screen-register {
    min-height: 100vh;
    background: var(--bg);
}
.screen-login, .screen-register {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    gap: 10px;
}

/* LGPD 2026 Checkbox */
.lgpd-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    text-align: left;
}

.lgpd-container input {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.lgpd-container label {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    font-weight: 400;
}

.lgpd-container a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

label {
    font-weight: 700;
    font-size: 14px;
    color: #555;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

input:focus {
    border-color: var(--secondary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.1);
}

/* Scratch Area */
.scratch-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#scratch-pad {
    background: #eee;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    touch-action: none;
}

/* Mute Button */
.btn-mute {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    cursor: pointer;
}

/* Error Message */
.error-msg {
    color: #e03131;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* Result Screen */
.result-screen {
    text-align: center;
    align-items: center;
}

.cristina-feedback {
    width: 150px;
    margin-bottom: 20px;
}

.result-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--secondary);
    margin: 20px 0;
}

.coupon-box {
    background: #fff0f6;
    padding: 25px;
    border-radius: 20px;
    border: 3px dashed var(--secondary-light);
    margin: 20px 0;
    width: 100%;
}

.coupon-box strong {
    font-size: 28px;
    color: var(--secondary);
    letter-spacing: 2px;
}

/* --- GAMIFICAÇÃO & ANIMAÇÕES (SIA) --- */

@keyframes pulsar {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(224, 49, 49, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(224, 49, 49, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(224, 49, 49, 0.2); }
}

.pulsar {
    animation: pulsar 1.5s infinite ease-in-out;
}

@keyframes flash {
    0% { background: var(--bg); }
    50% { background: #fff5f5; }
    100% { background: var(--bg); }
}

.jackpot-bg {
    animation: flash 0.5s 6;
}

.pop-effect {
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.confete-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    top: -10px;
    z-index: 9999;
    border-radius: 2px;
    animation: fall 2s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

.brilho {
    position: relative;
    overflow: hidden;
}

.brilho::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    animation: brilho-anim 3s infinite;
}

@keyframes brilho-anim {
    100% { left: 125%; }
}

/* HUD Progress Bar */
.progress-container {
    background: rgba(0,0,0,0.05);
    height: 12px;
    border-radius: 6px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e03131, #ffd700);
    width: 0%;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(224, 49, 49, 0.3);
}

/* Floating Notification */
.toast-gamify {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast-gamify.active {
    transform: translateX(-50%) translateY(0);
}
/* User Pill & Premium Header UI */
.user-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.user-pill span {
    font-size: 13px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: var(--nav-height);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 6px 14px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item.active {
    color: var(--primary);
    font-weight: 800;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.nav-item i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.nav-item.active i {
    transform: scale(1.1);
}

/* ===== FEED CARDS ===== */
.feed-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s ease;
}

.feed-card:last-child {
    border-bottom: none;
}

.feed-card:active {
    background: rgba(0,0,0,0.02);
}

.feed-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    color: white;
}

.feed-icon.scratch { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.feed-icon.referral { background: linear-gradient(135deg, #25d366, #128c7e); }
.feed-icon.mission { background: linear-gradient(135deg, #f59e0b, #d97706); }
.feed-icon.ranking { background: linear-gradient(135deg, var(--secondary), #4c0a0a); }
.feed-icon.promo { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.feed-reactions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.reaction-pill {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f5f5f4;
    border: 1px solid transparent;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #888;
}

.reaction-pill:hover,
.reaction-pill:active {
    background: #fff9e6;
    border-color: rgba(212,175,55,0.3);
}

.reaction-pill.active {
    border-color: var(--primary);
    background: #fff9e6;
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===== SHARE SCREEN ===== */
.share-mode-btn {
    transition: all 0.25s ease;
}

.share-mode-btn:active {
    transform: scale(0.96);
}

.share-mode-btn.active {
    border-color: var(--primary) !important;
    background: rgba(212,175,55,0.1) !important;
    color: var(--primary-dark) !important;
}

.template-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.template-card:active {
    transform: scale(0.95);
}

.template-card.selected {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 20px rgba(212,175,55,0.3) !important;
}

.share-preview-container {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.share-preview-container:hover {
    transform: scale(1.01);
}

#share-camera-container {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

#btn-capture-selfie {
    transition: all 0.2s ease;
}

#btn-capture-selfie:active {
    transform: translateX(-50%) scale(0.9);
    background: rgba(255,255,255,0.6);
}

.milestone-badge {
    animation: fadeIn 0.4s ease-out;
}

/* Share action buttons hover states */
#btn-share-download:active,
#btn-share-instagram:active,
#btn-share-whatsapp:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

#btn-share-instagram:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

#btn-share-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ===== RULES ACCEPTANCE MODAL ===== */
.rules-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.rules-modal {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 28px;
    padding: 32px 24px 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rules-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

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

.rules-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 3px solid var(--primary);
}

.rules-icon i {
    font-size: 26px;
    color: var(--primary-dark);
}

.rules-modal h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 14px;
}

.rules-modal .rules-body {
    text-align: left;
    margin-bottom: 20px;
}

.rules-modal .rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rules-modal .rule-item:last-child {
    border-bottom: none;
}

.rules-modal .rule-item .rule-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.rules-modal .rule-item p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.rules-modal .rule-item strong {
    color: var(--secondary);
}

.rules-audio-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    border-radius: 14px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rules-audio-bar:active {
    transform: scale(0.98);
    background: #e8e8e8;
}

.rules-audio-bar i {
    font-size: 18px;
    color: var(--secondary);
}

.rules-audio-bar span {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.btn-accept-rules {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary), #4c0a0a);
    color: white;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(131,16,16,0.25);
}

.btn-accept-rules:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(131,16,16,0.35);
}

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