/* =========================================================
   1st CAVALRY DIVISION — MODERN WEB YÖNETİM PANELİ STİLLERİ
   Tasarım: Sleek Dark Mode + Glassmorphism + Askeri Karargah
   ========================================================= */

:root {
    --bg-main: #0a0d14;
    --bg-sidebar: #0f1420;
    --bg-card: rgba(20, 27, 41, 0.75);
    --bg-card-hover: rgba(28, 38, 57, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #6366f1;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);

    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.2);
    --warning: #f59e0b;

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

/* =========================================================
   ÖZEL KOYU TEMA KAYDIRMA ÇUBUĞU (CUSTOM DARK SCROLLBAR)
   ========================================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Düzen (Layout) */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────
   SOL YAN MENÜ (SIDEBAR)
   ───────────────────────────────────────────────────────────── */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
    overflow-y: auto;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px 16px 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.brand-icon, .brand-badge {
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 0 16px var(--primary-glow);
}

.stat-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-leave {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.brand-text h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.badge-status {
    font-size: 0.72rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--success); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    padding: 14px 10px 5px 10px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-section-title:first-child {
    margin-top: 0;
    padding-top: 2px;
}

.nav-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    width: 100%;
    flex-shrink: 0;
}

.nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke: currentColor;
    opacity: 0.72;
    transition: all 0.18s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    transform: translateX(2px);
}

.nav-item:hover svg {
    opacity: 1;
    stroke: #e2e8f0;
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.28);
    color: #c7d2fe;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.12);
}

.nav-item.active svg {
    opacity: 1;
    stroke: #818cf8;
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.4));
}

.nav-item .badge {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.highlight-nav {
    border-color: rgba(99, 102, 241, 0.2);
}

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

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.user-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.role-pill {
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    padding: 1px 7px;
    border-radius: 10px;
    display: inline-block;
}

/* ─────────────────────────────────────────────────────────────
   SAĞ ANA İÇERİK ALANI
   ───────────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-clock {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logged-in-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
}

.user-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Sekmeler (Tab Panes) */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* ─────────────────────────────────────────────────────────────
   İSTATİSTİK KARTLARI (STATS GRID)
   ───────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card.border-green {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 100%);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.stat-footer {
    font-size: 0.8rem;
    margin-top: 8px;
}

.text-green { color: var(--success); }
.text-muted { color: var(--text-muted); }

/* Gösterge Panelleri (Dashboard Grids) */
.dashboard-grid {
    display: flex;
    gap: 24px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.max-w-700 { max-width: 700px; }

.panel-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-title-group h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.panel-body {
    padding: 24px;
}

.panel-filters {
    display: flex;
    gap: 12px;
}

/* ─────────────────────────────────────────────────────────────
   TABLOLAR (DATA TABLES)
   ───────────────────────────────────────────────────────────── */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.data-table th {
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ─────────────────────────────────────────────────────────────
   BUTONLAR VE FORMLAR
   ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

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

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Genel Form Giriş Elemanları (Tüm Beyaz Kutuları Koyu Temaya Uydurma) */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
textarea,
select,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.5;
    outline: none;
    color-scheme: dark;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

textarea,
.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    background: rgba(13, 19, 32, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

select option {
    background: #0f1420;
    color: var(--text-primary);
}

/* Salt Okunur (Readonly) ve Devre Dışı (Disabled) Elemanlar */
input[readonly],
textarea[readonly],
.form-input[readonly],
.form-textarea[readonly],
input:disabled,
textarea:disabled,
select:disabled {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    cursor: default !important;
    box-shadow: none !important;
}

input[readonly]:focus,
textarea[readonly]:focus {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

/* =========================================================
   MODERN İNCELEME KARTLARI & GÖSTERGE ROZETLERİ (BAŞVURU MODALI)
   ========================================================= */
.app-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.app-meta-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.app-meta-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.app-meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.app-meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card-group {
    margin-bottom: 16px;
}

.review-display-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 52px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.review-display-card:hover {
    background: rgba(20, 30, 55, 0.75);
    border-color: rgba(99, 102, 241, 0.35);
    border-left-color: #818cf8;
}

.review-display-motivation {
    min-height: 110px;
}

.form-color-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
   DİNAMİK ROLLER VE RBAC ALANI
   ───────────────────────────────────────────────────────────── */
.alert-info-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.alert-info-banner .alert-icon {
    font-size: 24px;
}

.alert-info-banner .alert-content {
    font-size: 0.9rem;
    color: #c7d2fe;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.role-card {
    background: rgba(15, 20, 32, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.role-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.role-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.role-permissions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    max-height: 120px;
    overflow-y: auto;
}

.perm-tag {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
}

.role-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

/* Modal İzin Seçim Kutuları */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.perm-category-group {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
}

.perm-category-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 4px;
}

.perm-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    cursor: pointer;
}

.perm-checkbox-item span strong {
    display: block;
    color: var(--text-primary);
}

.perm-checkbox-item span small {
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   MODALLAR
   ───────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-box {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 620px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.modal-box.modal-sm {
    max-width: 460px;
}

.modal-box.modal-md {
    max-width: 760px;
}

.modal-box.modal-lg {
    max-width: 1040px;
    width: 95vw;
}

.modal-box.modal-xl {
    max-width: 1280px;
    width: 96vw;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.95);
    flex-shrink: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.modal-close:hover { color: #ffffff; }

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 14, 23, 0.6);
    flex-shrink: 0;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* Liderlik Tablosu Öğeleri */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-rank {
    font-size: 1.1rem;
    font-weight: 800;
    width: 28px;
    text-align: center;
    color: var(--text-muted);
}

.leaderboard-rank.gold { color: #f59e0b; }
.leaderboard-rank.silver { color: #94a3b8; }
.leaderboard-rank.bronze { color: #d97706; }

.leaderboard-user {
    flex: 1;
}

.leaderboard-time {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: #a5b4fc;
}

/* Toast Bildirimleri */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobil Uyumluluk (Responsive) */
@media (max-width: 900px) {
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .main-content { padding: 20px; }
    .dashboard-grid { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
}

/* ─────────────────────────────────────────────────────────────
   ROZETLER, DURUM ETİKETLERİ & UYARI BİLEŞENLERİ
   ───────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
}

.badge-info {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.text-primary {
    color: #818cf8 !important;
}

.text-info {
    color: #38bdf8 !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-danger {
    color: #f87171 !important;
}

.text-success {
    color: #34d399 !important;
}


.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: center;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-leave {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-inactive {
    background: rgba(100, 116, 139, 0.18);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.warning-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-bottom: 6px;
    font-size: 0.84rem;
}

.warning-meta {
    display: flex;
    flex-direction: column;
}

.warning-reason {
    color: #f87171;
    font-weight: 600;
}

.warning-info {
    color: var(--text-muted);
    font-size: 0.74rem;
}

/* TERFİ İLERLEME ÇUBUĞU VE LİDERLİK */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress-fill.complete {
    background: #10b981;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.leaderboard-pos {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 700;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.leaderboard-pos.pos-1 {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.leaderboard-pos.pos-2 {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.leaderboard-pos.pos-3 {
    background: rgba(180, 83, 9, 0.2);
    color: #d97706;
    border: 1px solid rgba(180, 83, 9, 0.4);
}

.status-present {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-absent {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-tardy {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* CANLI TOPLANTI MASASI */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.live-indicator.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.live-indicator.inactive {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}
.live-indicator.active .pulse-dot {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.meeting-timer {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: #a5b4fc;
    letter-spacing: 0.5px;
}

/* FİLTRELEME BUTONLARI */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* GALERİ YÖNETİM KARTLARI */
.gallery-admin-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-admin-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* REAL-TIME LIVE STATUS PILL (SSE) */
.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    user-select: none;
    transition: all 0.3s ease;
}

.live-status-pill.disconnected {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}

.live-status-pill.disconnected .pulse-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: none;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* TICKET TÜR ROZETLERİ */
.badge-ticket-ooc {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.badge-ticket-ic {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

.badge-ticket-sikayet {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.badge-ticket-misafir {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* SATIR ANİMASYONU */
.row-live-highlight {
    animation: rowFlash 2s ease-out;
}

@keyframes rowFlash {
    0% {
        background-color: rgba(99, 102, 241, 0.25);
    }
    100% {
        background-color: transparent;
    }
}

/* ─────────────────────────────────────────────────────────────
   MOBİL MENÜ, RESPONSIVE DÜZEN VE GELİŞMİŞ UI CİLALAMA
   ───────────────────────────────────────────────────────────── */

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* SEKME GEÇİŞ ANİMASYONU */
.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* BOŞ DURUM (EMPTY STATE) BİLEŞENİ */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 1rem 0;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #475569;
    stroke-width: 1.5;
}

.empty-state-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

.empty-state-desc {
    font-size: 0.85rem;
    color: #64748b;
    max-width: 420px;
    margin: 0 auto;
}

/* SKELETON LOADER (YÜKLENİYOR ŞİMMER ETKİSİ) */
.skeleton-box {
    display: inline-block;
    height: 1em;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.skeleton-box::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.06) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* MOBİL TABLO KAYDIRMA SARMALAYICISI */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

/* ─────────────────────────────────────────────────────────────
   MEDYA SORGULARI (RESPONSIVE BREAKPOINTS)
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .app-layout {
        display: block !important;
        position: relative;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -300px !important;
        width: 290px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        background: #0b1120 !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
    }

    .sidebar.sidebar-open {
        left: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.25rem 1rem !important;
    }

    .top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .top-actions {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px auto !important;
        padding: 1.25rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 580px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .page-title h1 {
        font-size: 1.35rem !important;
    }

    .page-title p {
        font-size: 0.82rem !important;
    }

    .card {
        padding: 1rem !important;
    }

    .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .card-header .btn, .card-header button {
        width: 100% !important;
    }

    .filter-bar {
        flex-direction: column !important;
        width: 100% !important;
    }

    .search-box, .filter-bar select, .filter-bar input {
        width: 100% !important;
    }

    .live-clock {
        font-size: 0.8rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   DARALTILABİLİR MİNİMALİST KENAR ÇUBUĞU (COMPACT SIDEBAR)
   ───────────────────────────────────────────────────────────── */
.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.sidebar.sidebar-collapsed {
    width: 72px !important;
    padding: 20px 8px !important;
}
.sidebar.sidebar-collapsed .brand {
    justify-content: center !important;
    padding: 0 0 16px 0 !important;
}
.sidebar.sidebar-collapsed .brand-text,
.sidebar.sidebar-collapsed .nav-section-title,
.sidebar.sidebar-collapsed .user-info,
.sidebar.sidebar-collapsed .btn-public-site span,
.sidebar.sidebar-collapsed .nav-item span,
.sidebar.sidebar-collapsed .nav-item .badge {
    display: none !important;
}
.sidebar.sidebar-collapsed .btn-public-site {
    padding: 8px !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
}
.sidebar.sidebar-collapsed .nav-item {
    justify-content: center !important;
    padding: 10px 0 !important;
    gap: 0 !important;
    position: relative;
}
.sidebar.sidebar-collapsed .nav-item svg {
    margin: 0 !important;
}
.sidebar.sidebar-collapsed .user-card {
    justify-content: center !important;
    padding: 8px 0 !important;
}
.sidebar.sidebar-collapsed .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    animation: tooltipFadeIn 0.15s ease-out;
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ─────────────────────────────────────────────────────────────
   HIZLI TOPLU İŞLEM MASASI (FLOATING BATCH ACTION DOCK)
   ───────────────────────────────────────────────────────────── */
.batch-action-dock {
    position: sticky;
    bottom: 16px;
    left: 0;
    right: 0;
    margin-top: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(12px);
    z-index: 40;
    animation: slideUpBatch 0.25s ease-out;
}
@keyframes slideUpBatch {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.batch-dock-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}
.batch-count-badge {
    background: var(--primary);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}
.batch-dock-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────
   KIDEM VE TERFİ ÖNGÖRÜ SİMÜLATÖRÜ
   ───────────────────────────────────────────────────────────── */
.simulator-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.45), rgba(15, 23, 42, 0.75));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.simulator-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.simulator-slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.simulator-slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 600;
}
.simulator-slider-header strong {
    color: #f59e0b;
}
.simulator-slider {
    width: 100%;
    accent-color: #f59e0b;
    cursor: pointer;
}
.progress-bar-container {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────
   AKTİF OTURUM VE GİRİŞ DENETİMİ (SESSION BADGES)
   ───────────────────────────────────────────────────────────── */
.device-badge-current {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.device-badge-other {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   TERFİ MASASI YENİ NESİL ARAYÜZ (PROMOTIONS DESK STYLES)
   ───────────────────────────────────────────────────────────── */
.promotion-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
}

.promotion-subnav .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.promotion-subnav .filter-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
}

.promotion-subnav .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.prom-ready-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.prom-ready-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prom-ready-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.65);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}

.prom-ready-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.prom-ready-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
    background: var(--card-bg);
}

.prom-ready-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #10b981;
}

.prom-ready-rank-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prom-ready-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.prom-metric-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prom-metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.prom-metric-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.prom-empty-card {
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
    max-width: 650px;
    margin: 20px auto;
}

.role-pill {
    white-space: nowrap !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.data-table td .role-pill {
    white-space: nowrap !important;
}

.prom-banner-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #34d399;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========================================================
   HİZMET PASAPORTU & KART (GOLD FOIL MEMBER CREDENTIAL)
   ======================================================== */
.passport-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.passport-view-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.passport-view-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.passport-control-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.passport-officer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.passport-officer-box .control-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.btn-gold-export {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-gold-export:hover {
    background: linear-gradient(135deg, #f0cf65 0%, #d4af37 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.passport-scene {
    display: flex;
    justify-content: center;
    padding: 6px 0 36px 0;
    width: 100%;
}

.passport-card {
    position: relative;
    width: 100%;
    max-width: 1140px;
    background: linear-gradient(145deg, #090e18 0%, #0d1524 50%, #080d16 100%);
    border: 2px solid #c59b27;
    border-radius: 16px;
    padding: 34px 34px 26px 34px;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 24px 50px rgba(0, 0, 0, 0.65), inset 0 0 50px rgba(212, 175, 55, 0.03);
    overflow: hidden;
}

/* Köşe Varak Motifleri */
.corner-ornament {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #d4af37;
    pointer-events: none;
    z-index: 2;
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-top: 2px solid #d4af37;
    border-left: 2px solid #d4af37;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-top: 2px solid #d4af37;
    border-right: 2px solid #d4af37;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid #d4af37;
    border-left: 2px solid #d4af37;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid #d4af37;
    border-right: 2px solid #d4af37;
}

/* Kart Arka Plan Filigranı */
.passport-watermark-emblem {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: rgba(212, 175, 55, 0.022);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 1;
}

/* Kart Üst Başlığı */
.passport-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.passport-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.passport-unit-shield {
    width: 52px;
    height: 58px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #d4af37;
    border-radius: 8px 8px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.shield-initials {
    font-size: 1rem;
    font-weight: 900;
    color: #d4af37;
    line-height: 1;
    letter-spacing: 0.05em;
}

.shield-stars {
    font-size: 0.55rem;
    color: #e2e8f0;
    letter-spacing: 2px;
    margin-top: 4px;
}

.passport-title-unit {
    font-size: 0.8rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.passport-title-main {
    font-size: 1.28rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.04em;
    margin: 2px 0;
}

.passport-title-sub {
    font-size: 0.74rem;
    color: #94a3b8;
    letter-spacing: 0.06em;
}

.passport-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.passport-registry-badge {
    text-align: right;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 6px 14px;
}

.passport-registry-badge .reg-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.1em;
}

.passport-registry-badge .reg-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.06em;
}

.passport-seal-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px dashed #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
    background: rgba(212, 175, 55, 0.05);
}

.seal-ring {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.seal-reg {
    font-size: 0.55rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.05em;
}

.seal-text {
    font-size: 0.62rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.05em;
}

.passport-gold-divider {
    position: relative;
    z-index: 2;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.25) 15%, rgba(212, 175, 55, 0.8) 50%, rgba(212, 175, 55, 0.25) 85%, transparent 100%);
    margin: 20px 0;
}

/* Kart Ana Gövde Düzeni */
.passport-body-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 270px 1.45fr 1.05fr;
    gap: 20px;
}

.passport-col {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

/* 1. Sütun: Kimlik */
.passport-avatar-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 12px auto;
}

.passport-avatar-ring {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.22);
    overflow: hidden;
    background: #1e293b;
}

.passport-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.passport-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #d4af37;
}

.passport-duty-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #0b111e;
    background: #64748b;
}

.passport-duty-indicator.on-duty {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.passport-identity-info {
    text-align: center;
    margin-bottom: 12px;
}

.pass-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.pass-handle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.pass-rank-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    padding: 4px 12px;
    margin-bottom: 6px;
    width: 100%;
}

.pass-rank-plate .rank-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #d4af37;
    font-family: 'JetBrains Mono', monospace;
}

.pass-rank-plate .rank-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.pass-rank-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pass-status-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.pass-status-pill.status-leave {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.passport-meta-list {
    border-top: 1px dashed rgba(212, 175, 55, 0.22);
    padding-top: 12px;
    margin-top: auto;
}

.passport-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.passport-meta-row:last-child {
    margin-bottom: 0;
}

.passport-meta-row .p-label {
    color: var(--text-muted);
}

.passport-meta-row .p-value {
    color: #e2e8f0;
    font-weight: 600;
}

/* 2. Sütun: Barometre */
.passport-block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d4af37;
    margin-bottom: 12px;
}

.barometer-status-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.14);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-transform: none;
    letter-spacing: 0;
}

.passport-next-rank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.next-rank-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.next-rank-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
}

.merit-index-badge {
    text-align: center;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 4px 10px;
}

.merit-index-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: #d4af37;
    display: block;
    line-height: 1.1;
    font-family: 'JetBrains Mono', monospace;
}

.merit-index-text {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.passport-meters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.meter-item {
    background: rgba(11, 17, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
}

.meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.meter-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #d4af37;
}

.meter-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-fill-gold {
    background: linear-gradient(90deg, #b8860b 0%, #d4af37 60%, #fef08a 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.meter-fill-cyan {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.meter-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.merit-verdict-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: auto;
}

.merit-verdict-box.verdict-pending {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.25);
}

.merit-verdict-box.verdict-pending .verdict-icon {
    color: #d4af37;
}

.merit-verdict-box.verdict-pending strong {
    color: #d4af37;
}

.merit-verdict-box .verdict-icon {
    color: #34d399;
    flex-shrink: 0;
    margin-top: 1px;
}

.merit-verdict-box strong {
    font-size: 0.82rem;
    color: #34d399;
    display: block;
    margin-bottom: 2px;
}

.merit-verdict-box p {
    font-size: 0.74rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.35;
}

/* 3. Sütun: Teçhizat & Unvanlar */
.passport-weapons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 155px;
    overflow-y: auto;
    padding-right: 4px;
}

.passport-weapon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 17, 30, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 8px;
    padding: 8px 10px;
}

.passport-weapon-card .w-info strong {
    font-size: 0.8rem;
    color: #ffffff;
    display: block;
}

.passport-weapon-card .w-info span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.passport-weapon-card .w-serial {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 700;
}

.passport-titles-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 110px;
    overflow-y: auto;
    padding-top: 2px;
}

.passport-title-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.empty-inventory-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 0;
}

/* Medals Section */
.passport-medals-section {
    position: relative;
    z-index: 2;
}

.passport-medals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.passport-medal-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
    padding: 10px 14px 10px 18px;
    overflow: hidden;
}

.passport-medal-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #d4af37 0%, #b8860b 100%);
}

.medal-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.medal-details strong {
    font-size: 0.82rem;
    color: #ffffff;
    display: block;
    font-weight: 700;
}

.medal-details span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Footer & Digital Stamp */
.passport-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.passport-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pass-stat-box {
    background: rgba(11, 17, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
    min-width: 110px;
}

.pass-stat-box .stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.pass-stat-box .stat-num {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.passport-auth-block {
    text-align: right;
}

.auth-barcode {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.45);
    font-size: 0.82rem;
    user-select: none;
}

.auth-cert {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 2px 0;
    display: flex;
    flex-direction: column;
}

.auth-time {
    font-size: 0.68rem;
    color: #d4af37;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive Düzenlemeler */
@media (max-width: 1024px) {
    .passport-body-grid {
        grid-template-columns: 1fr;
    }
}

/* Baskı / PDF Çıktı Modu */
@media print {
    body {
        background: #090e18 !important;
        color: #ffffff !important;
    }
    .sidebar, .top-bar, .passport-control-bar, .sidebar-backdrop {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    .tab-pane {
        display: none !important;
    }
    #tab-passport {
        display: block !important;
    }
    .passport-card {
        border: 2px solid #c59b27 !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        page-break-inside: avoid !important;
    }
}

/* ─────────────────────────────────────────────
   31. CANLI DESTEK MASASI (LIVE TICKET DESK)
   ───────────────────────────────────────────── */
.ticket-desk-modal-box {
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.ticket-desk-layout {
    height: 100%;
}

.ticket-desk-stream {
    background: #080c14;
    border-radius: 6px;
    margin: 12px;
}

.desk-msg-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.desk-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.desk-msg-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(200, 170, 110, 0.15);
    color: var(--gold);
    border: 1px solid rgba(200, 170, 110, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.desk-msg-body {
    flex: 1;
    min-width: 0;
}

.desk-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.desk-author-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.desk-msg-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
}

.desk-bubble {
    background: #111a2e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-main);
    display: inline-block;
    max-width: 90%;
    word-break: break-word;
    line-height: 1.45;
}

.desk-msg-staff .desk-bubble {
    background: #13223f;
    border-color: rgba(56, 189, 248, 0.35);
}

.desk-attachments {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.desk-attach-img {
    max-width: 240px;
    max-height: 180px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.desk-attach-img:hover {
    transform: scale(1.02);
}

.desk-attach-file {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.desk-embed-card {
    background: #0b1322;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 6px;
    max-width: 480px;
    font-size: 0.84rem;
}

.desk-note-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.82rem;
}

.desk-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.desk-note-author {
    font-weight: 700;
    color: var(--gold);
}

.desk-note-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.desk-note-text {
    color: var(--text-main);
    line-height: 1.4;
    word-break: break-word;
}


