* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #7CBD3B 0%, #5F9B2D 100%);
    --primary-color: #7CBD3B;
    --primary-dark: #5F9B2D;
    --secondary-color: #8B7355;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --card-bg: #ffffff;
    --sidebar-width: 280px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #7CBD3B 0%, #5F9B2D 50%, #8B7355 100%);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid var(--bg-secondary);
    text-align: center;
}

.sidebar-header svg {
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-emoji {
    font-size: 1.25rem;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--bg-secondary);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sidebar-footer p {
    margin-bottom: 0.25rem;
}

.sidebar-auth {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-secondary);
}

.sidebar-auth .btn {
    width: 100%;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-username {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-settings {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-settings:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-settings:hover svg {
    stroke: white;
}

/* Profile Modal */
.modal-profile {
    max-width: 550px;
    width: 90%;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.profile-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    color: var(--text-primary);
}

/* Main Container */
.main-container {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
}

/* Pages */
.page {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section (Home Page) */
.hero-section {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--primary-gradient);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.action-card p {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.action-card .btn {
    background: white;
    color: var(--primary-color);
}

.action-card .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-secondary);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-content {
    padding: 1.25rem;
}

/* Status Badge */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Player List */
.player-count {
    padding: 0.375rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.player-list {
    max-height: 200px;
    overflow-y: auto;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.player-item:last-child {
    border-bottom: none;
}

.player-item:hover {
    background: var(--bg-secondary);
}

.player-avatar {
    width: 32px;
    height: 32px;
    background: var(--border-color);
    border-radius: 0.375rem;
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.no-players {
    text-align: center;
    padding: 2rem 1rem;
}

.no-players p {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-players small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Stats */
.stat-big {
    text-align: center;
    padding: 1rem 0;
}

.stat-number-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label-big {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.mini-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.mini-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.mini-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Recent Uploads */
.recent-uploads-card {
    grid-column: span 2;
}

.recent-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.recent-upload-item {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.recent-upload-item:hover {
    transform: scale(1.05);
}

.recent-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 0.5rem;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
}

.loading-mini {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

.spinner-small {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 0.375rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.lang-btn {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background: white;
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
}

/* Instructions Section */
.instructions-container {
    max-width: 900px;
    margin: 0 auto;
}

.instructions-container h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.instruction-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    transition: transform 0.2s ease;
}

.instruction-step:hover {
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.step-content li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

.step-content code {
    background: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.rules-section {
    margin-top: 3rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rules-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid;
}

.rules-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.rules-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-card li {
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.rules-card li:last-child {
    border-bottom: none;
}

.rules-allowed {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--success-color);
}

.rules-allowed h3 {
    color: var(--success-color);
}

.rules-forbidden {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--error-color);
}

.rules-forbidden h3 {
    color: var(--error-color);
}

.limits-section {
    margin-top: 3rem;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.limit-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 2px solid var(--border-color);
}

.limit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.limit-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.limit-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.best-practices {
    margin-top: 3rem;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.practice-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
}

.practice-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.practice-card strong {
    color: var(--text-primary);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: -2px;
}

.tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab svg {
    width: 18px;
    height: 18px;
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease;
}

/* Upload Section */
.upload-section {
    min-height: 300px;
}

.upload-mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mode-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.upload-method {
    animation: fadeIn 0.3s ease;
}

.url-upload-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 2px dashed var(--border-color);
}

.url-upload-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.url-upload-box .form-group {
    margin-bottom: 0;
}

.url-upload-box .private-checkbox {
    margin-bottom: 1.5rem;
}

.url-upload-box .btn {
    width: 100%;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(124, 189, 59, 0.05);
    transform: translateY(-2px);
}

.drop-zone.drag-over {
    border-style: solid;
    background: rgba(124, 189, 59, 0.1);
}

.upload-icon {
    margin-bottom: 1rem;
}

.drop-zone h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.file-types {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.private-checkbox {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(124, 189, 59, 0.05);
    border-radius: 0.5rem;
    border: 2px solid rgba(124, 189, 59, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    margin: 0;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 0.375rem;
    border: 2px solid var(--border-color);
    background: white;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Preview Section */
.preview-section {
    text-align: center;
}

.preview-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-card img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.preview-info {
    margin-bottom: 1rem;
}

.filename {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.filesize {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Gallery Section */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gallery-info {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--border-color);
}

.gallery-item-info {
    padding: 1rem;
}

.gallery-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

.gallery-item-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.gallery-item-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-loading {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.gallery-loading p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.gallery-empty {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.gallery-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-empty p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-copy {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.btn-copy:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Loading */
.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-section {
    text-align: center;
    padding: 2rem;
}

.loading-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
}

/* Success/Error Sections */
.success-section, .error-section {
    text-align: center;
    padding: 1rem 0;
}

.success-icon, .error-icon {
    margin-bottom: 1rem;
}

.success-section h2 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.error-section h2, .error-section h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.url-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.url-display input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    outline: none;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--error-color);
}

/* Whitelisted Players Display */
.whitelisted-players-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.whitelisted-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
}

.whitelisted-player-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whitelisted-player-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.whitelisted-player-avatar {
    width: 64px;
    height: 64px;
    background: var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.whitelisted-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whitelisted-player-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: center;
}

/* Whitelist Section */
.whitelist-section {
    max-width: 500px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 189, 59, 0.1);
}

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
}

.whitelist-loading {
    text-align: center;
    padding: 2rem;
}

.whitelist-success, .whitelist-error {
    text-align: center;
    padding: 1rem 0;
}

.whitelist-success h3 {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.whitelist-error h3 {
    color: var(--error-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.whitelist-success .success-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--success-color);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-minecraft-link {
    max-width: 600px;
    width: 90%;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.discord-linked-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.discord-linked-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.discord-linked-info strong {
    color: var(--text-primary);
}

.modal-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.modal-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fee;
    color: var(--error-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.verification-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(124, 195, 59, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
}

.timer-icon {
    font-size: 1.25rem;
}

#modalTimerText {
    font-size: 1.125rem;
    color: var(--primary-color);
    min-width: 3rem;
    text-align: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 800px;
    max-width: 90vw;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

#modalImage {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: var(--bg-secondary);
}

.modal-info {
    padding: 1.5rem;
    background: white;
    border-top: 2px solid var(--border-color);
}

.modal-filename {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.modal-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-container {
        margin-left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .main-container {
        padding: 1rem;
    }

    .page {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        flex-shrink: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .url-display {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }
}

/* ============================================
   MAP PAGE STYLES
   ============================================ */

.map-fullscreen-container {
    height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.map-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0;
}

.map-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--warning-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--warning-color);
    animation: fadeIn 0.3s ease;
}

.map-tip span:first-child {
    font-size: 1.25rem;
}

.map-tip.hidden {
    display: none;
}

.map-iframe-wrapper {
    position: relative;
    flex: 1;
    background: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-loading,
.map-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    gap: 1rem;
    z-index: 10;
}

.map-loading p,
.map-error p {
    color: var(--text-secondary);
    margin: 0;
}

.map-error .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-error h3 {
    color: var(--error-color);
    margin: 0 0 0.5rem 0;
}

/* Fullscreen styles */
.map-iframe-wrapper:fullscreen {
    border-radius: 0;
}

.map-iframe-wrapper:fullscreen .map-loading,
.map-iframe-wrapper:fullscreen .map-error {
    background: #1a1a1a;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .map-fullscreen-container {
        height: calc(100vh - 4rem);
    }
    
    .map-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .map-header h1 {
        font-size: 1.5rem;
    }
    
    .map-header > div {
        width: 100%;
        flex-direction: column;
    }
    
    .map-tip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ============================================
   CHAT PAGE STYLES
   ============================================ */

/* Chat Login View */
.chat-login-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.chat-login-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.chat-login-container > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
}

.minecraft-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.minecraft-logo svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-card h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.login-card > p,
.login-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.login-card .form-group {
    margin-bottom: 1.5rem;
}

.login-card input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.login-card input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.verification-code-display {
    text-align: center;
    margin: 2rem 0;
}

.verification-code-display p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.code-display {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    letter-spacing: 0.5rem;
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: 3px dashed var(--primary-color);
    display: inline-block;
}

.verification-instructions {
    text-align: left;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.verification-instructions h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.verification-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
}

.verification-instructions li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.code-copy-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    border: 2px solid var(--border-color);
}

.verification-instructions code {
    flex: 1;
    background: transparent;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
}

.code-copy-container .btn-icon {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.375rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-copy-container .btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.code-copy-container .btn-icon:hover svg {
    stroke: white;
}

.verification-instructions strong {
    color: var(--text-primary);
    font-weight: 600;
}

.verification-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(124, 195, 59, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.auth-error {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fee;
    color: var(--error-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.auth-loading {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Chat View */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4rem);
    max-height: 800px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.chat-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-loading,
.chat-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: slideIn 0.2s ease;
}

.chat-message.system {
    justify-content: center;
    opacity: 0.7;
}

.chat-message.system .message-content {
    background: transparent;
    padding: 0.5rem 1rem;
    text-align: center;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.system-icon {
    font-size: 1.5rem;
}

.message-content {
    flex: 1;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.chat-message.self .message-content {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-dark);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.message-username {
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-message.self .message-username {
    color: white;
}

.message-badge {
    background: rgba(124, 195, 59, 0.2);
    color: var(--primary-dark);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-message.self .message-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.message-time {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.6;
}

.message-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
}

.chat-input-container input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input-container button {
    padding: 0.875rem 1.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive - Chat */
@media (max-width: 768px) {
    .chat-container {
        max-height: calc(100vh - 6rem);
    }
    
    .chat-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .login-steps {
        font-size: 0.875rem;
    }
    
    .code-input-container {
        flex-direction: column;
    }
}

/* ============================================
   DISCORD WHITELIST STYLES
   ============================================ */

.whitelist-option {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.option-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.badge-recommended {
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.whitelist-option > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.option-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.btn-discord {
    width: 100%;
    padding: 1rem 2rem;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.discord-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.discord-username {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.discord-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.discord-role-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.status-indicator {
    font-size: 0.75rem;
}

.status-indicator.status-success {
    color: var(--success-color);
}

.status-indicator.status-error {
    color: var(--error-color);
}

.divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
}

.discord-whitelist-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.discord-join-section {
    margin-top: 2rem;
}

.join-discord-card {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.join-discord-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.join-discord-card > p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.btn-discord-join {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #5865F2;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-discord-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.join-info-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.join-info-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.join-info-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* How to Join Page */
.join-steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.join-step-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.step-badge {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.join-step-card h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.join-step-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.step-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-buttons .btn {
    flex: 1;
    min-width: 200px;
}

.step-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.verification-demo {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.demo-step {
    padding: 0.75rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-step strong {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.demo-step code {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.join-complete {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
}

.join-complete h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.join-complete p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.join-complete .btn {
    background: white;
    color: var(--primary-color);
}