:root {
    --bg-dark: #0D1C15;         
    --bg-gradient: linear-gradient(135deg, #0D1C15 0%, #1A382A 100%);
    --card-bg: #FFFFFF;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-color: #C2A878;    
    --btn-primary: #1A382A;     
    --btn-text: #FFFFFF;
    --success-bg: #F4F7F5;
    --success-color: #2D5A43;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark); background-image: var(--bg-gradient);
    color: var(--card-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh;
}

h1, h2, h3 { font-family: 'Playfair Display', 'Georgia', serif; font-weight: 700; }

.brand-header { text-align: center; padding: 40px 20px 20px 20px; }
.brand-header h1 { font-size: 2.8rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; color: var(--accent-color); }
.brand-header p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); font-weight: 300; }

.app-container { max-width: 600px; margin: 0 auto; padding: 0 20px 60px 20px; }

.card {
    background: var(--card-bg); color: var(--text-main); padding: 32px 24px;
    border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); margin-bottom: 24px; border: none;
}
.card h2 { text-align: center; font-size: 2rem; margin-bottom: 10px; color: var(--btn-primary); }
.card p.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 1rem; }

/* Language Toggle */
.lang-toggle {
    display: flex; background: #F0F0F0; border-radius: 100px; padding: 4px; margin-bottom: 24px;
}
.lang-toggle input { display: none; }
.lang-toggle label {
    flex: 1; text-align: center; padding: 12px; border-radius: 100px; cursor: pointer;
    font-weight: 600; color: var(--text-muted); transition: all 0.3s ease; font-size: 0.95rem;
}
.lang-toggle input:checked + label { background: var(--btn-primary); color: var(--btn-text); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.progress-wrapper { margin-bottom: 40px; }
.progress-text {
    text-align: center; font-size: 1.2rem; font-weight: 600; color: var(--card-bg); margin-bottom: 12px; font-family: 'Georgia', serif; letter-spacing: 1px;
}
.progress-bar { background: rgba(255, 255, 255, 0.1); height: 12px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.progress-fill { background: var(--accent-color); height: 100%; width: 0%; border-radius: 20px; transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1); }

.mission-card {
    background: var(--card-bg); padding: 28px 24px; border-radius: 20px; margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: all 0.4s ease; border: 1px solid rgba(0,0,0,0.05);
}
.mission-card p { margin-bottom: 24px; font-size: 1.25rem; font-weight: 600; color: var(--text-main); line-height: 1.4; transition: color 0.4s ease; }
.mission-card.completed { background: rgba(255, 255, 255, 0.03); box-shadow: none; border: 1px dashed rgba(255, 255, 255, 0.2); }
.mission-card.completed p { color: rgba(255, 255, 255, 0.5); }

input {
    width: 100%; padding: 18px; margin-bottom: 16px; border: 2px solid #EEEEEE; border-radius: 16px;
    font-size: 16px; font-weight: 500; background: #FAFAFA; transition: all 0.3s ease; -webkit-appearance: none;
}
input:focus { outline: none; border-color: var(--accent-color); background: #FFF; box-shadow: 0 0 0 4px rgba(194, 168, 120, 0.1); }

.disclaimer-box {
    background-color: rgba(194, 168, 120, 0.1); border-left: 4px solid var(--accent-color);
    padding: 16px; border-radius: 8px; margin-bottom: 24px; font-size: 0.9rem; color: var(--text-main); text-align: left; line-height: 1.5;
}
.disclaimer-box strong { font-weight: 700; color: var(--btn-primary); }

button {
    width: 100%; padding: 18px; background-color: var(--btn-primary); color: var(--btn-text);
    border: none; border-radius: 100px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; font-family: inherit; transition: transform 0.1s ease, background-color 0.2s ease, border 0.2s ease, color 0.2s ease; -webkit-appearance: none; 
}
button:active { transform: scale(0.97); }
button.secondary { background: transparent; border: 2px solid var(--btn-primary); color: var(--btn-primary); }
button.btn-completed { background: transparent; border: 2px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.6); }

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 28, 21, 0.95); backdrop-filter: blur(8px);
    z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.modal-content { background: var(--card-bg); padding: 32px 24px; border-radius: 24px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.modal-content h3 { color: var(--btn-primary); font-size: 1.5rem; margin-bottom: 24px; }
.modal img { max-width: 100%; max-height: 50vh; border-radius: 16px; margin-bottom: 24px; object-fit: contain; background: #000; }
.modal-actions { display: flex; flex-direction: column; gap: 12px; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { height: 1px; background: #EEEEEE; margin: 30px 0; }

.confetti { position: fixed; top: -10px; z-index: 9999; width: 12px; height: 12px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
