/* Flyff Dungeon Bot - Modern Admin Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --bg-input: #0f0f15;

    --accent-primary: #6366f1;
    --accent-primary-dim: rgba(99, 102, 241, 0.15);
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1a1a2e 0%, #0a0a0f 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stars-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 160px 120px, rgba(255,255,255,1), transparent),
        radial-gradient(1px 1px at 180px 50px, rgba(255,255,255,0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starsMove 120s linear infinite, twinkle 4s ease-in-out infinite;
}

.stars-layer:nth-child(2) {
    background-image:
        radial-gradient(1px 1px at 25px 45px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 75px 100px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 125px 25px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 175px 140px, rgba(255,255,255,0.6), transparent);
    background-size: 250px 250px;
    animation: starsMove 180s linear infinite reverse, twinkle 5s ease-in-out infinite;
    animation-delay: -2s;
    opacity: 0.7;
}

.stars-layer:nth-child(3) {
    background-image:
        radial-gradient(2px 2px at 60px 80px, rgba(100,200,255,0.6), transparent),
        radial-gradient(1px 1px at 140px 30px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 30px 150px, rgba(150,180,255,0.7), transparent);
    background-size: 300px 300px;
    animation: starsMove 240s linear infinite, twinkle 6s ease-in-out infinite;
    animation-delay: -4s;
    opacity: 0.5;
}

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

@keyframes starsMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-50%, -50%); }
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.9)) drop-shadow(0 0 35px rgba(0, 212, 255, 0.5));
    }
}

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 4rem;
}

.login-container {
    text-align: left;
    max-width: 360px;
    animation: fadeIn 0.6s ease;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
        gap: 2rem;
    }
    .login-container {
        text-align: center;
    }
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    animation: float 6s ease-in-out infinite;
}

/* Bot Character with Glow Animation */
.bot-character {
    position: relative;
    width: 320px;
    flex-shrink: 0;
}

.bot-character img {
    width: 100%;
    height: auto;
    display: block;
}

/* Cyan glow overlay - only the blue elements */
.bot-character::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/bot-char-glow.png') no-repeat center;
    background-size: contain;
    filter: blur(6px) brightness(2);
    animation: cyanPulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* Second glow layer for more intensity */
.bot-character::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/bot-char-glow.png') no-repeat center;
    background-size: contain;
    filter: blur(15px) brightness(2.5);
    animation: cyanPulse 2s ease-in-out infinite;
    animation-delay: 0.1s;
    pointer-events: none;
}

@keyframes cyanPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #5865F2;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #6974f5;
    color: #fff;
}

.login-btn svg {
    width: 22px;
    height: 22px;
}

/* App Layout */
.app-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.app-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 450;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--accent-primary);
    background: var(--accent-primary-dim);
    border-left-color: var(--accent-primary);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.logout-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.logout-btn:hover {
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    animation: fadeIn 0.4s ease;
}

/* Top Header Bar */
.top-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.2s;
}

.user-pill:hover {
    border-color: var(--border-hover);
}

.user-pill .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-pill .user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.user-pill .logout-pill {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.user-pill .logout-pill:hover {
    color: #fff;
    background: var(--accent-danger);
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-icon.servers { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.stat-icon.events { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stat-icon.banned { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.stat-icon.participants { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-icon.database { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s;
    animation: fadeIn 0.4s ease;
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.card-icon-letter {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
}

.card-stats {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.card-stat {
    flex: 1;
    text-align: center;
}

.card-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.card-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

/* Event Card Specific */
.event-type {
    color: var(--accent-secondary);
    font-weight: 600;
}

.event-meta {
    margin-bottom: 1rem;
}

.event-datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.event-created {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.role-slots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.role-slot {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: 20px;
    font-size: 0.8rem;
    border-left: 2px solid transparent;
}

.role-slot.tank { border-left-color: #6366f1; }
.role-slot.rm { border-left-color: #10b981; }
.role-slot.aoe { border-left-color: #ef4444; }
.role-slot.dd { border-left-color: #f59e0b; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

.badge-main {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.card-main {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary-dim);
}

.card-banned {
    border-color: var(--accent-danger);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-secondary);
}

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

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-danger {
    background: transparent;
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--accent-danger);
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.search-bar svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-bar input:focus {
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 440px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.1rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Input */
.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.15s;
}

.input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-dim);
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.input option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

textarea.input {
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

/* Custom Select */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.custom-select-trigger:hover {
    border-color: var(--border-hover);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-dim);
}

.custom-select-trigger::after {
    content: '';
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: transform 0.2s;
}

.custom-select.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-select-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.custom-select-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.custom-select-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.custom-select-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-select-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.custom-select-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.custom-select-option:hover {
    background: var(--bg-tertiary);
}

.custom-select-option.selected {
    background: var(--accent-primary-dim);
}

.custom-select-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* User Search */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.search-result:hover {
    background: var(--bg-tertiary);
}

.search-result.is-admin {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-result.is-admin:hover {
    background: transparent;
}

.search-result-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.search-result-display {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.search-result-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.search-result-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Selected User Display */
.selected-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--accent-primary-dim);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
}

.selected-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.selected-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.selected-user-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.selected-user-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.selected-user-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Error Page */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.error-title {
    font-size: 1.25rem;
    color: var(--accent-danger);
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 360px;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.success { border-left: 3px solid var(--accent-success); }
.toast.error { border-left: 3px solid var(--accent-danger); }
.toast.info { border-left: 3px solid var(--accent-primary); }

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

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-container { padding: 1.5rem; }
    .app-wrapper { gap: 1.5rem; }
    .sidebar { width: 200px; }
}

@media (max-width: 768px) {
    .app-container { padding: 1rem; }
    .app-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    .nav-item {
        padding: 8px 12px;
        border-left: none;
        border-radius: var(--radius-sm);
    }
    .nav-item.active {
        border-left: none;
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    html { font-size: 14px; }
    .user-pill .user-name { display: none; }
}

/* ========================================
   Public Pages Navigation & Content
   ======================================== */

/* Public Navigation */
.public-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.public-nav::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.public-nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.public-nav.scrolled::after {
    opacity: 1;
}

.public-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.public-nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.public-nav-logo:hover {
    color: var(--text-primary);
}

.public-nav-links {
    display: flex;
    gap: 0.25rem;
    position: relative;
}

/* Sliding indicator */
.nav-indicator {
    position: absolute;
    height: 100%;
    background: var(--accent-primary-dim);
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.public-nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 450;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}

.public-nav-link:hover {
    color: var(--text-primary);
}

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

.public-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.public-nav-toggle svg {
    width: 24px;
    height: 24px;
}

.public-nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin: 0 1rem;
}

.public-nav-mobile.active {
    display: flex;
}

.public-nav-mobile .public-nav-link {
    padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
    .public-nav-links {
        display: none;
    }

    .public-nav-toggle {
        display: block;
    }

    .public-nav-container {
        padding: 0.75rem 1rem;
    }
}

/* Public Page Layout */
.public-page {
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
}

/* Fade overlay under navigation */


.public-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.public-content-narrow {
    max-width: 700px;
}

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

.public-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.public-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-section h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-secondary);
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Code Block */
.code-block {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    overflow-x: auto;
    margin: 1rem 0;
}

.content-section code {
    background: var(--bg-input);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent-primary);
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--accent-primary-dim);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.info-box svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Warning variant */
.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.info-box.warning svg {
    color: var(--accent-warning);
}

.info-box.highlight {
    flex-direction: column;
    gap: 0.75rem;
}

.info-box.highlight svg {
    width: 24px;
    height: 24px;
}

.info-box.highlight strong {
    color: var(--text-primary);
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.permission-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary-dim);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.permission-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.permission-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.permission-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Steps List */
.steps-list {
    list-style: none;
    padding: 0;
}

.steps-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.steps-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
}

.steps-list li a {
    color: var(--accent-primary);
}

/* Steps Numbered */
.steps-numbered {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.25rem;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Button Large */
.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
}

/* Command Grid */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.command-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.2s;
}

.command-card:hover {
    border-color: var(--border-hover);
}

.command-header {
    margin-bottom: 0.75rem;
}

.command-header code {
    font-size: 0.95rem;
    font-weight: 500;
}

.command-card > p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.command-params {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.command-params .param {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.command-params .param strong {
    color: var(--text-secondary);
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.role-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
}

.role-card.role-tank { border-left-color: #6366f1; }
.role-card.role-rm { border-left-color: #10b981; }
.role-card.role-aoe { border-left-color: #ef4444; }
.role-card.role-dd { border-left-color: #f59e0b; }

.role-icon {
    font-size: 1.5rem;
}

.role-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.role-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.feature-list li svg {
    width: 18px;
    height: 18px;
    color: var(--accent-success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    font-weight: 500;
    color: var(--text-primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 0.75rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.faq-answer li {
    margin: 0.25rem 0;
}

.faq-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Contact Page - Hero Style */
.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
}

.contact-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

.contact-hero-content {
    text-align: center;
    max-width: 500px;
}

.contact-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

.contact-icon-large svg {
    width: 40px;
    height: 40px;
    color: white;
}

.contact-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-dm-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem 1rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 60px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.contact-dm-card:hover {
    border-color: #5865F2;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
}

.contact-dm-card:hover .contact-dm-action {
    background: #5865F2;
    color: white;
}

.contact-dm-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.contact-dm-action svg {
    width: 20px;
    height: 20px;
}

.contact-dm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-dm-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-dm-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-dm-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-dm-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 3rem;
}

.contact-topics {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-topic {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.contact-topic:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.contact-topic svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(88, 101, 242, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.3);
    }
}

@media (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 2rem;
    }

    .contact-topics {
        gap: 0.75rem;
    }

    .contact-topic {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Legal Pages */
.legal-page .content-section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-page h3 {
    font-size: 0.95rem;
}

.legal-info {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.legal-info p {
    margin: 0.25rem 0;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.data-list li {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.data-list li strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.data-list li span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Public Footer */
.public-footer {
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.public-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.public-footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.15s;
}

.public-footer-links a:hover {
    color: var(--text-primary);
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Login page wrapper for flex layout */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

.login-page-wrapper .login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 4rem;
}

.login-page-wrapper .public-footer {
    padding: 2rem;
    text-align: center;
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Adjustments for Public Pages */
@media (max-width: 768px) {
    .public-page {
        padding-top: 70px;
    }

    .public-content {
        padding: 1.5rem 1rem;
    }

    .public-header h1 {
        font-size: 1.5rem;
    }

    .public-header p {
        font-size: 1rem;
    }

    .permissions-grid,
    .command-grid,
    .roles-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-methods {
        justify-content: center;
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-footer {
        padding: 1.5rem 1rem;
    }
}
