/* ==================== SUQUIZ - OPTIMIZED v7.3 (Temizlenmiş) ==================== */
/* Değişiklikler:
   - !important sayısı 35 → 2'ye düşürüldü
   - Kalan 2 adet: resize:none ve webkit-resizer (vendor override için gerekli)
   - Duplikat bölümler önceki versiyonda kaldırılmıştı, bu versiyon o temizliği korur
*/

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9B8EC4;
    --primary-dark: #7B6EA4;
    --primary-light: #C8BDE8;
    --accent: #7DCFB6;
    --success: #5DB89A;
    --success-dark: #4A9A80;
    --error: #D47A7A;
    --error-dark: #B85E5E;
    --text: #2E2A3A;
    --text-medium: #6B5E88;
    --text-light: #9E8DB8;
    --text-lighter: #E0D9F0;
    --bg: rgba(255, 255, 255, 0.88);
    --bg-gray: rgba(247, 245, 255, 0.95);
    --bg-light: rgba(242, 238, 255, 0.98);
    --border: rgba(155, 142, 196, 0.18);
    --border-medium: rgba(155, 142, 196, 0.32);
    --shadow: 0 2px 8px rgba(100, 80, 160, 0.10);
    --shadow-md: 0 8px 28px rgba(155, 142, 196, 0.12);
    --shadow-lg: 0 18px 50px rgba(155, 142, 196, 0.16);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background:
        radial-gradient(ellipse at 0%   0%,   rgba(200, 189, 232, 0.30)  0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(125, 207, 182, 0.22)  0%, transparent 55%),
        radial-gradient(ellipse at 50%  80%,  rgba(155, 142, 196, 0.15)  0%, transparent 45%),
        #F5F3FF;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ==================== CONTAINER ==================== */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ==================== HEADER ==================== */
.header {
    background: #2E2A3A;
    border-bottom: 1px solid rgba(155, 142, 196, 0.25);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Header üzerindeki metinler her zaman açık renk — koyu arka plan üstünde */
.header .logo h1,
.header .logo .tagline,
.header .logo-text { color: #EAE6F8; }

/* Logo "quiz" kısmı — primary renk ile vurgu */
.header .logo h1 .logo-quiz,
.logo h1 .logo-quiz { color: #9B8EC4; }
.header .nav .btn-secondary {
    color: #C8BDE8;
    border-color: rgba(200, 189, 232, 0.35);
    background: transparent;
}
.header .nav .btn-secondary:hover {
    background: rgba(200, 189, 232, 0.12);
    color: #EAE6F8;
    border-color: rgba(200, 189, 232, 0.55);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.logo {
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 0;
}

.logo:hover { opacity: 0.7; }

.logo h1 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
}

.logo .tagline { display: none; }

.logo-with-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.nav { display: flex; gap: 4px; }

.nav .btn-secondary {
    padding: 6px 10px;
    font-size: 10px;
    min-height: 32px;
}

@media (min-width: 768px) {
    .header { padding: 12px 0; }
    .logo h1 { font-size: 18px; }
    .logo .tagline {
        display: block;
        font-size: 10px;
        color: var(--text-light);
        margin-top: 1px;
    }
    .nav { gap: 8px; }
    .nav .btn-secondary { padding: 8px 14px; font-size: 12px; min-height: 36px; }
    .logo-with-image .logo-image { width: 36px; height: 36px; }
    .logo-with-image { gap: 12px; }
}

@media (max-width: 480px) {
    .logo-with-image .logo-image { width: 24px; height: 24px; }
    .logo-with-image { gap: 8px; }
}

/* ==================== LAYOUT WRAPPER ==================== */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    width: 100%;
    min-width: 0;
}

@media (min-width: 1024px) { .layout-wrapper { flex-direction: row; } }

/* ==================== MAIN CONTAINER ==================== */
.main-container {
    padding: 6px 0;
    min-height: calc(100vh - 80px);
}

@media (min-width: 768px) { .main-container { padding: 12px 0; } }
@media (min-width: 1024px) { .main-container { padding: 28px 0; } }

/* ==================== PROGRESS BAR - 6 STEPS ==================== */
.progress-container { padding: 8px 0 12px; }

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto 8px auto;
    position: relative;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 8px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 96, 138, 0.08) transparent;
    gap: 8px;
    max-width: 100%;
    width: fit-content;
}

.progress-steps::-webkit-scrollbar { height: 3px; }
.progress-steps::-webkit-scrollbar-track { background: transparent; }
.progress-steps::-webkit-scrollbar-thumb { background: rgba(212, 96, 138, 0.08); border-radius: 2px; }

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 400px;
    height: 3px;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--primary) var(--mobile-progress, 0%),
        var(--border) var(--mobile-progress, 0%),
        var(--border) 100%);
    z-index: 0;
    border-radius: 2px;
    transition: background 0.6s ease;
}

.progress-container[data-current-step="1"] { --mobile-progress: 0%; }
.progress-container[data-current-step="2"] { --mobile-progress: 20%; }
.progress-container[data-current-step="3"] { --mobile-progress: 40%; }
.progress-container[data-current-step="4"] { --mobile-progress: 60%; }
.progress-container[data-current-step="5"] { --mobile-progress: 80%; }
.progress-container[data-current-step="6"] { --mobile-progress: 100%; }

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 52px;
    max-width: 60px;
    padding: 0;
}

.step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step.active .step-number {
    background: linear-gradient(135deg, #d4608a, #e879a0);
    color: white;
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(212, 96, 138, 0.09);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #d4608a, #b84d76);
    color: white;
    border-color: transparent;
    box-shadow: 0 1px 4px rgba(212, 96, 138, 0.28);
}

.step-label {
    font-size: 8px;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 56px;
    word-wrap: break-word;
    width: 100%;
    display: block;
}

.step.active .step-label { color: var(--primary); font-weight: 700; font-size: 9px; }
.step.completed .step-label { color: var(--primary); }

.progress-bar { display: none; }

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4608a, #e879a0, #2db8ae);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

@media (max-width: 767px) {
    .progress-container { display: flex; justify-content: center; width: 100%; }
    .progress-steps { margin: 0 auto 8px auto; justify-content: center; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .progress-container {
        padding: 24px 0 28px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .progress-steps {
        padding: 14px 8px 10px;
        margin: 0 auto 8px auto;
        justify-content: center;
        width: fit-content;
    }
    .progress-steps::before { top: 30px; max-width: 500px; left: 50%; transform: translateX(-50%); }
    .step { min-width: 70px; gap: 6px; }
    .step-number { width: 34px; height: 34px; min-width: 34px; min-height: 34px; font-size: 13px; }
    .step-label { font-size: 10px; max-width: 70px; }
    .step.active .step-label { font-size: 11px; }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .progress-container {
        padding: 24px 0 28px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .progress-steps {
        padding: 14px 16px 10px 16px;
        margin: 0 auto 8px auto;
        justify-content: center;
        width: fit-content;
        gap: 12px;
    }
    .progress-steps::before {
        top: 30px;
        max-width: 550px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 100px);
    }
    .step { min-width: 75px; max-width: 80px; gap: 6px; }
}

@media (min-width: 1024px) {
    .progress-container {
        width: 200px;
        flex-shrink: 0;
        padding: 120px 16px 40px 16px;
        position: sticky;
        top: 140px;
        height: fit-content;
        margin-right: 40px;
    }
    .progress-steps {
        display: flex;
        flex-direction: column;
        gap: 32px;
        position: relative;
        padding-left: 0;
        margin-bottom: 0;
        overflow: visible;
        width: 100%;
        margin: 0;
    }
    .progress-steps::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 16px;
        bottom: auto;
        right: auto;
        height: calc(100% - 32px);
        width: 2px;
        background: linear-gradient(180deg,
            var(--primary-light) 0%,
            var(--primary-light) var(--progress-percent, 0%),
            var(--border) var(--progress-percent, 0%),
            var(--border) 100%);
        border-radius: 2px;
        z-index: 0;
        transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        max-width: none;
        transform: none;
    }
    .progress-container[data-current-step="1"] .progress-steps::before { --progress-percent: 0%; }
    .progress-container[data-current-step="2"] .progress-steps::before { --progress-percent: 20%; }
    .progress-container[data-current-step="3"] .progress-steps::before { --progress-percent: 40%; }
    .progress-container[data-current-step="4"] .progress-steps::before { --progress-percent: 60%; }
    .progress-container[data-current-step="5"] .progress-steps::before { --progress-percent: 80%; }
    .progress-container[data-current-step="6"] .progress-steps::before { --progress-percent: 100%; }
    .step {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        position: relative;
        z-index: 2;
        min-width: auto;
    }
    .step-number { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 14px; }
    .step.active .step-number { transform: none; box-shadow: 0 0 0 4px rgba(212, 96, 138, 0.06); }
    .step.completed .step-number { background: var(--bg); border-color: var(--primary); color: var(--primary); }
    .step-label {
        font-size: 14px;
        color: var(--text-lighter);
        font-weight: 500;
        text-align: left;
        white-space: nowrap;
        text-transform: none;
        max-width: none;
    }
    .step.active .step-label { color: var(--text); font-weight: 600; font-size: 14px; }
    .step.completed .step-label { color: var(--text-medium); font-size: 14px; }
    .progress-bar { display: none; }
}

/* ==================== STEPS ==================== */
.step-content { display: none; opacity: 0; }

.step-content.active {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header { text-align: center; margin-bottom: 8px; }

.step-header h2 {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 3px;
    color: var(--text);
}

.step-header p { color: var(--text-medium); font-size: 12px; }

@media (min-width: 768px) {
    .step-header { margin-bottom: 24px; }
    .step-header h2 { font-size: clamp(20px, 3.5vw, 22px); margin-bottom: 6px; }
    .step-header p { font-size: clamp(13px, 2vw, 14px); }
}

@media (min-width: 1024px) {
    .step-header { margin-bottom: 32px; }
    .step-header h2 { font-size: clamp(22px, 3vw, 26px); }
}

/* ==================== CARDS ==================== */
.menu-cards, .category-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.menu-cards { grid-template-columns: 1fr; max-width: 100%; }
.category-grid { grid-template-columns: repeat(2, 1fr); }

.menu-card, .category-card {
    background: var(--bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.menu-card:hover, .category-card:hover { border-color: var(--primary); }

.category-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(212, 96, 138, 0.06), rgba(224, 24, 93, 0.12));
}

.card-icon, .category-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img, .category-icon img { width: 100%; height: 100%; object-fit: contain; }
.menu-card h3, .category-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.menu-card p, .category-card p { font-size: 11px; color: var(--text-medium); margin-bottom: 8px; line-height: 1.3; }

.question-count {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.category-card.selected .question-count { background: var(--primary); color: white; }

@media (min-width: 480px) { .menu-cards { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 768px) {
    .menu-cards, .category-grid { gap: 14px; margin-bottom: 24px; }
    .menu-cards { max-width: 700px; margin: 0 auto 28px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin-left: auto; margin-right: auto; }
    .menu-card, .category-card { padding: 26px 20px; border-radius: var(--radius); }
    .card-icon, .category-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .menu-card h3, .category-card h3 { font-size: 16px; margin-bottom: 5px; }
    .menu-card p, .category-card p { font-size: 13px; margin-bottom: 14px; }
    .question-count { font-size: 10px; padding: 3px 8px; }
}

/* ==================== FORMS ==================== */
.settings-form { max-width: 100%; margin: 0 auto; }

.form-group { margin-bottom: 16px; position: relative; }

.char-counter { position: absolute; bottom: -16px; right: 0; font-size: 10px; color: var(--text-medium); font-weight: 500; }
.char-counter.warning { color: #f59e0b; }
.char-counter.error { color: var(--error); }

.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; color: var(--text); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }

.form-group input.valid, .form-group textarea.valid { border-color: var(--success); }
.form-group textarea { resize: vertical; min-height: 60px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.radio-group { display: flex; flex-direction: column; gap: 6px; }

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    min-height: 44px;
    transition: var(--transition);
    background: var(--bg);
}

.radio-label:hover { border-color: var(--primary); background: var(--bg-light); }

.radio-label:has(input:checked) {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(212, 96, 138, 0.06), rgba(224, 24, 93, 0.12));
}

.radio-label input[type="radio"] { width: 16px; height: 16px; cursor: pointer; margin: 0; flex-shrink: 0; min-height: auto; }
.radio-label span { font-size: 12px; color: var(--text); font-weight: 500; }
.radio-label input[type="radio"]:checked + span { font-weight: 600; color: var(--primary); }

.error-message, .success-message, .hint-message { font-size: 11px; margin-top: 3px; font-weight: 500; }
.error-message { display: none; color: var(--error); }
.success-message { display: none; color: var(--success); }

input.error, textarea.error, .option-input.error { border-color: var(--error); }

@media (min-width: 768px) {
    .settings-form { max-width: 520px; }
    .form-group { margin-bottom: 18px; }
    .form-group label { font-size: 13px; margin-bottom: 6px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 14px; min-height: 46px; }
    .radio-group { flex-direction: row; flex-wrap: wrap; }
    .radio-label { flex: 1; min-width: 130px; padding: 12px 14px; }
}

/* ==================== FORM OUTLINE ==================== */
.radio-label { outline: none; }

.radio-label:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 96, 138, 0.06);
}

.radio-label input[type="radio"] { outline: none; box-shadow: none; }

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 96, 138, 0.06);
}

.radio-group { outline: none; }
fieldset { outline: none; border: none; }

/* Focus stilleri accessibility.css tarafından yönetilir.
   Burada sadece form spesifik olanlar bırakıldı. */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

#step4 *:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== BUTTONS ==================== */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 16px;
    min-height: 48px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #9B8EC4, #b3a6d8);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(155, 142, 196, 0.08);
}

.btn-primary:hover { background: linear-gradient(135deg, #7B6EA4, #9B8EC4); box-shadow: 0 3px 10px rgba(155, 142, 196, 0.18); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Doğru şık seçilmeden ileri butonuna basıldığında kırmızı uyarı */
@keyframes btnErrorShake {
    0%   { transform: translateX(0);    background: linear-gradient(135deg, var(--error), #e87a7a); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px);  }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px);  }
    100% { transform: translateX(0);    background: linear-gradient(135deg, var(--error), #e87a7a); }
}
.btn-primary.btn-error-flash {
    animation: btnErrorShake 0.45s ease forwards;
    background: linear-gradient(135deg, var(--error), #e87a7a) !important;
}

/* Doğru şık seçilmediğinde radio butonları kırmızı çerçeve ile vurgulanır */
#optionsContainer.needs-selection .option-item input[type="radio"] {
    outline: 2.5px solid #ef4444;
    outline-offset: 2px;
    border-radius: 50%;
    accent-color: #ef4444;
}
#optionsContainer.needs-selection .option-item {
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-medium); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-light); }

.btn-danger { background: var(--error); color: white; border-color: var(--error); }
.btn-danger:hover { background: var(--error-dark); border-color: var(--error-dark); }

.btn-small { padding: 6px 12px; min-height: 32px; font-size: 11px; }

.btn-remove {
    width: 24px;
    height: 24px;
    min-height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-remove:hover { background: var(--error); }

.step-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

button, .btn-primary, .btn-secondary, .btn-danger { cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

/* pointer-events: none — buton içi görsel elementlerin tıklamayı yutmaması için */
button img, button span, button svg,
.btn-primary img, .btn-primary span, .btn-primary svg,
.btn-secondary img, .btn-secondary span, .btn-secondary svg,
.btn-danger img, .btn-danger span, .btn-danger svg { pointer-events: none; }

button:disabled, .btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled { cursor: not-allowed; }

@media (min-width: 768px) {
    .btn-primary, .btn-secondary, .btn-danger { padding: 12px 20px; min-height: 46px; width: auto; }
    .step-actions { flex-direction: row; justify-content: space-between; margin-top: 28px; }
    .step-actions button { width: auto; min-width: 130px; }
}

/* ==================== QUESTIONS ==================== */
.question-form-container { max-width: 100%; margin: 0 auto; width: 100%; }

.question-progress-container { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; width: 100%; }

.question-progress {
    background: linear-gradient(135deg, rgba(212, 96, 138, 0.06), rgba(224, 24, 93, 0.12));
    border: 2px solid var(--primary);
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.question-progress-text { font-size: 13px; font-weight: 600; color: var(--primary); text-align: center; }

.question-progress-bar { height: 5px; background: rgba(13, 13, 13, 0.78); border-radius: 3px; overflow: hidden; }

.question-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4608a, #e879a0);
    transition: width 0.3s;
    border-radius: 3px;
}

.image-upload-container { margin-top: 10px; }

#imagePreview, #editImagePreview { position: relative; margin-top: 10px; }

#imagePreview img, #editImagePreview img { max-width: 100%; max-height: 140px; border-radius: 8px; border: 2px solid var(--border); }
#imagePreview .btn-remove, #editImagePreview .btn-remove { position: absolute; top: -6px; right: -6px; }

.options-container { display: flex; flex-direction: column; gap: 5px; }

.option-item {
    display: grid;
    grid-template-columns: 28px 1fr 20px 30px;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.90);
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
    cursor: default;
}

.option-item:hover { border-color: var(--primary); }

.option-item.correct {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
}

.option-label {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #d4608a, #e879a0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.option-item.correct .option-label { background: linear-gradient(135deg, var(--success), var(--success-dark)); }

.option-item input[type="text"],
.option-item .option-input,
.option-item .edit-option-input {
    width: 100%;
    border: 2px solid var(--border);
    background: var(--bg-gray);
    font-size: 13px;
    color: var(--text);
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
    font-family: inherit;
    min-height: 32px;
    cursor: text;
}

.option-item input[type="text"]:focus,
.option-item .option-input:focus,
.option-item .edit-option-input:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.90); }

.option-item input[type="radio"] {
    opacity: 1;
    position: relative;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    min-height: auto;
}

.btn-delete-option {
    width: 30px;
    height: 30px;
    min-height: 30px;
    border: none;
    background: rgba(224, 24, 93, 0.12);
    color: var(--error);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.btn-delete-option:hover:not(:disabled) { background: var(--error); color: white; transform: scale(1.05); }
.btn-delete-option:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-add-option {
    width: 100%;
    padding: 10px 16px;
    min-height: 44px;
    background: linear-gradient(135deg, #6fd4a8, #4dbf90);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(111, 212, 168, 0.3);
}

.btn-add-option:hover { background: linear-gradient(135deg, #4dbf90, #047857); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4); }
.btn-add-option:active { transform: translateY(0) scale(0.98); }

input[type="text"], input[type="number"], textarea { cursor: text; }
input[type="text"]:disabled, input[type="number"]:disabled, textarea:disabled { cursor: not-allowed; }
select { cursor: pointer; }
input[type="radio"], input[type="checkbox"] { cursor: pointer; }

@media (min-width: 768px) {
    .question-form-container { max-width: 600px; }
    .question-progress-container { flex-direction: row; align-items: center; margin-bottom: 16px; }
    .question-progress { flex: 1; padding: 10px 16px; }
    .question-progress-text { font-size: 13px; }
    .question-progress-bar { height: 6px; }
    .options-container { gap: 10px; }
    .option-item { grid-template-columns: 32px 1fr 32px 32px; gap: 10px; padding: 10px 12px; }
    .option-label { width: 32px; height: 32px; font-size: 13px; }
    .option-item input[type="text"], .option-item .option-input, .option-item .edit-option-input { font-size: 14px; padding: 8px 10px; min-height: 40px; }
    .option-item input[type="radio"] { width: 18px; height: 18px; }
    .btn-delete-option { width: 32px; height: 32px; min-height: 32px; font-size: 15px; }
    .btn-add-option { padding: 12px 20px; min-height: 46px; font-size: 14px; }
}

/* ==================== STEP 4 - QUESTION TEXT + BUTTONS SIDE BY SIDE ==================== */
#step4 .question-text-with-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

#step4 .question-text-group {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Karakter sayıcı — textarea'nın hemen altında, sağa yaslanmış */
#step4 .question-text-group .char-counter {
    position: static;
    display: block;
    text-align: right;
    margin-top: 4px;
    margin-bottom: 2px;
}

/* Hata mesajı — sayıcının hemen altında */
#step4 .question-text-group .error-message {
    position: static;
    display: block;
    margin-top: 0;
    line-height: 1.3;
}

/* ---- Test başlığı (step3) — uyarı + sayıcı aynı satırda ---- */
#step3 .form-group:has(#testTitle) {
    padding-bottom: 24px;
}
#testTitle ~ .char-counter {
    position: absolute;
    bottom: 5px;
    right: 0;
}
/* Hata mesajı sayıcı ile aynı yatay hizada, sola yaslanmış */
#testTitle ~ .error-message {
    position: absolute;
    bottom: 5px;
    left: 0;
    margin-top: 0;
    max-width: calc(100% - 56px);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#step4 .question-text-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
}

#step4 .question-text-group textarea {
    width: 100%;
    min-height: 80px;
    max-height: 300px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: none !important;         /* vendor default'u ezmek için gerekli */
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    box-sizing: border-box;
    cursor: text;
    overflow: auto;
}

#step4 .question-text-group textarea::-webkit-resizer {
    display: none !important;        /* vendor pseudo-element override için gerekli */
}

#step4 .question-text-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

#step4 .question-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
    width: 80px;
    padding-top: 27px;
    margin-top: 0;
    align-self: flex-start;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

#deleteCurrentQuestionBtn,
#addQuestionInStep4Btn,
#step4 .btn-delete-current-question,
#step4 .btn-add-question {
    width: 100%;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 8px;
    font-size: 10.5px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    border: 1.5px solid var(--border-medium);
    background: transparent;
    color: var(--text);
    transition: var(--transition);
    font-family: inherit;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

#deleteCurrentQuestionBtn:hover,
#step4 .btn-delete-current-question:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.05);
    transform: none;
}

#addQuestionInStep4Btn:hover,
#step4 .btn-add-question:hover {
    border-color: var(--success);
    color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    transform: none;
}

#step4 .btn-delete-current-question:active:not(:disabled),
#step4 .btn-add-question:active,
#deleteCurrentQuestionBtn:active,
#addQuestionInStep4Btn:active {
    transform: scale(0.98);
}

#deleteCurrentQuestionBtn:disabled,
#step4 .btn-delete-current-question:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#deleteCurrentQuestionBtn *,
#addQuestionInStep4Btn *,
#step4 .btn-delete-current-question *,
#step4 .btn-add-question * {
    pointer-events: none;
    cursor: inherit;
}

#deleteCurrentQuestionBtn img,
#addQuestionInStep4Btn img,
#step4 .btn-delete-current-question img,
#step4 .btn-add-question img {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

#step4 .btn-delete-current-question .btn-icon,
#step4 .btn-add-question .btn-icon { font-size: 13px; line-height: 1; }

#step4 .btn-delete-current-question .btn-text,
#step4 .btn-add-question .btn-text { font-size: 12px; font-weight: 500; }

@media (max-width: 575px) {
    #step4 .question-text-with-actions {
        flex-direction: column;
        gap: 8px;
    }
    #step4 .question-action-buttons {
        flex-direction: row;
        width: 100%;
        padding-top: 0;
        gap: 8px;
    }
    #deleteCurrentQuestionBtn,
    #addQuestionInStep4Btn,
    #step4 .btn-delete-current-question,
    #step4 .btn-add-question {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        height: 34px;
        min-height: 34px;
        max-height: 34px;
        font-size: 11px;
        padding: 0 8px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    #step4 .question-action-buttons { width: 76px; gap: 5px; }
    #deleteCurrentQuestionBtn,
    #addQuestionInStep4Btn,
    #step4 .btn-delete-current-question,
    #step4 .btn-add-question {
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        font-size: 10px;
        padding: 0 6px;
    }
}

@media (min-width: 768px) {
    #step4 .question-action-buttons { width: 84px; gap: 6px; }
    #deleteCurrentQuestionBtn,
    #addQuestionInStep4Btn,
    #step4 .btn-delete-current-question,
    #step4 .btn-add-question {
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        font-size: 11px;
        padding: 0 9px;
    }
}

@media (hover: none) and (pointer: coarse) {
    #deleteCurrentQuestionBtn,
    #addQuestionInStep4Btn,
    #step4 .btn-delete-current-question,
    #step4 .btn-add-question {
        min-height: 38px;
        height: 38px;
        max-height: 38px;
    }
}

/* ==================== PREVIEW ==================== */
.preview-container { max-width: 100%; margin: 0 auto; overflow: hidden; word-break: break-word; overflow-wrap: break-word; }

.preview-header { text-align: center; padding-bottom: 16px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.preview-header h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }

.preview-info { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.preview-info span { background: var(--bg-gray); border: 1px solid var(--border); padding: 5px 10px; border-radius: var(--radius); font-size: 11px; color: var(--text-medium); }

.preview-questions { display: flex; flex-direction: column; gap: 12px; overflow: hidden; word-break: break-word; overflow-wrap: break-word; }

.preview-question {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    transition: var(--transition);
    position: relative;
    cursor: grab;
    user-select: none;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.preview-question:hover { border-color: var(--primary); }

.preview-question::before {
    content: '⋮⋮';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b6b80;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: grab;
}

.preview-question:hover::before { opacity: 1; }
.preview-question:active { cursor: grabbing; }

.preview-question.dragging {
    opacity: 0.7;
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 100;
    cursor: grabbing;
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(212, 96, 138, 0.06), rgba(224, 24, 93, 0.12));
}

.preview-question.drag-over {
    border-color: var(--primary);
    border-style: dashed;
    background: linear-gradient(135deg, rgba(212, 96, 138, 0.06), rgba(224, 24, 93, 0.12));
}

.preview-question.drag-over::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4608a, #e879a0);
    border-radius: 2px;
    animation: dropIndicator 0.5s infinite alternate;
}

@keyframes dropIndicator { from { opacity: 0.5; } to { opacity: 1; } }

.preview-question-actions { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }

.btn-edit-question, .btn-delete-question {
    padding: 6px 10px;
    min-height: 30px;
    border-radius: var(--radius);
    border: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-edit-question { background: var(--primary); color: white; }
.btn-edit-question:hover { background: var(--primary-dark); }
.btn-delete-question { background: var(--error); color: white; }
.btn-delete-question:hover { background: var(--error-dark); }
.btn-edit-question img, .btn-delete-question img { width: 12px; height: 12px; filter: brightness(0) invert(1); }

.preview-question-header { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; min-width: 0; overflow: hidden; }

.preview-question-number {
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.preview-question-number.updated { animation: numberPop 0.3s ease; }

@keyframes numberPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: linear-gradient(135deg, #6fd4a8, #4dbf90); }
    100% { transform: scale(1); }
}

.preview-question-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    overflow: hidden;
}

.preview-question-image { margin: 10px 0; }
.preview-question-image img { max-width: 100%; border-radius: var(--radius); border: 2px solid var(--border); }

.preview-options { display: grid; gap: 6px; }

.preview-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-gray);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    min-width: 0;
    overflow: hidden;
}

.preview-option.correct { border-color: var(--success); background: rgba(16, 185, 129, 0.05); }

.preview-option-label {
    width: 22px;
    height: 22px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-medium);
    flex-shrink: 0;
}

.preview-option.correct .preview-option-label { background: var(--success); color: white; border-color: var(--success); }

.preview-option-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    overflow: hidden;
}

.preview-option.correct::after { content: '✓'; font-weight: 600; color: var(--success); font-size: 12px; }

@media (min-width: 768px) {
    .preview-container { max-width: 700px; }
    .preview-header { padding-bottom: 24px; margin-bottom: 28px; }
    .preview-header h3 { font-size: 22px; margin-bottom: 12px; }
    .preview-questions { gap: 16px; }
    .preview-question { padding: 18px; }
    .preview-question-actions { position: absolute; top: 14px; right: 14px; opacity: 0; margin-top: 0; }
    .preview-question:hover .preview-question-actions { opacity: 1; }
    .preview-question-number { width: 30px; height: 30px; font-size: 13px; }
    .preview-question-text { font-size: 15px; padding-right: 90px; }
    .preview-option { padding: 10px 12px; }
    .preview-option-label { width: 26px; height: 26px; font-size: 11px; }
    .preview-option-text { font-size: 14px; }
    .preview-question::before { left: -12px; font-size: 16px; }
}

/* ==================== DRAG HINT BANNER ==================== */
.drag-hint-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(224, 24, 93, 0.12), rgba(212, 96, 138, 0.06));
    border: 2px solid rgba(212, 96, 138, 0.08);
    border-radius: 10px;
    margin-bottom: 16px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.drag-hint-icon { font-size: 18px; animation: bounce 2s infinite; }

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

.drag-hint-text { font-size: 12px; font-weight: 500; color: var(--primary-dark); }

.drag-hint-close {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(234, 88, 12, 0.1);
    color: var(--primary-dark);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: auto;
}

.drag-hint-close:hover { background: rgba(30, 64, 175, 0.2); transform: scale(1.1); }
.drag-hint-banner.hidden { display: none; }

@media (min-width: 768px) {
    .drag-hint-banner { padding: 12px 20px; margin-bottom: 20px; }
    .drag-hint-icon { font-size: 20px; }
    .drag-hint-text { font-size: 13px; }
}

/* ==================== SUCCESS PAGE (STEP 6) ==================== */
.success-container-new { max-width: 700px; margin: 0 auto; padding: 0; }

.success-header { text-align: center; padding: 8px 12px 12px; margin-bottom: 16px; }

.success-icon-new {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon-new img { width: 100%; height: 100%; object-fit: contain; }
.success-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.success-header p { color: var(--text-medium); font-size: 12px; }

.success-new-layout { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.link-box-new { padding: 0; }
.link-box-new label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 6px; color: var(--text); }
.link-input-group { display: flex; flex-direction: column; gap: 8px; }

.link-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', monospace;
    min-height: 44px;
}

.btn-copy {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    transition: var(--transition);
}

.btn-copy:hover { background: var(--primary-dark); }

.copy-message { margin-top: 4px; color: var(--success); font-size: 12px; font-weight: 500; text-align: center; }

.qr-pdf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }

#qrCodeContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.90);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 200px;
    cursor: pointer;
    transition: var(--transition);
}

#qrCodeContainer:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(244, 167, 195, 0.09); transform: translateY(-2px); }
#qrCodeContainer img, #qrCodeContainer canvas { width: 180px; height: 180px; border: none; border-radius: 8px; }

.btn-pdf-square {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-pdf-square:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); }
.btn-pdf-square:active { transform: scale(0.98); }
.btn-pdf-square .pdf-icon { font-size: 56px; line-height: 1; }
.btn-pdf-square .pdf-text { font-size: 16px; font-weight: 600; color: white; text-align: center; }
.btn-pdf-square.downloading { pointer-events: none; opacity: 0.8; }
.btn-pdf-square.downloading .pdf-icon { animation: pulsePdf 1s infinite; }

@keyframes pulsePdf { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.1); } }

.btn-pdf-square.success { background: #6fd4a8; }

.success-share { padding: 16px 0; border-top: 1px solid var(--border); margin-bottom: 16px; }
.success-share h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--text); text-align: center; }

.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.share-btn-new {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    min-height: 44px;
}

.share-btn-new img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.share-btn-new span { flex: 1; text-align: left; }
.share-btn-new.whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn-new.telegram:hover { border-color: #0088cc; color: #0088cc; }
.share-btn-new.twitter:hover { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn-new.tiktok:hover { border-color: #000000; color: #000000; }
.share-btn-new.instagram:hover { border-color: #E4405F; color: #E4405F; }

.success-footer { text-align: center; padding-top: 14px; border-top: 1px solid var(--border); }
.success-footer .btn-primary { width: 100%; }

@media (min-width: 768px) {
    .success-header { padding: 12px 16px 16px; margin-bottom: 20px; }
    .success-header h2 { font-size: 24px; }
    .success-header p { font-size: 14px; }
    .success-icon-new { width: 52px; height: 52px; margin-bottom: 12px; }
    .success-new-layout { gap: 20px; margin-bottom: 24px; }
    .link-input-group { flex-direction: row; }
    .link-input-group input { flex: 1; font-size: 13px; }
    .btn-copy { width: auto; padding: 10px 20px; }
    .qr-pdf-row { gap: 20px; }
    #qrCodeContainer { padding: 20px; min-height: 240px; }
    #qrCodeContainer img, #qrCodeContainer canvas { width: 200px; height: 200px; }
    .btn-pdf-square { height: 240px; }
    .btn-pdf-square .pdf-icon { font-size: 72px; }
    .btn-pdf-square .pdf-text { font-size: 18px; }
    .share-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .success-share { padding: 20px 0; margin-bottom: 20px; }
    .success-share h3 { font-size: 15px; margin-bottom: 16px; }
    .success-footer .btn-primary { width: auto; min-width: 200px; }
}

@media (min-width: 1024px) { .share-grid { grid-template-columns: repeat(5, 1fr); } }

/* ==================== MODALS ==================== */
.modal, .custom-alert-modal, .preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 12px;
}

.modal.active, .custom-alert-modal.active, .preview-modal.active { display: flex; animation: fadeIn 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content, .custom-alert-content {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn { from { transform: scale(0.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal-content.large { max-width: 600px; max-height: 85vh; }

.custom-alert-icon, .modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.custom-alert-icon.success { background: rgba(111, 212, 168, 0.15); color: var(--success); }
.custom-alert-icon.error { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.custom-alert-icon.info { background: rgba(212, 96, 138, 0.06); color: var(--primary); }
.custom-alert-icon.warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    min-height: 32px;
    background: rgba(224, 24, 93, 0.12);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    font-size: 20px;
    font-weight: 700;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover { background: var(--error); color: white; border-color: var(--error); transform: rotate(90deg); }

.custom-alert-actions, .modal-actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; margin-top: 16px; }

.custom-alert-title, .modal-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; margin-top: 8px; color: var(--text); }
.custom-alert-message, .modal-content p { color: var(--text-medium); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; text-align: left; position: relative; padding-right: 40px; }
.modal-header h3 { margin-top: 0; }
.modal-body { text-align: left; margin-bottom: 14px; }

.preview-modal-content { background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }

.preview-modal-header { position: sticky; top: 0; background: var(--bg); border-bottom: 2px solid var(--border); padding: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
.preview-modal-header h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.preview-modal-body { padding: 14px; }

.qr-modal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 10001; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 20px; }
.qr-modal.active { display: flex; animation: fadeIn 0.3s; }

.qr-modal-content { background: var(--bg); border-radius: var(--radius); padding: 24px; max-width: 500px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease-out; }

.qr-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.qr-modal-header h3 { font-size: 18px; font-weight: 600; color: var(--text); margin: 0; }

.qr-modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: rgba(224, 24, 93, 0.12); border: 2px solid transparent; border-radius: 50%; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; color: var(--error); font-size: 20px; font-weight: 600; z-index: 10; }
.qr-modal-close:hover { background: var(--error); color: white; border-color: var(--error); transform: rotate(90deg); }

.qr-modal-body { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 12px; }
.qr-modal-body img, .qr-modal-body canvas { width: 100%; max-width: 400px; height: auto; border: 2px solid var(--border); border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.qr-modal-info { text-align: center; color: var(--text-medium); font-size: 13px; }

@media (min-width: 768px) {
    .modal, .custom-alert-modal, .preview-modal { padding: 20px; }
    .modal-content, .custom-alert-content { padding: 28px; padding-top: 40px; }
    .custom-alert-icon, .modal-icon { width: 56px; height: 56px; font-size: 28px; }
    .custom-alert-title, .modal-content h3 { font-size: 18px; }
    .custom-alert-message, .modal-content p { font-size: 14px; margin-bottom: 20px; }
    .custom-alert-actions, .modal-actions { flex-direction: row; gap: 12px; }
    .modal-close { top: 16px; right: 16px; }
    .preview-modal-header { padding: 18px; }
    .preview-modal-body { padding: 20px; }
    .qr-modal-content { max-width: 600px; padding: 32px; }
    .qr-modal-header h3 { font-size: 20px; }
    .qr-modal-body img, .qr-modal-body canvas { max-width: 500px; }
}

/* ==================== TOAST ==================== */
.toast-container { position: fixed; top: 72px; right: 12px; left: 12px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }

.toast {
    background: rgba(255,255,255,0.90);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--primary); }
.toast.warning { border-left: 4px solid #f59e0b; }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-icon img { width: 18px; height: 18px; }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 12px; margin-bottom: 2px; color: var(--text); }
.toast-message { font-size: 11px; color: var(--text-medium); line-height: 1.3; }

.toast-close { width: 24px; height: 24px; min-height: 24px; border-radius: 50%; background: var(--bg-light); border: none; cursor: pointer; font-size: 12px; color: var(--text-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

@media (min-width: 768px) {
    .toast-container { top: 72px; bottom: auto; right: 20px; left: auto; max-width: 360px; }
    .toast { padding: 14px 16px; animation: slideInRight 0.3s ease-out; }
    @keyframes slideInRight { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
    .toast-title { font-size: 13px; }
    .toast-message { font-size: 12px; }
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.spinner { width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-dark { border: 3px solid rgba(212, 96, 138, 0.08); border-top-color: var(--primary); }

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

.loading-text { margin-top: 12px; color: white; font-weight: 500; font-size: 13px; }

@media (min-width: 768px) { .spinner { width: 44px; height: 44px; border-width: 4px; } }

/* ==================== FOOTER ==================== */
.footer { padding: 16px 0; text-align: center; margin-top: 32px; border-top: 1px solid var(--border); background: rgba(212, 96, 138, 0.06); }
.footer p { color: var(--text-light); font-size: 10px; }

@media (min-width: 768px) { .footer { padding: 24px 0; margin-top: 48px; } .footer p { font-size: 12px; } }

/* ==================== SCROLLBAR ==================== */
:root { scrollbar-width: thin; scrollbar-color: rgba(212, 96, 138, 0.08) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, rgba(212, 96, 138, 0.12), rgba(130, 114, 212, 0.5)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, rgba(155, 139, 228, 0.7), rgba(130, 114, 212, 0.7)); }

/* ==================== ACCESSIBILITY ==================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: white; padding: 8px 16px; border-radius: 0 0 8px 0; z-index: 100000; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 0; }

/* ==================== TOUCH OPTIMIZATIONS ==================== */
@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-secondary, .btn-danger, .btn-copy,
    .share-btn-new, .radio-label, .menu-card, .category-card,
    .btn-add-question, .btn-delete-current-question, .option-item { min-height: 48px; }

    .form-group input, .form-group select, .form-group textarea,
    .option-item input[type="text"], .option-item .option-input { min-height: 48px; font-size: 16px; }

    .menu-card:hover, .category-card:hover, .btn-primary:hover, .btn-secondary:hover { transform: none; }
    .btn-primary:active, .btn-secondary:active, .menu-card:active, .category-card:active { transform: scale(0.98); opacity: 0.9; }
    .preview-question::before { opacity: 0.6; left: 4px; }
    .btn-delete-current-question:hover, .btn-add-question:hover { transform: none; }
    .btn-delete-current-question:active, .btn-add-question:active { transform: scale(0.95); }
}

/* ==================== SAFE AREA (NOTCH) ==================== */
@supports (padding-top: env(safe-area-inset-top)) {
    .header { padding-top: calc(10px + env(safe-area-inset-top)); }
    .toast-container { top: calc(72px + env(safe-area-inset-top)); }
}

/* ==================== PRINT ==================== */
@media print {
    .header, .footer, .btn-primary, .btn-secondary, .btn-danger,
    .step-actions, .progress-container { display: none; }
    .preview-container { max-width: 100%; }
}

/* ==================== STEP 4 - BADGE SOL, BAŞLIK ORTADA ==================== */
#step4 .step-header { position: relative; text-align: center; margin-bottom: 24px; }

.question-number-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4608a, #e879a0);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 96, 138, 0.09);
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin: 0;
    z-index: 1;
}

.question-number-badge:hover { box-shadow: 0 6px 16px rgba(212, 96, 138, 0.12); transform: translateY(-50%) scale(1.05); }

#step4 .step-header h2 { margin: 0; font-size: 22px; text-align: center; }
#step4 .question-text-group { flex: 1; min-width: 0; display: block; }
#step4 .question-form-content { width: 100%; }

@media (min-width: 768px) {
    #step4 .step-header { margin-bottom: 28px; }
    .question-number-badge { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
    #step4 .step-header h2 { font-size: 24px; }
}

@media (min-width: 1024px) {
    #step4 .step-header { margin-bottom: 32px; }
    .question-number-badge { padding: 14px 26px; font-size: 16px; }
    #step4 .step-header h2 { font-size: clamp(22px, 3vw, 26px); }
}

@media (max-width: 575px) {
    #step4 .step-header { padding-top: 50px; }
    .question-number-badge { top: 0; transform: none; padding: 8px 14px; font-size: 13px; }
    .question-number-badge:hover { transform: scale(1.05); }
    #step4 .step-header h2 { font-size: 18px; }
}

/* ==================== BUTTON ICON FIX ==================== */
#nextQuestionBtn img,
#settingsNextBtn img,
#createLinkBtn img { filter: none; opacity: 1; }

/* ==================== EXTRA SMALL SCREENS ==================== */
@media (max-width: 355px) {
    .step-label { display: none; }
    .progress-steps::before { width: calc(100% - 40px); max-width: 200px; }
    .step { min-width: 32px; max-width: 36px; }
    .step-number { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 10px; }
    .progress-steps { gap: 2px; padding: 6px 4px; }
}

@media (max-width: 340px) {
    .container { padding: 0 8px; }
    .header { padding: 4px 0; }
    .header .container { gap: 4px; }
    .logo h1 { font-size: 12px; }
    .logo-image { width: 20px; height: 20px; }
    .logo-with-image { gap: 6px; }
    .nav .btn-secondary { padding: 4px 6px; font-size: 9px; min-height: 28px; }
    .step { min-width: 42px; max-width: 48px; }
    .step-number { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 10px; }
    .step-label { font-size: 7px; max-width: 44px; }
    .step-header { margin-bottom: 6px; }
    .step-header h2 { font-size: 14px; margin-bottom: 2px; }
    .step-header p { font-size: 10px; }
    .menu-cards, .category-grid { gap: 6px; margin-bottom: 10px; }
    .menu-cards { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .menu-card, .category-card { padding: 14px 12px; border-radius: 8px; }
    .card-icon, .category-icon { width: 28px; height: 28px; margin-bottom: 6px; }
    .menu-card h3, .category-card h3 { font-size: 13px; }
    .menu-card p, .category-card p { font-size: 10px; margin-bottom: 6px; line-height: 1.2; }
    .question-count { font-size: 8px; padding: 2px 4px; }
    .form-group { margin-bottom: 12px; }
    .form-group label { font-size: 11px; margin-bottom: 4px; }
    .form-group input, .form-group select, .form-group textarea { padding: 8px 10px; font-size: 13px; min-height: 38px; border-radius: 8px; }
    .form-row { grid-template-columns: 1fr; gap: 8px; }
    .radio-group { gap: 4px; }
    .radio-label { padding: 8px 10px; min-height: 38px; border-radius: 8px; }
    .radio-label span { font-size: 11px; }
    .char-counter { font-size: 9px; }
    .btn-primary, .btn-secondary, .btn-danger { padding: 8px 12px; min-height: 38px; font-size: 11px; border-radius: 8px; gap: 4px; }
    .step-actions { gap: 6px; margin-top: 12px; }
    #step4 .step-header { padding-top: 42px; margin-bottom: 16px; }
    .question-number-badge { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
    #step4 .step-header h2 { font-size: 14px; }
    .options-container { gap: 4px; }
    .option-item { grid-template-columns: 20px 1fr 16px 24px; gap: 4px; padding: 4px 6px; border-radius: 6px; }
    .option-label { width: 20px; height: 20px; font-size: 9px; }
    .option-item input[type="text"], .option-item .option-input, .option-item .edit-option-input { font-size: 11px; padding: 4px 6px; min-height: 28px; }
    .option-item input[type="radio"] { width: 14px; height: 14px; }
    .btn-delete-option { width: 24px; height: 24px; min-height: 24px; font-size: 12px; }
    .btn-add-option { padding: 8px 12px; min-height: 36px; font-size: 11px; margin-top: 6px; }
    .preview-header { padding-bottom: 12px; margin-bottom: 14px; }
    .preview-header h3 { font-size: 14px; margin-bottom: 6px; }
    .preview-info { gap: 6px; }
    .preview-info span { padding: 4px 6px; font-size: 9px; }
    .preview-questions { gap: 8px; }
    .preview-question { padding: 10px; border-radius: 8px; }
    .preview-question-number { width: 22px; height: 22px; font-size: 10px; }
    .preview-question-text { font-size: 11px; }
    .preview-option { padding: 6px 8px; border-radius: 6px; }
    .preview-option-label { width: 18px; height: 18px; font-size: 9px; }
    .preview-option-text { font-size: 10px; }
    .preview-question-actions { gap: 4px; margin-top: 8px; }
    .btn-edit-question, .btn-delete-question { padding: 4px 8px; min-height: 26px; font-size: 9px; }
    .drag-hint-banner { padding: 8px 10px; gap: 6px; margin-bottom: 10px; }
    .drag-hint-icon { font-size: 14px; }
    .drag-hint-text { font-size: 10px; }
    .drag-hint-close { width: 20px; height: 20px; font-size: 12px; }
    .success-header { padding: 6px 8px 10px; margin-bottom: 12px; }
    .success-icon-new { width: 32px; height: 32px; margin-bottom: 6px; }
    .success-header h2 { font-size: 14px; }
    .success-header p { font-size: 10px; }
    .success-new-layout { gap: 12px; margin-bottom: 14px; }
    .link-input-group { gap: 6px; }
    .link-input-group input { padding: 8px 10px; font-size: 10px; min-height: 38px; }
    .btn-copy { padding: 8px 12px; font-size: 11px; min-height: 38px; }
    .qr-pdf-row { grid-template-columns: 1fr; gap: 10px; }
    #qrCodeContainer { padding: 12px; min-height: 160px; }
    #qrCodeContainer img, #qrCodeContainer canvas { width: 140px; height: 140px; }
    .btn-pdf-square { height: 120px; gap: 8px; }
    .btn-pdf-square .pdf-icon { font-size: 36px; }
    .btn-pdf-square .pdf-text { font-size: 12px; }
    .success-share { padding: 12px 0; margin-bottom: 12px; }
    .success-share h3 { font-size: 11px; margin-bottom: 8px; }
    .share-grid { grid-template-columns: 1fr; gap: 6px; }
    .share-btn-new { padding: 8px 10px; font-size: 11px; min-height: 38px; }
    .share-btn-new img { width: 16px; height: 16px; }
    .success-footer { padding-top: 10px; }
    .modal, .custom-alert-modal, .preview-modal { padding: 8px; }
    .modal-content, .custom-alert-content { padding: 14px; padding-top: 32px; border-radius: 10px; }
    .modal-close { top: 8px; right: 8px; width: 28px; height: 28px; min-height: 28px; font-size: 16px; }
    .custom-alert-icon, .modal-icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 8px; }
    .custom-alert-title, .modal-content h3 { font-size: 13px; margin-bottom: 4px; }
    .custom-alert-message, .modal-content p { font-size: 11px; margin-bottom: 12px; }
    .custom-alert-actions, .modal-actions { gap: 6px; margin-top: 12px; }
    .qr-modal-content { padding: 16px; }
    .qr-modal-header h3 { font-size: 14px; }
    .qr-modal-close { width: 30px; height: 30px; font-size: 16px; top: 12px; right: 12px; }
    .qr-modal-body img, .qr-modal-body canvas { max-width: 200px; }
    .qr-modal-info { font-size: 11px; }
    .toast-container { top: 68px; bottom: auto; left: 8px; right: 8px; }
    .toast { padding: 10px; gap: 8px; }
    .toast-icon { font-size: 16px; }
    .toast-title { font-size: 11px; }
    .toast-message { font-size: 10px; }
    .toast-close { width: 20px; height: 20px; min-height: 20px; font-size: 10px; }
    .footer { padding: 12px 0; margin-top: 20px; }
    .footer p { font-size: 9px; }
    .main-container { padding: 4px 0; }
}

@media (max-width: 340px) and (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-secondary, .btn-danger, .btn-copy,
    .share-btn-new, .radio-label, .menu-card, .category-card, .option-item { min-height: 44px; }
    .form-group input, .form-group select, .form-group textarea { min-height: 44px; }
}

/* ==================== 375px / iPhone SE / Old Androids ==================== */
@media (max-width: 374px) {
    .container { padding: 0 10px; }
    .logo h1 { font-size: 13px; }
    .logo-image { width: 22px; height: 22px; }
    .nav .btn-secondary { padding: 5px 8px; font-size: 10px; }
    .step-header h2 { font-size: 15px; }
    .step-header p { font-size: 11px; }
    .menu-cards { gap: 8px; }
    .menu-card, .category-card { padding: 16px 13px; }
    .menu-card h3, .category-card h3 { font-size: 13px; }
    .menu-card p, .category-card p { font-size: 11px; }
    .form-group input, .form-group select, .form-group textarea { padding: 9px 12px; font-size: 14px; min-height: 44px; }
    .btn-primary, .btn-secondary, .btn-danger { padding: 9px 14px; min-height: 44px; font-size: 12px; }
    .radio-label { padding: 9px 12px; min-height: 44px; }
    .radio-label span { font-size: 12px; }
    .option-item { padding: 6px 8px; }
    .option-item input[type="text"], .option-item .option-input, .option-item .edit-option-input { font-size: 12px; }
    .share-grid { grid-template-columns: 1fr 1fr; }
    .category-grid { gap: 8px; }
    .toast-container { top: 68px; bottom: auto; left: 10px; right: 10px; }
}

/* ==================== LANDSCAPE MOBILE (short viewports) ==================== */
@media (orientation: landscape) and (max-height: 500px) {
    .header { padding: 4px 0; }
    .logo h1 { font-size: 14px; }
    .logo-image { width: 22px; height: 22px; }
    .main-container { padding: 6px 0; }
    .step-header { margin-bottom: 10px; padding: 10px 16px 8px; }
    .step-header h2 { font-size: 16px; margin-bottom: 2px; }
    .step-header p { font-size: 11px; }
    .menu-cards { gap: 8px; margin-bottom: 12px; grid-template-columns: repeat(2, 1fr); }
    .category-grid { gap: 8px; margin-bottom: 12px; grid-template-columns: repeat(2, 1fr); }
    .menu-card, .category-card { padding: 14px 14px; }
    .card-icon, .category-icon { width: 32px; height: 32px; margin-bottom: 6px; }
    .form-group { margin-bottom: 10px; }
    .form-group input, .form-group select, .form-group textarea { padding: 8px 12px; min-height: 40px; }
    .step-actions { margin-top: 10px; gap: 8px; }
    .btn-primary, .btn-secondary, .btn-danger { min-height: 40px; padding: 8px 16px; }
    .progress-bar-container { padding: 8px 16px; }
    .success-header { padding: 10px 12px 12px; margin-bottom: 10px; }
    .footer { padding: 8px 0; margin-top: 12px; }
    .modal-content, .custom-alert-content { padding: 14px; padding-top: 36px; }
    .toast-container { top: 64px; bottom: auto; }
}

/* ===== YAKINDA MODAL ===== */
.yakinda-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.yakinda-modal.aktif {
    display: flex;
}
.yakinda-modal-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 40px 32px 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    animation: yakindaModalGir 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes yakindaModalGir {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.yakinda-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.yakinda-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.yakinda-modal-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 14px;
}
.yakinda-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.3;
}
.yakinda-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 6px;
    line-height: 1.6;
}
.yakinda-modal-desc {
    font-size: 14px;
    color: #475569;
    margin: 0 0 20px;
    line-height: 1.6;
    font-weight: 500;
}
.yakinda-modal-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.yakinda-modal-social-label {
    font-size: 13px;
    color: #64748b;
}
.yakinda-modal-social-handle {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #d4608a);
    text-decoration: none;
    transition: opacity 0.15s;
}
.yakinda-modal-social-handle:hover {
    opacity: 0.75;
    text-decoration: underline;
}
/* ====== YAKINDA MODAL — KOPYALA BUTONU ====== */
.yakinda-modal-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 7px;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
    gap: 4px;
}
.yakinda-modal-copy-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.yakinda-modal-copy-btn.copied {
    color: #16a34a;
    border-color: #86efac;
    background: #f0fdf4;
}
.yakinda-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.yakinda-soru-gonder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

/* Kategori kartı "Yakında" etiketi */
.category-card.coming-soon {
    position: relative;
}
.category-card.coming-soon::after {
    content: 'Yakında';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary, #d4608a);
    background: rgba(212, 96, 138, 0.1);
    border: 1px solid rgba(212, 96, 138, 0.25);
    border-radius: 20px;
    padding: 2px 8px;
    letter-spacing: 0.3px;
    pointer-events: none;
}

@media (max-width: 480px) {
    .yakinda-modal-content {
        padding: 36px 20px 24px;
    }
    .yakinda-modal-title {
        font-size: 18px;
    }
}
/* ==================== CEVAP ANAHTARI BÖLÜMÜ (ADIM 2) ==================== */
.cevap-anahtari-section {
    margin-top: 24px;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}
.cevap-anahtari-toggle {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-gray);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: var(--transition);
}
.cevap-anahtari-toggle:hover { background: var(--bg-light); }
.ca-toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.75rem;
    color: var(--text-light);
}
.ca-toggle-arrow.open { transform: rotate(180deg); }
.cevap-anahtari-panel {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.cevap-kat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.cevap-kat-btn {
    padding: 7px 14px;
    border: 1.5px solid var(--border-medium);
    border-radius: 20px;
    background: var(--bg-gray);
    color: var(--text-medium);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.cevap-kat-btn:hover { background: var(--bg-light); border-color: var(--primary-light); }
.cevap-kat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.cevap-icerik {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}
.cevap-icerik-baslik {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cevap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}
.cevap-item {
    background: var(--bg);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
}
.cevap-item-no {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-bottom: 4px;
}
.cevap-item-harf {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

/* ==================== PDF CEVAP ANAHTARI SEÇENEĞİ (ADIM 5) ==================== */
.pdf-cevap-soru {
    background: var(--bg-gray);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pdf-cevap-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.90rem;
    color: var(--text);
}
.pdf-cevap-hint {
    font-size: 0.76rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 2px;
}
.pdf-cevap-butonlar { display: flex; gap: 8px; }
.pdf-cevap-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--border-medium);
    background: var(--bg);
    color: var(--text-medium);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.pdf-cevap-btn:hover { border-color: var(--primary-light); }
.pdf-cevap-btn.evet-active {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.pdf-cevap-btn.hayir-active {
    background: var(--error);
    border-color: var(--error);
    color: #fff;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
