/* ============================================================
   BLACKSTONE MEDIA — PANEL TASARIM SİSTEMİ v10 ("Obsidyen")
   Yönetim, müşteri ve personel panelleri + giriş ekranları.
   ------------------------------------------------------------
   İlkeler: sade koyu yüzeyler, tek vurgu rengi (pirinç), düz
   renkler (degrade/parıltı yok), 4'ün katı boşluklar, her öğenin
   çevresinde nefes payı. Efekt yok: imleç, açılış ekranı, yüzen
   küre, mıknatıslı düğme, üzerine gelince zıplayan kart kaldırıldı.
   Eski değişken adları (--gold, --gold-grad, --bg-card…) yüzlerce
   satır içi stilde kullanıldığı için AYNEN korunur, yalnız değerleri
   yeni paletle eşlenir.
   ============================================================ */

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

:root {
    color-scheme: dark;   /* yerel form denetimleri (onay kutusu, takvim, kaydırma çubuğu) koyu */
    /* Yüzeyler */
    --bg-dark: #0c0c0d;
    --bg-deep: #0f0f11;
    --surface: #151517;
    --surface-2: #1b1b1e;
    --surface-3: #222226;
    --bg-card: var(--surface);
    --bg-card-solid: var(--surface);
    --charcoal: #111113;

    /* Vurgu: pirinç (degrade yok; eski degrade değişkeni düz renk olur) */
    --gold: #c9a45e;
    --light-gold: #e2c68f;
    --deep-gold: #9a7b3f;
    --gold-grad: linear-gradient(var(--gold), var(--gold));
    --gold-gradient: var(--gold-grad);

    /* Metin */
    --text-white: #ede7dd;
    --text-gray: #a8a196;
    --text-muted: #7b756d;
    --text-dim: #625d56;
    --on-primary: #141210;

    /* Çizgiler */
    --border-gray: rgba(237, 231, 221, 0.09);
    --border-strong: rgba(237, 231, 221, 0.17);
    --border-gold: rgba(201, 164, 94, 0.38);
    --glass-bg: var(--surface-2);
    --glass-border: var(--border-strong);
    --glow-gold: none;

    /* Durum renkleri */
    --success: #5db37a;
    --success-text: #9fd9b0;
    --warning: #d6a445;
    --warning-text: #e9c987;
    --info: #6b9bd1;
    --info-text: #a9c7ea;
    --danger: #d2584b;
    --danger-text: #efa79d;

    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: var(--font-body);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;

    --sidebar-w: 256px;
    --topbar-h: 64px;
    --page-pad: 32px;
    --transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --focus-ring: 0 0 0 3px rgba(201, 164, 94, 0.32);
}

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

html { scroll-behavior: smooth; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }

/* Türkçe: Plus Jakarta Sans'ın Türkçe yerel biçimi (locl) her küçük "i"yi
   noktasız ı'nın dar aralığıyla çiziyor; sıkı harf aralıklı başlıklarda i'ler
   komşu harflere çarpıyordu (İngilizcede sorun yok). Ayrıca fi bağlacı i'nin
   noktasını yutup "fiyat"ı "fıyat" gibi gösteriyordu. Türkçede ikisi de kapalı. */
html:lang(tr) body,
html:lang(az) body { font-feature-settings: "locl" 0; font-variant-ligatures: no-common-ligatures; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(201, 164, 94, 0.85); color: #0c0c0d; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 10px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: #3a3a40; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* Sınıfsız form alanları (form-group dışındaki satır içi formlar) da panel
   görünümünü alsın: tarayıcının beyaz kutusu hiçbir yerde çıkmasın.
   :where() özgüllüğü sıfırlar; bileşen kuralları her zaman üstün gelir. */
:where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="color"], [type="range"], [type="submit"], [type="button"], [type="image"]), select, textarea) {
    max-width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-white);
    background: var(--bg-deep);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    color-scheme: dark;
}
:where(input, select, textarea):focus { border-color: var(--gold); box-shadow: var(--focus-ring); }
:where(select) option { background: var(--surface-2); color: var(--text-white); }
:where(input[type="checkbox"], input[type="radio"]) { accent-color: var(--gold); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }

code {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 0.86em;
    color: var(--light-gold);
    background: rgba(201, 164, 94, 0.08);
    border: 1px solid rgba(201, 164, 94, 0.18);
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    overflow-wrap: anywhere;
}

/* Uzun adresler (cron bağlantısı gibi): satıra sığmazsa kendi
   içinde kayar, sayfayı yatay kaydırmaya zorlamaz */
code.kod-satir {
    display: block;
    margin-top: 8px;
    padding: 9px 12px;
    overflow-x: auto;
    white-space: nowrap;
    overflow-wrap: normal;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.25;
    letter-spacing: -0.018em;
    font-weight: 700;
    overflow-wrap: break-word;
}

/* Eski başlık vurgusu (h2 span): degrade metin yerine düz pirinç */
.panel-card-header h2 span,
.page-title h1 span,
.logo-text span {
    color: var(--gold);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* ============ YERLEŞİM ============ */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar-overlay {
    position: fixed;
    top: 0; bottom: 0;
    left: 0; right: auto;
    width: var(--vpw, 100%);
    z-index: 880;
    background: rgba(5, 5, 6, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

/* --- Kenar çubuğu --- */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    padding: 18px 14px 16px;
    background: var(--bg-deep);
    border-right: 1px solid var(--border-gray);
    z-index: 900;
    transition: transform 0.3s var(--ease-out-expo);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 10px 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-gray);
}
.sidebar-brand a { display: flex; align-items: center; min-width: 0; }
.sidebar-brand img { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; }

.logo-text { font-weight: 800; letter-spacing: -0.02em; color: var(--text-white); white-space: nowrap; }

.sidebar-menu { flex: 1; }

.sidebar-section-label {
    display: block;
    padding: 0 12px;
    margin: 20px 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.sidebar-section-label:first-child { margin-top: 4px; }

.sidebar-menu ul { display: flex; flex-direction: column; gap: 2px; }

.sidebar-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

/* :not(.menu-badge): rozet de doğrudan span çocuğu; flex:1 alırsa metinle yer paylaşıp genişlerdi */
.sidebar-menu a > span:not(.menu-badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-menu a i {
    width: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

:where(html.hover-ok) .sidebar-menu a:hover { color: var(--text-white); background: rgba(237, 231, 221, 0.04); }
:where(html.hover-ok) .sidebar-menu a:hover i { color: var(--text-gray); }

/* Etkin sayfa: düz yüzey + soldaki ince pirinç çizgi */
.sidebar-menu a.active {
    color: var(--text-white);
    background: var(--surface-2);
}
.sidebar-menu a.active i { color: var(--gold); }
.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px; bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gold);
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    padding: 1px 7px 0;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 21px;
    font-variant-numeric: tabular-nums;
    color: var(--on-primary);
    background: var(--gold);
    border-radius: 100px;
}

.sidebar-lang { padding: 12px 0 10px; }
.sidebar-lang .lang-switch-btn { width: 100%; justify-content: space-between; }

.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-gray);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-gray);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
:where(html.hover-ok) .sidebar-footer a:hover { color: var(--danger-text); border-color: rgba(210, 88, 75, 0.45); }

/* --- Ana alan --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 0 var(--page-pad) 64px;
    min-width: 0;
    position: relative;
}

/* Üst çubuk: sayfanın tepesine yapışık, tam genişlikte sade şerit */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: var(--topbar-h);
    margin: 0 calc(-1 * var(--page-pad)) 28px;
    padding: 10px var(--page-pad);
    background: rgba(12, 12, 13, 0.92);
    border-bottom: 1px solid var(--border-gray);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.top-bar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--gold);
    background: var(--surface-2);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
}

.page-title { min-width: 0; }
.page-title .crumb {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
}
.page-title h1 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--text-white);
    background: var(--surface-2);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
:where(html.hover-ok) .menu-trigger:hover { border-color: var(--border-strong); }

.user-info { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }

.user-info .role {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    color: var(--light-gold);
    background: rgba(201, 164, 94, 0.1);
    border: 1px solid rgba(201, 164, 94, 0.28);
    white-space: nowrap;
}
.user-info .role.client { color: var(--text-gray); background: var(--surface-2); border-color: var(--border-gray); }

.user-info .name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ BİLDİRİM KUTUSU (personel paneli) ============
   Kutu ÜST ÇUBUĞA yaslanır, zile değil: zilin sağında personel
   adı durduğu için zile yaslansaydı dar ekranda kutu ekranın
   solundan dışarı taşardı. */
.bildirim-alan { flex-shrink: 0; }

.bildirim-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    font-size: 0.95rem;
    color: var(--text-gray);
    background: var(--surface-2);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
:where(html.hover-ok) .bildirim-btn:hover { color: var(--text-white); border-color: var(--border-strong); }

.bildirim-rozet {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 18px;
    padding: 0 5px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: var(--on-primary);
    background: var(--gold);
    border-radius: 100px;
    border: 2px solid var(--bg-dark);
    box-sizing: content-box;
}
.bildirim-rozet.bos { display: none; }

.bildirim-kutu {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 900;
    width: min(340px, calc(var(--vpw, 100vw) - 32px));
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: bildirimIn 0.18s ease;
}
@keyframes bildirimIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bildirim-kutu[hidden] { display: none; }

.bildirim-baslik {
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-gray);
}
.bildirim-liste { max-height: min(60vh, 380px); overflow-y: auto; overscroll-behavior: contain; }
.bildirim-satir { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-gray); }
.bildirim-satir:last-child { border-bottom: none; }
.bildirim-satir > i { flex-shrink: 0; margin-top: 3px; font-size: 0.85rem; color: var(--text-muted); }
.bildirim-satir.yeni { background: rgba(201, 164, 94, 0.06); }
.bildirim-satir.yeni > i { color: var(--gold); }
.bildirim-satir > div { min-width: 0; }
.bildirim-satir strong { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text-white); }
.bildirim-satir span { display: block; margin-top: 3px; font-size: 0.8rem; line-height: 1.5; color: var(--text-gray); }
.bildirim-satir em { display: block; margin-top: 5px; font-size: 0.72rem; font-style: normal; color: var(--text-dim); }
.bildirim-bos { padding: 26px 16px; font-size: 0.85rem; text-align: center; color: var(--text-muted); }

/* ============ İSTATİSTİK KARTLARI ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}
:where(html.hover-ok) a.stat-card:hover,
:where(html.hover-ok) .stat-card:hover { border-color: var(--border-strong); }

.stat-details { min-width: 0; }
.stat-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}
.stat-details p { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: var(--gold);
    background: rgba(201, 164, 94, 0.08);
    border: 1px solid rgba(201, 164, 94, 0.2);
    border-radius: var(--radius-sm);
}

/* ============ PANEL KARTI ============ */
.panel-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.panel-card-header > * { min-width: 0; }
.panel-card-header h2 { font-size: 1.08rem; font-weight: 700; }
.panel-card-header p { margin-top: 4px; }

/* Kart içindeki ardışık bloklar arasında nefes payı: düğmeler tabloya,
   tablolar forma, uyarılar başlığa yapışmasın */
.panel-card > .table-responsive + *,
.panel-card > table + *,
.panel-card > form + .table-responsive,
.panel-card > .alert + *,
.panel-card > form + form,
.panel-card > p + form,
.panel-card > p + .table-responsive { margin-top: 20px; }
.panel-card > .alert:last-child { margin-bottom: 0; }

/* ============ DÜĞMELER ============ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 18px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
}
.btn i { font-size: 0.9em; }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Birincil: kemik dolgu, koyu yazı (sitenin ana düğmesiyle aynı) */
.btn-gold, .btn-primary {
    background: var(--text-white);
    color: var(--on-primary);
    border-color: var(--text-white);
}
:where(html.hover-ok) .btn-gold:hover, :where(html.hover-ok) .btn-primary:hover { background: #fbf7f0; border-color: #fbf7f0; }

/* İkincil */
.btn-gray, .btn-secondary {
    background: var(--surface-2);
    color: var(--text-white);
    border-color: var(--border-strong);
}
:where(html.hover-ok) .btn-gray:hover, :where(html.hover-ok) .btn-secondary:hover { background: var(--surface-3); border-color: rgba(237, 231, 221, 0.26); }

/* Çerçeveli / sade */
.btn-outline { background: transparent; color: var(--text-white); border-color: var(--border-strong); }
:where(html.hover-ok) .btn-outline:hover { border-color: rgba(237, 231, 221, 0.32); background: rgba(237, 231, 221, 0.04); }
.btn-ghost { background: transparent; color: var(--text-gray); border-color: transparent; }
:where(html.hover-ok) .btn-ghost:hover { color: var(--text-white); background: rgba(237, 231, 221, 0.05); }

/* Vurgu (pirinç): yalnız tek önemli eylem için */
.btn-accent { background: var(--gold); color: var(--on-primary); border-color: var(--gold); }
:where(html.hover-ok) .btn-accent:hover { background: var(--light-gold); border-color: var(--light-gold); }

.btn-danger {
    background: rgba(210, 88, 75, 0.1);
    color: var(--danger-text);
    border-color: rgba(210, 88, 75, 0.38);
}
:where(html.hover-ok) .btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-success {
    background: rgba(93, 179, 122, 0.12);
    color: var(--success-text);
    border-color: rgba(93, 179, 122, 0.38);
}
:where(html.hover-ok) .btn-success:hover { background: var(--success); color: #0c0c0d; border-color: var(--success); }

.btn-sm { min-height: 34px; padding: 6px 13px; font-size: 0.82rem; gap: 6px; }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }

/* Düğme grupları: her zaman aralıklı, sığmazsa alt satıra */
.btn-row, .form-actions, .table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.form-actions { margin-top: 24px; }
.btn-row.end, .form-actions.end { justify-content: flex-end; }

/* ============ SEKMELER ============ */
.sekmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
}
.sekmeler a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-gray);
    white-space: nowrap;
    transition: var(--transition);
}
:where(html.hover-ok) .sekmeler a:hover { color: var(--text-white); background: rgba(237, 231, 221, 0.04); }
.sekmeler a.aktif { background: var(--surface-3); color: var(--text-white); box-shadow: inset 0 0 0 1px var(--border-strong); }
.sekmeler a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sekmeler .sayi {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--gold);
    color: var(--on-primary);
    font-size: 0.72rem;
    font-weight: 700;
}

/* ============ AÇ/KAPA ANAHTARI ============ */
.anahtar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-gray);
    cursor: pointer;
}
.anahtar:first-child { padding-top: 0; border-top: 0; }
.anahtar > span { min-width: 0; }
.anahtar strong { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.4; }
.anahtar small { display: block; margin-top: 3px; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
.anahtar input {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 26px;
    margin: 0;
    border-radius: 100px;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: var(--transition);
}
.anahtar input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-gray);
    transition: transform 0.18s ease, background-color 0.18s ease;
}
.anahtar input:checked { background: var(--gold); border-color: var(--gold); }
.anahtar input:checked::after { transform: translateX(18px); background: var(--on-primary); }
.anahtar input:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Kopyalanabilir sabit değer (ör. bildirim adresi) */
.sabit-deger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-deep);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}
.sabit-deger code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-white); }

/* ============ TABLOLAR ============ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
}
/* Kart içinde zaten çerçeve var: tablo kabının kendi çerçevesi yalnız ayırıcı kalır */
.panel-card .table-responsive { border-radius: var(--radius-sm); }

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
}

thead th {
    text-align: left;
    padding: 11px 16px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-gray);
    white-space: nowrap;
}

tbody td {
    padding: 13px 16px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-gray);
    vertical-align: middle;
}
tbody td strong { color: var(--text-white); font-weight: 600; }
tbody tr { transition: background-color 0.15s ease; }
:where(html.hover-ok) tbody tr:hover { background: rgba(237, 231, 221, 0.02); }
tbody tr:last-child td { border-bottom: none; }

.table-logo {
    width: 40px; height: 40px;
    object-fit: contain;
    background: var(--surface-2);
    padding: 5px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-gray);
}

/* Masaüstü: işlem sütunu içeriği kadar yer kaplar, kalan genişlik metin sütunlarına */
@media (min-width: 769px) {
    thead th:last-child,
    tbody td:last-child { width: 1%; white-space: nowrap; }
    tbody td:last-child > div { justify-content: flex-end; }
    thead th:last-child { text-align: right; }
    tbody td { word-break: break-word; }
}

/* Hücre içindeki düğme grupları her zaman aralıklı */
tbody td > div:has(> .btn), tbody td > form:has(> .btn) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ============ ROZETLER ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 100px;
    border: 1px solid var(--border-gray);
    background: var(--surface-2);
    color: var(--text-gray);
    white-space: nowrap;
}
.badge-pending, .badge-danger { background: rgba(210, 88, 75, 0.1); color: var(--danger-text); border-color: rgba(210, 88, 75, 0.32); }
.badge-in_progress, .badge-warning { background: rgba(214, 164, 69, 0.1); color: var(--warning-text); border-color: rgba(214, 164, 69, 0.32); }
.badge-resolved, .badge-success { background: rgba(93, 179, 122, 0.1); color: var(--success-text); border-color: rgba(93, 179, 122, 0.32); }
.badge-info { background: rgba(107, 155, 209, 0.1); color: var(--info-text); border-color: rgba(107, 155, 209, 0.32); }
.badge-secondary { background: var(--surface-2); color: var(--text-gray); border-color: var(--border-gray); }
.badge-gold { background: rgba(201, 164, 94, 0.1); color: var(--light-gold); border-color: rgba(201, 164, 94, 0.32); }

/* ============ FORMLAR ============ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.grid-2-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid.grid-3-cols, .grid-3-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.form-group.full-width, .full-width { grid-column: 1 / -1; }
.form-grid > *, .grid-2-cols > *, .grid-3-cols > * { min-width: 0; }

/* Tarih aralığı: dar ekranda alt alta insin, alanlar büzülebilsin */
.tarih-araligi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tarih-araligi input { flex: 1 1 130px; min-width: 0; }
.tarih-araligi .ayrac { color: var(--text-muted); }

.form-group { margin-bottom: 0; min-width: 0; }
/* Izgara dışında art arda gelen alanlar */
form > .form-group + .form-group,
.panel-card > .form-group + .form-group { margin-top: 18px; }

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="search"],
/* time/date de listede: yoksa tarayıcının kendi beyaz görünümüyle çıkarlar */
.form-group input[type="time"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.hours-row input[type="time"],
.form-group textarea,
.form-group select,
.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    background: var(--bg-deep);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition), box-shadow 0.18s ease;
    color-scheme: dark;
}

.form-group input::placeholder, .form-group textarea::placeholder, .input::placeholder { color: var(--text-dim); font-weight: 400; }

.form-group input:focus, .form-group textarea:focus, .form-group select:focus, .input:focus {
    border-color: var(--gold);
    box-shadow: var(--focus-ring);
}

.form-group select option { background: var(--surface-2); color: var(--text-white); }
.form-group textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    font-size: 0.88rem;
    color: var(--text-gray);
    background: var(--bg-deep);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
:where(html.hover-ok) .form-group input[type="file"]:hover { border-color: var(--border-gold); }
.form-group input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 14px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--on-primary);
    background: var(--text-white);
    border: none;
    border-radius: 100px;
    cursor: pointer;
}

.form-group input[type="checkbox"], .form-group input[type="radio"] { accent-color: var(--gold); }
.form-group input[type="color"] { min-height: 44px; border-radius: var(--radius-sm); overflow: hidden; }

/* Alan açıklaması ve hata metni */
.form-hint, .form-group small { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
.form-error { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--danger-text); }

hr { border: 0; border-top: 1px solid var(--border-gray); }

/* ============ UYARILAR ============ */
.alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.55;
    border: 1px solid;
}
.alert-success { background: rgba(93, 179, 122, 0.08); border-color: rgba(93, 179, 122, 0.3); color: var(--success-text); }
.alert-danger, .alert-error { background: rgba(210, 88, 75, 0.08); border-color: rgba(210, 88, 75, 0.32); color: var(--danger-text); }
.alert-warning { background: rgba(214, 164, 69, 0.08); border-color: rgba(214, 164, 69, 0.3); color: var(--warning-text); }
.alert-info { background: rgba(107, 155, 209, 0.07); border-color: rgba(107, 155, 209, 0.28); color: var(--info-text); }

/* Çok satırlı uyarıda simge üstte; uzun çeviriler dar ekranda taşmasın */
.alert:has(> div) { align-items: flex-start; }
.alert:has(> div) > i { margin-top: 4px; }
.alert > * { min-width: 0; overflow-wrap: anywhere; }
.alert > i { flex-shrink: 0; overflow-wrap: normal; }
.alert > div { flex: 1 1 0; }
.alert .btn { margin-left: auto; }
/* Dar ekranda düğmeli uyarı: düğme metnin altına, aynı hizaya */
@media (max-width: 560px) {
    .alert:has(> .btn) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .alert:has(> .btn) > i { margin-top: 4px; }
    .alert:has(> .btn) > .btn { grid-column: 2; justify-self: start; margin-left: 0; }
    .alert:has(> .btn) > input[type="hidden"] { display: none; }
}

/* ============ YARDIMCI BİLEŞENLER ============ */
.muted { color: var(--text-muted); }
.text-sm { font-size: 0.84rem; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spacer { flex: 1; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state i { font-size: 1.6rem; color: var(--text-dim); }
.empty-state strong { color: var(--text-white); font-weight: 600; }

.kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 8px 20px; font-size: 0.9rem; }
.kv dt { color: var(--text-muted); }
.kv dd { color: var(--text-white); min-width: 0; overflow-wrap: anywhere; }

/* ============ MESAJ BALONLARI ============ */
.ticket-messages { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.message-box {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    border-top-left-radius: 4px;
    padding: 18px 20px;
    max-width: 92%;
}
.message-box.admin-reply {
    align-self: flex-end;
    background: rgba(201, 164, 94, 0.07);
    border-color: rgba(201, 164, 94, 0.24);
    border-radius: var(--radius);
    border-top-right-radius: 4px;
}
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.message-sender { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--text-white); }
.message-sender i { color: var(--gold); }
.message-body { color: var(--text-gray); font-size: 0.93rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* ============ SÜRÜKLE-BIRAK SIRALAMA ============ */
.sirala-hucre { display: inline-flex; align-items: center; gap: 4px; }
.sirala-tutamak {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-muted);
    cursor: grab;
    touch-action: none;
}
:where(html.hover-ok) .sirala-tutamak:hover { color: var(--text-white); background: rgba(237, 231, 221, 0.06); }
.sirala-tutamak:focus-visible { outline: none; box-shadow: var(--focus-ring); color: var(--text-white); }
.sira-no {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 100px;
    background: var(--surface-3);
    color: var(--text-gray);
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
html.siralaniyor, html.siralaniyor * { cursor: grabbing !important; -webkit-user-select: none !important; user-select: none !important; }
.suruklenen { position: relative; z-index: 3; background: var(--surface-2) !important; outline: 2px solid var(--gold); outline-offset: -2px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
tr.suruklenen > td { background: var(--surface-2); }
[data-sirala][aria-busy="true"] { opacity: 0.85; }
.sirala-bildirim {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 1500;
    transform: translateX(-50%);
    max-width: calc(100vw - 32px);
    padding: 10px 18px;
    border-radius: 100px;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    color: var(--text-white);
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.sirala-bildirim[hidden] { display: none; }
.sirala-bildirim.hata { border-color: rgba(210, 88, 75, 0.5); color: var(--danger-text); }

/* QR kategori ağacı ve ürün grupları */
.kat-liste { display: flex; flex-direction: column; gap: 10px; }
.kat-liste.alt { margin: 10px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--border-gray); }
.kat-oge { min-width: 0; }
.kat-oge > .category-item-row { flex-wrap: nowrap; }
.kat-oge > .category-item-row > .kat-sol { flex: 1 1 auto; flex-wrap: nowrap; }
.kat-oge > .category-item-row > .btn-row { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
.kat-sol .muted { white-space: nowrap; }
@media (max-width: 560px) {
    .kat-oge .btn-metin { display: none; }
    .kat-oge .btn-row .btn { width: 34px; padding: 0; }
    .kat-sol .muted { display: none; }
    .kat-liste.alt { margin-left: 8px; padding-left: 10px; }
}
.kat-sol { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.kat-ad { font-weight: 600; overflow-wrap: anywhere; }
.category-item-row.alt .kat-ad { font-weight: 500; color: var(--text-gray); }
tr.grup-satir th { padding: 12px 16px; background: var(--surface-2); color: var(--light-gold); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; }
.urun-gorsel-hucre { display: inline-flex; align-items: center; gap: 8px; }
.urun-gorsel-hucre img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-xs); background: var(--surface-2); }
.urun-gorsel-yok { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-xs); background: var(--surface-2); color: var(--text-dim); }

/* ============ QR ÜRÜN ETİKETLERİ (editör) ============ */
.etiket-blok { display: grid; gap: 10px; }
.etiket-baslik { display: block; margin-top: 6px; font-size: 0.84rem; font-weight: 600; color: var(--text-gray); }
.etiket-baslik:first-child { margin-top: 0; }
.etiket-baslik small { display: block; margin-top: 2px; font-weight: 400; color: var(--text-muted); }
.etiket-sec { display: flex; flex-wrap: wrap; gap: 8px; }
.etiket-sec label { position: relative; display: inline-flex; margin: 0 !important; }
.etiket-sec input { position: absolute; opacity: 0; pointer-events: none; }
.etiket-sec span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    background: var(--bg-deep);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    -webkit-user-select: none;
    user-select: none;
}
.etiket-sec span i { font-size: 0.8em; }
.etiket-sec input:checked + span { border-color: var(--gold); background: rgba(201, 164, 94, 0.1); color: var(--text-white); }
.etiket-sec input[type="radio"]:checked + span i { color: var(--danger-text); }
.etiket-sec input:focus-visible + span { box-shadow: var(--focus-ring); }

/* ============ MÜŞTERİ KARTLARI (yönetim) ============ */
.musteri-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.musteri-kart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
}
.musteri-ust { display: flex; align-items: flex-start; gap: 14px; }
.musteri-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(201, 164, 94, 0.1);
    border: 1px solid rgba(201, 164, 94, 0.24);
    color: var(--light-gold);
    font-weight: 800;
}
.musteri-bilgi { flex: 1; min-width: 0; }
.musteri-bilgi strong { display: block; font-size: 0.98rem; line-height: 1.35; overflow-wrap: anywhere; }
.musteri-bilgi small { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 0.8rem; color: var(--text-muted); }
.musteri-bilgi small span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.musteri-yetkiler { display: grid; gap: 8px; }
.yetki-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: 48px;
    padding: 6px 6px 6px 14px;
    background: var(--bg-deep);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
}
.yetki-ad { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; }
.yetki-ad i { width: 16px; text-align: center; color: var(--text-muted); }
.yetki-eylem { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin-left: auto; }
.musteri-eylem { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-gray); }

/* ============ GİRİŞ / KAYIT EKRANLARI ============ */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px 16px;
    background: var(--bg-dark);
}

.login-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 30px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
}
.login-card.genis { max-width: 560px; }

.login-logo-link { display: inline-block; margin-bottom: 4px; }
.login-logo { max-height: 44px; margin-bottom: 12px; }

.login-card > p {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.login-card form { text-align: left; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-group + .form-group { margin-top: 0; }
.login-card .form-grid .form-group { margin-bottom: 0; }
.login-card .form-grid { gap: 16px; }
.login-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-gray); font-size: 0.88rem; color: var(--text-muted); text-align: center; }
.login-alt a { color: var(--light-gold); font-weight: 600; }
.login-baslik { margin: 4px 0 6px; font-size: 1.3rem; font-weight: 800; }
.login-card .etiket-satir { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.login-card .etiket-satir a { font-size: 0.8rem; font-weight: 600; color: var(--light-gold); }
:where(html.hover-ok) .login-card .etiket-satir a:hover { text-decoration: underline; }
.login-geri { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); }
:where(html.hover-ok) .login-geri:hover { color: var(--text-white); }
.login-card .form-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: 0.84rem; line-height: 1.55; color: var(--text-gray); cursor: pointer; }
.login-card .form-check input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.login-card .form-check a { color: var(--light-gold); text-decoration: underline; text-underline-offset: 3px; }
.sifre-kutu { position: relative; }
.sifre-kutu input { padding-right: 52px !important; }
.sifre-goster { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 36px; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text-muted); cursor: pointer; }
:where(html.hover-ok) .sifre-goster:hover { color: var(--text-white); }
.login-card .bal-kapan { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:where(html.hover-ok) .login-alt a:hover { text-decoration: underline; }

/* ============ BAŞARI RAPORU (işveren) ============
   Grafik saf CSS: harici kütüphane yok, yazdırılabilir,
   ekran okuyucuya aria-label ile aynı bilgiyi verir. */

.rapor-araligi { display: flex; gap: 7px; flex-wrap: wrap; }

.rapor-satir {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rapor-satir:first-of-type { border-top: none; }

.rapor-ust {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.rapor-ust strong { font-size: 0.95rem; color: var(--text-white); }

.rapor-oran {
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--light-gold);
}

.rapor-cubuk {
    display: flex;
    height: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
}

.rapor-cubuk > i { display: block; height: 100%; }
.rapor-cubuk > i.iyi  { background: linear-gradient(90deg, #4fae6e, #6cc98a); }
.rapor-cubuk > i.orta { background: linear-gradient(90deg, #d9a13f, #e8bd6a); }
.rapor-cubuk > i.kotu { background: linear-gradient(90deg, #cf4d4d, #e07171); }

.rapor-alt {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 9px;
    font-size: 0.76rem;
    color: var(--text-dim);
}

.rapor-alt i { margin-right: 4px; }
.rapor-alt span:nth-child(1) i { color: #6cc98a; }
.rapor-alt span:nth-child(2) i { color: #e8bd6a; }
.rapor-alt span:nth-child(3) i { color: #e07171; }
.rapor-alt .rapor-yuk { margin-left: auto; color: var(--text-gray); }
.rapor-alt .rapor-yuk i { color: var(--gold); }

/* Yük dengesi çubuğu: en çok yük taşıyan %100 kabul edilir,
   diğerleri ona göre. Otomatik dağıtım çalışıyorsa çubuklar
   birbirine yakın uzunlukta olur. */
.rapor-yuk-cubuk {
    height: 4px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    overflow: hidden;
}

.rapor-yuk-cubuk > i {
    display: block;
    height: 100%;
    background: rgba(227, 184, 105, 0.55);
}

.oneri-satir {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.oneri-satir strong { display: block; font-size: 0.92rem; color: var(--text-white); }
.oneri-satir span { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-dim); }
.oneri-satir b { color: var(--light-gold); }

/* ============ PROGRAMIM (personel, 7 gün) ============ */

.program-liste {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.program-gun {
    padding: 14px 16px;
    background: rgba(247, 244, 238, 0.022);
    border: 1px solid var(--border-gray);
    border-radius: 14px;
}

.program-gun.bugun { border-color: var(--border-gold); background: rgba(227, 184, 105, 0.045); }

.program-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 11px;
    margin-bottom: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.program-baslik strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.program-baslik span {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.program-bos {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.program-is {
    display: flex;
    align-items: baseline;
    gap: 11px;
    padding: 7px 0;
    flex-wrap: wrap;
}

.program-saat {
    flex-shrink: 0;
    min-width: 44px;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--light-gold);
}

.program-ad {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: var(--text-white);
}

.program-ad em {
    display: block;
    font-size: 0.76rem;
    font-style: normal;
    color: var(--text-dim);
}

.program-is.bitti .program-ad,
.program-is.bitti .program-saat { color: var(--text-dim); text-decoration: line-through; }
.program-is.kacti .program-saat { color: var(--danger-text); }

/* ============ ZORLUK OYLAMASI (personel) ============ */

.oy-satir {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.oy-baslik {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.oy-baslik strong { font-size: 0.92rem; color: var(--text-white); }
.oy-baslik span { font-size: 0.78rem; color: var(--text-dim); }
.oy-baslik b { color: var(--light-gold); }

.oy-puanlar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.oy-puan {
    /* Parmakla basılacak: 40px altına inmiyoruz */
    min-width: 40px;
    height: 40px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

:where(html.hover-ok) .oy-puan:hover { color: var(--gold); border-color: var(--border-gold); }

.oy-puan.secili {
    color: #16130c;
    background: var(--gold-grad);
    border-color: transparent;
}

.oy-not {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: var(--text-dim);
}

/* ============ QR KART SAYFASI (işveren) ============
   Ekranda ızgara, kâğıtta kesilip asılacak kartlar. Aynı
   biçimlendirme ikisine de hizmet ediyor; @media print
   yalnızca paneli gizleyip renkleri kâğıda çeviriyor. */

.qr-sayfa {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.qr-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 18px;
    background: rgba(247, 244, 238, 0.025);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    /* Kâğıtta bir kart iki sayfaya bölünmesin */
    break-inside: avoid;
    page-break-inside: avoid;
}

.qr-kart.devam { border-color: var(--border-gold); background: rgba(227, 184, 105, 0.05); }

.qr-etiket {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--light-gold);
    margin-bottom: 12px;
}

.qr-kart img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    /* Okuyucu kontrast ister: kod her zaman beyaz zeminde */
    background: #fff;
    border-radius: 10px;
}

.qr-kart strong {
    display: block;
    margin-top: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-white);
    word-break: break-word;
}

.qr-kart small {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.qr-indir {
    margin-top: 12px;
    font-size: 0.76rem;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

:where(html.hover-ok) .qr-indir:hover { color: var(--gold); border-bottom-color: var(--border-gold); }

/* --- Yazdırma: yalnızca QR kartları kâğıda gitsin ---
   Kurallar :has() ile SADECE QR sayfasına bağlanıyor; aksi hâlde
   panelin her sayfasında yazdırma çıktısını değiştirirdi. */
@media print {
    body:has(.qr-sayfa) { background: #fff !important; }

    body:has(.qr-sayfa) .sidebar,
    body:has(.qr-sayfa) .top-bar,
    body:has(.qr-sayfa) .sidebar-overlay,
    body:has(.qr-sayfa) .admin-aurora,
    body:has(.qr-sayfa) .cursor-dot,
    body:has(.qr-sayfa) .cursor-outline,
    body:has(.qr-sayfa) .editor-tabs,
    body:has(.qr-sayfa) .alert,
    body:has(.qr-sayfa) .panel-card,
    body:has(.qr-sayfa) .yazdirma-disi { display: none !important; }

    body:has(.qr-sayfa) .dashboard-wrapper,
    body:has(.qr-sayfa) .main-content {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .qr-sayfa {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12mm;
    }

    .qr-kart {
        background: #fff !important;
        border: 1px dashed #999 !important;
        border-radius: 0;
        padding: 8mm 4mm;
    }

    .qr-etiket { color: #666 !important; }
    .qr-kart strong { color: #000 !important; font-size: 12pt; }
    .qr-kart small { color: #444 !important; }
    .qr-kart img { max-width: 55mm; }
}

/* ============ QR TARAMA EKRANI (/g/<kod>) ============
   Tek amaçlı ekran: personel telefonda okutur, tek düğmeye
   basar. Bu yüzden düğme büyük, metin az, karar tek. */

.tarama-karti h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--text-white);
    /* Türkçe alt uzantılar (ç, ş, ğ) kırpılmasın */
    padding-bottom: 0.1em;
}

.tarama-simge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px; height: 74px;
    margin: 4px auto 20px;
    font-size: 1.9rem;
    color: var(--gold);
    background: rgba(227, 184, 105, 0.08);
    border: 1px solid rgba(227, 184, 105, 0.22);
    border-radius: 50%;
}

.tarama-simge.iyi {
    color: var(--success-text);
    background: rgba(79, 174, 110, 0.09);
    border-color: rgba(79, 174, 110, 0.3);
}

.tarama-simge.kotu {
    color: var(--danger-text);
    background: rgba(207, 77, 77, 0.09);
    border-color: rgba(207, 77, 77, 0.3);
}

/* .login-card > p hap biçimindedir; buradaki açıklamalar
   düz metin olmalı, o kuralı bilerek geçersiz kılıyoruz */
.tarama-karti > p.tarama-aciklama,
.tarama-karti > p.tarama-not {
    display: block;
    padding: 0;
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: normal;
    text-indent: 0;
    text-transform: none;
    line-height: 1.6;
    color: var(--text-gray);
    background: none;
    border: none;
    border-radius: 0;
}

.tarama-karti > p.tarama-not {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.tarama-karti > p:last-of-type { margin-bottom: 24px; }

.btn-tarama {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 1.05rem;
    /* Parmakla, telefon elde, tek hamlede basılacak */
    min-height: 62px;
}

.btn-tarama-geri {
    width: 100%;
    margin-top: 18px;
}

.tarama-vazgec {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

:where(html.hover-ok) .tarama-vazgec:hover { color: var(--text-gray); border-bottom-color: var(--border-gray); }

/* ============ QR EDITOR / MISC ============ */
.editor-tabs .tab-btn { flex-shrink: 0; }

.category-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
    background: rgba(247, 244, 238, 0.02);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    transition: var(--transition);
}

:where(html.hover-ok) .category-item-row:hover { border-color: var(--border-gold); background: rgba(227, 184, 105, 0.03); }

.qr-code-panel img { border-radius: 8px; }

/* İndirme düğmesinin etiketi uzun, çevirilerde daha da uzun;
   .btn'deki nowrap dar ekranda hapı kartın dışına taşırıyordu.
   Yalnız bu paneldeki düğme sarabilir — hap çok satırda da düzgün
   durur, metin ortalı kalır. */
.qr-code-panel .btn {
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
    text-align: center;
}

/* ============ DEVTOOLS LOCK ============ */
.devtools-locked { overflow: hidden !important; }

/* ============================================================
   DUYARLI DÜZEN
   ============================================================ */
@media (max-width: 1200px) {
    .form-grid.grid-3-cols, .grid-3-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    :root { --page-pad: 20px; --topbar-h: 60px; }

    .sidebar { transform: translateX(calc(-1 * var(--sidebar-w) - 24px)); }
    .sidebar.open { transform: translateX(0); box-shadow: 30px 0 80px -30px rgba(0, 0, 0, 0.9); }

    .main-content { margin-left: 0; }
    .menu-trigger { display: flex; }
    .page-icon { display: none; }
    .page-title h1 { font-size: 1rem; }

    .grid-2-cols { grid-template-columns: minmax(0, 1fr); }
    .user-info .role { display: none; }
    .user-info .name { max-width: 150px; }
}

@media (max-width: 768px) {
    :root { --page-pad: 16px; }

    .form-grid, .form-grid.grid-3-cols, .grid-3-cols { grid-template-columns: minmax(0, 1fr); }

    .panel-card { padding: 18px 16px; margin-bottom: 16px; }
    .panel-card-header { margin-bottom: 16px; }

    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
    .stat-card { padding: 14px 16px; gap: 10px; }
    .stat-details h3 { font-size: 1.4rem; }
    .stat-icon { width: 36px; height: 36px; font-size: 0.92rem; }

    /* Kart görünümlü mobil tablolar */
    table thead { display: none; }

    /* Satırlar bloka dönse de <table> hâlâ tablo kutusu üretiyor ve genişliğini
       hücrelerin en az içerik genişliğine göre alıyor; uzun e-posta adresleri
       bu değeri ekran genişliğinin üstüne çıkarıp kartları taşırıyordu. */
    table { width: 100%; max-width: 100%; table-layout: fixed; }
    .table-responsive { border: 0; border-radius: 0; overflow: visible; }

    table tbody tr {
        display: block;
        margin-bottom: 12px;
        padding: 2px 14px;
        background: var(--surface-2);
        border: 1px solid var(--border-gray);
        border-radius: var(--radius-sm);
    }
    table tbody tr:last-child { margin-bottom: 0; }

    table tbody td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 6px 16px;
        padding: 11px 0;
        border-bottom: 1px solid var(--border-gray);
        text-align: right;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    table tbody td:last-child { border-bottom: none; }

    /* Etiketten sonraki içerik esneyebilsin */
    table tbody td > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

    /* İşlem hücresindeki düğme grubu: sığmazsa alt satıra iner, sağa yaslanır */
    table tbody td > div,
    table tbody td > form {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        flex-grow: 1;
    }
    table tbody td .btn { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
    /* Çok satırlı metin hücresi (ad + alt bilgi): tek blok, sağa yaslı */
    table tbody td > .hucre { display: block; text-align: right; }

    table tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        max-width: 48%;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--text-muted);
        text-align: left;
    }
    /* Etiketsiz hücre (çoğu zaman işlem hücresi): boş etiket aralık yaratmasın */
    table tbody td:not([data-label])::before,
    table tbody td[data-label=""]::before { display: none; }
    table tbody td:not([data-label]),
    table tbody td[data-label=""] { justify-content: flex-end; }

    .message-box { max-width: 100%; padding: 16px; }
    .login-card { padding: 28px 20px 24px; }
    .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
    .kv dd + dt { margin-top: 10px; }
}

@media (max-width: 480px) {
    /* Form eylemleri telefonda tam genişlik: parmakla rahat basılır */
    .form-actions > .btn { flex: 1 1 auto; }
    .top-bar { gap: 10px; }
    .user-info .name { max-width: 110px; }
}

@media (max-width: 359px) {
    .stats-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   DOKUNMATİK: metin seçimi ve dokunma vurgusu kapalı.
   Mobilde butona dokununca metin "imleçle taranmış" gibi
   seçiliyordu. Form alanları seçilebilir kalır.
   ============================================================ */
@media (pointer: coarse), (max-width: 1024px) {
    a, button, .btn, .filter-btn, .menu-toggle, .nav-links a,
    .service-card, .portfolio-card, .marquee-item, .stat-card,
    .estimator-option, .estimator-qty, .estimator-close,
    .sidebar-menu a, .sidebar-footer a, .menu-trigger,
    .lightbox-close, .social-icon, .topic-chip, .emoji-option,
    .category-nav-link, .product-card, .service-row,
    .stack-card, .tab-btn, label, .badge, .menu-badge,
    h1, h2, h3, h4, .hero-title, .section-header {
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    input, textarea, select, [contenteditable="true"] {
        -webkit-user-select: text;
        user-select: text;
    }

    * { -webkit-tap-highlight-color: transparent; }
}

/* ============================================================
   DOKUNMATİK: hover yerine :active
   :hover kuralları :where(html.hover-ok) ile kapılandı; sınıf
   yalnızca fare kullanan cihazlara eklenir (touch-release.js).
   Böylece dokunmatikte hover oluşmaz, takılı da kalamaz.
   ============================================================ */
@media (hover: none) {
    .btn:active,
    .btn-gold:active,
    .btn-gray:active,
    .btn-danger:active,
    .tab-btn:active,
    .sidebar-menu a:active,
    .sidebar-footer a:active,
    .menu-trigger:active {
        opacity: 0.72;
    }

    .panel-card tbody tr:active,
    .stat-card:active {
        background: rgba(227, 184, 105, 0.05);
    }
}

/* ============================================================
   ÇOKLU DİL — dil seçici, diller sayfası, çeviri düzenleyici
   ============================================================ */

.lang-switch { position: relative; }

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 100px;
    background: rgba(247, 244, 238, 0.04);
    border: 1px solid var(--border-gray);
    color: var(--text-gray);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease;
}

:where(html.hover-ok) .lang-switch-btn:hover {
    border-color: var(--border-gold);
    color: var(--text-white);
}

.lang-switch .lang-flag { font-size: 1rem; line-height: 1; }
.lang-switch .lang-caret { font-size: 0.62rem; opacity: 0.6; transition: transform 0.25s ease; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-switch-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 26px 55px -22px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
    z-index: 3000;
}

.lang-switch.open .lang-switch-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-switch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: background 0.2s ease, color 0.2s ease;
}

:where(html.hover-ok) .lang-switch-item:hover { background: rgba(247, 244, 238, 0.05); color: var(--text-white); }
.lang-switch-item.active { color: var(--light-gold); background: rgba(227, 184, 105, 0.08); }
.lang-switch-item .lang-name { flex: 1; min-width: 0; }
.lang-switch-item .lang-tick { font-size: 0.72rem; }

/* --- Diller sayfası --- */
.lang-progress {
    height: 6px;
    width: 100%;
    max-width: 150px;
    border-radius: 100px;
    background: rgba(247, 244, 238, 0.07);
    overflow: hidden;
    margin-bottom: 5px;
}
.lang-progress > span {
    display: block;
    height: 100%;
    border-radius: 100px;
    background: var(--gold-grad);
    transition: width 0.5s var(--ease-out-expo);
}

.lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.lang-tab {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-gray);
    background: rgba(247, 244, 238, 0.02);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition);
}
:where(html.hover-ok) .lang-tab:hover { border-color: var(--border-gold); color: var(--text-white); }
.lang-tab.active {
    background: var(--gold-grad);
    border-color: transparent;
    color: #16130c;
    font-weight: 800;
}

.lang-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: rgba(247, 244, 238, 0.02);
    border: 1px solid var(--border-gray);
}

.lang-filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lang-filter-form input[type="text"] { width: 200px; margin: 0; }
.lang-filter-form select { width: auto; min-width: 160px; margin: 0; }
.lang-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lang-stat { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* --- Çeviri satırları --- */
.translation-list { display: flex; flex-direction: column; gap: 8px; }

.translation-section {
    margin-top: 14px;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(227, 184, 105, 0.06);
    color: var(--light-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.translation-section:first-child { margin-top: 0; }

.translation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: rgba(247, 244, 238, 0.02);
    border: 1px solid var(--border-gray);
}

.translation-row.missing { border-color: rgba(217, 161, 63, 0.28); }

.translation-source,
.translation-target { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }

.translation-source {
    font-size: 0.87rem;
    color: var(--text-white);
    line-height: 1.55;
    padding-top: 9px;
    overflow-wrap: anywhere;
}

.translation-target input,
.translation-target textarea { margin: 0; }
.translation-target { flex: 1; min-width: 0; }
.translation-target > input,
.translation-target > textarea { flex: 1; min-width: 0; }

.tr-flag { font-size: 0.95rem; line-height: 1; padding-top: 11px; flex-shrink: 0; }

.translation-save-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.translation-save-bar span { font-size: 0.8rem; color: var(--text-muted); }

/* Dile göre içerik alanları (hizmet, referans, kategori formlarında) */
.lang-field label { display: flex; align-items: center; gap: 7px; }
.lang-field-flag { font-size: 0.95rem; }

@media (max-width: 768px) {
    .translation-row { grid-template-columns: 1fr; gap: 8px; }
    .translation-source { padding-top: 0; }
    .tr-flag { padding-top: 2px; }
    .lang-filter-form input[type="text"],
    .lang-filter-form select { width: 100%; }
    .lang-toolbar { flex-direction: column; align-items: stretch; }
}

/* --- Formlarda dile özel içerik kutusu --- */
.lang-content-box {
    margin-top: 20px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    background: rgba(247, 244, 238, 0.015);
    overflow: hidden;
}

.lang-content-box > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--light-gold);
    list-style: none;
    user-select: none;
}
.lang-content-box > summary::-webkit-details-marker { display: none; }
.lang-content-box > summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}
.lang-content-box[open] > summary::after { transform: rotate(180deg); }
.lang-content-box > summary small {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.lang-content-group {
    padding: 16px;
    border-top: 1px solid var(--border-gray);
}

.lang-content-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    font-size: 0.86rem;
    color: var(--text-white);
}

.lang-switch .lang-globe { font-size: 0.82rem; opacity: 0.75; }

/* Dil kodu gibi kısa kod etiketleri harf harf alt alta kırılmasın */
table code { white-space: nowrap; }

/* ============================================================
   ÇOK DİLLİ DOSYA SEÇME ALANI
   Yerel <input type="file"> düğmesinin metni tarayıcının arayüz
   diline bağlı olduğu ve çevrilemediği için gizlenir; yerine
   kendi düğmemiz konur. Girdi DOM'da kalır, form aynen çalışır.
   ============================================================ */
.file-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: rgba(247, 244, 238, 0.03);
    border: 1px solid var(--border-gray);
    transition: border-color 0.25s ease;
}

.file-field:focus-within { border-color: var(--border-gold); }

.file-field-input {
    /* Görünmez ama erişilebilir kalır (klavye/ekran okuyucu) */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.file-field-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    background: rgba(227, 184, 105, 0.08);
    color: var(--light-gold);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

:where(html.hover-ok) .file-field-btn:hover {
    background: rgba(227, 184, 105, 0.16);
    border-color: rgba(227, 184, 105, 0.45);
}

.file-field-name {
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    color: var(--text-white);
    cursor: pointer;
    overflow-wrap: anywhere;
}

.file-field-name.empty { color: var(--text-muted); font-style: italic; }

@media (max-width: 600px) {
    .file-field { gap: 9px; }
    .file-field-btn { width: 100%; justify-content: center; }
    .file-field-name { text-align: center; width: 100%; }
}

/* ============================================================
   DİL SEÇİCİ — panel ince ayarları
   ============================================================ */

/* Üst çubuğun cam görünümüne uyması için düğmenin kendisi de
   arka planı bulanıklaştırır; düz koyu bir kutu gibi durmuyor. */
.lang-switch-panel .lang-switch-btn {
    background: rgba(247, 244, 238, 0.05);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

/* Arka plan 0.6 opaklıkta olduğu için bulanıklık neredeyse
   görünmüyordu; saydamlık artırılınca efekt ortaya çıkıyor.
   Üstteki ince ışık çizgisi cam kenarı hissini veriyor. */
/* Portal sürümüyle aynı reçete (bkz. .lang-menu-portal): saydam
   arka plan + brightness ile karartma, böylece bulanıklık görünür. */
.lang-switch-panel .lang-switch-menu {
    background: rgba(14, 14, 18, 0.28);
    border-color: rgba(247, 244, 238, 0.14);
    backdrop-filter: blur(26px) saturate(1.6) brightness(0.72);
    -webkit-backdrop-filter: blur(26px) saturate(1.6) brightness(0.72);
    box-shadow:
        0 30px 60px -24px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Bayrak harflerinin küre simgesiyle aynı hizada durması için
   (bölgesel gösterge harfleri taban çizgisinin altına sarkıyor) */
.lang-switch .lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    font-size: 0.95em;
    line-height: 1;
    flex-shrink: 0;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", inherit;
    letter-spacing: 0;
}

/* Diller sayfasındaki tablo ve sekmelerdeki bayraklar da aynı hizada */
.lang-tab, .lang-content-head, .lang-field label { display: inline-flex; align-items: center; gap: 8px; }
.lang-field-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    line-height: 1;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", inherit;
}

/* ------------------------------------------------------------
   Body'ye taşınmış dil menüsü
   ------------------------------------------------------------
   backdrop-filter taşıyan .top-bar kendi backdrop kökünü kurduğu
   için içindeki menü sayfanın arkasını örnekleyemiyordu. Menü
   açılırken JS ile <body> altına taşınır; konumu buradan sabitlenir.
   Arka plan belirgin şekilde saydam ki bulanıklık görünsün.
   ------------------------------------------------------------ */
.lang-switch-menu.lang-menu-portal {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    margin: 0;
    min-width: 200px;
    opacity: 1;
    visibility: visible;
    transform: none;
    /* Özel imleç 99999da; menü onun ALTINDA kalmalı ki imleç
       menünün üzerinde görünmeye devam etsin */
    z-index: 99000;

    background: rgba(14, 14, 18, 0.28);
    border: 1px solid rgba(247, 244, 238, 0.14);
    backdrop-filter: blur(26px) saturate(1.6) brightness(0.72);
    -webkit-backdrop-filter: blur(26px) saturate(1.6) brightness(0.72);
    box-shadow:
        0 30px 60px -24px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: langMenuIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================================
   ÇEVİRİ DÜZENLEYİCİ — form elemanları
   ------------------------------------------------------------
   Panelin girdi stilleri .form-group kapsamına yazılmış; çeviri
   satırları ve filtre çubuğu o kapsamın dışında kaldığı için
   tarayıcının ham görünümünü (beyaz zemin, monospace) alıyordu.
   Aynı tasarım burada da uygulanır.
   ============================================================ */
.translation-target input[type="text"],
.translation-target textarea,
.lang-filter-form input[type="text"],
.lang-filter-form select {
    width: 100%;
    padding: 11px 15px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-white);
    background: rgba(7, 7, 8, 0.55);
    border: 1px solid var(--border-gray);
    border-radius: 11px;
    outline: none;
    transition: var(--transition);
}

.translation-target input::placeholder,
.translation-target textarea::placeholder,
.lang-filter-form input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

.translation-target input:focus,
.translation-target textarea:focus,
.lang-filter-form input:focus,
.lang-filter-form select:focus {
    border-color: rgba(227, 184, 105, 0.55);
    background: rgba(7, 7, 8, 0.8);
    box-shadow: 0 0 0 4px rgba(227, 184, 105, 0.07);
}

.translation-target textarea { resize: vertical; min-height: 76px; }

/* Açılır liste: yerel oku gizleyip kendi işaretimizi koyuyoruz */
.lang-filter-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23a29c90' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px;
}
.lang-filter-form select option { background: #131315; color: var(--text-white); }

/* Onay kutusu: tarayıcının mavi kutusu yerine altın vurgulu kendi kutumuz */
.lang-filter-form input[type="checkbox"],
.switch-row input[type="checkbox"],
.hours-closed input[type="checkbox"],
.form-group > input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin: 0;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    background: rgba(7, 7, 8, 0.55);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.lang-filter-form input[type="checkbox"]:checked,
.switch-row input[type="checkbox"]:checked,
.hours-closed input[type="checkbox"]:checked,
.form-group > input[type="checkbox"]:checked {
    background: var(--gold-grad);
    border-color: transparent;
}

.lang-filter-form input[type="checkbox"]:checked::after,
.switch-row input[type="checkbox"]:checked::after,
.hours-closed input[type="checkbox"]:checked::after,
.form-group > input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.62rem;
    color: #16130c;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-filter-form input[type="checkbox"]:focus-visible,
.switch-row input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 4px rgba(227, 184, 105, 0.16);
}

/* Onay kutusu etiketi tıklanabilir ve dikeyde hizalı */
.lang-filter-form label.switch-row,
.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    user-select: none;
}

.lang-filter-form label.switch-row:hover span,
.switch-row:hover span { color: var(--text-white); }

/* Filtre çubuğu tek satırda kalsın: yukarıdaki ortak kural
   genişliği %100 yaptığı için alanlar alt alta düşüyordu. */
.lang-filter-form input[type="text"] { width: 210px; }
.lang-filter-form select { width: auto; min-width: 175px; }

@media (max-width: 768px) {
    .lang-filter-form input[type="text"],
    .lang-filter-form select { width: 100%; }
}

/* ---- Fiyat alanı: para birimi girişin içinde ---- */
.price-field {
    position: relative;
    display: block;
}

.price-field input[type="text"] {
    /* Simge sağda durur, yazı onun altına kaymaz */
    padding-right: 74px;
}

.price-field-unit {
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: calc(100% - 2px);
    padding: 0 12px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.08);
    border-left: 1px solid var(--border-gray);
    border-radius: 0 11px 11px 0;
    pointer-events: none;
    white-space: nowrap;
}

/* ---- İçeriğin hangi dilde girildiğini gösteren rozet ---- */
.lang-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.24);
    border-radius: 100px;
    vertical-align: middle;
}

/* ------------------------------------------------------------
   Kenar çubuğundaki dil seçimi
   ------------------------------------------------------------
   Çıkış butonunun hemen üstünde durur; aradaki ayraç çizgisi
   .sidebar-footer'ın border-top'undan gelir. Düğme, çıkış
   butonuyla aynı geometriyi paylaşır ki ikisi bir bütün gibi
   dursun.
   ------------------------------------------------------------ */
.sidebar-lang {
    padding-bottom: 12px;
}

.lang-switch-sidebar { display: block; }

.lang-switch-sidebar .lang-switch-btn {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px;
    font-size: 0.84rem;
    border-radius: 13px;
    background: rgba(247, 244, 238, 0.03);
}

/* Kod ortada kalıp ok sağa yaslansın */
.lang-switch-sidebar .lang-code { flex: 1; text-align: left; }
.lang-switch-sidebar .lang-globe { font-size: 0.95rem; opacity: 0.85; }

:where(html.hover-ok) .lang-switch-sidebar .lang-switch-btn:hover {
    border-color: var(--border-gold);
    color: var(--text-white);
    background: rgba(197, 160, 89, 0.06);
}

/* Aşağıda durduğu için yukarı açılır; genişliği düğmeye eşit */
.lang-switch-sidebar .lang-switch-menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    transform: translateY(6px);
    background: rgba(14, 14, 18, 0.28);
    border-color: rgba(247, 244, 238, 0.14);
    backdrop-filter: blur(26px) saturate(1.6) brightness(0.72);
    -webkit-backdrop-filter: blur(26px) saturate(1.6) brightness(0.72);
    box-shadow:
        0 30px 60px -24px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Sürükle-bırak durumu
   ============================================================ */
.file-field {
    /* Bırakma sırasında çerçevenin kesikliye dönüşmesi için */
    border-style: solid;
}

.file-field.dragging {
    border-color: var(--gold);
    border-style: dashed;
    background: rgba(197, 160, 89, 0.08);
}

.file-field.dragging .file-field-name {
    color: var(--light-gold);
}

/* Sürüklenen dosya alt elemanların üstüne geldiğinde olay
   onlara gitmesin; sayaç bozulmasın diye tümü devre dışı */
.file-field.dragging * {
    pointer-events: none;
}

.file-field-name.error {
    color: var(--danger-text);
}

/* ============================================================
   Yükleme penceresi
   ============================================================ */
.upload-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 6, 8, 0.78);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.upload-modal.open { display: flex; }

.upload-modal-box {
    width: 100%;
    max-width: 460px;
    padding: 34px 30px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(24, 24, 28, 0.98), rgba(16, 16, 19, 0.98));
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
}

.upload-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    font-size: 1.7rem;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
}

.upload-modal-title {
    margin-bottom: 6px;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-white);
}

.upload-modal-file {
    margin-bottom: 22px;
    min-height: 18px;
    font-size: 0.83rem;
    color: var(--text-gray);
    overflow-wrap: anywhere;
}

.upload-modal-track {
    position: relative;
    height: 14px;
    margin-bottom: 11px;
    overflow: hidden;
    background: rgba(247, 244, 238, 0.06);
    border: 1px solid var(--border-gray);
    border-radius: 100px;
}

.upload-modal-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
    border-radius: 100px;
    transition: width 0.15s ease-out;
}

.upload-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.upload-modal-status {
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.upload-modal-percent {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.upload-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 0;
}

.upload-modal-actions:not(:empty) { margin-top: 20px; }
.upload-modal-actions .btn { width: auto; }

/* Hata durumu: çubuk ve yüzde anlamsızlaşır, gizlenir */
.upload-modal.has-error .upload-modal-icon {
    color: var(--danger-text);
    background: rgba(207, 77, 77, 0.1);
    border-color: rgba(207, 77, 77, 0.32);
}

.upload-modal.has-error .upload-modal-track,
.upload-modal.has-error .upload-modal-percent { display: none; }

.upload-modal.has-error .upload-modal-status {
    text-align: center;
    color: var(--danger-text);
}

@media (max-width: 480px) {
    .upload-modal-box { padding: 26px 20px 22px; }
    .upload-modal-actions { flex-direction: column; }
    .upload-modal-actions .btn { width: 100%; }

    /* Dar ekranda üst çubukta yer, sayfa başlığının hakkı: uzun bir
       personel adı başlığı "Progr…" hâline getiriyordu. Kişi zaten
       kendi adını biliyor, sayfanın hangisi olduğunu bilmiyor. */
    .user-info .name { display: none; }
}

/* ============================================================
   Mobilde URL çubuğu gizlenirken alttaki boşluk
   ------------------------------------------------------------
   Tam ekran sabit katmanlar `bottom: 0` ile LAYOUT viewport'a
   göre boyutlanıyor; Chrome kaydırırken URL çubuğunu gizleyince
   GÖRSEL viewport büyüyor, altta bu katmanların boyamadığı bir
   şerit açılıyor. `100lvh` (çubuklar gizliyken ki yükseklik)
   ile ölçülünce şerit de kapsanıyor.
   ============================================================ */
@supports (height: 100lvh) {
    body::before,
    .admin-aurora,
    .preloader,
    .sidebar-overlay {
        bottom: auto;
        height: 100lvh;
    }
}

/* ------------------------------------------------------------
   Gizli dosya girdisinin gerçekten gizlenmesi
   ------------------------------------------------------------
   .form-group input[type="file"] kuralı (0,2,1) özgüllükte olduğu
   için .file-field-input'un (0,1,0) width/padding değerlerini
   eziyordu: gizli kalması gereken girdi 341px genişliğinde kalıp
   margin:-1px ile sağa taşıyor, mobilde yatay kaydırma açıyordu.
   (Söz konusu kural JS çalışmadığında yerel görünüm için duruyor,
   o yüzden silinmiyor; burada özgüllük yükseltilerek geçiliyor.)
   ------------------------------------------------------------ */
.file-field input[type="file"].file-field-input {
    width: 1px;
    height: 1px;
    min-width: 0;
    padding: 0;
    margin: -1px;
    border: 0;
    background: none;
}

/* ============================================================
   Personel paneli — görev listesi
   ------------------------------------------------------------
   Bilinçli olarak tablo değil satır listesi: mobilde tablo karta
   dönüşürken bilgi dağılıyor, oysa personelin tek bakışta görmesi
   gereken şey "saat + iş adı + durum". Aynı yapı her ekranda
   çalışsın diye masaüstünde de aynı görünüyor.
   ============================================================ */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(247, 244, 238, 0.025);
    border: 1px solid var(--border-gray);
    border-left: 3px solid var(--border-gray);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.task-row.done {
    border-left-color: rgba(79, 174, 110, 0.65);
    background: rgba(79, 174, 110, 0.04);
}

.task-row.late {
    border-left-color: rgba(207, 77, 77, 0.65);
    background: rgba(207, 77, 77, 0.04);
}

.task-row.open { border-left-color: var(--border-gold); }

.task-time {
    flex-shrink: 0;
    min-width: 52px;
    font-size: 1.02rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--light-gold);
    line-height: 1.5;
}

.task-row.done .task-time { color: var(--text-muted); }

.task-main { flex: 1; min-width: 0; }

.task-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-white);
    overflow-wrap: anywhere;
}

.task-row.done .task-name {
    color: var(--text-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(247, 244, 238, 0.25);
}

.task-place {
    margin-left: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.task-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(247, 244, 238, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 100px;
    white-space: nowrap;
}

.task-badge.ok {
    color: var(--success-text);
    background: rgba(79, 174, 110, 0.08);
    border-color: rgba(79, 174, 110, 0.28);
}

.task-badge.late {
    color: var(--danger-text);
    background: rgba(207, 77, 77, 0.08);
    border-color: rgba(207, 77, 77, 0.28);
}

.task-badge.mine {
    color: var(--light-gold);
    background: rgba(227, 184, 105, 0.08);
    border-color: var(--border-gold);
}

@media (max-width: 480px) {
    .task-row { padding: 12px 13px; gap: 11px; }
    .task-time { min-width: 44px; font-size: 0.95rem; }
    .task-place { display: block; margin-left: 0; margin-top: 3px; }
}

/* Personel panelindeki dört sayaç — mobilde 2x2, masaüstünde tek sıra.
   Genel .stats-grid mobilde alt alta diziliyor ve asıl iş listesini
   ekranın altına itiyordu. */
.staff-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.staff-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 17px;
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
}

.staff-stat .stat-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
}

.staff-stat .stat-info p {
    margin: 2px 0 0;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.staff-stat .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 11px;
}

@media (max-width: 900px) {
    .staff-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 400px) {
    .staff-stat { padding: 12px 13px; }
    .staff-stat .stat-info h3 { font-size: 1.35rem; }
    .staff-stat .stat-icon { width: 31px; height: 31px; font-size: 0.8rem; }
}

/* Giriş kartındaki logo kendi satırında dursun.
   .login-logo satır içi olduğu için altındaki rozet ("PERSONEL
   GİRİŞİ") yanına düşüyordu; sarmalayıcı ikisini ayırır ve
   genişliği de sınırlar — işletme logoları farklı oranlarda. */
.login-logo-wrap {
    display: block;
    margin-bottom: 14px;
    text-align: center;
}

.login-logo-wrap .login-logo {
    display: inline-block;
    max-height: 58px;
    max-width: min(100%, 230px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
}

/* ============================================================
   Personel sistemi — işveren ekranları
   ============================================================ */

/* --- Dükkân açılış saatleri --- */
.hours-grid { display: flex; flex-direction: column; gap: 8px; }

.hours-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 13px;
    background: rgba(247, 244, 238, 0.025);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.hours-day {
    min-width: 96px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
}

.hours-closed {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.hours-closed input { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
.hours-row input[type="time"] { width: auto; min-width: 118px; }
.hours-dash { color: var(--text-muted); }

/* --- Ön tanımlı vardiya rozetleri --- */
.shift-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.shift-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px 7px 14px;
    background: rgba(227, 184, 105, 0.07);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    font-size: 0.83rem;
    color: var(--text-white);
}

.shift-chip span { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.shift-chip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(247, 244, 238, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

:where(html.hover-ok) .shift-chip a:hover { color: var(--danger-text); background: rgba(207, 77, 77, 0.14); }

/* --- Haftalık program ızgarası ---
       Dar ekranda yatay kaydırılır; tabloyu karta çevirmek burada
       işe yaramaz çünkü asıl bilgi satır-sütun kesişiminde. */
.week-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.week-grid { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 6px; }

.week-grid th {
    padding: 7px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    background: none;
    border: 0;
}

.week-grid th[scope="row"] {
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.86rem;
    color: var(--text-white);
    white-space: nowrap;
}

.week-grid td { padding: 0; border: 0; background: none; }

.week-cell {
    width: 100%;
    min-height: 42px;
    padding: 9px 6px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(247, 244, 238, 0.025);
    border: 1px dashed var(--border-gray);
    border-radius: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.week-cell.dolu {
    color: var(--light-gold);
    background: rgba(227, 184, 105, 0.09);
    border-style: solid;
    border-color: var(--border-gold);
}

:where(html.hover-ok) .week-cell:hover { border-color: var(--border-gold); color: var(--text-white); }

/* --- Haftalık program dar ekranda ---
   Genel tablo kuralı satırları karta çeviriyor ve <thead>'i gizliyor;
   gün adları oradan geldiği için tamamen kayboluyordu. Artık her hücre
   kendi gün adını data-label ile taşıyor, burada da kart düzenine
   oturuyor: kişi adı başlık, altında yedi gün alt alta. Yatay kaydırma
   gerekmiyor.

   Bu blok BİLEŞENİN ALTINDA duruyor, dosyanın üstündeki genel mobil
   bloğunda değil: .week-grid taban kuralıyla aynı özgüllükte olduğu
   için kaynak sırası belirleyici — üstte yazılsaydı taban kural
   kazanır ve min-width: 560px yürürlükte kalırdı. */
@media (max-width: 768px) {
    .week-grid { min-width: 0; border-spacing: 0; }
    .week-grid-wrap { overflow-x: visible; }

    .week-grid tbody tr { padding: 4px 14px 10px; }

    .week-grid tbody th[scope="row"] {
        display: block;
        width: auto;
        padding: 10px 4px 8px;
        font-size: 0.92rem;
        font-weight: 700;
        text-align: left;
        white-space: normal;
        color: var(--light-gold);
        border-bottom: 1px solid rgba(227, 184, 105, 0.18);
    }

    .week-grid tbody td { padding: 9px 4px; }

    /* Düğme sağda, gün etiketini ezmeyecek genişlikte */
    .week-cell {
        width: auto;
        min-width: 0;
        max-width: 62%;
        min-height: 38px;
        padding: 8px 12px;
    }
}

/* Vardiya atama penceresi upload-modal iskeletini kullanır */
.upload-modal-box .form-group { text-align: left; }

/* ------------------------------------------------------------
   Tarih/saat alanlarının koyu temaya uydurulması
   ------------------------------------------------------------
   Tarayıcı bu alanlara kendi iç parçalarını (saat ikonu, ayırıcı,
   sayı alanları) koyar ve varsayılan renkleri açık temaya göredir.
   color-scheme: dark, tarayıcıya bu alanı koyu temada çizmesini
   söyler — ikon ve seçim rengi de buna uyar.
   ------------------------------------------------------------ */
.form-group input[type="time"],
.form-group input[type="date"],
.hours-row input[type="time"] {
    color-scheme: dark;
    font-variant-numeric: tabular-nums;
}

/* Takvim/saat açma düğmesi altın tonuna çekilir */
.form-group input[type="time"]::-webkit-calendar-picker-indicator,
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.hours-row input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(78%) sepia(28%) saturate(600%) hue-rotate(2deg) brightness(96%);
    cursor: pointer;
    opacity: 0.75;
    transition: var(--transition);
}

:where(html.hover-ok) .form-group input[type="time"]::-webkit-calendar-picker-indicator:hover,
:where(html.hover-ok) .form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
:where(html.hover-ok) .hours-row input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Dükkân saatleri satırındaki alanlar daha dar ve kompakt */
.hours-row input[type="time"] {
    width: auto;
    min-width: 128px;
    padding: 9px 13px;
    font-size: 0.86rem;
}

/* --- Görev planı: gün seçici ve haftalık özet --- */
.day-picker { display: flex; flex-wrap: wrap; gap: 8px; }

.day-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.day-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.day-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 9px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(247, 244, 238, 0.03);
    border: 1px solid var(--border-gray);
    border-radius: 100px;
    transition: var(--transition);
}

.day-chip input:checked + span {
    color: #16130c;
    background: var(--gold-grad);
    border-color: transparent;
}

.day-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

:where(html.hover-ok) .day-chip:hover span { border-color: var(--border-gold); color: var(--text-white); }
:where(html.hover-ok) .day-chip input:checked + span { color: #16130c; }

.plan-days { display: flex; flex-direction: column; gap: 8px; }

.plan-day {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 13px;
    background: rgba(247, 244, 238, 0.02);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
}

.plan-day.dolu { border-color: rgba(227, 184, 105, 0.28); }

.plan-day-ad {
    min-width: 96px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-white);
}

.plan-bos { color: var(--text-muted); font-size: 0.84rem; }

.plan-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px 5px 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
    background: rgba(227, 184, 105, 0.07);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
}

.plan-slot strong { color: var(--light-gold); font-variant-numeric: tabular-nums; }
.plan-slot > span { color: var(--text-muted); }

.plan-slot a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(247, 244, 238, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

:where(html.hover-ok) .plan-slot a:hover { color: var(--danger-text); background: rgba(207, 77, 77, 0.14); }

/* Zorluk puanı rozeti */
.zorluk-rozet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    font-size: 0.86rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--light-gold);
    background: rgba(227, 184, 105, 0.09);
    border: 1px solid var(--border-gold);
    border-radius: 9px;
}

/* ============================================================
   MOBİL DÜZELTMELERİ (çok ajanlı denetim sonucu)
   ------------------------------------------------------------
   Aşağıdaki kuralların hepsi ölçülmüş, doğrulanmış kusurları
   kapatır. Masaüstü görünümüne dokunulmaz: dokunmatik olanlar
   `pointer: coarse`, düzenle ilgili olanlar dar ekran sorgusu
   altındadır.
   ============================================================ */

/* --- iOS zorla yakınlaştırma ---
   Safari, 16px'in ALTINDA yazı tipine sahip bir alana odaklanınca
   sayfayı kendiliğinden yakınlaştırır ve geri çıkmaz; kullanıcı
   formu doldururken ekran kayar. Tek çözüm alanı 16px yapmaktır.
   Yalnızca dokunmatik cihazlarda uygulanır, masaüstü ölçüleri
   aynen kalır. */
@media (pointer: coarse) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group input[type="url"],
    .form-group input[type="search"],
    .form-group input[type="date"],
    .form-group input[type="time"],
    .form-group select,
    .form-group textarea,
    .translation-target,
    .lang-filter-form input,
    .lang-filter-form select,
    .hours-row input[type="time"] {
        font-size: 16px;
    }
}

/* --- Kenar çubuğu açıkken arka plan kaymasın ---
   Kaplama görünürken parmak hareketi alttaki sayfayı kaydırıyordu;
   menü kapanınca kullanıcı bambaşka bir yerde buluyordu kendini. */
body:has(.sidebar.open) { overflow: hidden; }
.sidebar-overlay { touch-action: none; }

/* Kenar çubuğunun kendi kaydırması sayfaya taşmasın (zincirleme
   kaydırma). data-lenis-prevent yalnızca masaüstünde iş görüyor;
   mobilde Lenis çalışmadığı için CSS tarafında da kesiyoruz. */
.sidebar { overscroll-behavior: contain; }

/* --- Dokunma hedefleri ---
   Yalnız ikonlu küçük düğmeler parmakla ıskalanıyordu. Görsel
   boyut korunur, tıklanabilir alan ::after ile büyütülür. */
@media (pointer: coarse) {
    .btn-sm,
    .table-responsive .btn,
    table tbody td .btn {
        min-height: 38px;
    }

    /* Yetki değiştirme / küçük ikon bağlantıları */
    .toggle-link,
    .icon-link,
    a.btn[style*="padding: 2px"],
    a.btn[style*="padding:2px"] {
        position: relative;
    }

    .toggle-link::after,
    .icon-link::after,
    a.btn[style*="padding: 2px"]::after,
    a.btn[style*="padding:2px"]::after {
        content: '';
        position: absolute;
        top: 50%; left: 50%;
        width: 44px; height: 44px;
        transform: translate(-50%, -50%);
    }

    /* Gün "Kapalı" anahtarı ve QR ekranındaki vazgeç bağlantısı */
    .hours-closed { min-height: 40px; }
    .hours-closed input[type="checkbox"] { width: 22px; height: 22px; }
    .tarama-vazgec { display: inline-block; padding: 11px 18px; }
}

/* --- Kart görünümünde işlem hücresi ---
   Düğmeler <td>'nin doğrudan çocuğuysa satır sarmıyordu ve
   düğmeler içerik genişliğinin altına sıkışıp metinleri hapın
   dışına taşıyordu. Sarmalayıcısı olmayan hücreler de düzelsin
   diye kural hücrenin kendisine veriliyor. */
@media (max-width: 768px) {
    table tbody td { flex-wrap: wrap; }
    table tbody td .btn { flex-shrink: 0; }

    /* Uzun kullanıcı adları rozetin dışına taşıyordu: kart
       görünümünde <code> de sarabilmeli. Bu kural, dosyanın
       üstündeki genel `table code { white-space: nowrap }`
       kuralını sıralama gereği yener. */
    table tbody td code {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* --- .table-wrapper tanımsızdı ---
   staff_editor.php üç tabloyu bu sınıfla sarıyor ama hiçbir CSS
   dosyasında karşılığı yoktu; yani taşan içerik için kaydırma
   kurtarması hiç devreye girmiyordu. */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

/* --- Boş durum satırları ---
   colspan'lı "kayıt yok" hücrelerinde satır içi text-align:center,
   hücre esnek satıra döndüğü için işlevsiz kalıyor ve mesaj sağa
   yaslanıyordu. Kart görünümünde bu hücre blok olmalı. */
@media (max-width: 768px) {
    table tbody td[colspan] {
        display: block;
        text-align: center;
    }
    table tbody td[colspan]::before { content: none; }
}

/* --- Programım satırı dar ekranda ---
   Sabit genişlikli saat sütunu ile büzülmeyen atanan rozeti,
   ortadaki iş adını 53px'e sıkıştırıp harf harf sardırıyordu.
   Satır sarsın: saat + ad üstte, rozet altta. */
@media (max-width: 400px) {
    .program-is { align-items: flex-start; }
    .program-ad { flex: 1 1 100%; order: 2; }
    .program-saat { order: 1; }
    .program-is .task-badge { order: 3; margin-left: 55px; }
}

/* --- QR gerektirmeyen görevlerin tamamlama düğmesi --- */
.task-bitir { margin-top: 10px; }
.task-bitir .btn { width: auto; }
/* Not/fotoğraf kutusu açıkken Tamamlandı düğmesi kutuya yapışmasın */
.task-bitir button[type="submit"] { margin-top: 14px; }

.task-qr-not {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.76rem;
    color: var(--text-dim);
}

/* Görev listesinde tamamlama türü rozeti (işveren tarafı) */
.gorev-tur {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gray);
    border-radius: 100px;
}

.gorev-tur.qr {
    color: var(--light-gold);
    background: rgba(227, 184, 105, 0.08);
    border-color: var(--border-gold);
}

/* --- Erken çıkış gerekçesi (QR tarama ekranı) --- */
.tarama-gerekce { margin-top: 18px; text-align: left; }

.tarama-gerekce label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-gray);
}

.tarama-gerekce textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    resize: vertical;
}

.tarama-gerekce textarea:focus {
    outline: none;
    border-color: var(--border-gold);
}

/* iOS zorla yakınlaştırma önlemi burada da geçerli */
@media (pointer: coarse) {
    .tarama-gerekce textarea { font-size: 16px; }
}

/* --- İşe giriş/çıkış özeti (işveren raporu) --- */
.devam-satir {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.devam-satir > div:first-child { min-width: 0; flex: 1; }
.devam-satir strong { display: block; font-size: 0.92rem; color: var(--text-white); }
/* Yalnız ad/tarih bilgi satırı: seçici genel bırakılınca sağdaki
   rozetleri de blok yapıp sayıyı kutunun sol üstüne yapıştırıyordu */
.devam-satir > div:first-child span { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-dim); }

.devam-gerekce {
    display: block;
    margin-top: 7px;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.55;
    color: var(--text-gray);
    overflow-wrap: anywhere;
}

.devam-gerekce i { margin-right: 6px; color: var(--text-dim); font-size: 0.7rem; }

.devam-rozetler { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex-shrink: 0; }

/* --- Personel paneli: sağ altta yüzen QR okutma düğmesi ---
   Menüden gezinmeye gerek kalmadan tek dokunuşla tarayıcı açılır.
   Yalnız telefon/tablet: masaüstünde kenar çubuğu zaten görünür. */
.qr-fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: none;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #16130c;
    background: linear-gradient(135deg, #E9C989, #C89545);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px -8px rgba(227, 184, 105, 0.55), 0 4px 14px rgba(0, 0, 0, 0.45);
}
.qr-fab:active { transform: scale(0.94); }

@media (max-width: 992px), (pointer: coarse) {
    .qr-fab { display: inline-flex; }
}

/* --- Personel: işe giriş yapılmadan Bugün açılırsa uyarı ---
   Arka planı bulanıklaştıran tam ekran perde + ortada kart.
   inset:0 yerine width:var(--vpw): sayfa yatay taşarsa tam
   genişlikli sabit katman taşmayı kalıcılaştırıyordu (bilinen tuzak). */
.giris-uyari {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--vpw, 100%);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 7, 9, 0.55);
    backdrop-filter: blur(14px) saturate(0.9);
    -webkit-backdrop-filter: blur(14px) saturate(0.9);
}
.giris-uyari[hidden] { display: none; }

.giris-uyari-kart {
    max-width: 380px;
    width: 100%;
    text-align: center;
    padding: 30px 24px 22px;
    background: var(--bg-card, #101014);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.giris-uyari-ikon { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.giris-uyari-kart h2 { font-size: 1.15rem; color: var(--text-white); margin: 0 0 8px; }
.giris-uyari-kart p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.65; margin: 0 0 18px; }
.giris-uyari-kart .btn { width: 100%; justify-content: center; }
.giris-uyari-kapat {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}

/* --- Bugün: "sadece benim görevlerim" süzgeci --- */
.benim-filtre {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 4px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.88rem;
    font-weight: 600;
    user-select: none;
}
.benim-filtre input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* --- Görev tamamlarken bırakılan not/fotoğraf (opsiyonel) --- */
.tarama-ek {
    margin-top: 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}

.tarama-ek > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: var(--text-gray);
    cursor: pointer;
    list-style: none;
}

.tarama-ek > summary::-webkit-details-marker { display: none; }
.tarama-ek > summary i { color: var(--text-dim); }

/* "isteğe bağlı" ibaresi görünür olsun: personel zorunlu sanmasın.
   nowrap + shrink yasağı: dar ekranda ibare iki satıra bölünüp
   sola yapışıyordu — hap tek parça kalır, uzun başlık metni sarar. */
.tarama-ek > summary span {
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.7rem;
    padding: 3px 9px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
}

.tarama-ek[open] > summary { border-bottom: 1px solid var(--border-gray); }

.tarama-ek-govde { padding: 14px; }

.tarama-ek-govde label {
    display: block;
    margin: 0 0 7px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tarama-ek-govde label + * { margin-bottom: 14px; }

/* Dosya alanı paylaşılan .file-field bileşenine bırakılıyor
   (ui-helpers.js sarmalıyor); burada yalnızca metin alanı biçimlenir. */
.tarama-ek-govde textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    resize: vertical;
}

.tarama-ek-govde textarea:focus { outline: none; border-color: var(--border-gold); }

.tarama-ek-govde .file-field { margin-bottom: 0; }

@media (pointer: coarse) {
    .tarama-ek-govde textarea { font-size: 16px; }
    .tarama-ek > summary { min-height: 44px; }
}

/* Atlanan tekrar: yapılmayan işten görsel olarak ayrı */
.task-badge.skipped {
    color: #b9a37a;
    background: rgba(185, 163, 122, 0.12);
    border-color: rgba(185, 163, 122, 0.3);
}

.task-row.skipped { opacity: 0.72; }
.task-row.skipped .task-name { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.35); }

.rapor-cubuk > i.atlanan { background: linear-gradient(90deg, #8d7f66, #b9a37a); }
.rapor-alt span:nth-child(3) i { color: #b9a37a; }
.rapor-alt span:nth-child(4) i { color: #e07171; }

/* Personelin bıraktığı notlar (işveren raporu) */
.gorev-notlari { display: flex; flex-direction: column; gap: 4px; }

.gorev-not {
    display: flex;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gorev-not-foto { flex-shrink: 0; }

.gorev-not-foto img {
    display: block;
    width: 72px; height: 72px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
}

.gorev-not > div { min-width: 0; flex: 1; }
.gorev-not strong { display: block; font-size: 0.9rem; color: var(--text-white); }
.gorev-not span { display: block; margin-top: 3px; font-size: 0.76rem; color: var(--text-dim); }

.gorev-not p {
    margin: 7px 0 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-gray);
    overflow-wrap: anywhere;
}

/* ============================================================
   PERSONEL TARAFINDAKİ TEK KARTLIK EKRANLAR
   ------------------------------------------------------------
   Personel girişi ve QR okutma ekranı 420px'lik giriş kartını
   miras alıyordu. O ölçü yalnızca kullanıcı adı + şifre için
   düşünülmüştü; burada görev adı, açıklama, not alanı ve dosya
   seçici de var, geniş ekranda hepsi gereğinden dar kalıyordu.

   Yönetim ve müşteri giriş ekranları bilerek dışarıda: onların
   içeriği değişmedi.
   ============================================================ */
/* QR ekranındaki sarmalayıcı hiçbir yerde tanımlı değildi.
   Esnek bir öğe olarak içeriğine göre büzülüyor, içindeki kartın
   width:100% değeri de o büzülmüş genişliğe göre çözülüyordu:
   max-width 520px olmasına rağmen kart 483px kalıyordu. */
.login-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 560px) {
    .login-card.genis {
        max-width: 520px;
        padding: 52px 48px 42px;
    }
}

/* Dar ekranda kart zaten tam genişlikte; yalnızca iç boşluk
   biraz ferahlar */
@media (max-width: 559px) {
    .login-card.genis { padding: 40px 26px 34px; }
}

/* ============================================================
   KAYITLAR SEKMESİ — süzgeç, sayfalama, silme
   ============================================================ */

.kayit-turleri {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.kayit-suzgec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 16px;
    background: rgba(247, 244, 238, 0.022);
    border: 1px solid var(--border-gray);
    border-radius: 14px;
}

/* Izgara öğesi varsayılan min-width: auto ile kabından taşabilir */
.kayit-suzgec > * { min-width: 0; }
.suzgec-alan.buyuk { grid-column: span 2; }

.suzgec-alan label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.suzgec-alan input,
.suzgec-alan select {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    /* Tarih ve saat denetimleri karanlık temaya uysun */
    color-scheme: dark;
}

.suzgec-alan input:focus,
.suzgec-alan select:focus { outline: none; border-color: var(--border-gold); }

.suzgec-dugmeler {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kayit-ozet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* Satır sonundaki sil düğmesi: görünür ama baskın değil */
.kayit-sil {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 9px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

:where(html.hover-ok) .kayit-sil:hover {
    color: var(--danger-text);
    border-color: rgba(207, 77, 77, 0.4);
    background: rgba(207, 77, 77, 0.08);
}

.gorev-not .kayit-sil { align-self: flex-start; }

/* ---------- Sayfalama ---------- */
.sayfalama {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sayfa-no,
.sayfa-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

:where(html.hover-ok) .sayfa-no:hover,
:where(html.hover-ok) .sayfa-ok:not(.pasif):hover {
    color: var(--gold);
    border-color: var(--border-gold);
}

.sayfa-no.aktif {
    color: #16130c;
    background: var(--gold-grad);
    border-color: transparent;
}

/* Devre dışı ok tıklanabilir görünmemeli */
.sayfa-ok.pasif { opacity: 0.35; pointer-events: none; }

.sayfa-bosluk { padding: 0 4px; color: var(--text-dim); }

@media (max-width: 560px) {
    .suzgec-alan.buyuk { grid-column: 1 / -1; }
    .kayit-suzgec { grid-template-columns: 1fr 1fr; }
    .suzgec-dugmeler { grid-column: 1 / -1; }
}

@media (pointer: coarse) {
    .suzgec-alan input,
    .suzgec-alan select { font-size: 16px; }
    .kayit-sil { width: 40px; height: 40px; }
}

/* ============================================================
   AÇILIR LİSTELERİN KOYU TEMASI — genel kural
   ------------------------------------------------------------
   <option> listesini işletim sistemi çizer; sayfanın arka planını
   miras almaz. Kapalı hâldeki <select> koyu görünse bile açılan
   liste beyaz zemine düşer ve select'ten miras alınan açık renkli
   metin okunmaz hâle gelir.

   Bu kural daha önce yalnızca .form-group ve .lang-filter-form
   kapsamlarında vardı; o kapsamların dışında kalan her yeni seçici
   (süzgeç çubuğu gibi) aynı hatayı yeniden üretiyordu. Artık
   panelin tamamında geçerli.

   color-scheme: dark, tarayıcıya listeyi kendi koyu temasıyla
   çizmesini söyler; background/color ise bunu desteklemeyen
   tarayıcılarda yedek olarak kalır.
   ============================================================ */
select {
    color-scheme: dark;
}

select option,
select optgroup {
    background-color: #131315;
    color: var(--text-white);
}

/* Seçili ve vurgulanan satır okunur kalsın */
select option:checked {
    background: linear-gradient(#2a2418, #2a2418);
    color: var(--light-gold);
}

select option:disabled {
    color: var(--text-dim);
}

/* ============================================================
   Paket / ödeme / çekim randevusu (v7.9)
   ============================================================ */

/* ---------- Bölüm başlığı (kartların dışında) ---------- */
.bolum-baslik {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 14px;
}
.bolum-baslik > * { min-width: 0; }
.bolum-baslik h2 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.bolum-baslik p { margin-top: 4px; font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }
.bolum { margin-bottom: 32px; }
.bolum:last-child { margin-bottom: 0; }

/* Ürün simgesi kutusu */
.urun-ikon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(201, 164, 94, 0.09);
    border: 1px solid rgba(201, 164, 94, 0.22);
    color: var(--gold);
    font-size: 1rem;
}

/* ---------- Abonelik kartları ---------- */
.abo-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 16px;
}
.abo-kart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
}
.abo-kart.uyari { border-color: rgba(214, 164, 69, 0.4); }
.abo-kart.hata { border-color: rgba(210, 88, 75, 0.42); }
.abo-ust { display: flex; align-items: flex-start; gap: 14px; }
.abo-ust > div { flex: 1; min-width: 0; }
.abo-ust h3 { font-size: 0.98rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.abo-ust .badge { margin-top: 7px; }
.abo-satirlar {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
    font-size: 0.88rem;
}
.abo-satirlar > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.abo-satirlar dt { color: var(--text-muted); }
.abo-satirlar dd { min-width: 0; color: var(--text-white); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.abo-not { font-size: 0.84rem; line-height: 1.6; color: var(--text-gray); }
.abo-not.uyari { color: var(--warning-text); }
.abo-not.hata { color: var(--danger-text); }
.abo-eylem { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.abo-eylem form { display: contents; }
.abo-alt { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 12px; border-top: 1px solid var(--border-gray); }
.abo-alt .btn { margin-left: -13px; color: var(--text-muted); }
:where(html.hover-ok) .abo-alt .btn:hover { color: var(--text-white); }

/* ---------- Ödeme bekleyen siparişler ---------- */
.bekleyen-liste { display: flex; flex-direction: column; gap: 12px; }
.bekleyen-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
}
.bekleyen-satir.onayda { border-color: rgba(107, 155, 209, 0.34); }
.bekleyen-bilgi { flex: 1 1 200px; min-width: 0; }
.bekleyen-bilgi strong { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.bekleyen-bilgi small { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.bekleyen-tutar { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.bekleyen-satir > .btn-row { margin-left: auto; }
.bekleyen-satir > .btn-row form { display: contents; }

/* ---------- Hizmet kataloğu ---------- */
.katalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}
.urun-kart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 22px 20px 20px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
}
.urun-kart.one-cikan { border-color: var(--border-gold); }
.urun-kart-ust { display: flex; align-items: center; gap: 12px; }
.urun-kart-ust h3 { flex: 1; min-width: 0; font-size: 0.98rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.urun-kart > p { font-size: 0.86rem; line-height: 1.6; color: var(--text-gray); }
.urun-kart form { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.urun-kart .btn-row .btn { flex: 1 1 auto; }

.urun-fiyat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.urun-fiyat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text-white); line-height: 1.2; }
.urun-fiyat span { font-size: 0.86rem; color: var(--text-muted); }
.urun-fiyat-not { margin-top: -10px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.urun-fiyat-not s { color: var(--text-dim); }
.urun-kart [data-donem][hidden] { display: none; }

.deneme-not {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--success-text);
}
.deneme-not i { margin-top: 3px; flex-shrink: 0; }

/* Aylık / yıllık seçici */
.donem-sec {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    gap: 2px;
    padding: 3px;
    background: var(--bg-deep);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
}
.donem-sec label { position: relative; display: flex; min-width: 0; }
.donem-sec input { position: absolute; opacity: 0; pointer-events: none; }
.donem-sec span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-gray);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}
.donem-sec em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--success-text); }
.donem-sec input:checked + span { background: var(--surface-3); color: var(--text-white); box-shadow: inset 0 0 0 1px var(--border-strong); }
.donem-sec input:focus-visible + span { box-shadow: var(--focus-ring); }

.urun-kart .form-group label { font-size: 0.8rem; margin-bottom: 6px; }

/* ---------- Kayıtlı ödeme yöntemleri ---------- */
.yontem-kayitlar { display: flex; flex-direction: column; gap: 10px; }
.yontem-kayit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
}
.yontem-kayit > i { width: 24px; text-align: center; font-size: 1.1rem; color: var(--text-gray); }
.yontem-kayit > div { flex: 1 1 160px; min-width: 0; }
.yontem-kayit strong { display: block; font-size: 0.92rem; overflow-wrap: anywhere; }
.yontem-kayit small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--text-muted); }
.yontem-kayit form { margin-left: auto; }
.guvence-not { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); }
.guvence-not i { margin-top: 3px; flex-shrink: 0; }

/* ---------- Ödeme ekranı ---------- */
.odeme-duzen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 24px;
    align-items: start;
}
.odeme-duzen > .panel-card { margin-bottom: 0; }
.odeme-adimlar { grid-column: 1; grid-row: 1; min-width: 0; }
.odeme-ozet { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--topbar-h) + 24px); min-width: 0; }
.odeme-ozet h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.ozet-urun { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border-gray); }
.ozet-urun > div { min-width: 0; }
.ozet-urun strong { display: block; font-size: 0.95rem; line-height: 1.35; overflow-wrap: anywhere; }
.ozet-urun small { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--text-muted); }
.ozet-satir {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-gray);
}
.ozet-satir > span { min-width: 0; }
.ozet-satir strong { color: var(--text-white); font-weight: 600; white-space: nowrap; }
.ozet-toplam { padding-top: 16px; border-bottom: 0; font-size: 0.98rem; font-weight: 700; color: var(--text-white); }
.ozet-toplam strong { font-size: 1.3rem; font-weight: 800; }
.ozet-alt { margin-top: 6px; font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); }

/* Adımlar */
.adim { padding: 24px 0; border-top: 1px solid var(--border-gray); }
.adim:first-child, form > .adim:first-of-type { padding-top: 0; border-top: 0; }
.adim:last-child { padding-bottom: 0; }
.adim-baslik { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 0.95rem; font-weight: 700; }
.adim-no {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    font-size: 0.76rem;
    font-weight: 700;
}
.adim > p { margin-bottom: 16px; font-size: 0.88rem; line-height: 1.6; color: var(--text-gray); }

/* Seçenek kartları (plan, ödeme yöntemi) */
.secenek-liste { display: grid; gap: 10px; }
.secenek-liste.iki { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.secenek {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    background: var(--bg-deep);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.secenek:has(input:checked) { border-color: var(--gold); background: rgba(201, 164, 94, 0.06); }
.secenek:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.secenek input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.secenek > i { flex: 0 0 auto; width: 22px; text-align: center; color: var(--text-gray); }
.secenek > span { flex: 1; min-width: 0; }
.secenek strong { display: block; font-size: 0.92rem; line-height: 1.35; }
.secenek small { display: block; margin-top: 3px; font-size: 0.8rem; line-height: 1.45; color: var(--text-muted); }
.secenek .badge { flex: 0 0 auto; }

/* Deneme zaman çizelgesi */
.zaman-cizelge { list-style: none; margin: 0; padding: 0; }
.zaman-cizelge li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.zaman-cizelge li:last-child { padding-bottom: 0; }
.zaman-cizelge li::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 2px solid var(--border-strong);
}
.zaman-cizelge li.su-an::before { background: var(--success); border-color: var(--success); }
.zaman-cizelge li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: 2px;
    width: 2px;
    background: var(--border-gray);
}
.zaman-cizelge strong { display: block; font-size: 0.9rem; }
.zaman-cizelge small { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); }

/* Kart formu (PayTR Direkt: bilgiler doğrudan PayTR'ye gider) */
.kart-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kart-form .tam { grid-column: 1 / -1; }
.kart-form .form-group { margin: 0; }
.kart-form input { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.kart-tarih { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

/* Sözleşme onayı */
.sozlesme-onay-satir {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-gray);
    cursor: pointer;
}
.sozlesme-onay-satir input { flex-shrink: 0; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.sozlesme-onay-satir a { color: var(--light-gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* PayTR iFrame */
.paytr-cerceve { width: 100%; min-height: 520px; border: 0; border-radius: var(--radius-sm); background: #fff; }

/* ---------- Havale bilgileri ---------- */
.iban-kart { display: flex; flex-direction: column; gap: 10px; }
.iban-satir {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: var(--bg-deep);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
:where(html.hover-ok) .iban-satir:hover { border-color: var(--border-gold); }
.iban-satir:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.iban-satir > i:first-child { flex-shrink: 0; width: 20px; text-align: center; color: var(--text-gray); }
.iban-satir > div { flex: 1; min-width: 0; }
.iban-satir small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.iban-satir strong { display: block; margin-top: 2px; font-size: 0.93rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.iban-satir .kopya-ikon { flex-shrink: 0; color: var(--text-muted); }
.iban-satir .kopya-rozet {
    position: absolute;
    top: -11px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--text-white);
    color: var(--on-primary);
    font-size: 0.72rem;
    font-weight: 700;
}

/* ---------- Sözleşme penceresi ---------- */
.sozlesme-popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 5, 7, 0.78);
}
.sozlesme-popup[hidden] { display: none; }
body:has(.sozlesme-popup:not([hidden])) { overflow: hidden; }
.sozlesme-popup-ic {
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: min(86vh, 760px);
    max-height: min(86dvh, 760px);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}
.sozlesme-popup-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 14px 20px;
    border-bottom: 1px solid var(--border-gray);
}
.sozlesme-popup-baslik h3 { min-width: 0; font-size: 1rem; font-weight: 700; }
.sozlesme-kapat {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-gray);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
:where(html.hover-ok) .sozlesme-kapat:hover { background: var(--surface-2); color: var(--text-white); }
.sozlesme-metin { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px; }
.sozlesme-metin h4 { margin: 22px 0 10px; font-size: 0.98rem; font-weight: 700; color: var(--light-gold); }
.sozlesme-metin h4:first-child { margin-top: 0; }
.sozlesme-metin h5 { margin: 16px 0 6px; font-size: 0.88rem; font-weight: 700; }
.sozlesme-metin p { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.7; color: var(--text-gray); }
.sozlesme-tarih { margin-top: 18px !important; font-style: italic; color: var(--text-muted) !important; }
.sozlesme-popup-alt { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-gray); }

/* ---------- Ödeme sonucu (sade sayfa) ---------- */
.durum-ikon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 10px auto 18px;
    border-radius: 50%;
    border: 1px solid;
    font-size: 1.45rem;
}
.durum-ikon.basari { color: var(--success-text); background: rgba(93, 179, 122, 0.1); border-color: rgba(93, 179, 122, 0.36); }
.durum-ikon.bekle { color: var(--light-gold); background: rgba(201, 164, 94, 0.08); border-color: rgba(201, 164, 94, 0.3); }
.durum-ikon.hata { color: var(--danger-text); background: rgba(210, 88, 75, 0.1); border-color: rgba(210, 88, 75, 0.36); }
.durum-donen {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid rgba(201, 164, 94, 0.22);
    border-top-color: var(--gold);
    animation: durumDon 0.8s linear infinite;
}
@keyframes durumDon { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .durum-donen { animation-duration: 2.4s; } }
.durum-baslik { margin-bottom: 10px; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.durum-metin { margin-bottom: 24px; font-size: 0.92rem; line-height: 1.65; color: var(--text-gray); }

/* ---------- Diğer sayfalarda kullanılan eski bileşenler (yeni paletle) ---------- */
.abonelik-liste { display: flex; flex-direction: column; gap: 10px; }
.abonelik-satir {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
}
.abonelik-satir > i { width: 22px; text-align: center; color: var(--gold); }
.abonelik-satir > div { flex: 1 1 160px; min-width: 0; }
.abonelik-satir strong { display: block; font-size: 0.93rem; }
.abonelik-satir small { font-size: 0.8rem; color: var(--text-muted); }
.kalan-rozet {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 11px;
    border-radius: 100px;
    border: 1px solid rgba(93, 179, 122, 0.32);
    background: rgba(93, 179, 122, 0.1);
    color: var(--success-text);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.kalan-rozet.az { border-color: rgba(214, 164, 69, 0.34); background: rgba(214, 164, 69, 0.1); color: var(--warning-text); }
.yenileme-kutu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(214, 164, 69, 0.07);
    border: 1px solid rgba(214, 164, 69, 0.28);
    border-radius: var(--radius-sm);
}
.yenileme-kutu p { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--warning-text); }
.yenileme-kutu .btn { flex-shrink: 0; }

@media (max-width: 992px) {
    .odeme-duzen { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .odeme-ozet { position: static; }
    .odeme-ozet, .odeme-adimlar { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) {
    .bekleyen-satir > .btn-row { width: 100%; margin-left: 0; }
    .bekleyen-satir > .btn-row .btn { flex: 1 1 0; }
    .abo-eylem .btn-row .btn { flex: 1 1 auto; }
    .kart-form { grid-template-columns: minmax(0, 1fr); }
    .secenek { gap: 12px; padding: 14px; }
    .secenek > i { display: none; }
    .yontem-kayit form { width: 100%; margin-left: 0; }
    .yontem-kayit form .btn { width: 100%; }
    .sozlesme-popup { padding: 0; align-items: flex-end; }
    .sozlesme-popup-ic { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
    .sozlesme-popup-alt .btn { flex: 1 1 auto; }
    .yenileme-kutu .btn { width: 100%; }
}

/* ---------- Çekim randevusu takvimi ---------- */
.cekim-ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.kredi-rozet {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    background: rgba(227, 184, 105, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 30px;
    color: var(--light-gold);
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 100%;
    line-height: 1.4;
}
.kredi-rozet.bos { background: rgba(207, 77, 77, 0.08); border-color: rgba(207, 77, 77, 0.3); color: #e79c9c; }

.hafta-gezgin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hafta-gezgin span { color: var(--text-gray); font-size: 0.86rem; white-space: nowrap; }

.cekim-tablo-sar { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border-gray); margin-top: 16px; }

.cekim-tablo { width: 100%; border-collapse: collapse; min-width: 760px; }
.cekim-tablo th, .cekim-tablo td {
    border: 1px solid var(--border-gray);
    padding: 4px;
    text-align: center;
    vertical-align: middle;
}
.cekim-tablo thead th { background: rgba(255, 252, 245, 0.03); padding: 10px 6px; }
.cekim-tablo thead th span { display: block; color: var(--text-white); font-size: 0.82rem; }
.cekim-tablo thead th small { color: var(--text-gray); font-size: 0.7rem; }
.cekim-tablo thead th.bugun { background: rgba(227, 184, 105, 0.09); }
.cekim-tablo thead th.bugun span { color: var(--gold); }
.cekim-tablo .saat-sutun {
    width: 58px;
    color: var(--text-gray);
    font-size: 0.78rem;
    background: rgba(255, 252, 245, 0.02);
    white-space: nowrap;
}
.cekim-tablo td form { margin: 0; }

.slot {
    min-height: 40px;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.76rem;
    padding: 4px;
    position: relative;
}
button.slot { width: 100%; border: none; cursor: pointer; font-family: inherit; }

.slot.bos {
    background: rgba(79, 174, 110, 0.07);
    border: 1px dashed rgba(79, 174, 110, 0.35);
    color: var(--success-text);
    transition: background 0.2s ease;
}
.slot.bos:hover { background: rgba(79, 174, 110, 0.18); }

.slot.dolu { background: rgba(207, 77, 77, 0.08); color: #d98c8c; }
.slot.gecmis { background: rgba(255, 252, 245, 0.015); }
.slot.kilitli { background: rgba(255, 252, 245, 0.02); color: var(--text-muted); }
.slot.serbest { background: rgba(255, 252, 245, 0.015); }

.slot.benim, .slot.randevu {
    background: rgba(227, 184, 105, 0.13);
    border: 1px solid var(--border-gold);
    color: var(--light-gold);
}
.slot.mesgul {
    background: rgba(207, 77, 77, 0.1);
    border: 1px solid rgba(207, 77, 77, 0.3);
    color: #e79c9c;
}
.slot.devam { border-style: dashed; opacity: 0.55; }
.slot small { color: var(--text-gray); font-size: 0.68rem; }

.slot form { position: absolute; top: 2px; right: 4px; }
.slot form button {
    background: none; border: none;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}
.slot form button:hover { color: #e79c9c; }

/* ---------- Site durumu (aşama çubuğu) ---------- */
.site-asama-sar { position: relative; padding: 26px 8px 6px; }

.site-asama-cizgi {
    position: absolute;
    top: 49px;
    left: calc(16.66% - 20px);
    right: calc(16.66% - 20px);
    height: 3px;
    background: var(--border-gray);
    border-radius: 3px;
    overflow: hidden;
}
.site-asama-doluluk {
    height: 100%;
    background: var(--gold-grad);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.site-asamalar { display: flex; position: relative; }
.site-asama {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.site-asama-nokta {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--bg-card-solid);
    border: 2px solid var(--border-gray);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.site-asama span { color: var(--text-muted); font-size: 0.8rem; max-width: 150px; line-height: 1.4; }
.site-asama.bitti .site-asama-nokta { border-color: var(--gold); color: var(--gold); background: #1b1710; }
.site-asama.bitti span { color: var(--text-gray); }
.site-asama.aktif .site-asama-nokta {
    border-color: var(--gold);
    color: #17130a;
    background: var(--gold-grad);
    box-shadow: 0 0 24px rgba(227, 184, 105, 0.3);
}
.site-asama.aktif span { color: var(--light-gold); font-weight: 600; }

/* ---------- Yönetim: sipariş/abonelik formları ---------- */
.durum-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.durum-form select, .durum-form input {
    background: #1c1c20;
    color: var(--text-white);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.84rem;
}

.abo-ekle-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
}
.abo-ekle-satir { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.abo-ekle-satir select, .abo-ekle-satir input {
    background: #1c1c20;
    color: var(--text-white);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.86rem;
}

.hesap-tablo input {
    width: 100%;
    min-width: 150px;
    background: #1c1c20;
    color: var(--text-white);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 9px 11px;
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .site-asama span { font-size: 0.68rem; }
    .site-asama-nokta { width: 38px; height: 38px; font-size: 0.85rem; }
    .odeme-butonlar .btn { width: 100%; }
}

/* ------------------------------------------------------------
   Çekim takvimi mobil düzeltmesi
   ------------------------------------------------------------
   768px altındaki genel kural tabloları kart görünümüne çevirir
   (thead gizlenir, satırlar blok olur). Takvim ise GERÇEK bir
   ızgaradır: kart görünümü gün başlıklarını yok edip hücreleri
   üst üste diziyordu. Takvim tablo düzeninde kalır ve kendi
   sarmalayıcısında yatay kaydırılır.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .cekim-tablo { table-layout: auto; min-width: 700px; }
    .cekim-tablo thead { display: table-header-group; }
    .cekim-tablo tbody tr {
        display: table-row;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
    }
    .cekim-tablo tbody td {
        display: table-cell;
        text-align: center;
        padding: 4px;
        border: 1px solid var(--border-gray);
    }
    .cekim-tablo tbody td:last-child { border-bottom: 1px solid var(--border-gray); }
    /* Genel mobil kuralin white-space: normal !important ezmesine karsi */
    .cekim-tablo .saat-sutun {
        min-width: 52px;
        white-space: nowrap !important;
    }
}

/* ------------------------------------------------------------
   Çekim takvimi — mobil görünüm (gün seç + saat listesi)
   ------------------------------------------------------------
   Dar ekranda 7 sütunlu ızgara yatay kaydırma istiyordu; mobilde
   ızgara tümüyle gizlenir, yerine gün çipleri + o günün dokunmaya
   uygun saat listesi gelir.
   ------------------------------------------------------------ */
.cekim-mobil { display: none; margin-top: 16px; }

@media (max-width: 768px) {
    .cekim-tablo-sar { display: none; }
    .cekim-mobil { display: block; }
}

.gun-cipleri {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gun-cipleri::-webkit-scrollbar { display: none; }

.gun-cip {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.gun-cip span { color: var(--text-gray); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }
.gun-cip strong { color: var(--text-white); font-size: 1.02rem; }
.gun-cip.bugun { border-color: var(--border-gold); }
.gun-cip.bugun span { color: var(--gold); }
.gun-cip.secili { background: rgba(227, 184, 105, 0.12); border-color: var(--gold); }
.gun-cip.secili strong { color: var(--light-gold); }
.gun-cip.pasif { opacity: 0.4; }

.gun-liste { display: flex; flex-direction: column; gap: 10px; }
/* display: flex, [hidden] niteliginin varsayilan display: none kuralini
   ezdigi icin TUM gunlerin listeleri ust uste basiliyordu */
.gun-liste[hidden] { display: none !important; }
.gun-bos {
    color: var(--text-gray);
    font-size: 0.88rem;
    text-align: center;
    padding: 22px 10px;
    border: 1px dashed var(--border-gray);
    border-radius: 12px;
    margin: 0;
}

.mobil-slot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    background: rgba(79, 174, 110, 0.07);
    border: 1px dashed rgba(79, 174, 110, 0.35);
    border-radius: 12px;
    color: var(--success-text);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
}
.mobil-slot i { font-size: 0.85rem; }
.mobil-slot.kilitli {
    background: rgba(255, 252, 245, 0.02);
    border-color: var(--border-gray);
    color: var(--text-muted);
    cursor: default;
}

.mobil-kayit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
}
.mobil-kayit.benim {
    background: rgba(227, 184, 105, 0.1);
    border: 1px solid var(--border-gold);
}
.mobil-kayit.dolu {
    background: rgba(207, 77, 77, 0.07);
    border: 1px solid rgba(207, 77, 77, 0.25);
}
.mobil-kayit > i { width: 20px; text-align: center; }
.mobil-kayit.benim > i { color: var(--gold); }
.mobil-kayit.dolu > i { color: #d98c8c; }
.mobil-kayit > div { flex: 1; min-width: 0; }
.mobil-kayit strong { display: block; color: var(--text-white); font-size: 0.95rem; }
.mobil-kayit small { color: var(--text-gray); font-size: 0.78rem; }
.mobil-kayit form { margin: 0; }
.mobil-kayit form button {
    background: none;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-gray);
    padding: 7px 13px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
}
.mobil-kayit form button:hover { color: #e79c9c; border-color: rgba(207, 77, 77, 0.4); }

/* Hafta gezgini: tarih metni daralabilsin, oklar hizada kalsın */
.hafta-gezgin span { min-width: 0; }

.hafta-gezgin em { font-style: normal; }
.hafta-gezgin .gezgin-kisa { display: none; }

@media (max-width: 768px) {
    .hafta-gezgin { gap: 8px; }
    .hafta-gezgin span { font-size: 0.82rem; }
    .hafta-gezgin .btn-sm { padding: 7px 11px; font-size: 0.72rem; }
    /* Dar ekranda yil gosterilmez: "31.08 — 06.09" — Bu Hafta ayni satirda kalir */
    .hafta-gezgin .gezgin-tam { display: none; }
    .hafta-gezgin .gezgin-kisa { display: inline; }
}

/* ============================================================
   QR menü — kasa ekranı ve masa yönetimi (v8.2)
   ============================================================ */
.kasa-ust { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.kasa-ozet { display: flex; gap: 10px; flex-wrap: wrap; }
.kasa-sayac {
    min-width: 90px;
    flex: 1 1 auto;   /* dar ekranda tutar kartın içinde kırılmasın; kart bütün olarak alt satıra insin */
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    text-align: center;
}
.kasa-sayac span { display: block; color: var(--text-white); font-size: 1.3rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.kasa-sayac small { color: var(--text-gray); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.kasa-sayac.yeni { border-color: var(--border-gold); }
.kasa-sayac.yeni span { color: var(--gold); }

.ses-serit {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 16px; padding: 12px 16px;
    background: rgba(227, 184, 105, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--light-gold);
    font-size: 0.88rem;
}
.ses-serit[hidden] { display: none; }
.ses-serit span { flex: 1; min-width: 200px; }

.kasa-araclar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.kasa-filtreler { display: flex; gap: 6px; flex-wrap: wrap; }
.kasa-filtre {
    background: var(--bg-card); border: 1px solid var(--border-gray); color: var(--text-gray);
    padding: 8px 14px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; font-family: inherit;
}
.kasa-filtre.secili { background: rgba(227, 184, 105, 0.14); border-color: var(--gold); color: var(--light-gold); }
.kasa-secim {
    background: #1c1c20; color: var(--text-white); border: 1px solid var(--border-gray);
    border-radius: 8px; padding: 8px 12px; font-size: 0.84rem;
}
#ses-toggle.ses-kapali { opacity: 0.55; }

.kasa-bos { color: var(--text-gray); text-align: center; padding: 22px 10px; margin: 0; font-size: 0.9rem; }

/* Masa ızgarası */
.masa-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.masa-izgara > .kasa-bos { grid-column: 1 / -1; } /* bos-durum metni tek sutuna sikismasin */
.masa-kart {
    position: relative;
    padding: 14px 12px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.masa-kart:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.masa-kart.dolu { border-color: var(--border-gold); background: rgba(227, 184, 105, 0.07); }
.masa-kart.yeni { border-color: var(--gold); box-shadow: var(--glow-gold); }
.masa-kart.secili { outline: 2px solid var(--gold); }
.masa-kod { color: var(--text-white); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.masa-ad { color: var(--text-gray); font-size: 0.78rem; margin-top: 4px; }
.masa-bilgi { color: var(--light-gold); font-size: 0.75rem; margin-top: 10px; }
.masa-toplam { color: var(--gold); font-weight: 700; margin-top: 2px; }
.masa-kart .masa-kapat { width: 100%; margin-top: 10px; justify-content: center; }

/* Sipariş kartları */
.siparis-liste { display: flex; flex-direction: column; gap: 12px; }
.siparis-liste.kapali { margin-top: 14px; opacity: 0.85; }
.siparis-kart {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}
/* Animasyon yalniz ilk gorunen karta: her yoklamada yeniden cizim tum kartlari yeniden "girdiriyordu" */
.siparis-kart.giris { animation: siparisGir 0.35s ease; }
@keyframes siparisGir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.siparis-kart.yeni { border-color: var(--gold); box-shadow: var(--glow-gold); }
.siparis-kart.cagri { border-style: dashed; border-color: rgba(217, 161, 63, 0.5); }
.siparis-kart-ust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.siparis-no { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.siparis-masa { color: var(--text-white); font-weight: 600; }
.siparis-masa i { color: var(--gold); margin-right: 4px; }
.siparis-saat { color: var(--text-gray); font-size: 0.82rem; margin-left: auto; }
.siparis-tur { color: var(--warning-text); font-weight: 600; margin: 4px 0 6px; }
.kalemler { list-style: none; margin: 0 0 8px; padding: 0; }
.kalemler li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed var(--border-gray); color: var(--text-white); font-size: 0.9rem; }
.kalemler li:last-child { border-bottom: none; }
.kalemler li b { color: var(--gold); min-width: 30px; }
.kalemler li span { flex: 1; }
.kalemler li em { color: var(--text-gray); font-style: normal; font-size: 0.82rem; }
.siparis-not { color: var(--light-gold); font-size: 0.85rem; padding: 8px 10px; background: rgba(227, 184, 105, 0.07); border-radius: 8px; margin-bottom: 8px; }
.siparis-kart-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.siparis-toplam { color: var(--text-white); font-size: 1.05rem; }
.siparis-islemler { display: flex; gap: 6px; flex-wrap: wrap; }
.siparis-islemler .btn { width: auto; padding: 7px 12px; }
.siparis-islemler .sil { padding: 7px 10px; }

.durum-rozet { padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.durum-rozet.d-yeni { background: rgba(227, 184, 105, 0.15); color: var(--light-gold); }
.durum-rozet.d-hazirlaniyor { background: rgba(79, 143, 208, 0.15); color: var(--info-text); }
.durum-rozet.d-servis { background: rgba(79, 174, 110, 0.15); color: var(--success-text); }
.durum-rozet.d-kapandi { background: rgba(247, 244, 238, 0.06); color: var(--text-gray); }
.durum-rozet.d-iptal { background: rgba(207, 77, 77, 0.15); color: #e79c9c; }

/* flex-wrap sart: Fransizca "Cloturees / annulees aujourd'hui" + gunu sil dugmesi 375px'te karti 404px'e tasiriyordu */
.kasa-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; cursor: pointer; color: var(--text-white); list-style: none; }
.kasa-summary > span:first-child { flex: 1 1 auto; min-width: 0; }
.kasa-summary::-webkit-details-marker { display: none; }
.kasa-summary em { color: var(--text-gray); font-style: normal; }
.kasa-summary .btn { width: auto; }

/* Editör: alan satırları ve masa çipleri */
.alan-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.alan-satir { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alan-satir input { background: #1c1c20; color: var(--text-white); border: 1px solid var(--border-gray); border-radius: 6px; padding: 9px 11px; font-size: 0.86rem; }
.alan-satir input[name="area_name"] { flex: 1; min-width: 160px; }
.alan-satir .alan-onek { width: 72px; text-transform: uppercase; }
.alan-satir .alan-adet { width: 84px; }
.alan-satir.yeni { padding-top: 12px; border-top: 1px solid var(--border-gray); }
.masa-cipleri { display: flex; gap: 8px; flex-wrap: wrap; }
.masa-cip {
    display: inline-flex; flex-direction: column; align-items: center;
    padding: 8px 12px; min-width: 56px;
    background: var(--bg-card); border: 1px solid var(--border-gray); border-radius: 10px;
}
.masa-cip strong { color: var(--text-white); font-size: 0.95rem; }
.masa-cip small { color: var(--text-gray); font-size: 0.66rem; }

@media (max-width: 700px) {
    /* Üç kart eşit bölünürse tutar (5.950,00 TL) kartından taşıyor: dar ekranda
       iki sütun; ciro kartı tek başına ikinci satırı kaplar */
    .kasa-ozet { display: grid; grid-template-columns: 1fr 1fr; }
    .kasa-sayac { min-width: 0; }
    .kasa-sayac:nth-child(3) { grid-column: 1 / -1; }
    .siparis-saat { margin-left: 0; }
    /* Masa kartlari: 150px taban dar telefonda tek sutuna dusuyordu (23 masa = uzun liste); iki sutun, sikistirilmis kart */
    .masa-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .masa-kart { padding: 10px 8px; }
    .masa-kod { font-size: 1.2rem; }
    .masa-kart .masa-kapat { padding: 7px 8px; font-size: 0.72rem; }
}

/* ============================================================
   Genel Ayarlar → Anasayfa karşılama alanı
   Yerleşim ve medya türü, küçük şemalı seçim kartlarıyla seçilir.
   ============================================================ */
.hero-ayar [hidden] { display: none !important; }
.hero-ayar-baslik {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.hero-secimler {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.hero-secenek {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    background: rgba(255, 252, 245, 0.015);
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
.hero-secenek input { position: absolute; opacity: 0; pointer-events: none; }
:where(html.hover-ok) .hero-secenek:hover { border-color: rgba(247, 244, 238, 0.18); }
.hero-secenek.secili { border-color: var(--gold); background: rgba(227, 184, 105, 0.06); }
.hero-secenek:focus-within { box-shadow: 0 0 0 3px rgba(227, 184, 105, 0.16); }
.hero-secenek strong { font-size: 0.92rem; font-weight: 700; color: var(--text-white); padding-right: 26px; }
.hero-secenek small { font-size: 0.78rem; line-height: 1.45; color: var(--text-gray); }
.hero-secenek::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.58rem;
    color: #16130c;
    background: var(--gold-grad);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-secenek.secili::after { opacity: 1; transform: none; }
.hero-secenek-simge { font-size: 1.05rem; color: var(--gold); margin-bottom: 4px; }

/* Yerleşim şemaları: siyah ekran, medya bloğu ve başlık çizgileri */
.hero-sema {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    background: #0b0b0d;
    overflow: hidden;
}
.hero-sema i {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4a3d26 0%, #1c1810 70%);
}
.hero-sema b {
    position: absolute;
    left: 10%;
    height: 6%;
    border-radius: 2px;
    background: rgba(247, 244, 238, 0.62);
}
.hero-sema--frame i { inset: 44% 10% 9% 10%; border-radius: 4px; }
.hero-sema--frame b:nth-of-type(1) { top: 13%; width: 52%; height: 9%; }
.hero-sema--frame b:nth-of-type(2) { top: 28%; width: 34%; }
.hero-sema--full b:nth-of-type(1) { bottom: 24%; width: 55%; height: 9%; }
.hero-sema--full b:nth-of-type(2) { bottom: 12%; width: 36%; }
.hero-sema--visual b:nth-of-type(1) { bottom: 13%; width: 38%; }
.hero-sema--visual b:nth-of-type(2) { display: none; }

.hero-mevcut { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.hero-mevcut img,
.hero-mevcut video {
    width: 168px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    background: #000;
}
.hero-ayar .switch-row { display: inline-flex; align-items: center; gap: 9px; text-transform: none; letter-spacing: 0; margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--text-gray); }
.hero-ayar label .hero-yuzde { margin-left: 6px; color: var(--gold); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hero-aralik { width: 100%; accent-color: var(--gold); cursor: pointer; }

@media (max-width: 760px) {
    .hero-secimler { grid-template-columns: 1fr; gap: 10px; }
    .hero-secenek { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: center; padding: 12px 14px; }
    .hero-sema { grid-row: 1 / 3; margin: 0; }
    .hero-secenek--kisa { grid-template-columns: 26px minmax(0, 1fr); }
    .hero-secenek-simge { grid-row: 1 / 3; margin: 0; text-align: center; }
    .hero-secenek strong, .hero-secenek small { grid-column: 2; }
    .hero-secenek small { align-self: start; }
    .hero-secenek strong { align-self: end; }
}

/* ============================================================
   Yapışkan "Değişiklikleri Kaydet" çubuğu
   Uzun formlarda kaydet düğmesi ekranın altında kalınca belirir;
   düğme görünür olduğunda ya da değişiklik yokken gizlidir.
   ============================================================ */
.kaydet-cubugu {
    position: fixed;
    left: calc(var(--sidebar-w) + 34px);
    right: 34px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kaydet-cubugu.acik { opacity: 1; transform: none; }
.kaydet-cubugu-ic {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 100%;
    padding: 8px 8px 8px 20px;
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    background: rgba(14, 14, 16, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.kaydet-cubugu.acik .kaydet-cubugu-ic { pointer-events: auto; }
.kaydet-cubugu:not(.acik) .kaydet-cubugu-ic { pointer-events: none; }
.kaydet-cubugu-metin {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-gray);
}
.kaydet-cubugu-metin::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}
.kaydet-cubugu .btn { width: auto; flex-shrink: 0; margin: 0; white-space: nowrap; }

@media (max-width: 992px) {
    .kaydet-cubugu { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .kaydet-cubugu-ic { width: 100%; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 16px; }
}
@media (max-width: 420px) {
    .kaydet-cubugu-metin { font-size: 0.8rem; }
}
/* Çok dar ekranda cümle üç satıra bölünüyordu: yalnız düğme kalır */
@media (max-width: 359px) {
    .kaydet-cubugu-metin { display: none; }
    .kaydet-cubugu .btn { flex: 1; justify-content: center; }
}

/* Dar ekranda uzun çeviriler (ör. Felemenkçe "Bestaande afbeeldingen naar R2
   verplaatsen") düğmeyi ekrandan taşırmasın: sığmayan düğme iki satıra iner */
@media (max-width: 480px) {
    .main-content .btn { max-width: 100%; white-space: normal; text-align: center; }
    .main-content select { max-width: 100%; }
}

/* Karşılama videosu: kaydırma kareleri durum satırı */
.hero-kare-durum {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    background: rgba(227, 184, 105, 0.06);
    color: var(--text-gray);
    font-size: 0.82rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}
.hero-kare-durum[hidden] { display: none; }
.hero-kare-durum.isliyor { color: var(--light-gold); }
.hero-kare-durum.hata { border-color: rgba(207, 77, 77, 0.35); background: rgba(207, 77, 77, 0.07); color: var(--danger-text); }

@media (max-width: 400px) {
    .gun-cipleri { gap: 4px; }
    .gun-cip { padding: 8px 0; border-radius: 10px; }
    .gun-cip span { font-size: 0.62rem; letter-spacing: 0; }
    .gun-cip strong { font-size: 0.92rem; }
    .kredi-rozet { border-radius: var(--radius-sm); }
}

/* Satış hunisi özet kutuları */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat-kutu { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border-gray); border-radius: 12px; min-width: 0; }
.stat-kutu small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-gray); }
.stat-kutu strong { font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.1; }
/* Müşteri paketleri: sosyal medya kademe değişimi */
.kademe-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kademe-form select { width: auto; min-width: 0; max-width: 100%; }

/* Kayıt: seçilen paket ve adımlar (siteden satın alma akışı) */
.uyelik-adimlar { display: flex; justify-content: center; gap: 6px; margin: 4px 0 16px; padding: 0; list-style: none; flex-wrap: wrap; }
.uyelik-adimlar li { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--text-gray); }
.uyelik-adimlar li + li::before { content: ""; width: 16px; height: 1px; background: currentColor; opacity: .5; }
.uyelik-adimlar span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: .72rem; }
.uyelik-adimlar li.aktif { color: var(--text-white); }
.uyelik-adimlar li.aktif span { background: var(--gold); border-color: var(--gold); color: var(--on-primary); }
.uyelik-ozet { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--border-gold); border-radius: 12px; text-align: left; }
.uyelik-ozet > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.uyelik-ozet strong { font-size: .98rem; color: var(--text-white); }
.uyelik-ozet small { color: var(--text-gray); }
.uyelik-ozet .badge { flex-shrink: 0; }

/* Çekim randevusu: ek hizmetler (ek çekim, dronelu ek çekim, drone) ve drone seçimi */
.cekim-rozetler { display: flex; flex-wrap: wrap; gap: 8px; }
.ek-hizmetler { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-gray); }
.ek-hizmetler h3 { font-size: 1rem; margin: 0 0 4px; }
.ek-hizmetler > p { margin: 0 0 12px; }
.ek-hizmetler ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ek-hizmetler li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 10px 14px; padding: 10px 14px; border: 1px solid var(--border-gray); border-radius: var(--radius-sm); }
.ek-hizmetler li > i { color: var(--gold); }
.ek-hizmetler li span { min-width: 0; }
.ek-hizmetler li strong { white-space: nowrap; }
@media (max-width: 560px) { .ek-hizmetler li { grid-template-columns: 20px minmax(0, 1fr) auto; } .ek-hizmetler li .btn { grid-column: 1 / -1; width: 100%; } }
.drone-sec { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--border-gold); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem; }
.drone-sec input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.drone-sec i { color: var(--gold); margin-right: 4px; }
