/* ===== Atlantia Math Olympiad - Main Stylesheet ===== */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #f4b400;
    --secondary-dark: #c99400;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --success: #34a853;
    --danger: #ea4335;
    --warning: #fbbc04;
    --info: #4285f4;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #bdc1c6;
    --gray-500: #9aa0a6;
    --gray-600: #80868b;
    --gray-700: #5f6368;
    --gray-800: #3c4043;
    --gray-900: #202124;
    --white: #ffffff;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.04);
    --transition: all 0.3s ease;
    --hm-ink: #14213d;
    --hm-text: #46526e;
    --hm-muted: #6b7794;
    --hm-paper: #f5f7fd;
    --hm-grid: rgba(20,33,61,0.035);
    --hm-line: #cbd4ea;
    --hm-gold: #f4b400;
    --hm-mint: #0e9f6e;
    --hm-coral: #e5484d;
    --hm-display: 'Unbounded', var(--font);
    --sb-w: 268px;
    --sb-w-collapsed: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: 2px solid transparent;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition); text-align: center;
    justify-content: center; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #d32f2f; }
.btn-info { background: #17a2b8; color: var(--white); border-color: #17a2b8; }
.btn-info:hover { background: #138496; }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ===== Header ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(20,33,61,0.08);
    box-shadow: 0 1px 12px rgba(20,33,61,0.04);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--hm-ink); color: var(--hm-gold); box-shadow: none; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { line-height: 1.2; font-family: var(--hm-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); }
.logo-subtitle { font-size: 11px; font-weight: 500; color: var(--hm-muted); }

.main-nav ul { display: flex; align-items: center; list-style: none; gap: 4px; }
.nav-link { padding: 8px 16px; font-size: 14px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 6px; color: #3f4a63; font-weight: 500; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-btn { padding: 8px 20px !important; }

.user-menu { position: relative; }
.user-avatar-small { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 13px; font-weight: 700; flex-shrink: 0; overflow: hidden; border: 0; }
.dropdown-menu { position: absolute; top: 100%; right: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px 0; display: none; border: 1px solid var(--gray-200); }
.user-menu.open .dropdown-menu { display: block; }
.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { display: block; }
.has-dropdown .dropdown-menu { left: 0; right: auto; z-index: 1000; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--gray-700); font-size: 14px; }
.dropdown-menu a:hover { background: var(--gray-100); color: var(--primary); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: 4px 0; }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--hm-ink); }

/* ===== Language Selector ===== */
.lang-selector { position: relative; margin-left: 8px; }
.lang-selector-btn { background: none; padding: 6px 10px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-size: 14px; transition: var(--transition); border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; }
.current-flag { font-size: 20px; line-height: 1; }
.lang-selector-btn .fa-chevron-down { font-size: 10px; color: var(--gray-500); }
.lang-dropdown { position: absolute; top: 100%; right: 0; background: #fff; padding: 8px; min-width: 200px; max-height: 450px; overflow-y: auto; display: none; z-index: 1000; border: 1px solid rgba(20,33,61,0.08); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,33,61,0.12); }
.lang-dropdown.show { display: block; }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--gray-700); font-size: 13px; transition: var(--transition); }
.lang-option:hover { background: var(--gray-100); }
.lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.lang-flag { font-size: 20px; line-height: 1; display: inline-flex; flex-shrink: 0; }

/* ===== Alerts ===== */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm); margin: 16px auto;
    display: flex; align-items: center; gap: 10px; font-size: 14px;
    animation: slideDown 0.3s ease; position: relative; max-width: 1200px;
}
.alert-success { background: #e6f4ea; color: #1e7e34; border-left: 4px solid var(--success); }
.alert-danger { background: #fce8e6; color: #c5221f; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef7e0; color: #e37400; border-left: 4px solid var(--warning); }
.alert-info { background: var(--primary-light); color: var(--primary); border-left: 4px solid var(--primary); }
.alert-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; opacity: 0.5; }

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

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font);
    transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.form-group small { display: block; margin-top: 4px; font-size: 12px; color: var(--gray-500); }
.form-group input:disabled { background: var(--gray-100); cursor: not-allowed; }

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-link { font-size: 13px; color: var(--primary); }

.password-input { position: relative; }
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-500); }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }

.form-help { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; }

/* ===== Hero Section ===== */
.hero-section {
    color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden; min-height: 600px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(22,33,62,0.85) 100%); }

.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(255,255,255,0.1); border-radius: 24px; font-size: 13px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.hero-section h1 { font-size: 50px; font-weight: 800; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.5px; }
.text-gradient { background: linear-gradient(135deg, var(--secondary), #ff6b6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-section p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.7; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 32px; }
.btn-hero-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; transition: var(--transition); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); color: var(--white); }

.hero-trust { display: flex; align-items: center; gap: 12px; }
.hero-trust-avatars { display: flex; }
.trust-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--white); border: 2px solid rgba(26,26,46,0.8); margin-right: -10px; }
.hero-trust-text { font-size: 14px; color: rgba(255,255,255,0.7); margin-left: 10px; }

.hero-image { position: relative; }
.hero-photo-main { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); border: 4px solid rgba(255,255,255,0.15); box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.hero-cards-float { position: absolute; bottom: -20px; left: -30px; right: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero-card { background: rgba(255,255,255,0.12); backdrop-filter: blur(16px); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,0.2); transition: var(--transition); max-width: 300px; }
.hero-card:hover { background: rgba(255,255,255,0.2); transform: translateX(8px); }
.hero-card-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hero-card-icon.success { background: var(--success); }
.hero-card-icon.warning { background: var(--secondary); }
.hero-card h3 { font-size: 14px; margin-bottom: 2px; }
.hero-card p { font-size: 12px; color: rgba(255,255,255,0.7); margin: 0; }

.floating { animation: float 3s ease-in-out infinite; }
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Stats Section ===== */
.stats-section { padding: 0; background: var(--white); position: relative; z-index: 2; margin-top: -50px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.1); overflow: hidden; }
.stat-card { text-align: center; padding: 40px 20px; transition: var(--transition); position: relative; }
.stat-card:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--gray-200); }
.stat-card:hover { background: var(--primary-light); }
.stat-icon { font-size: 28px; color: var(--primary); margin-bottom: 12px; width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: inline-flex; align-items: center; justify-content: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--dark); }
.stat-label { font-size: 14px; color: var(--gray-600); margin-top: 4px; }

/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; padding: 6px 16px; background: var(--primary-light); color: var(--primary); border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

/* ===== Categories Section ===== */
.categories-section { padding: 100px 0 80px; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.category-card { background: var(--white); border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-200); overflow: hidden; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); border-color: var(--primary); }
.category-card.has-image { text-align: left; }
.category-card-img { position: relative; height: 200px; overflow: hidden; }
.category-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover .category-card-img img { transform: scale(1.08); }
.category-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%); display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px; }
.category-card-overlay i { font-size: 32px; color: var(--white); background: var(--primary); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(26,115,232,0.4); }
.category-card-body { padding: 28px; }
.category-icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.category-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.category-grade { color: var(--secondary-dark); font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.category-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; line-height: 1.6; }

/* ===== Exams Grid ===== */
.exams-preview-section, .exams-section { padding: 80px 0; }
.exams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.exam-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-200); }
.exam-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.exam-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.exam-category-badge { display: inline-block; padding: 4px 12px; background: var(--primary-light); color: var(--primary); border-radius: 20px; font-size: 12px; font-weight: 600; }
.exam-category-badge.small { font-size: 11px; padding: 2px 8px; }
.exam-grade { font-size: 12px; color: var(--gray-500); }
.exam-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.exam-desc { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }
.exam-meta { display: flex; gap: 16px; font-size: 13px; color: var(--gray-600); margin-bottom: 20px; flex-wrap: wrap; }
.exam-meta i { color: var(--primary); }
.exam-user-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--gray-200); margin-bottom: 16px; }
.exam-best-score .label { font-size: 12px; color: var(--gray-500); }
.exam-best-score .score { font-weight: 700; font-size: 16px; }
.exam-best-score .score.passed { color: var(--success); }
.exam-best-score .score.failed { color: var(--danger); }
.exam-attempts { font-size: 12px; color: var(--gray-500); }

/* ===== Photo Banner ===== */
.photo-banner { position: relative; height: 300px; overflow: hidden; }
.photo-banner img { width: 100%; height: 100%; object-fit: cover; }
.photo-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,26,46,0.85) 0%, rgba(26,115,232,0.6) 50%, transparent 100%); display: flex; align-items: center; }
.banner-text { color: var(--white); max-width: 500px; }
.banner-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.banner-text h2 i { margin-right: 10px; color: var(--secondary); }
.banner-text p { font-size: 16px; opacity: 0.9; line-height: 1.7; }

/* ===== Features Section ===== */
.features-section { padding: 80px 0; background: var(--white); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row-img img { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.feature-row-content { display: flex; flex-direction: column; gap: 24px; }
.feature-card-inline { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); transition: var(--transition); }
.feature-card-inline:hover { background: var(--gray-50); transform: translateX(6px); }
.feature-icon { font-size: 22px; color: var(--primary); width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-card-inline h3 { font-size: 17px; margin-bottom: 6px; color: var(--dark); font-weight: 700; }
.feature-card-inline p { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* ===== CTA Section ===== */
.cta-section { position: relative; padding: 100px 0; overflow: hidden; margin-top: 0; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,115,232,0.9) 0%, rgba(22,33,62,0.92) 100%); }
.cta-content { position: relative; z-index: 1; text-align: center; color: var(--white); max-width: 650px; margin: 0 auto; }
.cta-icon { font-size: 40px; margin-bottom: 20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.15); display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.cta-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; line-height: 1.7; }
.btn-cta { background: var(--white); color: var(--primary); border-color: var(--white); font-weight: 700; }
.btn-cta:hover { background: var(--secondary); color: var(--dark); border-color: var(--secondary); }

/* ===== Filter Bar ===== */
.filter-bar { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500; color: var(--gray-700); background: var(--white); border: 1px solid var(--gray-300); transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== Page Header ===== */
.page-header-section { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: var(--white); padding: 48px 0; }
.page-header-section h1 { font-size: 32px; margin-bottom: 8px; }
.page-header-section p { color: rgba(255,255,255,0.7); font-size: 16px; }

/* ===== Dashboard ===== */
.dashboard-section { padding: 40px 0; }
.dashboard-welcome { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dashboard-welcome h1 { font-size: 28px; color: var(--dark); }
.dashboard-welcome p { color: var(--gray-600); }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.dash-stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.dash-stat-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--white); }
.dash-stat-icon.blue { background: linear-gradient(135deg, var(--primary), #4285f4); }
.dash-stat-icon.green { background: linear-gradient(135deg, var(--success), #66bb6a); }
.dash-stat-icon.gold { background: linear-gradient(135deg, var(--secondary), #ffca28); }
.dash-stat-icon.purple { background: linear-gradient(135deg, #7c4dff, #b388ff); }
.dash-stat-info h3 { font-size: 28px; font-weight: 800; color: var(--dark); }
.dash-stat-info p { font-size: 13px; color: var(--gray-600); }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.dashboard-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.card-header h3 { font-size: 16px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.card-link { font-size: 13px; color: var(--primary); font-weight: 500; }
.card-body { padding: 24px; }

/* Performance */
.performance-item { margin-bottom: 20px; }
.performance-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.performance-name { font-weight: 600; font-size: 14px; }
.performance-score { font-weight: 700; color: var(--primary); font-size: 14px; }
.performance-detail { font-size: 12px; color: var(--gray-500); }

.progress-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-bar.large { height: 12px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 4px; transition: width 1s ease; }

/* Results List */
.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-item { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.result-info { flex: 1; }
.result-info h4 { font-size: 14px; margin-bottom: 4px; }
.result-meta { font-size: 12px; color: var(--gray-500); }
.result-score { font-size: 18px; font-weight: 800; padding: 4px 12px; border-radius: var(--radius-sm); }
.result-score.high { color: var(--success); background: #e6f4ea; }
.result-score.medium { color: var(--warning); background: #fef7e0; }
.result-score.low { color: var(--danger); background: #fce8e6; }

/* Points Circle */
.points-card { text-align: center; padding: 32px; }
.points-circle { position: relative; display: inline-block; }
.points-circle svg { width: 120px; height: 120px; }
.points-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); font-size: 28px; font-weight: 800; color: var(--dark); }
.points-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, 40%); font-size: 12px; color: var(--gray-500); }

/* Badges */
.badges-grid-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge-item { text-align: center; }
.badge-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 18px; margin: 0 auto 6px; }
.badge-item span { font-size: 11px; color: var(--gray-600); }

/* Quick Links */
.quick-links { display: flex; flex-direction: column; gap: 8px; }
.quick-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--gray-700); font-size: 14px; transition: var(--transition); }
.quick-link:hover { background: var(--primary-light); color: var(--primary); }
.quick-link i { width: 20px; text-align: center; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-500); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 8px; }
.empty-state.small { padding: 20px; }
.empty-state.small i { font-size: 32px; }

/* ===== Exam Start ===== */
.exam-start-section { padding: 40px 0; }
.exam-start-card { max-width: 700px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-lg); }
.exam-start-header { text-align: center; margin-bottom: 32px; }
.exam-start-icon { font-size: 48px; color: var(--primary); margin-bottom: 16px; }
.exam-start-header h1 { font-size: 28px; color: var(--dark); margin-bottom: 8px; }

.exam-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.exam-info-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--gray-50); border-radius: var(--radius-sm); }
.exam-info-item i { font-size: 24px; color: var(--primary); }
.exam-info-item strong { display: block; font-size: 16px; color: var(--dark); }
.exam-info-item span { font-size: 12px; color: var(--gray-500); }

.exam-rules { background: var(--primary-light); padding: 20px; border-radius: var(--radius-sm); margin-bottom: 32px; }
.exam-rules h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; }
.exam-rules ul { list-style: none; }
.exam-rules li { padding: 4px 0; font-size: 14px; color: var(--gray-700); }
.exam-rules li::before { content: "•"; color: var(--primary); margin-right: 8px; }
.exam-rules li.is-strict { color: var(--danger); font-weight: 700; }
.exam-rules li.is-strict::before { color: var(--danger); }

.language-selection { margin-bottom: 32px; }
.language-selection h3 { margin-bottom: 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.language-single-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); background: var(--gray-50); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.language-single-note i { color: var(--primary); }
.language-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.language-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.language-card { padding: 14px 16px; border: 2px solid var(--gray-300); border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; gap: 12px; transition: var(--transition); background: var(--white); }
.language-card:hover { border-color: var(--primary); }
.language-option input:checked + .language-card { border-color: var(--primary); background: var(--primary-light); }
.language-option input:focus-visible + .language-card { box-shadow: 0 0 0 3px rgba(26,115,232,.25); }
.lang-flag img { display: block; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.lang-name { font-size: 14.5px; font-weight: 600; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-check { margin-left: auto; color: var(--primary); font-size: 16px; opacity: 0; transform: scale(.6); transition: var(--transition); flex-shrink: 0; }
.language-option input:checked + .language-card .lang-check { opacity: 1; transform: scale(1); }
.language-option input:checked + .language-card .lang-name { color: var(--primary); }

.exam-start-btn { margin-top: 16px; font-size: 18px; padding: 16px; }

@media (max-width: 600px) {
    .exam-start-section { padding: 24px 0; }
    .exam-start-card { padding: 24px 18px; }
    .exam-start-header h1 { font-size: 22px; }
    .exam-start-icon { font-size: 40px; }
    .language-options { grid-template-columns: 1fr 1fr; }
    .language-card { padding: 12px 12px; gap: 10px; }
    .lang-name { font-size: 13.5px; }
}
@media (max-width: 360px) {
    .language-options { grid-template-columns: 1fr; }
}

/* ===== Exam Interface ===== */
/* ===== Sinav ekrani (public/exam-take.php) - sade: beyaz ust cubuk, ortada soru, genis secenekler ===== */
.exam-body { background: var(--hm-paper); }
.exam-interface { min-height: 100vh; display: flex; flex-direction: column; }

.exam-topbar { background: var(--white); border-bottom: 1px solid rgba(20,33,61,0.08); padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 12px rgba(20,33,61,0.05); }
.exam-topbar-left { display: flex; align-items: center; gap: 12px; }
.exam-topbar-left h2 { display: flex; align-items: center; gap: 8px; font-family: var(--hm-display); font-size: 16px; font-weight: 700; color: var(--hm-ink); }
.exam-topbar-left h2 i { color: var(--hm-muted); font-size: 14px; }
.exam-topbar .exam-category-badge { padding: 4px 12px; border-radius: 999px; background: var(--hm-paper); color: var(--hm-text); font-size: 13px; font-weight: 600; }
.exam-topbar-center { display: flex; align-items: center; gap: 10px; }
.exam-timer { display: flex; align-items: center; gap: 8px; padding: 6px 18px; border-radius: 999px; background: var(--hm-ink); color: var(--white); font-family: var(--hm-display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-timer i { font-size: 15px; color: var(--hm-gold); }
.exam-timer.warning { background: var(--hm-gold); color: var(--hm-ink); }
.exam-timer.warning i { color: var(--hm-ink); }
.exam-timer.danger { background: var(--hm-coral); color: var(--white); animation: pulse 1s infinite; }
.exam-timer.danger i { color: var(--white); }
.exam-integrity-status { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--white); color: var(--hm-text); font-size: 12.5px; font-weight: 600; }
.exam-integrity-status i { color: var(--hm-mint); }
.exam-integrity-status.has-warning { border-color: rgba(244,180,0,0.5); background: #fff4d1; color: #6b4f00; }
.exam-integrity-status.has-warning i { color: #b58500; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.exam-topbar-right { display: flex; align-items: center; gap: 14px; }
.exam-progress-text { font-size: 14px; color: var(--hm-text); }
.exam-topbar-right .btn { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--hm-coral); color: var(--white); font-weight: 600; }

/* Tuval (.pen-canvas) bu alanin tamamini kaplar: position relative */
.exam-layout { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); flex: 1; }

.exam-nav-panel { background: var(--white); padding: 20px 16px; border-right: 1px solid rgba(20,33,61,0.08); height: calc(100vh - 61px); overflow-y: auto; position: sticky; top: 61px; }
.exam-nav-panel h4 { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--hm-ink); }
.question-nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.q-nav-btn { width: 100%; aspect-ratio: 1; border: 1px solid rgba(20,33,61,0.15); border-radius: 12px; background: var(--white); color: var(--hm-ink); cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background-color 0.15s ease, border-color 0.15s ease; }
.q-nav-btn.answered { border-color: rgba(14,159,110,0.5); background: #e6f7f0; color: #0a7250; }
.q-nav-btn.current { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.nav-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--hm-text); }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 6px; vertical-align: middle; }
.legend-dot.current { background: var(--hm-ink); }
.legend-dot.answered { background: var(--hm-mint); }
.legend-dot.empty { background: rgba(20,33,61,0.15); }

.exam-question-area { width: 100%; max-width: none; padding: 36px 32px 120px; }
.question-slide { max-width: 860px; margin: 0 auto; }
.question-header { margin-bottom: 20px; }
.question-number { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--white); border: 1px solid rgba(20,33,61,0.1); color: var(--hm-ink); font-size: 14px; font-weight: 700; }
.question-text { margin-bottom: 24px; font-size: 18px; line-height: 1.75; color: var(--hm-ink); overflow-wrap: anywhere; }
.question-image { margin: 16px 0 24px; text-align: center; }
.question-image img { max-width: min(520px, 100%); border: 1px solid rgba(20,33,61,0.08); border-radius: 12px; background: var(--white); }

.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.option-item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 18px; border: 1.5px solid rgba(20,33,61,0.12); border-radius: 16px; background: var(--white); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.option-item.selected { border-color: var(--hm-ink); background: #eef2fb; box-shadow: 0 0 0 1px var(--hm-ink); }
.option-item input[type="radio"] { display: none; }
.option-letter { width: 38px; height: 38px; border-radius: 50%; background: var(--hm-paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--hm-text); flex-shrink: 0; }
.option-item.selected .option-letter { background: var(--hm-ink); color: var(--white); }
.option-text { flex: 1; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--hm-ink); overflow-wrap: anywhere; }
.option-image { max-height: 60px; max-width: 200px; vertical-align: middle; border-radius: 6px; }
.solution-option .option-image { max-height: 45px; max-width: 160px; }

.question-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(20,33,61,0.08); }
.question-actions .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 600; }
.question-actions .btn-primary { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.question-actions .btn-outline { border: 1px solid rgba(20,33,61,0.2); background: var(--white); color: var(--hm-ink); }
.question-actions .btn-success { border-color: var(--hm-mint); background: var(--hm-mint); color: var(--white); }

@media (hover: hover) {
    .option-item:hover { border-color: rgba(20,33,61,0.35); }
    .q-nav-btn:not(.current):hover { border-color: var(--hm-ink); }
    .question-actions .btn-primary:hover { background: #22325a; border-color: #22325a; color: var(--white); }
    .question-actions .btn-outline:hover { background: var(--hm-paper); color: var(--hm-ink); }
}

/* ----- Sinav: soru listesi cekmecesi (tablet/telefon) ----- */
.exam-nav-toggle { display: none; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 14px; border: 1px solid rgba(20,33,61,0.15); border-radius: 999px; background: var(--white); color: var(--hm-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.exam-nav-toggle i { color: var(--primary); }
.exam-nav-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(15,23,51,0.45); }
.exam-nav-backdrop[hidden] { display: none; }

/* ----- Sinav: kalem modu (assets/js/exam-pen.js) - ust cubuk haric tum alan ----- */
.pen-canvas { position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; touch-action: none; }
body.pen-active .pen-canvas { pointer-events: auto; cursor: crosshair; }
body.pen-active.pen-erasing .pen-canvas { cursor: cell; }
body.pen-active.pen-stylus .pen-canvas { touch-action: pan-y pinch-zoom; } /* kalem cizer, parmak kaydirir */
body.pen-active .exam-layout { box-shadow: inset 0 0 0 3px rgba(26,115,232,0.28); -webkit-user-select: none; user-select: none; }
body.pen-active .option-item { cursor: default; }
body.pen-active .option-item:hover { border-color: rgba(20,33,61,0.12); }
body.pen-active .option-item.selected:hover { border-color: var(--hm-ink); }

.pen-dock { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; align-items: flex-end; gap: 10px; }
.pen-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--primary); color: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px -12px rgba(26,115,232,0.7); }
.pen-toggle[aria-pressed="true"] { background: var(--hm-ink); box-shadow: 0 12px 28px -12px rgba(0,0,0,0.6); }
.pen-toggle:focus-visible, .pen-panel button:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 2px; }
/* Kalem paneli: yazili araclar, renk, kalinlik, secili aracin aciklamasi */
.pen-panel { display: grid; gap: 12px; width: min(440px, calc(100vw - 140px)); padding: 12px; border: 1px solid rgba(20,33,61,0.1); border-radius: 20px; background: var(--white); box-shadow: 0 18px 44px -18px rgba(22,33,62,0.45); }
.pen-panel[hidden] { display: none; }
.pen-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pen-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 6px 2px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; background: var(--white); color: var(--hm-ink); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; }
.pen-tool i { font-size: 17px; }
.pen-tool.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.pen-tool[data-tool="highlight"]:not(.is-active) i { color: #c9a800; }
.pen-tool.is-danger { color: #b4232a; }
.pen-tool:disabled { opacity: 0.4; cursor: default; }
.pen-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pen-group { display: flex; align-items: center; gap: 6px; }
.pen-group[hidden] { display: none; }
.pen-group-label { margin-inline-end: 2px; font-size: 13px; font-weight: 600; color: var(--hm-muted); }
.pen-swatch { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.pen-swatch::before { content: ''; width: 24px; height: 24px; border-radius: 50%; background: var(--swatch); }
.pen-swatch.is-active { border-color: var(--hm-ink); }
.pen-size { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; background: var(--white); cursor: pointer; }
.pen-size i { display: block; border-radius: 50%; background: var(--hm-ink); }
.pen-size.is-thin i { width: 4px; height: 4px; }
.pen-size.is-medium i { width: 8px; height: 8px; }
.pen-size.is-thick i { width: 13px; height: 13px; }
.pen-size.is-active { border-color: var(--hm-ink); background: #eef2fb; box-shadow: 0 0 0 1px var(--hm-ink); }
.pen-help { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--hm-paper); font-size: 13.5px; line-height: 1.45; color: var(--hm-text); }
.pen-help:empty { display: none; }
@media (hover: hover) {
    .pen-tool:not(.is-active):not(:disabled):hover, .pen-size:not(.is-active):hover { background: var(--hm-paper); }
}
.pen-hint { position: fixed; left: 50%; bottom: 92px; z-index: 160; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--hm-ink); color: var(--white); font-size: 14px; font-weight: 500; box-shadow: 0 12px 28px -12px rgba(0,0,0,0.5); }
.pen-hint[hidden] { display: none; }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-content { background: var(--white); border-radius: var(--radius-lg); max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-content.modal-lg { max-width: 700px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-500); }
.modal-body { padding: 24px; }
.modal-actions { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 12px; }
.exam-integrity-modal .modal-header { color: var(--danger); }
.exam-integrity-modal .modal-body > p { font-size: 15px; line-height: 1.65; color: var(--gray-700); }
.exam-integrity-modal-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fef7e0; }
.exam-integrity-modal-note i { margin-top: 4px; color: var(--warning); }

.finish-summary { margin-top: 16px; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }

/* ===== Result Page ===== */
.result-section { padding: 40px 0; }
.result-summary { display: flex; align-items: center; gap: 40px; background: var(--white); border-radius: var(--radius-lg); padding: 48px; margin-bottom: 32px; box-shadow: var(--shadow-lg); }
.result-summary.passed { border-left: 6px solid var(--success); }
.result-summary.failed { border-left: 6px solid var(--danger); }

.result-score-circle { flex-shrink: 0; position: relative; }
.result-score-circle svg { width: 150px; height: 150px; }
.score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.score-value { font-size: 36px; font-weight: 800; display: block; }
.score-unit { font-size: 14px; color: var(--gray-500); }

.result-info h1 { font-size: 28px; color: var(--dark); margin-bottom: 8px; }
.result-info h2 { font-size: 20px; color: var(--gray-700); margin-bottom: 12px; font-weight: 500; }
.result-status { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 700; }
.result-status.passed { background: #e6f4ea; color: var(--success); }
.result-status.failed { background: #fce8e6; color: var(--danger); }
.result-category { font-size: 14px; color: var(--gray-500); margin-top: 8px; }

.result-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.result-stat { display: flex; align-items: center; gap: 12px; background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.result-stat i { font-size: 24px; }
.result-stat.correct i { color: var(--success); }
.result-stat.wrong i { color: var(--danger); }
.result-stat.empty i { color: var(--gray-400); }
.result-stat.time i { color: var(--primary); }
.result-stat strong { font-size: 24px; display: block; color: var(--dark); }
.result-stat span { font-size: 12px; color: var(--gray-500); }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; justify-content: center; }

/* Solutions */
.solutions-section h2 { font-size: 24px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.solution-card { background: var(--white); border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); overflow: hidden; }
.solution-card.correct { border-left: 4px solid var(--success); }
.solution-card.wrong { border-left: 4px solid var(--danger); }
.solution-card.empty-answer { border-left: 4px solid var(--gray-400); }
.solution-header { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--gray-50); }
.solution-number { font-weight: 700; }
.solution-status { font-size: 14px; font-weight: 600; }
.solution-card.correct .solution-status { color: var(--success); }
.solution-card.wrong .solution-status { color: var(--danger); }
.solution-question { padding: 20px; font-size: 15px; line-height: 1.7; }
.solution-options { padding: 0 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.solution-option { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.solution-option.correct-answer { background: #e6f4ea; border-color: var(--success); }
.solution-option.wrong-answer { background: #fce8e6; border-color: var(--danger); }
.solution-option .option-letter { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.solution-option.correct-answer .option-letter { background: var(--success); color: var(--white); }
.solution-option.wrong-answer .option-letter { background: var(--danger); color: var(--white); }

.solution-explanation { padding: 20px; background: #fffef0; border-top: 1px solid var(--gray-200); }
.solution-explanation h4 { font-size: 14px; color: var(--secondary-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.solution-text { font-size: 14px; line-height: 1.7; color: var(--gray-700); }
.solution-question, .solution-text { overflow-wrap: anywhere; }
/* Ayri satirdaki (display) MathJax formulleri dar ekranda karti tasirmasin, yatay kaysin */
.solution-question mjx-container[display="true"], .solution-text mjx-container[display="true"] { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.solution-image { margin-top: 12px; }
.solution-image img { max-width: 100%; max-height: 400px; border-radius: 8px; border: 1px solid var(--gray-200); }

/* ===== Leaderboard ===== */
.leaderboard-section { padding: 40px 0; }
.top-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.top-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; text-align: center; box-shadow: var(--shadow-md); position: relative; transition: var(--transition); }
.top-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.top-card.rank-1 { border-top: 4px solid #FFD700; }
.top-card.rank-2 { border-top: 4px solid #C0C0C0; }
.top-card.rank-3 { border-top: 4px solid #CD7F32; }
.top-rank { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); }
.top-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; font-weight: 700; margin: 16px auto 12px; }
.top-stats { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--gray-600); margin-top: 12px; }
.top-medal { font-size: 24px; margin-top: 12px; }
.gold { color: #FFD700; }
.silver { color: #C0C0C0; }
.bronze { color: #CD7F32; }

.leaderboard-table table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.leaderboard-table th, .leaderboard-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.leaderboard-table th { background: var(--gray-50); font-size: 13px; color: var(--gray-600); font-weight: 600; text-transform: uppercase; }
.leaderboard-table tr.current-user { background: var(--primary-light); }
.rank-badge { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--white); }
.rank-badge.rank-1 { background: #FFD700; }
.rank-badge.rank-2 { background: #C0C0C0; }
.rank-badge.rank-3 { background: #CD7F32; }
.user-info { display: flex; align-items: center; gap: 10px; }
.avg-score { font-weight: 600; color: var(--primary); }

/* ===== Badges Page ===== */
.badges-section { padding: 40px 0; }
.badges-summary { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; box-shadow: var(--shadow); }
.badges-count { font-size: 16px; margin-bottom: 12px; }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.badge-card { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.badge-card.locked { opacity: 0.5; }
.badge-card.earned:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.badge-icon-large { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 28px; margin: 0 auto 12px; }
.badge-card h3 { font-size: 16px; margin-bottom: 6px; }
.badge-card p { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.badge-locked { font-size: 12px; color: var(--gray-500); }
.badge-earned { font-size: 12px; color: var(--success); font-weight: 600; }

/* ===== Results Table ===== */
.results-table table, .admin-table { width: 100%; border-collapse: collapse; }
.results-table th, .results-table td, .admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.results-table th, .admin-table th { background: var(--gray-50); font-size: 12px; color: var(--gray-600); font-weight: 600; text-transform: uppercase; }
.results-table tr:hover, .admin-table tr:hover { background: var(--gray-50); }
.admin-table tr.drag-over { border-top: 2px solid var(--primary); background: rgba(37,99,235,0.05); }
.drag-handle:hover { color: var(--gray-700) !important; }
.drag-handle:active { cursor: grabbing !important; }

.score-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 13px; }
.score-badge.passed { background: #e6f4ea; color: var(--success); }
.score-badge.failed { background: #fce8e6; color: var(--danger); }

.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-badge.success { background: #e6f4ea; color: var(--success); }
.status-badge.danger { background: #fce8e6; color: var(--danger); }
.status-badge.warning { background: #fef7e0; color: #e37400; }

.badge { display: inline-block; padding: 2px 10px; background: var(--gray-100); border-radius: 12px; font-size: 12px; color: var(--gray-700); }
.answer-badge { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--white); font-weight: 700; font-size: 13px; }

/* Sinav sonuclarim sayfa boslugu; grup/deneme stilleri dosya sonunda */

@media (max-width: 768px) {
    .results-section { padding: 20px 0 8px; }
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray-700); border: 1px solid var(--gray-300); transition: var(--transition); padding: 0 4px; }
.page-btn:hover:not(.disabled):not(.page-dots) { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); font-weight: 700; }
.page-btn.page-dots { border: none; cursor: default; font-weight: 700; letter-spacing: 2px; color: var(--gray-500); min-width: 28px; }
.page-btn.page-arrow { font-size: 12px; }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ===== Profile ===== */
.profile-section { padding: 40px 0; }
.profile-card { max-width: 700px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.profile-form hr { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.profile-form h3 { font-size: 16px; color: var(--gray-700); margin-bottom: 16px; }
/* Tek sutuna dusunce grid bosluğu + form-group margin'i ust uste binmesin */
.profile-form .form-row-2 { row-gap: 0; }
/* input (41px) ve select (43px) ayni satirda ayni yukseklikte dursun */
.profile-form .form-group > input, .profile-form .form-group > select, .profile-form .iti input.iti__tel-input { height: 44px; }

/* ===== Telefon alani (intl-tel-input) =====
   Not: intlTelInput.css bu dosyadan SONRA yuklenir; esit ozgullukte kutuphane kazanir, bu yuzden kurallar bir sinif fazladir.
   Degiskenler .iti'ye tanimli: mobilde body'ye eklenen tam ekran ulke listesi de (.iti--detached-country-selector) ayni temayi alir. */
.iti {
    --iti-border-color: var(--gray-200);
    --iti-hover-color: var(--gray-100);
    --iti-icon-color: var(--gray-600);
    --iti-border-width: 1.5px;          /* input kenarligi ile ayni: ulke butonu kenarligin icine oturur */
    --iti-spacer-horizontal: 12px;
    --iti-arrow-padding: 8px;
    --iti-mobile-popup-margin: 16px;
}
.phone-group .iti { display: block; width: 100%; font-size: 14px; }

/* Bayrak + alan kodu: numaradan ayrilmis gri bir bolme */
.phone-group .iti__selected-country {
    --iti-hover-color: transparent;     /* kutuphanenin sadece bayrak kismina verdigi hover yerine butunun hover'i */
    background: var(--gray-50); border-right: 1.5px solid var(--gray-200);
    border-radius: 6.5px 0 0 6.5px; padding-right: 12px; cursor: pointer; transition: background-color .2s ease;
}
.phone-group .iti__selected-country:hover,
.phone-group .iti__selected-country[aria-expanded="true"] { background: var(--gray-100); }
.phone-group .iti__selected-country:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.phone-group .iti__selected-dial-code { margin-left: 2px; color: var(--gray-800); font-weight: 600; }
.phone-group .iti:focus-within .iti__selected-country { border-right-color: var(--gray-300); }
.phone-group .iti:has(input.is-invalid) .iti__selected-country { border-right-color: rgba(234,67,53,0.35); }

/* Masaustu: input'un altinda acilan liste */
.phone-group .iti--inline-country-selector .iti__country-selector {
    overflow: hidden; margin-top: 4px;
    border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
/* :not(.iti__hide) — aksi halde display:flex kutuphanenin kapali liste icin verdigi display:none'i ezer */
.phone-group .iti--inline-country-selector .iti__country-selector:not(.iti__hide) { display: flex; flex-direction: column; }
.phone-group .iti--inline-country-selector .iti__country-list { flex: 1 1 auto; min-height: 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.phone-group .iti__country { padding: 9px 12px; font-size: 14px; }
/* .form-group input kurali ulke arama kutusuna da uyguluyor; kutuphanenin kendi gorunumunu geri ver (alt cizgi wrapper'da) */
.phone-group .iti input.iti__search-input { height: auto; border: 0; border-radius: 0; box-shadow: none; padding-top: 11px; padding-bottom: 11px; padding-left: calc(var(--iti-spacer-horizontal) * 2 + var(--iti-globe-icon-size)); padding-right: calc(var(--iti-spacer-horizontal) * 2 + var(--iti-clear-icon-size)); }

/* Ortak liste ogeleri (masaustu + mobil tam ekran) */
.iti .iti__dial-code { color: var(--gray-500); }
.iti .iti__country-check { color: var(--primary); }
.iti .iti__country.iti__highlight { background-color: var(--gray-100); }
.iti .iti__no-results { color: var(--gray-500); font-size: 14px; }

/* Mobil: body'ye eklenen tam ekran ulke listesi (sayfadaki .form-group stilleri buraya ulasmaz) */
.iti.iti--fullscreen-popup.iti--detached-country-selector {
    background: rgba(26,26,46,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
.iti.iti--fullscreen-popup .iti__country-selector { border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.iti.iti--fullscreen-popup .iti__search-input-wrapper { border-bottom: 1px solid var(--gray-200); }
.iti.iti--fullscreen-popup .iti__search-input {
    font-family: var(--font); font-size: 16px; /* 16px: iOS odaklaninca sayfayi yakinlastirmasin */
    color: var(--gray-800); background: transparent; border: 0; outline: none; appearance: none;
    padding-top: 14px; padding-bottom: 14px;
}
.iti.iti--fullscreen-popup .iti__search-input::placeholder { color: var(--gray-500); }
.iti.iti--fullscreen-popup .iti__country-list { overflow-y: auto; overscroll-behavior: contain; }
.iti.iti--fullscreen-popup .iti__country { padding: 11px 16px; font-size: 15px; line-height: 1.4; color: var(--gray-800); }

.phone-group input.is-invalid { border-color: #d93025 !important; }
.phone-group input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(234,67,53,0.12); }
.form-group small.field-error { color: var(--danger); font-weight: 500; }
.form-group small.field-error[hidden] { display: none; }

@media (max-width: 768px) {
    .profile-section { padding: 24px 0 8px; }
    .profile-card { padding: 24px 18px; }
    .profile-form .form-group { margin-bottom: 16px; }
    .profile-form hr { margin: 20px 0; }
    /* 16px: iOS Safari 16px'ten kucuk alanlara odaklaninca sayfayi yakinlastirir */
    .profile-form .form-group > input, .profile-form .form-group > select, .profile-form .iti input.iti__tel-input { font-size: 16px; }
    .phone-group .iti { font-size: 16px; }
    .profile-form button[type="submit"] { width: 100%; }
}

/* ===== Footer ===== */
.main-footer { background: var(--dark); padding: 60px 0 0; margin-top: 80px; padding-top: 64px; color: rgba(255,255,255,0.78); background-color: var(--hm-ink); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 28px 28px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: 16px; font-family: var(--hm-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 16px; }
.footer-secure-payment h4 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.footer-secure-payment > p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.payment-icons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pi-visa { color: #1a1f71; font-weight: 800; font-size: 20px; font-style: italic; letter-spacing: -1px; }
.pi-mc { display: flex; align-items: center; gap: 4px; color: #333; font-size: 13px; font-weight: 600; }
.pi-troy { color: #333; font-weight: 700; font-size: 16px; }
.pi-amex { background: #2e77bc; color: white; font-size: 9px; font-weight: 700; text-align: center; line-height: 1.2; padding: 6px 10px; border-radius: 4px; letter-spacing: 1px; }
.pi-secure span, .pi-ssl span { font-size: 13px; font-weight: 600; color: #333; line-height: 1.2; }
.pi-secure small, .pi-ssl small { font-size: 10px; font-weight: 400; color: #666; text-transform: uppercase; }
.footer-bottom { font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; text-align: start; border-top: 1px solid rgba(255,255,255,0.12); }

/* ===== ADMIN PANEL ===== */
.admin-body { background: var(--gray-100); }
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar.collapsed { width: var(--sb-w); overflow: hidden; }

.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 18px; }
.sidebar-logo i { font-size: 24px; color: var(--secondary); }

.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.sidebar-nav ul { list-style: none; padding: 12px 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: rgba(255,255,255,0.7); font-size: 14px; transition: var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.sidebar-nav a.active { border-right: 3px solid var(--secondary); }
.sidebar-nav a i { width: 20px; text-align: center; }
.nav-section { padding: 16px 20px 6px; font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.sidebar-footer-item { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer-item a { color: rgba(255,255,255,0.5) !important; font-size: 13px !important; }

.admin-main { flex: 1; margin-left: 260px; transition: var(--transition); min-width: 0; }
.admin-main.expanded { margin-left: 0; }

.admin-topbar { background: var(--white); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50; }
.sidebar-toggle { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-700); }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-name { font-size: 14px; color: var(--gray-600); display: flex; align-items: center; gap: 6px; }

.admin-content { padding: 24px; }
.admin-alert { margin: 0 24px 0; max-width: none; }

.admin-page-title { font-size: 24px; color: var(--dark); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-page-header .admin-page-title { margin-bottom: 0; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.admin-stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.admin-stat-card.blue { border-left: 4px solid var(--primary); }
.admin-stat-card.green { border-left: 4px solid var(--success); }
.admin-stat-card.orange { border-left: 4px solid var(--secondary); }
.admin-stat-card.purple { border-left: 4px solid #7c4dff; }
.admin-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--white); }
.admin-stat-card.blue .admin-stat-icon { background: var(--primary); }
.admin-stat-card.green .admin-stat-icon { background: var(--success); }
.admin-stat-card.orange .admin-stat-icon { background: var(--secondary); }
.admin-stat-card.purple .admin-stat-icon { background: #7c4dff; }
.admin-stat-info h3 { font-size: 28px; font-weight: 800; color: var(--dark); }
.admin-stat-info p { font-size: 13px; color: var(--gray-600); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--gray-200); }
.admin-card-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-card-body { padding: 20px; }

.admin-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-item { text-align: center; padding: 16px; background: var(--gray-50); border-radius: var(--radius-sm); }
.info-item span { font-size: 13px; color: var(--gray-600); display: block; margin-bottom: 4px; }
.info-item strong { font-size: 24px; color: var(--dark); }

/* Admin search */
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }

.filter-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-form select { width: auto; }
.filter-info { color: var(--gray-600); font-size: 14px; }

/* Lang tabs */
.lang-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); }
.lang-tab { padding: 10px 20px; background: none; border: none; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.lang-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.lang-tab-content { display: none; }
.lang-tab-content.active { display: block; }

/* Question list item (exam edit) */
.question-list-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.q-num { font-weight: 700; color: var(--primary); min-width: 40px; }
.q-text { flex: 1; color: var(--gray-700); }
.q-answer { font-weight: 700; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: 50%; color: var(--primary); font-size: 13px; }

.add-question-form { display: flex; gap: 8px; margin-top: 12px; }
.add-question-form select { flex: 1; }

/* ===== Import ===== */
.import-info { margin-bottom: 24px; }
.info-box { padding: 16px 20px; background: var(--primary-light); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.info-box h4 { color: var(--primary); margin-bottom: 8px; }
.info-box ul { list-style: none; }
.info-box li { padding: 3px 0; font-size: 14px; }
.info-box li::before { content: "•"; color: var(--primary); margin-right: 8px; }

.file-upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; }
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--primary); background: var(--primary-light); }
.file-upload-area.file-selected { border-color: #22c55e; background: #f0fdf4; border-style: solid; }
.file-upload-area.file-selected i.fa-cloud-upload-alt { color: #22c55e; }
.file-upload-area i { font-size: 48px; color: var(--gray-400); display: block; margin-bottom: 12px; }
.file-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.file-name { font-size: 15px; color: #16a34a; font-weight: 700; margin-top: 12px; display: none; position: relative; z-index: 1; padding: 8px 16px; background: #dcfce7; border-radius: 6px; }
.file-name.visible { display: inline-block; }

.language-checkboxes { display: flex; gap: 12px; flex-wrap: wrap; }
.checkbox-card { cursor: pointer; }
.checkbox-card input { display: none; }
.checkbox-card-content { padding: 12px 20px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.checkbox-card input:checked + .checkbox-card-content { border-color: var(--primary); background: var(--primary-light); }

.import-progress { margin-top: 32px; padding: 24px; background: var(--gray-50); border-radius: var(--radius); }
.import-progress h3 { margin-bottom: 16px; }
.import-log { margin-top: 16px; font-size: 14px; }
.import-log p { padding: 4px 0; }

.import-result { margin-top: 16px; padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.import-result.success { background: #e6f4ea; color: var(--success); }
.import-result.error { background: #fce8e6; color: var(--danger); }
.lang-select-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pdf-info { margin-bottom: 16px; }
.import-log, .import-result { overflow-wrap: anywhere; }
.retry-range { max-width: 400px; }

/* PDF Import: mobil */
@media (max-width: 768px) {
    .import-info { margin-bottom: 20px; }
    .import-info .info-box { padding: 14px 16px; }
    .import-info .info-box h4 { font-size: 15px; }
    .import-info .info-box li { display: flex; line-height: 1.5; font-size: 13px; }
    .file-upload-area { padding: 26px 16px; }
    .file-upload-area i { font-size: 38px; margin-bottom: 8px; }
    .file-upload-area p { font-size: 14px; }
    .file-upload-area .file-name { overflow-wrap: anywhere; }
    .lang-select-actions .btn { flex: 1; justify-content: center; }
    .language-checkboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .language-checkboxes .checkbox-card-content { padding: 10px 12px; font-size: 14px; min-width: 0; }
    .language-checkboxes .checkbox-card-content > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .language-checkboxes .lang-flag { flex-shrink: 0; display: flex; }
    .btn.import-submit { width: 100%; justify-content: center; }
    .import-progress { margin-top: 24px; padding: 16px; }
    .import-progress h3 { font-size: 16px; }
    .import-log { font-size: 13px; }
    .import-result { padding: 14px 16px; }
    .form-row-2.retry-range { grid-template-columns: 1fr 1fr; max-width: none; gap: 8px; }
    #retryButtons .btn { margin: 4px 4px 4px 0 !important; }
    #retrySection .admin-card-body { padding: 16px; }
}

/* Odeme Yonetimi (admin/payments.php) */
.status-badge.info { background: #e0f2fe; color: #0369a1; }
.pay-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.pay-stat { padding: 16px; text-align: center; min-width: 0; }
.pay-stat-value { font-size: 24px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.pay-stat-label { font-size: 11px; color: #6b7280; margin-top: 2px; }
.pay-stat-sub { font-size: 10px; color: #6b7280; margin-top: 2px; }
.pay-stat.is-success .pay-stat-value { color: #10b981; }
.pay-stat.is-danger .pay-stat-value { color: #ef4444; }
.pay-stat.is-warning .pay-stat-value { color: #f59e0b; }
.pay-stat.is-primary .pay-stat-value { color: var(--primary); }
.pay-stat.is-purple .pay-stat-value { color: #8b5cf6; }
.pay-stat.is-cyan .pay-stat-value { color: #06b6d4; }
.pay-filter-card { margin-bottom: 20px; }
.pay-filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pay-filter .form-group { margin: 0; }
.pay-filter .form-group label { font-size: 12px; margin-bottom: 2px; }
.pay-filter .form-group select, .pay-filter .form-group input { padding: 8px 10px; font-size: 13px; }
.pay-filter-status { min-width: 140px; }
.pay-filter-search { flex: 1; min-width: 180px; }
.pay-filter-actions { display: flex; gap: 8px; }
.pay-filter-actions .btn { padding: 8px 16px; font-size: 13px; }
.pay-table .pay-email { color: #6b7280; }
.pay-table .pay-mono { font-family: monospace; font-size: 12px; }
.pay-table .pay-mono.pay-txn { font-size: 11px; }
.pay-table td.pay-amount, .pay-table td.pay-date { white-space: nowrap; }
.pay-3d-on { color: #10b981; }
.pay-3d-off { color: #d1d5db; }
.pay-action-label { display: none; }
.pay-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.pay-detail-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.pay-detail-table td { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: top; overflow-wrap: anywhere; }
.pay-detail-table td.pay-detail-label { width: 140px; color: #6b7280; }
.pay-detail-table summary { cursor: pointer; color: #6b7280; font-size: 12px; }
.pay-detail-table pre { margin-top: 8px; padding: 8px; max-height: 200px; overflow: auto; font-size: 11px; white-space: pre-wrap; background: #f9fafb; border-radius: 4px; }
@media (max-width: 1024px) {
    .pay-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pay-stats { gap: 8px; margin-bottom: 16px; }
    .pay-stat { padding: 12px 6px; }
    .pay-stat-value { font-size: 18px; }
    .pay-filter-card > .admin-card-body { padding: 14px; }
    .pay-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pay-filter-status, .pay-filter-search, .pay-filter-actions { grid-column: 1 / -1; }
    .pay-filter-status, .pay-filter-search { min-width: 0; }
    .pay-filter .form-group input[type="date"] { width: 100%; min-width: 0; }
    .pay-filter-actions .btn { flex: 1; justify-content: center; padding: 10px 12px; }
    /* Her odeme bir kart: ogrenci ustte, bilgiler 2 sutun, detay butonu altta */
    .pay-list-card > .admin-card-body { padding: 12px; }
    .pay-table.responsive-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding: 14px 12px; }
    .pay-table.responsive-table td { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-width: 0; padding: 7px 0; border-bottom: 0; text-align: left; font-size: 13px; overflow-wrap: anywhere; }
    .pay-table.responsive-table td::before { font-size: 11px; }
    .pay-table.responsive-table td br { display: none; }
    .pay-table.responsive-table td.pay-student { order: -1; grid-column: 1 / -1; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--gray-100); }
    .pay-table.responsive-table td.pay-student::before { content: none; }
    .pay-table.responsive-table td.pay-student strong { font-size: 15px; }
    .pay-table.responsive-table td.pay-action { grid-column: 1 / -1; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--gray-100); }
    .pay-table.responsive-table td.pay-action .btn { width: 100%; justify-content: center; padding: 9px; }
    .pay-action-label { display: inline; }
    .pay-detail-modal { width: 94%; }
    .pay-detail-modal .modal-header { padding: 14px 16px; }
    .pay-detail-modal .modal-body { padding: 8px 12px; }
    .pay-detail-modal .modal-actions { padding: 12px 16px; }
    .pay-detail-modal .modal-actions .btn { flex: 1; justify-content: center; }
    .pay-detail-table { font-size: 13px; }
    .pay-detail-table td { padding: 8px 6px; }
    .pay-detail-table td.pay-detail-label { width: 92px; }
}

/* Sinav Sonuclari (admin/results.php): arama/avatar/sayfalama icin .stu-* siniflari kullanilir */
.rsl-person-text { display: flex; flex-direction: column; min-width: 0; }
.rsl-email { font-size: 12px; color: var(--gray-500); }
.rsl-dyb-list { display: inline-flex; gap: 10px; }
.rsl-dyb-item { display: inline-flex; align-items: baseline; gap: 3px; }
.rsl-dyb-item b { font-size: 14px; }
.rsl-dyb-item small { font-size: 11px; color: var(--gray-500); }
.rsl-dyb-item .rsl-long { display: none; }
.rsl-dyb-item.is-correct b { color: var(--success); }
.rsl-dyb-item.is-wrong b { color: var(--danger); }
.rsl-dyb-item.is-empty b { color: var(--gray-500); }
.rsl-table td.rsl-dyb, .rsl-table td.rsl-duration, .rsl-table td.rsl-date { white-space: nowrap; }
@media (max-width: 768px) {
    /* Sutun boslugu 0: satir ayraclari yan yana hucrelerde kesintisiz gorunsun */
    .rsl-table.responsive-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; padding: 14px 12px; margin-bottom: 10px; }
    .rsl-table.responsive-table td { min-width: 0; padding: 0; border-bottom: 0; font-size: 13px; white-space: normal; }
    .rsl-table.responsive-table td.rsl-student::before,
    .rsl-table.responsive-table td.rsl-score::before,
    .rsl-table.responsive-table td.rsl-cat::before,
    .rsl-table.responsive-table td.rsl-dyb::before { content: none; }

    /* 1. satir: ogrenci (avatar, ad, email) + puan */
    .rsl-table.responsive-table td.rsl-student { grid-column: 1 / 4; grid-row: 1; justify-content: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); text-align: left; }
    .rsl-table.responsive-table td.rsl-score { grid-column: 4; grid-row: 1; justify-content: flex-end; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); }
    .rsl-table .stu-avatar { width: 32px; height: 32px; }
    .rsl-table .rsl-person-text strong { font-size: 15px; overflow-wrap: anywhere; }
    .rsl-table .rsl-email { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

    /* 2. satir: sinav + kategori */
    .rsl-table.responsive-table td.rsl-exam { grid-column: 1 / 3; grid-row: 2; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; padding-right: 8px; text-align: left; font-weight: 600; color: var(--dark); overflow-wrap: anywhere; }
    .rsl-table.responsive-table td.rsl-exam::before { font-size: 10px; }
    .rsl-table.responsive-table td.rsl-cat { grid-column: 3 / -1; grid-row: 2; align-items: flex-end; justify-content: flex-end; margin-top: 10px; }

    /* 3. satir: dogru / yanlis / bos kutulari */
    .rsl-table.responsive-table td.rsl-dyb { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
    .rsl-dyb-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
    .rsl-dyb-item { flex-direction: column; align-items: center; gap: 0; padding: 6px 4px; background: var(--gray-50); border-radius: 8px; }
    .rsl-dyb-item b { font-size: 16px; }
    .rsl-dyb-item .rsl-short { display: none; }
    .rsl-dyb-item .rsl-long { display: inline; }

    /* 4. satir: tarih + sure */
    .rsl-table.responsive-table td.rsl-date { grid-column: 1 / 3; grid-row: 4; justify-content: flex-start; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--gray-500); }
    .rsl-table.responsive-table td.rsl-duration { grid-column: 3 / -1; grid-row: 4; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--gray-500); }
    .rsl-table.responsive-table td.rsl-date::before,
    .rsl-table.responsive-table td.rsl-duration::before { content: attr(data-label) ":"; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
}

/* Ogrenciler (admin/users.php): arama, bas harf avatari, mobilde kompakt ogrenci kartlari */
.stu-search input { min-width: 0; padding: 10px 14px; font-family: inherit; font-size: 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); }
.stu-search input:focus { outline: none; border-color: var(--primary); }
.stu-person { display: inline-flex; align-items: center; gap: 10px; }
.stu-avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-light); border-radius: 50%; }
.stu-table td.stu-stat, .stu-table td.stu-date { white-space: nowrap; }
@media (max-width: 768px) {
    .stu-search-card { margin-bottom: 16px; }
    .stu-search-card > .admin-card-body { padding: 12px; }
    .stu-search .btn { padding: 10px 14px; }
    .stu-list-card > .admin-card-body { padding: 10px; }

    .stu-table.responsive-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 8px; padding: 14px 12px; margin-bottom: 10px; }
    .stu-table.responsive-table td { min-width: 0; padding: 0; border-bottom: 0; font-size: 13px; white-space: normal; }
    .stu-table.responsive-table td.stu-name::before,
    .stu-table.responsive-table td.stu-email::before,
    .stu-table.responsive-table td.stu-status::before { content: none; }

    /* 1-2. satir: avatar + ad, durum; altinda email */
    .stu-table.responsive-table td.stu-name { grid-column: 1 / 4; grid-row: 1; justify-content: flex-start; }
    .stu-table.responsive-table td.stu-status { grid-column: 4; grid-row: 1; justify-content: flex-end; }
    .stu-table .stu-avatar { width: 32px; height: 32px; }
    .stu-table .stu-person strong { font-size: 15px; overflow-wrap: anywhere; }
    /* Ayrac email satirinin altinda: tam genislik oldugu icin cizgi kesintisiz */
    .stu-table.responsive-table td.stu-email { display: block; grid-column: 1 / -1; grid-row: 2; overflow: hidden; padding: 0 0 10px 42px; border-bottom: 1px solid var(--gray-100); text-align: left; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--gray-500); }

    /* 3. satir: sinif, sehir, sinav, puan */
    .stu-table.responsive-table td.stu-stat { grid-row: 3; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; margin-top: 10px; text-align: left; font-weight: 600; color: var(--dark); overflow-wrap: anywhere; }
    .stu-table.responsive-table td.stu-stat::before { font-size: 10px; letter-spacing: .2px; }

    /* 4. satir: kayit tarihi, #id */
    .stu-table.responsive-table td.stu-date { grid-column: 1 / 3; grid-row: 4; justify-content: flex-start; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--gray-500); }
    .stu-table.responsive-table td.stu-date::before { content: "Kayıt:"; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
    .stu-table.responsive-table td.stu-id { grid-column: 3 / -1; grid-row: 4; justify-content: flex-end; gap: 1px; margin-top: 10px; font-size: 12px; color: var(--gray-500); }
    .stu-table.responsive-table td.stu-id::before { content: "#"; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }

    .stu-list-card .pagination { gap: 4px; margin-top: 12px; }
    .stu-list-card .page-btn { min-width: 36px; height: 36px; }
}

/* Soru Yonetimi (admin/questions.php): mobilde kompakt soru kartlari */
/* Islem butonlari yazili (ikonsuz): masaustunde alt alta, esit genislikte */
.q-table td.q-actions .btn { display: flex; justify-content: center; width: 100%; padding: 5px 8px; font-weight: 600; white-space: nowrap; }
.q-table td.question-preview { max-width: 260px; } /* yazili butonlar icin yer: tablo kart disina tasmasin */
.q-table td.q-actions .btn + .btn { margin-top: 4px; }
@media (max-width: 768px) {
    .q-table td.q-actions .btn + .btn { margin-top: 0; }
    .q-page-header .admin-page-actions { width: 100%; }
    .q-page-header .admin-page-actions .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 14px; }
    .q-filter-card { margin-bottom: 16px; }
    .q-filter-card > .admin-card-body { padding: 12px 14px; }
    .q-filter-card .filter-info { font-size: 12px; white-space: nowrap; }
    .q-tabs.q-tabs-compact .btn { gap: 5px; padding: 9px 4px; font-size: 12px; }
    .q-list-card > .admin-card-body { padding: 10px; }

    .q-table.responsive-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; padding: 12px; margin-bottom: 10px; }
    .q-table.responsive-table td { min-width: 0; padding: 0; border-bottom: 0; font-size: 12px; }
    .q-table.responsive-table td::before { font-size: 10px; letter-spacing: .2px; }
    .q-table.responsive-table td.q-check::before,
    .q-table.responsive-table td.q-status::before,
    .q-table.responsive-table td.q-cat::before,
    .q-table.responsive-table td.q-exam::before,
    .q-table.responsive-table td.q-actions::before,
    .q-table.responsive-table td.question-preview::before { content: none; }
    .q-table .q-checkbox { width: 18px; height: 18px; }

    /* 1. satir: secim, #id, cevap, durum */
    .q-table.responsive-table td.q-check { grid-column: 1; grid-row: 1; }
    .q-table.responsive-table td.q-id { grid-column: 2; grid-row: 1; justify-content: flex-start; gap: 1px; font-weight: 600; color: var(--gray-500); }
    .q-table.responsive-table td.q-id::before { content: "#"; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
    .q-table.responsive-table td.q-answer-cell { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 5px; }
    .q-table.responsive-table td.q-status { grid-column: 4; grid-row: 1; }

    /* 2. satir: soru metni (en fazla 3 satir) */
    .q-table.responsive-table td.question-preview { grid-column: 1 / -1; grid-row: 2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 10px 0 6px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--dark); }

    /* 3. satir: konu (tek satir) */
    .q-table.responsive-table td.q-topic { display: block; grid-column: 1 / -1; grid-row: 3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; color: var(--gray-600); }
    .q-table.responsive-table td.q-topic::before { content: attr(data-label) ": "; margin-right: 2px; font-size: 11px; text-transform: none; letter-spacing: 0; }

    /* 4. satir: kategori + sinav */
    .q-table.responsive-table td.q-cat { grid-column: 1 / 3; grid-row: 4; justify-content: flex-start; margin-top: 8px; }
    .q-table.responsive-table td.q-exam { grid-column: 3 / -1; grid-row: 4; justify-content: flex-end; margin-top: 8px; }

    /* 5. satir: islemler */
    .q-table.responsive-table td.q-actions { grid-column: 1 / -1; grid-row: 5; flex-wrap: nowrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gray-100); }
    .q-table.responsive-table td.q-actions .btn { flex: 1; width: auto; min-width: 0; padding: 9px 6px; font-size: 13px; }
    .q-table .badge, .q-table .status-badge { font-size: 11px; }
    .q-table .answer-badge { width: 24px; height: 24px; font-size: 12px; }
}

/* Dashboard (admin/index.php): mobilde kompakt istatistikler ve tablo yerine sade liste */
.dash-summary-card { margin-top: 24px; }
@media (max-width: 768px) {
    .dash-summary-card { margin-top: 16px; }
    .dash-title { font-size: 20px; margin-bottom: 16px; }
    .admin-stats-grid.dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
    .dash-stats .admin-stat-card { gap: 10px; min-width: 0; padding: 12px; }
    .dash-stats .admin-stat-icon { flex-shrink: 0; width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
    .dash-stats .admin-stat-info { min-width: 0; }
    .dash-stats .admin-stat-info h3 { font-size: 20px; line-height: 1.2; }
    .dash-stats .admin-stat-info p { font-size: 11px; line-height: 1.3; }
    .dash-card .admin-card-header { padding: 12px 14px; }
    .dash-card .admin-card-header h3 { font-size: 14px; }
    .dash-card > .admin-card-body { padding: 4px 14px; }
    .admin-table.dash-table thead { display: none; }
    .admin-table.dash-table, .admin-table.dash-table tbody { display: block; width: 100%; }
    .admin-table.dash-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
    .admin-table.dash-table tr:last-child { border-bottom: 0; }
    .admin-table.dash-table td { display: block; min-width: 0; padding: 0; border: 0; font-size: 13px; }
    .admin-table.dash-table td.dash-name { grid-column: 1; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--dark); }
    .admin-table.dash-table td.dash-email,
    .admin-table.dash-table td.dash-exam { grid-column: 1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--gray-500); }
    .admin-table.dash-users td.dash-date { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; font-size: 12px; color: var(--gray-500); }
    .admin-table.dash-results td.dash-score { grid-column: 2; grid-row: 1; justify-self: end; }
    .admin-table.dash-results td.dash-date { grid-column: 2; grid-row: 2; justify-self: end; white-space: nowrap; font-size: 11px; color: var(--gray-500); }
    .dash-table .score-badge { padding: 2px 8px; font-size: 12px; }
    .dash-info { gap: 8px; }
    .dash-info .info-item { padding: 10px 6px; }
    .dash-info .info-item span { font-size: 11px; }
    .dash-info .info-item strong { font-size: 18px; }
}

/* Import Loglari (admin/import-logs.php) */
.il-table td.il-date { white-space: nowrap; }
.il-table td.il-file { overflow-wrap: anywhere; }
.il-table td.il-langs { max-width: 180px; overflow-wrap: anywhere; }
.il-file i { margin-right: 4px; color: #e74c3c; }
.il-error summary { cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; list-style: none; }
.il-error summary::-webkit-details-marker { display: none; }
.il-error[open] summary { margin-bottom: 6px; }
.il-error-text { max-width: 360px; max-height: 200px; overflow: auto; padding: 8px 10px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--gray-700); background: #fef2f2; border-radius: 6px; }
.il-list-card .card-link i { margin-left: 2px; font-size: 11px; }
.il-pagination .btn { min-width: 34px; justify-content: center; }
.il-page-gap { align-self: center; padding: 0 2px; color: var(--gray-500); }
.il-page-info { margin-top: 8px; text-align: center; font-size: 12px; color: var(--gray-500); }
.btn-excel { background: #1d6f42; color: var(--white); border-color: #1d6f42; }
.btn-excel:hover { background: #185c37; color: var(--white); border-color: #185c37; }
.il-filter-hint { margin-top: 10px; font-size: 12px; color: var(--gray-500); }
.il-range { font-size: 12px; font-weight: 500; color: var(--gray-500); }
@media (max-width: 768px) {
    .il-filter-card .pay-filter-actions { flex-wrap: wrap; }
    .il-filter-card .pay-filter-actions .btn-excel { order: -1; flex-basis: 100%; }
    .il-list-card .admin-card-header h3 { flex-wrap: wrap; }
}
@media (max-width: 768px) {
    /* Her log bir kart: dosya adi ustte, bilgiler 2 sutun, hata tam genislik */
    .il-list-card > .admin-card-body { padding: 12px; }
    .il-table.responsive-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding: 14px 12px; }
    .il-table.responsive-table td { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-width: 0; max-width: none; padding: 7px 0; border-bottom: 0; text-align: left; font-size: 13px; overflow-wrap: anywhere; }
    .il-table.responsive-table td::before { font-size: 11px; }
    .il-table.responsive-table td.il-file { display: block; order: -1; grid-column: 1 / -1; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--gray-100); font-size: 15px; font-weight: 600; color: var(--dark); }
    .il-table.responsive-table td.il-file::before { content: none; }
    .il-table.responsive-table td.il-error-cell { grid-column: 1 / -1; }
    .il-error { width: 100%; }
    .il-error-text { max-width: none; }
}

/* Admin Kullanicilar (admin/admin-users.php) */
.role-badge { color: #fff; white-space: nowrap; }
.role-badge.role-super_admin { background: #7c3aed; }
.role-badge.role-admin { background: #2563eb; }
.role-badge.role-editor { background: #059669; }
.role-badge.role-support { background: #d97706; }
.au-table td { white-space: nowrap; }
.au-table td.au-name, .au-table td.au-email { white-space: normal; }
.au-perm-all { color: #7c3aed; }
.au-muted { opacity: .5; }
.au-action-btns { display: flex; gap: 6px; }
.au-btn-label { display: none; }
@media (max-width: 768px) {
    /* Her admin bir kart: ad + email ustte, bilgiler 2 sutun, islemler altta */
    .au-list-card > .admin-card-body { padding: 12px; }
    .au-table.responsive-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding: 14px 12px; }
    .au-table.responsive-table td { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-width: 0; padding: 7px 0; border-bottom: 0; text-align: left; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
    .au-table.responsive-table td::before { font-size: 11px; }
    .au-table.responsive-table td.au-name,
    .au-table.responsive-table td.au-email { order: -1; grid-column: 1 / -1; }
    .au-table.responsive-table td.au-name::before,
    .au-table.responsive-table td.au-email::before { content: none; }
    .au-table.responsive-table td.au-name { padding: 0; font-size: 15px; }
    .au-table.responsive-table td.au-email { padding: 2px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--gray-100); color: var(--gray-500); }
    .au-table.responsive-table td.au-actions { grid-column: 1 / -1; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--gray-100); }
    .au-action-btns { width: 100%; gap: 8px; }
    .au-action-btns .btn { flex: 1; min-width: 0; justify-content: center; padding: 9px 8px; }
    .au-btn-label { display: inline; }
}

/* POS Ayarlari (admin/pos-settings.php): istatistik ve son odemeler icin odeme sayfasinin siniflari kullanilir */
.pos-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.pos-stats .pay-stat { padding: 20px; }
.pos-stats .pay-stat-value { font-size: 28px; }
.pos-stats .pay-stat-label { font-size: 13px; }
.pos-card-gap { margin-top: 20px; }
.pos-note { margin-bottom: 16px; padding: 12px 16px; border-radius: 8px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.pos-note.is-info { background: var(--primary-light); color: var(--primary); border-left: 4px solid var(--primary); }
.pos-note.is-warning { background: #fef7e0; color: #b45309; border-left: 4px solid var(--warning); }
.pos-note.is-danger { background: #fce8e6; color: #c5221f; border-left: 4px solid var(--danger); }
.pos-note.is-rate { background: #f0f9ff; color: var(--gray-700); }
.pos-note.is-success { margin-bottom: 20px; background: #ecfdf5; color: #065f46; }
.pos-note small { color: #6b7280; }
.pos-note code { padding: 1px 6px; background: rgba(255,255,255,.75); border-radius: 4px; }
.form-group input.pos-mono { font-family: monospace; }
.pos-help { display: block; margin-top: 4px; color: #6b7280; font-size: 12px; }
.pos-checks { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 20px; }
.pos-section-title { margin: 20px 0 12px; }
.pos-markup-field { max-width: 300px; }
.pos-info { font-size: 13px; color: #6b7280; }
.pos-info p { overflow-wrap: anywhere; }
.pos-info hr { margin: 10px 0; }
@media (max-width: 768px) {
    .pos-stats { gap: 8px; margin-bottom: 16px; }
    .pos-stats .pay-stat { padding: 12px 6px; }
    .pos-stats .pay-stat-value { font-size: 17px; }
    .pos-stats .pay-stat-label { font-size: 11px; }
    .pos-settings-card > .admin-card-header h3 { font-size: 15px; }
    .pos-markup-field { max-width: none; }
    .btn.pos-submit { width: 100%; justify-content: center; }
    .pos-info p { margin-bottom: 8px; }
    .pos-info p strong { display: block; color: var(--gray-700); }
}

/* Olimpiyat Yonetimi (admin/olympiads.php): liste .tpl-* kalibini kullanir */
.olymp-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.olymp-form-card { position: sticky; top: 82px; scroll-margin-top: 72px; }
.olymp-count { flex-shrink: 0; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--gray-600); background: var(--gray-100); padding: 2px 10px; border-radius: 12px; }
.tpl-icon.olymp-icon { font-size: 18px; color: var(--olymp-color, var(--primary)); background: color-mix(in srgb, var(--olymp-color, var(--primary)) 12%, #fff); }
.olymp-list .tpl-meta { gap: 14px; }
.olymp-list .tpl-meta i { margin-right: 2px; opacity: .75; }
.olymp-list .tpl-actions { align-items: center; gap: 10px; }
.olymp-list .tpl-item.is-inactive .tpl-info, .olymp-list .tpl-item.is-inactive .olymp-icon { opacity: .55; }
.olymp-style-row { display: flex; align-items: center; gap: 10px; }
.olymp-style-row .olymp-icon { width: 42px; height: 42px; }
.olymp-style-row select { flex: 1; min-width: 0; }
.olymp-style-row input[type="color"] { width: 50px; height: 42px; padding: 3px; flex-shrink: 0; cursor: pointer; }
.olymp-form-actions { display: flex; gap: 10px; }
@media (max-width: 1024px) {
    .olymp-layout { grid-template-columns: 1fr; }
    .olymp-form-card { position: static; }
}
@media (max-width: 768px) {
    .olymp-layout { gap: 16px; }
    .olymp-list .tpl-item { gap: 10px 12px; }
    .olymp-list .tpl-actions { justify-content: space-between; padding-left: 52px; }
    .olymp-list .tpl-actions > .btn { flex: 0 0 auto; padding: 7px 14px; }
    .olymp-form-actions .btn { flex: 1; justify-content: center; }
}

/* Kategori Yonetimi (admin/categories.php): olimpiyat sayfasinin siniflarini kullanir, olimpiyata gore gruplu */
.cat-group + .cat-group { margin-top: 22px; }
.cat-group-title { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; font-size: 13px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid var(--gray-200); }
.cat-group-title i { color: var(--olymp-color, var(--primary)); }
.cat-group-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: none; letter-spacing: 0; }
@media (max-width: 768px) {
    .cat-list .tpl-actions { width: auto; padding-left: 0; }
    .cat-list .tpl-actions > .btn { padding: 8px 12px; }
    .cat-list .tpl-actions > .btn span { display: none; }
}

/* Sinav Yonetimi (admin/exams.php): modern kart listesi, ikonsuz yazili butonlar */
.ax-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.ax-summary-item { padding: 16px 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.ax-summary-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--gray-500); }
.ax-summary-item strong { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--dark); }
.ax-summary-item.is-success strong { color: var(--success); }
.ax-sort-hint { font-size: 12px; color: var(--gray-500); }
.ax-filters { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, .7fr)) auto; gap: 10px; align-items: center; margin-bottom: 24px; }
.ax-filters input, .ax-filters select { width: 100%; min-height: 42px; margin: 0; }
.ax-search-wrap { position: relative; }
.ax-search-wrap i { position: absolute; top: 50%; left: 13px; z-index: 1; color: var(--gray-400); transform: translateY(-50%); }
.ax-search-wrap input { padding-left: 38px; }
.ax-filter-count { padding-left: 6px; font-size: 13px; font-weight: 700; color: var(--gray-600); white-space: nowrap; }
.ax-olympiad-group + .ax-olympiad-group { margin-top: 28px; }
.ax-group-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.ax-group-title i { color: #b7791f; }
.ax-group-title h4 { margin: 0; font-size: 17px; color: var(--dark); }
.ax-group-title span { margin-left: auto; font-size: 12px; color: var(--gray-500); }
.ax-category-group + .ax-category-group { margin-top: 18px; }
.ax-category-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--gray-700); }
.ax-category-title::before { content: ""; width: 3px; height: 18px; background: var(--primary); border-radius: 2px; }
.ax-category-title small { font-weight: 500; color: var(--gray-400); }
.ax-filter-empty { padding: 32px 16px; }
.ax-filter-empty[hidden], .ax-olympiad-group[hidden], .ax-category-group[hidden], .ax-item[hidden] { display: none !important; }

.ax-list { display: flex; flex-direction: column; gap: 12px; }
.ax-item { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 16px 20px 16px 12px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.ax-item:hover { border-color: var(--gray-300); box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.ax-item.is-inactive { background: var(--gray-50); }
.ax-item.is-inactive .ax-main { opacity: .65; }
.ax-item.drag-over { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, .15); }
/* Surukleme tutamaci: ikon yerine nokta deseni */
.ax-drag { width: 14px; height: 28px; cursor: grab; opacity: .55; background-image: radial-gradient(var(--gray-500) 1.3px, transparent 1.5px); background-size: 7px 7px; }
.ax-drag:hover { opacity: 1; }
.ax-drag:active { cursor: grabbing; }

.ax-main { min-width: 0; }
.ax-heading { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ax-id { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--gray-400); }
.ax-title { overflow: hidden; margin: 0; font-size: 16px; font-weight: 700; color: var(--dark); text-overflow: ellipsis; white-space: nowrap; }
.ax-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 13px; color: var(--gray-600); }
.ax-olympiad { display: inline-flex; align-items: center; gap: 6px; }
.ax-olympiad::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olymp-color, var(--primary)); }
.ax-tag { padding: 2px 10px; font-size: 12px; color: var(--gray-700); background: var(--gray-100); border-radius: 12px; }
.ax-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; }
.ax-stats div { display: flex; align-items: baseline; gap: 6px; }
.ax-stats dt { font-size: 12px; color: var(--gray-500); }
.ax-stats dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--dark); white-space: nowrap; }

.ax-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ax-price { font-size: 18px; font-weight: 800; color: var(--dark); white-space: nowrap; }
.ax-price span { font-size: 12px; font-weight: 600; color: var(--gray-500); }
.ax-status { padding: 3px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; border-radius: 12px; }
.ax-status.is-active { color: var(--success); background: #e6f4ea; }
.ax-status.is-passive { color: var(--danger); background: #fce8e6; }
.ax-status:hover { box-shadow: 0 0 0 1.5px currentColor inset; }

.ax-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 220px; }
.ax-actions .btn { justify-content: center; padding: 7px 10px; font-weight: 600; white-space: nowrap; }
.ax-btn-delete { color: var(--danger); background: transparent; border-color: #f5c2c0; }
.ax-btn-delete:hover { color: var(--white); background: var(--danger); border-color: var(--danger); }
.ax-modal-kicker { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.ax-export-modal { width: min(520px, 94vw); }
.ax-export-note, .ax-coverage { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 8px; }
.ax-export-note { margin-bottom: 18px; color: #1e3a5f; background: #eff6ff; border: 1px solid #bfdbfe; }
/* Sorular: secilenleri eksik dillere cevir (admin/questions.php) */
.qt-modal { max-width: 760px; width: 94%; }
.qt-intro { display: flex; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1e3a5f; font-size: 14px; line-height: 1.5; }
.qt-intro > i { margin-top: 3px; color: var(--primary); }
.qt-intro > div > span { display: block; }
.qt-lang-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.qt-lang-actions { display: flex; gap: 6px; }
.qt-lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 6px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.qt-lang { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 10px; cursor: pointer; font-size: 14px; }
.qt-lang:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.qt-lang.is-done { cursor: default; opacity: 0.55; }
.qt-lang-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-lang-code { font-size: 11px; font-weight: 700; color: var(--gray-500); }
.qt-lang-missing { flex-shrink: 0; padding: 2px 7px; border-radius: 999px; background: #fdecea; color: #b71c1c; font-size: 11.5px; font-weight: 700; }
.qt-lang.is-done .qt-lang-missing { background: #e8f5e9; color: #1b5e20; }
.qt-estimate { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--gray-50); color: var(--gray-700); font-size: 13.5px; }
.qt-estimate.is-ready { background: #e8f5e9; color: #1b5e20; }
.qt-warn { color: #8a5a00; }
.qt-status { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.qt-bar { position: relative; height: 26px; overflow: hidden; border-radius: 999px; background: var(--gray-200); }
.qt-bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2196f3, #4caf50); transition: width 0.3s ease; }
.qt-bar-fill.is-done { background: linear-gradient(90deg, #4caf50, #8bc34a); }
.qt-bar-fill.is-warn { background: linear-gradient(90deg, #ff9800, #ffc107); }
.qt-bar-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: var(--dark); }
.qt-counters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 8px 0; font-size: 13px; color: var(--gray-600); }
.qt-counters span:last-child { color: #b71c1c; font-weight: 700; }
.qt-log { max-height: 220px; overflow-y: auto; padding: 8px 10px; border-radius: 8px; background: var(--gray-50); font-size: 12.5px; }
.qt-log-row { padding: 2px 0; }
.qt-log-row.is-ok { color: #1b5e20; }
.qt-log-row.is-warn { color: #8a5a00; }
.qt-log-row.is-error { color: #b71c1c; }
@media (prefers-reduced-motion: reduce) { .qt-bar-fill { transition: none; } }

/* Yeni sinav: soru havuzu ve soru sayisi (admin/exams.php) */
.pool-box { margin: 4px 0 18px; padding: 16px; border: 1px solid #bfdbfe; border-radius: 12px; background: #f8fbff; }
.pool-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pool-stats > div { padding: 10px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--gray-200); }
.pool-stats strong { display: block; font-size: 22px; line-height: 1.2; color: var(--dark); }
.pool-stats span { font-size: 12.5px; color: var(--gray-600); }
.pool-stats .is-unused strong { color: var(--success); }
.pool-stats .is-used strong { color: #b45309; }
.pool-count-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pool-count-row input { width: 110px; }
.pool-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-quick button { min-height: 36px; padding: 0 12px; border: 1px solid var(--gray-300); border-radius: 8px; background: var(--white); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pool-quick button:hover { border-color: var(--primary); color: var(--primary); }
.pool-reuse { margin: 4px 0 8px; }
.pool-reuse[hidden] { display: none; } /* .checkbox-label display'i hidden'i ezmesin */
.pool-status { margin: 6px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.pool-status.is-ok { background: #e8f5e9; color: #1b5e20; }
.pool-status.is-warn { background: #fff7e0; color: #8a5a00; }
.pool-status.is-error { background: #fdecea; color: #b71c1c; }
@media (max-width: 480px) { .pool-stats { grid-template-columns: 1fr; } }

.ax-format-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ax-format-option { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--gray-200); border-radius: 10px; cursor: pointer; font-weight: 600; }
.ax-format-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.ax-format-option .fa-file-word { color: #2b579a; }
.ax-format-option .fa-file-pdf { color: #d93025; }
.ax-export-note > i, .ax-coverage > i { margin-top: 2px; font-size: 20px; }
.ax-export-note div, .ax-coverage div { display: flex; flex-direction: column; gap: 3px; }
.ax-export-note span, .ax-coverage span { font-size: 12px; line-height: 1.45; }
.ax-coverage { margin-top: 12px; }
.ax-coverage.is-complete { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.ax-coverage.is-missing { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }

@media (max-width: 1024px) {
    .ax-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .admin-page-header .admin-page-title { font-size: 20px; }
    .ax-summary { gap: 10px; margin-bottom: 16px; }
    .ax-summary-item { padding: 12px 14px; }
    .ax-summary-label { font-size: 11px; }
    .ax-summary-item strong { font-size: 20px; }
    .ax-sort-hint { display: none; }
    .ax-filters { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
    .ax-search-wrap { grid-column: 1 / -1; }
    .ax-filter-count { padding: 5px 0 0; }
    .ax-card > .admin-card-body { padding: 12px; }
    .ax-item { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px; }
    .ax-drag { display: none; } /* HTML5 surukle-birak dokunmatikte calismiyor */
    .ax-title { font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
    .ax-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--gray-100); }
    .ax-stats div { flex-direction: column; align-items: flex-start; gap: 0; }
    .ax-stats dt { font-size: 11px; }
    .ax-side { gap: 6px; }
    .ax-price { font-size: 16px; }
    .ax-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; }
    .ax-actions .btn { min-width: 0; padding: 9px 4px; font-size: 12px; }
    /* Baslik ve butonlar sabit, yalnizca alanlar kayar */
    .exam-create-modal { width: 94%; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
    .exam-create-modal > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .exam-create-modal .modal-header { padding: 14px 16px; }
    .exam-create-modal .modal-header h3 { font-size: 16px; }
    .exam-create-modal .modal-body { padding: 16px; overflow-y: auto; flex: 1; min-height: 0; }
    .exam-create-modal .form-row-3 { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 0; }
    .exam-create-modal .form-row-3 > :first-child { grid-column: 1 / -1; }
    .exam-create-modal .modal-actions { padding: 12px 16px; }
    .exam-create-modal .modal-actions .btn { flex: 1; justify-content: center; }
}

/* Sinav Cozumleri (admin/exam-solutions.php): ozet icin .ax-summary kartlari; cozum kartlari yalnizca bu sayfada kucultulur */
.ax-summary-item.is-warning strong { color: var(--warning); }
.ax-summary-item.is-primary strong { color: var(--primary); }
.es-subtitle { margin-top: 4px; color: var(--gray-600); }
.es-header-actions { display: flex; align-items: center; gap: 8px; }
.es-lang-select { padding: 8px 12px; font-family: inherit; font-size: 14px; background: var(--white); border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); }
@media (max-width: 1024px) {
    .ax-summary.es-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .es-header { gap: 12px; }
    .es-subtitle { font-size: 13px; overflow-wrap: anywhere; }
    .es-header-actions { width: 100%; }
    .es-header-actions .btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 13px; }
    .es-lang-select { flex: 0 0 auto; padding: 9px 10px; }

    .ax-summary.es-summary { gap: 6px; }
    .es-summary .ax-summary-item { padding: 10px 6px; text-align: center; }
    .es-summary .ax-summary-label { min-height: 2.4em; font-size: 10px; line-height: 1.2; letter-spacing: 0; }
    .es-summary .ax-summary-item strong { font-size: 18px; }

    .es-solutions .solution-card { margin-bottom: 10px; }
    .es-solutions .solution-header { padding: 10px 14px; font-size: 14px; }
    .es-solutions .solution-status { font-size: 12px; }
    .es-solutions .solution-question { padding: 14px; font-size: 14px; line-height: 1.6; }
    .es-solutions .solution-options { gap: 6px; padding: 0 14px 14px; }
    .es-solutions .solution-option { gap: 8px; padding: 8px 10px; font-size: 13px; }
    .es-solutions .solution-option .option-letter { width: 24px; height: 24px; font-size: 11px; }
    .es-solutions .solution-explanation { padding: 14px; }
    .es-solutions .solution-explanation h4 { font-size: 13px; }
    .es-solutions .solution-text { font-size: 13px; line-height: 1.65; }
}

/* Email */
.template-variables { margin-bottom: 20px; padding: 12px 16px; background: var(--gray-50); border-radius: var(--radius-sm); }
.template-variables h4 { font-size: 13px; margin-bottom: 6px; }
.template-variables code { background: var(--primary-light); padding: 2px 8px; border-radius: 4px; font-size: 13px; color: var(--primary); margin-right: 4px; }

.code-editor { font-family: 'Consolas', 'Monaco', monospace; font-size: 13px; line-height: 1.5; }

.email-logs-list { max-height: 400px; overflow-y: auto; }
.email-log-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; flex-wrap: wrap; }
.log-email { flex: 1; font-weight: 500; }
.log-subject { color: var(--gray-500); flex: 1; }
.log-date { color: var(--gray-400); font-size: 12px; }

.tips-list { list-style: none; }
.tips-list li { padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.tips-list i { color: var(--success); }

.form-actions { display: flex; gap: 12px; }

/* Admin Login */
.admin-login-body { background: linear-gradient(135deg, var(--dark), var(--dark-2)); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-container { width: 100%; max-width: 420px; padding: 20px; }
.admin-login-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; box-shadow: var(--shadow-lg); }
.admin-login-header { text-align: center; margin-bottom: 32px; }
.admin-login-header i { font-size: 48px; color: var(--primary); }
.admin-login-header h2 { font-size: 24px; margin-top: 12px; }
.admin-login-header p { color: var(--gray-500); font-size: 14px; }

.question-preview { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--gray-700); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
    .feature-row-img img { height: 250px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .result-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Ust menu: tablette (dikey + yatay) de hamburger + akordeon; hover'a dayanan acilir menu dokunmatikte guvenilir degil.
   Esik assets/js/app.js'teki NAV_MOBILE_QUERY ile ayni olmali. */
@media (max-width: 1100px) {
    /* Ust serit sade: logo + (girisliyse) profil + menu dugmesi. Dil secimi menunun icinde. */
    .header-inner { height: 64px; }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-start: auto; border-radius: 12px; font-size: 22px; }
    .header-account + .mobile-menu-toggle { margin-inline-start: 4px; }
    .mobile-menu-toggle:hover { background: var(--gray-100); }
    .desktop-header .lang-selector { display: none; }
    .main-nav { position: fixed; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--white); display: none; border-top: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); z-index: 99; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; }
    .main-nav li { width: 100%; }
    .nav-link { padding: 13px 16px; border-radius: var(--radius-sm); }
    .main-nav .nav-btn { display: block; text-align: center; margin-top: 6px; padding: 13px 16px; }

    /* Acilir menuler (olimpiyat + kullanici) mobilde satir ici akordeon */
    .main-nav .has-dropdown, .main-nav .user-menu { position: static; }
    .main-nav .has-dropdown > .nav-link, .main-nav .user-toggle { justify-content: flex-start; position: relative; }
    .main-nav .has-dropdown > .nav-link .fa-chevron-down,
    .main-nav .user-toggle .fa-chevron-down { margin-left: auto; transition: transform .25s ease; }
    .main-nav .has-dropdown.open > .nav-link .fa-chevron-down,
    .main-nav .user-menu.open .user-toggle .fa-chevron-down { transform: rotate(180deg); }

    .main-nav .dropdown-menu {
        position: static; display: none; box-shadow: none; border: none; min-width: 0;
        padding: 4px 0 4px 14px; margin: 2px 0 4px; background: var(--gray-50);
        border-radius: var(--radius-sm); border-left: 2px solid var(--primary-light);
    }
    .main-nav .has-dropdown:hover .dropdown-menu { display: none; } /* mobilde hover'i iptal et */
    .main-nav .has-dropdown.open .dropdown-menu,
    .main-nav .user-menu.open .dropdown-menu { display: block; }
    .main-nav .dropdown-menu a { padding: 11px 14px; border-radius: var(--radius-sm); }
    .main-nav .dropdown-menu hr { margin: 4px 8px; }
    .main-nav .dropdown-menu.has-notif { min-width: 0; }
    .main-nav .notif-subject, .main-nav .notif-snippet { max-width: none; }
    .main-nav .dropdown-menu a.notif-item { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    /* Tablet: acilan menu tam genislik yerine sagda panel */
    .main-nav { left: auto; width: min(380px, 100%); border-inline-start: 1px solid var(--gray-200); border-radius: 0 0 0 var(--radius); }
    [dir="rtl"] .main-nav { right: auto; left: 0; border-radius: 0 0 var(--radius) 0; }
}

@media (max-width: 768px) {
    .hero-section { padding: 60px 0 40px; min-height: auto; }
    .hero-section h1 { font-size: 32px; }
    .hero-trust { justify-content: center; }
    .stats-section { margin-top: -30px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--gray-200); }
    .stat-card:not(:last-child)::after { display: none; }
    .photo-banner { height: 220px; }
    .banner-text h2 { font-size: 24px; }
    .cta-content h2 { font-size: 28px; }
    .cta-section { padding: 48px 0; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .feature-row-img img { height: 200px; }

    /* Dashboard: mobilde derli toplu ve dokunmatik dostu */
    .dashboard-section { padding: 24px 0; }
    .dashboard-welcome { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 22px; }
    .dashboard-welcome h1 { font-size: 23px; }
    .dashboard-welcome p { font-size: 14px; }
    .welcome-action .btn { width: 100%; justify-content: center; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
    .dash-stat-card { gap: 12px; padding: 14px; }
    .dash-stat-icon { width: 46px; height: 46px; font-size: 20px; border-radius: 12px; }
    .dash-stat-info h3 { font-size: 22px; }
    .dash-stat-info p { font-size: 12px; }
    .dashboard-grid { gap: 16px; }
    .dashboard-card { margin-bottom: 16px; }
    .card-header { padding: 16px; }
    .card-body { padding: 16px; }
    .result-item { flex-wrap: wrap; gap: 10px 12px; }
    .result-info { flex: 1 1 100%; }
    .result-item .btn { margin-left: auto; }
    .points-card { padding: 24px; }

    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .exams-grid { grid-template-columns: 1fr; }
    .top-three { grid-template-columns: 1fr; }

    /* Ana sayfa: kucuk telefonlarda tasmayi onle + dikey bosluklari sadelestir */
    .categories-grid { grid-template-columns: 1fr; }
    .categories-section { padding: 48px 0; }
    .exams-preview-section, .exams-section { padding: 48px 0; }
    .features-section { padding: 48px 0 8px; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 26px; }
    .section-header p { font-size: 15px; }
    .stat-card { padding: 26px 12px; background: var(--white); }
    .stat-number { font-size: 30px; }
    .stat-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 8px; }
    .stat-label { font-size: 13px; }
    .banner-text p { font-size: 14px; }

    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }

    .exam-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 8px 12px; }
    .exam-topbar-left { grid-column: 1 / -1; min-width: 0; }
    .exam-topbar-left h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .exam-topbar-left .exam-category-badge { display: none; }
    .exam-topbar-center { min-width: 0; gap: 6px; }
    .exam-timer { padding: 7px 11px; font-size: 18px; }
    .exam-integrity-status { min-height: 36px; padding: 6px 9px; font-size: 11px; }
    .exam-topbar-right { gap: 8px; }
    .exam-progress-text { display: none; }
    .exam-topbar-right .btn { min-height: 36px; padding: 7px 10px; }

    /* Sinav sonucu (exam-result): ozet kompakt, istatistikler 2x2, butonlar tam genislik */
    .result-section { padding: 20px 0; }
    .result-summary { flex-direction: column; text-align: center; gap: 14px; padding: 28px 20px 24px; margin-bottom: 16px; border-radius: var(--radius); position: relative; overflow: hidden; }
    /* Ortalanmis kartta sol serit yerine ust serit; kartin kirptigi ::before -> alt kenari duz */
    .result-summary.passed, .result-summary.failed { border-left: 0; }
    .result-summary::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--danger); }
    .result-summary.passed::before { background: var(--success); }
    .result-score-circle svg { width: 120px; height: 120px; }
    .score-value { font-size: 30px; }
    .score-unit { font-size: 12px; }
    .result-info h1 { font-size: 22px; margin-bottom: 4px; }
    .result-info h2 { font-size: 16px; margin-bottom: 10px; overflow-wrap: anywhere; }
    .result-category { font-size: 13px; }
    .result-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .result-stat { padding: 14px; gap: 10px; min-width: 0; }
    .result-stat i { font-size: 20px; }
    .result-stat strong { font-size: 20px; }
    .result-actions { gap: 10px; margin-bottom: 32px; }
    .result-actions .btn { flex: 1 1 calc(50% - 5px); padding: 11px 12px; }
    .result-actions .btn-primary { flex-basis: 100%; }
    .solutions-section h2 { font-size: 20px; margin-bottom: 16px; }
    .solution-card { margin-bottom: 12px; }
    .solution-header { align-items: center; gap: 12px; padding: 12px 16px; }
    .solution-question { padding: 16px; }
    .solution-card .question-image { margin: 0 16px 16px; }
    .solution-options { grid-template-columns: 1fr; padding: 0 16px 16px; }
    .solution-option { padding: 10px 12px; }
    .solution-explanation { padding: 16px; }

    /* Footer: mobilde daha derli toplu — marka ve iletisim tam genislik, linkler 2 sutun */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; padding-bottom: 28px; }
    .footer-col:first-child, .footer-col:nth-child(4) { grid-column: 1 / -1; }
    .footer-col h4 { margin-bottom: 12px; font-size: 15px; }
    .footer-secure-payment { padding: 22px 16px; margin-bottom: 20px; }
    .footer-secure-payment h4 { font-size: 17px; }
    .payment-icon { min-width: 0; padding: 10px 12px; flex: 1 1 30%; }

    /* Mobil: kenar cubugu yandan kayan overlay */
    .admin-sidebar { width: 260px; transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.25); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}

@media (max-width: 480px) {
    .hero-section h1 { font-size: 26px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); } /* 2x2, tek sutun yerine */
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } /* 2x2, tek sutun yerine cok kaydirma olmasin */
    .dash-stat-card { padding: 12px; gap: 10px; }
    .dash-stat-icon { width: 42px; height: 42px; font-size: 18px; }
    .dash-stat-info h3 { font-size: 20px; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .exam-info-grid { grid-template-columns: 1fr; }
}

/* ===== Payment System ===== */
.exam-price-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f;
    margin: 8px 0;
}
.exam-price-badge.purchased {
    background: linear-gradient(135deg, #34d399, #10b981); color: #064e3b;
}
/* Kart numarasi alani: marka simgesi ve BIN bilgisi (public/payment.php .pay-* ile birlikte kullanilir) */
.card-input { position: relative; }
.card-input input { padding-right: 58px; }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; display: flex; align-items: center; min-width: 34px; justify-content: flex-end; pointer-events: none; }
.card-brand:empty::after { content: "\f09d"; font-family: "Font Awesome 6 Free", sans-serif; font-weight: 900; font-size: 20px; color: var(--gray-300); }
.card-brand.brand-visa i { color: #1a1f71; }
.card-brand.brand-mastercard i { color: #eb001b; }
.card-brand.brand-amex i { color: #2e77bc; }
.card-brand.brand-discover i { color: #ff6000; }
.card-brand .brand-troy { font-size: 15px; font-weight: 800; color: #00a0d2; letter-spacing: -.5px; }

.bin-info { font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-top: 8px; display: flex; align-items: center; gap: 7px; background: var(--primary-light); color: #1e40af; animation: slideDown .25s ease; }
.bin-info.is-tr { background: #ecfdf5; color: #065f46; }
.bin-info[hidden] { display: none; }
.bin-info i { opacity: .7; }

/* ===== Odeme sayfasi (public/payment.php): diger sayfalar gibi koyu baslik bandi + acik zemin ===== */
.pay-shell { max-width: 520px; margin: 0 auto; padding: 0 20px; }
/* Baslik bandindaki (page-header-section) geri donus baglantisi */
.pay-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.pay-back:hover { color: var(--white); }
.pay-back i { font-size: 11px; }

.pay-card {
    padding: 28px 24px 22px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -20px rgba(15, 23, 42, .22);
}

/* Ust: buyuk tutar + acilir siparis detayi */
.pay-hero { text-align: center; }
.pay-hero-title { font-size: 13px; font-weight: 600; color: #64748b; overflow-wrap: anywhere; }
.pay-hero-amount { margin-top: 2px; font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: #0f172a; font-variant-numeric: tabular-nums; }
.pay-hero-meta { margin-top: 4px; font-size: 12px; color: #64748b; }
.pay-order { margin-top: 10px; }
.pay-order-toggle {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 12.5px; font-weight: 600;
    color: var(--primary); background: var(--primary-light); border-radius: 8px; cursor: pointer; list-style: none; user-select: none;
}
.pay-order-toggle::-webkit-details-marker { display: none; }
.pay-order-toggle::after { content: "\f078"; font-family: "Font Awesome 6 Free", sans-serif; font-weight: 900; font-size: 9px; transition: transform .2s ease; }
.pay-order[open] .pay-order-toggle::after { transform: rotate(180deg); }
.pay-order-toggle:hover { background: #dbe7fd; }
.pay-order-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-lines { margin: 12px 0 0; padding: 4px 14px; text-align: left; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; }
.pay-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13.5px; }
.pay-line + .pay-line { border-top: 1px dashed #e2e8f0; }
.pay-line dt { flex-shrink: 0; color: #64748b; }
.pay-line dd { margin: 0; font-weight: 600; text-align: right; color: #0f172a; overflow-wrap: anywhere; }

/* Odeme yontemi: secili kart satiri + bilgi notu */
.pay-method { margin-top: 22px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.pay-method-head { display: flex; align-items: center; gap: 10px; }
.pay-radio { position: relative; flex-shrink: 0; width: 20px; height: 20px; border: 2px solid var(--primary); border-radius: 50%; }
.pay-radio::after { content: ""; position: absolute; inset: 3px; background: var(--primary); border-radius: 50%; }
.pay-method-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.pay-brands { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; }
.pay-brand-visa { font-size: 15px; font-weight: 900; font-style: italic; letter-spacing: -.3px; color: #1a1f71; }
.pay-brand-mc { position: relative; display: inline-block; width: 30px; height: 18px; }
.pay-brand-mc i { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; }
.pay-brand-mc i:first-child { left: 0; background: #eb001b; }
.pay-brand-mc i:last-child { right: 0; background: #f79e1b; mix-blend-mode: multiply; }
.pay-brand-troy { font-size: 14px; font-weight: 800; letter-spacing: -.5px; color: #00a0d2; }
.pay-method-note { margin: 12px 0 20px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: #475569; background: #f1f5f9; border-radius: 10px; }

/* Etiketi kenarligin ustunde duran alanlar */
.pay-float { position: relative; margin-bottom: 18px; }
.pay-float-label {
    position: absolute; top: -8px; left: 11px; z-index: 1; padding: 0 5px;
    font-size: 11.5px; font-weight: 600; line-height: 16px; color: #475569; background: var(--white); pointer-events: none;
}
.pay-float:focus-within .pay-float-label { color: var(--primary); }
.pay-input {
    width: 100%; height: 50px; padding: 0 14px; font-family: inherit; font-size: 15px; letter-spacing: .2px; color: #0f172a;
    background: var(--white); border: 1.5px solid #d6dde6; border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pay-input::placeholder { color: #94a3b8; letter-spacing: normal; }
.pay-input:hover { border-color: #b8c3d1; }
.pay-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26, 115, 232, .12); }
.pay-input--card { font-variant-numeric: tabular-nums; }
.pay-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-form .bin-info { margin: -8px 0 18px; }

.pay-button {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin-top: 4px;
    font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .2px; color: var(--white); cursor: pointer;
    background: linear-gradient(180deg, #2f80ed 0%, #1a73e8 55%, #1557b0 100%); border: 0; border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px -8px rgba(26, 115, 232, .7);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pay-button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 28px -8px rgba(26, 115, 232, .8); }
.pay-button:active { transform: translateY(0); }
.pay-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(26, 115, 232, .3); }
.pay-button:disabled { cursor: progress; opacity: .85; transform: none; }
.pay-button i { font-size: 14px; }
.pay-button #payAmount { font-variant-numeric: tabular-nums; }

.pay-consent { margin-top: 14px; font-size: 12.5px; line-height: 1.55; text-align: center; color: #475569; }
.pay-consent a { font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.pay-secure { margin-top: 8px; font-size: 12.5px; line-height: 1.5; text-align: center; color: #64748b; }
.pay-secure i { margin-right: 5px; color: var(--success); } /* satir icinde: metin sarilinca simge metinle birlikte kalir */

@media (max-width: 480px) {
    .pay-page { padding: 20px 0 4px; }
    .pay-shell { padding: 0 14px; }
    .pay-card { padding: 22px 16px 18px; border-radius: 18px; }
    .pay-hero-amount { font-size: 34px; }
    .pay-brands { gap: 8px; }
    .pay-input { font-size: 16px; } /* iOS odaklaninca yakinlastirmasin */
}

/* ===== Yasal Belgeler (public/legal.php) ===== */
.legal-hero h1 { align-items: center; gap: 12px; display: block; }
.legal-hero h1 i { color: var(--secondary); font-size: 0.85em; }
.legal-hero p { max-width: 760px; }
.legal-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 12px; color: rgba(255,255,255,0.6); }
.legal-breadcrumb a { color: rgba(255,255,255,0.85); }
.legal-breadcrumb a:hover { color: var(--white); }
.legal-breadcrumb i { font-size: 10px; }
.legal-meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.75); }
.legal-meta-row i { color: var(--secondary); margin-right: 4px; }

.legal-section .alert { margin: 0 0 20px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.legal-article { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 48px 40px; }
.legal-article-actions { display: flex; justify-content: flex-end; margin: 0 -24px 8px 0; }
[dir="rtl"] .legal-article-actions { margin: 0 0 8px -24px; }

.legal-content { color: var(--gray-800); font-size: 15.5px; line-height: 1.8; overflow-wrap: break-word; }
.legal-content > :first-child { margin-top: 0; }
.legal-content h2 { font-size: 20px; color: var(--dark); margin: 32px 0 12px; padding-top: 16px; border-top: 1px solid var(--gray-200); scroll-margin-top: 90px; }
.legal-content h2:first-child { border-top: 0; padding-top: 0; }
.legal-content h3 { font-size: 17px; color: var(--dark); margin: 24px 0 8px; }
.legal-content h4 { font-size: 15px; color: var(--dark); margin: 20px 0 8px; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-inline-start: 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content li::marker { color: var(--primary); }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--dark); }
.legal-content hr { border: 0; border-top: 1px solid var(--gray-200); margin: 28px 0; }

.legal-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.legal-aside-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.legal-aside-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); margin-bottom: 12px; }
.legal-toc ol { list-style: none; max-height: 45vh; overflow-y: auto; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; color: var(--gray-700); line-height: 1.4; }
.legal-toc a:hover { background: var(--primary-light); color: var(--primary); }
.legal-doc-nav { list-style: none; }
.legal-doc-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--gray-700); }
.legal-doc-nav a i { width: 16px; text-align: center; color: var(--gray-500); }
.legal-doc-nav a:hover { background: var(--gray-50); color: var(--primary); }
.legal-doc-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.legal-doc-nav a.active i { color: var(--primary); }

.legal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.legal-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; color: var(--gray-800); border: 1px solid transparent; transition: var(--transition); }
.legal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); color: var(--gray-800); }
.legal-card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.legal-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.legal-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; flex: 1; }
.legal-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-200); font-size: 12px; color: var(--gray-500); }
.legal-card-link { color: var(--primary); font-weight: 600; font-size: 13px; }
.legal-card-link i { transition: var(--transition); }
.legal-card:hover .legal-card-link i { transform: translateX(3px); }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 10px; }
.footer-legal a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-legal a:hover { color: var(--white); }

.checkbox-label.legal-accept { align-items: flex-start; line-height: 1.5; }
.checkbox-label.legal-accept input[type="checkbox"] { flex-shrink: 0; margin-top: 1px; }
.legal-accept a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1024px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-aside { position: static; }
    .legal-toc { display: none; }
}
@media (max-width: 768px) {
    .legal-section { padding: 24px 0; }
    .legal-article { padding: 16px 20px 24px; border-radius: var(--radius); }
    .legal-article-actions { margin: 0 -6px 8px 0; }
    .legal-content { font-size: 15px; line-height: 1.75; }
    .legal-content h2 { font-size: 18px; }
    .legal-hero h1 { font-size: 26px; }
}
@media print {
    .main-header, .main-footer, .legal-aside, .legal-article-actions, .legal-breadcrumb, .alert { display: none !important; }
    body { background: #fff; }
    .legal-hero { background: none; color: #000; padding: 0 0 12px; }
    .legal-hero p, .legal-meta-row { color: #333; }
    .legal-layout { display: block; }
    .legal-article { box-shadow: none; padding: 0; }
    .legal-content a { color: #000; }
}

/* ===== Yasal Belgeler (admin) ===== */
/* genis tablolar flex ogeyi ekrandan tasirmasin */
.admin-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-page-title .back-link { color: var(--gray-500); font-size: 18px; margin-right: 4px; }
.admin-page-title .back-link:hover { color: var(--primary); }
.admin-table-wrap { overflow-x: auto; }
.inline-form { display: inline; }
.status-toggle { border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.status-toggle:hover { box-shadow: 0 0 0 1.5px currentColor inset; }
.text-warning { color: #e37400; }
.legal-table td { vertical-align: top; }
.legal-table .actions-cell { white-space: nowrap; }
.legal-table .actions-cell .btn { margin: 0 2px 4px 0; }
.legal-doc-cell { display: flex; gap: 12px; min-width: 220px; }
.legal-doc-cell small { display: block; color: var(--gray-500); font-size: 12px; }
.admin-table.legal-table th, .admin-table.legal-table td { padding-left: 10px; padding-right: 10px; }
/* Islem butonlari yazili (ikonsuz): masaustunde 2x2, esit genislikte */
.legal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; min-width: 164px; }
.legal-table .legal-actions .btn { justify-content: center; margin: 0; padding: 5px 8px; font-weight: 600; white-space: nowrap; }
.legal-actions .inline-form { display: block; }
.legal-actions .inline-form .btn { width: 100%; }

/* Sozlesmeler listesi: mobilde her belge kompakt bir kart (baslik / 3'lu bilgi / 3'lu durum / islemler) */
@media (max-width: 768px) {
    .legal-header-actions { width: 100%; }
    .legal-header-actions .btn { flex: 1; justify-content: center; }
    .admin-stats-grid.legal-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
    .legal-stats .admin-stat-card { padding: 14px 16px; }
    .legal-stats .admin-stat-info h3 { font-size: 22px; }
    .legal-stats .admin-stat-info p { font-size: 12px; }
    .legal-list-card > .admin-card-body { padding: 12px; }
    .legal-table.responsive-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; padding: 14px 12px; }
    .legal-table.responsive-table td { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; min-width: 0; padding: 8px 0; border-bottom: 0; text-align: left; font-size: 13px; }
    .legal-table.responsive-table td::before { font-size: 11px; }
    .legal-table.responsive-table td br { display: none; } /* dikey yerlesimde <br> bosluk birakiyor */
    .legal-table.responsive-table td.legal-doc-td,
    .legal-table.responsive-table td.actions-cell { grid-column: 1 / -1; }
    .legal-table.responsive-table td.legal-doc-td { padding: 0 0 12px; margin-bottom: 2px; border-bottom: 1px solid var(--gray-100); }
    .legal-table.responsive-table td.actions-cell { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--gray-100); white-space: normal; }
    .legal-table.responsive-table td.actions-cell::before { content: none; }
    .legal-table .legal-doc-cell { min-width: 0; }
    .legal-table .legal-doc-cell strong { overflow-wrap: anywhere; }
    .legal-table td .badge { white-space: normal; }
    .legal-table .status-toggle { white-space: normal; text-align: left; }
    .legal-table .legal-actions { width: 100%; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .legal-table .legal-actions .btn { width: 100%; min-width: 0; justify-content: center; padding: 9px 4px; font-size: 12px; }
}
.empty-state .btn { margin-top: 16px; }

.legal-errors { margin: 0 0 20px; max-width: none; align-items: flex-start; }
.legal-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); overflow-x: auto; }
.legal-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.legal-tab:hover { color: var(--primary); }
.legal-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.legal-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.legal-edit-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--gray-50); color: var(--gray-500); font-size: 12px; font-family: Consolas, monospace; border-right: 1px solid var(--gray-200); white-space: nowrap; }
.form-group .input-prefix input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.legal-switches { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 20px; padding: 14px; background: var(--gray-50); border-radius: var(--radius-sm); }
.legal-switches .checkbox-label { align-items: flex-start; }
.legal-switches .checkbox-label input { flex-shrink: 0; margin-top: 2px; }
.legal-switches strong { display: block; font-size: 14px; color: var(--gray-800); }
.legal-switches small { display: block; font-size: 12px; color: var(--gray-500); }
.legal-meta { list-style: none; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gray-200); font-size: 13px; }
.legal-meta li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.legal-meta span { color: var(--gray-500); }
.legal-hint { font-size: 13px; line-height: 1.6; color: var(--gray-700); }
.info-box p { font-size: 14px; line-height: 1.6; }
.info-box code { background: var(--white); padding: 1px 6px; border-radius: 4px; }

.legal-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.legal-editor-head label { margin: 0; }
.legal-editor-modes { display: inline-flex; background: var(--gray-100); border-radius: 8px; padding: 3px; }
.legal-editor-modes button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--gray-600); cursor: pointer; font-family: inherit; }
.legal-editor-modes button.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow); }
.legal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border: 1.5px solid var(--gray-300); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--gray-50); }
.legal-toolbar[hidden] { display: none; }
.legal-toolbar button { width: 32px; height: 30px; border: 0; background: none; border-radius: 6px; color: var(--gray-700); cursor: pointer; }
.legal-toolbar button:hover { background: var(--white); color: var(--primary); box-shadow: var(--shadow); }
.legal-toolbar-sep { width: 1px; height: 20px; background: var(--gray-300); margin: 0 4px; }
.form-group textarea.legal-textarea { border-radius: 0 0 var(--radius-sm) var(--radius-sm); min-height: 420px; resize: vertical; line-height: 1.6; }
.form-group textarea.legal-textarea[hidden] { display: none; }
.legal-preview { border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 24px; min-height: 420px; max-height: 70vh; overflow-y: auto; background: var(--white); }
.legal-preview[hidden] { display: none; }
.legal-syntax { margin-top: 10px; font-size: 13px; }
.legal-syntax summary { cursor: pointer; color: var(--gray-600); }
.legal-syntax table { margin-top: 8px; border-collapse: collapse; width: 100%; }
.legal-syntax td { padding: 5px 8px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.legal-syntax code { background: var(--gray-100); padding: 1px 6px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.legal-form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }

.legal-lang-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal-lang-bar label { font-weight: 600; font-size: 14px; color: var(--gray-700); }
.legal-lang-bar select { padding: 8px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; min-width: 240px; max-width: 100%; }
.legal-lang-legend { display: flex; gap: 14px; font-size: 12px; color: var(--gray-500); margin-left: auto; }
.legal-source-title { font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.legal-source-summary { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.legal-source-body { max-height: 60vh; overflow-y: auto; padding: 16px; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 13.5px; }
.legal-source-body h2 { font-size: 16px; }

@media (max-width: 1200px) {
    .legal-edit-grid { grid-template-columns: 1fr; }
    .legal-edit-side { position: static; }
}
@media (max-width: 768px) {
    .admin-page-header { flex-wrap: wrap; gap: 12px; }
    .legal-lang-legend { margin-left: 0; }
    .legal-lang-bar select { min-width: 0; width: 100%; }
    .input-prefix span { display: none; }
}

/* ===== Mail Sablonlari / Toplu Mail (admin) ===== */
.modal-overlay[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal-content.modal-mail { max-width: 920px; width: 94%; display: flex; flex-direction: column; overflow: hidden; }
.modal-mail .modal-body { overflow-y: auto; flex: 1; }
.modal-mail .modal-actions { flex-wrap: wrap; }
.modal-mail .mail-form-alert { margin: 16px 0 0; }

.mail-form-alert { margin: 0 0 16px; max-width: none; align-items: flex-start; }
.mail-form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mail-form-head h2 { font-size: 20px; color: var(--dark); }

.mail-compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mail-compose > .admin-card:last-child { position: sticky; top: 20px; }
.mail-pane-tabs { display: none; }
.mail-body-input { min-height: 320px; resize: vertical; tab-size: 4; }
.mail-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mail-variables { margin-bottom: 16px; }
.mail-variables-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.mail-variables-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mail-variables button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gray-300); background: var(--white); border-radius: 20px; padding: 4px 6px 4px 10px; font-size: 12px; font-family: inherit; color: var(--gray-700); cursor: pointer; transition: var(--transition); }
.mail-variables button code { font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 1px 6px; border-radius: 10px; }
.mail-variables button:hover { border-color: var(--primary); color: var(--primary); }
.mail-variables small { display: block; margin-top: 6px; font-size: 12px; color: var(--gray-500); }

.mail-preview-pane { padding: 16px 20px 20px; }
.mail-preview-pane.in-modal { padding: 0; }
.mail-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.mail-preview-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.in-modal .mail-preview-head { justify-content: flex-end; }
.in-modal .mail-preview-head h3 { display: none; }
.mail-device-toggle { display: inline-flex; background: var(--gray-100); border-radius: 8px; padding: 3px; }
.mail-device-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--gray-600); cursor: pointer; font-family: inherit; }
.mail-device-toggle button.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow); }
.mail-envelope { border: 1px solid var(--gray-200); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--gray-50); font-size: 13px; }
.mail-envelope > div { display: flex; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--gray-200); }
.mail-envelope span { width: 44px; flex-shrink: 0; color: var(--gray-500); }
.mail-envelope strong, .mail-envelope em { min-width: 0; overflow-wrap: anywhere; color: var(--gray-800); font-style: normal; }
.mail-var-warning { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; background: #fef7e0; color: #9a5b00; font-size: 12.5px; border: 1px solid #f6e3a8; border-bottom: 0; }
.mail-var-warning[hidden] { display: none; }
.mail-frame-wrap { display: flex; justify-content: center; border: 1px solid var(--gray-200); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: #e5e7eb; overflow: hidden; }
.mail-frame { display: block; width: 100%; height: 620px; border: 0; background: #f4f4f7; }
.is-mobile .mail-frame-wrap { padding: 20px 0; }
.is-mobile .mail-frame { width: 375px; max-width: calc(100% - 24px); height: 600px; border-radius: 22px; box-shadow: 0 0 0 8px #1f2937, 0 10px 28px rgba(0,0,0,0.25); }
.in-modal .mail-frame { height: 52vh; }

.recipient-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recipient-option { position: relative; cursor: pointer; }
.recipient-option input { position: absolute; opacity: 0; pointer-events: none; }
.recipient-option span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 10px 8px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--gray-700); text-align: center; transition: var(--transition); }
.recipient-option input:checked + span { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.recipient-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(26,115,232,0.25); }
.recipient-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; margin-bottom: 20px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); font-size: 14px; }
.recipient-summary small { color: var(--gray-600); font-size: 12px; overflow-wrap: anywhere; }
.recipient-summary.is-empty { background: #fce8e6; color: var(--danger); }

.send-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.send-summary > div { padding: 12px 14px; background: var(--gray-50); border-radius: var(--radius-sm); min-width: 0; }
.send-summary span { display: block; font-size: 12px; color: var(--gray-500); }
.send-summary strong { font-size: 17px; color: var(--dark); overflow-wrap: anywhere; }

.tpl-list { display: flex; flex-direction: column; }
.tpl-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--gray-200); }
.tpl-item:last-child { border-bottom: 0; }
.tpl-item.is-editing { background: var(--primary-light); border-radius: var(--radius-sm); padding-left: 12px; padding-right: 12px; }
.tpl-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.tpl-item.is-editing .tpl-icon { background: var(--white); }
.tpl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tpl-info strong { color: var(--dark); overflow-wrap: anywhere; }
.tpl-subject { font-size: 13px; color: var(--gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-500); }
.tpl-actions { display: flex; gap: 6px; flex-shrink: 0; }

.log-email, .log-subject { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1200px) {
    .mail-pane-tabs { display: flex; gap: 4px; position: sticky; top: 8px; z-index: 5; margin-bottom: 16px; padding: 4px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-md); }
    .mail-pane-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--gray-600); font-family: inherit; cursor: pointer; }
    .mail-pane-tabs button.active { background: var(--primary); color: var(--white); }
    .mail-compose { grid-template-columns: 1fr; }
    .mail-compose > .admin-card:last-child { position: static; display: none; }
    .mail-compose.show-preview > .mail-editor-pane { display: none; }
    .mail-compose.show-preview > .admin-card:last-child { display: block; }
}
@media (max-width: 768px) {
    .admin-content { padding: 16px; }
    .tpl-item { flex-wrap: wrap; }
    .tpl-actions { width: 100%; }
    .tpl-actions > .btn { flex: 1; min-width: 0; justify-content: center; padding: 7px 8px; }
    .tpl-actions .inline-form { display: flex; }
    .recipient-options { grid-template-columns: 1fr; }
    .recipient-option span { justify-content: flex-start; padding: 12px 14px; }
    .mail-preview-pane { padding: 14px; }
    .mail-frame { height: 520px; }
    .mail-device-toggle span { display: none; }
    .mail-form-actions .btn { flex: 1; justify-content: center; }
    .modal-content.modal-mail { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .modal-mail .modal-body { padding: 16px; }
    .modal-mail .modal-actions { padding: 12px 16px; }
    .modal-mail .modal-actions .btn { flex: 1 1 40%; justify-content: center; white-space: nowrap; }
    .in-modal .mail-frame { height: 48vh; }
}

/* ===== Admin mobil kenar cubugu arka plani ===== */
.admin-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.admin-backdrop.show { opacity: 1; visibility: visible; }
body.sidebar-open { overflow: hidden; }

/* ===== Sorular sayfasi: filtre/sekme + responsive tablo ===== */
.filter-form select { padding: 8px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; }
.q-tabs { display: flex; gap: 0; margin-bottom: 0; flex-wrap: wrap; }
.q-tabs .btn { border-radius: 0; }
.q-tabs .btn:first-child { border-radius: 8px 0 0 0; }
.q-tabs .btn:last-child { border-radius: 0 8px 0 0; }

/* Responsive tablo: mobilde her satir bir kart olur (data-label ile) */
@media (max-width: 768px) {
    .responsive-table thead { display: none; }
    .responsive-table, .responsive-table tbody { display: block; width: 100%; }
    .responsive-table tr {
        display: block; background: var(--white); border: 1px solid var(--gray-200);
        border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; box-shadow: var(--shadow);
    }
    .responsive-table tr:hover { background: var(--white); }
    .responsive-table td {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        padding: 9px 0; border: none; border-bottom: 1px solid var(--gray-100); text-align: right; font-size: 14px;
    }
    .responsive-table td:last-child { border-bottom: 0; }
    .responsive-table td::before {
        content: attr(data-label); font-weight: 600; color: var(--gray-500);
        font-size: 12px; text-transform: uppercase; letter-spacing: .3px; text-align: left; flex-shrink: 0;
    }
    /* Etiketsiz hucreler (secim kutusu) icin ::before gizle */
    .responsive-table td[data-label=""]::before { content: none; }
    /* Soru metni: tam genislik, alt satirda */
    .responsive-table td.question-preview {
        flex-direction: column; align-items: flex-start; text-align: left;
        max-width: none; white-space: normal; overflow: visible; font-weight: 600; color: var(--dark);
    }
    .responsive-table td.question-preview::before { margin-bottom: 4px; }
    /* Islemler: butonlar sola yasli ve ferah */
    .responsive-table td.q-actions { flex-wrap: wrap; justify-content: flex-start; }
    .responsive-table td.q-actions .btn { flex: 1; min-width: 70px; justify-content: center; padding: 8px; }
    .responsive-table .badge, .responsive-table .answer-badge, .responsive-table .status-badge { margin: 0; }

    /* Toplu islem bari mobilde dikey */
    #bulkBar { flex-direction: column; align-items: stretch !important; }
    #bulkBar .btn { justify-content: center; }
    .q-tabs .btn { flex: 1; min-width: 0; padding: 10px 6px; font-size: 13px; }
    .q-tabs .btn:first-child, .q-tabs .btn:last-child { border-radius: 8px 8px 0 0; }
    .filter-form { width: 100%; }
    .filter-form select { flex: 1; min-width: 0; }
}

/* ===== Toplu Ceviri (admin/bulk-translate.php) ===== */
.bulk-intro { color: var(--gray-600); font-size: 14px; margin: -8px 0 20px; max-width: 760px; line-height: 1.6; }

.bulk-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.bulk-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1.5px solid var(--gray-200); background: var(--white); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--gray-700); cursor: pointer; font-family: inherit; transition: var(--transition); }
.bulk-tab:hover { border-color: var(--primary); color: var(--primary); }
.bulk-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: var(--shadow-md); }
.bulk-tab .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 20px; background: var(--gray-100); color: var(--gray-700); font-size: 12px; font-weight: 700; }
.bulk-tab.active .count { background: rgba(255,255,255,0.25); color: var(--white); }

.bulk-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.bulk-status { color: var(--gray-600); font-size: 14px; font-weight: 600; }

.bulk-progress { height: 30px; background: var(--gray-200); border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.bulk-progress-bar { height: 100%; width: 0; min-width: 42px; border-radius: 20px; background: linear-gradient(90deg, var(--primary), var(--success)); display: flex; align-items: center; justify-content: center; transition: width .3s ease; }
.bulk-progress-bar span { color: var(--white); font-weight: 700; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

.bulk-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.bulk-stat { text-align: center; padding: 16px 10px; background: var(--gray-50); border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.bulk-stat .num { font-size: 26px; font-weight: 800; color: var(--dark); line-height: 1.1; }
.bulk-stat .lbl { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.bulk-stat.green { background: #e8f5e9; border-color: #c8e6c9; }
.bulk-stat.green .num { color: var(--success); }
.bulk-stat.orange { background: #fff3e0; border-color: #ffe0b2; }
.bulk-stat.orange .num { color: #e37400; }
.bulk-stat.red { background: #fce8e6; border-color: #f8c9c4; }
.bulk-stat.red .num { color: var(--danger); }
.bulk-stat.blue { background: var(--primary-light); border-color: #c5dbfa; }
.bulk-stat.blue .num { color: var(--primary); }

.bulk-current { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); font-size: 13.5px; }

.bulk-log-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); cursor: pointer; font-weight: 500; }
.bulk-log { max-height: 400px; overflow-y: auto; font-family: 'Consolas', 'Monaco', monospace; font-size: 12.5px; }
.bulk-log .log-line { display: flex; align-items: baseline; gap: 8px; padding: 5px 4px; border-bottom: 1px solid var(--gray-100); line-height: 1.5; }
.bulk-log .log-line:last-child { border-bottom: 0; }
.bulk-log .log-time { color: var(--gray-400); flex-shrink: 0; }
.bulk-log .log-line i { flex-shrink: 0; }
.bulk-log .log-msg { color: var(--gray-800); overflow-wrap: anywhere; }
.bulk-log .log-info i { color: var(--primary); }
.bulk-log .log-success i { color: var(--success); }
.bulk-log .log-error i, .bulk-log .log-error .log-msg { color: var(--danger); }
.bulk-log .log-warning i { color: #e37400; }
.bulk-log .log-skip i, .bulk-log .log-skip .log-msg { color: var(--gray-500); }

@media (max-width: 768px) {
    .bulk-tabs { gap: 6px; }
    .bulk-tab { flex: 1; min-width: 0; justify-content: center; padding: 10px 6px; font-size: 12.5px; gap: 5px; }
    .bulk-tab i { display: none; }
    .bulk-stats { grid-template-columns: repeat(2, 1fr); }
    .bulk-stat.blue { grid-column: span 2; }
    .bulk-actions .btn { flex: 1; justify-content: center; }
    .bulk-status { width: 100%; text-align: center; }
}

/* ===== Soru duzenleme: canli onizleme (admin/question-edit.php) ===== */
.question-preview-area { font-size: 15px; color: var(--gray-800); line-height: 1.7; }
.qp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qp-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.qp-badge.green { background: #e6f4ea; color: var(--success); }
.qp-q { font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 14px; overflow-wrap: break-word; }
.qp-empty { color: var(--gray-400); font-weight: 400; }
.qp-img { margin: 12px 0; }
.qp-img img { max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--gray-200); }
.qp-opts { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.qp-opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--white); }
.qp-opt.correct { border-color: var(--success); background: #e6f4ea; }
.qp-letter { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.qp-opt.correct .qp-letter { background: var(--success); }
.qp-opt-body { flex: 1; min-width: 0; overflow-wrap: break-word; }
.qp-opt-body img { display: block; max-width: 100%; max-height: 120px; margin-top: 6px; border-radius: 6px; border: 1px solid var(--gray-200); }
.qp-ok { color: var(--success); font-size: 16px; flex-shrink: 0; }
.qp-sol { margin-top: 16px; padding: 14px 16px; background: var(--primary-light); border-left: 3px solid var(--primary); border-radius: 8px; }
.qp-sol-title { font-weight: 700; color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

/* ===== Giris / kayit / sifre sayfalari: minimal tek kart (public/login|register|forgot-password|reset-password.php) ===== */
.auth-min { display: flex; justify-content: center; align-items: flex-start; min-height: calc(100vh - 160px); padding: clamp(32px, 8vh, 88px) 16px 72px; background: var(--gray-50); }
.auth-min-card { width: 100%; max-width: 420px; padding: 40px 36px 32px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; }
.auth-min-card.is-wide { max-width: 560px; }
.auth-min-head { text-align: center; margin-bottom: 28px; }
.auth-min-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--primary-light); color: var(--primary); font-size: 18px; }
.auth-min-head h1 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--gray-900); margin-bottom: 6px; }
.auth-min-head p { font-size: 14.5px; line-height: 1.5; color: var(--gray-700); }

.auth-min-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.auth-min-alert i { flex-shrink: 0; margin-top: 3px; }
.auth-min-alert.is-error { background: #fce8e6; color: #b3261e; }
.auth-min-alert.is-success { background: #e6f4ea; color: #1e6b34; }

.auth-min-form { display: grid; gap: 18px; }
.auth-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.auth-field { display: grid; gap: 6px; min-width: 0; }
.auth-field label { font-size: 13.5px; font-weight: 600; color: var(--gray-900); }
.auth-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-field-top a { font-size: 13.5px; font-weight: 500; }
.auth-field input, .auth-field select {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: 10px;
    background-color: var(--white); color: var(--gray-900); font: inherit; font-size: 16px; /* 16px: iOS odaklaninca zoom yapmaz */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input::placeholder { color: var(--gray-500); }
.auth-field input:focus, .auth-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.auth-field select {
    padding-inline-end: 36px; cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] .auth-field select { background-position: left 14px center; }
.auth-hint { font-size: 12.5px; color: var(--gray-600); }

.auth-pw { position: relative; }
.auth-pw input { padding-inline-end: 48px; }
.auth-pw-toggle { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 46px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--gray-500); cursor: pointer; }
.auth-pw-toggle:hover { color: var(--gray-800); }
.auth-pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }

/* Istege bagli alanlar (okul, sehir) kapali baslar */
.auth-more summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.auth-more summary::-webkit-details-marker { display: none; }
.auth-more summary::before { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; line-height: 1; }
.auth-more[open] summary::before { content: '\2212'; }
.auth-more .auth-row { margin-top: 6px; }

.auth-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--gray-700); cursor: pointer; }
.auth-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.auth-check a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.auth-min-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 10px; background: var(--primary); color: var(--white); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.auth-min-btn:hover { background: var(--primary-dark); color: var(--white); }
.auth-min-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-min-btn[disabled] { opacity: 0.7; cursor: progress; }

.auth-min-foot { margin-top: 24px; text-align: center; font-size: 14px; color: var(--gray-700); }
.auth-min-foot a { font-weight: 600; }

/* Hesabimi sil (public/account-delete.php) */
.auth-min-mark.is-danger { background: #fce8e6; color: #b3261e; }
.auth-min-btn.is-danger { background: #b3261e; }
.auth-min-btn.is-danger:hover { background: #8c1d18; }
.ad-list { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.ad-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--gray-800); }
.ad-list li i { flex-shrink: 0; width: 18px; margin-top: 3px; text-align: center; color: var(--gray-500); }
.ad-list li.is-warn { padding: 10px 12px; border-radius: 10px; background: #fef7e0; color: #7a4f01; }
.ad-list li.is-warn i { color: #b06000; }
.ad-keep { display: flex; gap: 10px; margin-bottom: 24px; padding: 12px 14px; border-radius: 10px; background: var(--gray-50); font-size: 13.5px; line-height: 1.5; color: var(--gray-700); }
.ad-keep i { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.ad-reason { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 10px; font: inherit; font-size: 16px; resize: vertical; }
.ad-reason:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.auth-back-ico { font-size: 12px; margin-inline-end: 4px; }
[dir="rtl"] .auth-back-ico { transform: scaleX(-1); }
/* Google / Apple ile devam et (admin acmadiysa basilmaz) + "veya" ayraci */
.auth-socials { display: grid; gap: 10px; }
.auth-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white); color: var(--gray-900); font-size: 15px; font-weight: 600; text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease; }
.auth-social:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-900); }
.auth-social:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-social-ico { flex-shrink: 0; }
/* Apple kurallari: siyah zemin, beyaz logo ve yazi */
.auth-social.is-apple { border-color: #000; background: #000; color: #fff; }
.auth-social.is-apple:hover { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--gray-600); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
/* Google'dan gelen dogrulanmis e-posta (kaydi tamamla) */
.auth-verified { display: grid; gap: 6px; }
.auth-verified input[readonly] { background: var(--gray-50); color: var(--gray-700); cursor: default; }
.auth-verified-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #1e6b34; }
/* Kayit: "Mentor musunuz?" secimi + mentor bilgileri (public/register.php, public/mentor-profile.php) */
.auth-min [hidden], .mt-body [hidden] { display: none !important; }
.auth-role { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; border: 0; }
.auth-role legend { grid-column: 1 / -1; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--gray-900); }
.auth-role-opt { position: relative; cursor: pointer; }
.auth-role-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-role-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--gray-700); text-align: center; line-height: 1.3; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.auth-role-opt input:checked + span { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); box-shadow: inset 0 0 0 1px var(--primary); }
.auth-role-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-role-desc { margin: -4px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--gray-50); font-size: 14px; line-height: 1.5; color: var(--gray-700); }
.auth-label { font-size: 13.5px; font-weight: 600; color: var(--gray-900); }
.auth-opt { font-weight: 400; color: var(--gray-600); }
.auth-mentor { display: grid; gap: 18px; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.auth-section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--gray-900); }
.auth-section-title i { color: var(--primary); }
.auth-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--gray-700); }
.auth-note i { margin-top: 3px; color: var(--primary); }
.auth-field textarea { width: 100%; min-height: 104px; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.auth-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.mf-grades { margin: 0; padding: 0; border: 0; }
.mf-grades legend { margin-bottom: 6px; }
.mf-grades select { width: 100%; height: 46px; padding: 0 36px 0 14px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; font: inherit; font-size: 16px; color: var(--gray-900); appearance: none; -webkit-appearance: none; cursor: pointer; }
[dir="rtl"] .mf-grades select { padding: 0 14px 0 36px; background-position: left 14px center; }
.mf-photo { display: flex; align-items: center; gap: 16px; }
.mf-photo-preview { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; overflow: hidden; border-radius: 50%; background: var(--gray-100); color: var(--gray-500); font-size: 28px; }
.mf-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.mf-photo-side { display: grid; gap: 6px; min-width: 0; }
.mf-photo-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--gray-900); cursor: pointer; }
.mf-photo-btn:hover { background: var(--gray-50); }
.mf-photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mf-photo-btn:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Bot tuzagi: ekranda ve ekran okuyucuda gorunmez */
.auth-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (hover: none) {
    .auth-min-btn:hover { background: var(--primary); }
    .auth-social:hover { background: var(--white); border-color: var(--gray-300); }
    .auth-social.is-apple:hover { background: #000; border-color: #000; }
}
@media (max-width: 640px) {
    /* Telefon: kart cercevesiz, sayfa beyaz; alanlar tek sutun */
    .auth-min { min-height: auto; padding: 24px 16px 48px; background: var(--white); }
    .auth-min-card { padding: 8px 0 0; border: 0; border-radius: 0; }
    .auth-min-head { margin-bottom: 24px; }
    .auth-min-head h1 { font-size: 22px; }
    .auth-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ===== Destek talepleri (public/support*.php, admin/support*.php, includes/support/support-chat.php) ===== */
.nav-count { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: var(--white); font-size: 11px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; flex-shrink: 0; }

.support-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.support-card { background: var(--white); border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(26,26,46,0.04); }
.support-card > h2 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.support-card > h2 i { color: var(--primary); }
.support-card .alert { margin: 0 0 16px; max-width: none; }
.support-form textarea { min-height: 120px; resize: vertical; }
.support-form input[type="file"] { padding: 8px; background: var(--gray-50); }

.support-ticket-list { display: flex; flex-direction: column; }
.support-ticket-item { display: flex; align-items: center; gap: 14px; padding: 14px 10px; margin: 0 -10px; border-radius: 12px; color: inherit; }
.support-ticket-item + .support-ticket-item { border-top: 1px solid var(--gray-100); }
.support-ticket-item:hover { background: var(--gray-50); color: inherit; }
.support-ticket-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); }
.support-ticket-item.is-closed .support-ticket-icon { background: var(--gray-100); color: var(--gray-500); }
.support-ticket-main { flex: 1; min-width: 0; }
.support-ticket-subject, .support-ticket-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-subject { font-weight: 600; color: var(--dark); }
.support-ticket-item.is-unread .support-ticket-subject::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--danger); vertical-align: middle; }
.support-ticket-meta { font-size: 12.5px; color: var(--gray-600); margin-top: 2px; }

.support-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.support-status.is-waiting { background: #fef7e0; color: #b45309; }
.support-status.is-answered { background: #e6f4ea; color: #1e7e34; }
.support-status.is-closed { background: var(--gray-100); color: var(--gray-600); }

/* Sohbet */
.support-chat-page { padding: 24px 16px; background: var(--hm-paper); }
.support-chat [hidden] { display: none !important; }
.support-chat { display: flex; flex-direction: column; max-width: 920px; margin: 0 auto; height: calc(100vh - 118px); height: calc(100dvh - 118px); min-height: 460px; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(26,26,46,0.04); }
.support-chat.in-admin { max-width: none; height: calc(100vh - 118px); height: calc(100dvh - 118px); }
.support-chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.support-back { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--gray-700); }
.support-back:hover { background: var(--gray-100); color: var(--primary); }
.support-chat-title { flex: 1; min-width: 0; }
.support-chat-title h2 { font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-chat-meta { font-size: 12.5px; color: var(--gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-close-btn { flex-shrink: 0; }

.support-messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--gray-50); }
.support-msg { display: flex; }
.support-msg.is-mine { justify-content: flex-end; }
.support-bubble { max-width: min(560px, 78%); padding: 9px 13px 6px; border-radius: 16px; background: var(--white); color: var(--gray-900); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.support-msg.is-theirs .support-bubble { border-end-start-radius: 4px; }
.support-msg.is-mine .support-bubble { background: var(--primary); color: var(--white); border-end-end-radius: 4px; }
.support-bubble-author { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.support-msg.is-mine .support-bubble-author { color: rgba(255,255,255,0.85); }
.support-bubble-text { font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-bubble-img { display: block; margin: 2px 0 6px; }
.support-bubble-img img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; }
.support-bubble-time { font-size: 11px; opacity: 0.65; text-align: end; margin-top: 3px; }

.support-composer { padding: 10px 12px; border-top: 1px solid var(--gray-200); background: var(--white); position: relative; }
.support-composer-row { display: flex; align-items: flex-end; gap: 8px; }
.support-composer textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 16px; resize: none; border: 1.5px solid var(--gray-200); border-radius: 22px; background: var(--gray-50); font-family: var(--font); font-size: 14.5px; line-height: 1.4; }
.support-composer textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(26,115,232,0.12); }
.support-attach-btn, .support-send-btn { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; border: 0; cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.support-attach-btn { background: var(--gray-100); color: var(--gray-700); }
.support-attach-btn:hover { background: var(--gray-200); color: var(--primary); }
.support-send-btn { background: var(--primary); color: var(--white); }
.support-send-btn:hover { background: var(--primary-dark); }
.support-send-btn:disabled { opacity: 0.6; cursor: wait; }
[dir="rtl"] .support-send-btn i { transform: scaleX(-1); }
.support-attach-preview { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 8px; border-radius: 12px; background: var(--gray-50); font-size: 13px; }
.support-attach-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.support-attach-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-attach-preview button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 22px; color: var(--gray-600); }
.support-composer-error { padding: 6px 8px 0; font-size: 13px; color: var(--danger); }
.support-closed-note { padding: 14px 16px; border-top: 1px solid var(--gray-200); text-align: center; font-size: 14px; color: var(--gray-700); background: var(--white); }
.support-closed-note a { font-weight: 600; margin-inline-start: 6px; }

/* Admin talep listesi */
.support-admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.support-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.support-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--gray-700); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); }
.support-tab:hover { color: var(--primary); }
.support-tab.active { background: var(--primary); color: var(--white); }
.support-tab .count { font-size: 12px; opacity: 0.75; }
.support-search { display: flex; gap: 8px; }
.support-search input { width: 260px; max-width: 100%; padding: 8px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font); font-size: 14px; }
.support-table .support-row-link { color: var(--dark); font-weight: 500; }
.support-table .support-row-link:hover { color: var(--primary); }
.support-table .support-row-id { color: var(--gray-500); font-weight: 400; }
.support-table tr.is-unread td { background: #f5f9ff; }
.support-table tr.is-unread .support-row-link { font-weight: 700; }
.support-muted { color: var(--gray-500); font-size: 12px; }

@media (max-width: 768px) {
    .support-section { padding: 20px 0 32px; }
    /* minmax(0, ...): nowrap konu basliklari sutunu ekrandan genis yapmasin */
    .support-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .support-card { padding: 20px 16px; }
    .support-form input, .support-form textarea { font-size: 16px; }

    /* Mobilde sohbet tam ekran: sadece site header'i ustte kalir */
    .support-chat-page { padding: 0; }
    .support-chat { height: calc(100vh - 70px); height: calc(100dvh - 70px); min-height: 0; border-radius: 0; box-shadow: none; }
    .support-chat.in-admin { height: calc(100vh - 100px); height: calc(100dvh - 100px); border-radius: 12px; }
    .support-chat-header { padding: 10px 12px; gap: 8px; }
    .support-chat-header .support-status { display: none; }
    .support-close-btn span { display: none; }
    .support-messages { padding: 14px 10px; }
    .support-bubble { max-width: 85%; }
    .support-composer textarea { font-size: 16px; }
    .support-search, .support-search input { width: 100%; }
}

/* ===== Cerez onayi (includes/layout/cookie-consent.php) ===== */
.cookie-banner[hidden], .cookie-modal[hidden] { display: none !important; }

/* Ortak dugmeler: kabul ve ret esit boyutta (onay tasarimi geregi) */
.ck-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.ck-btn:focus-visible, .ck-link:focus-visible, .cookie-dialog-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ck-btn-solid { background: var(--hm-ink); border-color: var(--hm-ink); color: var(--white); }
.ck-btn-solid:hover { background: #1f3160; border-color: #1f3160; }
.ck-btn-ghost { background: var(--white); border-color: var(--hm-line); color: var(--hm-ink); }
.ck-btn-ghost:hover { border-color: var(--hm-ink); }

/* Bant */
.cookie-banner { position: fixed; z-index: 990; inset-inline-start: 24px; bottom: 24px; width: min(400px, calc(100% - 48px)); padding: 20px 20px 14px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 24px 48px -16px rgba(20,33,61,0.28), 0 4px 12px -4px rgba(20,33,61,0.08); animation: cookieIn 0.35s ease; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-banner-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--hm-display); font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--hm-ink); }
.cookie-banner-title i { color: var(--hm-gold); font-size: 17px; }
.cookie-banner-text { font-size: 13.5px; line-height: 1.6; color: var(--hm-text); }
.cookie-banner-text a, .cookie-dialog-intro a { font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ck-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; margin-top: 6px; padding: 8px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--hm-muted); cursor: pointer; }
.ck-link:hover { color: var(--hm-ink); background: var(--hm-paper); }

.footer-legal-btn { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-legal-btn:hover { color: var(--white); }

/* Tercih penceresi */
.cookie-modal { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20,33,61,0.45); backdrop-filter: blur(4px); animation: cookieFade 0.2s ease; }
@keyframes cookieFade { from { opacity: 0; } to { opacity: 1; } }
.cookie-dialog { display: flex; flex-direction: column; width: 100%; max-width: 520px; max-height: min(640px, 92vh); background: var(--white); border-radius: 22px; box-shadow: 0 32px 64px -20px rgba(20,33,61,0.45); overflow: hidden; animation: cookieIn 0.25s ease; }
.cookie-dialog-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 0 24px; padding-inline: 24px 20px; }
.cookie-dialog-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #fdf3d7; color: #b07d00; font-size: 17px; }
.cookie-dialog-head h3 { flex: 1; min-width: 0; font-family: var(--hm-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--hm-ink); }
.cookie-dialog-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--hm-muted); font-size: 18px; cursor: pointer; }
.cookie-dialog-close:hover { background: var(--hm-paper); color: var(--hm-ink); }
.cookie-dialog-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 24px 8px; }
.cookie-dialog-intro { font-size: 14px; line-height: 1.6; color: var(--hm-text); }
.cookie-cats { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--gray-200); }
.cookie-cat { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat-text { flex: 1; min-width: 0; }
.cookie-cat h4 { font-size: 15px; font-weight: 700; color: var(--hm-ink); }
.cookie-cat p { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--hm-muted); }
.cookie-badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 10px; border-radius: 999px; background: #e3f5ee; color: #0b7a55; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cookie-badge i { font-size: 10px; }
.cookie-switch { position: relative; flex-shrink: 0; width: 48px; height: 28px; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--gray-300); pointer-events: none; transition: background 0.2s ease; }
.cookie-switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(20,33,61,0.25); transition: transform 0.2s ease; }
.cookie-switch input:checked + span { background: var(--hm-ink); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
[dir="rtl"] .cookie-switch input:checked + span::after { transform: translateX(-20px); }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.cookie-dialog-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 20px; border-top: 1px solid var(--gray-200); background: var(--hm-paper); }
.cookie-dialog-foot .ck-btn { flex: 1 1 auto; }
.cookie-dialog-foot .ck-btn-solid { flex-grow: 1.4; }
body.cookie-modal-open { overflow: hidden; }

@media (hover: none) {
    .ck-btn-solid:hover { background: var(--hm-ink); border-color: var(--hm-ink); }
    .ck-btn-ghost:hover { border-color: var(--hm-line); }
    .ck-link:hover, .cookie-dialog-close:hover { background: none; }
}

@media (max-width: 640px) {
    .cookie-banner { inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 18px 16px 10px; }
    /* Telefonda pencere alttan acilan panel */
    .cookie-modal { align-items: flex-end; padding: 0; }
    .cookie-dialog { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; animation-name: cookieSheet; }
    .cookie-dialog-head { padding: 16px 12px 0 16px; padding-inline: 16px 12px; }
    .cookie-dialog-body { padding: 12px 16px 4px; }
    .cookie-cat { align-items: flex-start; }
    .cookie-cat .cookie-switch { margin-top: 2px; }
    .cookie-dialog-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .cookie-dialog-foot .ck-btn { flex: 1 1 0; padding-inline: 10px; }
    .cookie-dialog-foot .ck-btn-solid { flex-basis: 100%; order: -1; }
}
@keyframes cookieSheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .cookie-banner, .cookie-modal, .cookie-dialog { animation: none; }
}

/* ===== Sinav sonuclarim: sinav bazinda gruplu sonuclar (public/my-results.php, includes/exams/results.php) ===== */
.results-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.rs-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.rs-item > i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 17px; }
.rs-item strong { display: block; font-size: 20px; line-height: 1.2; color: var(--dark); }
.rs-item span { font-size: 12.5px; color: var(--gray-600); }

.result-groups { display: flex; flex-direction: column; gap: 16px; }
.result-group { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.rg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 18px 20px; border-bottom: 1px solid var(--gray-200); }
.rg-info { flex: 1; min-width: 200px; }
.rg-title { font-size: 17px; line-height: 1.3; color: var(--dark); overflow-wrap: anywhere; }
.rg-cat { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--gray-600); }
.rg-cat i { font-size: 11px; color: var(--gray-400); }
.rg-stats { display: flex; gap: 6px; }
.rg-stat { min-width: 80px; padding: 6px 10px; border-radius: 10px; background: var(--gray-50); text-align: center; }
.rg-stat strong { display: block; font-size: 16px; line-height: 1.3; color: var(--dark); }
.rg-stat strong.is-passed { color: var(--success); }
.rg-stat strong.is-failed { color: var(--danger); }
.rg-stat span { font-size: 11.5px; color: var(--gray-600); }
.rg-retake { flex-shrink: 0; }

.attempt-list-head, .attempt-row { display: grid; grid-template-columns: 90px 76px minmax(150px, 1fr) 70px 128px 118px 88px; align-items: center; gap: 12px; padding-inline: 20px; }
.attempt-list-head { padding-block: 9px; background: var(--gray-50); font-size: 11.5px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.02em; }
.attempt-list { list-style: none; margin: 0; padding: 0; }
.attempt-row { position: relative; padding-block: 11px; border-top: 1px solid var(--gray-100); font-size: 14px; }
.attempt-row:first-child { border-top: 0; }
.attempt-row:hover { background: #fafbfc; }
.attempt-no { font-weight: 600; color: var(--gray-700); white-space: nowrap; }
.attempt-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.ac { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--gray-50); font-size: 12.5px; font-weight: 700; }
.ac i { font-size: 10px; }
.ac-correct { color: var(--success); }
.ac-wrong { color: var(--danger); }
.ac-empty { color: var(--gray-500); }
.attempt-time, .attempt-date { font-size: 13px; color: var(--gray-600); white-space: nowrap; }
.attempt-time i, .attempt-date i { margin-inline-end: 6px; color: var(--gray-400); }
.attempt-detail { justify-self: end; white-space: nowrap; }
.attempt-detail i { font-size: 10px; }
.rg-more { padding: 12px 20px; border-top: 1px solid var(--gray-100); text-align: center; }
.rg-more .btn i { font-size: 11px; }
.rg-more-error { margin-top: 8px; font-size: 13px; color: var(--danger); }
.rg-more-error[hidden] { display: none; }

@media (max-width: 1024px) {
    .attempt-list-head, .attempt-row { grid-template-columns: 84px 70px minmax(140px, 1fr) 64px 124px 84px; }
    .attempt-list-head span:nth-child(6), .attempt-status { display: none; }
}

@media (max-width: 768px) {
    .results-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
    .rs-item { gap: 10px; padding: 12px; }
    .rs-item > i { width: 36px; height: 36px; font-size: 15px; }
    .rs-item strong { font-size: 17px; }

    .result-groups { gap: 12px; }
    .rg-head { gap: 12px; padding: 14px 16px; }
    .rg-info { flex-basis: 100%; min-width: 0; }
    .rg-stats { flex: 1 1 100%; }
    .rg-stat { flex: 1; min-width: 0; }
    .rg-retake { flex: 1 1 100%; justify-content: center; }

    /* Deneme satiri 2 satirlik kompakt duzen: [no  tarih  puan] / [D-Y-B  sure  detay] */
    .attempt-list-head { display: none; }
    .attempt-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no date score" "counts time detail"; gap: 8px 10px; padding: 12px 16px; }
    .attempt-no { grid-area: no; }
    .attempt-date { grid-area: date; }
    .attempt-score { grid-area: score; justify-self: end; }
    .attempt-counts { grid-area: counts; flex-wrap: nowrap; gap: 4px; }
    .attempt-time { grid-area: time; }
    .attempt-detail { grid-area: detail; padding: 5px 10px; font-size: 12.5px; }
    /* Durum rozeti gorsel olarak gizli (puan rengi zaten gosteriyor) ama ekran okuyucuda kalir */
    .attempt-status { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rg-more { padding: 10px 16px; }
    .rg-more .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
    .attempt-time i, .attempt-date i { display: none; }
    .ac { padding: 2px 6px; }
}

/* ===== Destek: teknik destek icin Gemini cevirisi (includes/support/support-chat.php, sadece admin) ===== */
.support-translate-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 16px; border-bottom: 1px solid var(--gray-200); background: #f7f5ff; font-size: 13px; color: var(--gray-700); }
.support-gemini-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #6d28d9; }
.support-translate-bar label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.support-translate-bar select { padding: 5px 8px; border: 1.5px solid var(--gray-300); border-radius: 8px; background: var(--white); font-family: var(--font); font-size: 13px; }
.support-translate-bar .btn { padding: 5px 12px; font-size: 12.5px; }
.support-user-lang { margin-inline-start: auto; }

.support-bubble-extra { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--gray-300); font-size: 13.5px; }
.support-msg.is-mine .support-bubble-extra { border-top-color: rgba(255,255,255,0.4); }
.support-bubble-label { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.75; }
.support-bubble-subtext { line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-translate-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: #6d28d9; }
.support-translate-btn:hover { text-decoration: underline; }
.support-translate-btn:disabled { opacity: 0.6; cursor: wait; text-decoration: none; }
.support-translation-error { margin-top: 2px; font-size: 12px; color: var(--danger); }

.support-translate-note { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; font-size: 12.5px; color: #6d28d9; }
.support-translate-note.is-plain { color: var(--gray-600); }
/* Gonder secimi: kullanicinin dili farkliysa buton menu acar (Gemini ile cevir / cevirmeden gonder) */
.support-send-wrap { position: relative; flex-shrink: 0; }
.support-send-btn.has-choice { width: auto; gap: 8px; padding: 0 14px 0 16px; border-radius: 22px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.support-send-caret { font-size: 10px; opacity: 0.85; transition: transform 0.2s ease; }
.support-send-btn[aria-expanded="true"] .support-send-caret { transform: rotate(180deg); }
.support-send-menu { position: absolute; z-index: 20; bottom: calc(100% + 8px); inset-inline-end: 0; width: 290px; max-width: calc(100vw - 32px); padding: 6px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(22,33,62,0.35); }
.support-send-option { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: start; font-family: var(--font); color: var(--gray-800); }
.support-send-option:hover, .support-send-option:focus-visible { background: var(--gray-100); outline: none; }
.support-send-option > i { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 13px; }
.support-send-option[data-send-mode="translate"] > i { background: #ede9fe; color: #6d28d9; }
.support-send-option strong { display: block; font-size: 14px; }
.support-send-option small { display: block; margin-top: 1px; font-size: 12px; color: var(--gray-600); }
.support-composer-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.support-composer-feedback .support-composer-error { padding: 6px 8px 0; }
.support-raw-send { margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: underline; }

@media (max-width: 768px) {
    .support-translate-bar { gap: 6px 10px; padding: 8px 12px; }
    .support-gemini-mark { display: none; }
    .support-user-lang { flex-basis: 100%; margin-inline-start: 0; }
    .support-send-btn.has-choice { gap: 6px; padding: 0 12px; }
    .support-send-btn.has-choice [data-send-label] { display: none; }
}

/* ===== Profil menusu bildirimleri: destek yanitlari (includes/layout/header.php, assets/js/notifications.js) ===== */
.nav-dot[hidden], .nav-count[hidden] { display: none; }
.dropdown-menu.has-notif { min-width: 320px; }
.notif-head { display: flex; align-items: center; gap: 8px; padding: 6px 16px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--gray-600); }
.notif-head i { color: var(--primary); }
.notif-head .nav-count { margin-inline-start: auto; }
.dropdown-menu a.notif-item { align-items: flex-start; gap: 12px; padding: 10px 16px; background: #f5f9ff; border-inline-start: 3px solid var(--primary); }
.dropdown-menu a.notif-item + a.notif-item { margin-top: 2px; }
.dropdown-menu a.notif-item:hover { background: var(--primary-light); color: inherit; }
.notif-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--white); font-size: 14px; }
.notif-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.notif-title { font-size: 12px; font-weight: 700; color: var(--primary); }
.notif-subject, .notif-snippet { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-subject { font-size: 14px; font-weight: 600; color: var(--dark); }
.notif-snippet { font-size: 13px; color: var(--gray-600); }
.notif-time { margin-top: 2px; font-size: 11.5px; color: var(--gray-500); }
.dropdown-menu a.notif-more { justify-content: center; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ===== Teknik destek: talep sahibi kullanici bilgileri (admin/support-user.php) ===== */
.support-user-link { flex-shrink: 0; }
.su-scope-note { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: #f7f5ff; font-size: 13px; color: var(--gray-700); }
.su-scope-note i { color: #6d28d9; }
.su-profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; padding: 20px; }
.su-avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); font-size: 22px; font-weight: 700; }
.su-identity { flex: 1; min-width: 200px; }
.su-identity h2 { font-size: 20px; line-height: 1.3; color: var(--dark); }
.su-email { font-size: 14px; color: var(--gray-600); overflow-wrap: anywhere; }
.su-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.su-meta { font-size: 13px; line-height: 1.7; color: var(--gray-600); text-align: end; }
.su-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 16px; }
.su-stats .pay-stat-value small { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.su-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.su-tab { padding: 7px 12px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--gray-700); white-space: nowrap; }
.su-tab:hover { color: var(--primary); }
.su-tab .count { margin-inline-start: 4px; font-weight: 500; opacity: 0.65; }
.su-section { margin-bottom: 16px; scroll-margin-top: 16px; }
.su-muted { font-size: 12.5px; color: var(--gray-500); }
.su-empty { margin: 0; padding: 6px 0; font-size: 14px; color: var(--gray-500); }
.su-inline-alert { margin: 0 0 16px; max-width: none; }
.su-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 24px; margin: 0; }
.su-kv div { min-width: 0; }
.su-kv dt { font-size: 12px; color: var(--gray-500); }
.su-kv dd { margin: 2px 0 0; font-size: 14px; color: var(--dark); overflow-wrap: anywhere; }
/* Cok sutunlu tablolar (10 sutun) 1366px ekranda yatay kaydirmasiz sigsin */
.su-table th, .su-table td { padding: 10px 10px; font-size: 13.5px; white-space: nowrap; }
.su-table th { font-size: 11.5px; }
.su-table td.su-wrap { min-width: 160px; white-space: normal; }
.su-table td.su-agent { max-width: 320px; font-size: 12.5px; color: var(--gray-600); }
.su-table code { font-size: 12px; }
.su-row-current td { background: #f5f9ff; }
.su-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.su-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: 12px; }
.su-badge > i { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; }
.su-badge strong { display: block; font-size: 13.5px; }
.su-badge small { display: block; font-size: 12px; color: var(--gray-500); }

.su-attempt-detail { margin-bottom: 16px; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; scroll-margin-top: 16px; }
.su-attempt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.su-attempt-head h3 { flex: 1; min-width: 200px; font-size: 15px; }
.su-question { padding: 14px 16px; border-top: 1px solid var(--gray-100); }
.su-attempt-head + .su-question { border-top: 0; }
.su-question-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.su-qno { font-weight: 700; color: var(--gray-700); }
.su-question-text { font-size: 14.5px; line-height: 1.6; color: var(--dark); overflow-wrap: anywhere; }
.su-question-img { display: block; max-width: 100%; max-height: 220px; margin-top: 8px; border: 1px solid var(--gray-200); border-radius: 8px; }
.su-options { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.su-option { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 14px; }
.su-option-letter { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-100); font-size: 13px; font-weight: 700; }
.su-option.is-correct { border-color: var(--success); background: #e6f4ea; }
.su-option.is-correct .su-option-letter { background: var(--success); color: var(--white); }
.su-option.is-wrong { border-color: var(--danger); background: #fce8e6; }
.su-option.is-wrong .su-option-letter { background: var(--danger); color: var(--white); }
.su-option-tag { margin-inline-start: auto; font-size: 12px; font-weight: 600; white-space: nowrap; }

.su-timeline { margin: 0; padding: 0; list-style: none; }
.su-event { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gray-100); }
.su-event:first-child { border-top: 0; }
.su-event-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-600); font-size: 13px; }
.su-event-icon.is-primary { background: var(--primary-light); color: var(--primary); }
.su-event-icon.is-success { background: #e6f4ea; color: var(--success); }
.su-event-icon.is-warning { background: #fef7e0; color: #b45309; }
.su-event-icon.is-danger { background: #fce8e6; color: var(--danger); }
.su-event-body { flex: 1; min-width: 0; }
.su-event-title { font-size: 14px; font-weight: 600; color: var(--dark); }
.su-event-detail { font-size: 13px; color: var(--gray-600); overflow-wrap: anywhere; }
.su-event-time { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.su-activity-note { margin: 10px 0 0; }

@media (max-width: 1024px) {
    .su-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .admin-page-header.su-header { flex-wrap: wrap; gap: 10px; }
    .su-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .su-meta { flex-basis: 100%; text-align: start; }
    .su-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
    .su-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .su-event { flex-wrap: wrap; }
    .su-event-time { flex-basis: 100%; padding-inline-start: 44px; }
    .su-option-tag { display: none; }
    .support-user-link span { display: none; }
}

/* ===== Eski ana sayfa siniflarindan hakkimizda sayfasinin (public/about.php) kullandiklari: home-section/heading/eyebrow/btn/cta ===== */
.home-section { padding: 88px 0; }
.home-heading { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.home-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; text-align: start; }
.home-heading-row > div { max-width: 640px; }
.home-heading h2 { margin-bottom: 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--dark); }
.home-heading p { font-size: 16.5px; line-height: 1.7; color: var(--gray-600); }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.home-heading-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.home-heading-link i { transition: transform 0.2s ease; }
.home-heading-link:hover i { transform: translateX(4px); }

.home-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16px; font-weight: 700; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.home-btn-primary { background: linear-gradient(135deg, var(--primary), #3b82f6); color: var(--white); box-shadow: 0 14px 30px -12px rgba(59,130,246,0.8); }
.home-btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(59,130,246,0.9); }
.home-btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.24); }
.home-btn-ghost:hover { background: rgba(255,255,255,0.16); color: var(--white); }
.home-btn-light { background: var(--white); color: var(--primary); }
.home-btn-light:hover { background: var(--secondary); color: var(--dark); transform: translateY(-2px); }

/* CTA */
.home-cta-wrap { padding-top: 0; background: var(--gray-50); }
.home-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; overflow: hidden; border-radius: 28px; color: var(--white);
    background: radial-gradient(600px 300px at 92% 0%, rgba(244,180,0,0.32), transparent 60%), linear-gradient(135deg, var(--primary) 0%, #1e3a8a 60%, #16213e 100%); }
.home-cta::after { content: ''; position: absolute; width: 320px; height: 320px; inset-inline-start: -120px; bottom: -200px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); box-shadow: inset 0 0 0 60px rgba(255,255,255,0.03); pointer-events: none; }
.home-cta-text { position: relative; z-index: 1; }
.home-cta h2 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.home-cta p { max-width: 560px; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,0.8); }
.home-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; }

/* Dokunmatik cihazda hover kaldirma efekti "takili" kalmasin */
@media (hover: none) {
    .home-btn-primary:hover, .home-btn-light:hover { transform: none; }
}

/* Genis tablet / kucuk laptop (yatay iPad): iki sutunlu hero korunur, biraz sikistirilir */
@media (max-width: 1100px) {
    .home-section { padding: 72px 0; }
    .home-cta { padding: 44px; }
}

/* Dikey tablet: hero tek sutun ve ortali, gorsel altta daha kucuk */
@media (max-width: 900px) {
    .home-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .home-section { padding: 56px 0; }
    .home-heading { margin-bottom: 28px; }
    .home-heading p { font-size: 15px; }
    .home-cta { padding: 32px 24px; border-radius: 22px; }
}

/* Telefon: tek sutun */
@media (max-width: 640px) {
    .home-heading-row { flex-direction: column; align-items: flex-start; }
    .home-cta-actions, .home-cta-actions .home-btn { width: 100%; }
}

/* ===== Ana sayfa (public/index.php) - hm-* ; matematik defteri: kareli kagit, lacivert murekkep, olimpiyat altini ===== */
.hm-hero, .hm-section-paper {
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Hero */
.hm-hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hm-hero-grid.is-no-art { grid-template-columns: minmax(0, 1fr); }
.hm-hero-grid.is-no-art .hm-hero-copy { max-width: 780px; }
.hm-hero h1 { margin-bottom: 20px; font-family: var(--hm-display); font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--hm-ink); }
.hm-hero h1 span { display: block; }
.hm-lead { max-width: 34em; margin-bottom: 28px; font-size: 18px; line-height: 1.6; color: var(--hm-text); }
.hm-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Butonlar: basilabilir, alt golgeli (oyun dugmesi hissi) */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease; }
.hm-btn:active { transform: scale(0.98); }
.hm-btn:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 3px; }
.hm-btn-primary { background: var(--hm-ink); color: var(--white); }
.hm-btn-outline { background: var(--white); color: var(--hm-ink); border: 1px solid rgba(20,33,61,0.18); }
.hm-btn-gold { background: var(--hm-gold); color: var(--hm-ink); }
.hm-btn-on-dark { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }

.hm-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 36px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(20,33,61,0.1); }
.hm-facts > div { display: flex; flex-direction: column-reverse; }
.hm-facts dd { font-family: var(--hm-display); font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--hm-ink); }
.hm-facts dt { font-size: 13px; color: var(--hm-muted); }

/* Hero gorseli */
.hm-hero-photo { margin: 0; }
.hm-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 13; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 48px -24px rgba(20,33,61,0.35); }

/* Bolumler */
.hm-section { padding: 88px 0; background: var(--white); }
.hm-section.hm-section-paper { background-color: var(--hm-paper); }
.hm-section.hm-section-tight { padding-top: 0; }
.hm-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.hm-head h2 { margin-bottom: 12px; font-family: var(--hm-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); }
.hm-head p { font-size: 16.5px; line-height: 1.65; color: var(--hm-text); }
.hm-head.hm-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; text-align: start; }
.hm-head-row > div { max-width: 640px; }
.hm-head.hm-head-start { margin: 0 0 28px; text-align: start; }
.hm-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--primary); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Nasil calisir: kesik cizgiyle bagli 3 adim */
.hm-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; }
.hm-steps::before { content: ''; position: absolute; top: 28px; inset-inline: 16.66%; border-top: 1px solid rgba(20,33,61,0.12); }
.hm-steps li { position: relative; padding: 0 8px; text-align: center; }
.hm-step-no { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--hm-ink); color: var(--white); font-family: var(--hm-display); font-size: 22px; font-weight: 800; box-shadow: 0 0 0 8px var(--white); }
.hm-steps li:nth-child(2) .hm-step-no { background: var(--primary); }
.hm-steps li:nth-child(3) .hm-step-no { background: var(--hm-gold); color: var(--hm-ink); }
.hm-steps h3 { margin-bottom: 8px; font-size: 19px; font-weight: 700; color: var(--hm-ink); }
.hm-steps p { max-width: 30ch; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--hm-text); }

/* Olimpiyatlar: renkli defter sekmesi */
.hm-olys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 380px)); justify-content: center; gap: 28px 24px; }
.hm-oly { position: relative; padding: 24px 24px 16px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -20px rgba(20,33,61,0.25); }
.hm-oly-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.hm-oly-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--oly, var(--primary)); color: var(--white); font-size: 20px; }
.hm-oly h3 { margin-bottom: 2px; font-size: 18px; font-weight: 700; color: var(--hm-ink); }
.hm-oly-top p { font-size: 14px; line-height: 1.5; color: var(--hm-text); }
.hm-oly-cats { display: grid; gap: 8px; margin-bottom: 8px; list-style: none; }
.hm-oly-cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1.5px solid transparent; border-radius: 10px; background: var(--hm-paper); color: var(--hm-ink); }
.hm-oly-cats strong { font-size: 15px; }
.hm-oly-cats span { font-size: 13px; color: var(--hm-muted); white-space: nowrap; }

/* Sinav karti: bilet (ust bilgi, kesik cizgili koçan) */
.hm-exams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.hm-exam { display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -20px rgba(20,33,61,0.25); }
.hm-exam-main { flex: 1; padding: 22px 22px 18px; }
.hm-exam-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hm-exam-cat, .hm-exam-grade { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.hm-exam-cat { background: var(--primary-light); color: var(--primary); }
.hm-exam-grade { background: #fff4d1; color: #7a5a00; }
.hm-exam h3 { margin-bottom: 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--hm-ink); overflow-wrap: anywhere; }
.hm-exam-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; font-size: 14px; line-height: 1.55; color: var(--hm-text); }
.hm-exam-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; font-size: 13.5px; color: var(--hm-text); }
.hm-exam-meta i { margin-inline-end: 4px; color: #8a96b3; }
.hm-exam-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid rgba(20,33,61,0.07); }
.hm-price { font-family: var(--hm-display); font-size: 18px; font-weight: 700; color: var(--hm-ink); }
.hm-price small { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--hm-muted); }
.hm-price s { margin-inline-end: 4px; font-family: var(--font); font-size: 13px; font-weight: 500; color: #8a96b3; }
.hm-price em { margin-inline-start: 4px; padding: 2px 6px; border-radius: 6px; background: var(--hm-coral); color: var(--white); font-family: var(--font); font-size: 12px; font-style: normal; }
.hm-price.is-owned { font-family: var(--font); font-size: 14px; color: var(--hm-mint); }
.hm-exam-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--hm-ink); color: var(--white); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.hm-exam-btn:focus-visible, .hm-oly-cats a:focus-visible, .hm-link:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 2px; }

/* Neden Atlantia */
.hm-why { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hm-why-photo { margin: 0; }
.hm-why-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 48px -24px rgba(20,33,61,0.35); }
.hm-why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; list-style: none; }
.hm-why-list li { display: flex; gap: 14px; }
.hm-why-list i { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); font-size: 18px; }
.hm-why-list h3 { margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--hm-ink); }
.hm-why-list p { font-size: 14px; line-height: 1.55; color: var(--hm-text); }

/* Kapanis */
.hm-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 52px 56px; border-radius: 24px; color: var(--white);
    background-color: var(--hm-ink);
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px; }
.hm-cta h2 { position: relative; z-index: 1; max-width: 16em; font-family: var(--hm-display); font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.hm-cta .hm-actions { position: relative; z-index: 1; }

@media (hover: hover) {
    .hm-btn-primary:hover { background: #22325a; color: var(--white); }
    .hm-btn-outline:hover { background: var(--hm-paper); color: var(--hm-ink); }
    .hm-btn-gold:hover { background: #ffc21a; color: var(--hm-ink); }
    .hm-btn-on-dark:hover { background: rgba(255,255,255,0.1); color: var(--white); }
    .hm-oly-cats a:hover { border-color: var(--oly, var(--primary)); color: var(--hm-ink); }
    .hm-exam-btn:hover { background: var(--primary); color: var(--white); }
}
@media (prefers-reduced-motion: reduce) {
    .hm-btn { transition: none; }
    .hm-btn:active { transform: none; }
}
@media (max-width: 1100px) {
    .hm-hero-grid, .hm-why { gap: 40px; }
    .hm-section { padding: 72px 0; }
}
@media (max-width: 900px) {
    /* Dikey tablet: soru karti basligin altina, gorsel yatay */
    .hm-hero { padding: 48px 0 72px; }
    .hm-hero-grid { grid-template-columns: 1fr; }
    .hm-why { grid-template-columns: 1fr; }
    .hm-why-photo img, .hm-hero-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
    .hm-section { padding: 56px 0; }
    .hm-head { margin-bottom: 28px; }
    .hm-head p { font-size: 15px; }
    .hm-steps { grid-template-columns: 1fr; gap: 28px; }
    .hm-steps::before { top: 28px; bottom: 28px; inset-inline: 27px auto; border-top: 0; border-inline-start: 1px solid rgba(20,33,61,0.12); }
    .hm-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 0; text-align: start; }
    .hm-step-no { grid-row: span 2; margin: 0; }
    .hm-steps p { max-width: none; margin: 0; }
    .hm-cta { padding: 36px 28px; }
}
@media (max-width: 640px) {
    .hm-hero { padding: 32px 0 56px; }
    .hm-lead { font-size: 16px; }
    .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-actions .hm-btn { flex: 1 1 100%; }
    .hm-head.hm-head-row { flex-direction: column; align-items: flex-start; }
    .hm-why-list { grid-template-columns: 1fr; }
    .hm-cta .hm-actions { width: 100%; }
}

/* ===== Sinavlar listesi (public/exams.php) - exlist-* ; sade, okunakli (buyuk yazi, genis dokunma alani), ana sayfa renkleri --hm-* ===== */
.exlist-hero { padding: 48px 0 36px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.exlist-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; background: var(--white); color: var(--pill-color, var(--hm-ink)); font-size: 22px; box-shadow: 0 8px 24px -16px rgba(20,33,61,0.4); }
.exlist-hero h1 { max-width: 20em; margin-bottom: 10px; font-family: var(--hm-display); font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); }
.exlist-hero p { max-width: 40em; font-size: 17px; line-height: 1.6; color: var(--hm-text); }

.exlist-body { padding: 28px 0 72px; background: var(--white); }

/* Filtreler */
.exlist-filters { display: grid; gap: 14px; margin-bottom: 28px; padding: 18px 20px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.exlist-filter-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; }
.exlist-filter-row + .exlist-filter-row { padding-top: 14px; border-top: 1px solid rgba(20,33,61,0.07); }
.exlist-filter-label { font-size: 15px; font-weight: 600; color: var(--hm-muted); }
.exlist-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.exlist-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 16px 5px 5px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--white); color: var(--hm-ink); text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.exlist-pill-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--hm-paper); color: var(--pill-color, var(--hm-ink)); font-size: 15px; }
.exlist-pill-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.exlist-pill-name { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.exlist-pill-count { font-size: 12.5px; color: var(--hm-muted); }
.exlist-pill.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.exlist-pill.is-active .exlist-pill-icon { background: rgba(255,255,255,0.14); color: var(--white); }
.exlist-pill.is-active .exlist-pill-count { color: rgba(255,255,255,0.75); }
.exlist-pill.is-empty { opacity: 0.55; }

.exlist-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--white); color: var(--hm-ink); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.exlist-chip small { font-size: 13px; color: var(--hm-muted); }
.exlist-chip.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); font-weight: 600; }
.exlist-chip.is-active small { color: rgba(255,255,255,0.75); }

/* Sonuc sayisi + arama */
.exlist-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 8px; }
.exlist-toolbar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.exlist-toolbar-meta strong { font-size: 17px; color: var(--hm-ink); }
.exlist-clear { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--primary); }
.exlist-search { position: relative; display: flex; align-items: center; width: min(360px, 100%); }
.exlist-search > i { position: absolute; inset-inline-start: 18px; color: var(--hm-muted); pointer-events: none; }
.exlist-search input { width: 100%; height: 48px; padding-inline: 46px 44px; border: 1px solid rgba(20,33,61,0.15); border-radius: 999px; background: var(--white); color: var(--hm-ink); font: inherit; font-size: 16px; }
.exlist-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.exlist-search input::-webkit-search-cancel-button { display: none; }
.exlist-search button { position: absolute; inset-inline-end: 4px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--hm-muted); cursor: pointer; }
.exlist-search button[hidden] { display: none; }

/* Olimpiyat + kategori bolumleri */
.exlist-group { margin-top: 32px; }
.exlist-group[hidden] { display: none; }
.exlist-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(20,33,61,0.08); }
.exlist-group-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--exam-color, var(--primary)); color: var(--white); font-size: 19px; }
.exlist-group-title { flex: 1; min-width: 0; }
.exlist-group-title h2 { font-family: var(--hm-display); font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--hm-ink); }
.exlist-group-title h2 span { display: block; margin-bottom: 2px; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--hm-muted); }
.exlist-group-title p { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: #fff4d1; color: #6b4f00; font-size: 14px; font-weight: 600; }
.exlist-group-count { display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--hm-paper); color: var(--hm-ink); font-size: 15px; font-weight: 700; }

/* Sinav kartlari */
.exlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 20px; }
.exlist-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -22px rgba(20,33,61,0.3); }
.exlist-card[hidden] { display: none; }
.exlist-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--hm-ink); overflow-wrap: anywhere; }
.exlist-card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: -6px; font-size: 15px; line-height: 1.55; color: var(--hm-text); }
.exlist-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.exlist-meta li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--hm-paper); color: var(--hm-text); font-size: 14px; font-weight: 500; }
.exlist-meta i { color: var(--hm-muted); font-size: 13px; }

.exlist-progress { padding: 12px 14px; border-radius: 14px; background: var(--hm-paper); }
.exlist-progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; font-size: 14px; color: var(--hm-text); }
.exlist-progress-top strong { color: var(--hm-ink); }
.exlist-progress-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(20,33,61,0.1); }
.exlist-progress-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; background: var(--hm-mint); }
.exlist-progress.is-failed .exlist-progress-bar span { background: var(--hm-gold); }
.exlist-progress-bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--hm-ink); }

.exlist-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(20,33,61,0.07); }
.exlist-price { font-family: var(--hm-display); font-size: 20px; font-weight: 700; color: var(--hm-ink); }
.exlist-price small { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--hm-muted); }
.exlist-price.is-free, .exlist-price.is-purchased { font-family: var(--font); font-size: 16px; color: #0a7250; }
.exlist-price.is-discounted s { margin-inline-end: 4px; font-family: var(--font); font-size: 14px; font-weight: 500; color: #8a96b3; }
.exlist-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--hm-ink); border-radius: 999px; background: var(--hm-ink); color: var(--white); font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease; }
.exlist-btn.is-buy { border-color: var(--primary); background: var(--primary); }
.exlist-btn.is-outline { background: var(--white); color: var(--hm-ink); border-color: rgba(20,33,61,0.2); }

.exlist-pill:focus-visible, .exlist-chip:focus-visible, .exlist-btn:focus-visible, .exlist-clear:focus-visible, .exlist-search button:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 2px; }

/* Bos durum */
.exlist-empty { max-width: 520px; margin: 40px auto 0; padding: 40px 24px; text-align: center; background: var(--hm-paper); border-radius: 24px; }
.exlist-empty[hidden] { display: none; }
.exlist-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--white); color: var(--hm-muted); font-size: 24px; }
.exlist-empty h3 { margin-bottom: 8px; font-family: var(--hm-display); font-size: 20px; font-weight: 700; color: var(--hm-ink); }
.exlist-empty p { margin-bottom: 18px; font-size: 16px; line-height: 1.6; color: var(--hm-text); }

@media (hover: hover) {
    .exlist-pill:not(.is-active):hover, .exlist-chip:not(.is-active):hover { border-color: rgba(20,33,61,0.35); background: var(--hm-paper); color: var(--hm-ink); }
    .exlist-btn:hover { background: #22325a; border-color: #22325a; color: var(--white); }
    .exlist-btn.is-buy:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
    .exlist-btn.is-outline:hover { background: var(--hm-paper); color: var(--hm-ink); border-color: rgba(20,33,61,0.35); }
}
@media (prefers-reduced-motion: reduce) {
    .exlist-pill, .exlist-chip, .exlist-btn { transition: none; }
}
@media (max-width: 900px) {
    /* Dikey tablet: filtre etiketi ustte */
    .exlist-filter-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
    .exlist-hero { padding: 32px 0 24px; }
    .exlist-hero p { font-size: 16px; }
    .exlist-body { padding-top: 20px; }
    .exlist-filters { padding: 16px; border-radius: 18px; }
    /* Olimpiyatlar iki sutun; "Tumu" tam genislik */
    .exlist-pills.exlist-olympiad-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .exlist-olympiad-pills .exlist-pill { min-width: 0; padding-inline-end: 10px; border-radius: 16px; }
    .exlist-olympiad-pills .exlist-pill-all { grid-column: 1 / -1; }
    .exlist-toolbar { flex-direction: column; align-items: stretch; }
    .exlist-search { width: 100%; }
    .exlist-group-title h2 { font-size: 18px; }
    .exlist-card { padding: 18px; }
    .exlist-card-foot .exlist-btn { flex: 1 1 100%; }
}

/* ===== Kampanyalar (public/campaigns.php) - cmp-* ===== */
.nav-campaign-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ea4335; color: var(--white); font-size: 11px; font-weight: 800; }
.nav-campaigns i { color: #ea4335; }
.cmp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.cmp-eyebrow i { color: var(--secondary); }
.cmp-hero h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.12; }
.cmp-hero p { max-width: 620px; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,0.78); }
.cmp-body { min-height: 50vh; padding: 28px 0 64px; background: var(--white); }
.cmp-section-title { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; font-size: 22px; font-weight: 800; color: var(--dark); }
.cmp-section-title i { color: #ea4335; }
.cmp-section-title:not(:first-child) { margin-top: 44px; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.cmp-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--cmp-color); display: none; }
.cmp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cmp-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--cmp-color); }
.cmp-off { padding: 5px 11px; border-radius: 999px; background: #ea4335; color: var(--white); font-size: 13px; font-weight: 800; }
.cmp-badge { align-self: flex-start; margin-bottom: 8px; padding: 4px 10px; border-radius: 8px; background: rgba(244,180,0,0.16); color: #8a5a00; font-size: 12.5px; font-weight: 700; }
.cmp-card h3 { margin-bottom: 6px; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--dark); }
.cmp-desc { margin-bottom: 12px; font-size: 14.5px; line-height: 1.6; color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-includes { margin: 4px 0 6px; font-size: 13px; font-weight: 700; color: var(--gray-600); }
.cmp-exams { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.cmp-exams li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; border-radius: 10px; background: var(--gray-50); font-size: 14px; }
.cmp-exams li.is-owned { background: #e8f5e9; }
.cmp-exams li.is-owned .cmp-exam-name i { color: var(--success); }
.cmp-exam-name { flex: 1; min-width: 0; color: var(--dark); font-weight: 600; overflow-wrap: anywhere; }
.cmp-exam-price { color: var(--gray-600); white-space: nowrap; }
.cmp-exam-price s { color: var(--gray-500); }
.cmp-exam-price strong { color: var(--dark); }
.cmp-exam-action { flex-shrink: 0; }
.cmp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--gray-200); }
.cmp-price s { color: var(--gray-500); font-size: 16px; }
.cmp-price strong { font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1.1; }
.cmp-price small { font-size: 13px; font-weight: 600; color: var(--gray-500); }
.cmp-saving { padding: 4px 10px; border-radius: 8px; background: #e8f5e9; color: #1b5e20; font-size: 13px; font-weight: 700; }
.cmp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 13px; color: var(--gray-600); margin-top: 8px; }
.cmp-meta i { color: #ea4335; }
.cmp-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #eff6ff; color: #1e3a5f; font-size: 13px; }
.cmp-actions { display: grid; gap: 8px; margin-top: 14px; }
.cmp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--cmp-color); border-radius: 12px; background: var(--cmp-color); color: var(--white); font-size: 15px; font-weight: 700; }
.cmp-btn:hover { color: var(--white); filter: brightness(1.08); }
.cmp-btn.is-outline { background: transparent; color: var(--cmp-color); }
.cmp-btn.is-muted, .cmp-mini-btn.is-muted { border-color: var(--gray-200); background: var(--gray-100); color: var(--gray-600); cursor: default; filter: none; }
.cmp-mini-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--cmp-color); border-radius: 10px; background: var(--cmp-color); color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cmp-mini-btn:hover { color: var(--white); filter: brightness(1.08); }
.cmp-mini-btn.is-outline { background: transparent; color: var(--cmp-color); }
.cmp-empty { padding: 56px 24px; border: 1px dashed var(--gray-200); border-radius: 20px; background: var(--white); text-align: center; }
.cmp-empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: #fdecea; color: #ea4335; font-size: 28px; }
.cmp-empty p { margin-bottom: 18px; color: var(--gray-600); }
/* Kartlarda kampanya indirimi (exams.php, index.php) */
.price-off { margin-inline-start: 4px; padding: 2px 6px; border-radius: 6px; background: #ea4335; color: var(--white); font-size: 11px; font-style: normal; font-weight: 800; vertical-align: middle; }
/* Odeme sayfasi: kampanya */
.pay-campaign-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: #fdecea; color: #b71c1c; font-size: 12.5px; font-weight: 700; }
.pay-hero-original { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: #64748b; }
.pay-hero-original span { padding: 2px 8px; border-radius: 6px; background: #e8f5e9; color: #1b5e20; font-weight: 700; font-size: 12.5px; }
.pay-campaign-note { margin: 8px 0 0; font-size: 13px; color: #1e3a5f; }
/* Paket odemesi: ne alindigini anlatan ozet */
.pay-hero--bundle { --cmp-color: var(--primary); text-align: start; }
.pay-cmp-cover { display: block; width: 100%; aspect-ratio: 2 / 1; margin-bottom: 14px; overflow: hidden; border-radius: 14px; background: #eef1f8; }
.pay-cmp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pay-cmp-tags .pay-campaign-badge { margin: 0; background: color-mix(in srgb, var(--cmp-color) 14%, #fff); color: var(--cmp-color); }
.pay-cmp-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 12.5px; font-weight: 700; }
.pay-cmp-title { margin: 4px 0 6px; font-size: 22px; font-weight: 800; line-height: 1.25; color: #0f172a; }
.pay-cmp-desc { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: #475569; }
.pay-cmp-head { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; font-size: 14px; font-weight: 800; color: #0f172a; }
.pay-cmp-head span { font-size: 12.5px; font-weight: 600; color: #64748b; }
.pay-cmp-exams { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pay-cmp-exams li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.pay-cmp-exams li > i { flex-shrink: 0; color: var(--cmp-color); font-size: 17px; }
.pay-cmp-exams li.is-owned { background: #f0fdf4; border-color: #bbf7d0; }
.pay-cmp-exams li.is-owned > i, .pay-cmp-exams li.is-owned .pay-cmp-exam-price { color: #15803d; }
.pay-cmp-exam { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pay-cmp-exam strong { font-size: 14px; color: #0f172a; overflow-wrap: anywhere; }
.pay-cmp-exam small { font-size: 12.5px; color: #64748b; }
.pay-cmp-exam-price { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #64748b; white-space: nowrap; }
.pay-cmp-summary { display: grid; gap: 6px; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.pay-cmp-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pay-cmp-summary dt { font-size: 14px; color: #475569; }
.pay-cmp-summary dd { margin: 0; font-size: 14.5px; font-weight: 700; color: #0f172a; }
.pay-cmp-summary .is-discount dd { color: #b91c1c; }
.pay-cmp-summary .is-total { margin-top: 4px; padding-top: 10px; border-top: 1px dashed #cbd5e1; }
.pay-cmp-summary .is-total dt { font-weight: 800; color: #0f172a; }
.pay-cmp-summary .is-total .pay-hero-amount { margin: 0; font-size: 30px; }
.pay-cmp-benefits { display: grid; gap: 6px; margin: 14px 0 10px; padding: 0; list-style: none; font-size: 13.5px; color: #334155; }
.pay-cmp-benefits li { display: flex; gap: 8px; align-items: flex-start; }
.pay-cmp-benefits i { width: 16px; margin-top: 3px; color: var(--cmp-color); text-align: center; }
.pay-cmp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--cmp-color); }
@media (max-width: 640px) { .pay-cmp-title { font-size: 19px; } .pay-cmp-summary .is-total .pay-hero-amount { font-size: 26px; } }
@media (max-width: 640px) {
    .cmp-hero { padding: 36px 0 48px; }
    .cmp-card { padding: 20px 16px; }
    .cmp-price strong { font-size: 26px; }
    .cmp-exams.is-discount li { align-items: flex-start; }
    .cmp-exam-action { width: 100%; }
    .cmp-exam-action .cmp-mini-btn { width: 100%; justify-content: center; min-height: 42px; }
}

/* Kampanya karti v2: kapak + govde (ust renk seridi yerine kapak/renk alani) */
.cmp-card { --cmp-color: var(--primary); position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 22px; background: var(--white); box-shadow: 0 20px 40px -32px rgba(22,33,62,0.5); padding: 0; }
.cmp-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 1; overflow: hidden; background: var(--cmp-color); color: rgba(255,255,255,0.85); font-size: 44px; }
.cmp-cover.is-empty { background: linear-gradient(135deg, var(--cmp-color), color-mix(in srgb, var(--cmp-color) 55%, #16213e)); }
.cmp-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.cmp-card:hover .cmp-cover img { transform: scale(1.03); }
.cmp-cover .cmp-off { position: absolute; top: 12px; inset-inline-end: 12px; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5); }
.cmp-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.cmp-card-top .cmp-badge { margin: 0; }
.cmp-card h3 a { color: inherit; }
.cmp-card h3 a:hover { color: var(--cmp-color); }
.cmp-includes i { color: var(--cmp-color); margin-inline-end: 4px; }
.cmp-price strong.is-text { font-size: 20px; color: var(--cmp-color); }
@media (hover: none) { .cmp-card:hover .cmp-cover img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cmp-cover img { transition: none; } }

/* ===== Kampanya detay (public/campaign.php) - cmpd-* ===== */
.cmpd-hero { --cmp-color: var(--primary); position: relative; overflow: hidden; padding: 40px 0 56px; color: var(--white);
    background: linear-gradient(135deg, color-mix(in srgb, var(--cmp-color) 75%, #0f1733), #16213e 70%); }
.cmpd-hero.has-cover { isolation: isolate; background: #16213e; }
.cmpd-hero-cover { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cmpd-hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,51,0.55), rgba(15,23,51,0.88)); }
.cmpd-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600; min-height: 44px; }
.cmpd-back:hover { color: var(--white); }
.cmpd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cmpd-type, .cmpd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.cmpd-type { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); }
.cmpd-badge { background: #f4b400; color: var(--dark); }
.cmpd-hero h1 { max-width: 820px; margin-bottom: 10px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15; }
.cmpd-desc { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.cmpd-body { padding: 28px 0 64px; background: var(--white); }
.cmpd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cmpd-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 14px; font-size: 21px; font-weight: 800; color: var(--dark); }
.cmpd-title span { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.cmpd-exams { display: grid; gap: 12px; }
.cmpd-exam { --exam-color: var(--primary); display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--gray-200); border-radius: 16px; background: var(--white); }
.cmpd-exam.is-owned { border-color: rgba(52,168,83,0.4); background: linear-gradient(180deg, rgba(52,168,83,0.05), #fff 40%); }
.cmpd-exam-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--exam-color) 14%, #fff); color: var(--exam-color); font-size: 18px; }
.cmpd-exam-main { flex: 1; min-width: 0; }
.cmpd-exam-kicker { display: block; font-size: 12px; font-weight: 700; color: var(--exam-color); overflow-wrap: anywhere; }
.cmpd-exam h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 700; color: var(--dark); }
.cmpd-exam p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--gray-600); }
.cmpd-exam-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cmpd-exam-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--gray-50); font-size: 12.5px; color: var(--gray-700); }
.cmpd-exam-meta i { font-size: 11px; color: var(--exam-color); }
.cmpd-exam-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; flex-shrink: 0; text-align: end; }
.cmpd-exam-price { font-size: 15px; color: var(--gray-600); white-space: nowrap; }
.cmpd-exam-price s { color: var(--gray-500); font-size: 13px; }
.cmpd-exam-price strong { color: var(--dark); font-size: 17px; }
.cmpd-owned { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 13px; font-weight: 700; }
.cmpd-terms { margin-top: 28px; padding: 16px 18px; border-top: 1px solid var(--gray-200); }
.cmpd-terms h2 { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--gray-600); }
.cmpd-terms ul { margin: 0; padding-inline-start: 18px; font-size: 13px; line-height: 1.7; color: var(--gray-500); }
.cmpd-side { position: sticky; top: 90px; }
.cmpd-buy { --cmp-color: inherit; display: grid; gap: 12px; padding: 22px; border: 1px solid var(--gray-200); border-radius: 18px; background: var(--white); box-shadow: 0 20px 40px -30px rgba(22,33,62,0.5); }
.cmpd-buy-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--gray-500); }
.cmpd-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.cmpd-buy-price s { color: var(--gray-500); font-size: 16px; }
.cmpd-buy-price strong { font-size: 32px; font-weight: 800; color: var(--dark); line-height: 1.1; }
.cmpd-buy-price strong.is-text { font-size: 22px; color: var(--cmp-color); }
.cmpd-buy-price small { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.cmpd-buy-end { margin: 0; font-size: 13.5px; color: var(--gray-600); }
.cmpd-buy-end i { color: #ea4335; }
@media (max-width: 900px) {
    .cmpd-layout { grid-template-columns: 1fr; }
    .cmpd-side { position: static; order: -1; }
}
@media (max-width: 640px) {
    .cmpd-hero { padding: 28px 0 40px; }
    .cmpd-exam { flex-wrap: wrap; padding: 14px; }
    .cmpd-exam-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; text-align: start; }
}

/* ===== Admin: Kampanyalar (admin/campaigns.php, campaign-edit.php) - cmpa-* ===== */
.cmpa-tabs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cmpa-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cmpa-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--gray-200); border-radius: 999px; color: var(--gray-700); font-size: 14px; font-weight: 600; }
.cmpa-tabs a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--gray-100); font-size: 12px; text-align: center; }
.cmpa-tabs a.is-active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.cmpa-tabs a.is-active span { background: rgba(255,255,255,0.25); color: var(--white); }
.cmpa-report-search { margin: 0; }
.cmpa-report-search input { min-height: 38px; padding: 6px 12px 6px 36px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.cmpa-thumb { width: 120px; height: 60px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.cmpa-audience label.is-disabled { opacity: 0.5; }
.cmpa-users { margin-top: 10px; padding: 12px; border: 1px dashed var(--gray-300); border-radius: 10px; background: var(--gray-50); }
.cmpa-users[hidden] { display: none; }
.cmpa-user-search input { width: 100%; min-height: 42px; padding: 8px 12px 8px 38px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white); font: inherit; font-size: 14px; }
.cmpa-user-results { display: grid; max-height: 240px; margin-top: 6px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); }
.cmpa-user-results[hidden] { display: none; }
.cmpa-user-row { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--gray-100); background: none; text-align: start; font: inherit; font-size: 14px; cursor: pointer; }
.cmpa-user-row:hover { background: var(--primary-light); }
.cmpa-user-row small { color: var(--gray-500); }
.cmpa-user-chips, .cmpa-target-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cmpa-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 12px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); font-size: 13px; }
.cmpa-chip small { color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmpa-chip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); font-size: 15px; line-height: 1; cursor: pointer; }
.cmpa-chip button:hover { background: #fdecea; color: #b71c1c; }
.cmpa-target-list .cmpa-chip { padding-inline-end: 12px; color: var(--gray-600); }
.cmpa-target-list .cmpa-chip.is-used { border-color: rgba(52,168,83,0.4); background: #e8f5e9; color: #1b5e20; }
.cmpa-cover-preview { display: block; width: 100%; max-height: 180px; margin-bottom: 8px; border-radius: 10px; object-fit: cover; }
.cmpa-cover-preview[hidden] { display: none; }
@media (max-width: 640px) { .cmpa-thumb { width: 100%; height: 110px; } }
/* Kampanya maili karti */
.cmpa-mail-info { margin: 0 0 12px; font-size: 13.5px; color: var(--gray-600); }
.cmpa-mail-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cmpa-mail-stats span { padding: 6px 12px; border-radius: 999px; background: var(--gray-100); font-size: 13.5px; color: var(--gray-700); }
.cmpa-mail-stats .is-ok { background: #e8f5e9; color: #1b5e20; }
.cmpa-mail-stats .is-error { background: #fdecea; color: #b71c1c; }
.cmpa-mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cmpa-mail-actions [hidden] { display: none; }
.cmpa-mail-status { margin: 8px 0 0; font-size: 13.5px; color: var(--gray-600); }
.cmpa-mail-msg { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; }
.cmpa-mail-msg.is-ok { background: #e8f5e9; color: #1b5e20; }
.cmpa-mail-msg.is-error { background: #fdecea; color: #b71c1c; }
#mailProgress[hidden], .cmpa-mail-msg[hidden] { display: none; }
.cmpa-setup { display: flex; gap: 14px; padding: 16px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; color: #78350f; }
.cmpa-setup > i { font-size: 22px; margin-top: 2px; }
.cmpa-setup p { margin: 4px 0 0; }
.cmpa-list { display: grid; gap: 12px; }
.cmpa-item { --cmp-color: var(--primary); display: flex; flex-wrap: wrap; gap: 14px 20px; padding: 16px 18px; border: 1px solid var(--gray-200); border-inline-start: 5px solid var(--cmp-color); border-radius: 12px; background: var(--white); }
.cmpa-main { flex: 1 1 520px; min-width: 0; }
.cmpa-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.cmpa-heading h4 { margin: 0; font-size: 16.5px; color: var(--dark); }
.cmpa-status { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.cmpa-status.is-live { background: #e8f5e9; color: #1b5e20; }
.cmpa-status.is-scheduled { background: #eff6ff; color: #1e40af; }
.cmpa-status.is-ended { background: #fdecea; color: #b71c1c; }
.cmpa-status.is-off { background: var(--gray-100); color: var(--gray-600); }
.cmpa-type { font-size: 12.5px; font-weight: 700; color: var(--cmp-color); }
.cmpa-title { margin: 0 0 8px; font-size: 13.5px; color: var(--gray-600); }
.cmpa-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 6px 16px; margin: 0; }
.cmpa-facts div { min-width: 0; }
.cmpa-facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gray-500); }
.cmpa-facts dd { margin: 0; font-size: 13.5px; color: var(--dark); overflow-wrap: anywhere; }
.cmpa-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.cmpa-actions form { margin: 0; }
.cmpa-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cmpa-col { display: grid; gap: 20px; min-width: 0; }
.cmpa-col-side { position: sticky; top: 80px; }
.cmpa-section { margin: 0; }
.cmpa-step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-inline-end: 6px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 13px; }
.cmpa-count { margin-inline-start: 6px; font-size: 12.5px; font-weight: 600; color: var(--gray-500); }
.cmpa-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cmpa-choice-item { display: flex; gap: 12px; padding: 14px; border: 2px solid var(--gray-200); border-radius: 12px; cursor: pointer; }
.cmpa-choice-item:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.cmpa-choice-item input { margin-top: 4px; }
.cmpa-choice-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--primary); font-size: 18px; }
.cmpa-choice-item strong { display: block; color: var(--dark); }
.cmpa-choice-item small { display: block; margin-top: 2px; color: var(--gray-600); line-height: 1.45; }
.cmpa-mode { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; font-weight: 600; }
.cmpa-mode[hidden], [data-price][hidden] { display: none; }
.cmpa-exam-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.cmpa-exam-tools .ax-search-wrap { flex: 1 1 240px; }
.cmpa-only-selected { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.cmpa-exam-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: 10px; }
.cmpa-exam-group { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--gray-100); font-size: 12.5px; font-weight: 700; color: var(--gray-700); }
.cmpa-exam-group[hidden], .cmpa-exam[hidden] { display: none; }
.cmpa-link { border: 0; background: none; color: var(--primary); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cmpa-exam { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-top: 1px solid var(--gray-100); cursor: pointer; font-size: 14px; }
.cmpa-exam:has(input:checked) { background: var(--primary-light); }
.cmpa-exam.is-inactive { color: var(--gray-500); }
.cmpa-exam-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cmpa-exam-price { flex-shrink: 0; font-weight: 700; color: var(--gray-700); }
.cmpa-audience { display: grid; gap: 8px; }
.cmpa-audience label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 500; }
.cmpa-inline-input { width: 80px !important; min-height: 36px; padding: 4px 8px !important; }
.cmpa-preview-list { display: grid; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13.5px; }
.cmpa-preview-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--gray-200); }
.cmpa-preview-list li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cmpa-preview-list li span:last-child { flex-shrink: 0; white-space: nowrap; }
.cmpa-preview-total { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; color: var(--gray-600); }
.cmpa-preview-total.is-final { font-size: 18px; color: var(--dark); }
.cmpa-preview-save { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #e8f5e9; color: #1b5e20; font-size: 13.5px; font-weight: 700; }
.cmpa-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #fdecea; color: #b71c1c; font-size: 13px; }
.cmpa-save { width: 100%; min-height: 46px; margin-top: 14px; }
/* Genel .form-group input kurali (width:100%, padding) radyo/onay kutusu ve renk secicisini bozmasin */
.cmpa-form input[type="radio"], .cmpa-form input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex-shrink: 0; appearance: auto; -webkit-appearance: auto; accent-color: var(--primary); box-shadow: none; }
.cmpa-form input[type="color"] { width: 100%; height: 44px; padding: 4px; cursor: pointer; }
.cmpa-form .cmpa-audience label, .cmpa-form .checkbox-label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.cmpa-form .checkbox-label { flex-wrap: wrap; }
.cmpa-form .checkbox-label small { flex-basis: 100%; padding-inline-start: 26px; color: var(--gray-500); font-weight: 400; }
.cmpa-form .form-group label small { font-weight: 400; color: var(--gray-500); }
.cmpa-exam-tools input[type="search"] { width: 100%; min-height: 42px; padding: 8px 12px 8px 38px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white); font: inherit; font-size: 14px; }
.cmpa-exam-tools input[type="search"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.12); }
@media (max-width: 1100px) {
    .cmpa-layout { grid-template-columns: 1fr; }
    .cmpa-col-side { position: static; }
}
@media (max-width: 640px) {
    .cmpa-choice { grid-template-columns: 1fr; }
    .cmpa-actions { width: 100%; }
}

/* ===== Liderlik tablosu (public/leaderboard.php) - lb-* ; sade: acik hero, beyaz kartlar, madalya rengi sadece rozet ve halkada ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lb-hero { padding: 48px 0 36px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.lb-hero h1 { margin-bottom: 10px; font-family: var(--hm-display); font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); }
.lb-hero p { max-width: 40em; font-size: 17px; line-height: 1.6; color: var(--hm-text); }
.lb-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; list-style: none; }
.lb-hero-meta li { display: flex; align-items: flex-start; gap: 8px; max-width: 52em; font-size: 15px; line-height: 1.5; color: var(--hm-text); }
.lb-hero-meta li:first-child { font-weight: 600; color: var(--hm-ink); }
.lb-hero-meta i { margin-top: 4px; color: var(--hm-muted); }

.lb-body { padding: 32px 0 72px; background: var(--white); }

/* Ortak avatar (bas harfler veya fotograf) */
.lb-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #4f8ff7); color: var(--white); font-size: 15px; font-weight: 700; overflow: hidden; }
.lb-avatar-lg { width: 72px; height: 72px; font-size: 24px; }

/* Benim siram */
.lb-me { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 32px; padding: 20px 22px; background: var(--hm-paper); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; }
.lb-me .lb-avatar { width: 52px; height: 52px; font-size: 18px; }
.lb-me-main { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.lb-me-label { font-size: 14px; font-weight: 500; color: var(--hm-muted); }
.lb-me-main strong { font-size: 19px; color: var(--hm-ink); overflow-wrap: anywhere; }
.lb-me-percent { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: #e6f7f0; color: #0a7250; font-size: 13.5px; font-weight: 600; }
.lb-me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 8px 28px; }
.lb-me-stats div { display: flex; flex-direction: column-reverse; }
.lb-me-stats strong { font-family: var(--hm-display); font-size: 22px; font-weight: 700; color: var(--hm-ink); }
.lb-me-stats span { font-size: 13.5px; color: var(--hm-muted); }
.lb-me-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 15px; color: var(--hm-text); }
.lb-me-empty .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--hm-ink); color: var(--white); font-size: 15px; font-weight: 600; }

/* Ilk uc: 2 - 1 - 3 dizilimi; madalya rengi --medal */
.lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 20px; margin-bottom: 32px; }
.lb-podium-card { --medal: #9aa5b1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px 22px; text-align: center; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 22px; box-shadow: 0 12px 32px -22px rgba(20,33,61,0.3); }
.lb-podium-card.is-rank-1 { --medal: #e0a400; order: 2; padding-top: 34px; padding-bottom: 30px; }
.lb-podium-card.is-rank-2 { --medal: #8f9aa7; order: 1; }
.lb-podium-card.is-rank-3 { --medal: #c0773a; order: 3; }
.lb-podium-card.is-me { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 12px 32px -22px rgba(20,33,61,0.3); }
.lb-avatar-ring { position: relative; padding: 4px; border: 3px solid var(--medal); border-radius: 50%; }
.lb-podium-card.is-rank-1 .lb-avatar-lg { width: 88px; height: 88px; font-size: 28px; }
.lb-rank-badge { position: absolute; bottom: -6px; inset-inline-end: -6px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 3px solid var(--white); border-radius: 50%; background: var(--medal); color: var(--white); font-size: 14px; font-weight: 800; }
.lb-podium-info { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.lb-podium-card h3 { max-width: 100%; overflow: hidden; font-size: 17px; font-weight: 700; color: var(--hm-ink); text-overflow: ellipsis; white-space: nowrap; }
.lb-podium-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 14px; color: var(--hm-text); }
.lb-podium-meta i { margin-inline-end: 3px; color: var(--hm-muted); font-size: 12.5px; }
.lb-podium-points strong { font-family: var(--hm-display); font-size: 26px; font-weight: 700; color: var(--hm-ink); }
.lb-podium-card.is-rank-1 .lb-podium-points strong { font-size: 32px; }
.lb-podium-points span { font-size: 14px; color: var(--hm-muted); }
.lb-you { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; vertical-align: middle; }

/* 4. siradan itibaren liste */
.lb-list-wrap { overflow: hidden; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; }
.lb-list-head, .lb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 120px 110px 130px; align-items: center; gap: 12px; padding: 0 22px; }
.lb-list-head { min-height: 48px; background: var(--hm-paper); color: var(--hm-muted); font-size: 14px; font-weight: 600; }
.lb-list-head span:nth-child(n+3), .lb-row-stat, .lb-row-points { text-align: end; }
.lb-list { margin: 0; padding: 0; list-style: none; }
.lb-row { min-height: 68px; border-top: 1px solid rgba(20,33,61,0.07); }
.lb-row.is-me { background: var(--primary-light); }
.lb-row-rank { font-size: 16px; font-weight: 700; color: var(--hm-muted); }
.lb-row.is-me .lb-row-rank { color: var(--primary); }
.lb-row-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-row-main { display: flex; flex-direction: column; min-width: 0; }
.lb-row-main strong { overflow: hidden; font-size: 16px; font-weight: 600; color: var(--hm-ink); text-overflow: ellipsis; white-space: nowrap; }
.lb-row-sub { display: none; gap: 12px; font-size: 13.5px; color: var(--hm-text); }
.lb-row-sub i { margin-inline-end: 3px; color: var(--hm-muted); font-size: 12px; }
.lb-row-stat { font-size: 15px; color: var(--hm-text); }
.lb-row-points strong { font-size: 17px; color: var(--hm-ink); }
.lb-row-points small { margin-inline-start: 4px; font-size: 13px; color: var(--hm-muted); }

.lb-gap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 22px; border-top: 1px solid rgba(20,33,61,0.07); background: var(--hm-paper); color: var(--hm-text); font-size: 14.5px; }
.lb-gap-dots { display: inline-flex; gap: 4px; }
.lb-gap-dots i { width: 5px; height: 5px; border-radius: 50%; background: #9aa3b8; }
.lb-around-label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-top: 1px solid rgba(20,33,61,0.07); color: var(--primary); font-size: 14.5px; font-weight: 600; }

/* Bos durum */
.lb-empty { max-width: 520px; margin: 8px auto 0; padding: 40px 24px; text-align: center; background: var(--hm-paper); border-radius: 24px; }
.lb-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--white); color: #e0a400; font-size: 26px; }
.lb-empty h3 { margin-bottom: 8px; font-family: var(--hm-display); font-size: 20px; font-weight: 700; color: var(--hm-ink); }
.lb-empty p { margin-bottom: 18px; font-size: 16px; color: var(--hm-text); }
.lb-empty .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--hm-ink); color: var(--white); font-weight: 600; }

@media (max-width: 900px) {
    /* Dikey tablet: sinav sayisi sutunu alt satira iner */
    .lb-list-head, .lb-row { grid-template-columns: 48px minmax(0, 1fr) 100px 120px; }
    .lb-list-head span:nth-child(3), .lb-row > :nth-child(3) { display: none; }
    .lb-me-stats { grid-template-columns: repeat(2, minmax(0, auto)); }
}
@media (max-width: 640px) {
    .lb-hero { padding: 32px 0 24px; }
    .lb-hero p { font-size: 16px; }
    .lb-body { padding-top: 20px; }
    .lb-me { padding: 18px; }
    .lb-me-stats { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Ilk uc alt alta yatay kartlar (1, 2, 3 sirasiyla) - dar ekranda isimler kesilmesin */
    .lb-podium { grid-template-columns: 1fr; gap: 10px; }
    .lb-podium-card, .lb-podium-card.is-rank-1 { flex-direction: row; order: 0; gap: 14px; padding: 14px 16px; text-align: start; }
    .lb-podium-card .lb-avatar-lg, .lb-podium-card.is-rank-1 .lb-avatar-lg { width: 52px; height: 52px; font-size: 18px; }
    .lb-avatar-ring { padding: 2px; border-width: 2px; }
    .lb-rank-badge { width: 24px; height: 24px; border-width: 2px; font-size: 12px; bottom: -4px; inset-inline-end: -4px; }
    .lb-podium-info { flex: 1; align-items: flex-start; gap: 2px; }
    .lb-podium-card h3 { font-size: 16px; }
    .lb-podium-meta { justify-content: flex-start; font-size: 13.5px; }
    .lb-podium-points, .lb-podium-card.is-rank-1 .lb-podium-points { display: flex; flex-direction: column; align-items: flex-end; }
    .lb-podium-points strong, .lb-podium-card.is-rank-1 .lb-podium-points strong { font-size: 20px; line-height: 1.1; }
    .lb-podium-points span { font-size: 12.5px; }
    /* Liste: sira, ogrenci (alt satirda sinav + ortalama), puan */
    .lb-list-head { display: none; }
    .lb-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; }
    .lb-row-stat { display: none; }
    .lb-row-sub { display: flex; }
    .lb-row .lb-avatar { width: 38px; height: 38px; font-size: 13px; }
    .lb-row-points { display: flex; flex-direction: column; align-items: flex-end; }
    .lb-row-points small { margin: 0; font-size: 12px; }
    .lb-gap, .lb-around-label { padding-inline: 14px; }
}

/* ===== Hakkimizda (public/about.php) - about-* + ana sayfanin home-heading/home-eyebrow/home-cta/home-btn siniflari ===== */
.about-hero { position: relative; overflow: hidden; padding: 72px 0 128px; color: var(--white); text-align: center;
    background: radial-gradient(900px 420px at 50% -30%, rgba(26,115,232,0.55), transparent 65%), radial-gradient(600px 300px at 100% 110%, rgba(244,180,0,0.18), transparent 60%), linear-gradient(160deg, #0f1733 0%, #16213e 60%, #1a1a2e 100%); }
.about-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%); }
.about-hero .container { position: relative; z-index: 1; }
.about-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.about-eyebrow i { color: var(--secondary); }
.about-hero h1 { max-width: 820px; margin: 0 auto 16px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.about-hero p { max-width: 680px; margin: 0 auto; font-size: 17.5px; line-height: 1.75; color: rgba(255,255,255,0.78); }

.about-body { display: flow-root; padding-bottom: 88px; background: var(--white); }
.about-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: -64px; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 22px; background: var(--white); box-shadow: 0 28px 56px -36px rgba(22,33,62,0.5); }
.about-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; text-align: center; }
.about-stat + .about-stat { border-inline-start: 1px solid var(--gray-200); }
.about-stat > i { margin-bottom: 6px; font-size: 20px; color: var(--primary); }
.about-stat .stat-number { font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--dark); }
.about-stat-label { font-size: 13.5px; color: var(--gray-600); }

.about-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; margin-top: 88px; }
.about-story-text h2 { margin-bottom: 18px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--dark); }
.about-story-text p { margin-bottom: 14px; font-size: 16.5px; line-height: 1.8; color: var(--gray-700); }
.about-checks { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.about-checks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--dark); }
.about-checks i { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(52,168,83,0.14); color: var(--success); font-size: 12px; }
.about-story-visual { position: relative; padding: 0 0 28px 28px; }
.about-story-visual img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 26px; box-shadow: 0 36px 70px -36px rgba(22,33,62,0.6); }
.about-story-visual::before { content: ''; position: absolute; top: 28px; right: 28px; bottom: 0; left: 0; z-index: -1; border-radius: 26px; background: linear-gradient(135deg, var(--primary-light), rgba(244,180,0,0.2)); }
.about-story-badge { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); padding: 14px 18px; border-radius: 18px; background: var(--white); box-shadow: 0 20px 40px -18px rgba(22,33,62,0.45); }
.about-story-badge > i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--secondary); color: var(--dark); font-size: 19px; }
.about-story-badge strong { display: block; font-size: 15px; color: var(--dark); }
.about-story-badge span { display: block; font-size: 12.5px; color: var(--gray-600); }

.about-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 88px; }
.about-mv-card { position: relative; padding: 34px; overflow: hidden; border-radius: 24px; color: var(--white); }
.about-mv-card.is-mission { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%); }
.about-mv-card.is-vision { background: linear-gradient(135deg, #16213e 0%, #0f1733 100%); }
.about-mv-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); box-shadow: inset 0 0 0 40px rgba(255,255,255,0.03); }
.about-mv-icon { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.14); color: var(--secondary); font-size: 22px; }
.about-mv-card h3 { margin-bottom: 10px; font-size: 22px; font-weight: 800; }
.about-mv-card p { position: relative; z-index: 1; font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.82); }

.about-values-wrap { background: var(--gray-50); }
.about-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.about-value { padding: 28px 24px; border: 1px solid var(--gray-200); border-radius: 20px; background: var(--white); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.about-value:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(22,33,62,0.45); }
.about-value-icon { width: 50px; height: 50px; margin-bottom: 16px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 20px; }
.about-value:nth-child(2) .about-value-icon { background: rgba(244,180,0,0.16); color: var(--secondary-dark); }
.about-value:nth-child(3) .about-value-icon { background: rgba(52,168,83,0.14); color: var(--success); }
.about-value:nth-child(4) .about-value-icon { background: rgba(99,102,241,0.14); color: #4f46e5; }
.about-value h3 { margin-bottom: 8px; font-size: 17.5px; font-weight: 700; color: var(--dark); }
.about-value p { font-size: 14.5px; line-height: 1.65; color: var(--gray-600); }

.about-olympiads-wrap { background: var(--white); }
.about-olympiads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.about-olympiad { --olympiad-color: var(--primary); display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--gray-200); border-radius: 18px; background: var(--white); color: var(--dark); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.about-olympiad:hover { border-color: var(--olympiad-color); color: var(--dark); transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(22,33,62,0.5); }
.about-olympiad-icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--olympiad-color); color: var(--white); font-size: 21px; }
.about-olympiad-text { display: flex; flex-direction: column; min-width: 0; }
.about-olympiad-text strong { font-size: 15.5px; line-height: 1.3; }
.about-olympiad-text span { font-size: 13px; color: var(--gray-600); }
.about-olympiad-arrow { margin-inline-start: auto; font-size: 13px; color: var(--gray-400); transition: transform 0.2s ease, color 0.2s ease; }
.about-olympiad:hover .about-olympiad-arrow { transform: translateX(3px); color: var(--olympiad-color); }

.about-cta-wrap { padding-top: 0; background: var(--white); }
.about-cta-wrap .home-btn { white-space: normal; text-align: center; }

@media (prefers-reduced-motion: reduce) { .about-value, .about-olympiad { transition: none; } }

@media (max-width: 1024px) {
    .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .about-stat:nth-child(4) { border-inline-start: 0; }
    .about-stat:nth-child(n+4) { border-top: 1px solid var(--gray-200); }
    .about-story { grid-template-columns: 1fr; gap: 40px; }
    .about-story-visual { max-width: 560px; }
    .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .about-hero { padding: 44px 0 104px; }
    .about-hero p { font-size: 15.5px; }
    .about-body { padding-bottom: 56px; }
    .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -60px; border-radius: 18px; }
    .about-stat { padding: 18px 8px; }
    .about-stat:nth-child(n) { border-inline-start: 0; border-top: 0; }
    .about-stat:nth-child(even) { border-inline-start: 1px solid var(--gray-200); }
    .about-stat:nth-child(n+3) { border-top: 1px solid var(--gray-200); }
    .about-stat:last-child { grid-column: 1 / -1; }
    .about-stat .stat-number { font-size: 26px; }
    .about-story, .about-mv { margin-top: 56px; }
    .about-story-text p { font-size: 15.5px; }
    .about-story-visual { padding: 0 0 20px 20px; }
    .about-story-visual::before { top: 20px; right: 20px; }
    .about-mv { grid-template-columns: 1fr; gap: 16px; }
    .about-mv-card { padding: 26px 22px; border-radius: 20px; }
    .about-values { grid-template-columns: 1fr; gap: 14px; }
    .about-value { padding: 22px 20px; }
}

/* ===== Rozetlerim (public/badges.php) - bdg-* ; sade: acik hero, beyaz kartlar, kazanilan rozet renkli, kilitli gri ===== */
.bdg-hero { padding: 40px 0 32px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.bdg-hero h1 { margin-bottom: 8px; font-family: var(--hm-display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); }
.bdg-hero p { max-width: 40em; font-size: 17px; line-height: 1.6; color: var(--hm-text); }

.bdg-body { padding: 28px 0 64px; background: var(--white); }
.bdg-bar { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: var(--hm-paper); }
.bdg-bar span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }

/* Ozet: halka + sayilar + siradaki rozet */
.bdg-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: 20px 28px; padding: 22px 24px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 22px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.bdg-ring { --pct: 0; position: relative; flex-shrink: 0; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--hm-gold) calc(var(--pct) * 1%), var(--hm-paper) 0); }
.bdg-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--white); }
.bdg-ring > div { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; gap: 3px; padding-top: 36px; }
.bdg-ring strong { font-family: var(--hm-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--hm-ink); }
.bdg-ring span { font-size: 15px; font-weight: 600; color: var(--hm-muted); }
.bdg-summary-main { min-width: 0; }
.bdg-summary-main h2 { margin-bottom: 8px; font-family: var(--hm-display); font-size: 20px; font-weight: 700; color: var(--hm-ink); }
.bdg-rule { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; font-size: 14.5px; line-height: 1.55; color: var(--hm-text); }
.bdg-rule i { margin-top: 4px; color: var(--hm-muted); }
.bdg-summary-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.bdg-summary-stats div { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--hm-paper); }
.bdg-summary-stats strong { font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.bdg-summary-stats span { font-size: 14px; color: var(--hm-text); }
.bdg-next { padding: 16px 18px; border-radius: 16px; background: var(--hm-paper); }
.bdg-next-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.bdg-next-row { --badge-color: var(--primary); display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bdg-next-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--badge-color); color: var(--white); font-size: 18px; }
.bdg-next-row > div { min-width: 0; }
.bdg-next-row > div strong { display: block; font-size: 16px; color: var(--hm-ink); }
.bdg-next-row > div span { display: block; font-size: 14px; color: var(--hm-text); }
.bdg-next-done { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #0a7250; }

/* Gruplar ve kartlar */
.bdg-group { margin-top: 36px; }
.bdg-group-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--hm-display); font-size: 19px; font-weight: 700; color: var(--hm-ink); }
.bdg-group-title i { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--hm-paper); color: var(--primary); font-size: 15px; }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.bdg-card { --badge-color: var(--primary); display: flex; flex-direction: column; align-items: center; padding: 24px 18px 20px; text-align: center; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.bdg-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: var(--badge-color); color: var(--white); font-size: 28px; }
.bdg-card.is-locked .bdg-icon { background: var(--hm-paper); color: #9aa3b8; }
.bdg-state { position: absolute; right: -2px; bottom: -2px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 3px solid var(--white); border-radius: 50%; background: var(--hm-mint); color: var(--white); font-size: 10px; }
.bdg-card.is-locked .bdg-state { background: #9aa3b8; }
.bdg-card h3 { margin-bottom: 6px; font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.bdg-card p { margin-bottom: 16px; font-size: 14.5px; line-height: 1.55; color: var(--hm-text); }
.bdg-card.is-locked h3 { color: var(--hm-text); }
.bdg-date { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 5px 12px; border-radius: 999px; background: #e6f7f0; color: #0a7250; font-size: 13px; font-weight: 600; }
.bdg-progress { width: 100%; margin-top: auto; }
.bdg-progress-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 13.5px; color: var(--hm-text); }
.bdg-progress-top i { font-size: 11px; }
.bdg-progress-top strong { color: var(--hm-ink); }
.bdg-locked { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13.5px; color: var(--hm-muted); }

@media (max-width: 1100px) {
    /* Tablet: siradaki rozet alta, tam genislik */
    .bdg-summary { grid-template-columns: auto minmax(0, 1fr); }
    .bdg-next { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .bdg-hero { padding: 28px 0 22px; }
    .bdg-hero p { font-size: 16px; }
    .bdg-body { padding-top: 20px; }
    .bdg-summary { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 20px 16px; text-align: center; }
    .bdg-summary-main { width: 100%; }
    .bdg-summary-main h2 { font-size: 18px; }
    .bdg-rule { justify-content: center; text-align: start; }
    .bdg-summary-stats { justify-content: center; }
    .bdg-next { width: 100%; text-align: start; }
    .bdg-group { margin-top: 28px; }
    .bdg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bdg-card { padding: 18px 12px 14px; border-radius: 16px; }
    .bdg-icon { width: 56px; height: 56px; margin-bottom: 10px; font-size: 22px; }
    .bdg-state { width: 22px; height: 22px; font-size: 9px; }
    .bdg-card h3 { font-size: 15px; }
    .bdg-card p { margin-bottom: 12px; font-size: 13px; }
    .bdg-date { padding: 4px 9px; font-size: 12px; }
    .bdg-progress-top { flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; }
}
@media (max-width: 340px) {
    .bdg-grid { grid-template-columns: 1fr; }
}

/* ===== Profil fotografi (profile.php + avatar-cropper.js) ve avatar gorselleri ===== */
.user-avatar-small img, .lb-avatar img, .pf-avatar img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; }

.pf-avatar-row { display: flex; align-items: center; gap: 20px; }
.pf-avatar { width: 96px; height: 96px; flex-shrink: 0; overflow: hidden; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #6366f1); color: var(--white); font-size: 32px; font-weight: 800; box-shadow: 0 0 0 4px var(--primary-light); }
.pf-avatar-main { min-width: 0; }
.profile-form h3.pf-title, .pf-avatar-main h3 { margin: 0 0 4px; font-size: 16px; color: var(--gray-700); }
.pf-avatar-hint { margin-bottom: 12px; font-size: 13px; line-height: 1.5; color: var(--gray-600); }
.pf-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-avatar-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.pf-avatar-remove { color: var(--danger, #ea4335); border-color: rgba(234,67,53,0.45); }
.pf-avatar-remove:hover { background: var(--danger, #ea4335); border-color: var(--danger, #ea4335); color: var(--white); }
.pf-avatar-status { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.pf-avatar-status.is-success { color: var(--success); }
.pf-avatar-status.is-error { color: var(--danger, #ea4335); }
.pf-avatar-divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.pf-avatar-remove[hidden], .pf-avatar-status[hidden], .avatar-dialog-error[hidden], .avatar-modal[hidden] { display: none !important; }
.pf-forgot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -6px 0 16px; font-size: 13.5px; color: var(--gray-600); }
.pf-forgot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); }
.pf-forgot a:hover { text-decoration: underline; }

/* Kirpma penceresi */
body.avatar-modal-open { overflow: hidden; }
.avatar-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,51,0.72); }
.avatar-dialog { width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border-radius: 22px; background: var(--white); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); }
.avatar-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.avatar-dialog-head h3 { font-size: 18px; font-weight: 800; color: var(--dark); }
.avatar-dialog-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gray-50); color: var(--gray-700); font-size: 16px; cursor: pointer; }
.avatar-dialog-x:hover { background: var(--gray-200); }
.avatar-dialog-help { margin-bottom: 14px; font-size: 13.5px; line-height: 1.5; color: var(--gray-600); }
.avatar-stage { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1 / 1; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #0f1733; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.avatar-stage:active { cursor: grabbing; }
.avatar-stage:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.avatar-stage img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.avatar-stage-mask { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 0 0 999px rgba(15,23,51,0.62); pointer-events: none; }
.avatar-zoom { display: flex; align-items: center; gap: 10px; max-width: 340px; margin: 16px auto 0; }
.avatar-zoom button { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--gray-200); border-radius: 50%; background: var(--white); color: var(--gray-700); cursor: pointer; }
.avatar-zoom button:hover { border-color: var(--primary); color: var(--primary); }
.avatar-zoom input { flex: 1; min-width: 0; accent-color: var(--primary); }
.avatar-dialog-error { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--danger, #ea4335); }
.avatar-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.avatar-dialog-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

@media (max-width: 768px) {
    .pf-avatar-row { gap: 14px; }
    .pf-avatar { width: 76px; height: 76px; font-size: 26px; }
    .pf-avatar-divider { margin: 20px 0; }
    .avatar-dialog { padding: 18px; border-radius: 18px; }
    .avatar-dialog-actions .btn { flex: 1; }
}

@media (max-width: 400px) {
    .pf-avatar-row { flex-direction: column; align-items: flex-start; }
}

/* ===== Yeni destek talebi karti (public/support.php + assets/js/support-new.js) ===== */
.support-card.sp-new { padding: 0; overflow: hidden; }
.sp-new-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 24px; overflow: hidden; color: var(--white); background: radial-gradient(260px 160px at 100% 0%, rgba(244,180,0,0.35), transparent 70%), linear-gradient(135deg, var(--primary) 0%, #1e3a8a 65%, #16213e 100%); }
.sp-new-head::after { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -110px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); box-shadow: inset 0 0 0 30px rgba(255,255,255,0.04); pointer-events: none; }
.sp-new-icon { position: relative; z-index: 1; width: 50px; height: 50px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.16); color: #ffd666; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.sp-new-head > div { position: relative; z-index: 1; min-width: 0; }
.support-card .sp-new-head h2 { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--white); }
.sp-new-head p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.82); }

.sp-open-meter { display: flex; align-items: center; gap: 8px; margin: 16px 24px 0; padding: 9px 12px; border-radius: 12px; background: var(--gray-50); color: var(--gray-600); font-size: 13px; font-weight: 600; }
.sp-open-meter > i { color: var(--primary); }
.sp-open-meter.is-full { background: #fdecea; color: var(--danger, #ea4335); }
.sp-open-meter.is-full > i { color: var(--danger, #ea4335); }
.sp-open-dots { display: inline-flex; gap: 4px; margin-inline-start: auto; }
.sp-open-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); }
.sp-open-dots i.is-on { background: var(--primary); }
.sp-open-meter.is-full .sp-open-dots i.is-on { background: var(--danger, #ea4335); }
.support-card.sp-new > .alert { margin: 16px 24px 0; }

.sp-form { padding: 20px 24px 24px; }
.sp-field { margin-bottom: 18px; }
.sp-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sp-label-row label, .sp-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--dark); }
.sp-label { margin-bottom: 8px; }
.sp-counter { font-size: 12px; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.sp-counter.is-near { color: #e37400; font-weight: 700; }

.sp-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sp-topic { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); color: var(--gray-700); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.sp-topic i { font-size: 11px; color: var(--primary); }
.sp-topic:hover { border-color: var(--primary); color: var(--primary); }
.sp-topic[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--white); }
.sp-topic[aria-pressed="true"] i { color: var(--white); }

.sp-input { position: relative; }
.sp-input > i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--gray-400); font-size: 14px; pointer-events: none; transition: color 0.2s ease; }
.sp-form .sp-input input[type="text"], .sp-form .sp-input textarea { width: 100%; border: 1.5px solid var(--gray-200); border-radius: 12px; background: var(--gray-50); color: var(--dark); font-family: inherit; font-size: 15px; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.sp-form .sp-input input[type="text"] { height: 46px; padding: 0 14px 0 40px; }
.sp-form .sp-input textarea { display: block; min-height: 132px; max-height: 320px; padding: 12px 14px; line-height: 1.55; resize: none; }
.sp-form .sp-input input[type="text"]:focus, .sp-form .sp-input textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(26,115,232,0.12); }
.sp-input:focus-within > i { color: var(--primary); }

.sp-drop { position: relative; display: block; border: 2px dashed var(--gray-200); border-radius: 14px; background: var(--gray-50); transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.sp-drop:hover, .sp-drop.is-dragover { border-color: var(--primary); background: var(--primary-light); }
.sp-drop:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,115,232,0.12); }
.sp-form .sp-file-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.sp-drop.is-filled { border-style: solid; background: var(--white); }
.sp-drop.is-filled .sp-file-input { pointer-events: none; }
.sp-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 20px 16px; text-align: center; }
.sp-drop-icon { width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--primary); font-size: 20px; box-shadow: 0 8px 18px -10px rgba(26,115,232,0.7); }
.sp-drop-empty strong { font-size: 14px; color: var(--dark); }
.sp-drop-empty small { font-size: 12px; color: var(--gray-500); }
.sp-drop-preview { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.sp-drop-preview img { width: 56px; height: 56px; flex-shrink: 0; max-width: none; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px var(--gray-200); }
.sp-drop-info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sp-drop-info strong { overflow: hidden; font-size: 14px; color: var(--dark); text-overflow: ellipsis; white-space: nowrap; }
.sp-drop-info small { font-size: 12px; color: var(--gray-500); }
.sp-drop-remove { width: 34px; height: 34px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--gray-50); color: var(--gray-600); font-size: 15px; cursor: pointer; }
.sp-drop-remove:hover { background: var(--danger, #ea4335); color: var(--white); }
.sp-file-error { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--danger, #ea4335); }
.sp-drop-preview[hidden], .sp-drop-empty[hidden], .sp-file-error[hidden] { display: none !important; }

.sp-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #3b82f6); color: var(--white); font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(59,130,246,0.85); transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.sp-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(59,130,246,0.95); }
.sp-submit:disabled { opacity: 0.8; cursor: progress; transform: none; }

@media (prefers-reduced-motion: reduce) { .sp-submit, .sp-topic, .sp-drop { transition: none; } }

@media (max-width: 768px) {
    .support-card.sp-new { padding: 0; }
    .sp-new-head { padding: 18px 16px; gap: 12px; }
    .sp-new-icon { width: 44px; height: 44px; font-size: 19px; }
    .support-card .sp-new-head h2 { font-size: 17px; }
    .sp-open-meter, .support-card.sp-new > .alert { margin: 14px 16px 0; }
    .sp-form { padding: 16px 16px 20px; }
    .sp-form .sp-input input[type="text"], .sp-form .sp-input textarea { font-size: 16px; }
}

/* ===== Teknik destek: hazir mesajlar (includes/support/support-chat.php + support-chat.js) ===== */
.support-quick-btn { color: #e37400; }
.support-quick-btn:hover, .support-quick-btn.is-active { background: #fff4e0; color: #e37400; }
.support-quick-panel { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); z-index: 30; display: flex; flex-direction: column; max-height: min(440px, 62vh); overflow: hidden; border: 1px solid var(--gray-200); border-radius: 16px; background: var(--white); box-shadow: 0 28px 56px -22px rgba(22,33,62,0.45); }
.support-quick-panel[hidden], .support-quick-item[hidden], .support-quick-empty[hidden] { display: none !important; }
/* Panel yuksekligi sinirliyken sadece liste kuculsun: baslik, kategori satiri ve alt not ezilmesin */
.support-quick-head, .support-quick-cats, .support-quick-foot, .support-quick-empty { flex-shrink: 0; }
.support-quick-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); }
.support-quick-head strong { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--dark); white-space: nowrap; }
.support-quick-head strong i { color: #f59e0b; }
.support-quick-head input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--gray-50); font-family: inherit; font-size: 14px; }
.support-quick-head input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.support-quick-close { width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--gray-50); color: var(--gray-600); cursor: pointer; }
.support-quick-close:hover { background: var(--gray-200); }
.support-quick-cats { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid var(--gray-100); scrollbar-width: none; }
.support-quick-cats::-webkit-scrollbar { display: none; }
.support-quick-cat { --cat-color: var(--primary); display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); color: var(--gray-700); font-family: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.support-quick-cat i { color: var(--cat-color); font-size: 11px; }
.support-quick-cat:hover { border-color: var(--cat-color); }
.support-quick-cat[aria-pressed="true"] { border-color: var(--cat-color); background: var(--cat-color); color: var(--white); }
.support-quick-cat[aria-pressed="true"] i { color: var(--white); }
.support-quick-list { flex: 1; margin: 0; padding: 6px; overflow-y: auto; list-style: none; }
.support-quick-item { --cat-color: var(--primary); display: flex; align-items: stretch; gap: 2px; border-radius: 12px; }
.support-quick-item:hover { background: var(--gray-50); }
.support-quick-use { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; font-family: inherit; text-align: start; cursor: pointer; }
.support-quick-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--cat-color); }
.support-quick-text { font-size: 14px; line-height: 1.45; color: var(--dark); }
.support-quick-send { width: 42px; flex-shrink: 0; border: 0; border-radius: 12px; background: transparent; color: var(--primary); font-size: 15px; cursor: pointer; }
.support-quick-send:hover { background: var(--primary-light); }
.support-quick-use:focus-visible, .support-quick-send:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.support-quick-empty { margin: 0; padding: 20px; text-align: center; font-size: 13.5px; color: var(--gray-500); }
.support-quick-foot { margin: 0; padding: 8px 12px; border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-500); }

/* ===== Admin destek talepleri listesi: mobilde kart gorunumu ===== */
@media (max-width: 768px) {
    .support-admin-toolbar { gap: 10px; }
    .support-tabs { flex-wrap: nowrap; width: 100%; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
    .support-tabs::-webkit-scrollbar { display: none; }
    .support-tab { flex-shrink: 0; white-space: nowrap; }
    .admin-card .admin-table-wrap:has(.support-table) { overflow: visible; }
    .admin-table.support-table { display: block; min-width: 0 !important; width: 100%; }
    .support-table thead { display: none; }
    .support-table tbody { display: block; }
    .support-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--gray-200); }
    .support-table tr:last-child { border-bottom: 0; }
    .support-table tr.is-unread { background: #f5f9ff; box-shadow: inset 3px 0 0 var(--primary); }
    .support-table td, .support-table tr.is-unread td { display: block; padding: 0; border: 0; background: transparent; }
    .support-table .support-cell-subject { grid-column: 1; grid-row: 1; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
    .support-table .support-cell-status { grid-column: 2; grid-row: 1; justify-self: end; }
    .support-table .support-cell-status .support-status { white-space: nowrap; }
    .support-table .support-cell-user { grid-column: 1 / -1; font-size: 13.5px; overflow-wrap: anywhere; }
    .support-table .support-cell-last, .support-table .support-cell-created { font-size: 12.5px; color: var(--gray-700); }
    .support-table .support-cell-last { grid-column: 1; }
    .support-table .support-cell-created { grid-column: 2; text-align: end; }
    .support-table .support-cell-last::before, .support-table .support-cell-created::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-500); }
    .support-table .support-cell-last br { display: none; }
    .support-table .support-cell-last small::before { content: ' · '; }

    .support-quick-panel { left: 8px; right: 8px; max-height: 58vh; border-radius: 14px; }
    .support-quick-head strong span { display: none; }
    .support-quick-head input { font-size: 16px; }
    .support-quick-foot { display: none; }
}

/* ===== Admin sol menu (admin/includes/admin-header.php + assets/js/admin.js) — onceki .admin-sidebar kurallarini gecersiz kilar ===== */
.admin-sidebar { color: var(--white); position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; width: var(--sb-w); overflow: hidden; transition: width 0.25s ease, transform 0.25s ease; background: #111a31; border-right: 0; }
.admin-main, .admin-main.expanded { margin-left: var(--sb-w); transition: margin-left 0.25s ease; }
body.sidebar-collapsed .admin-sidebar { width: var(--sb-w-collapsed); }
body.sidebar-collapsed .admin-main { margin-left: var(--sb-w-collapsed); }

.admin-sidebar .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 0; padding: 18px 16px 12px; }
.admin-sidebar .sidebar-logo { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--white); }
.sidebar-logo-mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f4b400, #ff8a00); box-shadow: 0 8px 18px -8px rgba(244,180,0,0.75); }
.admin-sidebar .sidebar-logo .sidebar-logo-mark i { font-size: 18px; color: #1a1a2e; }
.sidebar-logo-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.sidebar-logo-text strong { font-size: 16px; font-weight: 800; color: var(--white); }
.sidebar-logo-text small { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,0.55); }
.sidebar-close { display: none; width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,0.08); color: var(--white); font-size: 16px; cursor: pointer; }

.sidebar-search > i { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: rgba(255,255,255,0.45); font-size: 13px; pointer-events: none; }
.sidebar-search input { width: 100%; height: 38px; padding: 0 34px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--white); font-family: inherit; font-size: 13.5px; }
.sidebar-search input::placeholder { color: rgba(255,255,255,0.45); }
.sidebar-search input:focus { outline: none; border-color: rgba(244,180,0,0.6); background: rgba(255,255,255,0.1); }
.sidebar-search input::-webkit-search-cancel-button { filter: invert(1); }
.sidebar-kbd { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 1px 6px; border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; font-family: inherit; font-size: 11px; color: rgba(255,255,255,0.5); pointer-events: none; }
.sidebar-search input:focus + .sidebar-kbd, .sidebar-search input:not(:placeholder-shown) + .sidebar-kbd { display: none; }

.admin-sidebar .sidebar-nav { padding: 0 10px 12px; }
.admin-sidebar .sidebar-nav ul { margin: 0; padding: 0; list-style: none; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; padding: 8px 12px 6px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.4); border-radius: 8px; position: relative; }
.nav-group-toggle:hover { color: rgba(255,255,255,0.75); }
.nav-group-toggle i { font-size: 10px; transition: transform 0.2s ease; }
.nav-group.is-collapsed .nav-group-toggle i { transform: rotate(-90deg); }
.nav-group.is-collapsed:not(.is-searching) .nav-group-list { display: none; }
.nav-group.is-hidden, .nav-group-list li.is-hidden { display: none !important; }

.admin-sidebar .nav-link { position: relative; display: flex; align-items: center; gap: 12px; margin: 2px 0; padding: 9px 12px; border-right: 0; border-radius: 10px; color: rgba(255,255,255,0.72); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.admin-sidebar .nav-link i { width: 20px; flex-shrink: 0; text-align: center; font-size: 15px; color: rgba(255,255,255,0.5); transition: color 0.15s ease; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.admin-sidebar .nav-link:hover i { color: var(--white); }
.admin-sidebar .nav-link.active { border-right: 0; background: linear-gradient(90deg, rgba(244,180,0,0.2), rgba(244,180,0,0.04)); color: var(--white); font-weight: 600; box-shadow: inset 3px 0 0 #f4b400; }
.admin-sidebar .nav-link:focus-visible { outline: 2px solid #f4b400; outline-offset: -2px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }
.admin-sidebar .nav-count { margin-inline-start: auto; min-width: 22px; height: 22px; background: #f4b400; color: #111a31; font-weight: 800; }
.sidebar-no-result { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 12px; font-size: 13px; color: rgba(255,255,255,0.5); }
.sidebar-no-result[hidden] { display: none !important; }

.sidebar-footer { flex-shrink: 0; border-top: 1px solid rgba(255,255,255,0.07); padding: 10px 10px 12px; border-top-color: rgba(255,255,255,0.06); }
.admin-sidebar .sidebar-site { margin: 0 0 6px; color: rgba(255,255,255,0.6); font-size: 13.5px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.05); }
.sidebar-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: #f4b400; color: #111a31; font-weight: 800; }
.sidebar-profile-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.25; }
.sidebar-profile-text strong { overflow: hidden; font-size: 13.5px; color: var(--white); text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-text small { font-size: 11.5px; color: rgba(255,255,255,0.5); }
.sidebar-logout { flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); width: 38px; height: 38px; border-radius: 10px; }
.sidebar-logout:hover { background: rgba(234,67,53,0.18); color: #ff8a80; }

.admin-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-topbar .sidebar-toggle { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.admin-topbar .sidebar-toggle:hover { background: var(--gray-100); color: var(--primary); }
.admin-topbar-title { display: none; overflow: hidden; font-size: 15px; font-weight: 700; color: var(--dark); text-overflow: ellipsis; white-space: nowrap; }

/* Masaustu: sadece ikonlara daraltilmis menu */
@media (min-width: 769px) {
    body.sidebar-collapsed .sidebar-logo-text, body.sidebar-collapsed .sidebar-search, body.sidebar-collapsed .nav-group-toggle,
    body.sidebar-collapsed .nav-label, body.sidebar-collapsed .sidebar-profile-text { display: none; }
    body.sidebar-collapsed .admin-sidebar .sidebar-header { justify-content: center; padding: 18px 0 12px; }
    body.sidebar-collapsed .admin-sidebar .sidebar-nav { padding: 4px 12px; }
    body.sidebar-collapsed .nav-group-list { display: block !important; }
    body.sidebar-collapsed .nav-group + .nav-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.07); }
    body.sidebar-collapsed .admin-sidebar .nav-link { justify-content: center; padding: 11px 0; }
    body.sidebar-collapsed .admin-sidebar .nav-count { position: absolute; top: 3px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
    body.sidebar-collapsed .sidebar-footer { padding: 10px 12px; }
    body.sidebar-collapsed .sidebar-profile { flex-direction: column; gap: 6px; padding: 8px 0; background: none; }
}

/* Mobil: yandan kayan cekmece */
@media (max-width: 768px) {
    .admin-sidebar, body.sidebar-collapsed .admin-sidebar { width: min(300px, 86vw); transform: translateX(-100%); box-shadow: 8px 0 32px rgba(0,0,0,0.35); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main, .admin-main.expanded, body.sidebar-collapsed .admin-main { margin-left: 0; }
    .sidebar-close { display: flex; align-items: center; justify-content: center; }
    .sidebar-kbd { display: none; }
    .admin-sidebar .nav-link { padding: 11px 12px; font-size: 15px; }
    .sidebar-search input { height: 42px; font-size: 16px; }
    .admin-topbar { padding: 10px 14px; }
    .admin-topbar-title { display: block; }
    .admin-topbar .admin-name, .admin-logout-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-sidebar, .admin-main, .nav-group-toggle i { transition: none; }
}

/* ===== Kullanici: tum destek talepleri (public/support-tickets.php) ve support.php "Tumunu gor" ===== */
.sp-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 18px; }
.support-card .sp-list-head h2 { margin: 0; }
.sp-view-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.sp-view-all i { font-size: 12px; transition: transform 0.2s ease; }
.sp-view-all:hover i { transform: translateX(3px); }

.st-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.st-filters { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.st-filters::-webkit-scrollbar { display: none; }
.st-filter { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); color: var(--gray-700); font-size: 14px; font-weight: 600; white-space: nowrap; }
.st-filter i { font-size: 13px; color: var(--primary); }
.st-filter:hover { border-color: var(--primary); color: var(--primary); }
.st-filter-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-700); font-size: 12px; font-weight: 700; }
.st-filter.is-active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.st-filter.is-active i { color: var(--white); }
.st-filter.is-active .st-filter-count { background: rgba(255,255,255,0.22); color: var(--white); }
.st-new { display: inline-flex; align-items: center; gap: 8px; }
.st-card { margin-bottom: 8px; }
.st-page-info { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--gray-500); }

@media (max-width: 768px) {
    /* nowrap: sutun duzeninde wrap acik kalirsa satir genisligi icerikten hesaplanir ve ekrandan tasar */
    .st-toolbar { flex-direction: column-reverse; flex-wrap: nowrap; align-items: stretch; }
    .st-new { justify-content: center; }
    .st-filter { height: 38px; padding: 0 12px; font-size: 13.5px; }
}

/* ===== Admin: Sistem Sagligi (admin/system-health.php) ===== */
.hl-header { flex-wrap: wrap; gap: 12px; }
.hl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-actions form { margin: 0; }
.hl-actions .btn { display: inline-flex; align-items: center; gap: 8px; }

.hl-overview { --tone: var(--success); --tone-bg: #e6f4ea; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 20px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); border-radius: 16px; background: linear-gradient(135deg, var(--tone-bg), var(--white) 70%); }
.hl-overview.is-warn { --tone: #e37400; --tone-bg: #fef3e0; }
.hl-overview.is-error { --tone: var(--danger, #ea4335); --tone-bg: #fdecea; }
.hl-overview-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--tone); color: var(--white); font-size: 24px; box-shadow: 0 12px 24px -12px var(--tone); }
.hl-overview-main { flex: 1; min-width: 220px; }
.hl-overview-main h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--dark); }
.hl-overview-main p { margin: 0 0 4px; font-size: 14px; color: var(--gray-700); }
.hl-overview-main small { font-size: 12.5px; color: var(--gray-500); }
.hl-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-count { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--white); font-size: 13px; color: var(--gray-600); box-shadow: 0 0 0 1px var(--gray-200); }
.hl-count strong { font-size: 18px; }
.hl-count.is-ok strong { color: var(--success); }
.hl-count.is-warn strong { color: #e37400; }
.hl-count.is-error strong { color: var(--danger, #ea4335); }

.hl-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; align-items: start; }
.admin-card.hl-section { margin: 0; padding: 0; overflow: hidden; }
.hl-section-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--gray-200); }
.hl-section-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 16px; }
.hl-section-head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 800; color: var(--dark); }
.hl-section-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hl-section-badge.is-ok { background: #e6f4ea; color: var(--success); }
.hl-section-badge.is-warn { background: #fef3e0; color: #b45309; }
.hl-section-badge.is-error { background: #fdecea; color: var(--danger, #ea4335); }

.hl-list { margin: 0; padding: 0; list-style: none; }
.hl-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--gray-100); }
.hl-item:last-child { border-bottom: 0; }
.hl-dot { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--white); background: var(--success); }
.hl-item.is-warn .hl-dot { background: #f59e0b; }
.hl-item.is-error .hl-dot { background: var(--danger, #ea4335); }
.hl-item.is-info .hl-dot { background: var(--gray-400); }
.hl-item-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.hl-item-main strong { font-size: 14px; color: var(--dark); }
.hl-item-main span { font-size: 12.5px; line-height: 1.5; color: var(--gray-600); overflow-wrap: anywhere; }
.hl-item.is-warn .hl-item-main span { color: #92400e; }
.hl-item.is-error .hl-item-main span { color: #b42318; }
.hl-item-value { flex-shrink: 0; max-width: 45%; padding: 3px 9px; border-radius: 8px; background: var(--gray-50); font-size: 12.5px; font-weight: 600; color: var(--gray-700); text-align: end; overflow-wrap: anywhere; }
.hl-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 12.5px; color: var(--gray-500); }

@media (max-width: 768px) {
    .hl-actions, .hl-actions form, .hl-actions .btn { width: 100%; }
    .hl-actions .btn { justify-content: center; }
    .hl-overview { padding: 16px; }
    .hl-overview-icon { width: 46px; height: 46px; font-size: 20px; }
    .hl-overview-main h2 { font-size: 17px; }
    .hl-section-head { padding: 12px 14px; }
    .hl-item { flex-wrap: wrap; padding: 11px 14px; }
    /* Metin sutunu tam genislik alir; deger etiketi her zaman alt satira (ikon hizasina) iner */
    .hl-item-main { flex: 1 1 calc(100% - 36px); }
    .hl-item-value { max-width: none; margin-inline-start: 36px; text-align: start; }
}

/* Footer adres (includes/layout/footer.php) */
.footer-address { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 16px; font-style: normal; font-size: 13.5px; line-height: 1.6; opacity: 0.85; }
.footer-address i { margin-top: 4px; }
.footer-address-line { display: block; }
.footer-address-line.is-code { white-space: nowrap; } /* "Bina / Kodu" gibi bolunmesin */

/* Admin: kullanici listeleri, destek kullanici karti ve sohbette profil fotografi */
.stu-avatar, .su-avatar { overflow: hidden; }
.stu-avatar img, .su-avatar img, .support-chat-avatar img, .support-msg-avatar img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; }
.support-chat-avatar { width: 40px; height: 40px; flex-shrink: 0; overflow: hidden; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #6366f1); color: var(--white); font-size: 14px; font-weight: 700; }
.support-msg.has-avatar { align-items: flex-end; gap: 8px; }
.support-msg-avatar { width: 30px; height: 30px; flex-shrink: 0; overflow: hidden; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #6366f1); color: var(--white); font-size: 11px; font-weight: 700; }

@media (max-width: 768px) {
    .support-chat-avatar { width: 34px; height: 34px; font-size: 12px; }
    .support-msg-avatar { width: 26px; height: 26px; }
}

/* ===== Site kabugu: header + footer (ana sayfanin hm-* defter temasi; renkler :root --hm-*) ===== */
.logo:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 4px; border-radius: 12px; }
.nav-link:hover { background: var(--hm-paper); color: var(--hm-ink); }
.nav-link:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 1px; }
.nav-link.is-active { color: var(--hm-ink); font-weight: 600; }
.main-nav .nav-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 0; border-radius: 999px; background: var(--hm-ink); color: var(--white); font-weight: 600; box-shadow: none; }
.main-nav .nav-btn:hover { background: #22325a; color: var(--white); transform: none; }
.lang-selector-btn:hover { border-color: rgba(20,33,61,0.25); background: var(--hm-paper); }

@media (min-width: 1101px) {
    /* Masaustu: sade yazi menusu (ikonlar mobil menude kalir), aktif sayfanin altinda altin cizgi */
    .main-nav > ul > li > .nav-link > i:first-child { display: none; }
    .main-nav > ul > li > .nav-link { position: relative; padding: 8px 14px; }
    .main-nav .nav-link.is-active { color: var(--hm-ink); }
    .main-nav .nav-link.is-active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; border-radius: 2px; background: var(--hm-gold); transform: translateX(-50%); }
    .main-nav .dropdown-menu { padding: 6px; border: 1px solid rgba(20,33,61,0.08); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,33,61,0.12); }
    .main-nav .dropdown-menu a { border-radius: 8px; }
    .main-nav .dropdown-menu a:hover { background: var(--hm-paper); color: var(--hm-ink); }
}
@media (max-width: 1100px) {
    .main-nav { border-top: 0; border-bottom: 2px solid var(--hm-ink); box-shadow: 0 18px 32px -18px rgba(20,33,61,0.45); }
    .main-nav .nav-link.is-active { background: var(--primary-light); }
    .main-nav .nav-btn { display: flex; min-height: 48px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .main-nav { border-inline-start: 2px solid var(--hm-ink); }
}

/* Telefon/tablet menusu: karartilmis arka plan, menudeki dil listesi */
.nav-backdrop { position: fixed; inset: 64px 0 0; z-index: 98; background: rgba(20,33,61,0.32); animation: navFade 0.2s ease; }
.nav-backdrop[hidden] { display: none; }
@keyframes navFade { from { opacity: 0; } to { opacity: 1; } }
body.nav-open { overflow: hidden; }
.nav-lang-mobile { display: none; }
.nav-chevron { font-size: 10px; margin-inline-start: 3px; }
@media (max-width: 1100px) {
    .main-nav.open { animation: navDrop 0.2s ease; }
    @keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
    .nav-lang-mobile { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--gray-200); }
    .nav-lang-current { display: inline-flex; margin-inline-start: auto; }
    .nav-lang-current img { border-radius: 3px; }
    .main-nav .nav-lang-mobile > .nav-link .fa-chevron-down { margin-left: 0; margin-inline-start: 10px; }
    .main-nav .nav-lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
    .main-nav .nav-lang-mobile.open .nav-lang-list { display: grid; }
    .main-nav .nav-lang-list a { gap: 8px; min-height: 44px; padding: 8px 10px; font-size: 14px; }
    .main-nav .nav-lang-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .main-nav .nav-lang-list img { flex-shrink: 0; border-radius: 3px; }
    .main-nav .nav-lang-list a.active { background: rgba(244,180,0,0.18); color: var(--hm-ink); font-weight: 700; }
}
@media (max-width: 360px) {
    .main-nav .nav-lang-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-backdrop, .main-nav.open { animation: none; }
}

/* Footer: lacivert kareli zemin */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-logo i { color: var(--hm-gold); }
.footer-col > p { max-width: 36ch; line-height: 1.65; }
.footer-col h4 { margin-bottom: 16px; font-family: var(--hm-display); font-size: 14px; font-weight: 700; color: var(--white); }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.72); }
.footer-col a:hover, .footer-legal a:hover, .footer-legal-btn:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--hm-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.main-footer a:focus-visible, .footer-legal-btn:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 2px; border-radius: 4px; }
.social-links a { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,0.25); border-radius: 10px; background: transparent; }
.social-links a:hover { background: var(--hm-gold); border-color: var(--hm-gold); color: var(--hm-ink); text-decoration: none; }
.footer-secure-payment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; padding: 22px 26px; text-align: start; background: rgba(255,255,255,0.04); border: 1.5px dashed rgba(255,255,255,0.22); border-radius: 16px; }
.footer-secure-payment h4 { margin-bottom: 4px; font-family: var(--hm-display); font-size: 16px; }
.footer-secure-text p { max-width: 46ch; margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.65); }
.payment-icon { background: var(--white); display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 42px; padding: 6px 14px; border-radius: 8px; }
.footer-bottom .footer-legal { justify-content: flex-start; margin: 0; }
.footer-bottom > p { margin: 0; color: rgba(255,255,255,0.55); }
.hm-section.hm-section-last { padding-bottom: 0; }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 768px) {
    .main-footer { margin-top: 48px; padding-top: 44px; }
    .footer-secure-payment { flex-direction: column; align-items: flex-start; padding: 20px 18px; }
    .payment-icons { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; padding-bottom: 28px; }
    .payment-icon { flex: 1 1 42%; }
}

/* ===== Logo (assets/images/logo-mark.png = amblem, logo-full.png = yazili; ikisi de seffaf zeminli) ===== */
.logo-mark { display: block; flex-shrink: 0; width: auto; height: 46px; }
.footer-logo img { display: block; width: 150px; height: auto; }
.admin-sidebar .sidebar-logo .sidebar-logo-mark { width: 40px; height: 40px; border-radius: 0; background: none; box-shadow: none; object-fit: contain; }
.admin-login-logo { display: block; width: 72px; height: 72px; margin: 0 auto; object-fit: contain; }
@media (max-width: 1100px) {
    .logo-mark { height: 40px; }
}

/* ===== Header profil dugmesi (fotograf varsa fotograf, yoksa ikon) + Hesabim sayfasi (public/account.php) - acct-* ===== */
.nav-profile { position: relative; gap: 8px; }
.nav-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; overflow: hidden; border: 1px solid rgba(20,33,61,0.12); border-radius: 50%; background: var(--hm-paper); color: var(--hm-muted); font-size: 14px; }
.nav-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-profile .nav-dot, .header-account .nav-dot { position: absolute; top: 4px; inset-inline-start: 38px; width: 10px; height: 10px; border: 2px solid var(--white); }
.header-account { display: none; }

.acct-hero { padding: 40px 0 32px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.acct-hero-inner { display: flex; align-items: center; gap: 18px; max-width: 1000px; }
.acct-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 76px; height: 76px; overflow: hidden; border: 1px solid rgba(20,33,61,0.1); border-radius: 50%; background: var(--white); color: var(--hm-muted); font-size: 30px; box-shadow: 0 8px 24px -16px rgba(20,33,61,0.4); }
.acct-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acct-hero-text { min-width: 0; }
.acct-hero h1 { font-family: var(--hm-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--hm-ink); overflow-wrap: anywhere; }
.acct-hero p { margin-top: 4px; font-size: 16px; color: var(--hm-text); overflow-wrap: anywhere; }

.acct-body { padding: 28px 0 64px; background: var(--white); }
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; max-width: 1000px; }
.acct-col { display: grid; gap: 20px; min-width: 0; }
.acct-card { padding: 8px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.acct-card-title { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; font-size: 15px; font-weight: 700; color: var(--hm-ink); }
.acct-card-title i { color: var(--danger); }
.acct-menu { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.acct-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--hm-ink); font: inherit; font-size: 16px; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease; }
.acct-row-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--hm-paper); color: var(--primary); font-size: 16px; }
.acct-row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.acct-row-text small { overflow: hidden; font-size: 13.5px; font-weight: 500; color: var(--hm-muted); text-overflow: ellipsis; white-space: nowrap; }
.acct-row-value { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--hm-muted); white-space: nowrap; }
.acct-row-arrow { flex-shrink: 0; font-size: 12px; color: #9aa3b8; transition: transform 0.2s ease; }
[dir="rtl"] .acct-row-arrow.fa-chevron-right { transform: scaleX(-1); }
.acct-row.is-danger { color: #b4232a; }
.acct-row.is-danger .acct-row-icon { background: #fdeeee; color: #b4232a; }
.acct-row:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: -3px; }
.acct-count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--danger); color: var(--white); font-size: 12.5px; font-weight: 700; line-height: 24px; text-align: center; }
.acct-count.is-info { background: var(--hm-gold); color: var(--hm-ink); }
.acct-count[hidden] { display: none; }

.acct-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; }
.acct-btn-primary { background: var(--hm-ink); color: var(--white); }
.acct-btn-outline { border: 1px solid rgba(20,33,61,0.2); color: var(--hm-ink); }

.acct-lang summary { list-style: none; }
.acct-lang summary::-webkit-details-marker { display: none; }
.acct-lang[open] summary .acct-row-arrow { transform: rotate(180deg); }
.acct-lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px 4px 8px; }
.acct-lang-option { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border-radius: 12px; color: var(--hm-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.acct-lang-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-lang-option img { flex-shrink: 0; border-radius: 3px; }
.acct-lang-option.is-active { background: rgba(244,180,0,0.18); font-weight: 700; }

@media (hover: hover) {
    .acct-row:hover, .acct-lang-option:hover { background: var(--hm-paper); color: var(--hm-ink); }
    .acct-row.is-danger:hover { color: #b4232a; }
    .acct-btn-primary:hover { background: #22325a; color: var(--white); }
    .acct-btn-outline:hover { background: var(--hm-paper); color: var(--hm-ink); }
}
@media (max-width: 1100px) {
    /* Telefon/tablet ust serit: sagda profil gorseli (Hesabim) + menu dugmesi */
    .header-account { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-start: auto; }
    .header-account .nav-avatar { width: 36px; height: 36px; }
    .header-account .nav-dot { top: 3px; inset-inline-start: 32px; }
}
@media (max-width: 768px) {
    .acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .acct-hero { padding: 28px 0 22px; }
    .acct-avatar { width: 64px; height: 64px; font-size: 26px; }
    .acct-body { padding-top: 20px; }
    .acct-grid, .acct-col { gap: 14px; }
}

/* ===== Ogrenci paneli (public/dashboard.php) - dsh-* ; sade: acik hero, beyaz kartlar, buyuk rakamlar ===== */
.dsh-hero { padding: 40px 0 32px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.dsh-hero-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.dsh-hero h1 { margin-bottom: 8px; font-family: var(--hm-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); overflow-wrap: anywhere; }
.dsh-hero p { max-width: 38em; font-size: 17px; line-height: 1.6; color: var(--hm-text); }
.dsh-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dsh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease; }
.dsh-btn-primary { background: var(--hm-ink); color: var(--white); }
.dsh-btn-outline { border: 1px solid rgba(20,33,61,0.2); background: var(--white); color: var(--hm-ink); }
.dsh-btn:focus-visible, .dsh-link:focus-visible, .dsh-result:focus-visible, .dsh-links a:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 2px; }

.dsh-body { padding: 28px 0 64px; background: var(--white); }

/* Ozet rakamlari */
.dsh-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 0 28px; }
.dsh-stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 18px 20px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 18px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.dsh-stat dt { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--hm-muted); }
.dsh-stat dt i { font-size: 13px; color: var(--primary); }
.dsh-stat dd { margin: 0; font-family: var(--hm-display); font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--hm-ink); }
.dsh-stat.is-points { background: var(--hm-ink); border-color: var(--hm-ink); }
.dsh-stat.is-points dt { color: rgba(255,255,255,0.75); }
.dsh-stat.is-points dt i { color: var(--hm-gold); }
.dsh-stat.is-points dd { color: var(--white); }

/* Kartlar */
.dsh-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.dsh-col { display: grid; gap: 20px; min-width: 0; }
.dsh-card { padding: 20px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.dsh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dsh-card-head h2 { font-family: var(--hm-display); font-size: 18px; font-weight: 700; color: var(--hm-ink); }
.dsh-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--primary); white-space: nowrap; }

.dsh-results { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dsh-result { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-radius: 14px; color: var(--hm-ink); text-decoration: none; transition: background-color 0.2s ease; }
.dsh-result-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dsh-result-text strong { overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dsh-result-text small { overflow: hidden; font-size: 13.5px; color: var(--hm-muted); text-overflow: ellipsis; white-space: nowrap; }
.dsh-score { flex-shrink: 0; min-width: 72px; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; text-align: center; }
.dsh-score.is-high { background: #e6f7f0; color: #0a7250; }
.dsh-score.is-mid { background: #fff4d1; color: #6b4f00; }
.dsh-score.is-low { background: #fdeeee; color: #b4232a; }
.dsh-arrow { flex-shrink: 0; margin-inline-start: auto; font-size: 12px; color: #9aa3b8; }
[dir="rtl"] .dsh-arrow { transform: scaleX(-1); }

.dsh-perf { display: grid; gap: 18px; margin: 0; padding: 4px 0 0; list-style: none; }
.dsh-perf-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 15.5px; color: var(--hm-ink); }
.dsh-perf-top span { font-weight: 700; }
.dsh-bar { height: 10px; overflow: hidden; border-radius: 999px; background: var(--hm-paper); }
.dsh-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.dsh-perf small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--hm-muted); }

.dsh-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; margin: 0; padding: 0; list-style: none; }
.dsh-badges li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--hm-ink); }
.dsh-badge-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--badge); color: var(--white); font-size: 20px; }

.dsh-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dsh-links a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 14px; color: var(--hm-ink); font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background-color 0.2s ease; }
.dsh-link-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: var(--hm-paper); color: var(--primary); font-size: 15px; }

.dsh-empty { padding: 24px 12px; text-align: center; }
.dsh-empty.is-small { padding: 12px; }
.dsh-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--hm-paper); color: var(--hm-muted); font-size: 22px; }
.dsh-empty p { margin-bottom: 16px; font-size: 15.5px; color: var(--hm-text); }
.dsh-empty.is-small p { margin-bottom: 0; }

@media (hover: hover) {
    .dsh-result:hover, .dsh-links a:hover { background: var(--hm-paper); color: var(--hm-ink); }
    .dsh-btn-primary:hover { background: #22325a; color: var(--white); }
    .dsh-btn-outline:hover { background: var(--hm-paper); color: var(--hm-ink); }
}
@media (max-width: 1100px) {
    .dsh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .dsh-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .dsh-hero { padding: 28px 0 22px; }
    .dsh-hero p { font-size: 16px; }
    .dsh-hero-actions, .dsh-hero-actions .dsh-btn { width: 100%; }
    .dsh-hero-actions .dsh-btn { flex: 1 1 0; padding: 0 14px; }
    .dsh-body { padding-top: 20px; }
    .dsh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dsh-stat.is-points { grid-column: 1 / -1; }
    .dsh-stat { padding: 14px 16px; }
    .dsh-stat dd { font-size: 24px; }
    .dsh-card { padding: 16px; }
    .dsh-result { gap: 10px; padding: 10px 8px; }
    .dsh-score { min-width: 64px; padding: 5px 10px; font-size: 14px; }
}

/* ===== Sinav sonucu (public/exam-result.php) - rs-* ; sade: acik hero, puan halkasi, okunakli cozumler, duruma gore suzme ===== */
.rs-hero { padding: 40px 0 32px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.rs-hero-inner { display: flex; align-items: center; gap: 28px; }
.rs-ring { position: relative; flex-shrink: 0; width: 148px; height: 148px; }
.rs-ring svg { display: block; width: 100%; height: 100%; }
.rs-ring circle { fill: none; stroke-width: 10; }
.rs-ring-track { stroke: rgba(20,33,61,0.08); }
.rs-ring-fill { stroke-linecap: round; }
.rs-ring.is-passed .rs-ring-fill { stroke: var(--hm-mint); }
.rs-ring.is-failed .rs-ring-fill { stroke: var(--hm-gold); }
.rs-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rs-ring-text strong { font-family: var(--hm-display); font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--hm-ink); }
.rs-ring-text small { font-size: 13.5px; color: var(--hm-muted); }
.rs-hero-text { min-width: 0; }
.rs-status { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.rs-status.is-passed { background: #e6f7f0; color: #0a7250; }
.rs-status.is-failed { background: #fff4d1; color: #6b4f00; }
.rs-hero h1 { margin-bottom: 6px; font-family: var(--hm-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); }
.rs-exam-title { font-size: 18px; font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.rs-meta { margin-top: 4px; font-size: 15px; color: var(--hm-text); }

.rs-body { padding: 28px 0 64px; background: var(--white); }
.rs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.rs-stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 20px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 18px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.rs-stat dt { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--hm-muted); }
.rs-stat dt i { color: var(--hm-muted); }
.rs-stat.is-correct dt i { color: var(--hm-mint); }
.rs-stat.is-wrong dt i { color: var(--hm-coral); }
.rs-stat dd { margin: 0; font-family: var(--hm-display); font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--hm-ink); }

.rs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background-color 0.2s ease; }
.rs-btn-primary { background: var(--hm-ink); color: var(--white); }
.rs-btn-outline { border: 1px solid rgba(20,33,61,0.2); background: var(--white); color: var(--hm-ink); }
.rs-btn:focus-visible, .rs-chip:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 2px; }

.rs-solutions-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.rs-solutions-head h2 { font-family: var(--hm-display); font-size: 24px; font-weight: 700; color: var(--hm-ink); }
.rs-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--white); color: var(--hm-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.rs-chip small { font-size: 13px; color: var(--hm-muted); }
.rs-chip.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); font-weight: 600; }
.rs-chip.is-active small { color: rgba(255,255,255,0.75); }

.rs-list { display: grid; gap: 18px; }
.rs-card { padding: 22px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.rs-card[hidden] { display: none; }
.rs-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rs-card-head h3 { font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.rs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.rs-pill.is-correct { background: #e6f7f0; color: #0a7250; }
.rs-pill.is-wrong { background: #fdeeee; color: #b4232a; }
.rs-pill.is-empty { background: var(--hm-paper); color: var(--hm-muted); }
.rs-question { margin-bottom: 16px; font-size: 16.5px; line-height: 1.65; color: var(--hm-ink); overflow-wrap: anywhere; }
.rs-figure { margin: 0 0 16px; }
.rs-figure img { display: block; max-width: 100%; height: auto; max-height: 420px; border: 1px solid rgba(20,33,61,0.08); border-radius: 12px; }

.rs-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-option { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-height: 52px; padding: 8px 14px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; color: var(--hm-ink); font-size: 15.5px; }
.rs-letter { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--hm-paper); font-size: 14px; font-weight: 700; color: var(--hm-text); }
.rs-option-text { flex: 1 1 120px; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.rs-option-text img { display: block; max-width: 100%; max-height: 140px; border-radius: 8px; }
.rs-option.is-right { border-color: rgba(14,159,110,0.45); background: #effaf5; }
.rs-option.is-right .rs-letter { background: var(--hm-mint); color: var(--white); }
.rs-option.is-mine-wrong { border-color: rgba(229,72,77,0.45); background: #fdf1f1; }
.rs-option.is-mine-wrong .rs-letter { background: var(--hm-coral); color: var(--white); }
.rs-tag { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.rs-tag.is-right { color: #0a7250; }
.rs-tag.is-wrong { color: #b4232a; }

.rs-explain { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--hm-paper); }
.rs-explain h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--hm-ink); }
.rs-explain h4 i { color: #e0a400; }
.rs-explain-text { font-size: 15.5px; line-height: 1.7; color: var(--hm-ink); overflow-wrap: anywhere; }
.rs-explain .rs-figure { margin: 12px 0 0; }

@media (hover: hover) {
    .rs-btn-primary:hover { background: #22325a; color: var(--white); }
    .rs-btn-outline:hover, .rs-chip:not(.is-active):hover { background: var(--hm-paper); color: var(--hm-ink); }
}
@media (max-width: 900px) {
    .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .rs-hero { padding: 28px 0 22px; }
    .rs-hero-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
    .rs-ring { width: 120px; height: 120px; }
    .rs-ring-text strong { font-size: 26px; }
    .rs-body { padding-top: 20px; }
    .rs-stats { gap: 10px; }
    .rs-stat { padding: 14px 16px; }
    .rs-stat dd { font-size: 24px; }
    .rs-actions .rs-btn { flex: 1 1 100%; }
    .rs-card { padding: 16px; }
    .rs-solutions-head h2 { font-size: 20px; }
    .rs-options { grid-template-columns: 1fr; }
}

/* ===== Sinav ekrani: tablet (dikey + yatay) ve telefon. Soru listesi yan panel yerine cekmece, soru alani ortada.
   (Temel kurallar dosyanin basindaki "Sinav ekrani" blogunda; bu blok ondan ve ust cubugun telefon kuralindan sonra gelmeli) ===== */
@media (max-width: 1100px) {
    .exam-nav-toggle { display: inline-flex; }
    .exam-topbar { padding: 10px 16px; gap: 12px; }
    .exam-topbar-left { min-width: 0; }
    .exam-topbar-left .exam-category-badge { display: none; }
    .exam-layout { grid-template-columns: 1fr; }
    .exam-nav-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 200; width: min(340px, 86vw); height: auto; padding: 20px 16px; border-right: 1px solid rgba(20,33,61,0.08); box-shadow: 0 0 40px rgba(0,0,0,0.25); transform: translateX(-105%); transition: transform 0.25s ease; visibility: hidden; }
    body.exam-nav-open .exam-nav-panel { transform: none; visibility: visible; }
    .question-nav-grid { grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 8px; }
    .q-nav-btn { font-size: 15px; }
    .exam-question-area { padding: 28px 24px 120px; }
    .option-letter { width: 40px; height: 40px; }
}
@media (max-width: 768px) {
    .exam-topbar { padding: 8px 12px; gap: 8px 12px; }
    .exam-question-area { padding: 20px 16px 110px; }
    .question-text { font-size: 17px; }
    .exam-timer { font-size: 17px; padding: 6px 12px; }
    .exam-nav-toggle { padding: 0 12px; }
    .exam-nav-toggle-label { display: none; }
    .pen-toggle { width: 56px; padding: 0; }
    .pen-toggle span { display: none; }
    .pen-dock { right: 14px; bottom: 14px; flex-direction: column-reverse; align-items: flex-end; }
    .pen-dock { left: 14px; }
    .pen-panel { width: 100%; padding: 10px; }
    .pen-tool { min-height: 56px; font-size: 11px; }
    .question-actions .btn { padding: 0 18px; }
}
@media (max-width: 400px) {
    .exam-integrity-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .exam-nav-panel { transition: none; }
    .exam-timer.danger { animation: none; }
}

/* ===== Sinav baslangic (public/exam-start.php) - es-* ; sade: acik hero, bilgi kutulari, dil secimi, kurallar ===== */
.es-narrow { max-width: 880px; }
.es-hero { padding: 32px 0 30px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.es-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--hm-text); }
[dir="rtl"] .es-back i { transform: scaleX(-1); }
.es-hero h1 { margin-bottom: 8px; font-family: var(--hm-display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); overflow-wrap: anywhere; }
.es-meta { font-size: 16px; font-weight: 600; color: var(--hm-text); }
.es-desc { max-width: 40em; margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--hm-text); }

.es-body { padding: 24px 0 64px; background: var(--white); }
.es-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.es-facts > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 18px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 18px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.es-facts dt { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--hm-muted); }
.es-facts dt i { color: var(--primary); font-size: 13px; }
.es-facts dd { margin: 0; font-family: var(--hm-display); font-size: 20px; font-weight: 700; color: var(--hm-ink); }

.es-form { display: grid; gap: 16px; }
.es-card { padding: 20px 22px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.es-card h2 { margin-bottom: 14px; font-family: var(--hm-display); font-size: 18px; font-weight: 700; color: var(--hm-ink); }
.es-note { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; font-size: 14.5px; color: var(--hm-text); }
.es-note i { margin-top: 3px; color: var(--hm-muted); }

.es-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.es-lang input { position: absolute; opacity: 0; pointer-events: none; }
.es-lang-card { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 1.5px solid rgba(20,33,61,0.12); border-radius: 14px; background: var(--white); color: var(--hm-ink); font-size: 15.5px; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.es-lang-card img { flex-shrink: 0; border-radius: 3px; }
.es-lang-card span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-lang-card i { color: var(--hm-ink); opacity: 0; transition: opacity 0.15s ease; }
.es-lang input:checked + .es-lang-card { border-color: var(--hm-ink); background: #eef2fb; box-shadow: 0 0 0 1px var(--hm-ink); }
.es-lang input:checked + .es-lang-card i { opacity: 1; }
.es-lang input:focus-visible + .es-lang-card { outline: 3px solid var(--hm-gold); outline-offset: 2px; }

.es-rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.es-rules li { position: relative; padding-inline-start: 26px; font-size: 15.5px; line-height: 1.6; color: var(--hm-ink); }
.es-rules li::before { content: ''; position: absolute; inset-inline-start: 6px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.es-rules li.is-strict { padding: 10px 14px 10px 36px; border-radius: 12px; background: #fff4d1; color: #5a4300; font-weight: 600; }
[dir="rtl"] .es-rules li.is-strict { padding: 10px 36px 10px 14px; }
.es-rules li.is-strict::before { inset-inline-start: 16px; top: 1.05em; background: #b58500; }

.es-start { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--hm-ink); color: var(--white); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color 0.2s ease; }
.es-start:focus-visible, .es-back:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 3px; }

@media (hover: hover) {
    .es-start:hover { background: #22325a; }
    .es-lang-card:hover { border-color: rgba(20,33,61,0.35); }
    .es-back:hover { color: var(--hm-ink); }
}
@media (max-width: 640px) {
    .es-hero { padding: 20px 0 22px; }
    .es-body { padding-top: 18px; }
    .es-facts { grid-template-columns: 1fr; gap: 10px; }
    .es-facts > div { padding: 14px; }
    .es-facts dd { font-size: 18px; }
    .es-card { padding: 16px; }
}

/* Sinav ekrani pencereleri (Sinavi Bitir, sekme uyarisi): butonlar her zaman gorunur, icerik kendi icinde kayar */
.exam-body .modal-content { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; }
.exam-body .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.exam-body .modal-actions { flex-shrink: 0; flex-wrap: wrap; }
.exam-body .modal-actions .btn { min-height: 48px; border-radius: 999px; }
@media (max-height: 520px) {
    /* Yatay telefon: bosluklar sikisir */
    .exam-body .modal-content { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    .exam-body .modal-header { padding: 12px 20px; }
    .exam-body .modal-body { padding: 12px 20px; }
    .exam-body .finish-summary { margin-top: 6px; }
    .exam-body .summary-item { padding: 4px 0; }
    .exam-body .modal-actions { padding: 10px 20px; }
    .exam-body .modal-actions .btn { min-height: 44px; }
}

/* ===== Profil bilgilerim (public/profile.php) - pf-* ; sade: solda fotograf karti, sagda gruplu form kartlari ===== */
.pf-wrap { max-width: 1040px; }
.pf-hero { padding: 28px 0 26px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.pf-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--hm-text); }
[dir="rtl"] .pf-back i { transform: scaleX(-1); }
.pf-hero h1 { font-family: var(--hm-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); }

.pf-body { padding: 24px 0 64px; background: var(--white); }
.pf-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 20px; }
.pf-card { padding: 22px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.pf-card + .pf-card { margin-top: 16px; }
.pf-card-title { margin-bottom: 16px; font-family: var(--hm-display); font-size: 18px; font-weight: 700; color: var(--hm-ink); scroll-margin-top: 90px; }

/* Fotograf karti (yan sutun, masaustunde yapiskan) */
.pf-side { position: sticky; top: 90px; }
.pf-side .pf-avatar-row { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pf-side .pf-avatar { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; overflow: hidden; border: 1px solid rgba(20,33,61,0.1); border-radius: 50%; background: var(--hm-paper); color: #9aa3b8; font-size: 42px; }
.pf-side .pf-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-side .pf-avatar-main { width: 100%; min-width: 0; }
.pf-name { font-size: 19px; font-weight: 700; color: var(--hm-ink); overflow-wrap: anywhere; }
.pf-email { margin-top: 2px; font-size: 14.5px; color: var(--hm-text); overflow-wrap: anywhere; }
.pf-side .pf-avatar-hint { margin: 12px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--hm-muted); }
.pf-side .pf-avatar-actions { display: grid; gap: 8px; }
.pf-side .pf-avatar-status { margin-top: 10px; font-size: 14px; }

.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; }
.pf-btn-primary { background: var(--hm-ink); color: var(--white); }
.pf-btn-danger { border-color: rgba(229,72,77,0.4); background: var(--white); color: #b4232a; }
.pf-btn:focus-visible, .pf-back:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 2px; }
.pf-btn[hidden] { display: none; }

/* Form */
.pf-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: #fdeeee; color: #b4232a; font-size: 15px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-span-2 { grid-column: 1 / -1; }
.pf-field { display: grid; gap: 6px; min-width: 0; }
.pf-field label { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.pf-field input, .pf-field select {
    width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid rgba(20,33,61,0.14); border-radius: 12px;
    background-color: var(--white); color: var(--hm-ink); font: inherit; font-size: 16px; /* 16px: iOS zoom yapmaz */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pf-field input:focus, .pf-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.pf-field input:disabled { background: var(--hm-paper); color: var(--hm-text); cursor: not-allowed; }
.pf-field input.is-invalid { border-color: var(--hm-coral); }
.pf-field select { padding-inline-end: 36px; cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
[dir="rtl"] .pf-field select { background-position: left 14px center; }
.pf-help { font-size: 13px; color: var(--hm-muted); }
.pf-field .iti input.iti__tel-input { height: 48px; }
.pf-field .iti__selected-country { border-radius: 11px 0 0 11px; }
.pf-field .field-error { font-size: 13px; color: #b4232a; }

.pf-card .pf-forgot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -6px 0 16px; font-size: 14px; color: var(--hm-text); }
.pf-card .pf-forgot a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 600; color: var(--primary); }

.pf-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.pf-save { min-width: 180px; min-height: 52px; font-size: 16px; }

@media (hover: hover) {
    .pf-btn-primary:hover { background: #22325a; color: var(--white); }
    .pf-btn-danger:hover { background: #fdeeee; color: #b4232a; }
    .pf-back:hover { color: var(--hm-ink); }
}
@media (max-width: 900px) {
    /* Dikey tablet: fotograf karti ustte, yatay */
    .pf-layout { grid-template-columns: 1fr; }
    .pf-side { position: static; }
    .pf-side .pf-avatar-row { flex-direction: row; align-items: center; gap: 20px; text-align: start; }
    .pf-side .pf-avatar { width: 96px; height: 96px; font-size: 36px; }
    .pf-side .pf-avatar-actions { display: flex; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .pf-hero { padding: 18px 0 20px; }
    .pf-body { padding-top: 18px; }
    .pf-card { padding: 16px; }
    .pf-side .pf-avatar-row { flex-direction: column; text-align: center; gap: 12px; }
    .pf-side .pf-avatar-actions { display: grid; }
    .pf-grid { grid-template-columns: 1fr; gap: 14px; }
    .pf-actions .pf-save { width: 100%; }
}

/* ===== Ortak acik sayfa basligi (page-hero): my-results, support, support-tickets ===== */
.page-hero { padding: 36px 0 30px;
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.page-hero h1 { margin-bottom: 8px; font-family: var(--hm-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); }
.page-hero p { max-width: 42em; font-size: 16.5px; line-height: 1.6; color: var(--hm-text); }
.page-hero-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--hm-text); }
[dir="rtl"] .page-hero-back i { transform: scaleX(-1); }
@media (max-width: 640px) {
    .page-hero { padding: 24px 0 20px; }
    .page-hero p { font-size: 15.5px; }
}

/* ===== Sinav sonuclarim (public/my-results.php): sade katman (yerlesim onceki kurallarda) ===== */
.results-section { padding: 28px 0 64px; background: var(--white); }
.results-section .rs-item { border: 1px solid rgba(20,33,61,0.08); border-radius: 18px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.results-section .rs-item > i { background: var(--hm-paper); color: var(--primary); }
.results-section .rs-item strong { font-family: var(--hm-display); font-size: 22px; color: var(--hm-ink); }
.results-section .rs-item span { font-size: 13.5px; color: var(--hm-muted); }
.results-section .result-group { border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.results-section .result-group + .result-group { margin-top: 16px; }
.results-section .rg-head { border-bottom-color: rgba(20,33,61,0.07); }
.results-section .rg-title { font-family: var(--hm-display); font-size: 18px; font-weight: 700; color: var(--hm-ink); }
.results-section .rg-cat { font-size: 14px; color: var(--hm-muted); }
.results-section .rg-stat { border-radius: 14px; background: var(--hm-paper); }
.results-section .rg-stat strong { color: var(--hm-ink); }
.results-section .rg-stat strong.is-passed { color: #0a7250; }
.results-section .rg-stat strong.is-failed { color: #b4232a; }
.results-section .rg-stat span { color: var(--hm-muted); }
.results-section .rg-retake, .results-section .attempt-detail, .results-section .rg-more .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 999px; font-weight: 600; }
.results-section .rg-retake { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.results-section .attempt-detail, .results-section .rg-more .btn { border: 1px solid rgba(20,33,61,0.2); background: var(--white); color: var(--hm-ink); }
.results-section .attempt-list-head { background: var(--hm-paper); color: var(--hm-muted); font-size: 13px; text-transform: none; letter-spacing: 0; }
.results-section .attempt-row { border-top-color: rgba(20,33,61,0.07); font-size: 14.5px; color: var(--hm-ink); }
.results-section .score-badge.passed { background: #e6f7f0; color: #0a7250; }
.results-section .score-badge.failed { background: #fdeeee; color: #b4232a; }
@media (hover: hover) {
    .results-section .attempt-row:hover { background: var(--hm-paper); }
    .results-section .rg-retake:hover { background: #22325a; border-color: #22325a; color: var(--white); }
    .results-section .attempt-detail:hover, .results-section .rg-more .btn:hover { background: var(--hm-paper); color: var(--hm-ink); }
}

/* ===== Destek (public/support.php, support-tickets.php): sade katman ===== */
.support-section { padding: 28px 0 64px; background: var(--white); }
.support-section .support-card { border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.support-section .sp-new-head { color: var(--hm-ink); background: var(--hm-paper); border-bottom: 1px solid rgba(20,33,61,0.07); }
.support-section .sp-new-head::after { display: none; }
.support-section .support-card .sp-new-head h2 { font-family: var(--hm-display); font-weight: 700; color: var(--hm-ink); }
.support-section .sp-new-head p { color: var(--hm-text); }
.support-section .sp-new-icon { background: var(--hm-ink); color: var(--hm-gold); box-shadow: none; }
.support-section .sp-submit { min-height: 52px; border-radius: 999px; background: var(--hm-ink); box-shadow: none; font-size: 16px; }
.support-section .sp-submit:hover { background: #22325a; box-shadow: none; transform: none; }
.support-section .sp-topic { min-height: 40px; border-radius: 999px; }
.support-section .sp-topic[aria-pressed="true"] { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.support-section .sp-topic[aria-pressed="true"] i { color: var(--hm-gold); }
.support-section .sp-input input, .support-section .sp-input textarea { font-size: 16px; } /* iOS zoom yapmasin */
.support-section .sp-list-head h2 { font-family: var(--hm-display); font-weight: 700; color: var(--hm-ink); }
.support-section .support-ticket-item { min-height: 64px; border-radius: 14px; }
.support-section .support-ticket-subject { color: var(--hm-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.35; }
.support-section .st-filter { min-height: 44px; }
.support-section .st-filters { flex-wrap: wrap; overflow: visible; }
/* Dar ekranda konu tek satirda erken kisalmasin: iki satira kadar */
@media (max-width: 480px) {
    /* Telefon: durum etiketi konunun altina, konu tam genislik */
    .support-section .support-ticket-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 6px; }
    .support-section .support-ticket-icon { grid-row: span 2; align-self: start; }
    .support-section .support-ticket-item .support-status { grid-column: 2; justify-self: start; }
}
.support-section .st-filter.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.support-section .st-filter.is-active i { color: var(--hm-gold); }
.support-section .st-new { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-color: var(--hm-ink); border-radius: 999px; background: var(--hm-ink); font-weight: 600; }
@media (hover: hover) {
    .support-section .support-ticket-item:hover { background: var(--hm-paper); }
    .support-section .st-new:hover { background: #22325a; border-color: #22325a; }
}

/* ===== Destek sohbeti (public/support-ticket.php): sade katman; admin ayni parcayi kullandigi icin sadece .support-chat-page altinda ===== */
.support-chat-page .support-chat { border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.35); }
.support-chat-page .support-chat-title { font-family: var(--hm-display); color: var(--hm-ink); }
.support-chat-page .support-msg.is-mine .support-bubble { background: var(--hm-ink); }
.support-chat-page .support-send-btn { background: var(--hm-ink); }
.support-chat-page .support-send-btn:hover { background: #22325a; }
.support-chat-page .support-close-btn { border-radius: 999px; }
.support-chat-page .support-composer textarea { min-height: 48px; font-size: 16px; } /* yazi boyu 16 piksel: iOS zoom yapmaz. Yukseklik 48 piksel: tek satirda kaydirma oku cikmaz */
/* Telefon/tablet: sohbet ekrani = ekran - ust serit (64px) - bosluk; yazma alani hep gorunur */
@media (max-width: 1100px) {
    .support-chat-page .support-chat { min-height: 360px; height: calc(100vh - 64px - 48px); height: calc(100dvh - 64px - 48px); }
}
@media (max-width: 768px) {
    .support-chat-page .support-chat { border: 0; border-radius: 0; box-shadow: none; height: calc(100vh - 64px); height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px)); }
}

/* ===== Kampanyalar (public/campaigns.php) ve kampanya detayi (public/campaign.php): sade katman.
   Yerlesim onceki cmp-/cmpd- kurallarinda; kampanyanin vurgu rengi (--cmp-color, admin secer) korunur. ===== */
.cmp-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(700px 360px at 90% -10%, rgba(244,180,0,0.35), transparent 60%), radial-gradient(600px 320px at 0% 120%, rgba(234,67,53,0.35), transparent 60%), linear-gradient(160deg, #0f1733 0%, #16213e 60%, #1a1a2e 100%);
    padding: 36px 0 30px;
    color: var(--hm-ink);
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px;
}
.cmp-hero::before, .cmp-hero::after { display: none; }
.cmp-hero h1 { font-family: var(--hm-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--hm-ink); }
.cmp-hero p { font-size: 16.5px; line-height: 1.6; color: var(--hm-text); }
.cmp-body .cmp-section-title { font-family: var(--hm-display); font-size: 20px; font-weight: 700; color: var(--hm-ink); }
.cmp-body .cmp-section-title i { color: var(--hm-muted); }
.cmp-body .cmp-card { border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.cmp-body .cmp-cover.is-empty { background: color-mix(in srgb, var(--cmp-color) 12%, #fff); color: var(--cmp-color); }
.cmp-body .cmp-type { font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.cmp-body .cmp-card h3 { font-size: 19px; font-weight: 700; color: var(--hm-ink); }
.cmp-body .cmp-btn, .cmpd-body .cmp-btn { min-height: 50px; border-radius: 999px; font-weight: 700; }
.cmp-body .cmp-btn.is-outline { border-color: rgba(20,33,61,0.2); color: var(--hm-ink); }

.cmpd-hero:not(.has-cover) { color: var(--hm-ink);
    background-color: var(--hm-paper);
    background-image: linear-gradient(var(--hm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
    background-size: 28px 28px; }
.cmpd-hero:not(.has-cover)::before, .cmpd-hero:not(.has-cover)::after { display: none; }
.cmpd-hero:not(.has-cover) .cmpd-back { color: var(--hm-text); }
.cmpd-hero:not(.has-cover) .cmpd-type { border-color: rgba(20,33,61,0.12); background: var(--white); color: var(--cmp-color); }
.cmpd-hero:not(.has-cover) .cmpd-desc { color: var(--hm-text); }
.cmpd-hero h1 { font-family: var(--hm-display); font-weight: 700; letter-spacing: -0.02em; }
.cmpd-body .cmpd-title { font-family: var(--hm-display); font-weight: 700; color: var(--hm-ink); }
.cmpd-body .cmpd-exam { border-color: rgba(20,33,61,0.08); border-radius: 18px; box-shadow: 0 12px 32px -26px rgba(20,33,61,0.3); }
.cmpd-body .cmpd-exam h3 { color: var(--hm-ink); }
.cmpd-body .cmp-mini-btn { min-height: 40px; border-radius: 999px; }
.cmpd-body .cmpd-buy { border-color: rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 16px 40px -28px rgba(20,33,61,0.4); }
.cmpd-body .cmpd-buy-label { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--hm-muted); }
.cmpd-body .cmpd-buy-price strong { font-family: var(--hm-display); font-weight: 700; color: var(--hm-ink); }
.cmpd-body .cmpd-buy-price strong.is-text { color: var(--cmp-color); }
.cmpd-body .cmpd-terms { border-radius: 16px; }

/* ===== Odeme (public/payment.php): sade katman; form alanlari, id'ler ve JS aynen ===== */
.pay-page-hero .pay-hero-wrap { max-width: 560px; }
.pay-page { padding: 28px 0 64px; background: var(--white); }
.pay-page .pay-card { border-color: rgba(20,33,61,0.08); border-radius: 22px; box-shadow: 0 16px 40px -26px rgba(20,33,61,0.35); }
.pay-page .pay-hero-amount { font-family: var(--hm-display); font-weight: 700; letter-spacing: -0.02em; color: var(--hm-ink); }
.pay-page .pay-order-toggle { min-height: 36px; border-radius: 999px; background: var(--hm-paper); color: var(--hm-ink); }
.pay-page .pay-radio { border-color: var(--hm-ink); }
.pay-page .pay-radio::after { background: var(--hm-ink); }
.pay-page .pay-method-name { color: var(--hm-ink); }
.pay-page .pay-method-note { background: var(--hm-paper); color: var(--hm-text); font-size: 13.5px; }
.pay-page .pay-input { height: 52px; font-size: 16px; border-color: rgba(20,33,61,0.16); } /* 16px: iOS zoom yapmaz */
.pay-page .pay-float-label { font-size: 12.5px; color: var(--hm-text); }
.pay-page .pay-button { height: 56px; border-radius: 999px; background: var(--hm-ink); box-shadow: 0 12px 26px -14px rgba(20,33,61,0.7); }
.pay-page .pay-button:hover { background: #22325a; filter: none; transform: none; box-shadow: 0 12px 26px -14px rgba(20,33,61,0.7); }
.pay-page .pay-button:focus-visible { box-shadow: 0 0 0 4px rgba(244,180,0,0.55); }
.pay-page .pay-consent, .pay-page .pay-secure { font-size: 13px; color: var(--hm-text); }
.pay-page .pay-cmp-title { font-family: var(--hm-display); font-weight: 700; color: var(--hm-ink); }

/* ===== Yasal belgeler (public/legal.php - tum sozlesmeler): sade katman, okunakli metin ===== */
.legal-hero .legal-breadcrumb { margin-bottom: 4px; }
.legal-hero .legal-breadcrumb a { color: var(--hm-text); }
.legal-hero .legal-breadcrumb a:hover { color: var(--hm-ink); }
.legal-hero .legal-meta-row { gap: 8px; margin-top: 14px; color: var(--hm-text); }
.legal-hero .legal-meta-row span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(20,33,61,0.1); border-radius: 999px; background: var(--white); font-size: 13.5px; }
.legal-hero .legal-meta-row i { margin: 0; color: var(--hm-muted); }
.legal-section { padding: 28px 0 64px; background: var(--white); }
.legal-section .legal-layout { max-width: 1120px; margin: 0 auto; }
.legal-section .legal-article { padding: 32px 40px 36px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.legal-section .legal-article-actions .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border-radius: 999px; }
.legal-section .legal-content { max-width: 72ch; font-size: 16.5px; line-height: 1.85; color: var(--hm-ink); }
.legal-section .legal-content h2 { font-size: 21px; color: var(--hm-ink); border-top-color: rgba(20,33,61,0.08); scroll-margin-top: 90px; }
.legal-section .legal-content h3 { font-size: 18px; color: var(--hm-ink); scroll-margin-top: 90px; }
.legal-section .legal-content li::marker { color: var(--hm-muted); }
.legal-section .legal-aside-card { border: 1px solid rgba(20,33,61,0.08); border-radius: 18px; box-shadow: 0 12px 32px -26px rgba(20,33,61,0.3); }
.legal-section .legal-aside-card h4 { font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--hm-ink); }
.legal-section .legal-toc a, .legal-section .legal-doc-nav a { min-height: 40px; border-radius: 10px; font-size: 14px; color: var(--hm-text); }
.legal-section .legal-doc-nav a { display: flex; align-items: center; }
.legal-section .legal-doc-nav a.active { background: var(--hm-paper); color: var(--hm-ink); }
.legal-section .legal-doc-nav a.active i { color: var(--hm-ink); }
.legal-section .legal-card { border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.legal-section .legal-card:hover { transform: none; border-color: rgba(20,33,61,0.25); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.legal-section .legal-card-icon { background: var(--hm-paper); color: var(--hm-ink); }
.legal-section .legal-card h3 { color: var(--hm-ink); }
.legal-section .legal-card-link { color: var(--primary); }
.legal-toc-mobile { display: none; margin-bottom: 20px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; background: var(--hm-paper); }
.legal-toc-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 700; color: var(--hm-ink); }
.legal-toc-mobile summary::-webkit-details-marker { display: none; }
.legal-toc-mobile summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free', sans-serif; font-weight: 900; font-size: 12px; color: var(--hm-muted); transition: transform 0.2s ease; }
.legal-toc-mobile[open] summary::after { transform: rotate(180deg); }
.legal-toc-mobile ol { margin: 0; padding: 0 8px 10px; list-style: none; }
.legal-toc-mobile a { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px; font-size: 15px; color: var(--hm-text); }
@media (max-width: 1024px) {
    .legal-toc-mobile { display: block; }
}
@media (max-width: 768px) {
    .legal-section { padding-top: 20px; }
    .legal-section .legal-article { padding: 18px 18px 24px; border-radius: 18px; }
    .legal-section .legal-content { font-size: 16px; line-height: 1.8; }
    .legal-section .legal-content h2 { font-size: 19px; }
}
@media print {
    .cookie-banner, .legal-toc-mobile, .page-hero-back, .mobile-menu-toggle, .header-account { display: none !important; }
    .legal-hero { background: none !important; }
    .legal-section .legal-article { border: 0; box-shadow: none; padding: 0; }
}

/* ===== Admin ana sayfa (admin/index.php): sade panel, sadece .adash altinda ===== */
.adash { display: flex; flex-direction: column; gap: 20px; max-width: 1280px; color: var(--hm-ink); }
.adash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.adash-head h1 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); }
.adash-head p { margin: 0; font-size: 15px; color: var(--hm-muted); }
.adash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adash-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.14); border-radius: 999px; background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--hm-ink); text-decoration: none; white-space: nowrap; }
.adash-action i { color: var(--hm-muted); }
.adash-action:first-child { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.adash-action:first-child i { color: var(--hm-gold); }
.adash-action:focus-visible, .adash-link:focus-visible, .adash-alert:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.adash-alert { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 18px; border: 1px solid #f3d27a; border-radius: 16px; background: #fff8e1; font-size: 15px; color: #6b4e00; text-decoration: none; }
.adash-alert > i:first-child { font-size: 18px; color: #b07d00; }
.adash-alert-arrow { margin-inline-start: auto; font-size: 13px; }
[dir="rtl"] .adash-alert-arrow { transform: scaleX(-1); }

.adash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; margin: 0; }
.adash-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border: 1px solid rgba(20,33,61,0.08); border-radius: 18px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.adash-kpi dt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.adash-kpi dt i { width: 16px; text-align: center; }
.adash-kpi dd { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--hm-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adash-cur { font-size: 16px; font-weight: 700; color: var(--hm-muted); }
.adash-kpi small { font-size: 13px; line-height: 1.45; color: var(--hm-muted); }
.adash-kpi .is-up { font-weight: 700; color: #0a7250; }

.adash-card { min-width: 0; padding: 20px 22px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.adash-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.adash-card-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.adash-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }

.adash-sub { margin-inline-start: 6px; font-size: 13.5px; font-weight: 500; color: var(--hm-muted); }
.adash-total { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.adash-chart.is-users .adash-bars span { background: var(--hm-ink); }
.adash-chart.is-results .adash-bars span { background: var(--hm-gold); }

.adash-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 170px; padding-top: 8px; border-bottom: 1px solid rgba(20,33,61,0.1);
    background-image: linear-gradient(rgba(20,33,61,0.06) 1px, transparent 1px); background-size: 100% 25%; }
.adash-day { display: flex; flex-direction: column; min-width: 0; }
.adash-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.adash-bars span { flex: 1; max-width: 22px; min-height: 2px; border-radius: 4px 4px 0 0; }
.adash-day-label { padding-top: 8px; margin-bottom: -26px; font-size: 11.5px; text-align: center; white-space: nowrap; color: var(--hm-muted); }
.adash-day.is-today .adash-day-label { font-weight: 700; color: var(--hm-ink); }
.adash-chart-card { padding-bottom: 40px; }

.adash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.adash-list { margin: 0 -8px; padding: 0; list-style: none; }
.adash-list li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px; border-top: 1px solid rgba(20,33,61,0.06); }
.adash-list li:first-child { border-top: 0; }
.adash-avatar { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hm-paper); font-weight: 700; color: var(--hm-ink); }
.adash-list-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.adash-list-main strong { overflow: hidden; font-size: 14.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--hm-ink); }
.adash-list-main small { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; color: var(--hm-muted); }
.adash-time { flex-shrink: 0; font-size: 12.5px; color: var(--hm-muted); }
.adash-score { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.adash-score.is-pass { background: #e6f7f0; color: #0a7250; }
.adash-score.is-fail { background: #fdeeee; color: #b4232a; }
.adash-empty { justify-content: center; color: var(--hm-muted); }

@media (hover: hover) {
    .adash-action:hover { border-color: rgba(20,33,61,0.3); background: var(--hm-paper); }
    .adash-action:first-child:hover { background: #22325a; border-color: #22325a; }
    .adash-alert:hover { background: #fff3cc; }
    .adash-link:hover { text-decoration: underline; }
}
@media (max-width: 1180px) and (min-width: 901px) {
    .adash-day:nth-child(even):not(.is-today) .adash-day-label { visibility: hidden; }
}
@media (max-width: 900px) {
    .adash-grid { grid-template-columns: minmax(0, 1fr); }
    /* dar ekranda gun etiketleri sikisir: her ikinci gun */
    .adash-day:nth-child(even):not(.is-today) .adash-day-label { visibility: hidden; }
}
@media (max-width: 640px) {
    .adash { gap: 14px; }
    .adash-head { align-items: flex-start; }
    .adash-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .adash-action { justify-content: center; padding: 0 10px; font-size: 14px; white-space: normal; text-align: center; }
    .adash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .adash-kpi { padding: 14px; border-radius: 16px; }
    .adash-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .adash-kpi dt { font-size: 13px; }
    .adash-kpi dd { font-size: 24px; }
    .adash-kpi small { font-size: 12px; }
    .adash-card { padding: 16px; border-radius: 16px; }
    .adash-chart-card { padding-bottom: 36px; }
    .adash-chart { gap: 3px; height: 160px; }
    .adash-bars { gap: 1px; }
    .adash-day .adash-day-label { visibility: hidden; }
    .adash .adash-day:nth-child(4n+2) .adash-day-label, .adash .adash-day.is-today .adash-day-label { visibility: visible; }
    .adash-day-label { overflow: visible; }
    .adash-time { display: none; }
}

/* ===== Admin PDF import (admin/import-pdf.php): sade sayfa, sadece .ipdf altinda ===== */
.ipdf { display: flex; flex-direction: column; gap: 20px; max-width: 1280px; color: var(--hm-ink); }
.ipdf-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.ipdf-head h1 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); }
.ipdf-head p { max-width: 46em; margin: 0; font-size: 15px; line-height: 1.55; color: var(--hm-text); }
.ipdf-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; background: var(--white); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ipdf-ghost.is-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.ipdf-ghost i { color: var(--hm-muted); }
.ipdf-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border: 1px solid #f3d27a; border-radius: 16px; background: #fff8e1; font-size: 14.5px; line-height: 1.5; color: #6b4e00; }
.ipdf-notice i { margin-top: 3px; color: #b07d00; }

.ipdf-card { min-width: 0; padding: 20px 22px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.ipdf-card[hidden] { display: none; }
.ipdf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ipdf-card-head h2, .ipdf-step-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.ipdf-help { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--hm-muted); }
.ipdf-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }

.ipdf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 20px; }
.ipdf-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ipdf-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 84px; }

.ipdf-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.ipdf-step-no { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--hm-ink); font-size: 14px; font-weight: 700; color: var(--white); }
.ipdf-count { margin-inline-start: auto; padding: 4px 12px; border-radius: 999px; background: var(--hm-paper); font-size: 13px; font-weight: 600; color: var(--hm-text); }

.ipdf .ipdf-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 20px; border: 2px dashed rgba(20,33,61,0.18); border-radius: 16px; background: var(--hm-paper); }
.ipdf .ipdf-drop i { margin-bottom: 8px; font-size: 34px; color: var(--hm-muted); }
.ipdf .ipdf-drop p { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--hm-ink); }
.ipdf .ipdf-drop small { font-size: 13px; color: var(--hm-muted); }
.ipdf .ipdf-drop .file-name { max-width: 100%; margin-top: 8px; font-size: 14px; font-weight: 600; color: #0a7250; overflow-wrap: anywhere; }
.ipdf .ipdf-drop .file-name:empty { display: none; }
.ipdf .ipdf-drop.dragover { border-color: var(--hm-ink); background: #eef1fa; }
.ipdf .ipdf-drop.file-selected { border-style: solid; border-color: #0e9f6e; background: #effaf5; }
.ipdf .ipdf-drop.file-selected i { color: #0e9f6e; }
.ipdf .ipdf-drop:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }

.ipdf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ipdf-fields .form-group { margin-bottom: 14px; }
.ipdf-fields label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.ipdf-opt { font-weight: 400; color: var(--hm-muted); }
.ipdf-fields select, .ipdf-fields input[type="text"] { width: 100%; min-height: 46px; border-radius: 12px; font-size: 15px; }
.ipdf-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; cursor: pointer; }
.ipdf-check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--hm-ink); }
.ipdf-check span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ipdf-check strong { font-size: 14.5px; color: var(--hm-ink); }
.ipdf-check small { font-size: 13.5px; line-height: 1.5; color: var(--hm-muted); }

.ipdf-lang-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.ipdf .ipdf-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.ipdf-lang { position: relative; min-width: 0; cursor: pointer; }
.ipdf-lang input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ipdf-lang-box { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; background: var(--white); font-size: 14px; color: var(--hm-text); }
.ipdf-flag { display: inline-flex; flex-shrink: 0; width: 22px; overflow: hidden; border-radius: 3px; }
.ipdf-flag img { display: block; width: 22px !important; }
.ipdf-lang-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ipdf-tick { font-size: 12px; color: var(--white); opacity: 0; }
.ipdf-lang input:checked + .ipdf-lang-box { border-color: var(--hm-ink); background: var(--hm-ink); font-weight: 600; color: var(--white); }
.ipdf-lang input:checked + .ipdf-lang-box .ipdf-tick { opacity: 1; color: var(--hm-gold); }
.ipdf-lang input:focus-visible + .ipdf-lang-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.ipdf-lang.is-fixed { cursor: default; }
.ipdf-lang.is-fixed .ipdf-lang-box { opacity: 0.75; }

.ipdf-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ipdf-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--hm-ink); font: inherit; font-size: 16px; font-weight: 700; color: var(--white); cursor: pointer; }
.ipdf-primary i { color: var(--hm-gold); }
.ipdf-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.ipdf-primary:focus-visible, .ipdf-ghost:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ipdf-status { font-size: 14.5px; color: var(--hm-text); }
.ipdf-status.is-error { font-weight: 600; color: #b4232a; }
.ipdf-status.is-ok { color: #0a7250; }

.ipdf-flow { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: flow; }
.ipdf-flow li { position: relative; padding: 0 0 12px; padding-inline-start: 34px; font-size: 14px; line-height: 1.5; color: var(--hm-text); counter-increment: flow; }
.ipdf-flow li::before { content: counter(flow); position: absolute; inset-inline-start: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--hm-paper); font-size: 12px; font-weight: 700; color: var(--hm-ink); }
.ipdf-flow li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 10.5px; top: 24px; bottom: 2px; width: 1px; background: rgba(20,33,61,0.12); }
.ipdf-sub { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; color: var(--hm-ink); }
.ipdf-req { margin: 0; padding-inline-start: 18px; font-size: 14px; line-height: 1.55; color: var(--hm-text); }
.ipdf-req li + li { margin-top: 4px; }

.ipdf-logs { margin: 0; padding: 0; list-style: none; }
.ipdf-logs li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(20,33,61,0.06); }
.ipdf-logs li:first-child { border-top: 0; padding-top: 0; }
.ipdf-log-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ipdf-log-main strong { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--hm-ink); }
.ipdf-log-main small { font-size: 12.5px; color: var(--hm-muted); }
.ipdf-pill { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.ipdf-pill.is-ok { background: #e6f7f0; color: #0a7250; }
.ipdf-pill.is-bad { background: #fdeeee; color: #b4232a; }
.ipdf-pill.is-run { background: #fff4d6; color: #8a6100; }

/* Su anki import kartlari (JS ile cizilir) */
.ipdf .ij-jobs { display: grid; gap: 12px; }
.ipdf .ij-card { padding: 16px; border: 1px solid rgba(20,33,61,0.1); border-radius: 16px; background: var(--white); scroll-margin-top: 90px; }
.ipdf .ij-card.highlight { border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.08); }
.ipdf .ij-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.ipdf .ij-card-head i { color: var(--hm-coral); }
.ipdf .ij-card-head strong { min-width: 0; overflow-wrap: anywhere; color: var(--hm-ink); }
.ipdf .ij-card-head small { color: var(--hm-muted); }
.ipdf .ij-card .progress-bar { height: 8px; border-radius: 999px; background: var(--hm-paper); overflow: hidden; }
.ipdf .ij-card .progress-fill { height: 100%; border-radius: 999px; background: var(--hm-ink); }
.ipdf .ij-card-text { margin: 10px 0; font-size: 14px; line-height: 1.5; color: var(--hm-text); }
.ipdf .ij-failed { color: #b4232a; }
.ipdf .ij-card summary { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.ipdf .ij-card .import-log { max-height: 260px; margin-top: 6px; padding: 10px 12px; overflow: auto; border-radius: 12px; background: var(--hm-paper); font-size: 13px; }
.ipdf .ij-card .import-log p { margin: 2px 0; }
.ipdf .ij-log-time { margin-inline-end: 6px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.ipdf .ij-log-warn { color: #8a5200; }
.ipdf .ij-log-error { color: #b4232a; }
.ipdf .ij-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ipdf .ij-card-actions .btn { min-height: 40px; border-radius: 999px; }

@media (hover: hover) {
    .ipdf-ghost:hover { border-color: rgba(20,33,61,0.3); background: var(--hm-paper); }
    .ipdf-primary:not(:disabled):hover { background: #22325a; }
    .ipdf .ipdf-drop:hover { border-color: rgba(20,33,61,0.4); }
    .ipdf-lang input:not(:checked):not(:disabled) + .ipdf-lang-box:hover { border-color: rgba(20,33,61,0.35); }
    .ipdf-link:hover { text-decoration: underline; }
}
@media (max-width: 1180px) {
    .ipdf-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1024px) {
    /* yan panel formun altina iner, iki kart yan yana */
    .ipdf-layout { grid-template-columns: minmax(0, 1fr); }
    .ipdf-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 900px) {
    .ipdf-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .ipdf { gap: 14px; }
    .ipdf-head .ipdf-ghost { width: 100%; }
    .ipdf-card { padding: 16px; border-radius: 16px; }
    .ipdf-fields { grid-template-columns: minmax(0, 1fr); }
    .ipdf .ipdf-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ipdf-lang-actions .ipdf-ghost { flex: 1; }
    .ipdf-primary { width: 100%; }
    .ipdf-fields select, .ipdf-fields input[type="text"] { font-size: 16px; } /* iOS zoom yapmasin */
}

/* ===== Admin sorular (admin/questions.php): sade liste, sadece .qm altinda ===== */
.qm { display: flex; flex-direction: column; gap: 16px; max-width: 1280px; color: var(--hm-ink); }
.qm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.qm-head h1 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); }
.qm-head p { margin: 0; font-size: 15px; color: var(--hm-muted); }
.qm-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; background: var(--white); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.qm-btn i { color: var(--hm-muted); }
.qm-btn.is-primary { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.qm-btn.is-primary i { color: var(--hm-gold); }
.qm-btn.is-danger { border-color: #f1c4c6; color: #b4232a; }
.qm-btn.is-danger i { color: #b4232a; }
.qm-btn.is-ghost { width: 44px; padding: 0; border-color: transparent; }
.qm-btn:focus-visible, .qm-icon:focus-visible, .qm-tab:focus-visible, .qm-alert:focus-visible, .qm-text:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.qm-alert { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 18px; border: 1px solid #f3d27a; border-radius: 16px; background: #fff8e1; font-size: 14.5px; line-height: 1.45; color: #6b4e00; text-decoration: none; }
.qm-alert > i { font-size: 17px; color: #b07d00; }
.qm-alert-go { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-weight: 700; white-space: nowrap; }
.qm-alert-go i { font-size: 12px; }
[dir="rtl"] .qm-alert-go i { transform: scaleX(-1); }

.qm-filters { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.qm-search { position: relative; min-width: 0; }
.qm-search i { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); font-size: 14px; color: var(--hm-muted); pointer-events: none; }
.qm .qm-search input { width: 100%; min-height: 44px; padding-block: 0; padding-inline: 38px 12px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background: var(--hm-paper); font: inherit; font-size: 15px; color: var(--hm-ink); }
.qm .qm-filters select { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background-color: var(--white); font: inherit; font-size: 14px; color: var(--hm-ink); }
.qm .qm-filters select:disabled { opacity: 0.55; }
.qm-clear { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }

.qm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.qm-tab { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 42px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--hm-text); text-decoration: none; }
.qm-tab span { padding: 1px 8px; border-radius: 999px; background: var(--hm-paper); font-size: 12.5px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.qm-tab.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.qm-tab.is-active span { background: rgba(255,255,255,0.14); color: var(--white); }

.qm-card { min-width: 0; padding: 6px 20px 20px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.qm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid rgba(20,33,61,0.07); }
.qm-check-all { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--hm-text); cursor: pointer; }
.qm-range { font-size: 13.5px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.qm input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--hm-ink); cursor: pointer; }

.qm-list { margin: 0; padding: 0; list-style: none; }
.qm-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(20,33,61,0.07); }
.qm-item > input { margin-top: 2px !important; }
.qm-item.is-passive .qm-text { color: var(--hm-muted); }
.qm-item:has(.q-checkbox:checked) { background: linear-gradient(90deg, rgba(20,33,61,0.04), transparent); }
.qm-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--hm-muted); }
.qm-id { font-weight: 700; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.qm-cat { min-width: 0; overflow-wrap: anywhere; }
.qm-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.qm-text em { color: var(--hm-muted); }
.qm-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.qm-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--hm-paper); font-size: 12.5px; font-weight: 500; color: var(--hm-text); white-space: nowrap; }
.qm-tag i { font-size: 11.5px; }
.qm-tag strong { color: var(--hm-ink); }
.qm-tag.is-ok { background: #e6f7f0; color: #0a7250; }
.qm-tag.is-warn { background: #fff4d6; color: #8a6100; }
.qm-tag.is-bad { background: #fdeeee; color: #b4232a; }
.qm-tag.is-muted { background: #f1f2f5; color: var(--hm-muted); }
.qm-actions { display: flex; gap: 6px; }
.qm-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; background: var(--white); font-size: 15px; color: var(--hm-text); text-decoration: none; cursor: pointer; }
.qm-icon.is-danger { color: #b4232a; }

.qm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px; text-align: center; color: var(--hm-muted); }
.qm-empty i { font-size: 36px; }
.qm-empty p { margin: 0; font-size: 15.5px; }
.qm .pagination { margin-top: 18px; }

.qm-bulk { position: sticky; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--hm-ink); box-shadow: 0 18px 40px -18px rgba(20,33,61,0.7); color: var(--white); }
.qm-bulk[hidden] { display: none; }
.qm-bulk-count { font-size: 15px; }
.qm-bulk-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.qm-bulk .qm-btn { min-height: 42px; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: var(--white); }
.qm-bulk .qm-btn i { color: inherit; }
.qm-bulk .qm-btn.is-primary { border-color: var(--hm-gold); background: var(--hm-gold); color: var(--hm-ink); }
.qm-bulk .qm-btn.is-danger { border-color: rgba(255,120,120,0.5); color: #ffb4b6; }
.qm-bulk .qm-btn.is-ghost { border-color: transparent; background: transparent; }

.qm-pv-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

@media (hover: hover) {
    .qm-btn:hover { border-color: rgba(20,33,61,0.3); background: var(--hm-paper); }
    .qm-btn.is-primary:hover { border-color: #22325a; background: #22325a; }
    .qm-btn.is-danger:hover { background: #fdeeee; }
    .qm-bulk .qm-btn:hover { background: rgba(255,255,255,0.16); }
    .qm-bulk .qm-btn.is-primary:hover { background: #ffc629; border-color: #ffc629; }
    .qm-tab:not(.is-active):hover { border-color: rgba(20,33,61,0.3); color: var(--hm-ink); }
    .qm-icon:hover { border-color: rgba(20,33,61,0.3); background: var(--hm-paper); color: var(--hm-ink); }
    .qm-icon.is-danger:hover { border-color: #f1c4c6; background: #fdeeee; color: #b4232a; }
    .qm-text:hover { text-decoration: underline; text-decoration-color: rgba(20,33,61,0.3); }
    .qm-alert:hover { background: #fff3cc; }
    .qm-clear:hover { text-decoration: underline; }
}
@media (max-width: 1180px) {
    .qm-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .qm-search { grid-column: 1 / -2; }
}
@media (max-width: 900px) {
    .qm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qm-search { grid-column: 1 / -1; }
    .qm-search-btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .qm { gap: 12px; }
    .qm-head-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .qm-head-actions .qm-btn.is-primary { grid-column: 1 / -1; grid-row: 1; }
    .qm-head-actions .qm-btn { padding: 0 10px; font-size: 14px; }
    .qm-filters { padding: 12px; border-radius: 16px; gap: 8px; }
    .qm .qm-filters select, .qm .qm-search input { font-size: 16px; } /* iOS zoom yapmasin */
    .qm-alert { align-items: flex-start; padding: 12px 14px; }
    .qm-alert-go { display: none; }
    .qm-card { padding: 4px 14px 14px; border-radius: 16px; }
    .qm-item { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; }
    .qm-actions { grid-column: 2; }
    .qm-bulk { bottom: 10px; padding: 10px 12px; border-radius: 20px; }
    .qm-bulk-count { width: 100%; text-align: center; }
    .qm-bulk-actions { display: grid; grid-template-columns: 1fr 1fr 1fr auto; width: 100%; }
    .qm-bulk .qm-btn { padding: 0 8px; font-size: 13.5px; }
}

/* ===== Ortak sade admin sayfa katmani (.ap): sinavlar, sinav duzenle, cozumler, soru ekle, olimpiyatlar, kategoriler ===== */
.ap { display: flex; flex-direction: column; gap: 18px; max-width: 1280px; color: var(--hm-ink); }
.ap [hidden], .ap-modal [hidden] { display: none !important; }
.ap-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.ap-head h1 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--hm-ink); overflow-wrap: anywhere; }
.ap-head p { max-width: 48em; margin: 0; font-size: 15px; line-height: 1.55; color: var(--hm-muted); }
.ap-back { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--hm-text); text-decoration: none; }
[dir="rtl"] .ap-back i { transform: scaleX(-1); }
.ap-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; background: var(--white); font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.2; color: var(--hm-ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ap-btn i { color: var(--hm-muted); }
.ap-btn.is-primary { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.ap-btn.is-primary i { color: var(--hm-gold); }
.ap-btn.is-danger { border-color: #f1c4c6; color: #b4232a; }
.ap-btn.is-danger i { color: #b4232a; }
.ap-btn.is-sm { min-height: 38px; padding: 0 13px; font-size: 13.5px; }
.ap-btn.is-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 12px; }
.ap-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ap-btn:focus-visible, .ap-back:focus-visible, .ap-link:focus-visible, .ap-pill-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ap-link { font-weight: 600; color: var(--primary); text-decoration: none; }

.ap-card { min-width: 0; padding: 20px 22px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.ap-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.ap-card-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.ap-card-head small { font-size: 13.5px; color: var(--hm-muted); }
.ap-help { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--hm-muted); }
.ap-sub { margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid rgba(20,33,61,0.07); font-size: 15px; font-weight: 700; color: var(--hm-ink); }

.ap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 18px; }
.ap-layout.is-wide-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ap-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ap-sticky { position: sticky; top: 84px; }

.ap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin: 0; }
.ap-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 18px; border: 1px solid rgba(20,33,61,0.08); border-radius: 16px; background: var(--white); }
.ap-stat dt { font-size: 13.5px; font-weight: 600; color: var(--hm-muted); }
.ap-stat dd { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.ap-stat.is-ok dd { color: #0a7250; }
.ap-stat.is-warn dd { color: #8a6100; }

/* Form alanlari */
.ap-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ap-fields.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.ap-field.is-full { grid-column: 1 / -1; }
.ap .ap-field > label, .ap-modal .ap-field > label { margin: 0; font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.ap-field .ap-opt { font-weight: 400; color: var(--hm-muted); }
.ap-field input[type="text"], .ap-field input[type="number"], .ap-field input[type="search"], .ap-field input[type="email"], .ap-field input[type="password"], .ap-field input[type="tel"], .ap-field input[type="url"], .ap-field input[type="date"], .ap-field select, .ap-field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); font: inherit; font-size: 15px; color: var(--hm-ink); }
.ap-field textarea { min-height: 96px; line-height: 1.55; resize: vertical; }
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }
.ap-field input[readonly] { background: var(--hm-paper); color: var(--hm-muted); }
.ap-hint { font-size: 13px; line-height: 1.5; color: var(--hm-muted); }
.ap-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; font-size: 14.5px; color: var(--hm-ink); cursor: pointer; }
.ap-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hm-ink); }
.ap-check small { display: block; margin-top: 2px; font-size: 13px; color: var(--hm-muted); }
.ap-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Secenekli dugmeler (A-E, zorluk, 4/5 sik) */
.ap-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-seg label { position: relative; }
.ap-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--hm-text); cursor: pointer; }
.ap-seg input:checked + span { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.ap-seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ap-seg input:disabled + span { opacity: 0.35; cursor: not-allowed; }

.ap-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--hm-paper); font-size: 12.5px; font-weight: 600; color: var(--hm-text); white-space: nowrap; }
.ap-pill.is-ok { background: #e6f7f0; color: #0a7250; }
.ap-pill.is-bad { background: #fdeeee; color: #b4232a; }
.ap-pill.is-warn { background: #fff4d6; color: #8a6100; }
.ap-pill.is-muted { background: #f1f2f5; color: var(--hm-muted); }
.ap-pill-btn { border: 0; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; min-height: 32px; }

/* Satir listesi */
.ap-rows { margin: 0; padding: 0; list-style: none; }
.ap-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 0; border-top: 1px solid rgba(20,33,61,0.07); }
.ap-row:first-child { border-top: 0; }
.ap-row.is-current { margin: 0 -12px; padding-inline: 12px; border-radius: 14px; background: var(--hm-paper); }
.ap-row.is-off .ap-row-main strong { color: var(--hm-muted); }
.ap-row-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--row-color, #14213d) 12%, #fff); font-size: 17px; color: var(--row-color, var(--hm-ink)); }
.ap-row-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ap-row-main strong { font-size: 15px; font-weight: 700; color: var(--hm-ink); overflow-wrap: anywhere; }
.ap-row-main small { font-size: 13px; line-height: 1.45; color: var(--hm-muted); }
.ap-row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ap-row-actions { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
.ap-group-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; font-size: 14px; font-weight: 700; color: var(--hm-ink); }
.ap-group-title:first-child { margin-top: 0; }
.ap-group-title i { color: var(--row-color, var(--hm-muted)); }
.ap-group-title span { font-weight: 500; color: var(--hm-muted); }

.ap-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; text-align: center; color: var(--hm-muted); }
.ap-empty > i { font-size: 32px; }
.ap-empty p { margin: 0; font-size: 15px; }
.ap-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--hm-paper); font-size: 14px; line-height: 1.5; color: var(--hm-text); }
.ap-note i { margin-top: 3px; color: var(--hm-muted); }
.ap-note.is-warn { background: #fff8e1; color: #6b4e00; }
.ap-note.is-warn i { color: #b07d00; }

/* Modallar (.modal-overlay.ap-modal) */
.ap-modal .modal-content { border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(20,33,61,0.55); color: var(--hm-ink); }
.ap-modal .modal-header { padding: 20px 24px; border-bottom: 1px solid rgba(20,33,61,0.07); }
.ap-modal .modal-header h3 { font-size: 18px; font-weight: 800; color: var(--hm-ink); }
.ap-modal .modal-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; }
.ap-modal .modal-body { padding: 20px 24px; }
.ap-modal .modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid rgba(20,33,61,0.07); }

@media (hover: hover) {
    .ap-btn:hover { border-color: rgba(20,33,61,0.3); background: var(--hm-paper); }
    .ap-btn.is-primary:hover { border-color: #22325a; background: #22325a; }
    .ap-btn.is-danger:hover { background: #fdeeee; }
    .ap-seg span:hover { border-color: rgba(20,33,61,0.35); }
    .ap-link:hover, .ap-back:hover { text-decoration: underline; }
    .ap-pill-btn:hover { filter: brightness(0.96); }
}
@media (max-width: 1180px) {
    .ap-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1024px) {
    .ap-layout, .ap-layout.is-wide-side { grid-template-columns: minmax(0, 1fr); }
    .ap-sticky { position: static; }
}
@media (max-width: 640px) {
    .ap { gap: 14px; }
    .ap-card { padding: 16px; border-radius: 16px; }
    .ap-fields, .ap-fields.is-3 { grid-template-columns: minmax(0, 1fr); }
    .ap-head .ap-actions { width: 100%; }
    .ap-head .ap-actions .ap-btn { flex: 1 1 auto; }
    .ap-field input[type="text"], .ap-field input[type="number"], .ap-field input[type="search"], .ap-field input[type="email"], .ap-field input[type="password"], .ap-field input[type="tel"], .ap-field input[type="url"], .ap-field input[type="date"], .ap-field select, .ap-field textarea { font-size: 16px; } /* iOS zoom yapmasin */
    .ap-row { flex-wrap: wrap; }
    .ap-row-actions { width: 100%; padding-inline-start: 56px; flex-wrap: wrap; }
    .ap-form-actions .ap-btn { flex: 1 1 auto; }
    .ap-modal .modal-header, .ap-modal .modal-body, .ap-modal .modal-actions { padding-inline: 16px; }
    .ap-modal .modal-actions .ap-btn { flex: 1 1 auto; }
}

/* Olimpiyat formu: simge + renk */
.olp-style { display: flex; align-items: center; gap: 10px; }
.olp-style select { flex: 1; min-width: 0; min-height: 46px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; font: inherit; font-size: 15px; }
.olp-style input[type="color"] { flex-shrink: 0; width: 46px; height: 46px; padding: 4px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); cursor: pointer; }
.ap .ap-row-actions form, .ex-side form, .ee-actions form { margin: 0; }

/* Sinavlar listesi (admin/exams.php) */
.ex-filters { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 10px; margin-bottom: 10px; }
.ex-search { position: relative; min-width: 0; }
.ex-search i { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); font-size: 14px; color: var(--hm-muted); pointer-events: none; }
.ap .ex-search input { width: 100%; min-height: 44px; padding-block: 0; padding-inline: 38px 12px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background: var(--hm-paper); font: inherit; font-size: 15px; }
.ap .ex-filters select, .es-lang { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background-color: var(--white); font: inherit; font-size: 14px; color: var(--hm-ink); }
.es-lang { width: auto; min-width: 140px; }
.ex-count { font-size: 13.5px; color: var(--hm-muted); white-space: nowrap; }
.ex-olp { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; font-size: 16px; font-weight: 800; color: var(--hm-ink); }
.ex-olp i { color: var(--hm-gold); }
.ex-olp span, .ex-cat span { font-size: 13px; font-weight: 500; color: var(--hm-muted); }
.ex-cat { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: var(--hm-text); }
.ex-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 14px 14px 14px 6px; border: 1px solid rgba(20,33,61,0.08); border-radius: 16px; background: var(--white); }
.ex-item + .ex-item { margin-top: 8px; }
.ex-item.is-inactive { background: #fafbfc; }
.ex-item.is-inactive .ex-title { color: var(--hm-muted); }
.ex-item.drag-over { border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.08); }
.ex-drag { display: flex; align-items: center; justify-content: center; width: 28px; align-self: stretch; color: #b7bdcc; cursor: grab; }
.ex-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ex-title-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ex-title { min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.ex-id { flex-shrink: 0; font-size: 12.5px; color: var(--hm-muted); }
.ex-side { display: flex; align-items: center; gap: 10px; }
.ex-actions { display: flex; align-items: center; gap: 6px; }
.ex-price-row { display: flex; gap: 6px; }
.ex-price-row input { flex: 1; min-width: 0; }
.ex-price-row select { flex: 0 0 84px; }
.ap-modal .pool-box { border-color: rgba(20,33,61,0.1); border-radius: 16px; background: var(--hm-paper); }
.ap-modal .pool-stats > div { border-color: rgba(20,33,61,0.08); border-radius: 12px; }
.ap-modal .pool-quick button { min-height: 40px; border-color: rgba(20,33,61,0.16); border-radius: 999px; }
.ap-modal .pool-status { border-radius: 12px; }
.ap-modal .ax-coverage { border-radius: 14px; }
.ap-modal .modal-header .ap-hint { display: block; margin-top: 2px; }
.qa-label { font-size: 14px; font-weight: 600; color: var(--hm-ink); }

/* Sinav duzenle (admin/exam-edit.php) */
.ee-list { margin: 0; padding: 0; list-style: none; }
.ee-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(20,33,61,0.07); }
.ee-item:first-child { border-top: 0; padding-top: 0; }
.ee-no { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--hm-paper); font-size: 13.5px; font-weight: 700; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.ee-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ee-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.5; color: var(--hm-ink); overflow-wrap: anywhere; }
.ee-text em { color: var(--hm-muted); }
.ee-actions { display: flex; flex-shrink: 0; gap: 6px; }
.ee-add-row { display: flex; align-items: flex-start; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(20,33,61,0.07); }
.ee-add-row + .ee-add-row { margin-top: 2px; }
.ee-add-row .ap-field { flex: 1; margin-bottom: 8px; }
.ee-add-row > .ap-btn { margin-top: 26px; }

/* Cozumler (admin/exam-solutions.php) */
.es-only-missing { align-self: flex-start; }
.es-list { display: flex; flex-direction: column; gap: 14px; }
.es-card.is-missing { border-color: #f3d27a; }
.es-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.es-no { font-size: 15px; font-weight: 800; color: var(--hm-ink); }
.es-edit { margin-inline-start: auto; }
.es-question { font-size: 15.5px; line-height: 1.7; color: var(--hm-ink); overflow-wrap: anywhere; }
.es-image { margin: 12px 0; }
.es-image img { display: block; max-width: min(100%, 520px); height: auto; border: 1px solid rgba(20,33,61,0.08); border-radius: 12px; }
.es-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; margin-top: 12px; }
.es-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; font-size: 15px; overflow-wrap: anywhere; }
.es-option.is-correct { border-color: #0e9f6e; background: #effaf5; }
.es-option > .fa-check { margin-inline-start: auto; color: #0e9f6e; }
.es-letter { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hm-paper); font-size: 13.5px; font-weight: 700; color: var(--hm-ink); }
.es-option.is-correct .es-letter { background: #0e9f6e; color: var(--white); }
.es-opt-img { max-height: 70px; max-width: 100%; }
.es-solution { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fffaeb; }
.es-solution h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #8a6100; }
.es-solution .solution-text { font-size: 15px; line-height: 1.7; color: var(--hm-ink); }
.es-card .ap-note { margin: 14px 0 0; }

/* Yeni soru (admin/question-add.php) */
.qa-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.qa-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; }
.qa-option[hidden] { display: none; }
.qa-letter { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hm-paper); font-weight: 700; color: var(--hm-ink); }
.qa-option-body { display: flex; gap: 6px; min-width: 0; }
.qa-option-body input[type="text"] { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; font: inherit; font-size: 15px; color: var(--hm-ink); }
.qa-option-body input[type="text"]:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }
.qa-img-btn { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; color: var(--hm-muted); cursor: pointer; overflow: hidden; }
.qa-img-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qa-img-btn.has-file { border-color: #0e9f6e; background: #effaf5; color: #0e9f6e; }
.qa-img-btn:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.qa-thumb { display: block; max-width: min(100%, 280px); max-height: 180px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; }
.qa-thumb[hidden] { display: none; }
.qa-thumb.is-sm { grid-column: 2; max-height: 80px; }
.ap .qa-file { max-width: 100%; font-size: 14px; }
.ap .qa-file::file-selector-button { min-height: 40px; margin-inline-end: 10px; padding: 0 14px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; background: var(--white); font: inherit; font-size: 14px; font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.ap-card-head code { padding: 2px 6px; border-radius: 6px; background: var(--hm-paper); font-size: 12.5px; }
.qa-lang { margin-top: 10px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; }
.qa-lang[hidden] { display: none; }
.qa-lang summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--hm-ink); cursor: pointer; }
.qa-lang[open] summary { border-bottom: 1px solid rgba(20,33,61,0.07); }
.qa-lang > .ap-field, .qa-lang > .ap-fields { margin-inline: 16px; }
.qa-lang > .ap-field:first-of-type { margin-top: 14px; }
.qa-submit .ap-btn { flex: 1 1 auto; }
.ap-sub .ap-opt, .ap-card-head .ap-opt { font-size: 13px; font-weight: 400; color: var(--hm-muted); }

@media (hover: hover) {
    .ex-title:hover { text-decoration: underline; }
    .ex-item:hover .ex-drag { color: var(--hm-muted); }
    .qa-img-btn:hover { border-color: rgba(20,33,61,0.35); color: var(--hm-ink); }
}
@media (hover: none) {
    .ex-drag { display: none; } /* dokunmatikte surukle-birak yok */
    .ex-item { padding-inline-start: 14px; }
}
@media (max-width: 1180px) {
    .ex-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
    .ex-search { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
    .ex-item { grid-template-columns: auto minmax(0, 1fr); }
    .ex-side { grid-column: 2; flex-wrap: wrap; }
}
@media (max-width: 900px) {
    .ex-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ex-count { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .ex-filters { grid-template-columns: minmax(0, 1fr); }
    .ex-item { grid-template-columns: minmax(0, 1fr); padding: 14px; }
    .ex-drag { display: none; }
    .ex-side { grid-column: 1; justify-content: space-between; }
    .ex-actions { flex-wrap: wrap; }
    .ee-add-row { flex-direction: column; align-items: stretch; }
    .ee-add-row > .ap-btn { margin-top: 0; }
    .es-edit { margin-inline-start: 0; }
    .es-lang { flex: 1 1 100%; }
    .olp-style { flex-wrap: wrap; }
}

/* ===== Toplu ceviri (admin/bulk-translate.php): sade katman ===== */
/* Toplu ceviri (admin/bulk-translate.php) - .ap katmani uzerine; eski global .bulk-* kurallari burada ezilir */
.bt .bt-label { display: block; margin: 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.bt .bt-mode { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.bt .bt-mode legend { margin-bottom: 6px; }
.bt .bt-mode .ap-hint { display: block; margin-top: 2px; }
.bt .bt-mode .ap-seg label { flex: 1 1 auto; }
.bt .bt-mode .ap-seg span { width: 100%; text-align: center; }

/* Ne cevrilecek: sekme dugmeleri (JS .bulk-tab / .active kullanir) */
.bt .bt-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.bt .bulk-tab { display: inline-flex; flex: initial; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 48px; margin: 0; padding: 0 14px; border: 1px solid rgba(20,33,61,0.16); border-radius: 14px; background: var(--white); box-shadow: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--hm-text); text-align: start; cursor: pointer; transition: none; }
.bt .bulk-tab i { display: inline-block; flex-shrink: 0; width: 18px; font-size: 15px; color: var(--hm-muted); text-align: center; }
.bt .bulk-tab > span:not(.count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt .bulk-tab .count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; margin-inline-start: auto; padding: 0 8px; border-radius: 999px; background: var(--hm-paper); font-size: 12.5px; font-weight: 700; color: var(--hm-text); font-variant-numeric: tabular-nums; }
.bt .bulk-tab.active { border-color: var(--hm-ink); background: var(--hm-ink); box-shadow: none; color: var(--white); }
.bt .bulk-tab.active i { color: var(--hm-gold); }
.bt .bulk-tab.active .count { background: rgba(255,255,255,0.16); color: var(--white); }
.bt .bulk-tab:disabled { opacity: 0.5; cursor: not-allowed; }
.bt .bulk-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.bt .ap-note + .bt-actions, .bt .bt-mode + .bt-actions { margin-top: 4px; }
.bt #forceNote { margin-bottom: 14px; }
.bt .bt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bt .bt-status { font-size: 14px; font-weight: 600; color: var(--hm-muted); }

/* Ilerleme */
.bt .bt-progress { height: 12px; margin-bottom: 16px; border-radius: 999px; background: var(--hm-paper); overflow: hidden; }
.bt .bt-progress-bar { width: 0; height: 100%; border-radius: 999px; background: var(--hm-ink); transition: width .3s ease; }
.bt #progressPercent { font-weight: 700; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.bt .bt-stats .ap-stat { padding: 12px 16px; }
.bt .bt-stats .ap-stat dd { font-size: 22px; }
.bt .bt-stat-muted dd { color: var(--hm-muted); }
.bt .bt-stat-bad dd { color: #b4232a; }
.bt .bt-current { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--hm-paper); font-size: 14px; line-height: 1.45; color: var(--hm-text); overflow-wrap: anywhere; }
.bt .bt-current i { flex-shrink: 0; color: var(--hm-muted); }

/* Islem kaydi (JS .log-line / .log-<tur> satirlari uretir) */
.bt .bt-log-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 14px; font-weight: 500; color: var(--hm-text); cursor: pointer; }
.bt .bt-log-filter input { width: 18px; height: 18px; margin: 0; accent-color: var(--hm-ink); }
.bt .bt-log { max-height: 420px; overflow-y: auto; font-size: 13.5px; }
.bt .bt-log:empty::before { content: 'Henüz kayıt yok.'; display: block; padding: 8px 0; color: var(--hm-muted); }
.bt .log-line { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(20,33,61,0.07); line-height: 1.5; }
.bt .log-line:first-child { border-top: 0; }
.bt .log-time { font-size: 12.5px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.bt .log-line i { width: 16px; text-align: center; color: var(--hm-muted); }
.bt .log-msg { color: var(--hm-ink); overflow-wrap: anywhere; }
.bt .log-success i { color: #0a7250; }
.bt .log-error i, .bt .log-error .log-msg { color: #b4232a; }
.bt .log-warning i { color: #8a6100; }
.bt .log-skip .log-msg { color: var(--hm-muted); }

/* Yan panel */
.bt .bt-steps { margin: 0 0 14px; padding-inline-start: 20px; font-size: 14px; line-height: 1.55; color: var(--hm-text); }
.bt .bt-steps li + li { margin-top: 8px; }
.bt aside .ap-note + .ap-note { margin-top: 10px; }

@media (hover: hover) {
    .bt .bulk-tab:not(.active):not(:disabled):hover { border-color: rgba(20,33,61,0.35); color: var(--hm-ink); }
}
@media (max-width: 900px) {
    .bt .bt-log { max-height: 360px; }
}
@media (max-width: 640px) {
    .bt .bt-tabs { grid-template-columns: minmax(0, 1fr); }
    .bt .bt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bt .bt-stats .ap-stat:last-child { grid-column: 1 / -1; }
    .bt .bt-actions .ap-btn { flex: 1 1 auto; }
    .bt .bt-status { width: 100%; text-align: center; }
    .bt .log-line { grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; }
    .bt .log-time { grid-column: 1 / -1; }
    .bt .ap-card-head .bt-log-filter { width: 100%; }
}

/* ===== Soru duzenle (admin/question-edit.php): sade katman ===== */
/* Soru duzenle (admin/question-edit.php): .ap + .qa katmani uzerine */
.qe-head-save { display: none; }
.qe-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qe .ap-help code { padding: 2px 6px; border-radius: 6px; background: var(--hm-paper); font-size: 12.5px; }
.qe-status:empty { display: none; }
.qe-status { margin-bottom: 12px; }

/* Dil sekmeleri: tek satir, kart icinde yatay kaydirilir (sayfa kaymaz) */
.qe .qe-langs { position: relative; display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 16px; padding: 2px 2px 10px; border-bottom: 1px solid rgba(20,33,61,0.07); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.qe .qe-langs .lang-tab { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 0 14px; border: 1px solid rgba(20,33,61,0.14); border-radius: 999px; background: var(--white); font: inherit; font-size: 14px; font-weight: 600; color: var(--hm-text); white-space: nowrap; cursor: pointer; transition: none; }
.qe .qe-langs .lang-tab.active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.qe .qe-langs .lang-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.qe .tab-badge { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #c9ced9; }
.qe .tab-badge.is-full { background: #0e9f6e; }
.qe .tab-badge.is-partial { background: #d99a00; }
.qe .tab-badge.is-empty { background: #d64545; }
.qe .lang-tab.active .tab-badge { box-shadow: 0 0 0 2px var(--white); }

/* Mevcut gorsel + kaldir */
.qe-current { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.qa-option > .qe-current { grid-column: 2; }
.qe-current img { display: block; max-width: min(100%, 220px); max-height: 72px; border: 1px solid rgba(20,33,61,0.1); border-radius: 10px; }
.qe-current.is-lg img { max-width: min(100%, 420px); max-height: 260px; border-radius: 12px; }
.qe-current.is-removed img, .qe-current.is-replaced img { opacity: 0.35; }
.qe-current.is-removed img { outline: 2px dashed #d64545; outline-offset: 2px; }
.qe-remove { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--hm-text); cursor: pointer; }
.qe-remove input { width: 18px; height: 18px; margin: 0; accent-color: #b4232a; }
.qe-current.is-removed .qe-remove { border-color: #f1c4c6; background: #fdeeee; color: #b4232a; }

/* Diger dillerde gorseller salt okunur */
.qe-ro { display: block; max-width: min(100%, 360px); max-height: 200px; margin: 0 0 14px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; opacity: 0.9; }
.qe-ro.is-sm { grid-column: 2; max-width: min(100%, 200px); max-height: 64px; margin: 0; border-radius: 10px; }
.qe-shared-hint { display: flex; align-items: center; gap: 8px; margin: 0; }

.qe .question-preview-area { overflow-wrap: anywhere; }
.qe .question-preview-area .qp-img img { height: auto; }

@media (hover: hover) {
    .qe .qe-langs .lang-tab:not(.active):hover { border-color: rgba(20,33,61,0.35); color: var(--hm-ink); }
    .qe-remove:hover { border-color: rgba(20,33,61,0.3); }
}
@media (max-width: 1024px) {
    .qe-head-save { display: flex; }
}
@media (max-width: 900px) {
    .qe-current.is-lg img { max-height: 220px; }
}
@media (max-width: 640px) {
    .qe-head-tools { width: 100%; }
    .qe-head-tools .ap-btn { flex: 1 1 auto; }
    .qe .qe-langs { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
    .qe-current.is-lg img { max-height: 180px; }
    .qe-ro { max-height: 160px; }
}

/* ===== Gorsel cevirisi (admin/image-globalize.php): sade katman ===== */
/* ===== Gorsel cevirisi (admin/image-globalize.php): .ap katmani uzerine sayfaya ozel ===== */
.igp [hidden] { display: none !important; } /* .ap-btn gibi display kurallari [hidden] ozniteligini ezmesin */

/* Ortak parcalar */
.igp .ap-btn { max-width: 100%; white-space: normal; text-align: center; }
.igp .ap-btn.is-ok { border-color: #0a7250; background: #0a7250; color: var(--white); }
.igp .ap-btn.is-ok i { color: var(--white); }
.igp .ap-btn.is-quiet { border-color: transparent; background: transparent; padding: 0 12px; font-weight: 600; color: var(--hm-text); }
.igp .ap-btn.is-quiet.is-danger { color: #b4232a; }
.igp .ap-pill.is-busy { background: #eef2fb; color: var(--hm-ink); }
.igp #igSelected.is-warn { background: #fff4d6; color: #8a6100; }
.igp .ig-muted { font-size: 13.5px; line-height: 1.5; color: var(--hm-muted); }
.igp .ig-error { font-size: 14px; font-weight: 600; color: #b4232a; }
.igp .ig-status { font-size: 14px; line-height: 1.55; color: var(--hm-text); overflow-wrap: anywhere; }
.igp .ig-status .fa-circle-check, .igp .ig-source-status .fa-circle-check { color: #0a7250; }
.igp .igp-no { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-ink); font-size: 13.5px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.igp .ap-card-head h2 { display: flex; align-items: center; gap: 10px; }

/* 3 adim */
.igp .igp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.igp .igp-steps li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid rgba(20,33,61,0.08); border-radius: 16px; background: var(--white); }
.igp .igp-steps b { display: block; margin-bottom: 2px; font-size: 14.5px; color: var(--hm-ink); }
.igp .igp-steps span:not(.igp-no) { display: block; font-size: 13.5px; line-height: 1.5; color: var(--hm-muted); }

/* Dil secici */
.igp .igp-langtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.igp .igp-search { position: relative; flex: 1 1 260px; min-width: 0; }
.igp .igp-search i { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); font-size: 14px; color: var(--hm-muted); pointer-events: none; }
.igp .igp-search input { width: 100%; min-height: 44px; margin: 0; padding-block: 0; padding-inline: 38px 12px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background: var(--hm-paper); font: inherit; font-size: 15px; color: var(--hm-ink); }
.igp .igp-search input:focus { outline: none; border-color: var(--hm-ink); background: var(--white); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }
.igp .ig-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 224px; margin: 0; padding: 2px; overflow-y: auto; overscroll-behavior: contain; }
.igp .ig-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--hm-text); cursor: pointer; user-select: none; }
.igp .ig-chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; } /* klavye ile secilebilsin diye gizli ama odaklanabilir */
.igp .ig-chip small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--hm-muted); }
.igp .ig-chip.on { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.igp .ig-chip.on small { color: rgba(255,255,255,0.7); }
.igp .ig-chip.has::after { content: "\2713"; font-size: 12px; font-weight: 800; color: #0a7250; }
.igp .ig-chip.on.has::after { color: var(--hm-gold); }
.igp .ig-chip.hide { display: none; }
.igp .ig-chip:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.igp .igp-chip-hint { margin: 10px 0 0; }
.igp .igp-has-mark { font-weight: 800; color: #0a7250; }
.igp .ap-empty .ap-btn i { font-size: inherit; }

/* Filtre, sayaclar, toplu islem */
.igp .ig-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; margin: 0; }
.igp .ig-filters .ap-field { margin-bottom: 12px; }
.igp .ig-filters noscript { display: flex; align-items: flex-end; }
.igp .ig-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.igp .ig-counts .ap-pill { min-height: 30px; font-size: 13.5px; }
.igp .igp-total { font-size: 13.5px; color: var(--hm-muted); }
.igp .ig-usage { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hm-muted); margin-inline-start: auto; }
.igp .ig-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(20,33,61,0.07); }
.igp .ig-bulk-progress { flex: 1 1 240px; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--hm-text); overflow-wrap: anywhere; }
.igp .ig-bulk-progress:empty { display: none; }

/* Bolumler */
.igp .ig-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.igp .ig-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.igp .ig-section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--hm-ink); }
.igp .ig-section-count { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: #f1f2f5; font-size: 13px; font-weight: 700; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.igp .ig-section-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-inline-start: auto; font-size: 14px; }
[dir="rtl"] .igp .ig-section-link i, [dir="rtl"] .igp .igp-edit i { transform: scaleX(-1); }
.igp .ig-section[data-section="pending"] .ig-section-head h2 i { color: #b07d00; }
.igp .ig-section[data-section="pending"] .ig-section-count { background: #fff4d6; color: #8a6100; }
.igp .ig-section[data-section="translated"] .ig-section-head h2 i { color: #0a7250; }
.igp .ig-section[data-section="translated"] .ig-section-count { background: #e6f7f0; color: #0a7250; }
.igp .ig-section[data-section="no_text"] .ig-section-head h2 i { color: var(--hm-muted); }
.igp .ig-section-desc { max-width: 60em; margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: var(--hm-muted); }
.igp .ig-section-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.igp .ig-empty { margin: 0; padding: 18px 16px; border: 1px dashed rgba(20,33,61,0.16); border-radius: 16px; font-size: 14px; text-align: center; color: var(--hm-muted); }

/* Gorsel karti */
.igp .ig-card { min-width: 0; margin: 0; padding: 18px 20px; border: 1px solid rgba(20,33,61,0.08); border-radius: 18px; background: var(--white); box-shadow: 0 12px 32px -26px rgba(20,33,61,0.3); }
.igp .ig-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.igp .igp-qmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.igp .igp-qmeta strong { font-size: 15.5px; font-weight: 700; color: var(--hm-ink); }
.igp .igp-qmeta span { font-size: 13.5px; color: var(--hm-muted); overflow-wrap: anywhere; }
.igp .igp-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; }
.igp .ig-card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0 0 14px; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--hm-text); overflow-wrap: anywhere; }
.igp .ig-row { display: grid; grid-template-columns: 184px minmax(0, 1fr); grid-template-areas: "thumb info" "thumb acts"; align-items: start; gap: 10px 18px; }
.igp .ig-thumb { grid-area: thumb; display: block; width: 100%; height: 132px; object-fit: contain; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; background: #fff; cursor: zoom-in; }
.igp .ig-thumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.igp .ig-info { grid-area: info; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.igp .ig-info b { font-size: 15px; font-weight: 700; color: var(--hm-ink); }
.igp .ig-badge-wrap:empty, .igp .ig-lang-list:empty { display: none; }
.igp .ig-lang-list { overflow-wrap: anywhere; }
.igp .ig-row-actions { grid-area: acts; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.igp .igp-acts-main, .igp .igp-acts-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.igp .igp-acts-more { gap: 2px 4px; margin-inline-start: -12px; } /* sessiz dugmelerin ic boslugu hizayi bozmasin */

/* Ana gorsel duzenleyici */
.igp .ig-source-editor { margin-top: 16px; padding: 16px; border: 1px solid rgba(20,33,61,0.1); border-radius: 16px; background: var(--hm-paper); }
.igp .ig-source-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.igp .ig-source-editor-head b { font-size: 15.5px; font-weight: 700; color: var(--hm-ink); }
.igp .ig-source-close { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 17px; color: var(--hm-muted); cursor: pointer; }
.igp .ig-source-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.igp .ig-source-tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.igp .ig-source-tools label { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.igp .ig-source-tools textarea { width: 100%; min-height: 88px; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); font: inherit; font-size: 15px; line-height: 1.5; color: var(--hm-ink); resize: vertical; }
.igp .ig-source-tools textarea:focus, .igp .ig-ai textarea:focus, .igp .ig-edit input:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }
.igp .ig-source-status { min-height: 20px; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--hm-text); overflow-wrap: anywhere; }
.igp .ig-source-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.igp .ig-source-compare figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; background: #fff; }
.igp .ig-source-compare figcaption { padding: 9px 12px; border-bottom: 1px solid rgba(20,33,61,0.07); background: var(--white); font-size: 13.5px; font-weight: 700; color: var(--hm-ink); }
.igp .ig-source-compare img, .igp .ig-source-compare canvas { display: block; width: 100%; height: 280px; object-fit: contain; background: #fff; cursor: zoom-in; }
.igp .ig-source-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.igp .ig-source-confirm .ig-muted { flex: 1 1 280px; }

/* Sonuc paneli */
.igp .ig-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(20,33,61,0.07); }
.igp .ig-found { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.igp .ig-found > .ig-muted { flex-basis: 100%; }
.igp .ig-found-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--hm-paper); font-size: 14px; color: var(--hm-ink); cursor: pointer; overflow-wrap: anywhere; }
.igp .ig-found-chip.off { opacity: 0.5; text-decoration: line-through; }
.igp .ig-skipped { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff8e1; font-size: 14px; line-height: 1.5; color: #6b4e00; }
.igp .ig-skipped > i { margin-top: 3px; }
.igp .ig-failed { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.igp .ig-failed > div { margin-top: 2px; }
.igp .ig-savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; background: var(--hm-paper); font-size: 14px; color: var(--hm-ink); }
.igp .ig-savebar > span:first-child { flex: 1 1 220px; min-width: 0; }
.igp .ig-savebar .ig-status:empty { display: none; }

/* Dil galerisi */
.igp .ig-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.igp .ig-gallery figure { display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; background: var(--white); }
.igp .ig-gallery figure.preview { border-color: var(--hm-ink); box-shadow: 0 0 0 1px var(--hm-ink); }
.igp .ig-gallery figure.is-off { opacity: 0.55; }
.igp .ig-gallery figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border-bottom: 1px solid rgba(20,33,61,0.07); font-size: 13.5px; font-weight: 700; color: var(--hm-ink); }
.igp .ig-gallery figcaption > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.igp .ig-gallery figure.src figcaption { background: var(--hm-paper); }
.igp .ig-tag { flex-shrink: 0; padding: 3px 8px; border-radius: 999px; background: #f1f2f5; font-size: 11.5px; font-weight: 700; color: var(--hm-muted); white-space: nowrap; }
.igp .ig-tag.new { background: var(--hm-ink); color: var(--white); }
.igp .ig-tag.ok { background: #e6f7f0; color: #0a7250; }
.igp .ig-gallery img, .igp .ig-gallery canvas { display: block; width: 100%; height: auto; background: #fff; cursor: zoom-in; }
.igp .ig-warn { padding: 7px 12px; border-bottom: 1px solid #f3dfae; background: #fff8e1; font-size: 13px; line-height: 1.45; color: #6b4e00; }
.igp .ig-warn.ok { border-bottom-color: rgba(20,33,61,0.07); background: #eef2fb; color: var(--hm-ink); }
.igp .ig-keep { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 12px; border-top: 1px solid rgba(20,33,61,0.07); font-size: 14px; font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.igp .ig-keep input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: #0a7250; }
.igp .ig-lang-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding: 6px; border-top: 1px solid rgba(20,33,61,0.07); }
.igp .ig-lang-btns button { flex: 1 1 calc(50% - 4px); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.igp .ig-lang-btns button i { color: var(--hm-muted); }
.igp .ig-lang-btns button.ai i { color: #b07d00; }
.igp .ig-lang-btns button.del, .igp .ig-lang-btns button.del i { color: #b4232a; }
.igp .ig-lang-btns button:focus-visible, .igp .ig-found-chip:focus-visible, .igp .ig-ai-presets button:focus-visible, .igp .ig-edit-row button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Dil gorseli: AI ve elle duzeltme kutusu */
.igp .ig-edit { padding: 12px; border-top: 1px solid rgba(20,33,61,0.07); background: var(--hm-paper); }
.igp .ig-edit label { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--hm-text); overflow-wrap: anywhere; }
.igp .ig-edit input[type="text"] { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 10px; background: var(--white); font: inherit; font-size: 14px; color: var(--hm-ink); }
.igp .ig-edit-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.igp .ig-edit-row button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 10px; background: var(--white); font: inherit; font-size: 13px; font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.igp .ig-edit-row button[disabled] { opacity: 0.5; cursor: default; }
.igp .ig-edit .ig-status { display: block; margin-top: 6px; font-size: 13.5px; }
.igp .ig-ai > label:first-child { margin-bottom: 8px; font-size: 13.5px; color: var(--hm-ink); }
.igp .ig-ai-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.igp .ig-ai-presets button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; background: var(--white); font: inherit; font-size: 13px; font-weight: 600; color: var(--hm-ink); text-align: start; cursor: pointer; }
.igp .ig-ai textarea { display: block; width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 8px 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 10px; background: var(--white); font: inherit; font-size: 14px; line-height: 1.5; color: var(--hm-ink); resize: vertical; }
.igp .ig-ai .ig-ai-hq { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 40px; margin: 0 0 8px; font-weight: 600; cursor: pointer; }
.igp .ig-ai-hq input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--hm-ink); }
.igp .ig-ai-hq .ig-muted { font-weight: 400; }
.igp .ig-edit .ap-btn.is-sm { width: 100%; }

/* Buyuk onizleme */
.igp .ig-box { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(15,20,30,0.88); }
.igp .ig-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; max-width: 100%; font-size: 15px; font-weight: 700; color: #fff; }
.igp .ig-box-head #igBoxTitle { overflow-wrap: anywhere; text-align: center; }
.igp .ig-box-head a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: #d6e2ff; }
.igp .ig-box-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.16); font-size: 18px; color: #fff; cursor: pointer; }
.igp .ig-box-close:focus-visible, .igp .ig-box-head a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.igp .ig-box-img { max-width: min(1100px, 100%); max-height: 76vh; border-radius: 10px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.igp .ig-box-hint { font-size: 13px; color: rgba(255,255,255,0.75); text-align: center; }

/* Sayfalama */
.igp .pagination { margin-top: 4px; }
.igp .page-btn { min-width: 44px; height: 44px; border-color: rgba(20,33,61,0.14); border-radius: 12px; }

@media (hover: hover) {
    .igp .ig-chip:hover { border-color: rgba(20,33,61,0.4); }
    .igp .ig-chip.on:hover { border-color: var(--hm-ink); }
    .igp .ap-btn.is-ok:hover { border-color: #085c40; background: #085c40; }
    .igp .ap-btn.is-quiet:hover { border-color: transparent; background: var(--hm-paper); }
    .igp .ap-btn.is-quiet.is-danger:hover { background: #fdeeee; }
    .igp .ig-source-close:hover { background: rgba(20,33,61,0.08); color: var(--hm-ink); }
    .igp .ig-found-chip:hover { border-color: rgba(20,33,61,0.35); }
    .igp .ig-lang-btns button:hover { background: var(--hm-paper); }
    .igp .ig-lang-btns button.del:hover { background: #fdeeee; }
    .igp .ig-ai-presets button:hover, .igp .ig-edit-row button:not([disabled]):hover { border-color: rgba(20,33,61,0.35); background: var(--hm-paper); }
    .igp .ig-box-close:hover { background: rgba(255,255,255,0.28); }
    .igp .ig-thumb:hover { border-color: rgba(20,33,61,0.3); }
}
@media (hover: none) {
    /* Dokunmatikte kucuk dugmeler de en az 44px */
    .igp .ap-btn.is-sm, .igp .ig-chip, .igp .ig-found-chip, .igp .ig-ai-presets button, .igp .ig-edit-row button, .igp .ig-edit input[type="text"] { min-height: 44px; }
    .igp .ig-ai .ig-ai-hq { min-height: 44px; }
}
@media (max-width: 1180px) {
    .igp .ig-row { grid-template-columns: 164px minmax(0, 1fr); }
    .igp .ig-thumb { height: 120px; }
}
@media (max-width: 1024px) {
    .igp .ig-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .igp .ig-source-tools { grid-template-columns: minmax(0, 1fr) auto; }
    .igp .ig-source-tools label { grid-column: 1 / -1; grid-row: 1; }
    .igp .ig-source-tools [data-act="source-pick"] { justify-self: start; }
}
@media (max-width: 900px) {
    .igp .igp-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .igp .igp-steps li { padding: 12px 14px; }
    .igp .ig-source-compare img, .igp .ig-source-compare canvas { height: 220px; }
}
@media (max-width: 640px) {
    .igp .ig-filters { grid-template-columns: minmax(0, 1fr); }
    .igp .ig-usage { margin-inline-start: 0; }
    .igp .ig-bulk .ap-btn { flex: 1 1 100%; }
    .igp .ig-card { padding: 16px; border-radius: 16px; }
    .igp .ig-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "thumb" "info" "acts"; }
    .igp .ig-thumb { height: auto; max-height: 220px; }
    .igp .igp-acts-main .ap-btn { flex: 1 1 auto; }
    .igp .igp-langtools .ap-btn { flex: 1 1 auto; }
    .igp .igp-search { flex-basis: 100%; }
    .igp .ig-source-editor { padding: 12px; }
    .igp .ig-source-tools { grid-template-columns: minmax(0, 1fr); }
    .igp .ig-source-tools .ap-btn { width: 100%; }
    .igp .ig-source-compare { grid-template-columns: minmax(0, 1fr); }
    .igp .ig-source-compare img, .igp .ig-source-compare canvas { height: auto; max-height: 260px; }
    .igp .ig-source-confirm .ap-btn, .igp .ig-savebar .ap-btn { flex: 1 1 100%; }
    .igp .ig-gallery { grid-template-columns: minmax(0, 1fr); }
    .igp .ig-box { padding: 12px; }
    .igp .ig-box-img { max-height: 70vh; }
}

/* ===== Ogrenciler (admin/users.php) ===== */
.us-filters { display: grid; grid-template-columns: minmax(200px, 1.8fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.ap .us-filters select { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background-color: var(--white); font: inherit; font-size: 14px; color: var(--hm-ink); }
.us-filters.has-role { grid-template-columns: minmax(200px, 1.6fr) repeat(4, minmax(0, 1fr)) auto; }
.us-clear { grid-column: 1 / -1; justify-self: start; font-size: 14px; }
.us-card { padding: 8px 20px 20px; }
.us-list { margin: 0; padding: 0; list-style: none; }
.us-list li + li { border-top: 1px solid rgba(20,33,61,0.07); }
/* Toplu secim / silme */
.us-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 4px 0 12px; border-bottom: 1px solid rgba(20,33,61,0.07); margin-bottom: 4px; }
.us-bulk-all { min-height: 44px; }
.us-bulk-every { min-height: 44px; font-weight: 600; }
.us-bulk-n { font-weight: 700; }
.us-bulk-del { margin-inline-start: auto; }
.us-row { display: flex; align-items: center; gap: 4px; }
.us-row > .us-item { flex: 1 1 auto; min-width: 0; margin-inline-start: 0; }
.us-pick { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; cursor: pointer; }
.us-pick input { width: 18px; height: 18px; cursor: pointer; }
@media (max-width: 640px) { .us-bulk-del { width: 100%; justify-content: center; margin-inline-start: 0; } .us-pick { flex-basis: 36px; } }
.us-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 8px; margin: 0 -8px; border-radius: 14px; color: inherit; text-decoration: none; }
.us-item.is-off .us-main strong { color: var(--hm-muted); }
.us-avatar, .ud-avatar { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--hm-paper); font-size: 15px; font-weight: 700; color: var(--hm-ink); }
.us-avatar img, .ud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.us-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.us-main strong { font-size: 15px; font-weight: 700; color: var(--hm-ink); overflow-wrap: anywhere; }
.us-main strong small { font-size: 12.5px; font-weight: 500; color: var(--hm-muted); }
.us-main > small { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; color: var(--hm-muted); }
.us-dates { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--hm-muted); white-space: nowrap; }
.us-go { font-size: 13px; color: #b7bdcc; }
[dir="rtl"] .us-go { transform: scaleX(-1); }
.us-range { margin: 10px 0 0; font-size: 13px; color: var(--hm-muted); }
.us-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== Ogrenci detayi (admin/user.php) ===== */
.ud-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.ud-head .ud-avatar { width: 84px; height: 84px; font-size: 30px; }
.ud-avatar.is-lg { width: 96px; height: 96px; font-size: 34px; }
.ud-id h1 { margin: 0 0 2px; font-size: clamp(21px, 2.3vw, 27px); font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); overflow-wrap: anywhere; }
.ud-id p { margin: 0 0 6px; font-size: 14.5px; color: var(--hm-muted); overflow-wrap: anywhere; }
.ud-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ud-inline { display: inline-flex; margin: 0; }
.ud-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ud-tab { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--hm-text); text-decoration: none; }
.ud-tab.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.ud-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ud-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ud-photo { display: flex; align-items: center; gap: 16px; }
.ud-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; flex: 1; }
.ud-photo-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.ud-photo-upload .qa-file { flex: 1 1 100%; min-width: 0; width: 100%; }
.ud-danger { border-color: #f1c4c6; }
.ud-danger .ap-card-head h2 { color: #b4232a; }
.ud-danger-sep { margin: 18px 0 14px; border: 0; border-top: 1px dashed #f1c4c6; }
/* Silinmis hesap bandi (hesap pasif, veriler duruyor) */
.ud-deleted { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; border-color: #f1c4c6; background: #fdf3f3; }
.ud-deleted > i { font-size: 22px; color: #b4232a; }
.ud-deleted-text { flex: 1 1 320px; min-width: 0; }
.ud-deleted-text strong { display: block; color: #8c1d18; }
.ud-deleted-text p { margin: 4px 0 0; font-size: 14px; color: var(--gray-700); overflow-wrap: anywhere; }
.ud-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.ud-table-wrap { overflow-x: auto; margin: 0 -4px; }
.ud-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ud-table th { padding: 8px 10px; border-bottom: 1px solid rgba(20,33,61,0.1); font-size: 13px; font-weight: 600; text-align: start; color: var(--hm-muted); white-space: nowrap; }
.ud-table td { padding: 10px; border-bottom: 1px solid rgba(20,33,61,0.06); vertical-align: middle; color: var(--hm-ink); }
.ud-table td small { color: var(--hm-muted); }
.ud-table tr:last-child td { border-bottom: 0; }
.ud-block-form { position: relative; }
.ud-block-form > summary { list-style: none; cursor: pointer; }
.ud-block-form > summary::-webkit-details-marker { display: none; }
.ud-block-body { position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 6px); width: min(360px, calc(100vw - 48px)); padding: 14px; border: 1px solid rgba(20,33,61,0.12); border-radius: 16px; background: var(--white); box-shadow: 0 20px 40px -20px rgba(20,33,61,0.45); }
.ud-block-body .ap-fields { grid-template-columns: minmax(0, 1fr); }
.ud-block-body .ap-field { margin-bottom: 10px; }
.ud-sec-row { flex-wrap: wrap; }
.ud-sec-row .ap-row-actions { flex-wrap: wrap; }

/* ===== Engellemeler (admin/security.php) ===== */
.sec-log-filter { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; margin-bottom: 12px; }
.ap .sec-log-filter select { min-height: 44px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; font: inherit; font-size: 14px; }
.sec-actions { white-space: nowrap; text-align: end; }
.sec-actions .ud-inline + .ud-inline { margin-inline-start: 6px; }
.sec-past > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.sec-past > summary::-webkit-details-marker { display: none; }
.sec-past > summary h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.sec-past > summary small { font-size: 13.5px; color: var(--hm-muted); }
.sec-past[open] > summary { margin-bottom: 10px; }

@media (hover: hover) {
    .us-item:hover { background: var(--hm-paper); }
    .us-item:hover .us-go { color: var(--hm-ink); }
    .ud-tab:not(.is-active):hover { border-color: rgba(20,33,61,0.3); color: var(--hm-ink); }
}
@media (max-width: 1180px) {
    .us-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
    .us-filters.has-role { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
    .us-search { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .us-filters, .us-filters.has-role { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .us-filters > .ap-btn { grid-column: 1 / -1; }
    .us-item { grid-template-columns: auto minmax(0, 1fr) auto; }
    .us-dates { display: none; }
    .ud-head { grid-template-columns: auto minmax(0, 1fr); }
    .ud-head-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .ud-block-body { inset-inline-end: auto; inset-inline-start: 0; }
    .sec-log-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .sec-log-filter .ex-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .us-filters, .us-filters.has-role { grid-template-columns: minmax(0, 1fr); padding: 12px; border-radius: 16px; }
    .ap .us-filters select { font-size: 16px; }
    .us-card { padding: 4px 14px 14px; }
    .us-item { gap: 10px; grid-template-columns: auto minmax(0, 1fr); }
    .us-go { display: none; }
    .ud-head { grid-template-columns: minmax(0, 1fr); text-align: start; }
    .ud-head .ud-avatar { width: 64px; height: 64px; font-size: 24px; }
    .ud-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .ud-tabs::-webkit-scrollbar { display: none; }
    .ud-tab { flex-shrink: 0; }
    .ud-photo { flex-direction: column; align-items: flex-start; }
    .ud-table thead { display: none; }
    .ud-table, .ud-table tbody, .ud-table tr, .ud-table td { display: block; width: 100%; }
    .ud-table tr { padding: 10px 0; border-bottom: 1px solid rgba(20,33,61,0.08); }
    .ud-table tr:last-child { border-bottom: 0; }
    .ud-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: end; }
    .ud-table td::before { content: attr(data-label); flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--hm-muted); text-align: start; }
    .ud-table td:not([data-label])::before { content: none; }
    .sec-actions { justify-content: flex-start; }
    .sec-log-filter { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Sinav sonuclari (admin/results.php) ===== */
.rs-filters { display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(5, minmax(0, 1fr)) auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.ap .rs-filters select { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background-color: var(--white); font: inherit; font-size: 14px; color: var(--hm-ink); }
.rs-clear { grid-column: 1 / -1; justify-self: start; font-size: 14px; }
.rs-card { padding: 10px 20px 20px; }
.rs-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rs-person .us-avatar { width: 38px; height: 38px; font-size: 13px; }
.rs-person-text { display: flex; flex-direction: column; min-width: 0; }
.rs-name { font-weight: 700; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.rs-person-text small { overflow: hidden; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; color: var(--hm-muted); }
.rs-exam { font-weight: 600; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.rs-sub { display: block; font-size: 12.5px; color: var(--hm-muted); }
.rs-dyb { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--hm-muted); }
.rs-dyb b { color: var(--hm-ink); }
.rs-dyb b.is-c { color: #0a7250; }
.rs-dyb b.is-w { color: #b4232a; }
.rs-table td { white-space: nowrap; }
.rs-table td:first-child, .rs-table td:nth-child(2) { white-space: normal; }

/* ===== Sozlesmeler (admin/legal-documents.php) ===== */
.ld-list { margin: 0; padding: 0; list-style: none; }
.ld-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(20,33,61,0.07); }
.ld-item:first-child { border-top: 0; padding-top: 4px; }
.ld-item.is-off .ld-title { color: var(--hm-muted); }
.ld-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ld-title { font-size: 16px; font-weight: 700; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.ld-main > small { font-size: 13px; line-height: 1.45; color: var(--hm-muted); overflow-wrap: anywhere; }
.ld-toggles { margin-top: 8px; }
.ld-toggles .ap-pill { text-decoration: none; }
.ld-actions { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
.ld-help { margin: 0; padding-inline-start: 18px; font-size: 14px; line-height: 1.6; color: var(--hm-text); }
.ld-help li + li { margin-top: 6px; }

/* ===== Sozlesme duzenle (admin/legal-document-edit.php) ===== */
.lde-count { margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(20,33,61,0.08); font-size: 12.5px; }
.ud-tab.is-active .lde-count { background: rgba(255,255,255,0.16); }
.lde-prefix { display: flex; align-items: stretch; min-width: 0; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; overflow: hidden; }
.lde-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--hm-paper); font-size: 13px; color: var(--hm-muted); white-space: nowrap; }
.ap .lde-prefix input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; font: inherit; font-size: 15px; }
.ap .lde-prefix input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(20,33,61,0.15); }
.ap .lde-date { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; font: inherit; font-size: 15px; }
.lde-save { width: 100%; }
.lde-meta { display: grid; gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(20,33,61,0.07); font-size: 13.5px; }
.lde-meta div { display: flex; justify-content: space-between; gap: 10px; }
.lde-meta dt { color: var(--hm-muted); }
.lde-meta dd { margin: 0; font-weight: 600; color: var(--hm-ink); }
.lde .legal-editor { margin-bottom: 0; }
.lde .legal-editor-head label { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.lde .legal-textarea { border-radius: 12px; border-color: rgba(20,33,61,0.16); }
.lde .legal-toolbar button, .lde .legal-editor-modes button { min-height: 38px; min-width: 38px; border-radius: 10px; }
.lde-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 8px; }
.lde-lang { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--hm-text); text-decoration: none; }
.lde-lang.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.lde-dot { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; border: 1.5px solid #b7bdcc; border-radius: 50%; vertical-align: middle; }
.lde-dot.is-ok { border-color: #0e9f6e; background: #0e9f6e; }
.lde-dot.is-warn { border-color: #d99a00; background: #f4b400; }
/* Olimpiyat sinavlari (admin/olympiad-event-edit.php #sinavlar, admin/olympiad-results.php) */
.ox-admin-exam .ap-card-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ox-admin-exam .ap-stats { margin: 0 0 10px; }
.ox-admin-exam .ap-stat small { font-size: 12.5px; font-weight: 500; color: var(--hm-muted); }
.ox-admin-edit { margin-top: 6px; border-top: 1px solid rgba(20,33,61,0.07); padding-top: 10px; }
.ox-admin-edit summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--hm-ink); cursor: pointer; }
.ox-admin-edit[open] summary { margin-bottom: 10px; }
.oxr-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.oxr-filter .ap-btn span { opacity: 0.7; font-weight: 500; }
.oxr-code { padding: 3px 7px; border-radius: 6px; background: var(--hm-paper); font-family: Consolas, Menlo, monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.lde-bulk { margin-bottom: 16px; }
.lde-bulk-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.lde-bulk-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 8px; }
.lde-bulk-lang { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--hm-text); cursor: pointer; }
.lde-bulk-lang input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--hm-ink); }
.lde-bulk-lang:has(input:checked) { border-color: var(--hm-ink); background: rgba(20,33,61,0.04); }
.lde-bulk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lde-bulk-status { flex-shrink: 0; font-size: 13px; color: var(--hm-muted); }
.lde-bulk-lang[data-run="ok"] .lde-bulk-status { color: #0e9f6e; }
.lde-bulk-lang[data-run="fail"] { border-color: #e3a008; background: #fffbeb; }
.lde-bulk-lang[data-run="fail"] .lde-bulk-status { color: #b45309; }
.lde-bulk-lang[data-run="busy"] .lde-bulk-status { color: var(--hm-ink); }
.lde-bulk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.lde-bulk-summary { flex: 1 1 240px; margin: 0; font-size: 14px; color: var(--hm-text); }
.lde-bulk-summary .ap-btn { margin-inline-start: 6px; vertical-align: middle; }
.lde-source-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--hm-ink); }
.lde-source-body { max-height: 70vh; overflow-y: auto; font-size: 14.5px; line-height: 1.65; }

@media (hover: hover) {
    .rs-name:hover, .rs-exam:hover, .ld-title:hover { text-decoration: underline; }
    .lde-lang:not(.is-active):hover { border-color: rgba(20,33,61,0.3); color: var(--hm-ink); }
}
@media (max-width: 1180px) {
    .rs-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rs-search { grid-column: 1 / -1; }
    .rs-filters > .ap-btn { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .rs-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ld-item { flex-direction: column; }
    .ld-actions { align-self: flex-start; }
}
@media (max-width: 640px) {
    .rs-filters { grid-template-columns: minmax(0, 1fr); padding: 12px; border-radius: 16px; }
    .ap .rs-filters select { font-size: 16px; }
    .rs-card { padding: 4px 14px 14px; }
    .rs-table td { white-space: normal; }
    .rs-person { justify-content: flex-end; text-align: end; }
    .lde-prefix { flex-direction: column; }
    .lde-prefix span { padding: 6px 10px; }
    .lde-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lde-bulk-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lde-bulk-lang { padding: 0 10px; font-size: 13.5px; }
    .lde-bulk-foot .ap-btn { flex: 1 1 100%; justify-content: center; }
}

/* ===== Mail sablonlari ve toplu mail (admin/email-templates.php, send-email.php) ===== */
.ml-form { display: flex; flex-direction: column; gap: 12px; }
.ml-form-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ml-form-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--hm-ink); }
.ml .mail-compose { gap: 18px; }
.ml .mail-editor-pane, .ml .ml-preview-card { margin: 0; }
.ml .ml-preview-card { padding: 16px; }
.ml .mail-preview-head h3 { font-size: 16px; font-weight: 700; color: var(--hm-ink); }
.ml .mail-frame-wrap { border-radius: 14px; }
.ml .mail-device-toggle button, .ml .mail-pane-tabs button { min-height: 40px; border-radius: 999px; font-weight: 600; }
.ml .mail-pane-tabs button.active, .ml .mail-device-toggle button.active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.ml .mail-body-input { min-height: 280px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; }
.ml .mail-variables { margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--hm-paper); }
.ml .mail-variables-label { font-size: 13.5px; font-weight: 600; color: var(--hm-text); }
.ml .mail-variables-list button { min-height: 36px; border: 1px solid rgba(20,33,61,0.14); border-radius: 999px; background: var(--white); font-size: 13px; color: var(--hm-ink); }
.ml .mail-variables small { color: var(--hm-muted); }
.ml-step { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 16px; font-weight: 700; color: var(--hm-ink); }
.ml-step + * { margin-top: 0; }
.mail-editor-pane .ml-step:not(:first-child) { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(20,33,61,0.07); }
.ml-step span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-ink); font-size: 13px; color: var(--white); }
.ml .recipient-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ml .recipient-option { margin: 0; }
.ml .recipient-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ml .recipient-option span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--hm-text); text-align: center; cursor: pointer; }
.ml .recipient-option input:checked + span { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.ml .recipient-option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ml .ml-summary { margin-bottom: 4px; border-radius: 14px; }
.ap-note.is-ok { background: #e6f7f0; color: #0a7250; }
.ap-note.is-ok i { color: #0e9f6e; }
.ap-modal .send-summary > div { border-radius: 12px; }

/* ===== Destek talepleri (admin/support.php) ===== */
.sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-search { flex: 0 1 340px; min-width: 0; }
.sp-card { padding: 8px 20px 20px; }
.sp-list { margin: 0; padding: 0; list-style: none; }
.sp-item { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(20,33,61,0.07); }
.sp-item:first-child { border-top: 0; }
.sp-link { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px 8px; margin-inline-start: -8px; border-radius: 14px; color: inherit; text-decoration: none; }
.sp-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-main strong { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.sp-item.is-unread .sp-main strong { font-weight: 800; }
.sp-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; }
.sp-main small { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; color: var(--hm-muted); }
.sp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sp-side small { font-size: 12.5px; color: var(--hm-muted); white-space: nowrap; }
.sp-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== Destek sohbeti admin (admin/support-ticket.php) ===== */
.stk { display: block; min-width: 0; }
.stk .support-chat { min-width: 0; width: 100%; }
.stk .support-chat-header, .stk .support-translate-bar { min-width: 0; flex-wrap: wrap; }
.stk .support-chat-title { min-width: 0; }
.stk .support-chat { border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.35); }
.stk .support-chat-title h2 { font-weight: 800; color: var(--hm-ink); }
.stk .support-msg.is-mine .support-bubble { background: var(--hm-ink); }
.stk .support-send-btn { background: var(--hm-ink); }
.stk .support-close-btn, .stk .support-user-link { border-radius: 999px; }
.stk .support-composer textarea { border-radius: 14px; }

/* ===== Destek ogrenci bilgileri (admin/support-user.php) ===== */
.su .su-of { font-size: 15px; font-weight: 600; color: var(--hm-muted); }
.su .su-sub { font-size: 12.5px; color: var(--hm-muted); }
.su .su-tabs { position: sticky; top: 64px; z-index: 5; padding: 8px 0; background: var(--gray-100, #f3f4f6); }
.su .su-section { padding: 0; scroll-margin-top: 130px; }
.su .su-head { margin: 0; padding: 16px 22px; border-bottom: 1px solid rgba(20,33,61,0.07); }
.su .su-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.su .su-head h3 i { color: var(--hm-muted); font-size: 15px; }
.su .su-section > .admin-card-body { padding: 16px 22px 20px; }

@media (hover: hover) {
    .sp-link:hover { background: var(--hm-paper); }
    .ml .recipient-option span:hover { border-color: rgba(20,33,61,0.3); }
    .ml .mail-variables-list button:hover { border-color: var(--hm-ink); }
}
@media (max-width: 900px) {
    .sp-search { flex: 1 1 100%; }
    .sp-link { grid-template-columns: auto minmax(0, 1fr); }
    .sp-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
}
@media (max-width: 640px) {
    .ml .recipient-options { grid-template-columns: minmax(0, 1fr); }
    .sp-card { padding: 4px 12px 12px; }
    .sp-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .sp-tabs::-webkit-scrollbar { display: none; }
    .sp-tabs .ud-tab { flex-shrink: 0; }
    .su .su-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 8px 16px; scrollbar-width: none; }
    .su .su-tabs .ud-tab { flex-shrink: 0; }
    .su .su-head, .su .su-section > .admin-card-body { padding-inline: 14px; }
    .stk .support-chat { border: 0; border-radius: 0; box-shadow: none; }
}

/* ===== Sinav kapak resimleri (includes/exams/exam-covers.php) ===== */
.exam-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hm-paper, #f5f7fd); }
.exam-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.exam-cover.is-empty { display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(20,33,61,0.22);
    background-color: var(--hm-paper, #f5f7fd);
    background-image: linear-gradient(var(--hm-grid, rgba(20,33,61,0.05)) 1px, transparent 1px), linear-gradient(90deg, var(--hm-grid, rgba(20,33,61,0.05)) 1px, transparent 1px);
    background-size: 22px 22px; }
/* Sinavlar sayfasi karti: kapak kartin ust kenarina tasar */
.exlist-card > .exlist-cover { margin: -22px -22px 0; border-radius: 20px 20px 0 0; }
/* Ana sayfa karti */
.hm-exam > .hm-exam-cover { border-radius: 20px 20px 0 0; }
/* Sinav baslama sayfasi */
.es-narrow.has-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 28px; }
.es-cover { border-radius: 18px; box-shadow: 0 16px 40px -24px rgba(20,33,61,0.45); }
/* Admin sinav listesi: kucuk kapak */
.ex-main:has(> .ex-thumb) { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: center; }
.ex-main > .ex-thumb { grid-row: span 2; border-radius: 10px; }
.ex-main > .ex-thumb.is-empty { font-size: 18px; }
/* Admin sinav duzenle: kapak karti */
.ee-cover .ee-cover-img { margin-bottom: 12px; border-radius: 14px; }
.ee-cover .ee-cover-img.is-empty { display: none; }
.ee-cover-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ee-cover-form .qa-file { flex: 1 1 100%; min-width: 0; }
.ee-cover form + form { margin-bottom: 8px; }

@media (max-width: 900px) {
    .es-narrow.has-cover { grid-template-columns: minmax(0, 1fr); }
    .es-narrow.has-cover .es-cover { grid-row: 1; max-width: 560px; }
}
@media (max-width: 640px) {
    .exlist-card > .exlist-cover { margin: -18px -18px 0; }
    .ex-main:has(> .ex-thumb) { grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; }
}

/* ===== Odemeler (admin/payments.php) ===== */
.pm-money small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--hm-muted); letter-spacing: 0; }
.pm-filters { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.ap .pm-filters select, .ap .pm-date input { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background-color: var(--white); font: inherit; font-size: 14px; color: var(--hm-ink); }
.pm-date { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.pm-date span { font-size: 12.5px; font-weight: 600; color: var(--hm-muted); }
.pm-cmp { margin-top: 4px; }
.pm-3d { margin-inline-start: 4px; color: #0e9f6e; }
.pm-table td { white-space: nowrap; }
.pm-table td:first-child, .pm-table td:nth-child(2) { white-space: normal; }
.pm-detail { display: grid; gap: 0; margin: 0; }
.pm-detail div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(20,33,61,0.06); }
.pm-detail dt { font-size: 13.5px; color: var(--hm-muted); }
.pm-detail dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.pm-detail dd.is-bad { color: #b4232a; }
.pm-bank { margin-top: 12px; }
.pm-bank summary { min-height: 40px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.pm-bank pre { max-height: 260px; overflow: auto; padding: 12px; border-radius: 12px; background: var(--hm-paper); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ===== POS ayarlari (admin/pos-settings.php) ===== */
.pos .pos-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.pos-url-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pos-rate { margin-top: 4px; }
.pos-info > summary { display: flex; align-items: center; min-height: 36px; list-style: none; cursor: pointer; }
.pos-info > summary::-webkit-details-marker { display: none; }
.pos-info > summary h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--hm-ink); }
.pos .ap-note code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.6); font-size: 13px; }

/* ===== Kampanyalar (admin/campaigns.php) ===== */
.cma-list { margin: 0; padding: 0; list-style: none; }
.cma-item { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(20,33,61,0.07); }
.cma-item:first-child { border-top: 0; padding-top: 4px; }
.cma-thumb { display: block; width: 132px; aspect-ratio: 16 / 10; border-radius: 14px; object-fit: cover; }
.cma-thumb.is-empty { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cmp-color, #14213d) 12%, #fff); font-size: 24px; color: var(--cmp-color, var(--hm-ink)); }
.cma-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cma-name { font-size: 16.5px; font-weight: 800; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.cma-main > small { font-size: 13.5px; color: var(--hm-muted); }
.cma-main > small strong { color: var(--hm-text); }
.cma-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 6px 18px; margin: 6px 0 0; }
.cma-facts div { min-width: 0; }
.cma-facts dt { font-size: 12.5px; color: var(--hm-muted); }
.cma-facts dd { margin: 0; font-size: 14px; color: var(--hm-ink); overflow-wrap: anywhere; }
.cma-facts dd small { color: var(--hm-muted); }
.cma-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.cma-actions .ap-btn { justify-content: flex-start; }
.cma-actions .ud-inline { display: flex; }
.cma-actions .ud-inline .ap-btn { flex: 1; }
.cma-actions .is-icon { width: auto; padding: 0 13px; }

@media (hover: hover) {
    .cma-name:hover { text-decoration: underline; }
}
@media (max-width: 1180px) {
    .pm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 0.8fr)); }
    .pm-filters .ex-search { grid-column: 1 / -1; }
    .pm-filters > .ap-btn { grid-column: 1 / -1; }
    .cma-item { grid-template-columns: 112px minmax(0, 1fr); }
    .cma-thumb { width: 112px; }
    .cma-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
    .cma-actions .ud-inline .ap-btn { flex: none; }
    .cma-actions .is-icon { width: 38px; padding: 0; }
}
@media (max-width: 900px) {
    .pm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .pm-filters { grid-template-columns: minmax(0, 1fr); padding: 12px; border-radius: 16px; }
    .ap .pm-filters select, .ap .pm-date input { font-size: 16px; }
    .pm-table td { white-space: normal; }
    .pm-detail div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .cma-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .cma-thumb { width: 100%; max-width: 320px; }
    .cma-actions { grid-column: 1; }
}

/* ===== Sol menu: sade katman (marka laciverti, buyuk harfsiz grup basliklari, dolu aktif oge) ===== */
.sidebar-logo-text strong { font-size: 16.5px; letter-spacing: -0.01em; }
.sidebar-logo-text small { color: rgba(255,255,255,0.5); }
.sidebar-search { position: relative; flex-shrink: 0; margin: 0 12px 10px; }
.sidebar-search input { height: 40px; border-radius: 12px; border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.05); }
.sidebar-search input:focus { border-color: rgba(244,180,0,0.55); background: rgba(255,255,255,0.08); }
.admin-sidebar .nav-link { min-height: 42px; margin: 1px 0; padding: 0 12px; border-radius: 12px; color: rgba(255,255,255,0.7); font-size: 14px; }
.admin-sidebar .nav-link i { color: rgba(255,255,255,0.42); font-size: 14.5px; }
.admin-sidebar .nav-link.active { background: rgba(255,255,255,0.1); box-shadow: none; color: #fff; font-weight: 600; }
.admin-sidebar .nav-link.active::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: -10px; width: 4px; border-radius: 0 4px 4px 0; background: #f4b400; }
.admin-sidebar .nav-link.active i { color: #f4b400; }
.admin-sidebar .sidebar-site { min-height: 40px; color: rgba(255,255,255,0.55); }
.admin-name-role { margin-inline-start: 4px; padding: 2px 8px; border-radius: 999px; background: var(--hm-paper, #f5f7fd); font-size: 11.5px; font-weight: 600; color: var(--hm-muted, #6b7794); }
@media (min-width: 769px) {
    body.sidebar-collapsed .admin-sidebar .nav-link { min-height: 44px; padding: 0; }
    body.sidebar-collapsed .admin-sidebar .nav-link.active::before { inset-inline-start: -12px; }
}

/* ===== Admin kullanicilar (admin/admin-users.php, admin-user-edit.php) ===== */
.au-avatar.role-super_admin { background: #f4b400; color: #111a31; }
.au-avatar.role-support { background: #e6f7f0; color: #0a7250; }
.au-me { font-size: 12.5px; font-weight: 500; color: var(--hm-muted); }
.aue-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px; }
.aue-perm { display: flex; align-items: flex-start; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; cursor: pointer; }
.aue-perm input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hm-ink); }
.aue-perm span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aue-perm strong { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.aue-perm small { font-size: 12px; color: var(--hm-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.aue-perm:has(input:checked) { border-color: var(--hm-ink); background: var(--hm-paper); }
.aue-perm.is-locked { cursor: not-allowed; opacity: 0.55; }
#permissionsCard[hidden] { display: none; }

/* ===== Ayarlar (admin/settings.php) ===== */
.st-password .ap-fields { margin-bottom: 4px; }
/* Ayarlar > Google ile giris */
#google .ap-check { margin-bottom: 14px; }
.stg-uri { display: block; padding: 10px 12px; border-radius: 10px; background: var(--hm-paper); font-size: 13.5px; color: var(--hm-ink); overflow-wrap: anywhere; user-select: all; }
.stg-guide { margin-top: 14px; border-top: 1px solid rgba(20,33,61,0.1); padding-top: 6px; }
.stg-guide > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--hm-ink); list-style: none; }
.stg-guide > summary::-webkit-details-marker { display: none; }
.stg-guide > summary::after { content: '+'; margin-inline-start: auto; font-size: 18px; font-weight: 600; color: var(--hm-muted); }
.stg-guide[open] > summary::after { content: '\2212'; }
.stg-guide > .ap-note { margin-bottom: 14px; }
.stg-guide .ap-note code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.7); font-size: 13px; overflow-wrap: anywhere; }

/* ===== Import kayitlari (admin/import-logs.php) ===== */
.ilg-filters { grid-template-columns: minmax(0, 200px) minmax(0, 200px) auto auto 1fr; }
.ilg-row { align-items: flex-start; }
.ilg-error { margin-top: 6px; }
.ilg-error summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13.5px; font-weight: 600; color: #b4232a; cursor: pointer; }
.ilg-error pre { max-height: 240px; margin: 4px 0 0; padding: 10px 12px; overflow: auto; border-radius: 12px; background: #fdf3f3; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: #7a1d22; }

/* ===== Sistem sagligi (admin/system-health.php) ===== */
.hl .hl-overview { border-radius: 20px; }
.hl .hl-section { padding: 0; overflow: hidden; }

@media (hover: hover) {
    .aue-perm:not(.is-locked):hover { border-color: rgba(20,33,61,0.3); }
}
@media (max-width: 900px) {
    .ilg-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ilg-filters { grid-template-columns: minmax(0, 1fr); }
    .admin-name-role { display: none; }
}

/* ===== Kampanya duzenle (admin/campaign-edit.php): .ap katmani uzerine sayfaya ozel (.ce) ===== */
/* Eski global .cmpa-* kurallari (sinav listesi, ogrenci secici, mail) burada sade gorunume cekilir */
.ce .ce-form { margin: 0; }
.ce .ap-layout { align-items: start; }

/* Hata listesi */
.ce .ce-errors { background: #fdeeee; color: #8c1d23; }
.ce .ce-errors i { color: #b4232a; }
.ce .ce-errors ul { margin: 6px 0 0; padding-inline-start: 18px; }
.ce .ce-errors li + li { margin-top: 2px; }

/* Tur secimi: iki buyuk secenek */
.ce .ce-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ce .ce-type { position: relative; display: flex; min-width: 0; cursor: pointer; }
.ce .ce-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ce .ce-type-box { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 44px; padding: 14px 16px; border: 1px solid rgba(20,33,61,0.14); border-radius: 16px; background: var(--white); color: var(--hm-ink); }
.ce .ce-type-box > i { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hm-paper); font-size: 17px; color: var(--hm-muted); }
.ce .ce-type-box strong { display: block; font-size: 15px; font-weight: 700; }
.ce .ce-type-box small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--hm-muted); }
.ce .ce-type input:checked + .ce-type-box { border-color: var(--hm-ink); box-shadow: inset 0 0 0 1px var(--hm-ink); }
.ce .ce-type input:checked + .ce-type-box > i { background: var(--hm-ink); color: var(--white); }
.ce .ce-type input:focus-visible + .ce-type-box { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Fiyat modu */
.ce .ce-fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.ce .ce-fieldset legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.ce .ce-price-fields .ap-field { margin-bottom: 0; }

/* Ortak alanlar: .ap-field'in kapsamadigi girisler */
.ce .ap-field input[type="datetime-local"] { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); font: inherit; font-size: 15px; color: var(--hm-ink); }
.ce .ap-field input[type="datetime-local"]:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }
.ce .ap-field input[type="color"] { width: 100%; min-height: 46px; padding: 4px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); cursor: pointer; }
.ce .ap-field input:disabled { background: var(--hm-paper); color: var(--hm-muted); cursor: not-allowed; }
.ce .ce-after { margin: 12px 0 0; }
.ce .ap-check + .ap-check, .ce .ap-check + .ap-note, .ce .ap-note + .ap-check { margin-top: 10px; }
.ce .ce-check-sm { align-self: flex-start; padding: 10px 14px; font-size: 14px; }

/* Arama kutusu (sinav + ogrenci) */
.ce .ce-search { position: relative; flex: 1 1 260px; min-width: 0; }
.ce .ce-search i { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); font-size: 14px; color: var(--hm-muted); pointer-events: none; }
.ce .ce-search input { width: 100%; min-height: 44px; margin: 0; padding-block: 0; padding-inline: 40px 12px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background: var(--hm-paper); font: inherit; font-size: 15px; color: var(--hm-ink); }
.ce .ce-search input:focus { outline: none; border-color: var(--hm-ink); background: var(--white); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }

/* Sinav listesi */
.ce .ce-exam-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.ce .ce-toggle { position: relative; display: inline-flex; cursor: pointer; }
.ce .ce-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ce .ce-toggle span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--hm-text); white-space: nowrap; }
.ce .ce-toggle input:checked + span { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.ce .ce-toggle input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ce .ce-exam-list { max-height: min(460px, 60vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; }
.ce .cmpa-exam-group { gap: 10px; min-height: 44px; padding: 4px 8px; padding-inline-start: 14px; background: var(--hm-paper); border-bottom: 1px solid rgba(20,33,61,0.06); font-size: 13px; font-weight: 700; color: var(--hm-ink); }
.ce .cmpa-exam-group > span { min-width: 0; overflow-wrap: anywhere; }
.ce .ce-group-btn { flex-shrink: 0; min-height: 36px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; background: var(--white); font: inherit; font-size: 13px; font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.ce .ce-group-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ce .cmpa-exam { gap: 12px; min-height: 48px; padding: 8px 14px; border-top: 1px solid rgba(20,33,61,0.06); font-size: 14.5px; color: var(--hm-ink); }
.ce .cmpa-exam input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--hm-ink); }
.ce .cmpa-exam:has(input:checked) { background: #f4f6fa; }
.ce .cmpa-exam.is-inactive { color: var(--hm-muted); }
.ce .cmpa-exam .ap-pill { min-height: 22px; margin-inline-start: 4px; font-size: 12px; }
.ce .ce-exam-id { font-size: 12.5px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.ce .cmpa-exam-price { font-weight: 600; color: var(--hm-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ce .ce-empty { margin: 0; padding: 20px 14px; text-align: center; }

/* Hedef kitle */
.ce .ce-aud-list { display: grid; gap: 8px; }
.ce .ce-aud { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; cursor: pointer; }
.ce .ce-aud > input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hm-ink); }
.ce .ce-aud > span { flex: 1; min-width: 0; }
.ce .ce-aud strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); }
.ce .ce-aud small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--hm-muted); }
.ce .ce-aud:has(> input:checked) { border-color: var(--hm-ink); background: #f7f8fb; }
.ce .ce-aud.is-disabled { cursor: not-allowed; opacity: 0.6; }
.ce .ce-inline { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; }
.ce .ce-inline input { width: 76px; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 10px; background: var(--white); font: inherit; font-size: 15px; color: var(--hm-ink); text-align: center; }
.ce .ce-inline input:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }
.ce .ce-inline input:disabled { background: var(--hm-paper); cursor: not-allowed; }

/* Secili ogrenciler */
.ce .ce-users { margin-top: 12px; padding: 14px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; background: var(--hm-paper); }
.ce .ce-users .ce-search input { background: var(--white); }
.ce .ce-users .ap-hint { margin: 10px 0 0; }
.ce .cmpa-user-results { margin-top: 8px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; }
.ce .cmpa-user-row { min-height: 48px; padding: 8px 14px; border-bottom: 1px solid rgba(20,33,61,0.06); color: var(--hm-ink); overflow-wrap: anywhere; }
.ce .cmpa-user-row small { color: var(--hm-muted); }
.ce .cmpa-user-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.ce .ce-noresult { margin: 0; padding: 12px 14px; }
.ce .cmpa-chip { min-height: 40px; padding-block: 4px; padding-inline: 12px 4px; border-color: rgba(20,33,61,0.14); font-size: 13.5px; color: var(--hm-ink); }
.ce .cmpa-chip small { color: var(--hm-muted); }
.ce .cmpa-chip button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; background: var(--hm-paper); color: var(--hm-text); font-size: 17px; }
.ce .cmpa-chip button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Kapak */
.ce .ce-cover .ap-hint { display: block; }
.ce .ce-cover-img { display: block; width: 100%; aspect-ratio: 2 / 1; max-height: 240px; border: 1px solid rgba(20,33,61,0.08); border-radius: 14px; object-fit: cover; background: var(--hm-paper); }

/* Ozet (yan panel) */
.ce .ce-preview .ap-hint { margin: 0; }
.ce .ce-preview-list { display: grid; max-height: 240px; margin: 0 0 10px; padding: 0; overflow-y: auto; list-style: none; font-size: 13.5px; }
.ce .ce-preview-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(20,33,61,0.06); color: var(--hm-text); }
.ce .ce-preview-list li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ce .ce-preview-list li span:last-child { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ce .ce-preview-list s { color: var(--hm-muted); }
.ce .ce-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; font-size: 14px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.ce .ce-total.is-final { margin-top: 6px; font-size: 15px; color: var(--hm-ink); }
.ce .ce-total.is-final strong { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.ce .ce-save { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: #e6f7f0; font-size: 13.5px; font-weight: 600; color: #0a7250; }
.ce .ce-save.is-none { background: var(--hm-paper); color: var(--hm-muted); }
.ce .ce-warn { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: #fdeeee; font-size: 13px; line-height: 1.45; color: #8c1d23; }
.ce .ce-warn i { margin-top: 2px; color: #b4232a; }
.ce #ceSummary:empty { display: none; }
.ce #ceSummary dd { min-width: 0; text-align: end; overflow-wrap: anywhere; }
.ce .ce-publish { margin: 16px 0 14px; }

/* Kampanya maili */
.ce .cmpa-mail .ap-help { margin-bottom: 12px; }
.ce .cmpa-mail-stats span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; background: var(--hm-paper); color: var(--hm-text); }
.ce .cmpa-mail-stats strong { color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.ce .cmpa-mail-stats .is-ok { background: #e6f7f0; color: #0a7250; }
.ce .cmpa-mail-stats .is-ok strong { color: #0a7250; }
.ce .cmpa-mail-stats .is-error { background: #fdeeee; color: #b4232a; }
.ce .cmpa-mail-stats .is-error strong { color: #b4232a; }
.ce .qt-bar { height: 24px; background: #eceef3; }
.ce .qt-bar-fill { background: var(--hm-ink); }
.ce .qt-bar-fill.is-done { background: #0e9f6e; }
.ce .qt-bar-fill.is-warn { background: #d99a00; }
.ce .qt-bar-pct { color: var(--hm-ink); mix-blend-mode: normal; }
.ce .cmpa-mail-status { color: var(--hm-muted); }
.ce .cmpa-mail-msg { border-radius: 12px; }
.ce .cmpa-mail-msg.is-ok { background: #e6f7f0; color: #0a7250; }
.ce .cmpa-mail-msg.is-error { background: #fdeeee; color: #8c1d23; }

/* Son satislar tablosu */
.ce .ce-orders td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ce .ce-orders td:nth-child(2), .ce .ce-orders td:nth-child(3) { min-width: 160px; white-space: normal; overflow-wrap: anywhere; }
.ce .ce-orders s { color: var(--hm-muted); }

@media (hover: hover) {
    .ce .ce-type:hover .ce-type-box { border-color: rgba(20,33,61,0.35); }
    .ce .ce-aud:not(.is-disabled):hover { border-color: rgba(20,33,61,0.3); }
    .ce .ce-toggle:hover span { border-color: rgba(20,33,61,0.35); }
    .ce .ce-group-btn:hover { border-color: rgba(20,33,61,0.35); background: var(--hm-paper); }
    .ce .cmpa-exam:hover { background: #f7f8fb; }
    .ce .cmpa-exam:has(input:checked):hover { background: #eef1f7; }
    .ce .cmpa-user-row:hover { background: var(--hm-paper); }
    .ce .cmpa-chip button:hover { background: #fdeeee; color: #b4232a; }
}
/* Dokunmatikte global .cmpa-* hover renkleri takili kalmasin */
@media (hover: none) {
    .ce .cmpa-user-row:hover { background: none; }
    .ce .cmpa-chip button:hover { background: var(--hm-paper); color: var(--hm-text); }
}

@media (max-width: 1180px) {
    .ce .ce-types { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
    /* Yan panel ana sutunun altina iner: ozet en sonda kalir, tur secimi yine yan yana */
    .ce .ce-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ce .ce-preview-list { max-height: none; }
}
@media (max-width: 900px) {
    .ce .ce-exam-list { max-height: min(420px, 65vh); }
}
@media (max-width: 640px) {
    .ce .ce-types { grid-template-columns: minmax(0, 1fr); }
    .ce .ce-type-box { padding: 12px 14px; }
    .ce .ce-exam-tools .ce-search { flex-basis: 100%; }
    .ce .ce-toggle, .ce .ce-toggle span { width: 100%; justify-content: center; }
    .ce .cmpa-exam { flex-wrap: wrap; gap: 4px 12px; padding: 10px 12px; }
    .ce .cmpa-exam-title { flex: 1 1 calc(100% - 40px); }
    .ce .cmpa-exam-price { width: 100%; padding-inline-start: 32px; font-size: 13.5px; }
    .ce .cmpa-exam-group { padding-inline-start: 12px; }
    .ce .ce-aud { padding: 12px; }
    .ce .ce-inline input, .ce .ce-search input, .ce .ap-field input[type="datetime-local"] { font-size: 16px; } /* iOS zoom yapmasin */
    .ce .cmpa-chip { max-width: 100%; }
    .ce .cmpa-chip small { max-width: 45vw; }
    .ce .cmpa-mail-actions .ap-btn { flex: 1 1 100%; }
    .ce .ce-orders td:nth-child(2), .ce .ce-orders td:nth-child(3) { min-width: 0; }
    .ce .ce-orders td { white-space: normal; }
}

/* ===== Sol menu: son bakistan beri yenilik rozeti (includes/admin/admin-nav-notify.php) ===== */
.admin-sidebar .nav-count.is-new { background: #3b82f6; color: #fff; }
.nav-group-new { display: none; width: 8px; height: 8px; margin-inline-start: 8px; margin-inline-end: auto; border-radius: 50%; background: #3b82f6; }
.nav-group.is-collapsed .nav-group-new { display: inline-block; }
.pm-logcount { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hm-paper, #f5f7fd); font-size: 11.5px; font-weight: 700; color: var(--hm-muted, #6b7794); }
.pm-logs { margin-top: 16px; }
.pm-logs h4 { margin: 0 0 8px; font-size: 15px; color: var(--hm-ink, #14213d); }
.pm-log-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pm-log-list li { padding: 10px 12px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; min-width: 0; }
.pm-log-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pm-log-head time { font-size: 12.5px; color: var(--hm-muted, #6b7794); }
.pm-log-info { margin: 6px 0 0; font-size: 13px; overflow-wrap: anywhere; color: var(--hm-text, #2b3550); }
.pm-log-list .pm-bank { margin-top: 4px; }
.pm-log-list .pm-bank summary { min-height: 36px; font-size: 13px; }

/* ===== Sayfa ust gorselleri (includes/site/page-heroes.php): sitede ve admin onizlemesinde ayni kurallar ===== */
.has-ph { position: relative; isolation: isolate; overflow: hidden; }
.has-ph > .ph-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #f5f7fd; }
.ph-media img, .has-ph-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--ph-x, 50%) var(--ph-y, 50%); transform: scale(var(--ph-z, 1)); transform-origin: var(--ph-x, 50%) var(--ph-y, 50%); }
.ph-media::after { content: ""; position: absolute; inset: 0; }
/* Acik: yazinin oldugu bastan sona dogru acilan acik perde, yazi koyu kalir */
.ph-light > .ph-media::after { background: linear-gradient(to right, rgba(245,247,253,0.96) 0%, rgba(245,247,253,calc(var(--ph-s, 0.7) * 0.92)) 45%, rgba(245,247,253,calc(var(--ph-s, 0.7) * 0.2)) 100%); }
[dir="rtl"] .ph-light > .ph-media::after { background: linear-gradient(to left, rgba(245,247,253,0.96) 0%, rgba(245,247,253,calc(var(--ph-s, 0.7) * 0.92)) 45%, rgba(245,247,253,calc(var(--ph-s, 0.7) * 0.2)) 100%); }
/* Koyu: lacivert perde, yazi beyaz */
.ph-dark > .ph-media::after { background: linear-gradient(to right, rgba(17,26,49,calc(0.4 + var(--ph-s, 0.6) * 0.5)) 0%, rgba(17,26,49,calc(0.15 + var(--ph-s, 0.6) * 0.45)) 100%); }
[dir="rtl"] .ph-dark > .ph-media::after { background: linear-gradient(to left, rgba(17,26,49,calc(0.4 + var(--ph-s, 0.6) * 0.5)) 0%, rgba(17,26,49,calc(0.15 + var(--ph-s, 0.6) * 0.45)) 100%); }
.ph-dark h1, .ph-dark h1 *, .ph-dark .acct-hero-text h1 { color: #fff; }
.ph-dark p, .ph-dark .lb-hero-meta li, .ph-dark .lb-hero-meta i, .ph-dark .pf-back, .ph-dark .page-hero-back, .ph-dark .acct-hero-text p { color: rgba(255,255,255,0.88); }
.ph-dark .lb-hero-meta li { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.ph-dark .dsh-btn-outline { background: #fff; border-color: #fff; color: var(--hm-ink, #14213d); }
.has-ph h1, .has-ph p { text-shadow: none; }
.ph-dark h1, .ph-dark p { text-shadow: 0 1px 12px rgba(0,0,0,0.25); }
/* Ana sayfa fotografi */
.hm-hero-photo.has-ph-photo { overflow: hidden; aspect-ratio: 16 / 13; border-radius: 24px; box-shadow: 0 20px 48px -24px rgba(20,33,61,0.35); }
.hm-hero-photo.has-ph-photo img { aspect-ratio: auto; border-radius: 0; box-shadow: none; }
@media (max-width: 640px) {
    /* Telefonda yazi tum genisligi kaplar: perde duz ve biraz daha yogun */
    .ph-light > .ph-media::after, [dir="rtl"] .ph-light > .ph-media::after { background: rgba(245,247,253,calc(0.55 + var(--ph-s, 0.7) * 0.4)); }
    .ph-dark > .ph-media::after, [dir="rtl"] .ph-dark > .ph-media::after { background: rgba(17,26,49,calc(0.5 + var(--ph-s, 0.6) * 0.4)); }
}

/* ===== Admin > Sayfa gorselleri (admin/page-heroes.php) ===== */
.phe .ap-label { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.phe .ap-field output { margin-inline-start: 6px; font-weight: 500; color: var(--hm-muted); }
.phe input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--hm-ink); }
.phe input[type="file"] { max-width: 100%; min-height: 44px; font-size: 14px; }
.phe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.phe-link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 10px; border: 1px solid rgba(20,33,61,0.1); border-radius: 16px; color: inherit; text-decoration: none; }
.phe-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.phe-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 0 4px 2px; }
.phe-meta strong { min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.phe-thumb { position: relative; aspect-ratio: 24 / 7; border-radius: 12px; overflow: hidden; background: #f5f7fd; }
.phe-thumb.is-photo { aspect-ratio: 24 / 7; }
.phe-thumb.is-photo > .ph-media { position: absolute; inset: 0; }
.phe-thumb.is-empty { display: flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(20,33,61,0.25); background-image: linear-gradient(rgba(20,33,61,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,33,61,0.05) 1px, transparent 1px); background-size: 16px 16px; }
.phe-thumb.is-inherited { opacity: 0.55; }
.phe-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; border: 1.5px dashed rgba(20,33,61,0.18); border-radius: 16px; text-align: center; color: var(--hm-muted); }
.phe-empty i { font-size: 28px; color: rgba(20,33,61,0.3); }
.phe-empty p { max-width: 36em; margin: 0; font-size: 14px; line-height: 1.55; }
.phe-previews { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.phe-previews .is-desktop { grid-column: 1 / -1; }
.phe-previews.is-home { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
.phe-previews.is-home .is-desktop { grid-column: auto; }
.phe-view { margin: 0; min-width: 0; }
.phe-view figcaption { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--hm-muted); }
.phe-frame { position: relative; border: 1px solid rgba(20,33,61,0.12); border-radius: 14px; background: #f5f7fd; cursor: grab; touch-action: none; user-select: none; }
.phe-frame:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.phe-frame.is-dragging { cursor: grabbing; }
.phe-frame img { -webkit-user-drag: none; }
.is-desktop .phe-frame { aspect-ratio: 1440 / 300; }
.is-tablet .phe-frame { aspect-ratio: 820 / 300; }
.is-phone .phe-frame { width: min(100%, 240px); aspect-ratio: 390 / 320; }
.phe-frame.is-photo { overflow: hidden; }
.phe-frame.is-photo > .ph-media { position: absolute; inset: 0; overflow: hidden; }
.is-home .is-desktop .phe-frame, .is-home .is-phone .phe-frame { aspect-ratio: 16 / 13; }
.is-home .is-phone .phe-frame { width: min(100%, 200px); }
.phe-copy { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 100%; max-width: 60%; padding: 4% 5%; pointer-events: none; }
.phe-copy strong { font-size: clamp(14px, 2vw, 22px); font-weight: 800; line-height: 1.15; color: var(--hm-ink); overflow-wrap: anywhere; }
.phe-copy span { font-size: 12px; line-height: 1.4; color: var(--hm-text); }
.phe-frame.ph-dark .phe-copy strong { color: #fff; }
.phe-frame.ph-dark .phe-copy span { color: rgba(255,255,255,0.85); }
.is-phone .phe-copy { max-width: 100%; padding: 8%; }
.is-phone .phe-frame.ph-light > .ph-media::after { background: rgba(245,247,253,calc(0.55 + var(--ph-s, 0.7) * 0.4)); }
.is-phone .phe-frame.ph-dark > .ph-media::after { background: rgba(17,26,49,calc(0.5 + var(--ph-s, 0.6) * 0.4)); }

/* ===== Toplu mail: ceviri secenegi ve gonderim ilerlemesi (admin/send-email.php) ===== */
.ml-translate { margin: 4px 0 14px; }
.ml-translate code { padding: 1px 5px; border-radius: 6px; background: var(--hm-paper); font-size: 12px; }
.ml-langs { flex-basis: 100%; }
.ml-job-bar { height: 10px; margin-bottom: 16px; border-radius: 999px; background: var(--hm-paper); overflow: hidden; }
.ml-job-bar span { display: block; height: 100%; border-radius: inherit; background: var(--hm-ink); transition: width .3s ease; }
.ml-job-langs { margin-bottom: 14px; }
.ml-job-langs h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; color: var(--hm-ink); }
.ml-job-langs ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ml-job-langs .ap-pill { white-space: normal; }
.ml-job-failed { overflow-wrap: anywhere; color: #b4232a; }
.ml-form[hidden] { display: none !important; }

@media (hover: hover) {
    .phe-link:hover { border-color: rgba(20,33,61,0.28); }
}
@media (max-width: 900px) {
    .phe-previews, .phe-previews.is-home { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .ml-job-bar span { transition: none; }
}

/* ===== Bildirimler (public/notifications.php) + header zili ===== */
.nav-link.nav-bell { position: relative; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; }
.main-nav > ul > li > .nav-link.nav-bell > i:first-child { display: inline-block; font-size: 18px; color: var(--hm-ink, #14213d); }
.nav-bell-count { position: absolute; top: 2px; inset-inline-start: 22px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #e0413a; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 16px; text-align: center; }
.nav-bell-count[hidden] { display: none; }
.nt-body { padding: 28px 0 64px; }
.nt-wrap { max-width: 860px; }
.nt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nt-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: #eef1f8; }
.nt-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--hm-text, #3a4560); text-decoration: none; }
.nt-tab span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(20,33,61,0.08); font-size: 12px; text-align: center; }
.nt-tab span.is-new { background: #e0413a; color: #fff; }
.nt-tab.is-active { background: #fff; color: var(--hm-ink, #14213d); box-shadow: 0 1px 3px rgba(20,33,61,0.12); }
.nt-bulk { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-bulk form { margin: 0; }
.nt-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--hm-ink, #14213d); text-decoration: none; cursor: pointer; }
.nt-btn.is-danger { color: #b4232a; border-color: #f1c4c6; }
.nt-support { margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: #eef4ff; }
.nt-support h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--hm-ink, #14213d); }
.nt-support ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nt-support a { display: flex; flex-wrap: wrap; gap: 4px 8px; min-height: 40px; align-items: center; font-size: 14px; color: var(--hm-ink, #14213d); text-decoration: none; overflow-wrap: anywhere; }
.nt-support a span { color: var(--hm-muted, #6b7794); }
.nt-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nt-item, .nf-preview { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid rgba(20,33,61,0.08); border-radius: 16px; background: #fff; }
.nt-item.is-new { border-color: rgba(26,86,219,0.28); background: #f7faff; box-shadow: inset 3px 0 0 #1a56db; }
[dir="rtl"] .nt-item.is-new { box-shadow: inset -3px 0 0 #1a56db; }
.nt-total { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; color: var(--hm-ink, #14213d); }
.nt-total span { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: rgba(20,33,61,0.08); font-size: 12.5px; text-align: center; }
.nt-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #eef1f8; font-size: 17px; color: var(--hm-ink, #14213d); }
.nt-icon.is-ok { background: #e6f7f0; color: #0a7250; }
.nt-icon.is-bad { background: #fdeeee; color: #b4232a; }
.nt-icon.is-warn { background: #fff4d6; color: #8a6100; }
.nt-icon.is-info { background: #e8efff; color: #1a56db; }
.nt-main { flex: 1; min-width: 0; }
.nt-title { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--hm-ink, #14213d); text-decoration: none; overflow-wrap: anywhere; }
a.nt-title:focus-visible { outline: 2px solid #1a56db; outline-offset: 2px; border-radius: 4px; }
.nt-item:not(.is-new) .nt-title { font-weight: 600; }
.nt-text { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--hm-text, #3a4560); overflow-wrap: anywhere; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 12.5px; color: var(--hm-muted, #6b7794); }
.nt-unread { padding: 1px 8px; border-radius: 999px; background: #1a56db; color: #fff; font-weight: 700; }
.nt-actions { display: flex; flex-shrink: 0; gap: 4px; }
.nt-actions form { margin: 0; }
.nt-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; color: var(--hm-muted, #6b7794); cursor: pointer; }
.nt-icon-btn:focus-visible, .nt-btn:focus-visible, .nt-tab:focus-visible { outline: 2px solid #1a56db; outline-offset: 2px; }
.nt-icon-btn.is-danger { color: #b4232a; }
.nt-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; border: 1.5px dashed rgba(20,33,61,0.14); border-radius: 18px; text-align: center; color: var(--hm-muted, #6b7794); }
.nt-empty i { font-size: 30px; color: rgba(20,33,61,0.25); }
.nt-empty p { margin: 0; font-size: 15px; }
.nt-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--hm-muted, #6b7794); }
/* Admin > Bildirimler onizleme */
.nf-preview { padding: 14px; background: #f7faff; border-color: rgba(26,86,219,0.28); }
.nf-prev-link { display: inline-flex; align-items: center; gap: 4px; }
.nf-target { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; overflow-wrap: anywhere; }
.nf .ap-note ul { margin: 4px 0 0; padding-inline-start: 18px; }
@media (hover: hover) {
    .nt-icon-btn:hover { background: #eef1f8; color: var(--hm-ink, #14213d); }
    .nt-icon-btn.is-danger:hover { background: #fdeeee; color: #b4232a; }
    .nt-btn:hover { border-color: rgba(20,33,61,0.3); }
    a.nt-title:hover { color: #1a56db; }
}
@media (max-width: 640px) {
    .nt-bar { flex-direction: column; align-items: stretch; }
    .nt-tabs { width: 100%; }
    .nt-tab { flex: 1; justify-content: center; }
    .nt-bulk .nt-btn { flex: 1; justify-content: center; }
    .nt-bulk form { flex: 1 1 100%; display: flex; }
    .nt-item { gap: 10px; padding: 14px 12px; }
    .nt-icon { width: 36px; height: 36px; font-size: 15px; }
    .nt-actions { flex-direction: column; gap: 0; margin: -6px -4px -6px 0; }
}
@media (min-width: 1101px) {
    .nav-bell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1100px) {
    .nav-link.nav-bell { justify-content: flex-start; }
    .nav-bell-count { position: static; margin-inline-start: auto; border: 0; }
}

/* ===== Sayfa gorselleri: tam sayfa onizlemesi (admin/page-heroes.php) ===== */
.phe-live .ap-card-head { align-items: center; }
.phe-devices span { min-height: 40px; font-size: 13.5px; }
.phe-live-stage { display: flex; justify-content: center; width: 100%; min-width: 0; }
.phe-live-box { position: relative; overflow: hidden; border: 1px solid rgba(20,33,61,0.14); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px -18px rgba(20,33,61,0.4); }
.phe-live-box iframe { position: absolute; top: 0; inset-inline-start: 0; border: 0; transform-origin: 0 0; background: #fff; }
[dir="rtl"] .phe-live-box iframe { transform-origin: 100% 0; }
/* Onizleme modunda (cercevede) cerez bandi ve alt menu gizli */
body.ph-preview-mode #cookieBanner, body.ph-preview-mode #cookieModal { display: none !important; }
/* Giris gerektiren sayfalarin ornek onizlemesi (public/hero-preview.php) */
.hp-skeleton { padding: 32px 0 64px; }
.hp-sk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.hp-sk-row span, .hp-sk-block { display: block; height: 120px; border-radius: 16px; background: linear-gradient(90deg, #eef1f8, #f5f7fd); }
.hp-sk-block { height: 220px; margin-bottom: 16px; }

/* ===== Odeme sayfasi: sinav kapagi (includes/exams/exam-covers.php) ===== */
.pay-exam-cover { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: 14px; object-fit: cover; background: #eef1f8; }
.pay-exam-thumb { flex-shrink: 0; width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: #eef1f8; }
.pay-cmp-exams li.is-owned .pay-exam-thumb { opacity: 0.6; }

/* ===== Footer: sade (includes/layout/footer.php) ===== */
.site-footer { padding: 48px 0 24px; border-top: 1px solid rgba(20,33,61,0.08); background: #fff; color: var(--hm-text, #3a4560); font-size: 14px; }
.sf-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.3fr); gap: 32px; }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--hm-display); font-size: 20px; font-weight: 700; color: var(--hm-ink, #14213d); text-decoration: none; }
.sf-brand p { max-width: 30em; margin: 8px 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--hm-muted, #6b7794); }
.sf-social { display: flex; gap: 8px; }
.sf-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; font-size: 16px; color: var(--hm-ink, #14213d); text-decoration: none; }
.sf-col h2 { margin: 10px 0 12px; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--hm-ink, #14213d); }
.sf-col ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sf-col ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--hm-text, #3a4560); text-decoration: none; overflow-wrap: anywhere; }
.sf-mail { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--hm-ink, #14213d); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.sf-contact address { margin-top: 6px; font-style: normal; font-size: 13px; line-height: 1.6; color: var(--hm-muted, #6b7794); }
.sf-contact address span { font-size: 12px; }
.sf-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 32px; padding: 16px 0; border-top: 1px solid rgba(20,33,61,0.08); border-bottom: 1px solid rgba(20,33,61,0.08); }
.sf-pay-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--hm-ink, #14213d); }
.sf-pay-label i { color: #0e9f6e; }
.sf-pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sf-pay-list li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.1); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--hm-text, #3a4560); white-space: nowrap; }
.sf-pay-list li i { color: #0e9f6e; }
.sf-pay-list .is-visa { color: #1a1f71; font-style: italic; font-weight: 800; letter-spacing: 0.02em; }
.sf-pay-list .is-mc span { position: relative; width: 22px; height: 14px; }
.sf-pay-list .is-mc span::before, .sf-pay-list .is-mc span::after { content: ""; position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; }
.sf-pay-list .is-mc span::before { left: 0; background: #eb001b; }
.sf-pay-list .is-mc span::after { left: 8px; background: #f79e1b; opacity: 0.9; }
.sf-pay-list .is-troy { color: #00a0a8; font-weight: 800; }
.sf-pay-list .is-amex { color: #2e77bc; font-weight: 800; }
.sf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sf-legal a, .sf-legal button { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--hm-muted, #6b7794); text-decoration: none; cursor: pointer; }
.sf-bottom p { margin: 0; font-size: 12.5px; color: var(--hm-muted, #6b7794); }
.sf-credit { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(20,33,61,0.06); font-size: 12px; text-align: center; color: var(--hm-muted, #6b7794); }
.sf-credit a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; color: var(--hm-ink, #14213d); text-decoration: none; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid #1a56db; outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) {
    .sf-col ul a:hover, .sf-legal a:hover, .sf-legal button:hover, .sf-mail:hover, .sf-credit a:hover { color: #1a56db; }
    .sf-social a:hover { border-color: rgba(20,33,61,0.3); }
}
@media (max-width: 1024px) {
    .sf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
}
@media (max-width: 640px) {
    .site-footer { padding: 32px 0 20px; }
    .sf-top { gap: 16px; }
    .sf-brand, .sf-contact { grid-column: 1 / -1; }
    .sf-col h2 { margin-top: 4px; }
    .sf-pay { margin-top: 24px; }
    .sf-pay-list li { height: 30px; padding: 0 8px; font-size: 11.5px; }
    .sf-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Kampanya kapagi: gorunecek kisim (includes/campaigns/campaign-cover.php, --cv-x/-y/-z) ===== */
.cv-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--cv-x, 50%) var(--cv-y, 50%); transform: scale(var(--cv-z, 1)); transform-origin: var(--cv-x, 50%) var(--cv-y, 50%); }
.cmp-card:hover .cmp-cover img.cv-img { transform: scale(calc(var(--cv-z, 1) * 1.03)); }
@media (hover: none) { .cmp-card:hover .cmp-cover img.cv-img { transform: scale(var(--cv-z, 1)); } }

/* ===== Kampanya duzenle: kapak gorunecek kisim + ceviri (assets/js/campaign-cover.js) ===== */
.cc-editor { display: flex; flex-direction: column; gap: 10px; }
.cc-editor[hidden] { display: none; }
.cc-frames { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.55fr); align-items: end; gap: 10px; }
.cc-view { margin: 0; min-width: 0; }
.cc-view figcaption { margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--hm-muted); }
.cc-frame { position: relative; overflow: hidden; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; background: var(--hm-paper); cursor: grab; touch-action: none; user-select: none; }
.cc-frame.is-dragging { cursor: grabbing; }
.cc-frame:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cc-frame img { -webkit-user-drag: none; }
.is-card .cc-frame { aspect-ratio: 2 / 1; }
.is-page .cc-frame { aspect-ratio: 1440 / 380; }
.is-phone .cc-frame { aspect-ratio: 390 / 420; }
.cc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,51,0.55), rgba(15,23,51,0.88)); pointer-events: none; }
.cc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cc-controls label { font-size: 13.5px; font-weight: 600; color: var(--hm-ink); }
.cc-controls output { margin-inline-start: 4px; font-weight: 500; color: var(--hm-muted); }
.cc-controls input[type="range"] { flex: 1 1 160px; min-height: 32px; accent-color: var(--hm-ink); }
.cc-tr { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; padding: 14px; border: 1px solid rgba(20,33,61,0.1); border-radius: 14px; background: #fbfcff; }
.cc-tr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cc-tr-head strong { font-size: 14.5px; color: var(--hm-ink); }
.cc-tr .ap-hint { margin: 0; }
.cc-tr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-bar { margin: 2px 0 0; }
.cc-bar[hidden] { display: none; }
.cc-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cc-langs:empty { display: none; }
.cc-langs a { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--hm-text); text-decoration: none; }
.cc-langs img { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 8px; object-fit: cover; background: var(--hm-paper); }
@media (max-width: 640px) {
    .cc-frames { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); }
    .cc-frames .is-page { grid-column: 1 / -1; order: -1; }
}

/* ===== Kapak cevirisi onizlemesi (assets/js/cover-translate.js; sinav duzenle) ===== */
.ee-tr { margin: 12px 0 0; }
.ct-preview { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px dashed rgba(176,125,0,0.45); border-radius: 12px; background: #fffbef; }
.ct-preview[hidden] { display: none; }
.ct-preview-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: #6b4e00; }

/* ===== Sinav listesi: kapak cevirisi eksik uyarisi (admin/exams.php) ===== */
.ex-cover-note { flex-wrap: wrap; align-items: center; }
.ex-cover-note > span { flex: 1 1 320px; min-width: 0; }
a.ex-cover-pill { text-decoration: none; }
a.ex-cover-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#coverTranslate { scroll-margin-top: 90px; }
.ex-filters.has-cover { grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(0, 1fr)) auto; }
@media (max-width: 1180px) { .ex-filters.has-cover { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ex-filters.has-cover .ex-search { grid-column: 1 / -1; } }
@media (max-width: 900px) { .ex-filters.has-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ex-filters.has-cover { grid-template-columns: minmax(0, 1fr); } }


/* ===== Site analitigi (admin/analytics.php) ===== */
.an .ap-stat small { font-size: 12.5px; color: var(--hm-muted); }
.an-range { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.an-seg-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--hm-text); text-decoration: none; }
.an-seg-link.is-on { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.an-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-custom input[type="date"] { min-height: 40px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 10px; font: inherit; font-size: 14px; color: var(--hm-ink); background: var(--white); }
.an-jump { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.an-jump a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--hm-paper); font-size: 13.5px; font-weight: 600; color: var(--hm-text); text-decoration: none; }
.an-jump a:hover { background: #e8ecf7; color: var(--hm-ink); }
.an [id] { scroll-margin-top: 84px; }

.an-grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.an-grid-2.is-flat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.an-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.an-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--hm-ink); }
.an-h3 i { color: var(--hm-muted); }
.an-break { overflow-wrap: anywhere; }

/* Sutun grafigi */
.an-chart { display: flex; align-items: stretch; gap: 3px; height: 220px; padding-top: 18px; }
.an-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.an-col-bar { position: relative; display: block; height: var(--h); min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--hm-ink); transition: background 0.15s ease; }
.an-col:hover .an-col-bar { background: var(--primary); }
.an-col-bar em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 11px; font-style: normal; font-weight: 700; color: var(--hm-muted); white-space: nowrap; opacity: 0; }
.an-col:hover .an-col-bar em, .an-chart:not(:has(.an-col:nth-child(16))) .an-col-bar em { opacity: 1; }
.an-col-x { height: 14px; font-size: 11px; line-height: 14px; text-align: center; color: var(--hm-muted); white-space: nowrap; overflow: visible; }
.an-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.an-hours span { height: 40px; border-radius: 6px; background: rgba(20,33,61,var(--o)); }
.an-hours-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--hm-muted); font-variant-numeric: tabular-nums; }

/* Yatay cubuk listesi */
.an-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.an-bars li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 10px; border-radius: 10px; isolation: isolate; font-size: 14px; }
.an-bars li::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: var(--w); border-radius: 10px; background: #e9eefb; z-index: -1; }
.an-bar-label { min-width: 0; overflow-wrap: anywhere; color: var(--hm-ink); }
.an-bar-label small { display: block; font-size: 12px; color: var(--hm-muted); }
.an-bars:not(.is-rich) .an-bar-label small { display: inline; }
.an-bar-val { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hm-ink); }
.an-bar-val small { font-weight: 600; color: var(--hm-muted); }

.an-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.an-sort .ap-pill { min-height: 32px; text-decoration: none; }
.an-sort .ap-pill.is-on { background: var(--hm-ink); color: var(--white); }
.an-table td { font-size: 13.5px; }
.an-flags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 110px; }
.an-nowrap { white-space: nowrap; }
.an-meter { display: inline-block; width: 44px; height: 6px; margin-inline-end: 4px; vertical-align: middle; border-radius: 999px; background: linear-gradient(90deg, var(--hm-ink) var(--w), #e3e7f1 var(--w)); }
.an-inline-filter select { min-height: 40px; max-width: 260px; padding: 0 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 10px; font: inherit; font-size: 13.5px; background: var(--white); color: var(--hm-ink); }
.an-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--hm-muted); }

/* Oturum detayi */
.an-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 13.5px; }
.an-meta dt { font-weight: 600; color: var(--hm-muted); }
.an-meta dd { margin: 0; min-width: 0; color: var(--hm-ink); overflow-wrap: anywhere; }
.an-meta dd small { color: var(--hm-muted); }
.an-timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid #e3e7f1; }
.an-tl-page { position: relative; padding: 0 0 18px; padding-inline: 18px 0; }
.an-tl-page::before { content: ''; position: absolute; top: 6px; inset-inline-start: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--hm-ink); box-shadow: 0 0 0 3px var(--white); }
.an-tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.an-tl-head strong { font-size: 15px; color: var(--hm-ink); }
.an-tl-time { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--hm-muted); }
.an-tl-path { margin-top: 2px; font-size: 12px; color: var(--hm-muted); overflow-wrap: anywhere; }
.an-tl-events { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.an-tl-events li { display: grid; grid-template-columns: 62px 118px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--hm-paper); font-size: 13px; }
.an-ev-type { font-weight: 700; color: var(--hm-text); }
.an-ev-label { min-width: 0; overflow-wrap: anywhere; color: var(--hm-ink); }
.an-ev-label small { color: var(--hm-muted); }
.an-tl-events li.is-rage, .an-tl-events li.is-error { background: #fdeeee; }
.an-tl-events li.is-rage .an-ev-type, .an-tl-events li.is-error .an-ev-type { color: #b4232a; }
.an-tl-events li.is-submit { background: #e6f7f0; }

@media (hover: none) {
    .an-col:hover .an-col-bar { background: var(--hm-ink); }
    .an-jump a:hover { background: var(--hm-paper); color: var(--hm-text); }
}
@media (max-width: 1180px) {
    .an-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .an-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .an-chart { height: 180px; }
}
@media (max-width: 640px) {
    .an-grid-3, .an-grid-2.is-flat { grid-template-columns: minmax(0, 1fr); }
    .an-range { align-items: stretch; }
    .an-range .ap-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
    .an-seg-link { padding: 0 6px; font-size: 13.5px; }
    .an-custom { width: 100%; }
    .an-custom label { flex: 1 1 0; }
    .an-custom input[type="date"] { width: 100%; }
    .an-chart { gap: 2px; height: 160px; }
    .an-col-bar em { display: none; }
    .an-hours { gap: 2px; }
    .an-meta { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .an-meta dd { margin-bottom: 8px; }
    .an-tl-events li { grid-template-columns: 1fr; gap: 2px; }
    .an-inline-filter, .an-inline-filter select { width: 100%; max-width: none; }
    .an-flags { justify-content: flex-end; }
    /* Telefon: hucre = solda etiket, sagda deger butun halde */
    .an-table td { display: flow-root; text-align: end; }
    .an-table td::before { float: inline-start; margin-inline-end: 12px; }
    .an-table td strong + br, .an-table td > br { display: none; }
    .an-table td small { margin-inline-start: 4px; }
}

/* ===== Sinav kapak araclari: AI ceviri, diger sinavlara uygula, kayitli kapaklar (admin/exam-edit.php #kapak-araclari) ===== */
.cc-tools { scroll-margin-top: 84px; }
.cc-tools-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cc-tool { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid rgba(20,33,61,0.1); border-radius: 16px; background: #fbfcff; }
.cc-tools-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cc-tool h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15.5px; font-weight: 700; color: var(--hm-ink); }
.cc-tool h3 i { color: var(--hm-gold); }
.cc-tool .ap-hint { margin: 0; }
.cc-tool .ap-note { margin: 0; }
.ca-langs-wrap { margin: 0; padding: 0; border: 0; min-width: 0; }
.ca-langs-wrap legend { margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--hm-ink); }
.ca-lang-tools { display: flex; gap: 6px; margin-bottom: 8px; }
.ca-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 4px; max-height: 190px; overflow-y: auto; padding: 2px; }
.ca-langs label { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px; border-radius: 8px; font-size: 13px; color: var(--hm-text); cursor: pointer; }
.ca-langs label:has(input:checked) { background: #e9eefb; color: var(--hm-ink); }
.ca-langs input { width: 16px; height: 16px; accent-color: var(--hm-ink); flex-shrink: 0; }
.ca-langs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-prompts { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.ca-prompts[hidden], .ca-results[hidden] { display: none; }
.ca-prompt { border: 1px solid rgba(20,33,61,0.1); border-radius: 10px; background: var(--white); }
.ca-prompt summary { min-height: 40px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.ca-prompt textarea { display: block; width: calc(100% - 20px); margin: 0 10px 10px; padding: 8px 10px; border: 1px solid rgba(20,33,61,0.16); border-radius: 8px; font: 12.5px/1.5 ui-monospace, Consolas, monospace; color: var(--hm-ink); resize: vertical; }
.ca-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ca-res { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; background: var(--white); }
.ca-res.is-ok { border-color: #9fd9bf; }
.ca-res.is-error { border-color: #f1c4c6; background: #fff8f8; }
.ca-res.is-busy { border-color: var(--hm-gold); }
.ca-res img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--hm-paper); }
.ca-res-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--hm-paper); font-size: 12.5px; color: var(--hm-muted); }
.ca-res.is-busy .ca-res-ph { background: linear-gradient(90deg, var(--hm-paper) 25%, #eef1f9 50%, var(--hm-paper) 75%); background-size: 200% 100%; animation: caShimmer 1.2s linear infinite; }
@keyframes caShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ca-res-name { font-size: 13px; font-weight: 700; color: var(--hm-ink); }
.ca-res-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cc-apply-all { justify-content: flex-start; width: 100%; white-space: normal; text-align: start; line-height: 1.3; padding-block: 10px; }
.cc-pick summary { min-height: 40px; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--primary); cursor: pointer; }
.cc-pick form { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; }
.cc-pick-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.cc-pick-group legend { margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--hm-muted); }
.cc-pick-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; border-radius: 8px; font-size: 13.5px; color: var(--hm-ink); cursor: pointer; }
.cc-pick-row:has(input:checked) { background: #e9eefb; }
.cc-pick-row.is-same { opacity: 0.7; cursor: default; }
.cc-pick-row input { width: 16px; height: 16px; accent-color: var(--hm-ink); }
.cc-pick-row small { font-size: 12px; color: var(--hm-muted); white-space: nowrap; }
.cc-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; max-height: 420px; overflow-y: auto; }
.cc-lib form { margin: 0; }
.cc-lib-item { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 6px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; background: var(--white); font: inherit; text-align: start; cursor: pointer; }
.cc-lib-item:hover { border-color: var(--hm-ink); }
.cc-lib-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cc-lib-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--hm-paper); }
.cc-lib-title { font-size: 13px; font-weight: 600; color: var(--hm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-lib-item small { font-size: 12px; color: var(--hm-muted); }
@media (hover: none) { .cc-lib-item:hover { border-color: rgba(20,33,61,0.1); } }
@media (max-width: 1100px) {
    .cc-tools-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .cc-tool { padding: 12px; }
    .ca-results { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ca-res.is-busy .ca-res-ph { animation: none; } }
.ca-extra { margin: 0; }
.ca-extra textarea { min-height: 64px; }
.ca-found { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; background: var(--white); }
.ca-found[hidden] { display: none; }
.ca-found-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--hm-ink); }
.ca-found ul { display: flex; flex-direction: column; gap: 4px; margin: 0 0 4px; padding: 0; list-style: none; }
.ca-found li { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.ca-found li.is-tr { background: #e9eefb; }
.ca-found li.is-keep { background: var(--hm-paper); color: var(--hm-muted); }
.ca-found li strong { color: var(--hm-ink); overflow-wrap: anywhere; }
.ca-found li small { font-size: 12px; color: var(--hm-muted); }

/* ===== Sayfa turu (assets/js/tour.js, includes/tours.php) ===== */
.tour-layer { position: fixed; inset: 0; z-index: 1090; cursor: default; }
.tour-layer[hidden], .tour-card[hidden] { display: none; }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(12,20,40,0.62), 0 0 0 3px var(--hm-gold); transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease; pointer-events: none; }
.tour-card { position: fixed; z-index: 1100; width: min(400px, calc(100vw - 24px)); padding: 18px 18px 14px; border-radius: 18px; background: var(--white); color: var(--hm-ink); box-shadow: 0 24px 60px -18px rgba(12,20,40,0.55); opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease, left 0.3s ease, top 0.3s ease; }
.tour-card.is-in { opacity: 1; transform: none; }
.tour-card.is-center { left: 50% !important; top: 50% !important; width: min(420px, calc(100vw - 32px)); transform: translate(-50%, -46%); }
.tour-card.is-center.is-in { transform: translate(-50%, -50%); }
.tour-count { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #a06f00; }
.tour-progress { height: 3px; margin: 0 0 10px; border-radius: 999px; background: linear-gradient(90deg, var(--hm-gold) var(--p, 0%), #eef1f7 var(--p, 0%)); }
.tour-title { margin: 0 32px 6px 0; margin-inline-end: 32px; font-family: var(--hm-display); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--hm-ink); }
.tour-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hm-text); }
.tour-x { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--hm-muted); font-size: 17px; cursor: pointer; }
.tour-x:hover { background: var(--hm-paper); color: var(--hm-ink); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.tour-nav { display: flex; gap: 8px; }
.tour-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--hm-ink); border-radius: 999px; background: var(--hm-ink); color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tour-btn-ghost { background: var(--white); color: var(--hm-ink); border-color: var(--hm-line); }
.tour-btn[hidden] { display: none; }
.tour-link { min-height: 42px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--hm-muted); cursor: pointer; }
.tour-link:hover { color: var(--hm-ink); }
.tour-btn:focus-visible, .tour-link:focus-visible, .tour-x:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 640px) {
    /* Telefon: kart altta panel (hedef alttaysa ustte) */
    .tour-card.is-sheet { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
    .tour-card.is-sheet.is-top { top: calc(76px) !important; bottom: auto; }
    .tour-card.is-center.is-sheet { transform: translateY(6px); }
    .tour-card.is-center.is-sheet.is-in { transform: none; }
    .tour-title { font-size: 16px; }
    .tour-text { font-size: 14px; }
}
@media (hover: none) { .tour-x:hover { background: none; } .tour-link:hover { color: var(--hm-muted); } }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }
@media print { .tour-layer, .tour-card { display: none !important; } }
.admin-tour-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(20,33,61,0.14); border-radius: 50%; background: var(--white); color: var(--hm-ink); font-size: 18px; cursor: pointer; }
.admin-tour-btn:hover { border-color: var(--hm-ink); }
.admin-tour-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (hover: none) { .admin-tour-btn:hover { border-color: rgba(20,33,61,0.14); } }

/* Odeme sayfasi: POS kapali / eksikken kart formu yerine (public/payment.php) */
.pay-unavailable { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #f3d38a; border-radius: 16px; background: #fff8e1; color: #5c4400; }
.pay-unavailable-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: #fdecb8; color: #8a6100; font-size: 18px; }
.pay-unavailable strong { display: block; margin-bottom: 4px; font-size: 16px; color: var(--hm-ink); }
.pay-unavailable p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; }
.pay-unavailable-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--hm-ink); color: var(--white); font-weight: 600; font-size: 14px; text-decoration: none; }
.pay-unavailable-link:hover { background: #22325a; color: var(--white); }

/* Admin > Veritabani yedegi (admin/db-backup.php) */
.dbb-stats .ap-stat dd .ap-pill { font-size: 13px; vertical-align: middle; }
.dbb-stats .ap-stat .ap-hint { min-height: 1.5em; }
.dbb-error { margin: 0; }
.dbb-progress .ap-card-head h2 i { color: var(--hm-muted); margin-inline-end: 6px; }
.dbb-bar { height: 10px; margin: 4px 0 12px; overflow: hidden; border-radius: 999px; background: var(--hm-paper); }
.dbb-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #0e9f6e; transition: width .4s ease; }
.dbb-progress .ap-help { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dbb-files .ap-row-actions .ap-btn.is-icon i { color: #1a73e8; }
.dbb-log .ap-row { padding: 10px 0; }
.dbb-log .ap-row-icon { width: 34px; height: 34px; font-size: 14px; }
.dbb-email { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; overflow-wrap: anywhere; }
.dbb-email i { color: #1a73e8; font-size: 18px; }
.dbb-toggle { margin: 0 0 12px; }
.dbb-copy { display: flex; gap: 8px; min-width: 0; }
.dbb-copy input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px !important; }
.dbb-cron .dbb-copy input { padding: 0 12px; min-height: 38px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--hm-paper); color: var(--hm-ink); }
.dbb-cron .ap-hint { display: block; margin-top: 8px; }
.dbb-key-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
details.ap-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
details.ap-card > summary::-webkit-details-marker { display: none; }
details.ap-card > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free", sans-serif; font-weight: 900; font-size: 13px; color: var(--hm-muted); transition: transform .2s; }
details.ap-card[open] > summary::after { transform: rotate(180deg); }
details.ap-card > summary h2 { margin: 0; font-size: 17px; }
details.ap-card[open] > summary { margin-bottom: 12px; }
.dbb-steps { margin: 0 0 14px; padding-inline-start: 22px; font-size: 14.5px; line-height: 1.6; color: var(--hm-text); }
.dbb-steps > li { margin-bottom: 12px; padding-inline-start: 4px; }
.dbb-steps > li::marker { font-weight: 800; color: var(--hm-ink); }
.dbb-steps ul { margin: 6px 0 0; padding-inline-start: 18px; }
.dbb-steps ul li { margin-bottom: 4px; }
.dbb-steps code, .dbb-guide .ap-note code { padding: 1px 6px; border-radius: 6px; background: var(--hm-paper); font-size: 13px; overflow-wrap: anywhere; }
.dbb-uri { display: inline-block; margin-top: 4px; }
.dbb-restore .ap-note { margin: 0; }
@media (max-width: 640px) {
    .dbb-files .ap-row { flex-wrap: wrap; }
    .dbb-files .ap-row-actions { width: 100%; padding-inline-start: 56px; }
}

/* ===== Mentor sayfalari: mentor paneli, ogrenci detayi, mentor bilgilerim, Mentorum (public/mentor*.php, my-mentor.php) ===== */
.mt-hero-inner { display: flex; align-items: center; gap: 18px; }
.mt-hero-avatar { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: var(--white); border: 1px solid rgba(20,33,61,0.1); color: var(--hm-muted); font-size: 28px; }
.mt-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mt-hero-text { flex: 1; min-width: 0; }
.mt-hero-text h1 { margin-bottom: 4px; }
.mt-hero-text p { font-size: 15.5px; }
.mt-hero-edit { flex-shrink: 0; }
.mt-body { padding: 28px 0 64px; background: var(--white); }
.mt-narrow { max-width: 760px; display: grid; gap: 16px; }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.mt-main, .mt-side { display: grid; gap: 16px; min-width: 0; }
/* Kartlar sutuna sigar: davet kutusundaki input'un dogal genisligi yan sutunu 300/340px'ten tasiriyordu (1024/1180'de yatay kaydirma) */
.mt-main > *, .mt-side > * { min-width: 0; }

.mt-card { padding: 20px; background: var(--white); border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.mt-card > h2, .mt-card-head h2 { display: flex; align-items: center; gap: 8px; font-family: var(--hm-display); font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.mt-card > h2 i, .mt-card-head h2 i { color: var(--primary); }
.mt-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mt-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--hm-paper); font-size: 13px; color: var(--hm-text); }
.mt-muted { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: var(--hm-muted); }
.mt-empty { display: grid; justify-items: center; gap: 10px; padding: 28px 12px; text-align: center; color: var(--hm-muted); font-size: 15px; }
.mt-empty i { font-size: 30px; color: var(--gray-400); }

.mt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-bottom: 20px; }
.mt-stat { padding: 16px; border-radius: 16px; background: var(--hm-paper); }
.mt-stat dt { font-size: 13.5px; color: var(--hm-muted); }
.mt-stat dd { margin-top: 4px; font-family: var(--hm-display); font-size: 24px; font-weight: 700; color: var(--hm-ink); }
.mt-stat.is-warn { background: #fff4d1; }
.mt-stat.is-ok dd { color: #0a7250; }
.mt-stat.is-bad dd { color: #b4232a; }

.mt-status { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--hm-paper); }
.mt-status > i { flex-shrink: 0; font-size: 26px; margin-top: 2px; color: var(--primary); }
.mt-status h2 { font-family: var(--hm-display); font-size: 18px; font-weight: 700; color: var(--hm-ink); margin-bottom: 4px; }
.mt-status p { font-size: 15px; line-height: 1.55; color: var(--hm-text); }
.mt-status .mt-btn { margin-top: 12px; }
.mt-status.is-pending { background: #fff8e1; }
.mt-status.is-pending > i { color: #b07d00; }
.mt-status.is-rejected, .mt-status.is-suspended { background: #fdecea; }
.mt-status.is-rejected > i, .mt-status.is-suspended > i { color: #b4232a; }

.mt-list { list-style: none; margin: 0; padding: 0; }
.mt-list > li + li { border-top: 1px solid rgba(20,33,61,0.07); }
.mt-person { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: inherit; text-decoration: none; }
.mt-person.is-link { border-radius: 12px; }
.mt-person.is-link:hover { background: var(--hm-paper); color: inherit; }
.mt-avatar { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--hm-paper); color: var(--hm-muted); font-size: 17px; }
.mt-avatar.is-lg { width: 56px; height: 56px; font-size: 22px; }
.mt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mt-person-main { flex: 1; display: grid; gap: 3px; min-width: 0; }
.mt-person-main strong { font-size: 15.5px; color: var(--hm-ink); overflow-wrap: anywhere; }
.mt-person-main small { font-size: 13.5px; line-height: 1.45; color: var(--hm-muted); overflow-wrap: anywhere; }
.mt-person-main .mt-branch { color: var(--hm-text); font-weight: 600; }
.mt-bio { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--hm-text); }
.mt-person-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.mt-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--hm-paper); font-size: 13px; font-weight: 600; color: var(--hm-text); white-space: nowrap; }
.mt-pill.is-score { background: var(--primary-light); color: var(--primary-dark); }
.mt-go { color: var(--gray-400); }
[dir="rtl"] .mt-go, [dir="rtl"] .mt-link-text i { transform: scaleX(-1); }
.mt-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.mt-person.is-mentor { align-items: flex-start; }
.mt-person.is-current { background: var(--hm-paper); border-radius: 14px; padding-inline: 12px; }

.mt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease; }
.mt-btn-primary { background: var(--primary); color: var(--white); }
.mt-btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.mt-btn-outline { border-color: rgba(20,33,61,0.18); background: var(--white); color: var(--hm-ink); }
.mt-btn-outline:hover { background: var(--hm-paper); color: var(--hm-ink); }
.mt-btn-danger { border-color: #f1c4c0; background: var(--white); color: #b4232a; }
.mt-btn-danger:hover { background: #fdecea; color: #b4232a; }
.mt-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Mentor: ogrenci ekle (includes/mentors/mentor-add-view.php) */
.ms-add { margin-bottom: 16px; }
.ms-rows { display: grid; gap: 8px; }
.ms-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) 44px; gap: 8px; align-items: center; }
.ms-row-head { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hm-muted); }
.ms-row input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); font: inherit; font-size: 15px; color: var(--hm-ink); }
.ms-row input:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); }
.ms-row input[readonly] { background: var(--hm-paper); color: var(--hm-text); }
.ms-remove { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(20,33,61,0.12); border-radius: 12px; background: var(--white); color: var(--hm-muted); cursor: pointer; }
.ms-row-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: -2px 0 4px; font-size: 13.5px; font-weight: 600; }
.ms-row-status.is-ok { color: #0a7250; }
.ms-row-status.is-warn { color: #8a5a00; }
.ms-row-status.is-bad { color: #a4262c; }
.ms-row.is-bad input { border-color: #e7a3a6; }
.ms-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 12px 0; }
.ms-paste { flex: 1 1 260px; }
.ms-paste summary { list-style: none; cursor: pointer; width: fit-content; }
.ms-paste summary::-webkit-details-marker { display: none; }
.ms-paste-body { display: grid; gap: 8px; margin-top: 10px; }
.ms-paste-body .mt-muted { margin: 0; }
.ms-paste textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; font: inherit; font-size: 14px; resize: vertical; }
.ms-paste-body .mt-btn { width: fit-content; }
.ms-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(20,33,61,0.07); }
.ms-summary { flex: 1 1 200px; margin: 0; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); }
.ms-add-link { margin-inline-start: auto; }
.ms-resend { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.ms-resend.is-ok { background: #e3f6ee; color: #0a7250; }
.ms-resend.is-bad { background: #fdecec; color: #a4262c; }
@media (hover: hover) {
    .ms-remove:hover { border-color: rgba(20,33,61,0.3); color: var(--hm-ink); }
}
@media (max-width: 640px) {
    .ms-row-head { display: none; }
    .ms-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding: 10px; border: 1px solid rgba(20,33,61,0.08); border-radius: 14px; }
    .ms-row input[data-f="email"] { grid-column: 1 / 3; grid-row: 2; }
    .ms-remove { grid-column: 3; grid-row: 1 / 3; height: 100%; }
    .ms-foot .mt-btn { width: 100%; justify-content: center; }
    .ms-add-link { width: 100%; justify-content: center; margin-inline-start: 0; }
}
.mt-search { position: relative; flex: 0 1 260px; min-width: 0; }
.mt-search i { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--gray-500); font-size: 14px; }
.mt-search input { width: 100%; height: 44px; padding: 0 14px; padding-inline-start: 38px; border: 1px solid var(--gray-300); border-radius: 999px; font: inherit; font-size: 16px; }
.mt-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }

.mt-invite p { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: var(--hm-muted); }
.mt-invite-row { display: flex; gap: 8px; }
.mt-invite-row input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--gray-50); font: inherit; font-size: 14px; color: var(--hm-text); }

.mt-result { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-radius: 12px; color: inherit; text-decoration: none; }
.mt-result:hover { background: var(--hm-paper); color: inherit; }
.mt-score { flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-width: 68px; height: 40px; padding: 0 10px; border-radius: 12px; font-family: var(--hm-display); font-size: 15px; font-weight: 700; }
.mt-score.is-ok { background: #e6f7f0; color: #0a7250; }
.mt-score.is-bad { background: #fdecea; color: #b4232a; }
.mt-dyb { display: flex; gap: 10px; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.mt-dyb .is-ok { color: #0a7250; }
.mt-dyb .is-bad { color: #b4232a; }
.mt-link-text { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--primary); }

.mt-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mt-topics li { display: grid; gap: 5px; }
.mt-topic-name { font-size: 14.5px; font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.mt-topic-bar { display: block; height: 8px; border-radius: 999px; background: var(--hm-paper); overflow: hidden; }
.mt-topic-bar span { display: block; height: 100%; border-radius: inherit; background: #e0605a; }
.mt-topics small { font-size: 13px; color: var(--hm-muted); }
.mt-end .mt-btn { width: 100%; }

.mt-current { display: grid; gap: 12px; }
.mt-current .mt-person { padding: 0; align-items: flex-start; }
.mt-current form .mt-btn { justify-self: start; }
.mt-state { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.mt-state.is-warn { background: #fff8e1; color: #6b4f00; }
.mt-state.is-ok { background: #e6f7f0; color: #0a7250; }
.mt-status.is-none > i { color: var(--hm-muted); }

.mt-form { display: grid; gap: 18px; }
.mt-form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Sinav sonucu: mentor ogrencisinin sonucuna bakiyor */
.rs-mentor-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 10px 0; padding: 5px 14px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 14px; font-weight: 700; }

@media (hover: none) {
    .mt-person.is-link:hover, .mt-result:hover { background: none; }
}
@media (max-width: 1100px) {
    .mt-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
    .mt-grid { grid-template-columns: 1fr; }
    .mt-side { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
}
@media (max-width: 640px) {
    .mt-hero-inner { flex-wrap: wrap; gap: 14px; }
    .mt-hero-avatar { width: 56px; height: 56px; font-size: 22px; }
    .mt-hero-edit { width: 100%; }
    .mt-body { padding-top: 18px; }
    .mt-card { padding: 16px; border-radius: 16px; }
    .mt-stat dd { font-size: 20px; }
    .mt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mt-person { flex-wrap: wrap; }
    .mt-person-stats { width: 100%; justify-content: flex-start; padding-inline-start: 58px; }
    .mt-person .mt-go { display: none; }
    .mt-person > .mt-actions { width: 100%; padding-inline-start: 58px; }
    .mt-person.is-mentor > .mt-actions { padding-inline-start: 70px; }
    .mt-result { flex-wrap: wrap; }
    .mt-result .mt-person-main { flex-basis: calc(100% - 90px); }
    .mt-dyb { padding-inline-start: 82px; }
    .mt-link-text { margin-inline-start: auto; }
    .mt-search { flex-basis: 100%; }
    .mt-invite-row { flex-direction: column; }
    .mt-invite-row input { flex: none; height: 44px; }
    .mt-form-actions .mt-btn { flex: 1; }
}

/* ===== Admin: Mentorler (admin/mentors.php), yeni kullanici (admin/user-add.php), ogrenci detayi mentor sekmesi ===== */
.ap-pill.is-info { background: #e8f0fe; color: #1557b0; }
.mn-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mn-search { flex: 0 1 320px; }
.mn-search input { width: 100%; min-height: 44px; padding: 0 14px; padding-inline-start: 38px; border: 1px solid rgba(20,33,61,0.16); border-radius: 999px; font: inherit; font-size: 15px; }
.mn-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.mn-person { flex: 1; display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 4px 8px; margin: 0 -8px; border-radius: 14px; color: inherit; text-decoration: none; }
.mn-person:hover { background: var(--hm-paper); color: inherit; }
.mn-person:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mn-info { font-size: 13.5px; font-weight: 600; color: var(--hm-text); overflow-wrap: anywhere; }
.mn-bio { font-size: 13.5px; line-height: 1.5; color: var(--hm-muted); overflow-wrap: anywhere; }
.mn-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; }
.ua-form { max-width: 880px; }
.ua-label { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.ua-pw { display: flex; gap: 8px; }
.ua-pw input { flex: 1; }
.ud-make-mentor { margin-top: 4px; }
.ud-make-mentor > summary { list-style: none; }
.ud-make-mentor > summary::-webkit-details-marker { display: none; }
.ud-make-mentor .ud-block-body { position: static; width: auto; margin-top: 14px; padding: 0; border: 0; box-shadow: none; }
.ud-make-mentor .ud-block-body .ap-fields { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.ud-assign { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(20,33,61,0.07); }
@media (hover: none) { .mn-person:hover { background: none; } }
@media (max-width: 768px) {
    .mn-item { flex-direction: column; align-items: stretch; }
    .mn-actions { justify-content: flex-start; padding-inline-start: 58px; }
    .mn-search { flex-basis: 100%; }
}
@media (max-width: 640px) {
    .ua-pw { flex-direction: column; }
}

/* ===== Mentor kaydi: ayri kayit sayfasi + adim adim profil (public/mentor-register.php, mentor-onboarding.php) ===== */
.auth-alt-link { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.auth-alt-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mo-kicker { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); text-align: center; }
.mo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: none; }
.mo-steps li { position: relative; min-width: 0; }
.mo-steps li > a, .mo-steps li > .mo-dot { text-decoration: none; }
.mo-steps li > a, .mo-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gray-600); }
.mo-steps li:not(:last-child)::after { content: ''; position: absolute; top: 17px; inset-inline-start: calc(50% + 22px); inset-inline-end: calc(-50% + 22px); height: 2px; border-radius: 2px; background: var(--gray-200); }
.mo-steps li.is-done:not(:last-child)::after { background: var(--primary); }
.mo-dot { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gray-300); background: var(--white); font-size: 14px; font-weight: 700; color: var(--gray-600); }
.mo-steps li.is-done .mo-dot { border-color: var(--primary); background: var(--primary); color: var(--white); }
.mo-steps li.is-current .mo-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.mo-step-label { max-width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.mo-steps li.is-current .mo-step-label { color: var(--gray-900); }
.mo-steps li > a:hover .mo-dot { border-color: var(--primary); }
.mo-steps li > a:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.mo-head { margin-bottom: 22px; }
.mo-count { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--gray-600); }
.mo-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.mo-actions .auth-min-btn { flex: 1; gap: 8px; margin-top: 0; }
.mo-back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--gray-300); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--gray-800); text-decoration: none; }
.mo-back:hover { background: var(--gray-50); color: var(--gray-900); }
[dir="rtl"] .mo-back i, [dir="rtl"] .mo-arrow { transform: scaleX(-1); }
.mf-photo.is-large { flex-direction: column; text-align: center; }
.mf-photo.is-large .mf-photo-preview { width: 132px; height: 132px; font-size: 48px; }
.mf-photo.is-large .mf-photo-side { justify-items: center; }
.mf-photo.is-large .mf-photo-btn { justify-self: center; }
@media (hover: none) { .mo-back:hover { background: none; } }
@media (max-width: 640px) {
    .mo-step-label { display: none; }
    .mo-steps li.is-current .mo-step-label { display: none; }
    .mo-steps { margin-bottom: 18px; }
}

/* ===== Mentor sayfalari v2: sekmeler, hatali sorular, mesajlasma, davet, telefon alani ===== */
.mt-more { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
[dir="rtl"] .mt-more i { transform: scaleX(-1); }
.mt-links { display: grid; padding: 8px; }
.mt-links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--hm-ink); text-decoration: none; }
.mt-links a i { width: 20px; text-align: center; color: var(--primary); }
.mt-links a .mt-count { margin-inline-start: auto; }
.mt-links a:hover { background: var(--hm-paper); color: var(--hm-ink); }
.mt-invite-label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--hm-muted); }
.mt-invite-row + .mt-invite-label { margin-top: 14px; }
.mt-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px !important; font-weight: 700; letter-spacing: 0.12em; color: var(--hm-ink) !important; }
.mt-pill.is-warn { background: #fff4d1; color: #6b4f00; }

.mt-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.mt-tabs::-webkit-scrollbar { display: none; }
.mt-tab { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20,33,61,0.12); border-radius: 999px; background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--hm-text); text-decoration: none; white-space: nowrap; }
.mt-tab.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: var(--white); }
.mt-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mt-end { margin-top: 16px; }
.mt-end .mt-btn { width: auto; }

.mt-wrong { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mt-wrong-item { padding: 16px; border: 1px solid rgba(20,33,61,0.08); border-radius: 16px; background: var(--white); }
.mt-wrong-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: 13.5px; color: var(--hm-muted); }
.mt-wrong-meta a { font-weight: 700; color: var(--primary); text-decoration: none; }
.mt-wrong-text { font-size: 15.5px; line-height: 1.6; color: var(--hm-ink); overflow-wrap: anywhere; }
.mt-wrong-text mjx-container { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.mt-wrong-fig { margin: 10px 0 0; }
.mt-wrong-fig img { display: block; max-width: 100%; height: auto; max-height: 360px; border-radius: 10px; }
.mt-wrong-answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mt-ans { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; }
.mt-ans.is-bad { background: #fdecea; color: #b4232a; }
.mt-ans.is-ok { background: #e6f7f0; color: #0a7250; }

/* Mesajlasma: mentor (liste + konusma) ve ogrenci (Mentorum) ortak */
.mm { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.mm-list { padding: 8px; max-height: 70vh; overflow-y: auto; }
.mm-conv { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.mm-conv:hover { background: var(--hm-paper); color: inherit; }
.mm-conv.is-active { background: var(--primary-light); }
.mm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; font-size: 12px; color: var(--hm-muted); }
.mm-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--white); font-size: 12px; font-weight: 700; }
.mm-thread { padding: 0; overflow: hidden; }
.mm-thread > .mt-empty { padding: 48px 16px; }
.mm-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(20,33,61,0.08); }
.mm-name { font-size: 16px; font-weight: 700; color: var(--hm-ink); text-decoration: none; }
.mm-back { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-start: -8px; border-radius: 50%; color: var(--hm-ink); }
[dir="rtl"] .mm-back i { transform: scaleX(-1); }
.mm-thread .mc { padding: 0 16px 16px; }

.mc { display: grid; gap: 12px; }
.mc-thread { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; min-height: 200px; padding: 16px 2px 4px; overflow-y: auto; }
.mc-empty { margin: auto; display: grid; justify-items: center; gap: 8px; color: var(--hm-muted); font-size: 14.5px; text-align: center; }
.mc-empty i { font-size: 26px; color: var(--gray-400); }
.mc-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.mc-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.mc-avatar { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: var(--hm-paper); color: var(--hm-muted); font-size: 12px; }
.mc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mc-bubble { min-width: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--hm-paper); color: var(--hm-ink); }
.mc-msg.is-mine .mc-bubble { border-radius: 16px 16px 4px 16px; background: var(--primary); color: var(--white); }
.mc-author { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: var(--hm-text); }
.mc-bubble p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.mc-bubble time { display: block; margin-top: 4px; font-size: 11.5px; opacity: 0.75; text-align: end; }
.mc-form { display: flex; align-items: flex-end; gap: 8px; }
.mc-form textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 14px; font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.mc-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.mc-send { flex-shrink: 0; min-height: 48px; }

/* Mentorum: davet kodu */
.mt-code-form { display: flex; gap: 8px; }
.mt-code-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: 12px; font: inherit; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.mt-code-form input::placeholder { text-transform: none; letter-spacing: 0; }
.mt-code-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }

/* Davet sayfasi (mentor-invite.php) + kayitta secili mentor */
.mi-card { text-align: center; }
.mi-mentor { display: grid; justify-items: center; gap: 6px; margin-bottom: 22px; }
.mi-avatar { display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; overflow: hidden; margin-bottom: 8px; border-radius: 50%; background: var(--gray-100); color: var(--gray-500); font-size: 40px; }
.mi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mi-mentor h1 { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.mi-branch { font-size: 15px; font-weight: 600; color: var(--gray-800); }
.mi-meta { font-size: 14px; color: var(--gray-600); }
.mi-bio { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--gray-700); }
.mi-note { margin: 12px 0; font-size: 14px; line-height: 1.5; color: var(--gray-700); }
.mi-register { width: 100%; margin-top: 10px; }
.mi-card form + .mi-note { margin-bottom: 0; }
.reg-mentor { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 14px; border-radius: 12px; background: var(--primary-light); }
.reg-mentor > span:last-child { display: grid; gap: 1px; min-width: 0; }
.reg-mentor small { font-size: 12.5px; color: var(--gray-700); }
.reg-mentor strong { font-size: 15px; color: var(--gray-900); }

/* Telefon alani (includes/core/phone-field.php) kayit/mentor ve admin formlarinda */
.auth-field .phone-group .iti, .ap-field .phone-group .iti { display: block; width: 100%; }
.phone-group .field-error { display: block; margin-top: 4px; font-size: 13px; color: #b4232a; }
.phone-group .field-error[hidden] { display: none; }

@media (hover: none) {
    .mt-links a:hover, .mm-conv:hover { background: none; }
    .mm-conv.is-active:hover { background: var(--primary-light); }
}
@media (max-width: 900px) {
    .mm { grid-template-columns: 1fr; }
    .mm.has-thread .mm-list { display: none; }
    .mm:not(.has-thread) .mm-thread { display: none; }
    .mm-back { display: inline-flex; }
    .mm-list { max-height: none; }
}
@media (max-width: 640px) {
    .mc-msg { max-width: 92%; }
    .mc-send span { display: none; }
    .mc-send { width: 48px; padding: 0; }
    .mt-code-form { flex-direction: column; }
    .mt-code-form input { flex: none; }
    .mt-wrong-item { padding: 14px; }
}

/* ===== Mentor sohbeti v3: anlik gonderim, gorsel ekleme, ogrenci Mesajlar sayfasi (assets/js/mentor-chat.js) ===== */
.mc-form { display: grid; gap: 8px; }
.mc-row { display: flex; align-items: flex-end; gap: 8px; }
.mc-row textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 14px; font: inherit; font-size: 16px; line-height: 1.4; resize: none; overflow-y: auto; }
.mc-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.mc-attach { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--gray-300); border-radius: 14px; background: var(--white); color: var(--hm-text); font-size: 18px; cursor: pointer; }
.mc-attach:hover { background: var(--hm-paper); color: var(--primary); }
.mc-attach:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.mc-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mc-preview { position: relative; justify-self: start; }
.mc-preview img { display: block; max-width: 160px; max-height: 120px; border-radius: 12px; border: 1px solid var(--gray-200); object-fit: cover; }
.mc-preview-remove { position: absolute; top: -8px; inset-inline-end: -8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--hm-ink); color: var(--white); font-size: 13px; cursor: pointer; }
.mc-img { display: block; margin: -2px -4px 6px; }
.mc-img { max-width: 280px; }
.mc-img img { display: block; width: 280px; max-width: 100%; height: auto; max-height: 320px; border-radius: 12px; object-fit: cover; background: rgba(0,0,0,0.04); }
.mc-bubble p + time, .mc-img + time { margin-top: 4px; }
.mc-read { margin-inline-start: 6px; }
.mc-read[hidden] { display: none; }
.mc-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #b4232a; font-size: 14px; }
.mc-error[hidden], .mc-empty[hidden], .mc-preview[hidden] { display: none; }
.mc-send[disabled] { opacity: 0.6; cursor: progress; }
.mm-head .mt-person-main { flex: 1; }
.mm-head .mt-more { flex-shrink: 0; }
.mt-chat-link { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.mt-chat-link:hover { border-color: rgba(26,115,232,0.35); color: inherit; }
.mt-chat-link-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-light); color: var(--primary); font-size: 20px; }
@media (hover: none) { .mc-attach:hover { background: var(--white); color: var(--hm-text); } }
@media (max-width: 640px) {
    .mm-head .mt-more { display: none; }
    .mc-thread { max-height: calc(100vh - 330px); min-height: 260px; }
}

/* ===== Mentor sayfa turu dugmesi (ust serit "?"; tur motoru assets/js/tour.js) ===== */
.header-tour { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; margin-inline-start: 8px; border: 1px solid rgba(20,33,61,0.12); border-radius: 50%; background: var(--white); color: var(--hm-text); font-size: 18px; cursor: pointer; }
.header-tour:hover { color: var(--primary); border-color: rgba(26,115,232,0.35); }
.header-tour:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (hover: none) { .header-tour:hover { color: var(--hm-text); border-color: rgba(20,33,61,0.12); } }
@media (max-width: 1100px) {
    .header-tour { width: 44px; height: 44px; margin-inline-start: auto; }
    .header-tour ~ .header-account { margin-inline-start: 4px; }
}
@media print { .header-tour { display: none !important; } }

/* ===== Olimpiyat basvurulari: bilgi sayfasi (public/olympiad-event.php), liste, mentor kaydi, admin ===== */
.oe-preview-bar { padding: 10px 16px; background: #fff4d1; color: #6b4f00; font-size: 14px; font-weight: 600; text-align: center; }
.oe-reg-state { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.oe-reg-state.is-open { background: #e6f7f0; color: #0a7250; }
.oe-reg-state.is-soon { background: #fff4d1; color: #6b4f00; }
.oe-reg-state.is-closed { background: #f1f2f5; color: var(--hm-muted); }
.oe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.oe-card { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--white); color: inherit; text-decoration: none; box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.oe-card:hover { border-color: rgba(26,115,232,0.35); color: inherit; }
.oe-card .oe-reg-state { justify-self: start; }
.oe-card h2 { margin: 0; font-family: var(--hm-display); font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--hm-ink); }
.oe-card-sub { margin: 0; font-weight: 700; color: var(--primary-dark); }
.oe-card-sum { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hm-text); }
.oe-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--hm-muted); }
.oe-card-go { font-size: 14.5px; font-weight: 700; color: var(--primary); }
[dir="rtl"] .oe-card-go i { transform: scaleX(-1); }
.olympiad-dropdown .olympiad-dropdown-reg { font-weight: 700; border-bottom: 1px solid var(--gray-200); }
/* Mentor paneli karti + ogrenci secimi */
.oe-panel-card h2 { margin-bottom: 8px; }
.oe-panel-item { display: grid; gap: 3px; padding: 12px; margin: 0 -8px; border-radius: 12px; color: inherit; text-decoration: none; }
.oe-panel-item:hover { background: var(--hm-paper); color: inherit; }
.oe-panel-item strong { font-size: 15px; color: var(--hm-ink); }
.oe-panel-item small { font-size: 13px; color: var(--hm-muted); }
.oe-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--hm-ink); border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--hm-ink); cursor: pointer; }
.oe-all:has(input:checked) { background: var(--hm-ink); color: var(--white); }
.oe-all-n { font-weight: 500; opacity: 0.75; }
/* Ogrencinin sinav sekli secimi (mentor-olympiad.php) */
.oe-modes-bar { display: grid; gap: 8px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--hm-paper); }
.oe-modes-bar .mt-muted { margin: 0; }
.oe-modes-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.oe-modes-all .mt-btn { min-height: 40px; padding: 0 14px; }
/* Ogrenci satiri: masaustunde secim satirin saginda, dar ekranda altinda */
.oe-pick-list > li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.oe-pick-list > li > .oe-pick-row { flex: 1 1 300px; min-width: 0; }
/* Kayitli ogrenci ayrintilari (kaydeden, sinav takvimi, durum) */
.oe-reg-more { flex: 1 1 100%; margin: 0 0 12px; padding-inline-start: 36px; }
.oe-reg-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: #2563eb; }
.oe-reg-more > summary::-webkit-details-marker { display: none; }
.oe-reg-more > summary i { font-size: 11px; transition: transform .2s; }
.oe-reg-more[open] > summary i { transform: rotate(180deg); }
.oe-reg-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px 16px; margin: 6px 0 10px; }
.oe-reg-info dt { font-size: 12px; color: #64748b; }
.oe-reg-info dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.oe-reg-sub { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; }
.oe-reg-exams { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.oe-reg-exams > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; }
.oe-reg-exam { display: flex; flex-direction: column; min-width: 0; }
.oe-reg-exam small { color: #64748b; }
.oe-reg-pills { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) { .oe-reg-more { padding-inline-start: 0; } }
.oe-mode-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 0 auto; padding: 6px 0; }
.oe-mode-label { font-size: 13px; font-weight: 600; color: var(--hm-muted); }
.oe-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hm-paper); border: 1px solid rgba(20,33,61,0.1); }
.oe-seg-opt { position: relative; cursor: pointer; }
.oe-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.oe-seg-opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--hm-text); }
.oe-seg-opt input:checked + span { background: var(--hm-ink); color: var(--white); }
.oe-seg-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.oe-total-sum { min-width: 0; }
.oe-total-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.oed-apply-mode { display: grid; gap: 6px; margin: 0 0 10px; border: 0; padding: 0; }
.oed-apply-mode legend { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--hm-ink); }
@media (max-width: 640px) {
    .oe-mode-pick { width: 100%; margin: 0; padding: 0 0 12px 36px; }
    .oe-mode-pick .oe-mode-label { display: none; }
    .oe-seg { width: 100%; }
    .oe-seg-opt { flex: 1; }
    .oe-seg-opt span { justify-content: center; width: 100%; }
    .oe-total-actions { width: 100%; }
    .oe-total-actions .mt-btn { flex: 1 1 100%; justify-content: center; }
}
.oe-all input, .oe-pick-row input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--primary); }
.oe-pick-row { cursor: pointer; }
.oe-pick-row.is-disabled { cursor: default; }
.oe-pick-row.is-disabled .mt-avatar, .oe-pick-row.is-disabled .mt-person-main { opacity: 0.7; }
.mt-pill.is-ok-pill { background: #e6f7f0; color: #0a7250; }
.mt-pill.is-bad-pill { background: #fdecea; color: #b4232a; }
.oe-total { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px -20px -20px; padding: 14px 20px; border-top: 1px solid rgba(20,33,61,0.08); border-radius: 0 0 20px 20px; background: rgba(255,255,255,0.96); font-size: 15px; color: var(--hm-text); }
.oe-total strong { font-family: var(--hm-display); font-size: 20px; color: var(--hm-ink); }
.oe-total .mt-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.oe-history { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.oe-history li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(20,33,61,0.07); font-size: 14px; color: var(--hm-text); }
.oe-history small { color: var(--hm-muted); }
/* Admin */
.oe-create { display: flex; flex-wrap: wrap; gap: 8px; }
.oe-create input { flex: 1; min-width: min(300px, 100%); min-height: 44px; padding: 0 14px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; font: inherit; font-size: 15px; }
.oe-rows { display: grid; gap: 14px; margin-bottom: 14px; }
.oe-row { padding: 16px; border: 1px solid rgba(20,33,61,0.1); border-radius: 16px; background: var(--hm-paper); }
.oe-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.oe-save { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border: 1px solid rgba(20,33,61,0.08); border-radius: 16px; background: rgba(255,255,255,0.97); box-shadow: 0 -8px 24px -18px rgba(20,33,61,0.4); }
.oe-save[hidden] { display: none; }
@media (hover: none) { .oe-card:hover { border-color: rgba(20,33,61,0.08); } .oe-panel-item:hover { background: none; } }
@media (max-width: 640px) {
    .oe-total { margin: 12px -16px -16px; padding: 12px 16px; border-radius: 0 0 16px 16px; }
    .oe-total .mt-btn { width: 100%; }
}
.ap-field input[type="datetime-local"] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(20,33,61,0.16); border-radius: 12px; background: var(--white); font: inherit; font-size: 15px; color: var(--hm-ink); }

/* ===== Olimpiyat bilgi sayfasi (public/olympiad-event.php): sitedeki diger sayfalarla ayni dil (page-hero + beyaz kartlar) ===== */
.oed-kicker { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.oed-hero h1 { overflow-wrap: anywhere; }
.oed-sub { margin-bottom: 8px; font-size: 17.5px !important; font-weight: 700; color: var(--hm-ink) !important; }
.oed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.oed-main { display: grid; gap: 16px; min-width: 0; grid-column: 1; grid-row: 1; }
.oed-side { position: sticky; top: 96px; grid-column: 2; grid-row: 1; }
.oed-reg { display: grid; gap: 14px; }
.oed-reg .mt-pill { justify-self: start; }
.oed-reg .mt-btn { width: 100%; }
.oed-fee { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.oed-fee strong { font-family: var(--hm-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--hm-ink); }
.oed-fee span { font-size: 15px; color: var(--hm-muted); }
.oed-reg-facts { display: grid; gap: 0; margin: 0; }
.oed-reg-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(20,33,61,0.07); font-size: 14.5px; }
.oed-reg-facts dt { color: var(--hm-muted); }
.oed-reg-facts dd { margin: 0; font-weight: 700; color: var(--hm-ink); text-align: end; }
.oed-note { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--hm-text); }
.oed-note.is-ok { color: #0a7250; font-weight: 600; }
/* Olimpiyat sinav takvimi (bilgi sayfasi yan kolonu) */
.ox-schedule { display: grid; gap: 12px; margin-top: 16px; }
.ox-schedule h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--hm-display); font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.ox-schedule h2 i { color: var(--primary); }
.ox-schedule ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ox-schedule li { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--hm-paper); }
.ox-schedule li strong { font-size: 15px; color: var(--hm-ink); overflow-wrap: anywhere; }
.ox-schedule li span { font-size: 13.5px; color: var(--hm-text); }
.ox-schedule .mt-btn { width: 100%; }
.ox-mode { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.ox-mode.is-onsite { background: #fff4d6; color: #8a5a00; }
/* Olimpiyat sinavi giris sayfasi (public/olympiad-exam.php; es-* sinav baslangic sayfasiyla ortak) */
.ox-hero .es-hero-text { display: grid; gap: 4px; }
.ox-hero .oed-kicker { margin: 6px 0 0; }
.ox-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ox-facts dd { font-size: 17px; overflow-wrap: anywhere; }
.ox-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.ox-alert.is-error { background: #fdecec; color: #a4262c; }
.ox-state { display: grid; justify-items: center; gap: 12px; padding: 32px 22px; text-align: center; }
.ox-state p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--hm-text); }
.ox-state h2 { margin: 0; padding: 0; border: 0; }
.ox-state h2::before, .ox-state h2::after { content: none; display: none; }
.ox-state .es-note { justify-content: center; margin: 0; font-size: 14px; }
.ox-state .es-start, .ox-state .mt-btn { width: auto; min-width: 240px; padding: 0 28px; }
.ox-state-icon { font-size: 40px; color: var(--primary); }
.ox-state.is-done .ox-state-icon { color: #0e9f6e; }
.ox-countdown { font-family: var(--hm-display); font-size: 32px !important; font-weight: 700; letter-spacing: 0.04em; color: var(--hm-ink) !important; font-variant-numeric: tabular-nums; }
.ox-countdown:empty { display: none; }
.ox-code-input { width: 100%; min-height: 56px; padding: 0 16px; border: 1.5px solid rgba(20,33,61,0.2); border-radius: 14px; background: var(--white); font-family: Consolas, Menlo, monospace; font-size: 24px; font-weight: 700; letter-spacing: 0.18em; text-align: center; text-transform: uppercase; color: var(--hm-ink); }
.ox-code-input:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(20,33,61,0.12); }
@media (max-width: 640px) {
    .ox-facts { grid-template-columns: 1fr; }
    .ox-state { padding: 24px 16px; }
    .ox-state .es-start, .ox-state .mt-btn { width: 100%; min-width: 0; }
    .ox-countdown { font-size: 26px !important; }
}
/* Asamalar: numarali zaman cizelgesi */
.oed-stages { position: relative; display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.oed-stage { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.oed-stage:last-child { padding-bottom: 0; }
.oed-stage:not(:last-child)::before { content: ''; position: absolute; top: 44px; bottom: 4px; inset-inline-start: 21px; width: 2px; border-radius: 2px; background: var(--primary-light); }
.oed-stage-no { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-family: var(--hm-display); font-size: 18px; font-weight: 700; }
.oed-stage-body { flex: 1; min-width: 0; padding-top: 2px; }
.oed-stage-label { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hm-muted); }
.oed-stage-body h3 { margin: 0 0 6px; font-family: var(--hm-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--hm-ink); }
.oed-stage-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--hm-text); }
.oed-stage-meta i { margin-inline-end: 4px; color: var(--primary); }
.oed-stage-list { display: grid; gap: 8px; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--hm-paper); list-style: none; }
.oed-stage-list li { position: relative; padding-inline-start: 18px; font-size: 14.5px; line-height: 1.55; color: var(--hm-text); }
.oed-stage-list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
/* Bilgi metni ve SSS */
.oed-content { padding: 24px 26px; }
.oed-content h2 { font-family: var(--hm-display); color: var(--hm-ink); }
.oed-content h3 { color: var(--hm-ink); }
.oed-faq { display: grid; gap: 10px; margin-top: 6px; }
.oed-faq details { border: 1px solid rgba(20,33,61,0.08); border-radius: 14px; background: var(--white); }
.oed-faq details[open] { background: var(--hm-paper); }
.oed-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--hm-ink); cursor: pointer; list-style: none; }
.oed-faq summary::-webkit-details-marker { display: none; }
.oed-faq summary i { flex-shrink: 0; font-size: 13px; color: var(--hm-muted); transition: transform 0.2s ease; }
.oed-faq details[open] summary i { transform: rotate(180deg); }
.oed-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 14px; }
.oed-faq details p { margin: 0; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.65; color: var(--hm-text); }
@media (max-width: 1100px) {
    .oed-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
    .oed-layout { grid-template-columns: 1fr; }
    .oed-main, .oed-side { grid-column: 1; grid-row: auto; }
    .oed-side { position: static; order: -1; }
}
@media (max-width: 640px) {
    .oed-content { padding: 18px; }
    .oed-stage { gap: 12px; }
    .oed-stage-no { width: 38px; height: 38px; font-size: 16px; }
    .oed-stage:not(:last-child)::before { top: 38px; inset-inline-start: 18px; }
}

/* ===== Olimpiyat kapak resmi (includes/olympiad/olympiad-cover.php): ziyaretcinin dilindeki kopya, kirpilmadan ===== */
.oed-cover { margin: 0; overflow: hidden; border: 1px solid rgba(20,33,61,0.08); border-radius: 20px; background: var(--hm-paper); box-shadow: 0 12px 32px -24px rgba(20,33,61,0.3); }
.oed-cover img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.oed-layout.has-cover .oed-cover { grid-column: 1; grid-row: 1; min-width: 0; }
.oed-layout.has-cover .oed-main { grid-row: 2; }
.oed-layout.has-cover .oed-side { grid-row: 1 / span 2; }
.oe-card.has-cover { padding-top: 0; overflow: hidden; }
.oe-card-cover { display: block; width: calc(100% + 48px); max-width: none; height: auto; max-height: 280px; margin: 0 -24px 6px; object-fit: cover; background: var(--hm-paper); }
.oe-panel-cover { display: block; width: 100%; height: auto; max-height: 160px; margin-bottom: 6px; border-radius: 10px; object-fit: cover; background: var(--hm-paper); }
@media (max-width: 900px) {
    .oed-layout.has-cover .oed-cover, .oed-layout.has-cover .oed-main, .oed-layout.has-cover .oed-side { grid-column: 1; grid-row: auto; }
    .oed-layout.has-cover .oed-cover { order: -2; }
}
@media (max-width: 640px) {
    .oed-cover { border-radius: 14px; }
}
/* Admin: Kapak resmi sekmesi */
.oe-cover-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 16px; }
.oe-cover-preview img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(20,33,61,0.1); }
.oe-cover-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 16 / 9; border: 2px dashed rgba(20,33,61,0.15); border-radius: 12px; color: var(--hm-muted); background: #fbfcff; }
.oe-cover-empty i { font-size: 28px; }
.oe-cover-forms { display: grid; gap: 14px; }
.oe-cover-forms form.ap-field { display: grid; gap: 8px; }
.oe-cover-forms .ap-btn { justify-self: start; }
@media (max-width: 900px) { .oe-cover-grid { grid-template-columns: 1fr; } }
/* Olimpiyat bilgi sayfasi: bireysel basvuru */
.oed-apply { margin: 0; }
.oed-apply .mt-btn { width: 100%; }
.oed-link { justify-self: center; font-size: 14.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.oed-link:hover { text-decoration: underline; }

/* Veritabani yedegi: Google donusu elle yapistirma (admin/db-backup.php) */
.dbb-paste { margin-top: 12px; font-size: 14px; }
.dbb-paste summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--hm-ink, #14213d); cursor: pointer; }
.dbb-paste form { display: grid; gap: 8px; }
.dbb-paste input[type=text] { width: 100%; min-width: 0; }
