/* ============================================================================ */
/* CSS VARIABLES & RESET - EUROPEAN UNITY LEAGUE STYLE */
/* ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Inspired by European Unity League */
    --primary: #0a1b1f;           /* Deep dark teal background */
    --secondary: #1a2f35;         /* Slightly lighter dark teal */
    --accent: #243942;            /* Medium dark teal */
    --highlight: #2d4751;         /* Lighter teal accent */
    --dark: #050f12;              /* Almost black */
    --white: #ffffff;
    --light: #f0f2f4;
    --gray: #8b9bb3;
    --success: #4ade80;           /* Bright green like logo */
    --warning: #f59e0b;           /* Orange like logo */
    --error: #ef4444;             /* Red like logo */
    --info: #3b82f6;              /* Blue like logo */
    --purple: #8b5cf6;            /* Purple like logo */
    
    /* Gold gradients - replacing yellow */
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --gold-dark: #d97706;
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gradient-gold-shine: linear-gradient(135deg, #fef3c7 0%, #fbbf24 30%, #f59e0b 70%, #d97706 100%);
    
    /* Supporter colors */
    --platinum: #e5e4e2;
    --diamond: #b9f2ff;
    
    /* Main gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    
    /* Colorful gradients inspired by logo */
    --gradient-multicolor: linear-gradient(135deg, #4ade80 0%, #3b82f6 25%, #8b5cf6 50%, #ef4444 75%, #f59e0b 100%);
    --gradient-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Table colors - Adapted for dark theme */
    --table-header: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    --table-border: rgba(255,255,255,0.2);
    --table-row-even: rgba(255,255,255,0.02);
    --table-row-odd: rgba(255,255,255,0.05);
    --table-hover: rgba(255,255,255,0.1);
    --table-hover-highlight: rgba(251, 191, 36, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.6);
    --shadow-gold: 0 4px 20px rgba(251, 191, 36, 0.3);
    
    /* Border radius - More angular/sharp design */
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 8px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ============================================================================ */
/* BASE STYLES */
/* ============================================================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--white);
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* ============================================================================ */
/* BUTTONS */
/* ============================================================================ */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    font-size: 0.85rem;
    line-height: 1.2;
    min-height: 36px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold), 0 8px 30px rgba(251, 191, 36, 0.4);
    background: var(--gradient-gold-shine);
}

.btn-secondary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    overflow: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: inherit;
    z-index: 1;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================================ */
/* HEADER & NAVIGATION */
/* ============================================================================ */
.header {
    background: var(--gradient-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 52px;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-brand i {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover, 
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.user-menu {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--white);
    font-size: 0.85rem;
}

.user-greeting {
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}


.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================================================ */
/* HERO SECTION */
/* ============================================================================ */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ============================================================================ */
/* CARDS */
/* ============================================================================ */
.card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: var(--gradient-secondary);
    color: var(--white);
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header i {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-body {
    padding: 2rem;
}

/* ============================================================================ */
/* TABS */
/* ============================================================================ */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--gray);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tab-btn.active {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================================================ */
/* SEARCH AND FILTERS */
/* ============================================================================ */
.search-filters {
    display: grid;
    grid-template-columns: 2fr auto auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: end;
}

.search-box {
    position: relative;
}

.search-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    background: rgba(255,255,255,0.15);
}

.search-box i {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    z-index: 2;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    cursor: pointer;
    min-width: 140px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.filter-group select option {
    background: var(--secondary);
    color: var(--white);
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

.page-size-selector select {
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

/* ============================================================================ */
/* TABLES */
/* ============================================================================ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--table-border);
    background: rgba(255,255,255,0.05);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: transparent;
}

.data-table th {
    background: var(--table-header);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: var(--white);
    border-bottom: 2px solid var(--table-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(20px);
}

.data-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
    color: var(--white);
    font-size: 0.85rem;
}

.data-table tbody tr {
    transition: var(--transition);
    background: transparent;
    position: relative;
}

.data-table tbody tr:nth-child(even) {
    background: var(--table-row-even);
}

.data-table tbody tr:nth-child(odd) {
    background: var(--table-row-odd);
}

.data-table tbody tr:hover {
    background: var(--table-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.data-table tbody tr.clickable {
    cursor: pointer;
}

.data-table tbody tr.clickable:hover {
    background: var(--table-hover-highlight) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.2);
}

/* ============================================================================ */
/* SUPPORTER SYSTEM */
/* ============================================================================ */
.data-table tbody tr.supporter-premium {
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15) 0%, 
        rgba(255, 237, 74, 0.08) 50%, 
        rgba(217, 119, 6, 0.15) 100%) !important;
    border-left: 4px solid var(--gold) !important;
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3) !important;
}

.data-table tbody tr.supporter-premium.platinum {
    background: linear-gradient(135deg, 
        rgba(229, 228, 226, 0.15) 0%, 
        rgba(192, 192, 192, 0.08) 50%, 
        rgba(229, 228, 226, 0.15) 100%) !important;
    border-left: 4px solid var(--platinum) !important;
    box-shadow: inset 0 0 0 1px rgba(229, 228, 226, 0.4) !important;
}

.data-table tbody tr.supporter-premium.diamond {
    background: linear-gradient(135deg, 
        rgba(185, 242, 255, 0.15) 0%, 
        rgba(135, 206, 235, 0.08) 50%, 
        rgba(185, 242, 255, 0.15) 100%) !important;
    border-left: 4px solid var(--diamond) !important;
    box-shadow: inset 0 0 0 1px rgba(185, 242, 255, 0.5) !important;
}

.supporter-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 0.4rem 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-left-radius: var(--radius);
    z-index: 5;
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.supporter-ribbon:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.supporter-ribbon.platinum {
    background: linear-gradient(135deg, var(--platinum), #c0c0c0);
    color: #333;
    box-shadow: 0 2px 8px rgba(229, 228, 226, 0.4);
}

.supporter-ribbon.diamond {
    background: linear-gradient(135deg, var(--diamond), #87ceeb);
    color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(185, 242, 255, 0.5);
}

/* ============================================================================ */
/* USER AND ORG INFO IN TABLES */
/* ============================================================================ */
.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.user-avatar-sm.supporter {
    background: var(--gradient-gold) !important;
    color: var(--dark) !important;
    border: 3px solid var(--gold-light);
    animation: supporterGlow 3s ease-in-out infinite;
}

.user-avatar-sm.supporter::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
    background-size: 400% 400%;
    animation: borderRotate 4s ease infinite;
    z-index: -1;
}

.user-avatar-sm.supporter.platinum {
    background: linear-gradient(135deg, var(--platinum), #c0c0c0) !important;
    color: #333 !important;
    box-shadow: 0 0 15px rgba(229, 228, 226, 0.5);
}

.user-avatar-sm.supporter.platinum::before {
    background: linear-gradient(45deg, var(--platinum), #c0c0c0, var(--platinum), #a0a0a0);
    background-size: 400% 400%;
}

.user-avatar-sm.supporter.diamond {
    background: linear-gradient(135deg, var(--diamond), #87ceeb) !important;
    color: #1e3a8a !important;
    box-shadow: 0 0 15px rgba(185, 242, 255, 0.6);
}

.user-avatar-sm.supporter.diamond::before {
    background: linear-gradient(45deg, var(--diamond), #87ceeb, var(--diamond), #b9f2ff);
    background-size: 400% 400%;
}

@keyframes supporterGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.7); }
}

@keyframes borderRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.user-info {
    display: flex;
    align-items: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.user-name.supporter {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
}

.user-name.supporter.platinum {
    background: linear-gradient(135deg, var(--platinum), #c0c0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(229, 228, 226, 0.5));
}

.user-name.supporter.diamond {
    background: linear-gradient(135deg, var(--diamond), #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(185, 242, 255, 0.5));
}

.user-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

.user-meta.supporter-text {
    color: var(--gold-dark) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
}

.user-meta.supporter-text.platinum {
    color: #666 !important;
}

.user-meta.supporter-text.diamond {
    color: #1e40af !important;
}

.org-logo-sm {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--white);
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.org-info {
    display: flex;
    align-items: center;
}

.org-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.org-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.org-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ============================================================================ */
/* ROLE BADGES */
/* ============================================================================ */
.role-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.role-player {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: #60a5fa;
    backdrop-filter: blur(10px);
}

.role-organizer {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-color: #a78bfa;
    backdrop-filter: blur(10px);
}

/* ============================================================================ */
/* STATS DISPLAY */
/* ============================================================================ */
.stats-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

.stats-display i {
    color: var(--gold);
    width: 16px;
    font-size: 0.8rem;
}

/* ============================================================================ */
/* TABLE ACTIONS */
/* ============================================================================ */
.table-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions .btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-height: auto;
}

/* ============================================================================ */
/* PAGINATION */
/* ============================================================================ */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid var(--table-border);
    backdrop-filter: blur(20px);
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gradient-gold);
    color: var(--dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.05);
    color: var(--gray);
}

.pagination-btn.active {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}

/* ============================================================================ */
/* MODALS */
/* ============================================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 27, 31, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--gradient-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close, .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.modal-close:hover, .close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User modal specific */
.user-modal-header {
    position: relative;
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
}

.supporter-modal-tag {
    position: absolute;
    top: 1.5rem;
    right: 4rem;
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 100;
}

.user-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
}

.user-modal-avatar.supporter {
    background: var(--gradient-gold) !important;
    color: var(--dark) !important;
    box-shadow: var(--shadow-gold), 0 0 30px rgba(251, 191, 36, 0.6);
}

.user-modal-avatar.supporter::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, rgba(251, 191, 36, 0.2) 40%, transparent 70%);
    z-index: -1;
    animation: haloBreathing 3s ease-in-out infinite;
}

@keyframes haloBreathing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

.user-modal-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.user-modal-info p {
    color: var(--gray);
    font-size: 1rem;
}

/* Supporter banners in modal */
.supporter-banner {
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15), 
        rgba(255, 237, 74, 0.1));
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.supporter-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(251, 191, 36, 0.2), 
        transparent);
    animation: bannerShimmer 3s infinite;
}

@keyframes bannerShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.supporter-banner.platinum {
    background: linear-gradient(135deg, 
        rgba(229, 228, 226, 0.15), 
        rgba(192, 192, 192, 0.1));
    border-color: var(--platinum);
}

.supporter-banner.diamond {
    background: linear-gradient(135deg, 
        rgba(185, 242, 255, 0.15), 
        rgba(135, 206, 235, 0.1));
    border-color: var(--diamond);
}

.ko-fi-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    background: #FF5E5B !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    cursor: pointer !important;
    z-index: 10;
    position: relative;
}

.ko-fi-link:hover {
    background: #e54b47 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 94, 91, 0.3);
    color: white !important;
}

/* ============================================================================ */
/* FORMS */
/* ============================================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: var(--gray);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    background: rgba(255,255,255,0.15);
}

.form-group select option {
    background: var(--secondary);
    color: var(--white);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    accent-color: var(--gold);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.form-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--gold-light);
}

/* Form Validation */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.req-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    background: var(--error);
    color: white;
    flex-shrink: 0;
}

.requirement.valid {
    color: var(--success);
}

.requirement.valid .req-icon {
    background: var(--success);
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    min-height: 20px;
}

.validation-message.success {
    color: var(--success);
}

.validation-message.error {
    color: var(--error);
}

.form-group input.valid {
    border-color: var(--success);
}

.form-group input.invalid {
    border-color: var(--error);
}

/* ============================================================================ */
/* NO RESULTS STATE */
/* ============================================================================ */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.5;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* ============================================================================ */
/* NOTIFICATIONS */
/* ============================================================================ */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    z-index: 10001;
    max-width: 350px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success { 
    background: var(--gradient-green); 
}
.notification.error { 
    background: var(--gradient-red); 
}
.notification.warning { 
    background: var(--gradient-gold); 
    color: var(--dark); 
}
.notification.info { 
    background: var(--gradient-blue); 
}

/* ============================================================================ */
/* FOOTER */
/* ============================================================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 2rem 0 1.5rem;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    font-size: 0.8rem;
    opacity: 0.7;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================================ */
/* RESPONSIVE DESIGN */
/* ============================================================================ */

/* Tablet */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "brand auth burger";
        gap: 0.75rem;
        align-items: center;
        padding: 0;
    }
    
    .nav-brand {
        grid-area: brand;
    }
    
    .nav-auth {
        grid-area: auth;
        justify-self: end;
        gap: 0.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        grid-area: burger;
        justify-self: end;
    }
    
    .nav-menu {
        grid-area: menu;
        grid-column: 1 / -1;
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--gradient-dark);
        padding: 1.5rem;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 1rem;
        border-radius: var(--radius);
        backdrop-filter: blur(20px);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        border-radius: var(--radius);
        margin: 0.25rem 0;
    }

    .user-menu {
        gap: 0.5rem;
    }

    .user-greeting {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        min-width: 36px;
        text-align: center;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        min-height: 36px;
        font-size: 0.8rem;
    }

    .btn-text {
        display: none;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .search-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }

    .table-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .user-avatar-sm,
    .org-logo-sm {
        width: 36px;
        height: 36px;
        margin-right: 0.75rem;
    }

    .user-name,
    .org-name {
        font-size: 0.9rem;
    }

    .user-meta,
    .org-meta {
        font-size: 0.75rem;
    }

    .supporter-ribbon {
        font-size: 0.6rem;
        padding: 0.3rem 0.75rem;
    }
    
    .data-table tbody tr.supporter-premium {
        border-left-width: 3px !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .navbar {
        min-height: 44px;
        gap: 0.5rem;
    }

    .nav-brand span {
        font-size: 1.1rem;
    }

    .nav-auth {
        gap: 0.25rem;
    }

    .btn {
        padding: 0.4rem 0.6rem;
        min-height: 32px;
        min-width: 32px;
    }

    .user-greeting {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-width: 32px;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 350px;
    }

    .stat-item {
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.3px;
    }

    .container {
        padding: 1rem;
    }

    .card-body,
    .card-header {
        padding: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .table-container {
        font-size: 0.75rem;
    }

    .hide-mobile {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .user-avatar-sm,
    .org-logo-sm {
        width: 32px;
        height: 32px;
        margin-right: 0.5rem;
    }

    .user-name,
    .org-name {
        font-size: 0.85rem;
    }

    .user-meta,
    .org-meta {
        font-size: 0.7rem;
    }

    .stats-display {
        font-size: 0.8rem;
    }

    .role-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .user-modal-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .user-modal-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .user-modal-info h3 {
        font-size: 1.3rem;
    }

    .supporter-modal-tag {
        position: absolute;
        top: 1rem;
        right: 3rem;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .btn.loading::after {
        width: 1rem;
        height: 1rem;
        border-width: 1.5px;
    }
    
    .btn {
        min-height: 32px;
        font-size: 0.75rem;
    }
    
    .navbar {
        grid-template-columns: auto 1fr 32px;
        gap: 0.4rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .user-modal-header {
        padding: 1rem;
    }

    .supporter-modal-tag {
        top: 0.75rem;
        right: 2.5rem;
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================================================ */
/* CUSTOM SCROLLBAR */
/* ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-gold-shine);
}

/* ============================================================================ */
/* ADDITIONAL ANIMATIONS */
/* ============================================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}