/* ================================================================
   HALÍ SAHA ATEŞİ — App Design System
   Premium, corporate-grade UI for the entire application
   ================================================================ */

:root {
    --hs-primary: #059669;
    --hs-primary-light: #ecfdf5;
    --hs-primary-dark: #064e3b;
    --hs-accent: #f59e0b;
    --hs-dark: #0f172a;
    --hs-dark-soft: #1e293b;
    --hs-surface: #ffffff;
    --hs-bg: #f1f5f9;
    --hs-text: #1e293b;
    --hs-text-muted: #64748b;
    --hs-border: #e2e8f0;
    --hs-border-accent: rgba(5, 150, 105, 0.95);
    --hs-card-border: 1.5px solid rgba(5, 150, 105, 0.45);
    --hs-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --hs-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --hs-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --hs-radius: 14px;
    --hs-radius-sm: 10px;
    --hs-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================
   GLOBAL CARD — her yerde kullanılır (.hs-card)
   ============================================================= */
.hs-card {
    background: #fff;
    border: var(--hs-card-border);
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow-md);
}

/* =============================================================
   GLOBAL APP STYLES (all authenticated pages)
   ============================================================= */

body.app-body {
    background: var(--hs-bg) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--hs-text);
}

/* ===== Top Navbar ===== */
.app-navbar {
    background: var(--hs-dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 16px;
    min-height: 56px;
}

.app-navbar .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-navbar .navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: var(--hs-primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.app-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.15);
    padding: 4px 8px;
}

.app-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.app-navbar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 12px !important;
    transition: color 0.15s;
}

.app-navbar .nav-link:hover {
    color: #fff !important;
}

.app-navbar .nav-link.user-greet {
    color: rgba(255,255,255,0.5) !important;
    cursor: default;
}

.app-navbar .nav-link.user-greet strong {
    color: rgba(255,255,255,0.85);
}

.app-navbar .notif-bell {
    color: rgba(255,255,255,0.7) !important;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
    padding: 8px !important;
}

.app-navbar .notif-bell:hover { color: #fff !important; }

.app-navbar .notif-bell .notif-dot {
    position: absolute;
    top: 6px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--hs-dark);
}

.app-navbar .dropdown-menu {
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius-sm);
    box-shadow: var(--hs-shadow-lg);
    font-size: 0.85rem;
}

/* ===== Tab Bar ===== */
.app-tabbar {
    background: var(--hs-surface);
    border-bottom: 1px solid var(--hs-border);
    position: sticky;
    top: 0;
    z-index: 1029;
}

.app-tabbar .nav {
    gap: 4px;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-tabbar .nav::-webkit-scrollbar { display: none; }

.app-tabbar .nav-link {
    color: var(--hs-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 7px 16px;
    border-radius: 8px;
    transition: var(--hs-transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-tabbar .nav-link i { font-size: 0.9rem; }

.app-tabbar .nav-link:hover {
    color: var(--hs-primary);
    background: var(--hs-primary-light);
}

.app-tabbar .nav-link.active {
    background: var(--hs-primary);
    color: #fff !important;
}

/* ===== Page Container ===== */
.app-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.app-page-fluid {
    padding: 24px 20px 48px;
}

/* ===== Message Toasts (sağ alt) ===== */
.hs-msg-toast {
    min-width: 280px;
    max-width: 380px;
    border-radius: var(--hs-radius-sm) !important;
    font-size: 0.84rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    border: 2px solid transparent !important;
    overflow: hidden;
    background: var(--hs-dark) !important;
    color: #fff !important;
}
.hs-msg-toast .toast-body { padding: 14px 18px; line-height: 1.5; }
.hs-msg-toast .btn-close  {
    padding: 14px 12px;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}
.hs-msg-toast-success { border-color: #10b981 !important; }
.hs-msg-toast-danger,
.hs-msg-toast-error   { border-color: #ef4444 !important; }
.hs-msg-toast-warning { border-color: #f59e0b !important; }
.hs-msg-toast-info    { border-color: #38bdf8 !important; }

/* Açık zeminli toast kullanılırsa metin/ikon rengi siyah olsun. */
.hs-msg-toast.hs-msg-toast-light,
.hs-msg-toast.bg-light,
.hs-msg-toast[style*="background:#fff"],
.hs-msg-toast[style*="background: #fff"],
.hs-msg-toast[style*="background:white"],
.hs-msg-toast[style*="background: white"] {
    color: #111 !important;
}
.hs-msg-toast.hs-msg-toast-light .btn-close,
.hs-msg-toast.bg-light .btn-close,
.hs-msg-toast[style*="background:#fff"] .btn-close,
.hs-msg-toast[style*="background: #fff"] .btn-close,
.hs-msg-toast[style*="background:white"] .btn-close,
.hs-msg-toast[style*="background: white"] .btn-close {
    filter: none;
}

/* =============================================================
   BOOTSTRAP OVERRIDES (for authenticated pages)
   ============================================================= */

/* --- Cards --- */
body.app-body .card {
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow);
    overflow: hidden;
}

body.app-body .card-header {
    background: var(--hs-dark) !important;
    color: #fff !important;
    border-bottom: none;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 !important;
}

body.app-body .card-header h3,
body.app-body .card-header h4,
body.app-body .card-header h5,
body.app-body .card-header h6 {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
}

body.app-body .card-header h6 .badge {
    font-size: 0.72rem;
}

body.app-body .card-header i {
    color: rgba(255,255,255,0.8);
}

body.app-body .card-header a {
    color: rgba(255,255,255,0.85);
}
body.app-body .card-header a:hover {
    color: #fff;
}

body.app-body .card-body {
    padding: 20px;
}

body.app-body .card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--hs-border);
    padding: 12px 20px;
}

/* --- Tables --- */
body.app-body .table {
    font-size: 0.84rem;
    color: var(--hs-text);
    margin-bottom: 0;
}

body.app-body .table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--hs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--hs-border);
    background: #f8fafc;
}

body.app-body .table thead.table-dark th {
    background: var(--hs-dark);
    color: rgba(255,255,255,0.85);
    border-bottom: none;
}

body.app-body .table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hs-border);
    vertical-align: middle;
}

body.app-body .table tbody tr:last-child td { border-bottom: none; }

body.app-body .table-hover tbody tr:hover { background: #f8fafc; }

/* ===== Zebra Deseni (Merkezi) ===== */
/* Tek yerden ayarlanır — tüm tablolar bu değişkeni kullanır */
body.app-body { --hs-stripe: #dfe5ed; }

/* Bootstrap table-striped (açık tablolar) */
body.app-body .table-striped:not(.table-dark) > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: var(--hs-stripe);
}
/* Bootstrap table-striped (koyu tablolar) */
body.app-body .table-dark.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(255, 255, 255, 0.12);
}
/* dash-table zebra */
.dash-table tbody tr:nth-of-type(odd) td {
    background: var(--hs-stripe);
}
/* Kadro listesi (div tabanlı) zebra */
.squad-stripe { background: var(--hs-stripe); }
/* Kadro sütunları — her sütun kendi içinde zebra */
.squad-col > div:nth-child(even) { background: var(--hs-stripe); }

body.app-body .table-bordered { border: 1px solid var(--hs-border-accent); }
body.app-body .table-bordered td,
body.app-body .table-bordered th { border-color: var(--hs-border-accent); }

/* --- Financial filter buttons (dark card-header) --- */
.txn-filter-btn {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    transition: all 0.15s;
    text-decoration: none;
}

.txn-filter-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.txn-filter-btn.active {
    background: #fff;
    color: var(--hs-dark);
    border-color: #fff;
}

body.app-body .card-header .txn-filter-btn.active i {
    color: var(--hs-dark);
}

.txn-filter-select {
    width: auto;
    min-width: 92px;
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 28px 4px 12px;
    box-shadow: none;
    appearance: auto;
    cursor: pointer;
    text-decoration: none;
}
.txn-filter-select:focus {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    box-shadow: none;
    outline: none;
}
.txn-filter-select.active {
    background: #fff;
    color: var(--hs-dark);
    border-color: #fff;
}
.txn-filter-select option {
    color: #111;
}

/* --- Buttons --- */
body.app-body .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--hs-transition);
    padding: 8px 16px;
}

body.app-body .btn-sm {
    padding: 5px 12px;
    font-size: 0.76rem;
    border-radius: 7px;
}

body.app-body .btn-lg {
    padding: 11px 22px;
    font-size: 0.88rem;
    border-radius: 10px;
}

body.app-body .btn-primary {
    background: var(--hs-primary);
    border-color: var(--hs-primary);
    border-radius: 8px;
    padding: 8px 16px;
}
body.app-body .btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

body.app-body .btn-success {
    background: #059669;
    border-color: #059669;
}
body.app-body .btn-success:hover { background: #047857; border-color: #047857; }

body.app-body .btn-warning {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}
body.app-body .btn-warning:hover { background: #b45309; border-color: #b45309; color: #fff; }

body.app-body .btn-danger {
    background: #dc2626;
    border-color: #dc2626;
}
body.app-body .btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

body.app-body .btn-info {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
body.app-body .btn-info:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

body.app-body .btn-dark {
    background: var(--hs-dark);
    border-color: var(--hs-dark);
}

body.app-body .btn-light {
    background: var(--hs-surface);
    border-color: var(--hs-border);
    color: var(--hs-text);
}
body.app-body .btn-light:hover { background: #f8fafc; border-color: #cbd5e1; }

body.app-body .btn-outline-primary {
    color: var(--hs-primary);
    border-color: var(--hs-primary);
}
body.app-body .btn-outline-primary:hover {
    background: var(--hs-primary);
    border-color: var(--hs-primary);
    color: #fff;
}

body.app-body .btn-outline-secondary {
    color: var(--hs-text-muted);
    border-color: var(--hs-border);
}
body.app-body .btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--hs-text);
}

body.app-body .btn-outline-success {
    color: #059669;
    border-color: #059669;
}
body.app-body .btn-outline-success:hover { background: #059669; color: #fff; }

body.app-body .btn-outline-warning {
    color: #d97706;
    border-color: #d97706;
}
body.app-body .btn-outline-warning:hover { background: #d97706; color: #fff; }

body.app-body .btn-outline-dark {
    color: var(--hs-dark);
    border-color: var(--hs-dark);
}
body.app-body .btn-outline-dark:hover { background: var(--hs-dark); color: #fff; }

body.app-body .btn-group .btn {
    border-radius: 0;
}
body.app-body .btn-group .btn:first-child { border-radius: 8px 0 0 8px; }
body.app-body .btn-group .btn:last-child  { border-radius: 0 8px 8px 0; }
body.app-body .btn-group .btn:only-child  { border-radius: 8px; }

/* --- Badges --- */
body.app-body .badge {
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.2px;
    padding: 4px 10px;
    border-radius: 6px;
}

body.app-body .badge.bg-success { background: #059669 !important; color: #fff; }
body.app-body .badge.bg-danger  { background: #dc2626 !important; color: #fff; }
body.app-body .badge.bg-warning { background: #f59e0b !important; color: #fff; }
body.app-body .badge.bg-info    { background: #3b82f6 !important; color: #fff; }
body.app-body .badge.bg-secondary { background: #64748b !important; color: #fff; }
body.app-body .badge.bg-primary { background: #059669 !important; color: #fff; }
body.app-body .badge.bg-dark    { background: var(--hs-dark) !important; color: #fff; }
body.app-body .badge.bg-light   { background: #e2e8f0 !important; color: #334155; }

/* --- Tables (bordered koyu stiller) --- */

/* Maç detay tabloları (table-sm table-bordered): satır & sütun eşit kalın koyu */
body.app-body .table-sm.table-bordered > :not(caption) > * > * {
    border-width: 2px;
    border-color: #334155;
}

/* Maç listesi tabloları (table-striped table-bordered): sütun ince, satır kalın */
body.app-body .table-striped.table-bordered > :not(caption) > * > * {
    border-width: 1px;
    border-color: #475569;
}
body.app-body .table-striped.table-bordered > tbody > tr {
    border-bottom: 2.5px solid #334155;
}
body.app-body .table-striped.table-bordered > tbody > tr:last-child {
    border-bottom: none;
}
body.app-body .table-striped.table-bordered {
    border-color: #334155;
}

/* Genel bordered tablo dış çerçeve koyu */
body.app-body .table-bordered {
    border-color: #334155;
}

/* Sadece iç border, dış kenar yok */
body.app-body .table-inner-only {
    border: none;
}
body.app-body .table-inner-only > :not(caption) > tr:first-child > * {
    border-top: none;
}
body.app-body .table-inner-only > :not(caption) > tr:last-child > * {
    border-bottom: none;
}
body.app-body .table-inner-only > :not(caption) > * > *:first-child {
    border-left: none;
}
body.app-body .table-inner-only > :not(caption) > * > *:last-child {
    border-right: none;
}

/* --- Forms --- */
body.app-body .form-control,
body.app-body .form-select {
    border: 1px solid var(--hs-border-accent);
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 0.84rem;
    color: var(--hs-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.app-body .form-select,
body.app-body select.form-control {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23059669' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    padding-right: 36px !important;
}

body.app-body .form-control:focus,
body.app-body .form-select:focus {
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}

body.app-body .form-control-sm,
body.app-body .form-select-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 7px;
}

body.app-body .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hs-text);
    margin-bottom: 4px;
}

body.app-body .form-text {
    font-size: 0.73rem;
    color: var(--hs-text-muted);
}

/* --- Modals (Unified Standard) --- */
body.app-body .modal-content {
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius);
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
    overflow: hidden;
}

body.app-body .modal-header {
    background: var(--hs-dark);
    border-bottom: none;
    padding: 16px 22px;
}

body.app-body .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.6;
}

body.app-body .modal-header .btn-close:hover { opacity: 1; }

body.app-body .modal-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

body.app-body .modal-body {
    padding: 22px;
    background: var(--hs-bg);
}

body.app-body .modal-body .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hs-text);
    margin-bottom: 4px;
}

body.app-body .modal-body .form-control,
body.app-body .modal-body .form-select {
    background-color: var(--hs-surface);
    border: 1px solid var(--hs-border-accent);
    border-radius: 8px;
    font-size: 0.84rem;
    padding: 9px 14px;
    color: var(--hs-text);
}

body.app-body .modal-body .form-control:focus,
body.app-body .modal-body .form-select:focus {
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
    background-color: var(--hs-surface);
}

body.app-body .modal-body .form-control-sm,
body.app-body .modal-body .form-select-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
}

body.app-body .modal-body .input-group-text {
    background: var(--hs-surface);
    border-color: var(--hs-border-accent);
    color: var(--hs-text-muted);
    font-size: 0.82rem;
}

body.app-body .modal-body .alert {
    border-radius: var(--hs-radius-sm);
    font-size: 0.82rem;
}

body.app-body .modal-body .btn-group .btn-check + .btn {
    border-color: var(--hs-border-accent);
    font-size: 0.8rem;
    font-weight: 600;
}

body.app-body .modal-body .text-muted,
body.app-body .modal-body p {
    font-size: 0.84rem;
    color: var(--hs-text-muted);
}

body.app-body .modal-footer {
    background: var(--hs-bg);
    border-top: 1px solid var(--hs-border);
    padding: 14px 22px;
}

body.app-body .modal-footer .btn {
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 18px;
}

/* --- Toast --- */
body.app-body .toast {
    background: var(--hs-dark) !important;
    border: none;
    border-radius: var(--hs-radius-sm);
    box-shadow: var(--hs-shadow-lg);
}

/* --- Accordion / Collapse --- */
body.app-body .accordion-item {
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius-sm) !important;
    overflow: hidden;
    margin-bottom: 8px;
}

body.app-body .accordion-button {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--hs-text);
}

body.app-body .accordion-button:not(.collapsed) {
    background: var(--hs-primary-light);
    color: var(--hs-primary-dark);
}

/* =============================================================
   PAGE HEADER
   ============================================================= */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4 {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--hs-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.page-header h4 i { color: var(--hs-text-muted); font-size: 1.1rem; }

/* =============================================================
   FILTER BAR
   ============================================================= */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 16px;
}

/* =============================================================
   DASHBOARD COMPONENTS (from previous dashboard.css)
   ============================================================= */

/* ===== Dashboard Container ===== */
.dash-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px 48px;
}

/* ===== Welcome / Hero Banner ===== */
.dash-welcome {
    background: linear-gradient(135deg, var(--hs-dark) 0%, #1a3a4a 50%, var(--hs-primary-dark) 100%);
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius);
    padding: 32px 36px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.dash-welcome::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.dash-welcome::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -80px;
    width: 160px;
    height: 160px;
    background: rgba(5,150,105,0.15);
    border-radius: 50%;
    pointer-events: none;
}

.dash-welcome h2 {
    font-weight: 800;
    font-size: 1.65rem;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.dash-welcome h2 i { opacity: 0.7; margin-right: 6px; }

.dash-welcome p {
    opacity: 0.75;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    max-width: 600px;
}

/* ===== Stat Cards Grid ===== */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--hs-surface);
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius);
    padding: 22px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--hs-transition);
    box-shadow: var(--hs-shadow);
}

.stat-card:hover {
    box-shadow: var(--hs-shadow-lg);
    transform: translateY(-3px);
}

.stat-card .stat-info h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--hs-text);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card .stat-info p {
    font-size: 0.72rem;
    color: var(--hs-text-muted);
    margin: 5px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 2px solid currentColor;
}

.stat-icon.green  { background: #ecfdf5; color: #059669; }
.stat-icon.blue   { background: #eff6ff; color: #2563eb; }
.stat-icon.amber  { background: #fffbeb; color: #d97706; }
.stat-icon.red    { background: #fef2f2; color: #dc2626; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; }
.stat-icon.teal   { background: #f0fdfa; color: #0d9488; }

/* ===== Quick Actions Grid ===== */
.dash-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.dash-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.action-tile {
    background: var(--hs-surface);
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius-sm);
    padding: 18px 14px;
    text-align: center;
    text-decoration: none !important;
    color: var(--hs-text);
    transition: var(--hs-transition);
    box-shadow: var(--hs-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-tile:hover {
    box-shadow: var(--hs-shadow-lg);
    transform: translateY(-3px);
    color: var(--hs-primary);
    border-color: var(--hs-primary);
}

.action-tile .action-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--hs-transition);
    border: 2px solid currentColor;
}

.action-tile:hover .action-icon { transform: scale(1.08); }

.action-tile .action-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== Dashboard Cards ===== */
.dash-card {
    background: var(--hs-surface);
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.dash-card-header {
    padding: 16px 22px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--hs-dark);
}

.dash-card-header h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card-header h3 i {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.dash-card-header .badge {
    font-size: 0.72rem;
}

/* Card header standard button / link */
.header-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.header-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.38);
    color: #fff;
}
.header-btn.primary {
    background: var(--hs-primary);
    border-color: var(--hs-primary);
}
.header-btn.primary:hover {
    background: var(--hs-primary-dark, #1d4ed8);
    border-color: var(--hs-primary-dark, #1d4ed8);
}
.header-btn.danger {
    border-color: rgba(239,68,68,0.5);
    color: #fca5a5;
}
.header-btn.danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.7);
    color: #fca5a5;
}

.dash-card-body {
    padding: 22px;
}

/* ===== Profile Card ===== */
.profile-section {
    text-align: center;
    padding: 8px 0 16px;
}

.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hs-text);
    margin-bottom: 2px;
}

.profile-username {
    font-size: 0.82rem;
    color: var(--hs-text-muted);
    margin-bottom: 0;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--hs-border);
    font-size: 0.84rem;
}

.profile-info-item i {
    color: var(--hs-text-muted);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.profile-info-item span { color: var(--hs-text); }

/* ===== Dash Tables ===== */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--hs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--hs-border);
    text-align: left;
    background: #f8fafc;
}

.dash-table tbody td {
    padding: 13px 18px;
    font-size: 0.84rem;
    color: var(--hs-text);
    border-bottom: 1px solid var(--hs-border);
}

.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr { transition: background 0.15s; }
.dash-table tbody tr:hover { background: #f8fafc; }

/* ===== Achievement / List Items ===== */
.achievement-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hs-border);
}

.achievement-item:last-child { border-bottom: none; }

.achievement-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

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

.achievement-info strong {
    font-size: 0.84rem;
    color: var(--hs-text);
    display: block;
    font-weight: 600;
}

.achievement-info small {
    color: var(--hs-text-muted);
    font-size: 0.75rem;
}

/* ===== Match Item ===== */
.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hs-border);
    transition: background 0.15s;
}

.match-item:last-child { border-bottom: none; }
.match-item:hover { background: #f8fafc; }

.match-teams {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--hs-text);
}

.match-score {
    display: inline-block;
    background: var(--hs-dark);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin: 0 6px;
    letter-spacing: 0.5px;
}

.match-score.pending {
    background: var(--hs-border);
    color: var(--hs-text-muted);
}

.match-date {
    font-size: 0.75rem;
    color: var(--hs-text-muted);
    margin-top: 2px;
}

/* ===== W/D/L Progress Bar ===== */
.wdl-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--hs-border);
}

.wdl-bar .wdl-w { background: #059669; transition: width 0.6s ease; }
.wdl-bar .wdl-d { background: #94a3b8; transition: width 0.6s ease; }
.wdl-bar .wdl-l { background: #ef4444; transition: width 0.6s ease; }

.wdl-legend {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--hs-text-muted);
    align-items: center;
}

.wdl-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

/* ===== Dashboard Badges ===== */
.dash-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.dash-badge.success { background: #ecfdf5; color: #059669; }
.dash-badge.warning { background: #fffbeb; color: #d97706; }
.dash-badge.danger  { background: #fef2f2; color: #dc2626; }
.dash-badge.info    { background: #eff6ff; color: #2563eb; }
.dash-badge.dark    { background: #f1f5f9; color: #334155; }

/* ===== Subscription Banner ===== */
.subscription-banner {
    border: 1px solid var(--hs-border-accent);
    border-radius: var(--hs-radius);
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.subscription-banner.active   { background: linear-gradient(135deg, #059669, #047857); color: white; }
.subscription-banner.expiring { background: linear-gradient(135deg, #d97706, #b45309); color: white; }
.subscription-banner.expired  { background: linear-gradient(135deg, #dc2626, #b91c1c); color: white; }

.subscription-banner .sub-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.subscription-banner .sub-detail { font-size: 0.8rem; opacity: 0.9; }
.subscription-banner .sub-note { font-size: 0.73rem; opacity: 0.8; text-align: right; }

/* ===== Colored Card Headers ===== */
.dash-card-header.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.dash-card-header.warning {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
}

/* ===== Action Buttons ===== */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--hs-transition);
}

.dash-btn.success { background: #059669; color: white; }
.dash-btn.success:hover { background: #047857; color: white; }
.dash-btn.danger  { background: #dc2626; color: white; }
.dash-btn.danger:hover  { background: #b91c1c; color: white; }

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--hs-text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.85rem;
    margin: 0;
}

/* ===== Notification Count Badge ===== */
.notif-badge {
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* =============================================================
   SCHEDULE / SPECIAL PAGE OVERRIDES
   ============================================================= */
body.app-body .schedule-btn {
    border-radius: 8px !important;
    font-weight: 600;
}

body.app-body .table-bordered.text-center {
    font-size: 0.8rem;
}

/* Color legend badges for schedule */
.color-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.color-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--hs-text-muted);
    padding: 5px 12px;
    background: var(--hs-surface);
    border: 1px solid var(--hs-border-accent);
    border-radius: 20px;
}

.color-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =============================================================
   SLOT CHIPS — Compact Timeslot Display
   ============================================================= */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.slot-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
    user-select: none;
    text-align: center;
}

.slot-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.slot-chip.active {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.slot-chip.inactive {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.slot-chip.inactive .slot-time {
    text-decoration: line-through;
}

.slot-chip.selected {
    border-color: var(--hs-primary) !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.18);
    transform: translateY(-1px);
}

.slot-chip .slot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.slot-chip.active .slot-dot { background: #fff; }
.slot-chip.inactive .slot-dot { background: rgba(255,255,255,0.7); }

.slot-actions {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--hs-dark);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.82rem;
    animation: slotActionsIn 0.15s ease;
}

.slot-actions.show { display: flex; }

.slot-actions .slot-actions-label {
    font-weight: 600;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-actions .btn { font-size: 0.78rem; }

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

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 991px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .app-page, .dash-container { padding: 16px 14px 40px; }
    .dash-welcome { padding: 24px 20px; }
    .dash-welcome h2 { font-size: 1.3rem; }
    .dash-actions { grid-template-columns: repeat(2, 1fr); }
    .subscription-banner { flex-direction: column; text-align: center; }
    .page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .dash-stats { grid-template-columns: 1fr; }
    .dash-actions { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 16px; }
    .stat-card .stat-info h3 { font-size: 1.5rem; }
    .wdl-legend { flex-wrap: wrap; gap: 8px; }
    .app-tabbar .nav-link { font-size: 0.72rem; padding: 6px 10px; }
}

/* ─── Pagination ─── */
body.app-body .pagination {
    gap: 4px;
}
body.app-body .pagination .page-link {
    background: var(--hs-dark-soft);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
body.app-body .pagination .page-link:hover {
    background: var(--hs-primary);
    border-color: var(--hs-primary);
    color: #fff;
}
body.app-body .pagination .page-item.active .page-link {
    background: var(--hs-primary);
    border-color: var(--hs-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5,150,105,0.4);
}
body.app-body .pagination .page-item.disabled .page-link {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.05);
}

/* ─── Nav Tabs (dark theme) ─── */
body.app-body .nav-tabs {
    border-bottom-color: rgba(255,255,255,0.1);
}
body.app-body .nav-tabs .nav-link {
    color: rgba(255,255,255,0.55);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    transition: all 0.2s;
}
body.app-body .nav-tabs .nav-link:hover {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.2);
    background: transparent;
}
body.app-body .nav-tabs .nav-link.active {
    color: var(--hs-primary) !important;
    background: transparent;
    border-color: transparent;
    border-bottom: 2px solid var(--hs-primary);
}

/* ─── Teams Tab Bar ─── */
.teams-tab-bar {
    display: flex;
    gap: 6px;
    padding: 10px 22px;
    background: var(--hs-dark-soft);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
}
.teams-tab {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    color: rgba(255,255,255,0.55);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.teams-tab:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
}
.teams-tab.active {
    color: #fff;
    background: var(--hs-primary);
    border-color: var(--hs-primary);
}
