/* ============================================
   MYSTRAL - Poudlard RP
   Site Statique - CSS
   ============================================ */

/* Variables */
:root {
    --bg-dark: rgb(13, 16, 22);
    --bg-slate: rgb(37, 50, 72);
    --primary: #a5b4fc;
    --primary-glow: #6366f1;
    --gold: #fbbf24;
    --gold-muted: #92400e;
    --glass: rgba(13, 16, 22, 0.7);
    --glass-border: rgba(165, 180, 252, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: radial-gradient(circle at 50% 0%, var(--bg-slate) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

textarea {
    font-family: 'Manrope', sans-serif;
    resize: vertical;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.text-glow {
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

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

.mb-4 {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 900px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 16, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.nav-logo i {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link i {
    width: 16px;
    height: 16px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    max-width: 200px;
}

.user-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-dropdown-btn > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.user-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.user-dropdown-menu.show + .user-dropdown-btn i {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-item i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary-glow);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    background: #818cf8;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.8);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-outline.gold {
    color: var(--gold);
    border-color: rgba(251, 191, 36, 0.5);
}

.btn-outline.gold:hover {
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
}

.btn-gold {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-sm i {
    width: 14px;
    height: 14px;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.2s, background 0.2s;
}

.btn-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon.danger:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

/* Steam Button */
.steam-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: #171a21;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.steam-btn:hover {
    background: #2a475e;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 16, 22, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-icon i {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.3);
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Server IP Card */
.server-ip-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.server-ip-card i {
    color: var(--primary);
}

.server-ip-card code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.125rem;
    color: white;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-value.gold { color: var(--gold); }
.stat-value.green { color: var(--success); }
.stat-value.purple { color: #a855f7; }

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.footer-logo i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.footer-tagline {
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

.footer-content > p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Page Content */
.page-content {
    padding: 6rem 0 2rem;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.page-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.page-icon.gold {
    background: rgba(251, 191, 36, 0.2);
}

.page-icon.gold i {
    color: var(--gold);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

.page-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 i {
    color: var(--gold);
    width: 20px;
    height: 20px;
}

/* Filters */
.filters-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filters-header i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.filters-header h2 {
    font-size: 1.125rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
}

.filter-group {
    position: relative;
}

.search-group {
    position: relative;
}

.search-group i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.search-group input {
    padding-left: 2.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
}

select option {
    background: var(--bg-dark);
}

/* Table */
.table-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
}

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

.staff-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.staff-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

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

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

/* Member Cell */
.member-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    color: white;
    font-weight: 500;
}

/* Badges */
.grade-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.grade-badge.founder {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
}

.grade-badge.super-admin {
    background: linear-gradient(45deg, #a855f7, #9333ea);
    color: white;
}

.grade-badge.admin {
    background: linear-gradient(45deg, #6366f1, #4f46e5);
    color: white;
}

.grade-badge.moderator {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.away {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Access Denied */
.access-denied {
    text-align: center;
    padding: 4rem 2rem;
}

.access-denied i {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.access-denied h2 {
    margin-bottom: 1rem;
}

.access-denied p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: white;
}

.back-link i {
    width: 16px;
    height: 16px;
}

/* Profile Card */
.profile-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    color: white;
    border: 4px solid rgba(99, 102, 241, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-item i {
    width: 16px;
    height: 16px;
}

.meta-item span {
    color: var(--text-secondary);
}

/* Tabs */
.tabs-container {
    margin-top: 2rem;
}

.tabs-header {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    background: var(--primary-glow);
    color: white;
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

/* Timeline */
.timeline {
    padding-left: 1.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--primary-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1.25rem;
    width: 2px;
    height: calc(100% - 0.75rem);
    background: rgba(99, 102, 241, 0.3);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.timeline-content {
    color: white;
}

.timeline-content .arrow {
    color: var(--success);
}

.timeline-reason {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Previous Grades */
.previous-grades {
    margin-bottom: 2rem;
}

.previous-grades h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.grades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.grade-tag {
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Empty Message */
.empty-message {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Success Box */
.success-box {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.success-icon i {
    width: 32px;
    height: 32px;
    color: var(--success);
}

.success-box h4 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

.success-box p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Warning Box */
.warning-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.warning-box i {
    color: var(--warning);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.warning-box strong {
    color: #fcd34d;
    display: block;
    margin-bottom: 0.25rem;
}

.warning-box p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Warning Item */
.warning-item {
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.warning-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.warning-date {
    color: var(--warning);
    font-size: 0.875rem;
}

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

.warning-reason {
    color: var(--text-secondary);
}

/* Performance Note */
.performance-note {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.performance-date {
    color: var(--primary);
    font-size: 0.875rem;
}

.performance-stars {
    display: flex;
    gap: 0.25rem;
}

.performance-stars i {
    width: 16px;
    height: 16px;
}

.performance-stars i.filled {
    color: var(--gold);
    fill: var(--gold);
}

.performance-stars i.empty {
    color: var(--text-muted);
}

/* Rules */
.legend-card {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-item i {
    width: 16px;
    height: 16px;
}

.text-red { color: var(--error); }
.text-orange { color: var(--warning); }
.text-blue { color: var(--info); }

.rules-accordion {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary);
}

.accordion-title {
    flex: 1;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: white;
}

.accordion-icon {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.accordion-icon i {
    width: 20px;
    height: 20px;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
}

.accordion-item.open .accordion-content {
    display: block;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-item.critical {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
}

.rule-item.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
}

.rule-item.info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--info);
}

.rule-item i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.rule-number {
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.rule-text {
    color: var(--text-secondary);
}

.rules-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* User Profile */
.user-profile-content {
    text-align: center;
}

.user-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    border: 4px solid rgba(99, 102, 241, 0.3);
    margin: 0 auto 1rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.admin-badge i {
    width: 16px;
    height: 16px;
}

.user-info-grid {
    text-align: left;
    margin-bottom: 2rem;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.info-row {
    display: flex;
    gap: 0.5rem;
}

.info-row input {
    flex: 1;
}

.custom-name-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: left;
}

.custom-name-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.custom-name-section p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Admin */
.admin-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
    min-width: fit-content;
}

.admin-tab:hover {
    color: white;
}

.admin-tab.active {
    background: var(--primary-glow);
    color: white;
}

.admin-tab i {
    width: 16px;
    height: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-item-details h4 {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.admin-item-details p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions {
    margin-bottom: 2rem;
    text-align: right;
}

.add-admin-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.add-admin-form p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
}

.form-row input {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-lg {
    max-width: 600px;
}

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

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

/* Rule Input */
.rule-input-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.rule-input-item input {
    flex: 1;
}

.rule-input-item select {
    width: 120px;
}

/* Events */
.events-section {
    margin-bottom: 3rem;
}

.events-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.events-section h2 i {
    width: 24px;
    height: 24px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.event-card.past {
    opacity: 0.6;
}

.event-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--bg-slate), var(--bg-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.5;
}

.event-content {
    padding: 1.5rem;
}

.event-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.event-type.tournament {
    background: rgba(251, 191, 36, 0.2);
    color: var(--gold);
}

.event-type.roleplay {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.event-type.meeting {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.event-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.event-date i {
    width: 16px;
    height: 16px;
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    z-index: 300;
    display: none;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .table-card {
        overflow-x: auto;
    }
    
    .staff-table {
        min-width: 700px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .legend-card {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tabs-header {
        flex-direction: column;
    }
}