/* ==========================================================================
   OTO YIKAMA YÖNETİM SİSTEMİ - PREMIUM TASARIM SİSTEMİ
   ========================================================================== */

/* Varsayılan / Fallback CSS Değişkenleri */
:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-rgb: 59, 130, 246;
    
    /* Koyu Tema — Modern Slate (Slate-900 tabanlı, daha sıcak ve okunaklı) */
    --background: #0f172a;
    --background-gradient: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 60%, #020617 100%);
    --surface: rgba(30, 41, 59, 0.55);
    --surface-hover: rgba(51, 65, 85, 0.75);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.12);
    --border-hover: rgba(148, 163, 184, 0.22);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.1);
    --card-glow: 0 0 30px rgba(var(--primary-rgb), 0.06);
    
    /* White-Label Ayarları */
    --logo-url: url('/images/premium_detailing_logo.png');
    --bg-url: url('/images/premium_detailing_bg.png');
    --tenant-name: "Oto Yıkama Yönetim Sistemi";
    
    /* Tipografi ve Spacing */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Mobil Öncelikli Dokunma Hedefi Standardı */
    --touch-target-height: 56px;
}

/* Açık Tema Seçenekleri */
body.light-theme {
    --background: #f8fafc;
    --background-gradient: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #e2e8f0 100%);
    --surface: rgba(255, 255, 255, 0.75);
    --surface-hover: rgba(241, 245, 249, 0.95);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.06);
    --border-hover: rgba(15, 23, 42, 0.12);
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --card-glow: 0 0 30px rgba(var(--primary-rgb), 0.04);
}

/* Reset & Temel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background: var(--background-gradient);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
}

/* Global Arka Plan Filigran Görseli */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.10;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
    filter: saturate(0.8) brightness(0.5);
}

body.light-theme::before {
    opacity: 0.06;
    filter: saturate(0.6) brightness(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}
body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Spinner & Loading */
.app-initial-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background-gradient);
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   TIPOGRAFİ & ORTAK BİLEŞENLER
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-hover);
}

/* Kartlar (Glassmorphism) */
.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

body.light-theme .card::after {
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0) 100%);
}

.card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--shadow), var(--card-glow);
    transform: translateY(-4px);
}

/* Tablolar (Premium Modern Listeler - Grid Görünümü) */
.app-content table, 
.modal-overlay table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text);
    background: transparent !important;
    border: none !important;
}

.app-content thead, 
.modal-overlay thead {
    background-color: transparent !important;
}

.app-content th, 
.modal-overlay th {
    padding: 0.75rem 1.25rem !important;
    font-weight: 800 !important;
    color: var(--text-muted) !important;
    border-bottom: none !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-content tr, 
.modal-overlay tr {
    background: var(--surface) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease;
}

.app-content tbody tr:hover, 
.modal-overlay tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 15px rgba(var(--primary-rgb), 0.04);
}

.app-content td, 
.modal-overlay td {
    padding: 1.1rem 1.25rem !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text);
    vertical-align: middle;
    background: transparent !important;
    transition: background-color 0.2s ease;
}

.app-content td:first-child, 
.modal-overlay td:first-child {
    border-left: 1px solid var(--border) !important;
    border-top-left-radius: var(--radius-md) !important;
    border-bottom-left-radius: var(--radius-md) !important;
}

.app-content td:last-child, 
.modal-overlay td:last-child {
    border-right: 1px solid var(--border) !important;
    border-top-right-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
}

/* Form Elemanları (Glassmorphic) */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    min-height: var(--touch-target-height);
    background-color: rgba(0, 0, 0, 0.2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 0 1.25rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

body.light-theme .form-control {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18), 0 0 15px rgba(var(--primary-rgb), 0.1);
}

body.light-theme .form-control:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15), 0 0 15px rgba(var(--primary-rgb), 0.05);
}

textarea.form-control {
    padding: 1rem 1.25rem;
    min-height: 120px;
    resize: vertical;
}

/* Butonlar (Dokunmatik Öncelikli Premium) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target-height);
    padding: 0 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--primary-rgb), 0.25);
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--surface-hover);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--border);
    border-color: var(--border-hover);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: #ffffff;
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #0284c7 100%);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* Badgeler (Durum Göstergeleri) */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50px;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-yellow { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-blue { background-color: rgba(14, 165, 233, 0.15); color: var(--info); border: 1px solid rgba(14, 165, 233, 0.3); }
.badge-green { background-color: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-gray { background-color: rgba(148, 163, 184, 0.15); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.3); }

/* ==========================================================================
   SPA DÜZENLERİ (LAY-OUTS)
   ========================================================================== */

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   IMPERSONATION BANNER (Süper Admin → Başka İşletme Yönetimi)
   ========================================================================== */

.impersonate-banner {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.18) 0%,
        rgba(251, 191, 36, 0.12) 100%
    );
    border-bottom: 1px solid rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 2px 20px rgba(245, 158, 11, 0.15);
    animation: bannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes bannerSlideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.impersonate-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.9rem;
}

.impersonate-banner .banner-content i {
    font-size: 1.1rem;
}

.impersonate-banner .banner-content strong {
    font-family: monospace;
    font-size: 0.95rem;
    background: rgba(245, 158, 11, 0.15);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.btn-revert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-revert:hover {
    background: rgba(245, 158, 11, 0.22);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

body.light-theme .impersonate-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.07) 100%);
    border-bottom-color: rgba(245, 158, 11, 0.3);
}

@keyframes animate-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: animate-pulse 2s ease-in-out infinite;
}


/* Header */
.app-header {
    background-color: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tenant-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.tenant-logo.has-logo {
    background-color: transparent;
    box-shadow: none;
}

body.light-theme .tenant-logo {
    background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .tenant-logo.has-logo {
    background-color: transparent;
}

.tenant-logo:empty::before {
    content: "🚗";
    font-size: 1.6rem;
}

.tenant-logo.has-logo:empty::before {
    content: "";
}

.tenant-name-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    background-color: var(--surface-hover);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tema Değiştirici Buton */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
    background-color: var(--surface-hover);
    color: var(--text);
    border-color: rgba(var(--primary-rgb), 0.5);
    transform: rotate(20deg) scale(1.05);
}

.logout-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    min-height: 42px;
    padding: 0 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logout-btn:hover {
    background-color: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.25);
}

/* App Body & Navigations */
.app-body {
    display: flex;
    flex: 1;
}

/* Sidebar Nav */
.app-nav {
    width: 270px;
    background-color: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--border);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    min-height: var(--touch-target-height);
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 700;
    gap: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    transition: color 0.2s ease;
}

.nav-item:hover {
    background-color: var(--surface-hover);
    color: var(--text);
}

.nav-item:hover i {
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--primary-rgb), 0.55) 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(var(--primary-rgb), 0.5);
}

.nav-item.active i {
    color: #ffffff !important;
    transform: scale(1.15);
}

/* Active Nav Indicator Bar */
.nav-item.active::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 0 8px #ffffff;
}

/* Content Area */
.app-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, var(--text) 20%, rgba(var(--primary-rgb), 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile Bottom Nav (Floating Island Dock) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    height: 72px;
    background-color: rgba(15, 22, 42, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 2px rgba(255, 255, 255, 0.1) inset;
    padding: 0 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-theme .mobile-bottom-nav {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06), 0 0 2px rgba(0, 0, 0, 0.05) inset;
}

.mobile-bottom-nav .nav-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.725rem;
    padding: 0;
    min-height: auto;
    gap: 0.2rem;
    flex: 1;
    border-left: none;
    border-radius: 18px;
    height: 56px;
}

.mobile-bottom-nav .nav-item::before {
    display: none;
}

.mobile-bottom-nav .nav-item:hover {
    transform: none;
    background: transparent;
}

.mobile-bottom-nav .nav-item.active {
    background: rgba(var(--primary-rgb), 0.15) !important;
    color: var(--primary) !important;
    box-shadow: none;
}

.mobile-bottom-nav .nav-item.active i {
    color: var(--primary) !important;
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.3rem;
}

/* Responsive Kuralları */
@media (max-width: 1024px) {
    .app-nav {
        width: 84px;
        padding: 1.5rem 0.5rem;
    }
    .app-nav .nav-item span {
        display: none;
    }
    .app-nav .nav-item {
        justify-content: center;
        padding: 0;
    }
    .app-nav .nav-item:hover {
        transform: none;
    }
    .app-nav .nav-item.active::before {
        left: 4px;
    }
}

/* ==========================================================================
   MOBİL MENÜ — Hamburger + Yan akordiyon + Alt Navbar (admin + staff)
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 8px;
}
.mobile-menu-toggle:hover { background: var(--surface-hover); }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    padding: 0.5rem;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}
.mobile-nav-close:hover { background: var(--surface-hover); }

/* CTA buton: alt navbar'da ortadaki büyük "+" */
.bottom-nav-cta {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: white !important;
    margin-top: -16px;
    min-width: 56px;
    border-radius: 50% !important;
    height: 56px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}
.bottom-nav-cta i { font-size: 1.4rem !important; }
.bottom-nav-cta span { font-size: 0.65rem; }

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem 0.25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    min-height: 56px;
    transition: color 0.2s;
}
.bottom-nav-item i { font-size: 1.15rem; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active i { transform: scale(1.1); }
.bottom-nav-item:hover { color: var(--primary); }

@media (max-width: 768px) {
    /* Üst bar: hamburger görünür, kullanıcı adı + branch switcher select sıkıştırılır */
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .app-header {
        padding: 0.75rem 0.85rem !important;
        gap: 0.5rem;
    }
    .header-brand .tenant-name-text {
        font-size: 0.95rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-brand .tenant-logo { width: 32px; height: 32px; }
    .header-user {
        gap: 0.4rem !important;
    }
    .header-user .user-name,
    .header-user .logout-btn span { display: none; }
    .header-user .logout-btn { padding: 0.4rem 0.55rem; min-width: 36px; }
    .branch-switcher { padding: 0.25rem 0.55rem; font-size: 0.75rem; }
    .branch-switcher i { font-size: 0.75rem; }
    .branch-switcher select { font-size: 0.75rem; max-width: 110px; }

    /* Sidebar mobile: slide-in panel */
    .app-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 84%;
        max-width: 320px;
        background: var(--background);
        border-right: 1px solid var(--border);
        z-index: 999;
        padding: 1rem;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.4, 1);
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .app-nav.open { transform: translateX(0); }
    .app-nav .nav-item {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
    .mobile-nav-close { display: inline-flex; align-items: center; justify-content: center; }

    .app-content {
        padding: 1.25rem 1rem 105px;
    }

    /* Alt navbar — admin ve staff için */
    .mobile-bottom-nav {
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
        background: var(--surface);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
    }
}

@media (min-width: 769px) {
    /* Desktop: alt navbar gizli */
    .mobile-bottom-nav { display: none !important; }
    .mobile-menu-toggle, .mobile-nav-close { display: none; }
}

/* ==========================================================================
   GİRİŞ (LOGIN) EKRANI STILLERI
   ========================================================================== */

.login-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background-color: var(--background);
    background: var(--background-gradient);
    transition: background-color 0.3s ease;
    overflow-y: auto;
}

.login-page-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45; /* Cinematic watermark */
    filter: brightness(0.45) contrast(1.1) saturate(1.2);
    z-index: 0;
    transition: opacity 0.3s ease;
}

body.light-theme .login-page-container::before {
    opacity: 0.28;
    filter: brightness(0.94) contrast(0.98);
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.45); /* modern deep glassmorphism */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 3rem 2.75rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 35px rgba(var(--primary-rgb), 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .login-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1), 0 0 30px rgba(var(--primary-rgb), 0.05);
}

.login-brand {
    text-align: center;
    margin-bottom: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-md);
    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand-logo.has-logo {
    background-color: transparent;
    box-shadow: none;
    width: 130px;
    height: 130px;
    margin-bottom: 0.5rem;
}

body.light-theme .login-brand-logo {
    background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .login-brand-logo.has-logo {
    background-color: transparent;
}

.login-brand-logo:empty::before {
    content: "🚗";
    font-size: 2.8rem;
}

.login-brand-logo.has-logo:empty::before {
    content: "";
}

.login-brand-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .login-brand-name {
    background: linear-gradient(135deg, var(--text) 0%, rgba(var(--primary-rgb), 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-tabs {
    display: flex;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

body.light-theme .login-tabs {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Giriş Sekme Butonları (Segmented Control) */
.login-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1rem;
    border: none;
    border-radius: calc(var(--radius-md) - 0.35rem);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.login-tab-btn:hover {
    color: var(--text);
    background-color: rgba(var(--primary-rgb), 0.06);
}

.login-tab-btn.active {
    background: linear-gradient(135deg,
        rgba(var(--primary-rgb), 0.85) 0%,
        rgba(var(--primary-rgb), 0.65) 100%
    );
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

body.light-theme .login-tab-btn.active {
    background: linear-gradient(135deg,
        rgba(var(--primary-rgb), 1) 0%,
        rgba(var(--primary-rgb), 0.8) 100%
    );
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}


/* PIN Panel */
.pin-display-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.pin-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pin-dots {
    display: flex;
    gap: 1.75rem;
}

.pin-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background-color: transparent;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pinPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.15); }
}

.pin-dot.filled {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.75);
    animation: pinPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pin-pad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    justify-items: center;
    max-width: 320px;
    margin: 0 auto;
}

.pin-key {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

body.light-theme .pin-key {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255,255,255,0.9);
}

.pin-key:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 0 15px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.pin-key:active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pin-key.key-action {
    background-color: rgba(255, 255, 255, 0.02);
    font-size: 1.25rem;
}

body.light-theme .pin-key.key-action {
    background-color: rgba(0, 0, 0, 0.02);
}

.pin-key.key-action:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.15);
}

.pin-key.key-submit {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.pin-key.key-submit:hover {
    background-color: var(--success);
    border-color: var(--success);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   TOAST UYARI BİLDİRİMLERİ (TOAST NOTIFICATIONS)
   ========================================================================== */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    min-height: 56px;
    min-width: 320px;
    max-width: 440px;
    background-color: var(--surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow);
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 700;
}

.toast-success { border-left-color: var(--success); }
.toast-success i { color: var(--success); }

.toast-error { border-left-color: var(--danger); }
.toast-error i { color: var(--danger); }

.toast-warning { border-left-color: var(--warning); }
.toast-warning i { color: var(--warning); }

.toast-info { border-left-color: var(--info); }
.toast-info i { color: var(--info); }

/* Mobilde Toastların Alta Alınması */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 100px; /* Floating Bottom Nav'ın üstünde olması için */
        left: 20px;
        right: 20px;
    }
    .toast {
        max-width: none;
        transform: translateY(120%);
    }
    .toast.show {
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODALLAR VE ANIMASYONLAR
   ========================================================================== */

.modal-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.3s ease;
    animation: fadeIn 0.25s ease-out;
}

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-overlay > .card {
    animation: modalFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==========================================================================
   KANBAN BOARD / İŞ TAKİP
   ========================================================================== */

.kanban-column {
    background-color: var(--surface) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-top: 4px solid var(--border) !important;
}

.kanban-column[data-status="kabul"] { border-top-color: var(--warning) !important; }
.kanban-column[data-status="yikamada"] { border-top-color: var(--info) !important; }
.kanban-column[data-status="hazir"] { border-top-color: var(--success) !important; }
.kanban-column[data-status="teslim"] { border-top-color: var(--text-muted) !important; }

.order-kanban-card {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s ease !important;
    animation: itemEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.light-theme .order-kanban-card {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.order-kanban-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 0 0 20px rgba(var(--primary-rgb), 0.15) !important;
    border-color: rgba(var(--primary-rgb), 0.4) !important;
}

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

/* ==========================================================================
   PLAKA VE MARKA STİLLERİ (WHITE LABEL EXTRA)
   ========================================================================== */

/* Gerçekçi Türkiye Plaka Tasarımı */
.license-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 2px solid #1e293b !important;
    border-radius: 6px !important;
    padding: 3px 10px 3px 28px !important;
    font-family: 'Courier New', Courier, monospace, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    position: relative !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    user-select: none !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

.license-plate::before {
    content: "TR" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 20px !important;
    background-color: #003399 !important;
    color: #ffffff !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 3px !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
    font-family: var(--font-sans) !important;
    letter-spacing: 0 !important;
}

body.light-theme .license-plate {
    border-color: #0f172a !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1) !important;
}

/* Input Icon Wrapper Styles */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-icon-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    pointer-events: none;
    font-size: 1.1rem;
}
.input-icon-wrapper .form-control {
    padding-left: 3.25rem;
}
.input-icon-wrapper .form-control:focus + i {
    color: var(--primary);
}

/* Premium Fallback Logo styling */
.premium-fallback-logo {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}
.login-brand-logo:hover .premium-fallback-logo {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   ŞUBE SWITCHER (Branch Switcher) — Çoklu Şube
   ========================================================================== */
.branch-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
}
.branch-switcher i {
    color: var(--primary);
}
.branch-switcher select {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    padding-right: 1.25rem;
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 8px) 50%, calc(100% - 4px) 50%;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
}
.branch-switcher select option {
    background: var(--background);
    color: var(--text);
}
.branch-switcher.single span {
    font-weight: 500;
}
@media (max-width: 768px) {
    .branch-switcher {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   BRANCH (ŞUBE) YÖNETİM SAYFASI
   ========================================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.branch-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.branch-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.branch-card.inactive {
    opacity: 0.55;
}
.branch-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.branch-card-head h3 {
    margin: 0;
    font-size: 1.125rem;
}
.branch-card p {
    color: var(--text-muted);
    margin: 0.35rem 0;
    font-size: 0.875rem;
}
.branch-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-success { background: rgba(16,185,129,0.18); color: var(--success); }
.badge-muted   { background: rgba(148,163,184,0.18); color: var(--text-muted); }

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}
.empty-state h4 {
    color: var(--text);
    margin: 0 0 0.25rem;
}

/* Modal — basit ortak stil */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow);
}
.modal h3 { margin-top: 0; }
.form-actions {
    display: flex; justify-content: flex-end; gap: 0.5rem;
    margin-top: 1rem;
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(1.1); }

/* ==========================================================================
   LOGIN — REGISTER CTA (İşletmeni Kaydet — net button)
   ========================================================================== */
.register-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.register-divider::before,
.register-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}

.register-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    min-height: 64px;
    text-align: left;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border: 2px dashed rgba(var(--primary-rgb), 0.35);
    color: var(--text);
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    font-family: var(--font-sans);
}
.register-cta-btn:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--primary-rgb), 0.06) 100%);
    border-color: var(--primary);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.18);
}
.register-cta-btn > i:first-child {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}
.register-cta-btn > i:last-child {
    font-size: 0.95rem;
    color: var(--primary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.register-cta-btn:hover > i:last-child {
    transform: translateX(4px);
}
.register-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.register-cta-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.register-cta-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Login card cila — daha yumuşak gölge, hafif glassmorphism */
.login-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04) inset;
    animation: fade-in 0.4s ease-out;
}

/* Login brand cilası */
.login-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}
.login-brand-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.28);
    animation: logo-float 4s ease-in-out infinite;
}
@keyframes logo-float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-4px); }
}
.login-brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin: 0;
}
.login-brand-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   ERİŞİLEBİLİRLİK — focus halkası
   ========================================================================== */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.35);
}

/* Skip link — klavye kullanıcıları için */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    z-index: 9999;
    border-radius: 0 0 8px 0;
}
.skip-to-content:focus {
    left: 0;
    top: 0;
}

/* ==========================================================================
   SKELETON LOADER
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}
.skeleton-line {
    height: 12px;
    margin: 0.4rem 0;
}
.skeleton-line.tall { height: 18px; }
.skeleton-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   MİKRO-ANİMASYONLAR
   ========================================================================== */
.fade-in { animation: fade-in 0.3s ease-out; }
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.order-kanban-card {
    animation: fade-in 0.25s ease-out;
}

.tv-card-new {
    animation: tv-pulse 1s ease-in-out 3;
}
@keyframes tv-pulse {
    0%,100% { transform: scale(1); box-shadow: 0 0 40px rgba(16,185,129,0.18); }
    50%     { transform: scale(1.05); box-shadow: 0 0 80px rgba(16,185,129,0.6); }
}

/* Reduced motion — kullanıcı tercihine saygı */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   KOMUT PALETİ (Ctrl+K)
   ========================================================================== */
.cmd-palette-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 12vh;
    animation: fade-in 0.15s ease-out;
}
.cmd-palette {
    width: 100%;
    max-width: 640px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    overflow: hidden;
    margin: 0 1rem;
}
.cmd-input-wrap {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}
.cmd-input-wrap i { color: var(--text-muted); }
.cmd-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
}
.cmd-input-wrap kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.cmd-results {
    max-height: 50vh;
    overflow-y: auto;
}
.cmd-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.cmd-item.active {
    background: var(--surface-hover);
}
.cmd-item i {
    color: var(--primary);
    width: 1.25rem;
    text-align: center;
}
.cmd-item-text { flex: 1; }
.cmd-item-label { font-weight: 500; }
.cmd-item-sub { font-size: 0.75rem; color: var(--text-muted); }
.cmd-item-kind {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 999px;
}
.cmd-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}
.cmd-hint {
    display: flex; gap: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.7rem;
    color: var(--text-muted);
}
.cmd-hint kbd {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 5px;
    margin-right: 4px;
    font-size: 0.65rem;
}

/* Form-control consistent — yeni public sayfalardan kullanılır */
.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}
.btn-block { width: 100%; }


