/* =============================================================================
   TPDF Golf Club Management System — Design System
   Fonts: DM Sans (UI) + Outfit (Display)
   Brand: Forest Green #0B3D2E / #1A5C40 · Gold #C4A35A
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@400;500;600;700;800&display=swap');

/* -------------------------------------------------------------------------- */
/* CSS Variables — Light Theme (default)                                      */
/* -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
    --font-sans: 'DM Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;

    --brand-primary: #0B3D2E;
    --brand-primary-light: #1A5C40;
    --brand-primary-dark: #062820;
    --brand-accent: #C4A35A;
    --brand-accent-light: #D4B86E;
    --brand-accent-dark: #A68842;

    --color-bg: #EEF2F0;
    --color-bg-elevated: #FFFFFF;
    --color-bg-subtle: #E4EBE7;
    --color-surface: #FFFFFF;
    --color-surface-hover: #F3F7F5;
    --color-border: rgba(11, 61, 46, 0.10);
    --color-border-strong: rgba(11, 61, 46, 0.20);

    --color-text: #122820;
    --color-text-secondary: #3F5A50;
    --color-text-muted: #6F877C;
    --color-text-inverse: #FFFFFF;

    --sidebar-bg: linear-gradient(185deg, #0C4534 0%, #0B3D2E 42%, #062820 100%);
    --sidebar-text: rgba(255, 255, 255, 0.88);
    --sidebar-text-muted: rgba(255, 255, 255, 0.48);
    --sidebar-hover: rgba(255, 255, 255, 0.07);
    --sidebar-active: rgba(196, 163, 90, 0.22);
    --sidebar-active-border: var(--brand-accent);
    --sidebar-width: 212px;
    --sidebar-collapsed-width: 64px;

    --topbar-height: 56px;
    --topbar-bg: rgba(255, 255, 255, 0.88);
    --topbar-border: rgba(11, 61, 46, 0.07);

    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-blur: 18px;

    --shadow-xs: 0 1px 2px rgba(11, 61, 46, 0.04);
    --shadow-sm: 0 2px 10px rgba(11, 61, 46, 0.05);
    --shadow-md: 0 6px 24px rgba(11, 61, 46, 0.07);
    --shadow-lg: 0 12px 40px rgba(11, 61, 46, 0.10);
    --shadow-xl: 0 20px 60px rgba(11, 61, 46, 0.14);
    --shadow-glow: 0 0 20px rgba(196, 163, 90, 0.22);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --success: #2D8A5E;
    --warning: #D4A017;
    --danger: #C0392B;
    --info: #2E86AB;

    --stat-blue: #1A5C40;
    --stat-green: #2D8A5E;
    --stat-gold: #C4A35A;
    --stat-teal: #1E6B5C;
    --stat-amber: #B8860B;
    --stat-red: #A94442;
    --stat-indigo: #0B3D2E;
    --stat-purple: #3D5A4C;
}

/* -------------------------------------------------------------------------- */
/* CSS Variables — Dark Theme                                                 */
/* -------------------------------------------------------------------------- */
[data-theme="dark"] {
    --color-bg: #0A1410;
    --color-bg-elevated: #111F1A;
    --color-bg-subtle: #162620;
    --color-surface: #142019;
    --color-surface-hover: #1A2A24;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.14);

    --color-text: #E8F0EC;
    --color-text-secondary: #A8BDB4;
    --color-text-muted: #6B857A;
    --color-text-inverse: #0A1410;

    --sidebar-bg: linear-gradient(180deg, #062820 0%, #041810 100%);
    --sidebar-text: rgba(255, 255, 255, 0.88);
    --sidebar-text-muted: rgba(255, 255, 255, 0.5);
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: rgba(196, 163, 90, 0.15);

    --topbar-bg: rgba(10, 20, 16, 0.88);
    --topbar-border: rgba(255, 255, 255, 0.06);

    --glass-bg: rgba(20, 32, 25, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(196, 163, 90, 0.15);
}

/* -------------------------------------------------------------------------- */
/* Reset & Base                                                               */
/* -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 0% -10%, rgba(26, 92, 64, 0.07), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 163, 90, 0.06), transparent 45%),
        linear-gradient(180deg, var(--color-bg) 0%, #E8EFEC 100%);
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(26, 92, 64, 0.18), transparent 50%),
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(196, 163, 90, 0.08), transparent 45%);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-accent);
}

::selection {
    background: rgba(196, 163, 90, 0.35);
    color: var(--color-text);
}

/* -------------------------------------------------------------------------- */
/* App Shell Layout                                                           */
/* -------------------------------------------------------------------------- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-base);
}

.app-wrapper.sidebar-collapsed .app-main {
    margin-left: var(--sidebar-collapsed-width);
}

.app-content {
    flex: 1;
    padding: 1rem 1.25rem 1.25rem;
    animation: fadeInUp 0.45s ease-out;
}

.app-footer {
    padding: 0.65rem 1.25rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    background: var(--color-bg-elevated);
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                    */
/* -------------------------------------------------------------------------- */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width var(--transition-base), transform var(--transition-base);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.app-wrapper.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--brand-primary-dark);
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.sidebar-brand-text {
    overflow: hidden;
    transition: opacity var(--transition-base);
}

.sidebar-brand-text h1 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    white-space: nowrap;
}

.sidebar-brand-text span {
    font-size: 0.625rem;
    color: var(--sidebar-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-wrapper.sidebar-collapsed .sidebar-brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0.45rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
}

.sidebar-section-label {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--sidebar-text-muted);
    padding: 0.7rem 0.65rem 0.25rem;
    white-space: nowrap;
}

.app-wrapper.sidebar-collapsed .sidebar-section-label {
    text-align: center;
    padding: 0.65rem 0.2rem 0.2rem;
    font-size: 0;
}

.app-wrapper.sidebar-collapsed .sidebar-section-label::after {
    content: '•••';
    font-size: 0.5rem;
    letter-spacing: 0.15em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.65rem;
    margin-bottom: 1px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
    white-space: nowrap;
    position: relative;
}

.sidebar-link i {
    font-size: 1rem;
    width: 1.15rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: #fff;
    border-left-color: var(--sidebar-active-border);
    box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.12);
}

.sidebar-link.active i {
    color: var(--brand-accent-light);
    opacity: 1;
}

.sidebar-link-text {
    transition: opacity var(--transition-base);
}

.app-wrapper.sidebar-collapsed .sidebar-link-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.app-wrapper.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar-footer {
    padding: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-collapse-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--sidebar-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Topbar                                                                     */
/* -------------------------------------------------------------------------- */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    background: var(--topbar-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--topbar-border);
    box-shadow: var(--shadow-xs);
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.375rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
}

.topbar-toggle:hover {
    background: var(--color-surface-hover);
}

.topbar-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 0.5625rem 1rem 0.5625rem 2.625rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--brand-primary-light);
    box-shadow: 0 0 0 3px rgba(26, 92, 64, 0.15);
    background: var(--color-surface);
}

.topbar-search i {
    position: absolute;
    left: 0.9375rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
}

.topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.topbar-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border);
    color: var(--color-text);
}

.topbar-btn .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--color-bg-elevated);
}

.topbar-clock {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0 0.75rem;
    white-space: nowrap;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.625rem 0.375rem 0.375rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
    background: transparent;
    color: inherit;
}

.topbar-user:hover {
    background: var(--color-surface-hover);
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.topbar-user-info {
    text-align: left;
    line-height: 1.3;
}

.topbar-user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.topbar-user-role {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* Cards & Glass Panels                                                       */
/* -------------------------------------------------------------------------- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.125rem 1.375rem;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-header h5,
.card-header .card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.card-body {
    padding: 1.375rem;
}

.card-footer {
    padding: 0.875rem 1.375rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* Stat Widgets                                                               */
/* -------------------------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.375rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.stat-card.stat-primary::before { background: var(--stat-blue); }
.stat-card.stat-success::before { background: var(--stat-green); }
.stat-card.stat-gold::before { background: var(--stat-gold); }
.stat-card.stat-teal::before { background: var(--stat-teal); }
.stat-card.stat-warning::before { background: var(--stat-amber); }
.stat-card.stat-danger::before { background: var(--stat-red); }
.stat-card.stat-info::before { background: var(--stat-indigo); }
.stat-card.stat-purple::before { background: var(--stat-purple); }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card.animate-in {
    animation: fadeInUp 0.5s ease-out backwards;
}

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

.stat-primary .stat-icon { background: rgba(26, 92, 64, 0.12); color: var(--stat-blue); }
.stat-success .stat-icon { background: rgba(45, 138, 94, 0.12); color: var(--stat-green); }
.stat-gold .stat-icon { background: rgba(196, 163, 90, 0.15); color: var(--stat-gold); }
.stat-teal .stat-icon { background: rgba(30, 107, 92, 0.12); color: var(--stat-teal); }
.stat-warning .stat-icon { background: rgba(184, 134, 11, 0.12); color: var(--stat-amber); }
.stat-danger .stat-icon { background: rgba(169, 68, 66, 0.12); color: var(--stat-red); }
.stat-info .stat-icon { background: rgba(11, 61, 46, 0.12); color: var(--stat-indigo); }
.stat-purple .stat-icon { background: rgba(61, 90, 76, 0.12); color: var(--stat-purple); }

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.stat-value.count-up {
    animation: countUpPulse 0.6s ease-out;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* -------------------------------------------------------------------------- */
/* Tables                                                                     */
/* -------------------------------------------------------------------------- */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table {
    --bs-table-bg: transparent;
    color: var(--color-text);
    margin-bottom: 0;
}

.table thead th {
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
    padding: 0.875rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background: var(--color-surface-hover);
}

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

/* DataTables overrides */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    padding: 0.75rem 0;
}

.dataTables_wrapper .dataTables_filter input {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.75rem;
    color: var(--color-text);
}

.page-item .page-link {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.95rem;
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary-light) 0%, var(--brand-primary) 100%);
    border-color: var(--brand-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-color: var(--brand-primary-dark);
    box-shadow: 0 4px 14px rgba(11, 61, 46, 0.28);
    color: #fff;
}

.btn-brand {
    background: linear-gradient(135deg, #1F6B4A 0%, var(--brand-primary) 100%);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(11, 61, 46, 0.18);
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 61, 46, 0.28);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--brand-accent-light) 0%, var(--brand-accent) 100%);
    border: none;
    color: var(--brand-primary-dark);
    font-weight: 600;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: var(--brand-primary-dark);
    box-shadow: var(--shadow-glow);
}

.btn-outline-primary {
    color: var(--brand-primary-light);
    border-color: var(--brand-primary-light);
}

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

.btn-ghost {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}

.form-control,
.form-select {
    font-family: var(--font-sans);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    padding: 0.5625rem 0.875rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--color-surface);
    border-color: var(--brand-primary-light);
    box-shadow: 0 0 0 3px rgba(26, 92, 64, 0.12);
    color: var(--color-text);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.input-group-text {
    background: var(--color-bg-subtle);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

/* Select2 theme overrides */
.select2-container--default .select2-selection--single {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    height: 42px;
    padding: 0.375rem 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--color-text);
    line-height: 28px;
}

.select2-dropdown {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--brand-primary-light);
}

/* -------------------------------------------------------------------------- */
/* Badges & Tags                                                              */
/* -------------------------------------------------------------------------- */
.badge {
    font-weight: 500;
    font-size: 0.6875rem;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-sm);
}

.badge-soft-primary { background: rgba(26, 92, 64, 0.12); color: var(--brand-primary-light); }
.badge-soft-success { background: rgba(45, 138, 94, 0.12); color: var(--success); }
.badge-soft-warning { background: rgba(212, 160, 23, 0.12); color: var(--warning); }
.badge-soft-danger { background: rgba(192, 57, 43, 0.12); color: var(--danger); }
.badge-soft-gold { background: rgba(196, 163, 90, 0.15); color: var(--brand-accent-dark); }

/* -------------------------------------------------------------------------- */
/* Page Header                                                                */
/* -------------------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--color-text);
}

.page-header .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 0.8125rem;
}

.page-header .breadcrumb-item a {
    color: var(--color-text-muted);
}

.page-header .breadcrumb-item.active {
    color: var(--color-text-secondary);
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Activity Feed                                                              */
/* -------------------------------------------------------------------------- */
.activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--brand-primary-light);
    flex-shrink: 0;
}

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

.activity-text {
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 0.125rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* Quick Actions                                                              */
/* -------------------------------------------------------------------------- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 1.375rem;
    color: var(--brand-primary-light);
}

.quick-action-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn:hover i {
    color: var(--brand-accent);
}

/* -------------------------------------------------------------------------- */
/* Toast Area                                                                 */
/* -------------------------------------------------------------------------- */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 380px;
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: fadeInUp 0.35s ease-out;
    position: relative;
    overflow: hidden;
}

.app-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.app-toast.toast-success::before { background: var(--success); }
.app-toast.toast-error::before { background: var(--danger); }
.app-toast.toast-warning::before { background: var(--warning); }
.app-toast.toast-info::before { background: var(--info); }

.app-toast-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.app-toast.toast-success .app-toast-icon { color: var(--success); }
.app-toast.toast-error .app-toast-icon { color: var(--danger); }
.app-toast.toast-warning .app-toast-icon { color: var(--warning); }
.app-toast.toast-info .app-toast-icon { color: var(--info); }

.app-toast-body {
    flex: 1;
}

.app-toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.app-toast-message {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.app-toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.app-toast.hiding {
    animation: fadeOut 0.3s ease-out forwards;
}

/* -------------------------------------------------------------------------- */
/* Skeleton Loaders                                                           */
/* -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-subtle) 25%,
        var(--color-surface-hover) 50%,
        var(--color-bg-subtle) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 0.875rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.sm { width: 40%; }
.skeleton-text.md { width: 65%; }
.skeleton-text.lg { width: 90%; }

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-card {
    padding: 1.375rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.skeleton-stat {
    height: 80px;
    border-radius: var(--radius-lg);
}

.skeleton-chart {
    height: 280px;
    border-radius: var(--radius-md);
}

/* -------------------------------------------------------------------------- */
/* Auth Layout Styles — compact, no-scroll viewport                           */
/* -------------------------------------------------------------------------- */
body.auth-page {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.auth-wrapper {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #041C16;
    position: relative;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(4, 28, 22, 0.82) 0%, rgba(11, 61, 46, 0.78) 45%, rgba(6, 40, 32, 0.9) 100%),
        url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&w=1600&q=70') center/cover no-repeat;
    transform: scale(1.04);
    animation: authBgDrift 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes authBgDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 15% 85%, rgba(196, 163, 90, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 90% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.45s ease-out;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-logo-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-primary-dark);
    box-shadow: 0 8px 20px rgba(196, 163, 90, 0.28);
}

.auth-brand-text h1 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.auth-brand-text p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    margin: 0.15rem 0 0;
}

.auth-heading {
    margin-bottom: 0.85rem;
}

.auth-heading h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
}

.auth-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.8rem;
}

.auth-card {
    background: rgba(8, 36, 28, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 1.15rem 1.25rem 1.25rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.auth-card .form-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
}

.auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.2);
    color: #fff;
}

.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-card .form-check-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
}

.auth-card a {
    color: var(--brand-accent-light);
    text-decoration: none;
}

.auth-card a:hover {
    color: var(--brand-accent);
}

.auth-form .auth-field {
    margin-bottom: 0.7rem;
}

.auth-form .auth-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 0.3rem;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0 0.7rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.18);
}

.auth-input > i {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
}

.auth-input input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.62rem 0;
    outline: none;
}

.auth-input input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.auth-eye {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    padding: 0.2rem;
    line-height: 1;
    cursor: pointer;
}

.auth-eye:hover {
    color: var(--brand-accent-light);
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.15rem 0 0.85rem;
    font-size: 0.78rem;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    margin: 0;
}

.auth-remember input {
    width: 0.9rem;
    height: 0.9rem;
    margin: 0;
    accent-color: var(--brand-accent);
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(168, 134, 63, 0.28);
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--brand-accent-light);
}

@media (max-height: 640px) {
    .auth-card {
        padding: 0.9rem 1rem 1rem;
    }

    .auth-brand {
        margin-bottom: 0.7rem;
        padding-bottom: 0.65rem;
    }

    .auth-heading {
        margin-bottom: 0.6rem;
    }

    .auth-heading h2 {
        font-size: 1.05rem;
    }

    .auth-form .auth-field {
        margin-bottom: 0.55rem;
    }

    .auth-input input {
        padding: 0.5rem 0;
    }

    .auth-meta {
        margin-bottom: 0.65rem;
    }

    .auth-bg {
        animation: none;
    }
}

@media (max-width: 400px) {
    .auth-container {
        max-width: 100%;
    }

    .auth-brand-text h1 {
        font-size: 0.95rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Dropdown Menus                                                             */
/* -------------------------------------------------------------------------- */
.dropdown-menu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    color: var(--color-text);
}

.dropdown-item:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.dropdown-item i {
    width: 1.25rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.dropdown-divider {
    border-color: var(--color-border);
}

.notification-dropdown {
    width: 360px;
    max-height: 420px;
    overflow: hidden;
    padding: 0;
}

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

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--color-surface-hover);
}

.notification-item.unread {
    background: rgba(26, 92, 64, 0.04);
}

/* -------------------------------------------------------------------------- */
/* Chart Containers                                                           */
/* -------------------------------------------------------------------------- */
.chart-container {
    position: relative;
    min-height: 280px;
}

.chart-container.sm {
    min-height: 200px;
}

/* -------------------------------------------------------------------------- */
/* Page Transition                                                            */
/* -------------------------------------------------------------------------- */
.page-transition-enter {
    opacity: 0;
    transform: translateY(12px);
}

.page-transition-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* -------------------------------------------------------------------------- */
/* Animations                                                                 */
/* -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes countUpPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-delay-1 { animation-delay: 0.05s; }
.animate-delay-2 { animation-delay: 0.1s; }
.animate-delay-3 { animation-delay: 0.15s; }
.animate-delay-4 { animation-delay: 0.2s; }
.animate-delay-5 { animation-delay: 0.25s; }
.animate-delay-6 { animation-delay: 0.3s; }
.animate-delay-7 { animation-delay: 0.35s; }
.animate-delay-8 { animation-delay: 0.4s; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .topbar-clock {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

    .app-wrapper.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0 !important;
    }

    .topbar-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1035;
        backdrop-filter: blur(2px);
    }

    .app-wrapper.sidebar-open .sidebar-overlay {
        display: block;
    }

    .topbar-user-info {
        display: none;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .app-content {
        padding: 1rem;
    }

    .app-topbar {
        padding: 0 1rem;
    }

    .page-header {
        flex-direction: column;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .topbar-search {
        max-width: none;
    }

    #toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .topbar-search {
        display: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Utility Classes                                                            */
/* -------------------------------------------------------------------------- */
.text-brand { color: var(--brand-primary-light) !important; }
.text-accent { color: var(--brand-accent) !important; }
.text-muted-custom { color: var(--color-text-muted) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-accent { background-color: var(--brand-accent) !important; }
.border-brand { border-color: var(--brand-primary-light) !important; }

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

.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--color-text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 0.75rem;
    display: block;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.list-group-item {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.list-group-item-action:hover {
    background: var(--color-surface-hover);
}

/* -------------------------------------------------------------------------- */
/* Compact list pages (Members, Visitors, etc.)                               */
/* -------------------------------------------------------------------------- */
.page-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.list-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    min-width: 0;
}

.list-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--color-text);
}

.list-count {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.list-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-toolbar-filters .form-select-sm {
    width: auto;
    min-width: 9.5rem;
    max-width: 12rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.8125rem;
}

.glass-card-flush {
    padding: 0;
    overflow: hidden;
}

.glass-card-flush .table-responsive {
    margin: 0;
}

.table-compact {
    font-size: 0.8125rem;
    --bs-table-bg: transparent;
}

.table-compact > :not(caption) > * > * {
    padding: 0.45rem 0.75rem;
    vertical-align: middle;
}

.table-compact thead th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom-width: 1px;
    background: var(--color-bg-subtle);
    white-space: nowrap;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.table-compact tbody tr:hover {
    background: var(--color-surface-hover);
}

.table-compact .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

.table-compact .btn-sm,
.table-compact .btn-ghost {
    padding: 0.15rem 0.4rem;
    font-size: 0.8125rem;
}

.col-sno {
    width: 48px !important;
    max-width: 52px;
    padding-left: 0.5rem !important;
    padding-right: 0.4rem !important;
    text-align: center !important;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.75rem;
}

.sno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.glass-card-flush {
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(11, 61, 46, 0.03);
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--color-border);
    font-size: 0.8125rem;
    background: var(--color-surface);
    color: var(--color-text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary-light);
    box-shadow: 0 0 0 3px rgba(26, 92, 64, 0.12);
}

/* DataTables compact chrome */
.page-compact .dataTables_wrapper {
    padding: 0;
}

.page-compact .dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.page-compact .dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.page-compact .dataTables_length,
.page-compact .dataTables_filter,
.page-compact .dataTables_info,
.page-compact .dataTables_paginate {
    margin: 0;
    padding: 0;
}

.page-compact .dataTables_filter input {
    margin-left: 0;
    min-width: 12rem;
    height: 32px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 0.25rem 0.625rem;
}

.page-compact .dataTables_length select {
    height: 32px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 0.15rem 1.5rem 0.15rem 0.5rem;
}

.page-compact .dataTables_info {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding-top: 0 !important;
}

.page-compact .dataTables_paginate .paginate_button {
    padding: 0.2rem 0.55rem !important;
    font-size: 0.8125rem !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 0.1rem !important;
}

.page-compact .dataTables_processing {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    font-size: 0.8125rem !important;
    padding: 0.5rem 1rem !important;
}

@media (max-width: 768px) {
    .list-toolbar-filters {
        width: 100%;
    }

    .list-toolbar-filters .form-select-sm {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .page-compact .dt-toolbar,
    .page-compact .dt-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .page-compact .dataTables_filter input {
        width: 100%;
        min-width: 0;
    }
}

/* -------------------------------------------------------------------------- */
/* Club branding / logo                                                       */
/* -------------------------------------------------------------------------- */
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}

.sidebar-brand-icon.has-logo,
.auth-logo-icon.has-logo {
    background: #fff !important;
    padding: 3px;
    box-shadow: var(--shadow-sm);
}

.auth-logo-icon.has-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    padding: 3px;
}

.logo-upload-panel {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}

.logo-upload-preview {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.logo-upload-preview-sig {
    width: 140px;
    height: 72px;
}

.logo-upload-meta {
    flex: 1;
    min-width: 200px;
}

.logo-upload-meta h6 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Passport-size member photo                                                 */
/* -------------------------------------------------------------------------- */
.passport-upload {
    position: sticky;
    top: calc(var(--topbar-height) + 0.75rem);
}

.passport-frame {
    width: 140px;
    height: 180px; /* ~35×45 mm ratio */
    margin: 0 auto;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border-strong);
    background:
        linear-gradient(45deg, transparent 49%, rgba(11,61,46,0.06) 50%, transparent 51%) center/12px 12px,
        var(--color-bg-subtle);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.passport-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.passport-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0.75rem;
}

.passport-placeholder i {
    font-size: 2rem;
    opacity: 0.55;
}

.passport-placeholder span {
    font-size: 0.75rem;
    font-weight: 600;
}

.passport-placeholder small {
    font-size: 0.65rem;
    opacity: 0.8;
}

.passport-hint {
    margin-top: 0.5rem;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    text-align: center;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.4rem;
    margin: 0.25rem 0 0;
}
