/* ===================================================
   TMRT-Der Üye ve Evrak Yönetim Sistemi
   Ultra-Premium SaaS & Glassmorphism UI
   =================================================== */

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

/* ─── CSS Variables (Varsayılan TMRT-Der Teması: Kurumsal Sarı & Siyah) ─────────── */
:root, [data-theme="tmrt"] {
    /* TMRT-Der Logo Renkleri: Altın Sarısı & Derin Siyah */
    --primary: #F59E0B;
    --primary-2: #D97706;
    --primary-light: #FDE047;
    --primary-fg: #000000;
    --accent: #0F172A;
    --accent-hover: #1E293B;
    --danger: #EF4444;
    --success: #10B981;
    --warn: #F59E0B;
    --info: #0284C7;
    
    /* Zemin & Glass */
    --bg: #F8FAFC;
    --bg-2: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-card: #FFFFFF;
    --bg-input: #F1F5F9;
    
    /* Metin Renkleri */
    --text: #0F172A;
    --text-muted: #334155;
    --text-dim: #64748B;

    /* Sınırlar */
    --border: rgba(15, 23, 42, 0.09);
    --border-h: rgba(245, 158, 11, 0.45);

    /* Gradyanlar */
    --grad-primary: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --grad-accent: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    --grad-success: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    --grad-bg-body: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.15) 0%, transparent 60%),
                    radial-gradient(ellipse 50% 30% at 85% 85%, rgba(15, 23, 42, 0.04) 0%, transparent 50%);

    /* Gölgeler */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.09);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);

    /* Nav */
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-hover: rgba(245, 158, 11, 0.08);
    --nav-border: rgba(245, 158, 11, 0.15);

    /* Geçişler */
    --t-fast: 0.15s ease;
    --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Köşe Yuvarlaklığı */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    --header-h: 74px;
    --sidebar-w: 280px;
}

/* ─── Dark Tema (SaaS Koyu Mod) ─────────────────────────── */
[data-theme="dark"] {
    --primary: #7C3AED;
    --primary-2: #6D28D9;
    --primary-light: #A78BFA;
    --accent: #06B6D4;
    --accent-hover: #0891B2;
    --danger: #F43F5E;
    --success: #10B981;
    --warn: #F59E0B;
    --info: #38BDF8;

    --bg: #0B0F19;
    --bg-2: #111827;
    --bg-glass: rgba(17, 24, 39, 0.85);
    --bg-card: rgba(17, 24, 39, 0.9);
    --bg-input: #1F2937;

    --text: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    --border: rgba(255, 255, 255, 0.08);
    --border-h: rgba(124, 58, 237, 0.4);

    --grad-primary: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --grad-accent: linear-gradient(135deg, #F43F5E 0%, #F59E0B 100%);
    --grad-bg-body: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
                    radial-gradient(ellipse 50% 30% at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.35);

    --nav-bg: rgba(31, 41, 55, 0.7);
    --nav-hover: rgba(255, 255, 255, 0.08);
    --nav-border: rgba(255, 255, 255, 0.08);
}

/* ─── Light Tema (Aydınlık Mod) ─────────────────────────── */
[data-theme="light"] {
    --primary: #003366;
    --primary-2: #002244;
    --primary-light: #0284C7;
    --accent: #E11D48;
    --accent-hover: #BE123C;
    --danger: #EF4444;
    --success: #10B981;
    --warn: #D97706;
    --info: #0284C7;

    --bg: #F8FAFC;
    --bg-2: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-card: #FFFFFF;
    --bg-input: #F1F5F9;

    --text: #0F172A;
    --text-muted: #475569;
    --text-dim: #64748B;
    --border: rgba(15, 23, 42, 0.08);

    --grad-primary: linear-gradient(135deg, #003366 0%, #0284C7 100%);
    --grad-bg-body: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 132, 199, 0.08) 0%, transparent 60%);
    --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.06);
    --border-h: rgba(0, 51, 102, 0.25);
}

/* ─── Temel Sıfırlama & Tipografi ────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    background-image: var(--grad-bg-body);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-h);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ─── Layout: Admin Shell ────────────────────────────────── */
.admin-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: var(--t-base);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px);
}

.sidebar-header {
    height: var(--header-h);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}
.brand-logo-img:hover {
    transform: scale(1.05);
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1rem 2rem 1rem;
    scrollbar-width: thin;
}

.sidebar-heading {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    border-radius: var(--r-sm);
    transition: var(--t-fast);
}

.sidebar-heading:hover {
    color: var(--primary);
    background: var(--nav-hover);
}

.sidebar-heading i.chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.sidebar-heading.active i.chevron {
    transform: rotate(180deg);
}

.sidebar-group-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--r-md);
    transition: var(--t-fast);
}

.sidebar-link i.link-icon {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: var(--text-dim);
    transition: var(--t-fast);
}

.sidebar-link:hover {
    color: var(--text);
    background: var(--nav-hover);
}

.sidebar-link:hover i.link-icon {
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--grad-primary);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-glow);
}

.sidebar-link.active i.link-icon {
    color: #FFFFFF !important;
}

.sidebar-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    background: var(--grad-primary);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.user-mini-info .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.user-mini-info .role {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ─── Main Admin Content Area ───────────────────────────── */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-w));
    transition: var(--t-base);
}

/* ─── Top Bar ───────────────────────────────────────────── */
.top-bar {
    height: var(--header-h);
    padding: 0 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mobile-toggle-btn {
    display: none;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    place-items: center;
    cursor: pointer;
    transition: var(--t-fast);
}

.page-title-box h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Theme Switcher (Single Button & Group) */
.theme-toggle-btn {
    background: var(--bg-2);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--t-fast);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.theme-switcher-group {
    display: flex;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 3px;
}

.theme-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    transition: var(--t-fast);
}

.theme-btn i {
    pointer-events: none;
}

.theme-btn.active, .theme-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.top-bar-action {
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.55rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--t-fast);
}

.top-bar-action:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.top-bar-action.admin-portal-switch {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.12) 0%, rgba(14, 165, 233, 0.18) 100%);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.2);
}

.top-bar-action.admin-portal-switch:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
}

/* ─── Content Container ─────────────────────────────────── */
.content-body {
    flex: 1;
    padding: 2rem;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
}

/* ─── Alert Banners & Toast ─────────────────────────────── */
.alert-banner {
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.flash-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}
[data-theme="dark"] .flash-success { color: #34D399; }

.flash-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #DC2626;
}
[data-theme="dark"] .flash-danger { color: #F87171; }

.flash-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #D97706;
}

.flash-info {
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #0284C7;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #DC2626 !important;
}
[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #FCA5A5 !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #059669 !important;
}
[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #6EE7B7 !important;
}

.close-alert {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}
.close-alert:hover { opacity: 1; }

/* ─── SaaS Kartlar & Grid Yapısı ────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    overflow: hidden;
    margin-bottom: 1.75rem;
    transition: var(--t-base);
}

.card-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.card-body {
    padding: 1.75rem;
}

.card-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.01);
}

/* KPI / Metrik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--t-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    opacity: 0;
    transition: var(--t-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-h);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.stat-icon.primary { background: var(--grad-primary); }
.stat-icon.accent  { background: var(--grad-accent); }
.stat-icon.success { background: var(--grad-success); }
.stat-icon.info    { background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%); }
.stat-icon.purple  { background: linear-gradient(135deg, #7C3AED 0%, #C084FC 100%); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ─── Modern Tablolar ────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.saas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.saas-table th {
    padding: 0.85rem 1.25rem;
    background: var(--bg-input);
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.saas-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88rem;
    vertical-align: middle;
    transition: background 0.15s;
}

.saas-table tbody tr:hover td {
    background: var(--nav-hover);
}

.saas-table tbody tr.clickable-row {
    cursor: pointer;
}

.saas-table tbody tr.clickable-row:hover td {
    background: var(--nav-hover);
}

/* Badge'ler */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #059669; }
[data-theme="dark"] .badge-success { color: #34D399; }
.badge-danger  { background: rgba(239, 68, 68, 0.15); color: #DC2626; }
[data-theme="dark"] .badge-danger  { color: #F87171; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #D97706; }
.badge-info    { background: rgba(2, 132, 199, 0.15); color: #0284C7; }
.badge-primary { background: rgba(0, 51, 102, 0.15); color: var(--primary); }
[data-theme="dark"] .badge-primary { background: rgba(124, 58, 237, 0.2); color: #C4B5FD; }
.badge-secondary { background: rgba(148, 163, 184, 0.15); color: var(--text-dim); }

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--r-md);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--t-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--grad-accent);
    color: #FFFFFF !important;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
}

.btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    background: var(--nav-hover);
    border-color: var(--border-h);
}

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
}
.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    border-radius: var(--r-sm);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--r-md);
    display: inline-grid;
    place-items: center;
    font-size: 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.btn-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-card);
}

/* ─── Form Alanları & SaaS Inputs ───────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: var(--t-fast);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12);
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

/* Arama ve Filtre Çubuğu */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.search-input-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.95rem;
}

.search-input-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-weight: 600;
    outline: none;
    transition: var(--t-fast);
}

.search-input-box input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12);
}

/* ─── KPI Kart Gridi (Modern Dashboard Metrikleri) ─────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-h);
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.kpi-info {
    flex: 1;
    overflow: hidden;
}

.kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 4px;
}

.kpi-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success);
}
.trend-down {
    color: var(--danger);
}

/* ─── Tema Uyumlu Üye Hoş Geldiniz Banner Kartı ───────────── */
.member-hero-card {
    border-radius: var(--r-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
}

.member-hero-card .hero-inner {
    padding: 2rem 2.25rem;
    position: relative;
    z-index: 2;
}

/* TMRT-Der Kurumsal Tema */
[data-theme="tmrt"] .member-hero-card {
    background: linear-gradient(135deg, #00172e 0%, #002d5a 50%, #0284c7 100%);
    border: 1px solid rgba(2, 132, 199, 0.35);
    box-shadow: 0 15px 35px -5px rgba(0, 31, 63, 0.4);
}
[data-theme="tmrt"] .member-hero-title { color: #FFFFFF; }
[data-theme="tmrt"] .member-hero-meta { color: rgba(255, 255, 255, 0.85); }
[data-theme="tmrt"] .member-hero-btn-sec {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}
[data-theme="tmrt"] .member-hero-btn-sec:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Karanlık Mod */
[data-theme="dark"] .member-hero-card {
    background: linear-gradient(135deg, #130e24 0%, #1e1b4b 55%, #0f172a 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(124, 58, 237, 0.2);
}
[data-theme="dark"] .member-hero-title { color: #FFFFFF; }
[data-theme="dark"] .member-hero-meta { color: rgba(249, 250, 251, 0.8); }
[data-theme="dark"] .member-hero-btn-sec {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}
[data-theme="dark"] .member-hero-btn-sec:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Aydınlık Mod */
[data-theme="light"] .member-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 55%, #e0f2fe 100%);
    border: 1px solid rgba(0, 51, 102, 0.18);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
}
[data-theme="light"] .member-hero-title { color: #003366; }
[data-theme="light"] .member-hero-meta { color: #334155; }
[data-theme="light"] .member-hero-btn-sec {
    background: #FFFFFF;
    border: 1px solid rgba(0, 51, 102, 0.25);
    color: #003366;
}
[data-theme="light"] .member-hero-btn-sec:hover {
    background: #F1F5F9;
    color: #001f3f;
}

/* ─── Ultra-Premium Dijital Üye Kimlik Kartı (Sarı & Siyah Kurumsal Tasarım) ─── */
.tmrt-premium-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, #090D14 0%, #111827 35%, #182030 70%, #0A0D15 100%);
    border-radius: 20px;
    padding: 1.25rem 1.4rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.18), inset 0 1px 2px rgba(254, 240, 138, 0.45);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.tmrt-premium-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.35), inset 0 1px 2px rgba(254, 240, 138, 0.7);
    border-color: rgba(253, 224, 71, 0.9);
}

/* Kart İçi Altın Hologram Işık Efekti */
.tmrt-premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.12) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Kart İçi İnce Radyoloji / Geometrik Hat Filigranı */
.tmrt-premium-card::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.c-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.c-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
}

.c-logo {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(245, 158, 11, 0.5);
    border: none;
    overflow: hidden;
}

.c-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.c-titles {
    flex: 1;
}

.c-org {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #FFFFFF;
    line-height: 1.15;
    transition: color var(--t-base);
}

.c-sub {
    font-size: 0.58rem;
    font-weight: 700;
    color: #FDE047;
    line-height: 1.2;
    margin-top: 1px;
    letter-spacing: 0.3px;
    transition: color var(--t-base);
}

.c-holo-seal {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border: 1px solid rgba(253, 224, 71, 0.5);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.55rem;
    font-weight: 800;
    color: #FDE047;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: all var(--t-base);
}

/* Kart Gövdesi: Sol Detaylar + Sağ QR */
.c-card-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.65rem 0;
    position: relative;
    z-index: 2;
}

.c-left-col {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
}

.c-chip-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.c-chip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #FEF08A 0%, #F59E0B 45%, #B45309 90%);
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.c-chip::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.c-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: color var(--t-base);
}

.c-meta-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.c-meta-item {
    display: flex;
    flex-direction: column;
}

.c-meta-item .c-lbl {
    font-size: 0.55rem;
    font-weight: 700;
    color: #F59E0B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--t-base);
}

.c-meta-item .c-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: monospace;
    transition: color var(--t-base);
}

.c-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.55);
    color: #FDE047;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    width: fit-content;
    transition: all var(--t-base);
}

/* Entegre QR Kutusu */
.c-qr-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.25);
    border: 2px solid #F59E0B;
    transition: transform var(--t-fast);
}

.c-qr-box:hover {
    transform: scale(1.05);
}

.c-qr-box img {
    width: 76px;
    height: 76px;
    display: block;
    border-radius: 4px;
}

.c-qr-lbl {
    font-size: 0.55rem;
    font-weight: 800;
    color: #0F172A;
    margin-top: 2px;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Kart Altbilgi */
.c-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    padding-top: 0.45rem;
    margin-top: 0.25rem;
    position: relative;
    z-index: 2;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--t-base);
}

.c-footer-left strong {
    color: #FDE047;
}

.c-footer-right {
    font-family: monospace;
    font-size: 0.62rem;
    color: #FDE047;
    letter-spacing: 0.5px;
}

/* ─── DİJİTAL KART AYDINLIK TEMA (LIGHT MODE) ────────────────────────── */
[data-theme="light"] .tmrt-premium-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 55%, #F1F5F9 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.6);
    color: #0F172A;
    box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(245, 158, 11, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .tmrt-premium-card:hover {
    box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.2), 0 0 35px rgba(245, 158, 11, 0.3);
    border-color: #D97706;
}

[data-theme="light"] .tmrt-premium-card::after {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 50%, transparent 70%);
}

[data-theme="light"] .c-org {
    color: #0F172A;
}

[data-theme="light"] .c-sub {
    color: #B45309;
}

[data-theme="light"] .c-name {
    color: #0F172A;
    text-shadow: none;
}

[data-theme="light"] .c-meta-item .c-lbl {
    color: #D97706;
}

[data-theme="light"] .c-meta-item .c-val {
    color: #0F172A;
}

[data-theme="light"] .c-holo-seal {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.45);
    color: #B45309;
}

[data-theme="light"] .c-badge-pill {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(217, 119, 6, 0.45);
    color: #B45309;
}

[data-theme="light"] .c-qr-box {
    border: 2px solid #D97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .c-footer {
    border-top: 1px solid rgba(217, 119, 6, 0.25);
    color: #475569;
}

[data-theme="light"] .c-footer-left strong {
    color: #B45309;
}

[data-theme="light"] .c-footer-right {
    color: #B45309;
}

/* ─── DİJİTAL KART KARANLIK TEMA (DARK MODE) ─────────────────────────── */
[data-theme="dark"] .tmrt-premium-card {
    background: linear-gradient(135deg, #070A10 0%, #0F172A 40%, #172136 75%, #0B0E17 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.16);
}

/* ─── Ultra-Premium Dijital Üye Kimlik Kartı (Klasik Format) ─ */
.wallet-card, .member-id-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(135deg, #090D14 0%, #111827 45%, #182030 80%, #0A0D15 100%);
    border-radius: 24px;
    padding: 1.75rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.15), inset 0 1px 1px rgba(254, 240, 138, 0.3);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallet-card:hover, .member-id-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.35);
    border-color: rgba(253, 224, 71, 0.85);
}

[data-theme="light"] .wallet-card, [data-theme="light"] .member-id-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.55);
    color: #0F172A;
    box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(245, 158, 11, 0.15);
}

.wallet-card::before, .member-id-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.card-top .logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-top .logo-area img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    background: transparent;
    border-radius: 50%;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.card-top .org-name {
    text-align: right;
}
.card-top .org-name .org-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}
.card-top .org-name .org-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: #38BDF8;
}

.card-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #b45309 100%);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card-chip::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.card-main {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.avatar-box {
    width: 85px;
    height: 105px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-main .details {
    flex: 1;
    overflow: hidden;
}

.card-main .member-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-main .detail-row {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-main .detail-row strong {
    color: #BAE6FD;
    font-weight: 700;
    min-width: 60px;
}

.card-bottom {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.card-bottom .status-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── Harcama & Yolluk Tablosu Tasarımı ──────────────────── */
.harcama-table-box {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 1.5rem 0;
}

.harcama-total-bar {
    background: var(--bg-input);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

/* ─── Giriş Sayfası Özel Stilleri (Ferah, Modern, Sıfır Kaydırma) ─────────── */
body.login-page {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    background-image: var(--grad-bg-body);
    overflow: hidden; /* Sayfa kaydırması KESİNLİKLE yok */
}

.login-shell {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-image: var(--grad-bg-body);
    overflow: hidden;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.25rem 2.25rem 2rem 2.25rem;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.1), 0 0 1px 1px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    text-align: center;
    box-sizing: border-box;
}

/* Kart İçi Kompakt Tema Değiştirici (Sağ Üst) - Simge Kaybolması Çözüldü */
.login-theme-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.login-theme-btn i {
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}
.login-theme-btn:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: #F59E0B !important;
    color: #B45309 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.login-theme-btn:hover i {
    transform: scale(1.12);
    color: #B45309 !important;
}

/* Karanlık Mod Tema Butonu Uyum */
[data-theme="dark"] .login-theme-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
}
[data-theme="dark"] .login-theme-btn:hover {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #FCD34D !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
[data-theme="dark"] .login-theme-btn:hover i {
    color: #FCD34D !important;
}

/* Aydınlık Mod Tema Butonu Uyum */
[data-theme="light"] .login-theme-btn:hover {
    background: rgba(0, 51, 102, 0.08) !important;
    border-color: #003366 !important;
    color: #003366 !important;
}

/* Kart İçi Sol Üst Ana Sayfa Dönüş Butonu (Sistematik ve Simetrik) */
.login-home-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.login-home-btn i {
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}
.login-home-btn:hover {
    background: rgba(2, 132, 199, 0.12) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}
.login-home-btn:hover i {
    transform: translateX(-2px);
    color: var(--primary) !important;
}
[data-theme="dark"] .login-home-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
}
[data-theme="dark"] .login-home-btn:hover {
    background: rgba(2, 132, 199, 0.2) !important;
    border-color: #38BDF8 !important;
    color: #38BDF8 !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
[data-theme="dark"] .login-home-btn:hover i {
    color: #38BDF8 !important;
}
[data-theme="light"] .login-home-btn:hover {
    background: rgba(0, 51, 102, 0.08) !important;
    border-color: #003366 !important;
    color: #003366 !important;
}

/* Giriş Kartı Alt Linkleri (Ana Sayfaya Dönüş & Kayıt) */
.login-footer-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
}
.login-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.login-home-link:hover {
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}
.login-register-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
}
.login-register-hint a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.login-register-hint a:hover {
    text-decoration: underline;
}

.login-header {
    margin-bottom: 1.35rem;
}

.login-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0.65rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform var(--t-base);
}
.login-logo:hover {
    transform: scale(1.04);
}

.login-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0F172A;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    transition: color 0.2s ease;
}

/* Karanlık temada gözü yormayan yumuşak mat inci beyazı (#E2E8F0) */
[data-theme="dark"] .login-title {
    color: #E2E8F0 !important;
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.45rem 0;
}

.login-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .login-subtitle {
    color: #94A3B8;
}
[data-theme="dark"] .login-portal-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #FCD34D;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Form Elemanları & Giriş */
.login-form .form-group {
    text-align: left;
    margin-bottom: 0.95rem;
}
.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.login-form .form-label i {
    color: var(--primary);
    font-size: 0.85rem;
}
.login-form .form-control {
    width: 100%;
    height: 48px;
    padding: 0.65rem 1rem;
    font-size: 0.96rem;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    transition: all var(--t-fast);
    box-sizing: border-box;
}
.login-form .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.2);
    background: var(--bg-card);
}

/* Karanlık Temada Gözü Yormayan Giriş Kutuları ve Kart */
[data-theme="dark"] .login-card {
    background: rgba(17, 24, 39, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .login-form .form-label {
    color: #CBD5E1;
}
[data-theme="dark"] .login-form .form-control {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
}
[data-theme="dark"] .login-form .form-control::placeholder {
    color: #64748B;
}
[data-theme="dark"] .login-form .form-control:focus {
    background: #1E293B;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.25);
}

/* ─── İlk Giriş Şifre Bilgilendirme Kutusu (Ferah & Net) ─── */
.first-login-notice {
    margin-top: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-left: 3.5px solid #D97706;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text);
}
.first-login-notice .notice-icon {
    color: #D97706;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.first-login-notice strong {
    color: #B45309;
    font-weight: 700;
}
.first-login-notice .notice-example {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #92400E;
    white-space: nowrap;
}

/* Karanlık Modda Gözü Yormayan Uyum */
[data-theme="dark"] .first-login-notice {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.25);
    border-left-color: #F59E0B;
    color: #CBD5E1;
}
[data-theme="dark"] .first-login-notice .notice-icon {
    color: #F59E0B;
}
[data-theme="dark"] .first-login-notice strong {
    color: #FCD34D;
}
[data-theme="dark"] .first-login-notice .notice-example {
    color: #FDE047;
}

[data-theme="light"] .first-login-notice {
    background: rgba(0, 51, 102, 0.05);
    border-color: rgba(0, 51, 102, 0.25);
    border-left-color: #003366;
    color: #1E293B;
}
[data-theme="light"] .first-login-notice .notice-icon,
[data-theme="light"] .first-login-notice strong {
    color: #003366;
}
[data-theme="light"] .first-login-notice .notice-example {
    color: #002244;
}

.btn-login-submit {
    width: 100%;
    height: 50px;
    padding: 0;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 1.15rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000000;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all var(--t-fast);
}
.btn-login-submit:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}
.btn-login-submit:active {
    transform: scale(0.99);
}

/* ─── Mobilde ve Kısa Ekranlarda Sıfır Kaydırma Garantisi ─── */
@media (max-height: 720px), (max-width: 640px) {
    body.login-page {
        padding: 1rem 0.75rem;
        overflow-y: auto;
    }

    .login-card {
        padding: 1.5rem 1.35rem 1.35rem 1.35rem;
        border-radius: 20px;
        max-width: 390px;
        margin: auto;
    }

    .login-home-btn {
        top: 0.85rem;
        left: 0.85rem;
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .login-theme-btn {
        top: 0.85rem;
        right: 0.85rem;
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .login-header {
        margin-bottom: 0.85rem;
    }

    .login-logo {
        height: 48px;
        margin-bottom: 0.4rem;
    }

    .login-title {
        font-size: 1.45rem;
        margin-bottom: 0.15rem;
    }

    .login-subtitle {
        font-size: 0.76rem;
        margin-bottom: 0.25rem;
    }

    .login-portal-badge {
        font-size: 0.68rem;
        padding: 0.18rem 0.55rem;
    }

    .login-form .form-group {
        margin-bottom: 0.65rem;
    }

    .login-form .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .login-form .form-control {
        height: 44px;
        font-size: 16px !important; /* iOS oto-zoom engelleme */
        padding: 0.5rem 0.85rem;
        border-radius: 10px;
    }

    .first-login-notice {
        margin-top: 0.4rem;
        padding: 0.45rem 0.7rem;
        font-size: 0.74rem;
    }

    .btn-login-submit {
        height: 46px;
        font-size: 0.95rem;
        margin-top: 0.85rem;
        border-radius: 10px;
    }

    .alert {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.78rem !important;
        margin-bottom: 0.65rem !important;
    }
}

/* ─── Pagination ────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.page-item {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--t-fast);
}

.page-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active {
    background: var(--grad-primary);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* ─── Responsive Utility Classes (Bootstrap Uyumlu) ────────── */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-grid { display: grid !important; }
}

@media (max-width: 767.98px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-flex { display: flex !important; }
    .d-mobile-inline { display: inline !important; }
}

/* ─── Responsive Grid Sistemleri (Admin & Üye Portalı) ──────── */
.grid-2col, .admin-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.grid-2col-sidebar, .admin-grid-2col-sidebar, .admin-grid-sidebar {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.admin-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.stat-chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.notlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1.25rem;
}
.password-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ─── Overlay & Mobil Menü Zeminleri ──────────────────────── */
.sidebar-overlay, .member-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1045;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sidebar-overlay.active, .member-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Masaüstünde Sabit Alt Menüler Gizlidir */
.member-bottom-nav,
.admin-bottom-nav {
    display: none;
}

/* Üye Üst Çıkış Butonu (Mobilde alt menüde olduğu için gizlenir, masaüstünde görünür) */
.member-header-logout-wrap {
    display: none !important;
}
@media (min-width: 992px) {
    .member-header-logout-wrap {
        display: flex !important;
    }
}

/* ─── Tablet & Mobil Kırılımı (<= 991.98px) ──────────────── */
@media (max-width: 991.98px) {
    /* Üye Portalı Üst Navigasyon Menüsü Mobilde Gizlenir (Alt Menü Kullanılır) */
    .member-nav-links {
        display: none !important;
    }
    #memberMobileMenuBtn {
        display: none !important;
    }

    /* Admin Shell & Drawer */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        width: 290px;
        max-width: 86vw;
        box-shadow: none;
    }
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
    }
    .sidebar-close-btn {
        display: grid;
        place-items: center;
    }
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .mobile-toggle-btn {
        display: grid;
        place-items: center;
    }

    /* Top Bar Tablet İyileştirmeleri */
    .top-bar {
        padding: 0 1rem;
        height: 66px;
    }
    .top-bar-action span {
        display: none !important;
    }
    .top-bar-action {
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        justify-content: center;
        border-radius: var(--r-full);
    }
    /* Mobilde sayfa üstünde Üye Portalı görünmesin, alt menüde 5 öğeden biri olarak mevcuttur */
    .top-bar-action.admin-portal-switch {
        display: none !important;
    }
    .page-title-box h1 {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    .page-breadcrumb {
        display: none;
    }

    /* Gridlerin Tek Kolona Düşürülmesi */
    .grid-2col, .admin-grid-2col,
    .grid-2col-sidebar, .admin-grid-2col-sidebar, .admin-grid-sidebar,
    .grid-3col, .stat-chart-grid,
    .dash-two-col {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Kart ve İçerik Dolguları */
    .content-body {
        padding: 1.15rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    .card-body {
        padding: 1.25rem;
    }
}

/* ─── Mobil Kırılımı (<= 767.98px) ────────────────────────── */
@media (max-width: 767.98px) {
    /* Üye Portalı Navbar & Mobil Menü Drawer */
    .member-navbar {
        padding: 0.75rem 1rem;
    }
    .member-nav-links {
        display: none;
    }
    .member-nav-links.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-card) !important;
        padding: 1rem 1.25rem 1.5rem 1.25rem !important;
        border-bottom: 2.5px solid var(--primary) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
        z-index: 1050 !important;
        gap: 0.5rem !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .member-nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--r-md) !important;
        background: var(--bg-input) !important;
        font-size: 0.95rem !important;
        border: 1px solid var(--border) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .member-nav-link:hover, .member-nav-link.active {
        background: var(--primary) !important;
        color: #000000 !important;
        font-weight: 800 !important;
        border-color: var(--primary) !important;
    }

    /* Yönetici İnceleme Modu Bannerı */
    .impersonation-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.6rem !important;
        padding: 0.65rem 1rem !important;
    }
    .impersonation-banner a {
        display: inline-block !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Form ve Sekme Alanları (Mobilde Üye Düzenle & Evrak Düzenle Çift Sütunlu Form Düzeni) */
    .form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem 0.65rem !important;
    }
    .form-group {
        margin-bottom: 0.5rem !important;
        min-width: 0 !important;
    }
    .form-group.full-width {
        grid-column: 1 / -1 !important;
    }
    .form-label {
        font-size: 0.72rem !important;
        margin-bottom: 0.25rem !important;
        letter-spacing: 0.2px !important;
    }
    .form-control, .form-select {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.84rem !important;
        height: auto !important;
        min-width: 0 !important;
    }
    .form-textarea {
        min-height: 80px !important;
        padding: 0.55rem 0.65rem !important;
        font-size: 0.84rem !important;
    }

    .profile-form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem 0.65rem !important;
    }
    .password-fields-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .sifre-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Sayfa Başlık Eylem Çubukları */
    .page-header-bar, .page-header-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    .page-header-bar > div:last-child,
    .page-header-actions > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .page-header-bar .btn,
    .page-header-actions .btn {
        flex: 1 1 auto !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Tablo Kartları & Liste Satırları */
    .cert-item-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding: 0.9rem 1rem !important;
    }
    .item-meta {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .item-action, .btn-pdf-download {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Sabit Alt Menü (Bottom Navigation Bar) - Üye Portalı & Admin Paneli */
    .member-bottom-nav,
    .admin-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 64px !important;
        background: var(--bg-card) !important;
        border-top: 1.5px solid var(--border) !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08) !important;
        z-index: 1040 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 0.25rem !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }
    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        flex: 1 !important;
        height: 100% !important;
        text-decoration: none !important;
        color: var(--text-dim) !important;
        transition: all 0.15s ease !important;
        position: relative !important;
    }
    .bottom-nav-item i {
        font-size: 1.2rem !important;
        transition: transform 0.15s ease, color 0.15s ease !important;
    }
    .bottom-nav-item span {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
    }
    .bottom-nav-item.active {
        color: var(--primary) !important;
    }
    .bottom-nav-item.active i {
        transform: translateY(-2px) !important;
        color: var(--primary) !important;
    }
    .bottom-nav-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: var(--primary);
        border-radius: 0 0 3px 3px;
    }
    .bottom-nav-item:active {
        transform: scale(0.92);
    }
    body {
        padding-bottom: 74px !important;
        overflow-x: hidden !important;
    }
    html {
        overflow-x: hidden !important;
    }
}

/* ─── Küçük Ekranlar (<= 575.98px) ────────────────────────── */
@media (max-width: 575.98px) {
    /* Genel Boşluklar */
    .content-body, .member-container {
        padding: 0.75rem 0.55rem !important;
    }
    .card {
        border-radius: var(--r-md) !important;
        margin-bottom: 1.25rem !important;
    }
    .card-header {
        padding: 0.85rem 1rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .card-body {
        padding: 0.95rem 0.85rem !important;
    }
    .card-footer {
        padding: 0.85rem 1rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .card-footer > .btn,
    .card-footer > a.btn,
    .card-footer > button.btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    /* Sayaç & Metrik Kartları (Çift Sütunlu Grid - Balgöç Dashboard Mimarisi) */
    .stats-grid, .kpi-grid, .dash-kpi-grid, .vk-dashboard-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .stat-card, .kpi-card, .dash-kpi-card {
        padding: 0.85rem 0.75rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.45rem !important;
    }
    .stat-icon, .kpi-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    .stat-value {
        font-size: 1.3rem !important;
        line-height: 1.15 !important;
    }
    .stat-label {
        font-size: 0.68rem !important;
        letter-spacing: 0.2px !important;
    }
    .stat-trend {
        font-size: 0.65rem !important;
        margin-top: 2px !important;
    }

    /* Hızlı İşlemler Butonları (Mobilde Çift Sütun) */
    .admin-quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    .notlar-grid {
        grid-template-columns: 1fr !important;
    }

    /* Form Gridi (Üye ekle/düzenle vs. mobilde KESİN çift sütun) */
    .form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem 0.65rem !important;
    }
    .form-group.full-width {
        grid-column: 1 / -1 !important;
    }

    /* Arama ve Filtre Çubuğu */
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.85rem !important;
        gap: 0.75rem !important;
    }
    .filter-bar form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }
    .search-input-box {
        min-width: 0 !important;
        width: 100% !important;
    }
    .filter-bar .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .filter-bar > div:last-child {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: stretch !important;
    }
    .filter-bar > div:last-child .btn {
        flex: 1 1 auto !important;
    }

    /* Kart Görünümüne Dönüşen Saas Tablo */
    .saas-table thead {
        display: none !important;
    }
    .saas-table, .saas-table tbody, .saas-table tr, .saas-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .saas-table tr {
        border: 1px solid var(--border) !important;
        border-radius: var(--r-md) !important;
        margin-bottom: 0.85rem !important;
        background: var(--bg-card) !important;
        box-shadow: var(--shadow-sm) !important;
        overflow: hidden !important;
    }
    .saas-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0.65rem !important;
        padding: 0.65rem 0.85rem !important;
        border-bottom: 1px solid var(--border) !important;
        min-height: 38px !important;
        font-size: 0.85rem !important;
    }
    .saas-table td:last-child {
        border-bottom: none !important;
    }
    .saas-table td::before {
        content: attr(data-label);
        font-weight: 800;
        font-size: 0.72rem;
        text-transform: uppercase;
        color: var(--text-dim);
        flex-shrink: 0;
        min-width: 85px;
        max-width: 42%;
        padding-top: 2px;
        text-align: left;
    }
    .saas-table td > * {
        text-align: right;
        max-width: 65%;
    }
    .saas-table td[colspan] {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 2rem 1rem !important;
    }
    .saas-table td[colspan]::before {
        display: none !important;
    }
    .saas-table td[data-label="İşlemler"],
    .saas-table td[data-label="İşlem"] {
        justify-content: flex-end !important;
        gap: 0.4rem !important;
    }

    /* Dijital Kart Ölçekleme (Dar Ekranlar) */
    .tmrt-premium-card, .wallet-card, .member-id-card {
        padding: 1rem 0.95rem !important;
        border-radius: 16px !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .c-header {
        gap: 0.5rem !important;
    }
    .c-logo {
        width: 38px !important;
        height: 38px !important;
    }
    .c-org {
        font-size: 0.64rem !important;
    }
    .c-sub {
        font-size: 0.5rem !important;
    }
    .c-holo-seal {
        font-size: 0.5rem !important;
        padding: 2px 5px !important;
    }
    .c-card-grid {
        gap: 0.65rem !important;
        margin: 0.5rem 0 !important;
    }
    .c-name {
        font-size: 0.95rem !important;
    }
    .c-chip {
        width: 32px !important;
        height: 22px !important;
    }
    .c-badge-pill {
        font-size: 0.58rem !important;
        padding: 0.12rem 0.45rem !important;
    }
    .c-meta-row {
        gap: 0.5rem !important;
    }
    .c-meta-item .c-lbl {
        font-size: 0.5rem !important;
    }
    .c-meta-item .c-val {
        font-size: 0.76rem !important;
    }
    .c-qr-box {
        padding: 4px !important;
        border-radius: 10px !important;
    }
    .c-qr-box img {
        width: 64px !important;
        height: 64px !important;
    }
    .c-footer {
        font-size: 0.6rem !important;
    }

    /* Üst Bar En Küçük Ekran Ayarları */
    .top-bar-left {
        gap: 0.5rem !important;
        min-width: 0 !important;
    }
    .page-title-box h1 {
        font-size: 1rem !important;
        max-width: 140px !important;
    }
    .top-bar-right {
        gap: 0.35rem !important;
    }
    .theme-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
}

/* ─── Mikro Ekranlar (<= 375px) ───────────────────────────── */
@media (max-width: 375px) {
    .content-body, .member-container {
        padding: 0.65rem 0.45rem !important;
    }
    .tmrt-premium-card {
        padding: 0.85rem 0.75rem !important;
    }
    .c-qr-box img {
        width: 56px !important;
        height: 56px !important;
    }
    .c-name {
        font-size: 0.88rem !important;
    }
    .top-bar {
        padding: 0 0.5rem !important;
    }
    .page-title-box h1 {
        max-width: 110px !important;
    }
}

/* ─── Dikeyde Kısa Ekranlar (Kayıtsız Scroll Kurtarma) ─────── */
@media (max-height: 760px) {
    body.login-page {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100dvh !important;
        padding: 1rem 0.75rem !important;
    }
}

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

/* ─── Quill Rich Text Editor Stilleri (Tema Uyumlu) ────────── */
.ql-toolbar.ql-snow {
    background: var(--bg-input);
    border: 1px solid var(--border) !important;
    border-top-left-radius: var(--r-md);
    border-top-right-radius: var(--r-md);
    padding: 0.75rem !important;
}

.ql-container.ql-snow {
    background: var(--bg-card);
    border: 1px solid var(--border) !important;
    border-top: none !important;
    border-bottom-left-radius: var(--r-md);
    border-bottom-right-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    min-height: 220px;
}

.ql-editor {
    min-height: 220px;
    line-height: 1.7;
    color: var(--text);
}

.ql-editor.ql-blank::before {
    color: var(--text-dim) !important;
    font-style: normal;
}

[data-theme="dark"] .ql-snow .ql-stroke {
    stroke: #E2E8F0;
}
[data-theme="dark"] .ql-snow .ql-fill {
    fill: #E2E8F0;
}
[data-theme="dark"] .ql-snow .ql-picker {
    color: #E2E8F0;
}
[data-theme="dark"] .ql-snow .ql-picker-options {
    background-color: var(--bg-input);
    border-color: var(--border);
}

[data-theme="tmrt"] .ql-snow .ql-picker-options {
    background-color: #FFFFFF;
    border-color: var(--border);
}

/* Evrak Detay Zengin İçerik Kutusu */
.evrak-rich-content {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    min-height: 150px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}
.evrak-rich-content p {
    margin-bottom: 0.75rem;
}
.evrak-rich-content p:last-child {
    margin-bottom: 0;
}
.evrak-rich-content ul, .evrak-rich-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.evrak-rich-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}
.evrak-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.evrak-rich-content table td, .evrak-rich-content table th {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
}

/* ─── Global Floating Action Bar (Değişiklikleri Kaydet & Vazgeç) ─── */
@keyframes fabPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

#floatingActionBar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

#floatingActionBar.active {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.login-page #floatingActionBar,
body.login-page #floatingActionBar.active {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.fab-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #F59E0B;
    padding-right: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

.fab-status i {
    font-size: 0.95rem;
    animation: fabPulse 2s infinite ease-in-out;
}

.fab-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.fab-btn-cancel {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #E2E8F0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px !important;
    padding: 0.45rem 1.1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.fab-btn-cancel:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #FCA5A5 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.fab-btn-save {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 9999px !important;
    padding: 0.45rem 1.45rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
    transition: all 0.2s ease !important;
}
.fab-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55) !important;
    background: linear-gradient(135deg, #0369A1 0%, #075985 100%) !important;
}

@media (max-width: 640px) {
    #floatingActionBar {
        width: calc(100% - 32px);
        left: 16px;
        transform: translateY(100px);
        justify-content: space-between;
        padding: 0.5rem 0.85rem;
        border-radius: var(--r-lg);
    }
    #floatingActionBar.active {
        transform: translateY(0) !important;
    }
    .fab-status {
        display: none;
    }
    .fab-actions {
        width: 100%;
        justify-content: space-between;
    }
}


