/* ==========================================================================
   GYMGYME ŞUBE & YÖNETİM PANELİ (DASHBOARD) CSS
   Fotoğraf referansına birebir uyumlu, kompakt, modern dark-mode tasarımı
   ========================================================================== */

:root {
    --gym-bg: #0e0e11;
    --gym-surface: #151519;
    --gym-surface-light: #18181d;
    --gym-border: #232329;
    --gym-border-light: #2a2244;
    --gym-text-main: #ffffff;
    --gym-text-muted: #a1a1aa;
    --gym-text-dim: #71717a;
    --gym-primary: #e06d2b;
    --gym-primary-hover: #c45a1e;
    --gym-accent-green: #34d399;
    --gym-accent-purple: #271d47;
    --gym-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Ana Düzen Kapsayıcısı */
.gym-app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--gym-bg);
    color: var(--gym-text-main);
    font-family: var(--gym-font);
    overflow-x: clip;
}

/* 1. SOL İNCE & GENİŞLEYEBİLİR KENAR ÇUBUĞU (SIDEBAR) */
.gym-slim-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    align-self: flex-start;
    width: 52px;
    background: #131317;
    border-right: 1px solid #222228;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 12px 0;
    flex-shrink: 0;
    z-index: 40;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gym-slim-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.sidebar-top-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    max-width: 80px;
    padding: 2px 0;
}

.brand-glyph {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #131317;
    border: 1px solid rgba(224, 109, 43, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.brand-glyph-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.brand-logo-banner {
    display: none;
    width: 74px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: contain;
    transition: transform 0.15s ease;
}

.brand-glyph:hover,
.brand-logo-link:hover .brand-glyph,
.brand-logo-link:hover .brand-logo-banner {
    transform: scale(1.05);
}

.brand-name-text {
    display: none;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.1px;
    text-align: center;
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    margin-top: 4px;
}

/* Sidebar Genişlet / Daralt Toggle Butonu */
.sidebar-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #191c2b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}

.sidebar-toggle-btn:hover {
    color: #ffffff;
    background: #242a42;
    border-color: rgba(224, 109, 43, 0.4);
}

.sidebar-toggle-btn .toggle-icon {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.slim-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
    flex: 1;
}

.slim-nav-item {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.18s ease;
    position: relative;
    padding: 0;
}

.slim-nav-item svg {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.slim-nav-item:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.slim-nav-item.active {
    color: #f59e0b;
    background: linear-gradient(90deg, rgba(188, 86, 31, 0.35) 0%, rgba(124, 56, 20, 0.18) 100%);
    border: 1px solid rgba(224, 109, 43, 0.3);
    box-shadow: 0 0 10px rgba(224, 109, 43, 0.2);
}

.slim-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #e06d2b;
    border-radius: 0 3px 3px 0;
}

/* İkon altı menü başlığı (normalde gizli) */
.nav-item-label {
    display: none;
    font-size: 0.62rem;
    font-weight: 600;
    text-align: center;
    color: inherit;
    white-space: nowrap;
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    margin-top: 3px;
    letter-spacing: -0.1px;
}

/* =========================================================
   GENİŞLETİLMİŞ SIDEBAR MODU (.expanded)
   ========================================================= */
.gym-slim-sidebar.expanded,
.sidebar-expanded .gym-slim-sidebar {
    width: 86px;
}

.gym-slim-sidebar.expanded .brand-glyph,
.sidebar-expanded .gym-slim-sidebar .brand-glyph {
    display: none;
}

.gym-slim-sidebar.expanded .brand-logo-banner,
.sidebar-expanded .gym-slim-sidebar .brand-logo-banner {
    display: block;
}

.gym-slim-sidebar.expanded .brand-name-text,
.sidebar-expanded .gym-slim-sidebar .brand-name-text {
    display: none;
}

.gym-slim-sidebar.expanded .sidebar-toggle-btn .toggle-icon,
.sidebar-expanded .gym-slim-sidebar .sidebar-toggle-btn .toggle-icon {
    transform: rotate(180deg);
}

.gym-slim-sidebar.expanded .slim-nav-item,
.sidebar-expanded .gym-slim-sidebar .slim-nav-item {
    width: 74px;
    height: 52px;
    padding: 6px 2px 4px 2px;
    border-radius: 9px;
    gap: 3px;
}

.gym-slim-sidebar.expanded .nav-item-label,
.sidebar-expanded .gym-slim-sidebar .nav-item-label {
    display: block;
}

.gym-slim-sidebar.expanded .slim-nav-item.active::before,
.sidebar-expanded .gym-slim-sidebar .slim-nav-item.active::before {
    top: 10px;
    bottom: 10px;
}

.gym-slim-sidebar.expanded .sidebar-bottom-actions .slim-nav-item,
.sidebar-expanded .gym-slim-sidebar .sidebar-bottom-actions .slim-nav-item {
    width: 74px;
    height: 48px;
    padding: 5px 2px 4px 2px;
}

.gym-slim-sidebar.expanded .sidebar-app-version,
.sidebar-expanded .gym-slim-sidebar .sidebar-app-version {
    font-size: 0.66rem;
    padding: 3px 8px;
}

.sidebar-bottom-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

/* Küçük Sürüm Göstergeleri (Sidebar & Header) */
.sidebar-app-version {
    font-size: 0.62rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #475569;
    padding: 3px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-align: center;
    cursor: default;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1;
}

.sidebar-app-version:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

.header-version-tag {
    font-size: 0.68rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    cursor: default;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.header-version-tag:hover {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

/* ANA ALAN SARICI (BODY WRAPPER) */
.gym-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: clip;
}

/* 2. UYGULAMA ÜST MENÜSÜ (TOP BAR) */
.gym-top-header {
    height: 52px;
    background: linear-gradient(90deg, #171128 0%, #1d1533 60%, #19122c 100%);
    border-bottom: 1px solid #2a2244;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 12px;
    flex-shrink: 0;
    z-index: 30;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
}

/* Sol: Turnike Hızlı Tetikleme Kontrolleri */
.header-gate-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gate-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.gate-btn-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #0d111d;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--gym-border);
}

.btn-gate-mini {
    background: #171d30;
    color: #cbd5e1;
    border: 1px solid #232c45;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-gate-mini:hover {
    background: #202842;
    color: #ffffff;
}

.btn-gate-mini.btn-gate-open {
    background: #e06d2b;
    color: #ffffff;
    border-color: #c45a1e;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(224, 109, 43, 0.35);
}

.btn-gate-mini.btn-gate-open:hover {
    background: #fb923c;
}

/* Orta: İşletme Adı / Şube Ortalanmış Başlık */
.header-center-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    max-width: 36%;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.header-tenant-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-brand-sep {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gym-primary, #e06d2b);
}

.header-branch-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #38bdf8;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1180px) {
    .header-center-brand {
        position: static;
        transform: none;
        margin: 0 auto;
        max-width: 240px;
    }
}

/* Sağ: Araçlar & Kontroller */
.header-right-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Hap Şeklinde Butonlar */
.tool-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pill-support {
    background: #6366f1;
    color: #ffffff;
}

.pill-support:hover {
    background: #4f46e5;
}

.pill-branch {
    background: #24143d;
    color: #e2e8f0;
    border: 1px solid #48267a;
}

.pill-branch:hover {
    background: #311b54;
}

.branch-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.branch-select-pulldown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 24px;
    padding-right: 26px;
    font-weight: 700;
    letter-spacing: 0.3px;
    outline: none;
    cursor: pointer;
}

.branch-select-pulldown option {
    background: #18181d;
    color: #f8fafc;
    font-weight: 600;
}

.branch-select-dot {
    position: absolute;
    left: 10px;
    pointer-events: none;
    z-index: 2;
}

.branch-select-caret {
    position: absolute;
    right: 9px;
    color: #a1a1aa;
    pointer-events: none;
    z-index: 2;
}

.branch-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.branch-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* İkon Butonları */
.tool-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #171d30;
    border: 1px solid var(--gym-border);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.tool-icon-btn:hover {
    color: #ffffff;
    background: #202842;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
}

.tool-flag-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0 2px;
}

/* Kolay / Pro Modu Toggle */
.mode-toggle-pill {
    display: flex;
    background: #0d111d;
    border: 1px solid var(--gym-border);
    border-radius: 14px;
    padding: 2px;
    height: 28px;
}

.mode-option {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mode-option.active {
    background: #202940;
    color: #ffffff;
}

/* Müşteri / Kullanıcı Ara Çubuğu */
.user-search-box {
    position: relative;
    width: 170px;
    margin: 0;
}

.user-search-input {
    width: 100%;
    height: 30px;
    background: #0d111d;
    border: 1px solid var(--gym-border);
    border-radius: 15px;
    padding: 0 28px 0 11px;
    font-size: 0.74rem;
    color: #ffffff;
    outline: none;
    transition: all 0.15s ease;
}

.user-search-input:focus {
    border-color: #4f46e5;
    background: #111726;
    width: 220px;
}

.user-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-search-results-root {
    position: absolute;
    top: 36px;
    left: 0;
    width: 300px;
    z-index: 50;
}

/* + Yeni Kayıt Butonu */
.btn-new-registration {
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #8e441b 0%, #6d3414 100%);
    border: 1px solid #a85424;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(224, 109, 43, 0.35);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-new-registration:hover {
    background: linear-gradient(90deg, #a34f20 0%, #7d3c18 100%);
    border-color: #c2642d;
    box-shadow: 0 4px 12px rgba(224, 109, 43, 0.5);
    transform: translateY(-1px);
}

/* Profil Avatar */
.profile-avatar-pill {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: all 0.15s ease;
}

.profile-avatar-pill:hover {
    background: #334155;
    border-color: #475569;
    transform: translateY(-1px);
}

/* ORTA İKİLİ SÜTUN: SOL İÇERİK + SAĞ SON GEÇİŞLER */
.gym-content-columns {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 52px);
    overflow: hidden;
}

/* 3. ANA EKRAN / MERKEZ ÇALIŞMA ALANI */
.gym-center-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    gap: 12px;
    overflow-y: auto;
    min-width: 0;
}

/* ÜST KARŞILAMA KARTI (HERO BANNER) */
.gym-hero-banner {
    background: linear-gradient(135deg, #2c1654 0%, #431b7d 45%, #180e32 100%);
    border: 1px solid #4a258a;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.hero-left-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-time-clock {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.hero-greeting-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0 0 0;
}

.hero-greeting-sub {
    font-size: 0.78rem;
    color: #d8b4fe;
    margin: 0;
    opacity: 0.9;
}

.hero-meta-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Sağ Turnike İllüstrasyonu */
.hero-right-illustration {
    position: relative;
    width: 320px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.turnstile-scene-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.turnstile-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spotlight {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.spot-1 {
    top: -20px;
    right: 80px;
    background: rgba(255, 122, 24, 0.18);
}

.spot-2 {
    bottom: -20px;
    right: 20px;
    background: rgba(147, 51, 234, 0.25);
}

/* KISAYOL BUTONLARI BÖLÜMÜ (QUICK ACTIONS SECTION) */
.gym-shortcuts-section {
    background: #111625;
    border: 1px solid var(--gym-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcuts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gym-border);
}

.shortcuts-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0d111d;
    border: 1px solid var(--gym-border);
    border-radius: 8px;
    padding: 0 10px;
    height: 32px;
    width: 220px;
    color: #64748b;
}

.shortcuts-filter-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.78rem;
    outline: none;
    width: 100%;
}

.btn-edit-shortcuts {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #171d30;
    border: 1px solid var(--gym-border);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-edit-shortcuts:hover {
    color: #ffffff;
    background: #202940;
}

/* Akıllı Esnek Kısayol Izgarası (Genişliğe göre dinamik sütun hesabı) */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
    width: 100%;
}

@media (max-width: 600px) {
    .shortcuts-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }
}

/* Kısayol Karosu / Butonu */
.shortcut-tile {
    background: #14192b;
    border: 1px solid #1c243c;
    border-radius: 8px;
    padding: 8px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 68px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
}

.shortcut-tile:hover {
    background: #1b233d;
    border-color: #33416b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.shortcut-tile:active {
    transform: translateY(0);
}

/* İkon Kutusunun Renkleri */
.tile-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.tile-icon-box.color-orange {
    background: #ff7a18;
    box-shadow: 0 0 8px rgba(255, 122, 24, 0.3);
}

.tile-icon-box.color-emerald {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.tile-icon-box.color-lime {
    background: #65a30d;
}

.tile-icon-box.color-gray {
    background: #252e47;
    color: #cbd5e1;
}

.tile-icon-box.color-brown {
    background: #78350f;
}

.tile-icon-box.color-purple {
    background: #8b5cf6;
}

.tile-icon-box.color-slate {
    background: #334155;
}

.tile-title-text {
    font-size: 0.68rem;
    font-weight: 500;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.15;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. SAĞ KENAR ÇUBUĞU (SON GEÇİŞLER DİKEY SÜTUNU) */
.gym-right-sidebar {
    width: 270px;
    background: #0f1422;
    border-left: 1px solid var(--gym-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

.recent-passes-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    gap: 10px;
    overflow: hidden;
}

.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0;
    text-transform: capitalize;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

.btn-close-drawer {
    display: none;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #171d30;
    border: 1px solid var(--gym-border);
    color: #94a3b8;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-close-drawer:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.refresh-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #171d30;
    border: 1px solid var(--gym-border);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.refresh-icon-btn:hover {
    color: #ffffff;
    background: #202940;
}

/* Tesis Doluluk Özeti */
.facility-occupancy-card {
    background: #14192b;
    border: 1px solid #1c243c;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.occupancy-headline {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.occupancy-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.occupancy-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

.gender-bar-container {
    height: 5px;
    background: #0d111d;
    border-radius: 3px;
    display: flex;
    overflow: hidden;
    gap: 2px;
}

.gender-bar.female {
    background: #f43f5e;
    border-radius: 3px 0 0 3px;
}

.gender-bar.male {
    background: #3b82f6;
    border-radius: 0 3px 3px 0;
}

.gender-legend-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #94a3b8;
}

.female-tag {
    color: #fda4af;
}

.male-tag {
    color: #93c5fd;
}

/* Son Geçişler Listesi */
.recent-passes-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 2px;
}

.pass-card {
    background: #14192b;
    border: 1px solid #1a2238;
    border-radius: 8px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pass-card:hover {
    background: #1c243c;
    border-color: #2c3654;
    transform: translateX(2px);
}

.pass-card:hover .pass-member-name {
    color: var(--gym-primary);
}

.pass-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.pass-avatar.avatar-emerald { background: #059669; }
.pass-avatar.avatar-cyan { background: #0891b2; }
.pass-avatar.avatar-blue { background: #2563eb; }
.pass-avatar.avatar-indigo { background: #4f46e5; }

.pass-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pass-member-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pass-member-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.pass-time {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
}

.pass-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.63rem;
    color: #94a3b8;
}

.pass-gate-tag {
    color: #cbd5e1;
    font-weight: 600;
}

.pass-package-tag {
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.days-pill {
    color: #f97316;
    font-weight: 600;
}

/* ==========================================================================
   HTMX MODAL VE AÇILIR ELEMANLAR
   ========================================================================== */

.action-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 15, 0.78);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
    animation: modalFadeIn 0.15s ease-out;
}

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

.action-modal-card {
    background: #111625;
    border: 1px solid #232c45;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.modal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #171d30;
    border-bottom: 1px solid var(--gym-border);
    flex-shrink: 0;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-badge-category {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: #252e47;
    color: #93c5fd;
    text-transform: uppercase;
}

.modal-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

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

.modal-card-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.modal-intro-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0 0 14px 0;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group-compact.full-width {
    grid-column: span 2;
}

.form-label-compact {
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-input-compact,
.form-select-compact {
    height: 34px;
    background: #0d111d;
    border: 1px solid #232c45;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 0.8rem;
    color: #ffffff;
    outline: none;
}

.form-input-compact:focus,
.form-select-compact:focus {
    border-color: #6366f1;
}

.rfid-scanner-box {
    background: #0d111d;
    border: 1px dashed #ff7a18;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.rfid-pulse-icon {
    color: #ff7a18;
    animation: rfidPulse 1.5s infinite;
}

@keyframes rfidPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.rfid-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.modal-actions-row {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.modal-actions-row.single {
    display: flex;
    justify-content: flex-end;
}

.btn-subtle {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #171d30;
    border: 1px solid var(--gym-border);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-action-primary {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: var(--gym-primary);
    border: none;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 122, 24, 0.35);
}

.btn-action-primary:hover {
    background: #ea580c;
}

.modal-placeholder-box {
    text-align: center;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.placeholder-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #1e263d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    margin-bottom: 4px;
}

.modal-placeholder-box h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
}

.modal-placeholder-box p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    max-width: 380px;
    line-height: 1.4;
}

.modal-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 6px;
}

.info-pill {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: #171d30;
    color: #cbd5e1;
    border: 1px solid var(--gym-border);
}

/* TURNİKE BİLDİRİM TOAST ALANI */
.gate-toast-root {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    pointer-events: none;
}

.gate-status-toast {
    background: #171d30;
    border: 1px solid #ff7a18;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    animation: toastSlideUp 0.2s ease-out;
}

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

/* KULLANICI ARAMA AÇILIR LİSTESİ */
.user-search-dropdown-menu {
    background: #111625;
    border: 1px solid #232c45;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-top: 4px;
}

.search-results-header {
    padding: 6px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    background: #171d30;
    border-bottom: 1px solid var(--gym-border);
}

.search-results-list {
    max-height: 220px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    border-bottom: 1px solid #171d30;
    transition: background 0.15s ease;
}

.search-result-item:hover {
    background: #1a2238;
}

.search-item-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
}

.search-item-sub {
    font-size: 0.65rem;
    color: #94a3b8;
}

.search-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.search-badge-plan {
    font-size: 0.62rem;
    color: #cbd5e1;
}

.search-badge-status {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.search-empty-feedback {
    padding: 10px;
    font-size: 0.74rem;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================================
   MÜŞTERİ YÖNETİMİ & TABLO STİLLERİ
   ========================================================================== */

.btn-back-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.btn-back-dashboard:hover {
    color: #ffffff;
}

.customer-page-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.customer-management-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    overflow-y: auto;
}

/* Filtre Paneli */
.customer-filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #111625;
    border: 1px solid var(--gym-border);
    border-radius: 10px;
    padding: 10px 14px;
}

.customer-search-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #141722 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 0 12px;
    height: 38px;
    flex: 1;
    max-width: 380px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.customer-search-input-group:focus-within {
    border-color: #e06d2b !important;
    box-shadow: 0 0 0 2px rgba(224, 109, 43, 0.15) !important;
}

.customer-search-input-group input,
.customer-search-input-group .filter-search-box,
.filter-search-box {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #f1f5f9 !important;
    font-size: 0.82rem !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.customer-search-input-group input::placeholder,
.customer-search-input-group .filter-search-box::placeholder,
.filter-search-box::placeholder {
    color: #64748b !important;
}

.customer-filter-controls,
.customer-filter-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.filter-select-dropdown {
    height: 38px;
    background: #141722 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 0 12px;
    color: #e2e8f0 !important;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select-dropdown:focus {
    border-color: #e06d2b !important;
    box-shadow: 0 0 0 2px rgba(224, 109, 43, 0.15) !important;
}

.filter-select-dropdown option {
    background: #181b28;
    color: #f1f5f9;
}

.btn-refresh-table {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #171d30;
    border: 1px solid var(--gym-border);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-refresh-table:hover {
    color: #ffffff;
    background: #202940;
}

/* Tablo Kapsayıcısı */
.customer-table-wrapper {
    background: #111625;
    border: 1px solid var(--gym-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.customer-table-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #14192b;
    border-bottom: 1px solid var(--gym-border);
    font-size: 0.72rem;
    color: #94a3b8;
}

.customer-stats-label strong {
    color: #ffffff;
}

.search-indicator-tag {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.customer-table-scroll {
    overflow-x: auto;
}

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

.customer-table thead th {
    background: #0f1422;
    padding: 10px 14px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gym-border);
    white-space: nowrap;
}

.customer-table tbody tr {
    border-bottom: 1px solid #171d30;
    transition: background 0.15s ease;
}

.customer-table tbody tr:hover {
    background: #151b2e;
}

.customer-table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
}

/* Hücre Öğeleri */
.customer-profile-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.avatar-female {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.avatar-male {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.customer-name-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name-text {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.8rem;
}

.customer-sub-text {
    font-size: 0.65rem;
    color: #64748b;
}

.customer-contact-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-phone {
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.76rem;
}

.customer-email {
    font-size: 0.68rem;
    color: #64748b;
}

.customer-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #0d111d;
    border: 1px solid var(--gym-border);
    color: #94a3b8;
    font-size: 0.7rem;
    font-family: monospace;
}

.customer-pkg-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #1e263d;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
}

.days-left-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.days-normal {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.days-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.days-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-frozen {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.status-passive {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

/* İşlem Butonları */
.customer-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.btn-row-action {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #171d30;
    border: 1px solid var(--gym-border);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-row-action:hover {
    color: #ffffff;
    background: #202940;
}

.btn-row-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Boş Tablo */
.empty-table-cell {
    padding: 40px !important;
    text-align: center;
}

.table-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

.table-empty-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Hata Mesajları */
.form-global-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    margin-bottom: 12px;
}

.input-has-error {
    border-color: #ef4444 !important;
}

.field-error-msg {
    font-size: 0.68rem;
    color: #ef4444;
    margin-top: 2px;
}

/* Mobil Hamburger Menü & Son Geçişler Off-Canvas Drawer */
.btn-mobile-passes-toggle {
    display: none;
    position: relative;
}

.passes-mobile-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.recent-passes-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* =========================================================
   RESPONSIVE DÜZEN: MOBİL & TABLET (<= 992px)
   ========================================================= */
@media (max-width: 992px) {
    /* Hamburger Menü Butonunu Göster */
    .btn-mobile-passes-toggle {
        display: inline-flex !important;
    }

    .btn-close-drawer {
        display: inline-flex !important;
    }

    /* İkili Sütunu Tek Sütun Yap (Ana sahne tüm ekranı kaplasın) */
    .gym-content-columns {
        flex-direction: column;
        min-height: auto;
        width: 100%;
        overflow-y: visible;
    }

    .gym-center-stage {
        width: 100%;
        padding: 10px;
        overflow-y: visible;
    }

    /* Sağ Kenar Çubuğu: Sağdan Açılan Off-Canvas Drawer */
    .gym-right-sidebar {
        position: fixed;
        top: 0;
        right: -340px;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #0f1422;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.75);
        z-index: 1000;
        transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-left: 1px solid #232c45;
    }

    .gym-right-sidebar.drawer-open {
        right: 0;
    }

    .recent-passes-backdrop.active {
        display: block;
        opacity: 1;
    }

    /* Üst Barı Mobilde Esnet */
    .gym-top-header {
        height: auto;
        min-height: 48px;
        padding: 6px 10px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .header-gate-controls {
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 2px;
    }

    .header-right-tools {
        margin-left: auto;
        gap: 6px;
    }

    .user-search-box {
        width: 140px;
    }

    .mode-toggle-pill {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE DÜZEN: KÜÇÜK MOBİL CİHAZLAR (<= 640px)
   ========================================================= */
@media (max-width: 640px) {
    .gym-slim-sidebar {
        width: 44px;
        padding: 8px 0;
    }

    .user-search-box {
        display: none;
    }

    .pill-branch {
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .btn-new-registration span {
        display: none;
    }

    .btn-new-registration {
        padding: 0 8px;
    }

    .gym-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        min-height: auto;
        gap: 10px;
    }

    .hero-time-clock {
        font-size: 1.8rem;
    }

    .hero-right-illustration {
        display: none;
    }

    .shortcuts-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .shortcuts-search-wrap {
        width: 100%;
    }
}

/* ==========================================================================
   HIZLI KAYIT (QUICK REGISTRATION) 2 SÜTUNLU MODAL STİLLERİ
   ========================================================================== */
.quick-register-modal-card {
    max-width: 720px !important;
    width: 95%;
    background: #0f1523;
    border: 1px solid #1e293b;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.quick-reg-header {
    padding: 14px 20px;
    background: #141c2e;
    border-bottom: 1px solid #1e293b;
}

.quick-reg-header .modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon-badge.icon-badge-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.28);
}

.modal-icon-badge.icon-badge-emerald {
    background: rgba(160, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.modal-icon-badge.icon-badge-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.28);
}

.modal-title-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-badge-category {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-badge-category.color-orange {
    background: rgba(249, 115, 22, 0.16);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.modal-badge-category.color-emerald {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.modal-badge-category.color-purple {
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.modal-title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.01em;
}

.quick-reg-body {
    padding: 20px 22px;
    background: #0f1523;
}

.quick-reg-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .quick-reg-columns-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.quick-reg-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.77rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.required-star {
    color: #ef4444;
    font-weight: 700;
    margin-left: 3px;
}

.label-hint {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}

/* =========================================================
   FORM ALANLARI & İNPUT STİLLERİ (MODAL & PANEL FORMLARI)
   Koyu obsidian arkaplan (#121624), parlamayı engelleyen mat tonlar
   ========================================================= */

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

.form-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
}

.form-field-input,
.form-input-compact,
.form-select-compact,
.action-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.action-modal-card select,
.action-modal-card textarea {
    height: 40px;
    background-color: #121624 !important;
    border: 1px solid #232c45 !important;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.84rem;
    color: #f1f5f9 !important;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    color-scheme: dark;
    box-sizing: border-box;
}

textarea.form-field-input,
textarea.form-input-compact,
.action-modal-card textarea {
    height: auto;
    min-height: 80px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

.form-field-input::placeholder,
.form-input-compact::placeholder,
.action-modal-card input::placeholder,
.action-modal-card textarea::placeholder {
    color: #64748b !important;
}

.form-field-input:focus,
.form-input-compact:focus,
.form-select-compact:focus,
.action-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.action-modal-card select:focus,
.action-modal-card textarea:focus {
    border-color: #e06d2b !important;
    background-color: #161b2e !important;
    box-shadow: 0 0 0 3px rgba(224, 109, 43, 0.18) !important;
    color: #ffffff !important;
}

.form-field-input.input-error,
.form-input-compact.input-has-error,
.input-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg,
.field-error-text {
    color: #f87171;
    font-size: 0.72rem;
    margin-top: 3px;
    font-weight: 500;
}

/* Modal Checkbox Dark Styling */
.action-modal-card input[type="checkbox"],
.modal-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: #121624 !important;
    border: 1.5px solid #334155 !important;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.15s ease;
    margin: 0;
    flex-shrink: 0;
    color-scheme: dark;
}

.action-modal-card input[type="checkbox"]:hover,
.modal-checkbox:hover {
    border-color: #e06d2b !important;
    background-color: #1a2236 !important;
}

.action-modal-card input[type="checkbox"]:checked,
.modal-checkbox:checked,
.modal-checkbox-orange:checked {
    background-color: #e06d2b !important;
    border-color: #e06d2b !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 12px !important;
}

.action-modal-card input[type="checkbox"].modal-checkbox-green:checked,
.modal-checkbox-green:checked {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 12px !important;
}

.action-modal-card input[type="checkbox"]:focus-visible,
.modal-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(224, 109, 43, 0.35) !important;
}

/* Tarayıcı Otomatik Tamamlama (Autofill) Parlamasını Önleme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0px 1000px #121624 inset !important;
    box-shadow: 0 0 0px 1000px #121624 inset !important;
    transition: background-color 5000s ease-in-out 0s;
    color-scheme: dark;
}

.full-height-note {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quick-reg-textarea {
    height: 94px;
    min-height: 84px;
    resize: none;
    padding: 10px 12px;
    font-size: 0.83rem;
    line-height: 1.45;
}

.form-row-payment-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10px;
    align-items: flex-start;
}

.input-with-currency, .input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-currency input,
.input-with-unit input,
.action-modal-card .input-with-currency input,
.action-modal-card .input-with-unit input {
    text-align: right !important;
    padding-right: 44px !important;
    padding-left: 12px !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Chrome, Safari, Edge, Opera: Native arttırma/azaltma (spin) butonlarını gizle */
.input-with-currency input::-webkit-outer-spin-button,
.input-with-currency input::-webkit-inner-spin-button,
.input-with-unit input::-webkit-outer-spin-button,
.input-with-unit input::-webkit-inner-spin-button,
input[type="number"].no-spin::-webkit-outer-spin-button,
input[type="number"].no-spin::-webkit-inner-spin-button,
input[type="number"].form-input-compact::-webkit-outer-spin-button,
input[type="number"].form-input-compact::-webkit-inner-spin-button,
.action-modal-card input[type="number"]::-webkit-outer-spin-button,
.action-modal-card input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

/* Firefox: Native arttırma/azaltma butonlarını gizle */
.input-with-currency input[type="number"],
.input-with-unit input[type="number"],
input[type="number"].no-spin,
input[type="number"].form-input-compact,
.action-modal-card input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* ==========================================================================
   PARASAL DEĞERLER (SAĞA DAYALI & TABULAR-NUMS FORMATI)
   ========================================================================== */
.money-cell,
.th-money,
.money-value,
.text-money {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

td.money-cell {
    text-align: right !important;
}

th.th-money {
    text-align: right !important;
}

.input-with-unit input {
    padding-right: 48px !important;
}

.currency-symbol {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: #38bdf8;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 5;
}

.unit-symbol {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 5;
}

.quick-reg-calc-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 9px 12px;
    border-radius: 8px;
    margin-top: 4px;
    transition: all 0.15s ease;
}

.calc-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    flex-shrink: 0;
}

.calc-pill-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.calc-pill-label {
    font-size: 0.67rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.calc-pill-value {
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 700;
}

.quick-reg-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 9px 13px;
    margin-bottom: 16px;
}

.quick-reg-notice .notice-icon {
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-reg-notice .notice-text {
    font-size: 0.77rem;
    color: #bfdbfe;
    line-height: 1.4;
}

.quick-reg-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #1e293b;
    margin-top: 14px;
    gap: 12px;
    position: sticky;
    bottom: -20px;
    background: rgba(15, 21, 35, 0.98);
    backdrop-filter: blur(8px);
    padding-bottom: 4px;
    z-index: 10;
}

.btn-cancel,
.btn-quick-cancel {
    background: #192132;
    color: #cbd5e1;
    border: 1px solid #28354c;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-cancel:hover,
.btn-quick-cancel:hover {
    background: #222d44;
    color: #ffffff;
    border-color: #3b4b6b;
}

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

.btn-submit-reg,
.btn-quick-save {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    transition: all 0.15s ease;
}

.btn-submit-reg:hover,
.btn-quick-save:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

.btn-quick-save-qr {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.83rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.15s ease;
}

.btn-quick-save-qr:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.qr-card-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    margin-bottom: 8px;
}

/* ==========================================================================
   MODAL GENEL BİLEŞENLERİ (KARTLAR, KUTULAR, TABLOLAR)
   ========================================================================== */
.modal-box-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    color: #f1f5f9;
}

.modal-inner-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    color: #f1f5f9;
}

.modal-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.modal-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.modal-table-wrap table thead tr {
    background: rgba(15, 23, 42, 0.7);
    color: #94a3b8;
}

.modal-table-wrap table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-empty-state {
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.package-type-radio-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #121217;
    border: 1px solid #272733;
    border-radius: 8px;
    transition: all 0.15s ease;
    color: #f1f5f9;
}

.package-session-fields-box {
    background: #12111d;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #281d3d;
}

.package-freeze-block-box {
    background: #121217;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1f1f28;
}

.staff-branch-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
    transition: all 0.15s ease;
    color: #f1f5f9;
}

.qr-details-strip {
    margin-top: 18px;
    background: #171d30;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.8rem;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    color: #cbd5e1;
}

.qr-member-name {
    color: #ffffff;
}

.note-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
}

.role-item-row {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.role-item-row .role-title-text {
    color: #f1f5f9;
}

.btn-action-ghost {
    background: #192132;
    color: #cbd5e1;
    border: 1px solid #28354c;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-action-ghost:hover {
    background: #222d44;
    color: #ffffff;
    border-color: #3b4b6b;
}

.btn-action-secondary {
    background: #192132;
    color: #cbd5e1;
    border: 1px solid #28354c;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-action-secondary:hover {
    background: #222d44;
    color: #ffffff;
    border-color: #3b4b6b;
}

.freeze-tag-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.freeze-card-has-rights {
    border: 1px solid rgba(14, 165, 233, 0.4) !important;
}
.freeze-card-has-rights .freeze-val-text {
    color: #38bdf8 !important;
}
.freeze-card-no-rights {
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}
.freeze-card-no-rights .freeze-val-text {
    color: #f87171 !important;
}

/* Paket Listesi Stilleri */
.pkg-avatar-session {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
}

.pkg-avatar-subscription {
    background: rgba(224, 109, 43, 0.15) !important;
    color: #e06d2b !important;
}

.pkg-type-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.pkg-type-badge.badge-session {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.pkg-type-badge.badge-subscription {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.pkg-duration-text {
    font-weight: 700;
    font-size: 0.85rem;
}

.pkg-duration-text.text-session {
    color: #c084fc;
}

.pkg-duration-text.text-subscription {
    color: #cbd5e1;
}

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

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

/* ==========================================================================
   HİZMETLER VE SEANSLAR MODÜLÜ (SERVICES & SESSIONS MODULE)
   ========================================================================== */
.service-card-item {
    background: #111420;
    border: 1px solid #1e2538;
    border-radius: 10px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.service-card-title {
    color: #f1f5f9;
}

.service-progress-container {
    margin: 14px 0 10px 0;
    background: #0c0e17;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #1a2030;
}

.service-progress-track {
    height: 6px;
    background: #1e2538;
    border-radius: 3px;
    overflow: hidden;
}

.session-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid #1a2030;
    padding-top: 8px;
}

.service-empty-box {
    text-align: center;
    padding: 36px 20px;
    background: #0d101a;
    border-radius: 10px;
    border: 1px dashed #22293d;
}

.service-table-card {
    background: #111420;
    border: 1px solid #1e2538;
    border-radius: 10px;
    overflow: hidden;
}

/* ==========================================================================
   MÜŞTERİ DETAY VE DÜZENLEME EKRANI (CUSTOMER PROFILE & EDIT SCREEN)
   ========================================================================== */

.customer-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    background: #0e1320;
    border-bottom: 1px solid var(--gym-border);
    flex-shrink: 0;
}

.detail-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.detail-breadcrumb-back {
    color: var(--gym-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.detail-breadcrumb-back:hover {
    color: var(--gym-text-main);
}

.crumb-sep {
    color: #475569;
}

.crumb-current-name {
    color: #ffffff;
    font-weight: 600;
}

.detail-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.detail-status-pill.status-frozen {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.detail-status-pill.status-passive {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: pulseAnim 2s infinite ease-in-out;
}

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

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

.btn-detail-back {
    background: var(--gym-surface-light);
    border: 1px solid var(--gym-border);
    color: var(--gym-text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-detail-back:hover {
    background: #1e263c;
    color: #ffffff;
    border-color: var(--gym-border-light);
}

.btn-detail-qr {
    background: transparent;
    border: 1px solid var(--gym-border-light);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-detail-qr:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #64748b;
    color: #ffffff;
}

.btn-detail-save {
    background: linear-gradient(90deg, #8e441b 0%, #6d3414 100%);
    border: 1px solid #a85424;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(224, 109, 43, 0.35);
    transition: all 0.15s ease;
}

.btn-detail-save:hover {
    background: linear-gradient(90deg, #a34f20 0%, #7d3c18 100%);
    border-color: #c2642d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(224, 109, 43, 0.5);
}

/* Detail Sayfa Gövdesi */
.customer-detail-body {
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

@media (max-width: 1080px) {
    .customer-detail-body {
        grid-template-columns: 1fr;
    }
}

/* Sol Profil & İstatistik Kartı */
.customer-profile-card {
    background: var(--gym-surface);
    border: 1px solid var(--gym-border);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.detail-avatar-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
}

.detail-avatar-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 3px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #f8fafc;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.detail-avatar-female {
    border-color: #ec4899;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
}

.avatar-cam-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e263c;
    border: 2px solid var(--gym-surface);
    color: var(--gym-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.avatar-cam-overlay:hover {
    background: var(--gym-primary);
    color: #ffffff;
}

.detail-member-fullname {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.detail-member-code {
    font-size: 0.78rem;
    color: #64748b;
    font-family: monospace;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.detail-countdown-widget {
    width: 100%;
    background: var(--gym-surface-light);
    border: 1px solid var(--gym-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.countdown-left-info {
    text-align: left;
}

.countdown-title {
    font-size: 0.74rem;
    color: var(--gym-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.countdown-days-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.countdown-ring-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #22c55e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.08);
}

.countdown-ring-badge.days-warn {
    border-color: #f59e0b;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
}

.countdown-ring-badge.days-crit {
    border-color: #ef4444;
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

.detail-quick-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.quick-stat-box {
    background: var(--gym-surface-light);
    border: 1px solid var(--gym-border);
    border-radius: 10px;
    padding: 12px;
    text-align: left;
}

.stat-box-title {
    font-size: 0.72rem;
    color: var(--gym-text-muted);
    margin-bottom: 4px;
}

.stat-box-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.detail-contact-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--gym-border);
    margin-bottom: 16px;
}

.contact-row-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--gym-text-muted);
    text-align: left;
}

.contact-row-item svg {
    color: #64748b;
    flex-shrink: 0;
}

.contact-row-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-rfid-card {
    width: 100%;
    background: rgba(23, 29, 48, 0.6);
    border: 1px solid var(--gym-border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.rfid-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.rfid-title {
    font-size: 0.7rem;
    color: var(--gym-text-muted);
    margin-bottom: 2px;
}

.rfid-uid-val {
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 600;
    color: #ffffff;
    word-break: break-all;
}

/* Sağ Form ve Sekmeler */
.customer-detail-main-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-tabs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--gym-border);
    padding-bottom: 10px;
}

.detail-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gym-text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.detail-tab-btn.active {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 122, 24, 0.3);
    color: var(--gym-primary);
}

.detail-section-card {
    background: var(--gym-surface);
    border: 1px solid var(--gym-border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.detail-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .detail-form-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Cinsiyet Seçimi Radyo Butonları */
.gender-radio-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 6px;
}

.gender-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--gym-text-muted);
    cursor: pointer;
}

.gender-radio-label input[type="radio"] {
    accent-color: var(--gym-primary);
    cursor: pointer;
}

/* Turnike Giriş Zaman Çizelgesi */
.turnstile-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 24px;
}

.turnstile-timeline-list::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gym-border);
}

.timeline-pass-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gym-surface-light);
    border: 1px solid var(--gym-border);
    border-radius: 10px;
    padding: 10px 14px;
}

.timeline-bullet-point {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--gym-surface);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.pass-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pass-time-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
}

.pass-gate-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #ffffff;
}

.pass-status-success {
    font-size: 0.76rem;
    font-weight: 600;
    color: #4ade80;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Başarı Toast Bildirimi */
.detail-success-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.customer-name-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.customer-name-link:hover {
    color: var(--gym-primary);
    text-decoration: underline;
}

/* =========================================================
   ŞUBE & ÇALIŞAN YÖNETİMİ ÜST NAV (BRANCH & STAFF TOP NAV)
   ========================================================= */
.branch-nav-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 17, 29, 0.85);
    padding: 3px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    gap: 4px;
    backdrop-filter: blur(8px);
}

.branch-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.branch-nav-tab svg {
    flex-shrink: 0;
    transition: stroke 0.2s ease;
}

.branch-nav-tab:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.branch-nav-tab.active {
    background: rgba(224, 109, 43, 0.2);
    border-color: rgba(224, 109, 43, 0.5);
    color: #f97316;
    box-shadow: 0 2px 8px rgba(224, 109, 43, 0.2);
}

.branch-nav-tab.active svg {
    stroke: #f97316;
}

.branch-nav-tab .tab-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.69rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.branch-nav-tab.active .tab-badge {
    background: rgba(224, 109, 43, 0.35);
    color: #ffedd5;
}

.btn-new-staff {
    background: linear-gradient(90deg, #4f46e5 0%, #4338ca 100%) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35) !important;
}

.btn-new-staff:hover {
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%) !important;
    border-color: #818cf8 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5) !important;
}

@media (max-width: 992px) {
    .branch-nav-tabs {
        flex-shrink: 0;
    }
}
