/* ==============================================================
   ÇORUM TİCARET VE SANAYİ ODASI (TSO) SEÇİM PORTALI
   Modern Corporate & Election Analytics Design System
   ============================================================== */

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

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Renk Paleti - Çorum TSO Lacivert & Altın & Seçim Renkleri */
    --bg-main: #0b1120;
    --bg-card: #131c31;
    --bg-card-hover: #192541;
    --bg-card-alt: #1a2744;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #3b82f6;

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

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.15);

    --accent-gold: #f59e0b;
    --accent-gold-light: rgba(245, 158, 11, 0.15);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);

    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);

    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);

    --info: #06b6d4;
    --info-light: rgba(6, 182, 212, 0.15);

    --purple: #8b5cf6;
    --purple-light: rgba(139, 92, 246, 0.15);

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Light Theme Variables */
body.light-theme {
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-card-alt: #e2e8f0;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Header & Nav */
.header-top {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.light-theme .header-top {
    background: rgba(255, 255, 255, 0.9);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-info h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-info span {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

body.light-theme .nav-tabs {
    background: #e2e8f0;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.nav-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Quick Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--primary-light);
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--warning);
    color: #1e1e24;
}

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

.btn-sm {
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* Main Container */
.main-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
}

/* Section Tab Panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease forwards;
}
.tab-pane.active {
    display: block;
}

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

/* Summary Stats Banner */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

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

.stat-info {
    flex-grow: 1;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 3px;
}

/* Colors for stats */
.stat-primary .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-success .stat-icon { background: var(--success-light); color: var(--success); }
.stat-warning .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-danger .stat-icon { background: var(--danger-light); color: var(--danger); }
.stat-purple .stat-icon { background: var(--purple-light); color: var(--purple); }
.stat-gold .stat-icon { background: var(--accent-gold-light); color: var(--accent-gold); }

/* Search & Filter Card */
.search-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.search-main-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.search-input-main {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.98rem;
    transition: all 0.2s ease;
}

body.light-theme .search-input-main {
    background: #f8fafc;
}

.search-input-main:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Advanced Filter Row */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-control, .form-select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

body.light-theme .form-control, 
body.light-theme .form-select {
    background: #f8fafc;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Toggle Switch */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.switch-container input {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.switch-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Active Filter Badges */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-tag-clear {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 21 Meslek Grubu Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.group-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: var(--shadow-md);
}

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

.group-badge-num {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.group-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    flex-grow: 1;
}

.group-stats-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: var(--radius-md);
    margin-top: 14px;
    text-align: center;
}

body.light-theme .group-stats-mini {
    background: #f1f5f9;
}

.mini-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.mini-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
    display: flex;
}

.prog-destek { background: var(--success); }
.prog-kararsiz { background: var(--warning); }
.prog-muhalif { background: var(--danger); }
.prog-belirsiz { background: #475569; }

/* Table Section */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.table-header-bar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.table-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

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

.custom-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

body.light-theme .custom-table th {
    background: #f8fafc;
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

body.light-theme .custom-table tr:hover td {
    background: #f8fafc;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-destek { background: var(--success-light); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-kararsiz { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-muhalif { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-ulasildi { background: var(--info-light); color: var(--info); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-belirsiz { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.2); }

.badge-multi-group {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(249, 115, 22, 0.2));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.badge-multi-group:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(249, 115, 22, 0.35));
}

.badge-grup-no {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.pagination-btns {
    display: flex;
    gap: 6px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

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

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

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

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Cross presence cards inside modal */
.cross-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.cross-box-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cross-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.cross-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.cross-item-grup {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

/* Excel Drag & Drop Upload Zone */
.upload-zone {
    border: 2px dashed rgba(59, 130, 246, 0.4);
    background: rgba(37, 99, 235, 0.03);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.upload-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.upload-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 550px;
    margin: 0 auto 16px auto;
}

/* Sheet Detection List */
.sheet-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.sheet-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-preview-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.sheet-preview-count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

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

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: slideUp 0.3s ease;
}

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

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-info { border-left: 4px solid var(--primary); }

/* ==============================================================
   MOBİL & RESPONSIVE TASARIM SİSTEMİ (MOBILE FIRST ELECTION UI)
   ============================================================== */

.brand-candidate-highlight {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.mobile-candidate-banner {
    display: none;
}

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

.btn-clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--text-secondary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    background: var(--danger);
    color: #fff;
}

.btn-filter-toggle {
    display: none;
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .nav-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ==============================================================
   768px ve Altı: ÖZEL MOBİL ARAYÜZ (MOBILE PHONE UI)
   ============================================================== */
@media (max-width: 768px) {
    /* Genel Boşluklar */
    body {
        padding-bottom: 74px; /* Alt dock menü payı */
    }

    .main-wrapper {
        padding: 12px 10px 84px 10px;
    }

    /* Üst Başlık (Header) */
    .header-top {
        padding: 0;
    }

    .header-container {
        padding: 10px 14px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .brand-section {
        gap: 10px;
    }

    .brand-info h1 {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .brand-candidate-highlight {
        display: none; /* Mobilde alt vitrin bandında görünecek */
    }

    /* Masaüstü Sekme Barını Mobilde Gizle (Yerine Alt Dock Gelir) */
    .header-top .nav-tabs {
        display: none !important;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions span,
    .header-actions > div > div {
        display: none !important; /* Kullanıcı adını küçült */
    }

    /* Mobil Aday Vitrin Bandı */
    .mobile-candidate-banner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(37, 99, 235, 0.18) 100%);
        border-bottom: 1px solid rgba(245, 158, 11, 0.35);
        color: var(--accent-gold);
        font-size: 0.88rem;
        font-weight: 800;
        padding: 9px 12px;
        text-align: center;
        letter-spacing: 0.4px;
        position: sticky;
        top: 60px;
        z-index: 95;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .banner-star {
        font-size: 1rem;
        animation: pulse 1.8s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.25); opacity: 0.85; }
    }

    /* Mobil Alt Sabit Dock Barı (App-like Bottom Navigation) */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: rgba(11, 17, 32, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        padding: 4px 6px;
    }

    body.light-theme .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 6px 0;
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
    }

    .mobile-nav-icon {
        font-size: 1.25rem;
        transition: transform 0.2s ease;
    }

    .mobile-nav-label {
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.2px;
    }

    .mobile-nav-btn.active {
        color: var(--accent-gold);
    }

    .mobile-nav-btn.active .mobile-nav-icon {
        transform: translateY(-2px) scale(1.18);
        filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
    }

    .mobile-nav-btn.active .mobile-nav-label {
        color: var(--accent-gold);
    }

    /* Arama Kartı & Çubuğu */
    .search-card {
        padding: 14px 12px;
        border-radius: var(--radius-md);
        margin-bottom: 14px;
    }

    .search-main-bar {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .search-input-wrapper {
        flex: 1;
    }

    .search-input-main {
        font-size: 0.92rem;
        padding: 13px 36px 13px 40px;
        border-radius: var(--radius-md);
    }

    .btn-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 14px;
        font-size: 0.8rem;
        font-weight: 700;
        white-space: nowrap;
        border-radius: var(--radius-md);
    }

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

    .filter-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
        transition: all 0.3s ease;
    }

    .filter-row.mobile-collapsed {
        display: none !important;
    }

    /* Tablo -> Dokunmatik Mobil Firma Kartlarına Dönüşüm */
    .table-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .table-header-bar {
        padding: 8px 4px 12px 4px;
    }

    .table-responsive {
        overflow: visible !important;
        border: none !important;
    }

    .custom-table {
        display: block !important;
        width: 100% !important;
    }

    .custom-table thead {
        display: none !important;
    }

    .custom-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Her Firma Kartı */
    .custom-table tr.firm-row-card {
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-lg) !important;
        padding: 16px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
        gap: 8px !important;
        position: relative !important;
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

    body.light-theme .custom-table tr.firm-row-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    }

    .custom-table tr.firm-row-card:active {
        transform: scale(0.99);
        border-color: var(--primary) !important;
    }

    .custom-table td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* Kart İçi Düzen:
       1. Üst Sıra: Grup Rozeti (Sol) ve Durum Rozeti (Sağ) */
    .col-grup {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 2px;
    }

    .col-durum {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .badge-grup-no {
        font-size: 0.76rem !important;
        padding: 4px 10px !important;
    }

    /* 2. Firma Başlığı */
    .col-unvan {
        margin-top: 2px;
        padding-right: 80px !important; /* Rozet çakışmasını önle */
    }

    .firm-title {
        font-size: 1rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.35;
        letter-spacing: -0.2px;
    }

    body.light-theme .firm-title {
        color: #0f172a !important;
    }

    .firm-meta-row {
        margin-top: 6px !important;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    /* 3. Yetkili Kişi Bölümü */
    .col-yetkili {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--radius-sm);
        padding: 8px 12px !important;
        margin-top: 2px;
    }

    body.light-theme .col-yetkili {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

    .yetkili-name {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        color: var(--accent-gold) !important;
    }

    body.light-theme .yetkili-name {
        color: #b45309 !important;
    }

    /* 4. Telefon ve Hızlı İletişim Butonları (Tek Dokunuşla Arama & WhatsApp) */
    .phone-action-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 6px 0 !important;
    }

    .phone-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(37, 99, 235, 0.18) !important;
        color: #93c5fd !important;
        border: 1px solid rgba(37, 99, 235, 0.38) !important;
        padding: 11px 8px !important;
        border-radius: var(--radius-md) !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    body.light-theme .phone-link {
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        border-color: #bfdbfe !important;
    }

    .wa-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(16, 185, 129, 0.18) !important;
        color: #6ee7b7 !important;
        border: 1px solid rgba(16, 185, 129, 0.38) !important;
        padding: 11px 8px !important;
        border-radius: var(--radius-md) !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    body.light-theme .wa-link {
        background: #f0fdf4 !important;
        color: #15803d !important;
        border-color: #bbf7d0 !important;
    }

    /* 5. NACE ve Adres */
    .col-nace {
        font-size: 0.78rem !important;
        color: var(--text-muted);
    }

    .nace-code {
        color: var(--text-primary);
        font-weight: 700 !important;
    }

    .col-adres {
        font-size: 0.78rem !important;
        color: var(--text-secondary);
        line-height: 1.4;
    }

    /* 6. Alt Dokunmatik Detay Butonu */
    .col-actions {
        margin-top: 4px;
        width: 100% !important;
    }

    .btn-detail-trigger {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        border-radius: var(--radius-md) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid var(--border-color) !important;
        text-align: center;
    }

    body.light-theme .btn-detail-trigger {
        background: #f1f5f9 !important;
        color: #1e293b !important;
    }

    /* Mobilde Modalların Tam Ekrana Yakın Açılması */
    .modal-container {
        max-width: 96% !important;
        margin: 10px auto !important;
        padding: 18px !important;
        max-height: 92vh !important;
        border-radius: var(--radius-lg) !important;
    }

    /* Sayfalama Kontrolleri */
    .pagination-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 14px 4px;
    }
}
