:root {
    /* --- IF SOKAK COLOR PALETTE --- */
    --brand-red: #ea2158;
    --brand-blue: #1034a6;
    
    /* AYDINLIK MOD */
    --bg-color: #f0f0f2;
    --stripe-1: rgba(16, 52, 166, 0.04);
    --stripe-2: transparent;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #555555;
    --input-bg: #f8f8f8;
    --input-border: #ddd;
    --logo-filter: none; 
}

/* KARANLIK MOD */
body.dark-mode {
    --bg-color: #0a0e17;
    --stripe-1: rgba(16, 52, 166, 0.15);
    --stripe-2: transparent;
    --card-bg: #151a28;
    --text-main: #ffffff;
    --text-sub: #b0b3b8;
    --input-bg: #0f1219;
    --input-border: #333;
    --logo-filter: brightness(0) invert(1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box;
    position: relative; overflow-x: hidden;
    -webkit-user-select: none; user-select: none;
}

.bg-pattern {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: repeating-linear-gradient(-45deg, var(--stripe-1) 0px, var(--stripe-1) 20px, var(--stripe-2) 20px, var(--stripe-2) 40px);
}

.container { width: 100%; max-width: 450px; text-align: center; z-index: 1; padding-bottom: 40px;}

.logo-img {
    max-width: 180px; height: auto;
    filter: var(--logo-filter); transition: filter 0.3s;
    margin-bottom: 5px; pointer-events: none;
}

.brand-sub { 
    font-family: 'Oswald', sans-serif; color: var(--brand-red); 
    font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 15px; 
    font-weight: 700; text-transform: uppercase;
}

.card {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border-bottom: 6px solid var(--brand-red);
    text-align: left;
    transition: background 0.3s;
    width: 100%; box-sizing: border-box;
}

h2 { margin-top: 0; font-size: 1.1rem; color: var(--brand-blue); font-weight: 700; text-align: center; text-transform: uppercase; margin-bottom: 20px;}

/* --- CUSTOM TOAST ALERT --- */
#toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 9999; width: 90%; max-width: 400px;
}
.toast {
    background: #333; color: #fff; padding: 15px; border-radius: 8px;
    margin-bottom: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.9rem; font-weight: 600;
    opacity: 0; transform: translateY(-20px); transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background-color: var(--brand-red); }
.toast.success { background-color: #27ae60; }
.toast i { margin-right: 10px; font-size: 1.2rem; }

/* --- INPUTLAR --- */
.input-group { margin-bottom: 12px; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; color: var(--text-sub); margin-left: 2px;}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
    width: 100%; padding: 12px; font-size: 16px; font-weight: 500;
    border: 2px solid var(--input-border); border-radius: 6px;
    background-color: var(--input-bg); color: var(--text-main);
    outline: none; box-sizing: border-box; font-family: 'Montserrat', sans-serif;
    transition: 0.2s;
}
input:focus { border-color: var(--brand-red); background-color: var(--card-bg); }

/* ÖNEMLİ: HATA VE DOĞRU CEVAP RENKLERİ */
input.input-error { border-color: var(--brand-red); animation: shake 0.3s; }

.correct-input { 
    border: 3px solid #27ae60 !important; 
    background-color: rgba(39, 174, 96, 0.1) !important; 
    color: #27ae60 !important; 
    font-weight: bold; 
}
.wrong-input { 
    border: 3px solid #c0392b !important; 
    background-color: rgba(192, 57, 43, 0.1) !important; 
    color: #c0392b !important; 
}

@keyframes shake { 0% {transform: translateX(0);} 25% {transform: translateX(-5px);} 50% {transform: translateX(5px);} 75% {transform: translateX(-5px);} 100% {transform: translateX(0);} }

.row { display: flex; gap: 10px; }
.col { flex: 1; }

/* --- LEGAL CHECKBOX --- */
.legal-section {
    margin-top: 20px; background: rgba(0,0,0,0.02);
    padding: 10px; border-radius: 8px; border: 1px solid var(--input-border);
}
.checkbox-wrapper { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.checkbox-wrapper:last-child { margin-bottom: 0; }
.checkbox-wrapper input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand-blue); flex-shrink: 0; }
.checkbox-wrapper label { font-size: 0.7rem; color: var(--text-sub); line-height: 1.4; cursor: pointer; }
.checkbox-wrapper a { color: var(--brand-blue); text-decoration: underline; font-weight: 700; }
.info-note { font-size: 0.65rem; color: #888; margin-top: 4px; display: block; font-style: italic; }

button {
    margin-top: 25px; width: 100%; padding: 16px;
    font-family: 'Oswald', sans-serif; font-size: 18px; letter-spacing: 1px;
    color: #fff; background-color: var(--brand-red);
    border: none; cursor: pointer; border-radius: 8px;
    box-shadow: 0 4px 0 #b01840; transition: 0.2s;
}
button:active { transform: translateY(4px); box-shadow: none; }
button:disabled { background-color: #ccc; box-shadow: none; cursor: not-allowed; transform: none; color: #666; opacity: 0.7; }

.screen { display: none; width: 100%; }
.active-screen { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* --- TEMALAR ve LAYOUT BUTONLARI --- */
.theme-switch {
    position: absolute; top: 20px; right: 20px;
    background: var(--card-bg); border: 2px solid var(--input-border);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-main); z-index: 10;
}

.layout-switch {
    position: absolute; top: 20px; right: 70px;
    background: linear-gradient(135deg, #2c3e50, #000); 
    border: 2px solid rgba(255,255,255,0.3);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; z-index: 10;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.layout-switch:hover { 
    transform: scale(1.1) rotate(15deg); 
    border-color: var(--brand-blue);
    box-shadow: 0 0 15px var(--brand-blue);
}
/* Aydınlık modda butonun görünür kalması için */
body:not(.dark-mode) .layout-switch {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #333;
    border-color: #ccc;
}

/* Utility */
.hidden { display: none !important; }
.divider { margin: 20px 0; border-top: 2px dashed #ddd; width: 100%; }
@keyframes pulse { 0% { transform: rotate(90deg) scale(1); opacity: 1; } 50% { transform: rotate(90deg) scale(1.2); opacity: 0.7; } 100% { transform: rotate(90deg) scale(1); opacity: 1; } }
@keyframes popIn { 0% { transform: translate(-50%, -50%) scale(0); } 100% { transform: translate(-50%, -50%) scale(1); } }