@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-light: #e0f2fe;
    --primary-dark: #0284c7;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;
    --surface: #ffffff;
    --background: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --nav-height: 72px;
    --header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--background); color: var(--text-main); overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom); }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-muted); }

.bg-primary-light { background-color: var(--primary-light); }
.bg-success-light { background-color: var(--success-light); }
.bg-warning-light { background-color: var(--warning-light); }
.bg-danger-light { background-color: var(--danger-light); }
.bg-purple-light { background-color: var(--purple-light); }

.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .ms-auto { margin-left: auto; } .ms-1 { margin-left: 0.25rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-1 { flex: 1; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Views */
.view { display: none; flex-direction: column; min-height: 100vh; opacity: 0; transition: opacity 0.3s ease; }
.view.active { display: flex; opacity: 1; }
.glass-panel { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.5); }

/* Login */
#login-view { justify-content: center; align-items: center; padding: 24px; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); position: relative; overflow: hidden; }
.login-bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; }
.shape-1 { width: 350px; height: 350px; background: rgba(14, 165, 233, 0.2); top: -100px; right: -100px; }
.shape-2 { width: 450px; height: 450px; background: rgba(16, 185, 129, 0.15); bottom: -150px; left: -150px; }
.login-card { padding: 40px 24px; border-radius: 32px; width: 100%; max-width: 400px; text-align: center; z-index: 1; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); }
.login-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-size: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; margin-bottom: 24px; box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3); }
.login-card h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.login-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

/* Forms */
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.input-icon-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-wrapper i { position: absolute; left: 16px; color: var(--text-muted); font-size: 1.1rem; }
.input-icon-wrapper.right-icon i { left: auto; right: 16px; }
.input-icon-wrapper input, .input-icon-wrapper select { padding-left: 48px; }
.input-icon-wrapper.right-icon input { padding-left: 16px; padding-right: 48px; }
.form-control { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-main); border-radius: 16px; font-size: 1rem; font-weight: 500; transition: all 0.2s; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
textarea.form-control { padding: 12px 16px; resize: vertical; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; font-size: 1rem; font-weight: 600; border-radius: 14px; border: none; cursor: pointer; transition: all 0.2s; outline: none; }
.btn:active { transform: scale(0.96); }
.btn-block { width: 100%; } .btn-lg { padding: 18px 24px; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25); } .btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-main); }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; border-radius: 10px; }
.btn-round { width: 48px; height: 48px; padding: 0; border-radius: 50%; font-size: 1.2rem;}
.icon-btn { background: transparent; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); padding: 8px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; transition: 0.2s; }
.icon-btn:active { background: var(--border); }

/* Header */
.app-header { height: var(--header-height); padding: 0 20px; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; width: 100%; z-index: 100; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; color: var(--text-main); }
.logo-icon { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; }

/* Main Content */
.app-content { flex: 1; overflow-y: auto; margin-top: calc(var(--header-height) + env(safe-area-inset-top)); margin-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); padding: 24px 20px; }

/* Tabs */
.tab-panel { display: none; animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.tab-panel.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 1.6rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.page-header p { font-size: 0.95rem; color: var(--text-muted); }

/* Dashboard Cards */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--surface); padding: 20px; border-radius: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; transition: transform 0.2s; }
.stat-card:active { transform: scale(0.97); }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1.2; color: var(--text-main); }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-top: 4px;}

/* Lists */
.card-list { display: flex; flex-direction: column; gap: 16px; }
.list-card { background: var(--surface); padding: 20px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid var(--border); }
.list-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.list-card-title { font-weight: 700; color: var(--text-main); font-size: 1.1rem; margin-bottom: 6px;}
.list-card-subtitle { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 8px;}
.list-card-actions { display: flex; gap: 12px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px;}

.badge { padding: 6px 12px; border-radius: 10px; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.badge-admin { background: var(--danger-light); color: var(--danger); }
.badge-employee { background: var(--primary-light); color: var(--primary); }
.badge-customer { background: var(--background); color: var(--text-muted); }
.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-completed { background: var(--success-light); color: var(--success); }

/* Leaderboard */
.lb-rank { font-size: 1.5rem; font-weight: 800; color: var(--primary); width: 40px; text-align: center; }
.lb-stars { color: var(--warning); font-size: 0.9rem; }
.lb-score { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }

/* File Input Wrapper */
.file-upload-wrapper { position: relative; border: 2px dashed var(--border); border-radius: 16px; padding: 24px; text-align: center; background: var(--background); margin-bottom: 16px; transition: border 0.2s; }
.file-upload-wrapper:hover { border-color: var(--primary); }
.file-upload-wrapper i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; display: block; }
.file-upload-wrapper input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Stars Rating */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 1.8rem; color: var(--border); transition: color 0.2s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--warning); }

/* Form Card */
.form-card { background: var(--surface); padding: 24px; border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.form-card-header { margin-bottom: 24px; } .form-card-header h3 { font-size: 1.25rem; font-weight: 700; }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; width: 100%; height: calc(var(--nav-height) + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -4px 30px rgba(0,0,0,0.05); display: flex; justify-content: space-around; align-items: center; z-index: 100; padding-bottom: env(safe-area-inset-bottom); border-top-left-radius: 24px; border-top-right-radius: 24px; border-top: 1px solid rgba(255, 255, 255, 0.5); }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; cursor: pointer; flex: 1; height: 100%; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1); gap: 6px; }
.nav-item i { font-size: 1.4rem; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1); }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-4px) scale(1.1); }

/* Bottom Sheet */
.bottom-sheet-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s; }
.bottom-sheet { position: fixed; bottom: -100%; left: 0; width: 100%; background: var(--surface); border-radius: 32px 32px 0 0; z-index: 1001; padding: 16px 24px 24px 24px; transition: bottom 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); padding-bottom: calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,0.1); max-height: 90vh; overflow-y: auto;}
.bottom-sheet.open { bottom: 0; }
.bottom-sheet-overlay.open { display: block; opacity: 1; }
.sheet-drag-handle { width: 48px; height: 5px; background: #cbd5e1; border-radius: 10px; margin: 0 auto 24px auto; }

/* Empty State */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3.5rem; color: var(--border); margin-bottom: 20px; }
.empty-state p { font-size: 1rem; font-weight: 500; }

/* ════════════════════════════════════════════════════════════════════════
   MobileApp — JS'in kullandığı ek yardımcı sınıflar
   ════════════════════════════════════════════════════════════════════════ */

/* Yükleniyor göstergesi */
.loading-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.loading-state i { font-size: 2rem; color: var(--primary); }

/* Küçük etiket satırı (görev meta) */
.meta-row { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.meta-row i { width: 14px; text-align: center; }

/* Tutar rozeti */
.amount-badge { font-weight: 700; color: var(--primary); font-size: 1.05rem; }

/* Leaderboard satırı */
.lb-row { display: flex; align-items: center; gap: 14px; }
.lb-body { flex: 1; }
.lb-name { font-weight: 700; color: var(--text-main); }
.lb-sub { font-size: 0.8rem; color: var(--text-muted); }

/* Sheet içi başlık */
.sheet-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.sheet-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

/* Dokunmatik yıldız girişi (değerlendirme) */
.touch-stars { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.touch-stars span { font-size: 2.2rem; color: var(--border); cursor: pointer; user-select: none; transition: color 0.15s, transform 0.15s; }
.touch-stars span.on { color: var(--warning); transform: scale(1.08); }

/* Görsel önizleme küçük resimleri */
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumb-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* Toast bildirimleri */
#toast-host { position: fixed; left: 50%; bottom: calc(var(--nav-height) + 20px); transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: calc(100% - 40px); max-width: 420px; pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 18px; border-radius: 14px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 10px; animation: toastIn 0.25s ease; }
.toast.success { background: var(--success-light); color: #15803d; border: 1px solid #86efac; }
.toast.error { background: var(--danger-light); color: #b91c1c; border: 1px solid #fca5a5; }
.toast.info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #7dd3fc; }
.toast.warning { background: var(--warning-light); color: #b45309; border: 1px solid #fcd34d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Sekme (segment) aktif/pasif — leaderboard Bu Ay / Genel */
.seg-active { background: var(--primary); color: #fff; }

/* ════════════════════════════════════════════════════════════════════════
   Çayır Mobile — sıcak, sahaya yakın görsel sistem
   ════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #1f7658;
    --primary-light: #dcebe3;
    --primary-dark: #15563f;
    --success: #278060;
    --success-light: #e2f1e8;
    --warning: #b7791f;
    --warning-light: #fff0c7;
    --danger: #c85151;
    --danger-light: #fbe7e4;
    --purple: #7d6aa7;
    --purple-light: #eee8f5;
    --accent-coral: #ef795c;
    --accent-coral-light: #ffe4da;
    --accent-sun: #f3c55a;
    --accent-lilac: #a697c8;
    --surface: #fffefb;
    --surface-soft: #ece9df;
    --background: #f4f1e8;
    --text-main: #23342e;
    --text-muted: #68756f;
    --border: #deddd3;
    --border-strong: #cbcabe;
    --nav-height: 78px;
    --header-height: 84px;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --shadow-soft: 0 14px 40px rgba(45, 63, 55, 0.08);
    --shadow-float: 0 18px 50px rgba(35, 52, 46, 0.14);
}

* {
    font-family: var(--font-body);
}

html {
    background: var(--background);
    scroll-behavior: smooth;
}

body {
    min-width: 300px;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 12% 2%, rgba(243, 197, 90, 0.22), transparent 26rem),
        radial-gradient(circle at 94% 18%, rgba(166, 151, 200, 0.16), transparent 24rem),
        var(--background);
    color: var(--text-main);
    font-family: var(--font-body);
}

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(31, 118, 88, 0.28);
    outline-offset: 2px;
}

h1,
h2,
h3,
.list-card-title,
.stat-value,
.sheet-title {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.view {
    min-height: 100dvh;
}

.glass-panel {
    background: var(--surface);
    border-color: var(--border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Giriş: küçük bir marka hikâyesi, sade bir form */
#login-view {
    display: none;
    align-items: stretch;
    justify-content: center;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    background:
        linear-gradient(145deg, rgba(244, 241, 232, 0.95), rgba(233, 239, 232, 0.96)),
        var(--background);
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: auto;
}

#login-view.active {
    display: flex;
}

.login-bg-shape {
    display: none;
}

.login-orbit {
    position: fixed;
    z-index: -1;
    border-radius: 46% 54% 61% 39% / 44% 35% 65% 56%;
    pointer-events: none;
}

.orbit-one {
    top: -130px;
    right: -110px;
    width: 330px;
    height: 310px;
    background: rgba(239, 121, 92, 0.17);
    transform: rotate(18deg);
}

.orbit-two {
    bottom: -150px;
    left: -150px;
    width: 360px;
    height: 340px;
    background: rgba(31, 118, 88, 0.13);
    transform: rotate(-12deg);
}

.login-shell {
    display: grid;
    width: min(100%, 440px);
    margin: auto;
    border: 1px solid rgba(203, 202, 190, 0.82);
    border-radius: 34px 34px 30px 30px;
    background: var(--surface);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.login-story {
    position: relative;
    min-height: 280px;
    padding: 28px 26px 24px;
    color: #f8f5ec;
    background:
        radial-gradient(circle at 80% 20%, rgba(243, 197, 90, 0.38), transparent 26%),
        linear-gradient(145deg, #1f7658 0%, #174f3e 100%);
    overflow: hidden;
}

.login-story::after {
    content: '';
    position: absolute;
    right: -54px;
    bottom: -76px;
    width: 190px;
    height: 190px;
    border: 22px solid rgba(255, 255, 255, 0.08);
    border-radius: 44% 56% 38% 62% / 55% 43% 57% 45%;
    transform: rotate(22deg);
}

.brand-lockup {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--primary-dark);
    background: var(--accent-sun);
    border-radius: 12px 12px 12px 4px;
    transform: rotate(-3deg);
}

.brand-mark i {
    transform: rotate(3deg);
}

.login-story-copy {
    position: relative;
    z-index: 1;
    margin-top: 42px;
}

.story-kicker,
.section-kicker,
.page-kicker,
.rating-kicker {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.story-kicker {
    color: #c9e0d5;
}

.login-story h1 {
    margin: 10px 0 12px;
    color: #fffdf7;
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 0.98;
}

.login-story h1 em {
    color: var(--accent-sun);
    font-family: inherit;
    font-style: normal;
}

.login-story-copy p {
    max-width: 330px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    line-height: 1.65;
}

.story-steps {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.story-steps span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    color: #f8f5ec;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.story-steps i {
    color: var(--accent-sun);
}

.login-card {
    width: 100%;
    max-width: none;
    padding: 28px 24px 24px;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
}

.login-card-heading {
    margin-bottom: 24px;
}

.section-kicker,
.page-kicker,
.rating-kicker {
    color: var(--primary);
}

.login-card h2 {
    margin: 7px 0 6px;
    color: var(--text-main);
    font-size: 1.65rem;
    line-height: 1.12;
}

.login-card-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.auth-panel[hidden] {
    display: none;
}

.register-heading {
    margin-bottom: 18px;
}

.auth-switch {
    display: flex;
    margin-top: 20px;
    padding-top: 17px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.76rem;
    border-top: 1px dashed var(--border-strong);
}

.auth-switch button {
    padding: 3px 2px;
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.auth-switch button:hover,
.auth-switch button:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.forgot-password-link-row {
    display: flex;
    margin-top: 11px;
    justify-content: center;
}

.forgot-password-link-row button {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 10px;
    align-items: center;
    gap: 7px;
    color: #62746c;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.forgot-password-link-row button:hover,
.forgot-password-link-row button:focus-visible {
    color: var(--primary-dark);
    background: rgba(31, 126, 91, 0.08);
}

.forgot-password-link-row i {
    color: var(--accent-sun-dark, #b8780b);
}

.forgot-password-heading {
    margin-bottom: 22px;
}

.forgot-password-note {
    display: flex;
    margin: 2px 0 14px;
    padding: 11px 12px;
    align-items: flex-start;
    gap: 9px;
    color: #557066;
    font-size: 0.68rem;
    line-height: 1.48;
    border: 1px solid rgba(31, 118, 88, 0.18);
    border-radius: 13px 13px 13px 5px;
    background: rgba(225, 241, 233, 0.58);
}

.forgot-password-note i {
    margin-top: 2px;
    color: var(--primary);
}

.register-security-note {
    display: flex;
    margin: 2px 0 14px;
    padding: 11px 12px;
    align-items: flex-start;
    gap: 9px;
    color: #557066;
    font-size: 0.68rem;
    line-height: 1.48;
    border: 1px solid rgba(31, 118, 88, 0.18);
    border-radius: 13px 13px 13px 5px;
    background: rgba(225, 241, 233, 0.58);
}

.register-security-note i {
    margin-top: 2px;
    color: var(--primary);
}

.btn:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.login-card .form-group {
    margin-bottom: 14px;
}

.login-card .form-group label {
    margin-bottom: 7px;
    color: #506159;
    font-size: 0.75rem;
}

.form-control {
    min-height: 52px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 16px 16px 16px 7px;
    background: #fbfaf5;
}

.form-control::placeholder {
    color: #9aa39f;
}

.form-control:hover {
    border-color: var(--border-strong);
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 118, 88, 0.11);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 96px;
    line-height: 1.55;
}

.input-icon-wrapper i {
    left: 17px;
    color: #7e8a84;
    font-size: 0.95rem;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
    padding-left: 46px;
}

.alert-danger {
    margin-top: 14px;
    padding: 12px 14px;
    color: #9e3737;
    font-size: 0.78rem;
    line-height: 1.45;
    border: 1px solid #f0c4be;
    border-radius: 13px;
    background: var(--danger-light);
}

.alert-success {
    margin-top: 14px;
    padding: 12px 14px;
    color: #176548;
    font-size: 0.76rem;
    line-height: 1.48;
    border: 1px solid rgba(31, 126, 96, 0.24);
    border-radius: 13px;
    background: var(--primary-light);
}

/* Butonlar */
.btn {
    min-height: 48px;
    padding: 12px 17px;
    font-size: 0.86rem;
    font-weight: 800;
    border-radius: 15px 15px 15px 6px;
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-lg {
    min-height: 56px;
    padding: 15px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    color: #fffef9;
    background: var(--primary);
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    color: #fff;
    background: var(--success);
}

.btn-outline {
    color: var(--text-main);
    border: 1.5px solid var(--border-strong);
    background: #fffefb;
}

.btn-outline:hover {
    color: var(--primary-dark);
    border-color: #9fbeaf;
    background: var(--primary-light);
}

.btn-sm {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.76rem;
    border-radius: 13px 13px 13px 5px;
}

.btn-round {
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 17px 17px 17px 7px;
    box-shadow: 0 8px 18px rgba(31, 118, 88, 0.19);
}

.icon-btn {
    min-width: 42px;
    min-height: 42px;
    color: var(--text-muted);
    border-radius: 14px;
}

.icon-btn:hover {
    color: var(--text-main);
    background: var(--surface-soft);
}

/* Uygulama kabuğu */
#app-view {
    background:
        radial-gradient(circle at 90% 7%, rgba(239, 121, 92, 0.09), transparent 22rem),
        var(--background);
}

.app-header {
    left: 50%;
    width: min(100%, 760px);
    height: calc(var(--header-height) + env(safe-area-inset-top));
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
    color: var(--text-main);
    border: 0;
    border-bottom: 1px solid rgba(203, 202, 190, 0.75);
    background: rgba(244, 241, 232, 0.94);
    box-shadow: none;
    transform: translateX(-50%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-logo {
    min-width: 0;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fdf9ed;
    font-size: 0.92rem;
    border-radius: 15px 15px 15px 5px;
    background: var(--primary);
    box-shadow: 0 7px 16px rgba(31, 118, 88, 0.2);
}

.header-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.header-brand-copy > span {
    color: var(--text-muted);
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.header-brand-copy strong {
    overflow: hidden;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account,
.header-user {
    display: flex;
    align-items: center;
}

.header-account {
    min-width: 0;
    gap: 5px;
}

.header-user {
    gap: 8px;
    padding: 5px 7px 5px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 254, 251, 0.72);
}

.header-avatar {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 50%;
    background: var(--accent-sun);
}

#header-user-name {
    display: none;
    max-width: 96px;
    overflow: hidden;
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-icon {
    color: #a64b43;
}

.header-leading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.menu-trigger,
.drawer-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--primary-dark);
    font-size: 1rem;
    border: 1px solid rgba(31, 118, 88, 0.18);
    border-radius: 14px 14px 14px 5px;
    background: rgba(255, 254, 251, 0.82);
    box-shadow: 0 7px 18px rgba(35, 52, 46, 0.08);
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.menu-trigger:hover,
.menu-trigger[aria-expanded="true"],
.drawer-close:hover {
    color: #fff;
    background: var(--primary);
}

.menu-trigger:active,
.drawer-close:active {
    transform: scale(0.94);
}

body.drawer-open {
    overflow: hidden;
}

.app-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(25, 39, 33, 0.48);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 240ms ease;
}

.app-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.app-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1201;
    display: flex;
    width: min(86vw, 350px);
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
    flex-direction: column;
    color: var(--text-main);
    border-right: 1px solid rgba(203, 202, 190, 0.88);
    border-radius: 0 30px 30px 0;
    background:
        radial-gradient(circle at 14% 3%, rgba(243, 197, 90, 0.26), transparent 13rem),
        var(--surface);
    box-shadow: 22px 0 55px rgba(28, 42, 36, 0.2);
    transform: translateX(-108%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform 280ms cubic-bezier(0.2, 0.78, 0.2, 1), visibility 280ms;
}

.app-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.drawer-header,
.drawer-brand,
.drawer-profile,
.drawer-logout {
    display: flex;
    align-items: center;
}

.drawer-header {
    justify-content: space-between;
    gap: 14px;
}

.drawer-brand {
    min-width: 0;
    gap: 11px;
}

.drawer-brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: #fffaf0;
    border-radius: 15px 15px 15px 5px;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(31, 118, 88, 0.2);
}

.drawer-brand > div,
.drawer-profile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.drawer-brand span:not(.drawer-brand-mark),
.drawer-section-label {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.drawer-brand strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
}

.drawer-close {
    color: #9a5048;
    border-color: rgba(200, 81, 81, 0.18);
    box-shadow: none;
}

.drawer-profile {
    position: relative;
    margin: 24px 0 22px;
    padding: 14px;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 20px 20px 20px 7px;
    background: rgba(244, 241, 232, 0.72);
}

.drawer-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-weight: 800;
    border-radius: 50%;
    background: var(--accent-sun);
}

.drawer-profile-copy {
    flex: 1;
}

.drawer-profile-copy strong {
    overflow: hidden;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-profile-copy span {
    margin-top: 2px;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
}

.drawer-online {
    color: var(--success);
    font-size: 0.5rem;
}

.drawer-section-label {
    margin: 0 8px 8px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-nav-item {
    display: grid;
    width: 100%;
    min-height: 54px;
    padding: 7px 10px;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 17px 17px 17px 6px;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drawer-nav-item:hover {
    color: var(--text-main);
    background: var(--surface-soft);
    transform: translateX(2px);
}

.drawer-nav-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--primary);
    border-radius: 13px 13px 13px 5px;
    background: var(--primary-light);
}

.drawer-nav-arrow {
    color: #a7aea9;
    font-size: 0.62rem;
}

.drawer-nav-item.active {
    color: #fff;
    border-color: rgba(21, 86, 63, 0.15);
    background: var(--primary);
    box-shadow: 0 9px 20px rgba(31, 118, 88, 0.2);
}

.drawer-nav-item.active .drawer-nav-icon {
    color: var(--primary-dark);
    background: var(--accent-sun);
}

.drawer-nav-item.active .drawer-nav-arrow {
    color: rgba(255, 255, 255, 0.78);
}

.drawer-footer {
    margin-top: auto;
    padding-top: 20px;
}

.drawer-logout {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    justify-content: space-between;
    color: #a64b43;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(200, 81, 81, 0.2);
    border-radius: 17px 17px 17px 6px;
    background: var(--danger-light);
    cursor: pointer;
}

.drawer-logout span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.app-content {
    width: min(100%, 760px);
    margin: calc(var(--header-height) + env(safe-area-inset-top)) auto calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
    padding: 26px 16px 32px;
    overflow: visible;
}

.tab-panel {
    animation: tabEnter 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

@keyframes tabEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 5px 0 4px;
    color: var(--text-main);
    font-size: clamp(1.62rem, 7vw, 2rem);
    line-height: 1.06;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.page-kicker {
    color: var(--primary);
}

/* Yönetim özeti */
.welcome-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(105px, 0.8fr);
    min-height: 190px;
    margin-bottom: 14px;
    padding: 24px 20px;
    color: #fffdf8;
    border-radius: 28px 28px 28px 10px;
    background:
        radial-gradient(circle at 84% 18%, rgba(243, 197, 90, 0.36), transparent 25%),
        linear-gradient(145deg, #236f55, #174d3b);
    box-shadow: 0 16px 36px rgba(31, 86, 65, 0.18);
    overflow: hidden;
}

.welcome-panel::after {
    content: '';
    position: absolute;
    right: -48px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border: 18px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.welcome-date {
    display: inline-flex;
    padding: 7px 10px;
    color: #234d3d;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: capitalize;
    border-radius: 999px;
    background: var(--accent-sun);
}

.welcome-panel h3 {
    margin: 15px 0 8px;
    color: #fffdf8;
    font-size: clamp(1.4rem, 6vw, 1.82rem);
    line-height: 1.02;
}

.welcome-panel p {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.7rem;
    line-height: 1.55;
}

.welcome-illustration {
    position: relative;
    min-height: 136px;
}

.bubble {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(15, 52, 38, 0.22);
}

.bubble-a {
    top: 13px;
    right: 18px;
    width: 74px;
    height: 74px;
    color: #174d3b;
    font-size: 1.4rem;
    background: var(--accent-sun);
    transform: rotate(8deg);
}

.bubble-b {
    top: 82px;
    right: 77px;
    width: 47px;
    height: 47px;
    color: #fff;
    background: var(--accent-coral);
}

.bubble-c {
    top: 94px;
    right: 5px;
    width: 39px;
    height: 39px;
    color: var(--primary-dark);
    font-size: 0.76rem;
    background: #f8f5ec;
}

.stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.stat-card {
    position: relative;
    display: flex;
    min-height: 162px;
    padding: 18px;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(203, 202, 190, 0.78);
    border-radius: 26px 26px 26px 9px;
    background: rgba(255, 254, 251, 0.94);
    box-shadow: 0 12px 30px rgba(38, 55, 48, 0.045);
    overflow: hidden;
    isolation: isolate;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -48px;
    bottom: -62px;
    width: 132px;
    height: 132px;
    border: 19px solid rgba(255, 255, 255, 0.34);
    border-radius: 42% 58% 48% 52% / 57% 43% 57% 43%;
    transform: rotate(18deg);
}

.stat-card:hover {
    border-color: rgba(148, 164, 155, 0.72);
    box-shadow: 0 15px 35px rgba(38, 55, 48, 0.075);
    transform: translateY(-2px);
}

.dashboard-shortcut {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.dashboard-shortcut:focus-visible {
    outline: 3px solid rgba(31, 118, 88, 0.32);
    outline-offset: 3px;
}

.dashboard-shortcut:active {
    transform: translateY(0) scale(0.985);
}

.stat-card-wide {
    grid-column: 1 / -1;
    min-height: 126px;
    padding: 20px;
    flex-direction: row;
    align-items: center;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.23), transparent 48%),
        #ffe2d7;
    border-color: #efb9a9;
}

.stat-team .stat-info {
    flex: 1;
}

.stat-pending {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.25), transparent 54%),
        #fff3c9;
    border-color: #e8cf86;
}

.stat-active {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 54%),
        #dfeee7;
    border-color: #abcdbd;
}

.stat-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 15px 15px 15px 6px;
    font-size: 0.98rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.stat-team .stat-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    color: #fff;
    background: var(--accent-coral);
}

.stat-pending .stat-icon {
    color: #8a5c12;
    background: rgba(255, 255, 255, 0.48);
}

.stat-active .stat-icon {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.48);
}

.stat-card-head,
.stat-card-foot,
.stat-number-row {
    display: flex;
    align-items: center;
}

.stat-card-head {
    justify-content: space-between;
}

.stat-eyebrow {
    color: rgba(53, 69, 62, 0.62);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.stat-team .stat-eyebrow {
    color: #a14d38;
}

.stat-number-row {
    gap: 6px;
    margin: 5px 0 3px;
}

.stat-value {
    color: var(--text-main);
    font-size: 2.25rem;
    line-height: 0.92;
    font-variant-numeric: tabular-nums;
}

.stat-number-row small {
    align-self: flex-end;
    margin-bottom: 3px;
    color: rgba(52, 68, 61, 0.64);
    font-size: 0.65rem;
    font-weight: 700;
}

.stat-label {
    color: #4f5f57;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

.stat-card-foot {
    min-height: 26px;
    justify-content: space-between;
    gap: 8px;
    color: rgba(70, 83, 77, 0.62);
    font-size: 0.56rem;
    font-weight: 650;
}

.stat-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
}

.stat-dots i {
    display: block;
    width: 4px;
    border-radius: 99px;
    background: currentColor;
}

.stat-dots i:nth-child(1) {
    height: 7px;
    opacity: 0.45;
}

.stat-dots i:nth-child(2) {
    height: 11px;
    opacity: 0.68;
}

.stat-dots i:nth-child(3) {
    height: 16px;
}

.stat-orbit {
    position: relative;
    display: grid;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    place-items: center;
    color: #a94f38;
    font-size: 1.32rem;
    border: 1px solid rgba(180, 80, 56, 0.18);
    border-radius: 44% 56% 39% 61% / 53% 44% 56% 47%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(5deg);
}

.stat-orbit i {
    transform: rotate(-5deg);
}

.orbit-dot {
    position: absolute;
    border-radius: 50%;
}

.orbit-dot-a {
    top: 2px;
    right: 4px;
    width: 13px;
    height: 13px;
    background: var(--accent-sun);
}

.orbit-dot-b {
    bottom: 7px;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--primary);
}

/* Liste kartları */
.card-list {
    gap: 12px;
}

.list-card {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(203, 202, 190, 0.82);
    border-radius: 22px 22px 22px 8px;
    background: rgba(255, 254, 251, 0.94);
    box-shadow: none;
    overflow: hidden;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.list-card:hover {
    border-color: #bfc8c2;
    box-shadow: 0 10px 28px rgba(35, 52, 46, 0.07);
    transform: translateY(-1px);
}

.list-card-header {
    gap: 12px;
    margin-bottom: 13px;
}

.list-card-title {
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.25;
}

.list-card-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.list-card-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-color: var(--border);
}

.meta-row {
    align-items: flex-start;
    margin: 7px 0;
    color: #68756f;
    font-size: 0.72rem;
    line-height: 1.45;
}

.meta-row i {
    margin-top: 2px;
    color: var(--primary);
}

.card-note {
    margin-top: 12px;
    padding: 12px 13px;
    color: #53625b;
    font-size: 0.73rem;
    line-height: 1.55;
    white-space: pre-line;
    border-radius: 13px 13px 13px 5px;
    background: #f3f1ea;
}

.completion-note {
    display: flex;
    gap: 8px;
    background: var(--success-light);
}

.completion-note i {
    margin-top: 2px;
    color: var(--success);
}

.badge {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.61rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-superadmin {
    color: #8a6100;
    border-color: #f0d68a;
    background: #fdf1cf;
}

.badge-admin {
    color: #a84c3c;
    border-color: #efc1b5;
    background: var(--accent-coral-light);
}

.badge-employee {
    color: #285d4a;
    border-color: #b8d2c4;
    background: var(--primary-light);
}

.badge-customer {
    color: #66567f;
    border-color: #d1c6e1;
    background: var(--purple-light);
}

.badge-pending {
    color: #8a611d;
    border-color: #ead69b;
    background: var(--warning-light);
}

.badge-completed {
    color: #236b50;
    border-color: #b6d4c5;
    background: var(--success-light);
}

/* Kişiler */
.person-card {
    padding-top: 16px;
}

.user-role-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.user-role-heading {
    display: flex;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(203, 202, 190, 0.82);
    border-radius: 19px 19px 19px 7px;
    background: rgba(255, 255, 255, 0.52);
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.user-role-chevron {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.user-role-group.collapsed .user-role-chevron {
    transform: rotate(-90deg);
}

.user-role-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--primary);
    border-radius: 13px 13px 13px 5px;
    background: var(--primary-light);
    place-items: center;
}

.user-role-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.user-role-copy strong {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-role-copy small {
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.35;
}

.user-role-count {
    display: grid;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    background: var(--primary-light);
    place-items: center;
}

.user-role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    max-height: 3000px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.user-role-group.collapsed .user-role-list {
    max-height: 0;
    opacity: 0;
}

.user-role-superadmin .user-role-heading {
    border-color: #f0d68a;
    background: linear-gradient(135deg, #fdf6e3 0%, #fffcf5 100%);
}

.user-role-superadmin .user-role-icon,
.user-role-superadmin .user-role-count {
    color: #8a6100;
    background: #fbe8b0;
}

.user-role-admin .user-role-heading {
    border-color: #ecd0c9;
    background: linear-gradient(135deg, #fff5f1 0%, #fffaf7 100%);
}

.user-role-admin .user-role-icon,
.user-role-admin .user-role-count {
    color: #a74e42;
    background: #f9ddd6;
}

.user-role-employee .user-role-heading {
    border-color: #bdd8ca;
    background: linear-gradient(135deg, #eef8f2 0%, #f8fcf9 100%);
}

.user-role-customer .user-role-heading {
    border-color: #d9cfea;
    background: linear-gradient(135deg, #f7f2ff 0%, #fcfaff 100%);
}

.user-role-customer .user-role-icon,
.user-role-customer .user-role-count {
    color: #705692;
    background: #eadff8;
}

.user-role-pending .user-role-heading {
    border-color: #efd58b;
    background: linear-gradient(135deg, #fff4cb 0%, #fffaf0 100%);
}

.user-role-pending .user-role-icon,
.user-role-pending .user-role-count {
    color: #976515;
    background: #ffe9a8;
}

.user-role-empty {
    display: flex;
    min-height: 68px;
    padding: 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    border: 1px dashed #c9c9bf;
    border-radius: 17px 17px 17px 7px;
    background: rgba(255, 255, 255, 0.36);
}

.user-role-empty i {
    color: #aaa99f;
}

.person-identity,
.task-identity,
.invoice-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.person-identity > div,
.task-identity > div,
.invoice-identity > div {
    min-width: 0;
}

.person-avatar,
.service-icon,
.invoice-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
}

.person-avatar {
    width: 44px;
    height: 44px;
    color: #6b4e12;
    border-radius: 50% 50% 50% 16px;
    background: var(--accent-sun);
}

.person-card .form-control {
    min-height: 42px;
    padding: 8px 12px !important;
    font-size: 0.72rem;
    border-radius: 12px;
}

/* Görevler */
.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: var(--warning);
}

.task-card.status-in_progress::before {
    background: var(--accent-coral);
}

.task-card.status-completed::before {
    background: var(--success);
}

.service-icon {
    width: 45px;
    height: 45px;
    color: var(--primary-dark);
    font-size: 0.93rem;
    border-radius: 15px 15px 15px 5px;
    background: var(--primary-light);
}

.schedule-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 11px;
    padding: 9px 11px;
    color: #754c13;
    border: 1px solid #edd89e;
    border-radius: 13px 13px 13px 5px;
    background: #fff5d5;
}

.schedule-chip i {
    color: #a36e20;
}

.schedule-chip span {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    font-weight: 800;
}

.schedule-chip small {
    color: #9a7a49;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.thumb-row {
    gap: 7px;
}

.thumb-row img {
    width: 68px;
    height: 68px;
    border-radius: 14px 14px 14px 5px;
}

/* Hazır görevler ve faturalar */
.compact-card {
    min-height: 66px;
    padding: 12px 13px 12px 16px;
}

.compact-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
}

.compact-card-title i {
    color: var(--accent-coral);
}

.invoice-card {
    background: #fff8e7;
    border-color: #ead9ab;
}

.invoice-icon {
    width: 43px;
    height: 43px;
    color: #78591b;
    border-radius: 14px 14px 14px 5px;
    background: var(--accent-sun);
}

.amount-badge {
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.invoice-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.subsection-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 17px;
}

.subsection-header h3 {
    margin: 2px 0 3px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.15;
}

.subsection-header p {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.subsection-icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #78591b;
    border: 1px solid #ead9ab;
    border-radius: 15px 15px 15px 5px;
    background: #fff2c8;
}

.invoice-task-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 3px;
    padding: 6px 9px;
    color: #426b5d;
    font-size: 0.62rem;
    font-weight: 800;
    border: 1px solid #c3d7cd;
    border-radius: 999px;
    background: #edf5f0;
}

.invoice-task-chip.is-standalone {
    color: #6f6250;
    border-color: #ddd4c3;
    background: #f6f1e8;
}

.invoice-note {
    color: #665734;
    background: rgba(255, 255, 255, 0.62);
}

.admin-review-card {
    margin-top: 14px;
    padding: 14px;
    color: #4d4437;
    border: 1px solid #ead9ab;
    border-radius: 17px 17px 17px 6px;
    background: linear-gradient(135deg, #fff8df 0%, #fffdf5 100%);
}

.admin-review-top,
.admin-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.review-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6c5b2f;
    font-size: 0.68rem;
    font-weight: 800;
}

.admin-review-top strong {
    color: #9a6814;
    font-family: var(--font-display);
    font-size: 0.88rem;
}

.admin-review-stars {
    display: flex;
    gap: 3px;
    margin: 9px 0 8px;
    color: #e29b2f;
    font-size: 0.76rem;
}

.admin-review-card p {
    color: #514a3d;
    font-size: 0.74rem;
    line-height: 1.55;
    white-space: pre-line;
}

.admin-review-card .review-no-comment {
    color: #8a8172;
    font-style: italic;
}

.admin-review-meta {
    justify-content: flex-start;
    margin-top: 9px;
    color: #8a8172;
    font-size: 0.61rem;
}

/* Performans */
.tabs-header {
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(255, 254, 251, 0.68);
}

.tabs-header .btn {
    min-height: 40px;
    border: 0;
    border-radius: 13px;
}

.leaderboard-card:nth-child(1) {
    color: #4d3b14;
    border-color: #e2c86e;
    background: #fff4c8;
}

.leaderboard-card:nth-child(2) {
    background: #f0eee7;
}

.leaderboard-card:nth-child(3) {
    background: #f7e5dc;
}

.lb-row {
    gap: 12px;
}

.lb-rank {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
}

.lb-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
}

.lb-stars {
    color: #d08a27;
    font-size: 0.72rem;
}

.lb-score {
    font-family: var(--font-display);
    font-size: 1.12rem;
}

.lb-sub {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.5;
}

.rating-spotlight {
    padding: 30px 20px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 18%, rgba(243, 197, 90, 0.34), transparent 22%),
        var(--primary-light);
}

.rating-score {
    margin-top: 9px;
    color: var(--primary-dark);
    font-size: 3rem;
}

.rating-stars {
    margin: 5px 0 8px;
    font-size: 1.15rem;
}

/* Formlar */
.form-card {
    padding: 19px;
    border-color: rgba(203, 202, 190, 0.82);
    border-radius: 24px 24px 24px 8px;
    background: rgba(255, 254, 251, 0.96);
    box-shadow: var(--shadow-soft);
}

.form-card-header {
    margin-bottom: 19px;
}

.form-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.16rem;
}

.form-group label {
    color: #56655e;
    font-size: 0.73rem;
    font-weight: 800;
}

.field-label-icon {
    margin-right: 5px;
    color: var(--primary);
}

/* Yazdıkça filtrelenen çalışan / müşteri seçimi */
.person-combobox {
    position: relative;
}

.person-search-wrap {
    position: relative;
}

.person-search-wrap > i {
    z-index: 2;
}

.person-suggestions {
    position: absolute;
    z-index: 70;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    max-height: 264px;
    border: 1px solid #bdc9c2;
    border-radius: 18px 18px 18px 7px;
    background: rgba(255, 254, 251, 0.99);
    box-shadow: 0 18px 38px rgba(31, 52, 43, 0.16);
    overflow-x: hidden;
    overflow-y: auto;
}

.person-option {
    display: flex;
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    align-items: center;
    gap: 11px;
    color: var(--text-main);
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: background 150ms ease;
}

.person-option:last-child {
    border-bottom: 0;
}

.person-option:hover,
.person-option.active {
    background: var(--primary-light);
}

.person-option-avatar,
.person-selected-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 13px 13px 13px 5px;
    background: var(--primary);
}

.person-option-copy,
.person-selected-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.person-option-copy strong,
.person-selected-copy strong {
    font-family: var(--font-display);
    font-size: 0.82rem;
    line-height: 1.25;
}

.person-option-copy small,
.person-selected-copy small {
    color: var(--text-muted);
    font-size: 0.64rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-option > i {
    color: var(--primary);
    font-size: 0.72rem;
}

.person-combobox-empty {
    display: flex;
    min-height: 64px;
    padding: 13px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.person-combobox-empty i {
    color: var(--accent-coral);
}

.person-selected {
    display: flex;
    min-height: 62px;
    padding: 10px 11px;
    align-items: center;
    gap: 11px;
    border: 1.5px solid #abcbbb;
    border-radius: 17px 17px 17px 7px;
    background: var(--primary-light);
}

.person-selected-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.person-selected-row {
    display: flex;
    min-height: 62px;
    padding: 9px 10px 9px 8px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(31, 126, 96, 0.24);
    border-radius: 17px 17px 17px 7px;
    background: linear-gradient(135deg, rgba(223, 241, 233, 0.96), rgba(245, 250, 247, 0.96));
    box-shadow: 0 5px 14px rgba(31, 126, 96, 0.06);
}

.person-selected-index {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(31, 126, 96, 0.12);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
}

.person-selected-remove {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(184, 74, 67, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #b84a43;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.person-selected-remove:hover {
    background: #fff;
    transform: scale(1.04);
}

.person-selected-remove:active {
    transform: scale(0.96);
}

.person-selected button {
    display: inline-flex;
    min-height: 36px;
    padding: 8px 9px;
    align-items: center;
    gap: 5px;
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid rgba(31, 118, 88, 0.2);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.person-selected[hidden],
.person-selected-list[hidden],
.person-suggestions[hidden],
.person-search-wrap[hidden] {
    display: none;
}

.file-upload-wrapper {
    padding: 23px 18px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-color: #bfc9c3;
    border-radius: 18px 18px 18px 7px;
    background: #f5f3ec;
}

.file-upload-wrapper i {
    color: var(--accent-coral);
}

/* Alt navigasyon */
.bottom-nav {
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(min(100%, 720px) - 20px);
    height: var(--nav-height);
    padding: 7px;
    border: 1px solid rgba(184, 185, 174, 0.8);
    border-radius: 25px 25px 25px 10px;
    background: rgba(255, 254, 251, 0.94);
    box-shadow: 0 14px 36px rgba(35, 52, 46, 0.17);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-item {
    min-width: 0;
    height: 100%;
    padding: 4px 2px;
    color: #7a857f;
    font-size: 0.58rem;
    font-weight: 800;
    border: 0;
    border-radius: 17px;
    background: transparent;
    gap: 4px;
}

.nav-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 13px;
    transition: 180ms ease;
}

.nav-item i {
    font-size: 1rem;
}

.nav-item.active {
    color: var(--primary-dark);
    background: #edf2ed;
}

.nav-item.active .nav-icon {
    color: #fff;
    background: var(--primary);
    transform: translateY(-1px) rotate(-2deg);
}

.nav-item.active i {
    transform: none;
}

/* Bottom sheet, bildirim ve boş durum */
.bottom-sheet-overlay {
    background: rgba(28, 42, 36, 0.5);
}

.bottom-sheet {
    left: 50%;
    width: min(100%, 680px);
    padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    background: var(--surface);
    box-shadow: 0 -18px 50px rgba(28, 42, 36, 0.18);
    transform: translateX(-50%);
}

.sheet-drag-handle {
    width: 46px;
    height: 4px;
    margin-bottom: 20px;
    background: #c9c9be;
}

.sheet-title {
    font-size: 1.3rem;
}

.sheet-desc {
    font-size: 0.78rem;
    line-height: 1.55;
}

.touch-stars span {
    color: #d8d7ce;
}

.touch-stars span.on {
    color: #e29b2f;
}

.review-upload {
    margin: -2px 0 17px;
}

.review-upload-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 13px;
    overflow: hidden;
    cursor: pointer;
    border: 1px dashed #b9c5bd;
    border-radius: 18px 18px 18px 7px;
    background: linear-gradient(135deg, #f5f4ed 0%, #fbfaf6 100%);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.review-upload-picker:active {
    transform: scale(0.99);
}

.review-upload-picker:focus-within,
.review-upload-picker:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.review-upload-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.review-upload-icon {
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    color: var(--primary);
    border-radius: 14px 14px 14px 5px;
    background: #dcebe4;
    place-items: center;
}

.review-upload-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.review-upload-copy strong {
    color: var(--text-main);
    font-size: 0.78rem;
}

.review-upload-copy small {
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.4;
}

.review-upload-action {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(21, 88, 65, 0.09);
}

.review-file-selected {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 9px;
    padding: 10px 11px;
    border: 1px solid #c9ddd3;
    border-radius: 15px;
    background: #edf7f1;
}

.review-file-selected[hidden] {
    display: none;
}

.review-file-type {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--primary);
    border-radius: 11px;
    background: #d7ebdf;
    place-items: center;
}

.review-file-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.review-file-info strong {
    overflow: hidden;
    color: var(--text-main);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-file-info small {
    color: var(--text-muted);
    font-size: 0.62rem;
}

.review-file-selected button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #a54f45;
    border: 0;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    place-items: center;
}

.review-attachment-button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 11px;
    padding: 10px;
    color: #5b4b24;
    text-align: left;
    border: 1px solid #e8d28f;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.review-attachment-button > span:first-child {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #a36f13;
    border-radius: 10px;
    background: #fff0bd;
    place-items: center;
}

.review-attachment-button > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.review-attachment-button strong {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-attachment-button small {
    color: #8a7b5b;
    font-size: 0.58rem;
}

.review-attachment-button > i {
    color: #9a7c36;
    font-size: 0.7rem;
}

.empty-state,
.loading-state {
    padding: 54px 18px;
    border: 1px dashed var(--border-strong);
    border-radius: 22px 22px 22px 8px;
    background: rgba(255, 254, 251, 0.48);
}

.empty-state i {
    color: #c6c7bd;
    font-size: 2.7rem;
}

.empty-state p,
.loading-state p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.loading-state i {
    color: var(--primary);
}

#toast-host {
    bottom: calc(var(--nav-height) + 26px + env(safe-area-inset-bottom));
}

.toast {
    padding: 13px 15px;
    font-size: 0.78rem;
    border-radius: 16px 16px 16px 6px;
    box-shadow: var(--shadow-float);
}

@media (min-width: 430px) {
    #header-user-name {
        display: block;
    }

    .app-content {
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (min-width: 780px) {
    #login-view {
        padding: 28px;
    }

    .login-shell {
        grid-template-columns: minmax(350px, 0.95fr) minmax(400px, 1.05fr);
        width: min(100%, 880px);
        min-height: 600px;
        border-radius: 38px 38px 38px 12px;
    }

    .login-story {
        min-height: 100%;
        padding: 38px 36px;
    }

    .login-story-copy {
        margin-top: 112px;
    }

    .login-card {
        display: flex;
        padding: 48px 44px;
        flex-direction: column;
        justify-content: center;
    }

    .app-header {
        top: 10px;
        border: 1px solid rgba(203, 202, 190, 0.8);
        border-radius: 25px 25px 25px 10px;
    }

    .app-content {
        margin-top: calc(var(--header-height) + 28px);
    }
}

@media (max-width: 350px) {
    .app-header {
        padding-right: 11px;
        padding-left: 11px;
    }

    .header-user {
        padding-right: 4px;
    }

    .nav-item {
        font-size: 0.51rem;
    }

    .nav-icon {
        width: 31px;
        height: 31px;
    }

    .welcome-panel {
        grid-template-columns: 1fr 92px;
        padding-right: 14px;
        padding-left: 16px;
    }

    .stat-card-wide {
        padding: 16px;
        gap: 11px;
    }

    .stat-team .stat-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .stat-orbit {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        font-size: 1.05rem;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card-foot {
        font-size: 0.51rem;
    }

    .bubble-a {
        right: 7px;
        width: 62px;
        height: 62px;
    }

    .bubble-b {
        right: 48px;
    }

    .list-card {
        padding: 15px;
    }

    .badge {
        padding-right: 7px;
        padding-left: 7px;
    }
}

/* Parola yönetimi */
#forced-password-view {
    display: none;
    min-height: 100dvh;
    padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 10%, rgba(243, 197, 90, 0.24), transparent 17rem),
        radial-gradient(circle at 90% 92%, rgba(31, 118, 88, 0.16), transparent 20rem),
        var(--background);
}

#forced-password-view.active {
    display: flex;
}

.forced-password-shell {
    width: min(100%, 470px);
    padding: 30px 24px 24px;
    border: 1px solid var(--border-strong);
    border-radius: 30px 30px 30px 10px;
    background: var(--surface);
    box-shadow: var(--shadow-float);
}

.forced-password-mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    color: var(--primary-dark);
    font-size: 1.35rem;
    border-radius: 19px 19px 19px 6px;
    background: var(--accent-sun);
    place-items: center;
    box-shadow: 0 10px 24px rgba(243, 197, 90, 0.26);
}

.forced-password-shell h2 {
    margin: 7px 0 8px;
    color: var(--text-main);
    font-size: 1.75rem;
}

.forced-password-shell > p,
.sheet-heading p,
.password-reset-confirm p {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.password-form {
    margin-top: 22px;
}

.forced-password-logout {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.drawer-security {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(31, 118, 88, 0.2);
    border-radius: 17px 17px 17px 6px;
    background: var(--primary-light);
    cursor: pointer;
}

.drawer-security span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.password-reset-request {
    display: flex;
    margin-top: 14px;
    padding: 11px 12px;
    align-items: center;
    gap: 10px;
    color: #785313;
    border: 1px solid #efd58b;
    border-radius: 15px 15px 15px 5px;
    background: linear-gradient(135deg, #fff4cb, #fffaf0);
}

.password-reset-request-icon,
.password-reset-confirm-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px 12px 12px 4px;
    background: #ffe39a;
    place-items: center;
}

.password-reset-request > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.password-reset-request strong {
    font-size: 0.72rem;
}

.password-reset-request small {
    color: #927847;
    font-size: 0.62rem;
}

.btn-reset-password {
    color: #fff;
    border-color: #9b6715;
    background: #9b6715;
}

.password-reset-confirm {
    padding: 4px 0 8px;
    text-align: center;
}

.password-reset-confirm-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    color: #8a5c12;
    font-size: 1.15rem;
}

.password-reset-confirm .sheet-title {
    margin: 8px 0;
}

.temporary-password-note {
    display: flex;
    margin: -8px 0 20px;
    padding: 12px 13px;
    align-items: center;
    gap: 10px;
    color: #744d0f;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: left;
    border: 1px solid #ecd17b;
    border-radius: 15px 15px 15px 5px;
    background: #fff3c7;
}

.temporary-password-note i {
    flex: 0 0 auto;
    color: #9b6715;
}

.temporary-password-note strong {
    display: inline-block;
    padding: 1px 6px;
    color: #684408;
    border-radius: 6px;
    background: #ffe49a;
}

.password-reset-confirm-actions,
.confirm-sheet-actions {
    display: flex;
    margin-top: 4px;
    gap: 10px;
}

/* ─── Genel onay diyaloğu (kullanıcı silme vb.) ─────────────────────────── */
.confirm-sheet {
    padding: 4px 0 8px;
    text-align: center;
}

.confirm-sheet p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.confirm-sheet-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    font-size: 1.15rem;
    border-radius: 17px 17px 17px 6px;
    place-items: center;
}

.confirm-sheet-icon.is-danger {
    color: #8c2a20;
    background: var(--danger-light);
}

.confirm-sheet .sheet-title {
    margin: 8px 0;
}

.confirm-sheet-note {
    display: flex;
    margin: -8px 0 20px;
    padding: 12px 13px;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: left;
    border-radius: 15px 15px 15px 5px;
}

.confirm-sheet-note.is-danger {
    color: #8c2a20;
    border: 1px solid #f0c6bf;
    background: var(--danger-light);
}

.confirm-sheet-note i {
    flex: 0 0 auto;
}

/* ─── Görev atama ön gösterimi ──────────────────────────────────────────── */
.task-preview .sheet-heading {
    text-align: left;
}

.preview-card {
    display: flex;
    margin-bottom: 14px;
    padding: 4px 14px;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px 18px 18px 6px;
    background: var(--surface-soft);
}

.preview-row {
    display: flex;
    padding: 11px 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.preview-row:last-child {
    border-bottom: 0;
}

.preview-label {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.preview-value {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.preview-block {
    margin-bottom: 14px;
}

.preview-block .preview-label {
    margin-bottom: 8px;
}

.preview-people {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.preview-people li {
    display: flex;
    padding: 9px 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 15px 15px 15px 5px;
    background: var(--surface);
}

.preview-people li > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.preview-people strong {
    font-size: 0.76rem;
}

.preview-people small {
    color: var(--text-muted);
    font-size: 0.63rem;
}

.preview-index {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--primary-dark);
    font-size: 0.68rem;
    font-weight: 900;
    border-radius: 9px 9px 9px 3px;
    background: var(--primary-light);
    place-items: center;
}

.preview-note {
    margin: 0;
    padding: 11px 13px;
    color: var(--text-main);
    font-size: 0.76rem;
    line-height: 1.6;
    white-space: pre-line;
    border: 1px solid var(--border);
    border-radius: 15px 15px 15px 5px;
    background: var(--surface);
}

/* Görev formu revize modunda olduğunu belirten şerit */
.task-edit-note {
    display: flex;
    margin-bottom: 14px;
    padding: 11px 13px;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.5;
    border: 1px solid rgba(31, 118, 88, 0.22);
    border-radius: 15px 15px 15px 5px;
    background: var(--primary-light);
}

.task-edit-note[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
