@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #F0F4F8; /* Removed unused plain background variable */
    --card-bg: #FFFFFF;
    --text-main: #1D1D1F;
    --text-muted: #64748B; /* Modern cool grey for muted text */
    --primary-blue: #0052FF; /* Modern FinTech Blue (Coinbase Style) */
    --primary-hover: #0045D8;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background: linear-gradient(135deg, #F0F4F8 0%, #D9E2EC 100%); 
    color: var(--text-main); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden; 
}

.hidden { display: none !important; }
.blurry { filter: blur(10px); pointer-events: none; }

.screen-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    flex-grow: 1; 
    padding: 20px; 
    width: 100%; 
    position: absolute; 
    top:0; 
    bottom:0;
}

.glass-card { 
    background: var(--card-bg); 
    border: 1px solid rgba(0,0,0,0.05); 
    border-radius: 16px; 
    padding: 40px; 
    max-width: 500px; 
    width: 100%; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); 
    text-align: center; 
}

.micro-copy { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-bottom: 24px; 
}

.btn-primary { 
    background: var(--primary-blue); 
    color: #FFF; 
    font-size: 16px; 
    font-weight: 700; 
    letter-spacing: 0.5px;
    border: none; 
    border-radius: 12px; 
    padding: 16px 24px; 
    width: 100%; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.3);
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.4);
}

.engine-content { 
    max-width: 600px; 
    width: 100%; 
}

.engine-header { 
    text-align: center; 
    margin-bottom: 40px; 
}

.engine-header h1 { 
    font-size: 28px; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 12px; 
}

.question-block { 
    background: var(--card-bg); 
    border-radius: 16px; 
    padding: 32px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.05);
}

.question-title { 
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 24px; 
}

.option-card { 
    border: 1.5px solid rgba(0,0,0,0.08); 
    border-radius: 12px; 
    padding: 16px; 
    margin-bottom: 12px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: 0.2s;
}

.option-card:hover { 
    border-color: var(--primary-blue); 
    background: rgba(0,102,204,0.02); 
}

.option-card.selected { 
    border-color: var(--primary-blue); 
    background: rgba(0,102,204,0.05); 
    color: var(--primary-blue); 
    font-weight: 500; 
}

.check-icon { 
    opacity: 0; 
    transform: scale(0.5); 
    transition: 0.3s; 
}

.option-card.selected .check-icon { 
    opacity: 1; 
    transform: scale(1); 
}

#processing-block { 
    text-align: center; 
    padding: 20px; 
}

.apple-progress-track { 
    height: 6px; 
    background: #E5E5EA; 
    border-radius: 3px; 
    margin: 24px auto; 
    overflow: hidden;
}

.apple-progress-fill { 
    height: 100%; 
    background: var(--primary-blue); 
    width: 0%; 
    transition: width 4.5s linear; 
}

#modal-wrapper { 
    position: fixed; 
    top:0; left:0; right:0; bottom:0; 
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(10px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 9999; 
    opacity: 0; 
    pointer-events: none; 
    transition: 0.4s; 
}

#modal-wrapper.show { 
    opacity: 1; 
    pointer-events: auto; 
}

.modal-card { 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(20px); 
    border-radius: 16px; 
    padding: 40px; 
    max-width: 420px; 
    width: 100%; 
    text-align: center; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.1); 
    transform: translateY(50px); 
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

#modal-wrapper.show .modal-card { 
    transform: translateY(0); 
}

.warning-icon { 
    font-size: 35px; 
    margin-bottom: 20px; 
}

.modal-title { 
    font-size: 22px; 
    font-weight: 700; 
    color: #E11D48; 
    margin-bottom: 15px; 
}

.modal-desc { 
    font-size: 15px; 
    color: var(--text-muted); 
    margin-bottom: 30px; 
    line-height: 1.5;
}

.input-apple { 
    width: 100%; 
    padding: 16px; 
    background: #FFFFFF; 
    border: 1px solid #D1D5DB; 
    border-radius: 12px; 
    margin-bottom: 16px; 
    outline: none; 
    font-size: 15px; 
    transition: all 0.2s;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.input-apple:focus { 
    background: #FFF; 
    border-color: var(--primary-blue); 
}

.privacy-note { 
    font-size: 12px; 
    color: #A1A1A6; 
    margin-top: 16px; 
}

.compliance-footer { 
    margin-top: auto; 
    text-align: center; 
    padding: 30px; 
    font-size: 11px; 
    color: #A1A1A6; 
    z-index: 10; 
    position: relative; 
}

.compliance-footer a { 
    color: #A1A1A6; 
    text-decoration: none; 
    margin: 0 5px; 
}
