/* -- Navegacion del Panel -- */
.logout-btn-navbar i {
    font-size: 0.85rem;
}

.user-info-navbar {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    height: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    align-self: center !important;
}

.user-info-display {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.4rem 0.6rem !important;
    background: rgba(20, 20, 25, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    height: fit-content !important;
    max-height: 100% !important;
    max-width: min(240px, 30vw) !important;
}

.user-info-display:hover {
    background: rgba(25, 25, 30, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.user-avatar-navbar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid var(--hazy-red, #A81E1E) !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}

.user-info-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.1rem !important;
    min-width: 0 !important;
    flex: 1 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    line-height: 1.2 !important;
}

.user-id-navbar {
    display: inline-block !important;
    font-size: 0.65rem !important;
    color: var(--hazy-text-secondary) !important;
    font-family: 'Courier New', monospace !important;
    line-height: 1 !important;
    opacity: 0.7 !important;
    font-weight: 500 !important;
    margin-right: 0.4rem !important;
}

.user-name-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: auto !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    gap: 0 !important;
    max-width: 100% !important;
}

.user-name-navbar {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--hazy-text-primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.user-rank-navbar {
    font-size: 0.65rem !important;
    color: var(--hazy-text-secondary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
    line-height: 1 !important;
    opacity: 0.85 !important;
    font-weight: 400 !important;
}

.rank-icon-navbar {
    font-size: 0.75rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin-right: 0.15rem !important;
}

.logout-btn-navbar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.4rem 0.7rem !important;
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    border-radius: 6px !important;
    color: #ef4444 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    height: fit-content !important;
    line-height: 1.2 !important;
    min-width: fit-content !important;
    overflow: visible !important;
    align-self: center !important;
}

.logout-btn-navbar:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

.logout-btn-navbar:active {
    transform: translateY(0) !important;
}

.admin-main-content {
    flex: 1;
    padding: 0 1rem;
    padding-top: calc(var(--header-height, 60px) + 1rem);
    padding-bottom: 60px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem;
}

.admin-panel-card,
#adminPanel {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    background-color: rgba(24, 24, 27, 0.45) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(63, 63, 70, 0.4) !important;
    border-radius: 16px !important;
    color: #E4E4E7 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.admin-tabs-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    border-bottom: 1px solid var(--hazy-gray-medium) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
    flex-wrap: wrap !important;
}

.tab-btn {
    padding: 0.8rem 1.5rem !important;
    border-radius: var(--radius-sm) !important;
    background-color: transparent !important;
    border: 1px solid var(--hazy-gray-medium) !important;
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--hazy-white) !important;
    border-color: var(--hazy-gray-light) !important;
}

.tab-btn.active {
    background-color: rgba(220, 38, 38, 0.15) !important;
    color: var(--hazy-white) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2) !important;
}

.admin-tab-content {
    display: none !important;
}

.admin-tab-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block !important;
}

.sub-tabs-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--card-border, rgba(63, 63, 70, 0.4));
    margin-bottom: 1.5rem;
}

.sub-tabs-header .server-panel-toolbar {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sub-tabs-header .server-panel-toolbar > div:first-child {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.sub-tabs-header .server-panel-toolbar > div:first-child input {
    width: 100%;
    padding-right: 2.5rem;
    box-sizing: border-box;
    min-width: 0;
}

.sub-tabs-header .server-panel-toolbar select {
    min-width: 200px;
    max-width: 100%;
    box-sizing: border-box;
}

.sub-tabs-header .sub-tabs-buttons {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.sub-tab-btn {
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: 1px solid var(--card-border, rgba(63, 63, 70, 0.4)) !important;
    color: var(--hazy-text-secondary, #A1A1AA) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.sub-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--hazy-text-primary, #E4E4E7) !important;
    border-color: var(--accent-color, #DC2626) !important;
}

.sub-tab-btn.active {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-color, #DC2626) !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2) !important;
}

.server-panel-toolbar {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
    flex: 1;
}

.server-select-input {
    padding: 0.625rem 1rem;
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--hazy-gray-dark);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.server-select-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}

.selected-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius-sm);
    color: var(--hazy-white);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.analytics-stat-card {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.analytics-stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--hazy-text-secondary);
    margin-bottom: 0.5rem;
}

.analytics-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hazy-text-primary);
}

.analytics-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.analytics-chart-wrapper {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.analytics-chart-wrapper canvas {
    max-height: 300px;
}

#analytics-period-select {
    min-width: 150px;
}

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

.backup-card {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s;
}

.backup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    border-color: var(--accent-color);
}

.backup-info {
    flex: 1;
}

.backup-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--hazy-text-primary);
}

.backup-info small {
    color: var(--hazy-text-secondary);
}

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

.backup-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* Updates Styles */
.change-entry {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.change-entry-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.type-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--hazy-gray-dark);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.command-input,
.desc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--hazy-gray-dark);
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.command-input:focus,
.desc-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}

#updateStatus {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--hazy-text-primary);
}

/* Users Styles */
.users-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
}

.users-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}







.user-card-horizontal {
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.user-card-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.user-card-horizontal:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
    transform: translateY(-4px);
    background: rgba(18, 18, 18, 0.98);
}

.user-card-horizontal:hover::before {
    opacity: 1;
}

.user-card-header-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.user-card-avatar-wrapper-horizontal {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(220, 38, 38, 0.3);
    background: rgba(20, 20, 20, 0.8);
    position: relative;
}

.user-card-avatar-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-card-banned-overlay-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.user-card-info-horizontal {
    flex: 1;
    min-width: 0;
}

.user-card-name-horizontal {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hazy-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-rank-horizontal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hazy-text-primary);
}

.user-card-body-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.info-item-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item-label-horizontal {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hazy-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item-value-horizontal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-code-horizontal {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--hazy-text-primary);
    word-break: break-all;
    border: 1px solid rgba(220, 38, 38, 0.15);
    flex: 1;
    min-width: 0;
}

.user-card-horizontal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.user-card-horizontal-actions .btn-modern {
    flex: 1;
    min-width: 0;
}

.copy-btn-icon-horizontal {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--hazy-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn-icon-horizontal:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    color: var(--accent-color);
    transform: scale(1.1);
}

.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: 130px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-manage {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.btn-manage:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.7);
    color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-ban {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.15) 100%);
    border-color: rgba(220, 38, 38, 0.4);
    color: var(--accent-color);
}

.btn-ban:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(185, 28, 28, 0.25) 100%);
    border-color: rgba(220, 38, 38, 0.7);
    color: #f87171;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn-unban {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.btn-unban:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.6);
    color: #34d399;
    transform: translateY(-1px);
}

.user-card-avatar-wrapper-horizontal {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(220, 38, 38, 0.3);
    background: rgba(20, 20, 20, 0.8);
}

.user-card-avatar-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-card-banned-overlay-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.permission-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.permission-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bans Styles */
.bans-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.bans-container {
    min-height: 200px;
}

.ban-entry {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.ban-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    border-color: var(--accent-color);
}

.ban-info {
    margin-bottom: 1rem;
}

.ban-user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--hazy-text-primary);
}

.ban-id-display {
    color: var(--hazy-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ban-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ban-detail-item {
    font-size: 0.875rem;
}

.ban-detail-label {
    color: var(--hazy-text-secondary);
    margin-right: 0.5rem;
}

.ban-detail-value {
    color: var(--hazy-text-primary);
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.ban-filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Servers List Styles */
#servers-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.server-item,
.server-card {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.server-item:hover,
.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.25);
    border-color: var(--accent-color);
}

.server-item h3,
.server-card h3 {
    margin: 0;
    color: var(--hazy-text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    word-break: break-word;
}

.server-item p,
.server-card p {
    margin: 0;
    color: var(--hazy-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.server-item .btn,
.server-card .btn {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 200px;
}

/* General Styles */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--hazy-text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-item {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-title {
    margin: 0;
    color: var(--hazy-text-primary);
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--hazy-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(220, 38, 38, 0.2);
    color: var(--accent-color);
}

.modal-body {
    color: var(--hazy-text-primary);
}

.admin-form-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

#tab-user-configs .admin-form-body {
    max-width: 100%;
    padding: 0;
}

#change-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(220, 38, 38, 0.02) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

#change-container .form-group {
    background-color: var(--card-bg-alpha);
    backdrop-filter: var(--card-backdrop-blur);
    -webkit-backdrop-filter: var(--card-backdrop-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 0;
    transition: all var(--transition);
}

#change-container .form-group:hover {
    background-color: var(--card-bg-hover-alpha);
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.update-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.update-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hazy-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.update-section-header h2 i {
    color: var(--accent-color);
}

.server-select-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.server-select-wrapper label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hazy-white);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-select-wrapper label i {
    color: var(--accent-color);
}

.server-select-wrapper select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    color: var(--hazy-white);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.server-select-wrapper select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
}

.server-select-wrapper select optgroup {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hazy-white);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    padding: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.server-select-wrapper select optgroup[label*="Inactive"] {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.25) 0%, rgba(156, 163, 175, 0.15) 100%);
}

.server-select-wrapper select option {
    padding: 0.875rem 1rem;
    background-color: rgba(24, 24, 27, 0.95);
    color: var(--hazy-white);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.server-select-wrapper select option:hover {
    background-color: rgba(220, 38, 38, 0.2);
    border-left-color: var(--accent-color);
}

.server-select-wrapper select option:checked {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

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

.config-section {
    background-color: var(--card-bg-alpha);
    backdrop-filter: var(--card-backdrop-blur);
    -webkit-backdrop-filter: var(--card-backdrop-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.config-section:hover {
    background-color: var(--card-bg-hover-alpha);
    border-color: var(--card-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.config-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: rgba(24, 24, 27, 0.8);
    border-bottom: 1px solid var(--hazy-gray-medium);
    cursor: pointer;
    transition: background-color var(--transition), border-bottom-color var(--transition);
}

.config-section-header:hover {
    background-color: rgba(30, 30, 35, 0.9);
    border-bottom-color: var(--hazy-gray-light);
}

.config-section-header h3 {
    font-size: 1.2rem;
    color: var(--hazy-white);
    margin: 0;
}

.config-section-header .toggle-icon {
    font-size: 1em;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.config-section-header.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--hazy-white);
}

.config-section-content {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    max-height: 1000px;
    opacity: 1;
    flex-grow: 1;
}

.config-section-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    font-weight: 600;
    color: var(--hazy-text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--hazy-white);
    font-size: 1rem;
}

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--hazy-gray-dark);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.input[multiple] {
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
}

.input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}

textarea.input {
    resize: vertical;
}

/* Role and Channel Selector Styles */
.role-selector-container {
    margin-top: 0.5rem;
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--hazy-gray-dark);
    overflow: hidden;
}

.role-selector-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--hazy-gray-medium);
}

.role-selector-search i {
    color: var(--hazy-text-secondary);
    font-size: 0.875rem;
}

.role-selector-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    outline: none;
}

.role-selector-search-input::placeholder {
    color: var(--hazy-text-secondary);
}

.role-selector-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
}

.role-selector-loading {
    padding: 1rem;
    text-align: center;
    color: var(--hazy-text-secondary);
    font-size: 0.875rem;
}

.role-selector-empty {
    padding: 1rem;
    text-align: center;
    color: var(--hazy-text-secondary);
    font-size: 0.875rem;
}

.role-selector-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0.25rem;
}

.role-selector-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.role-selector-item.selected {
    background-color: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.role-selector-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--hazy-gray-medium);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.role-selector-item.selected .role-selector-checkbox {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.role-selector-item.selected .role-selector-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.role-selector-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.selected-items-container {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-sm);
}

.selected-items-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hazy-text-primary);
    margin-bottom: 0.5rem;
}

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

.selected-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.selected-item-remove {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.selected-item-remove:hover {
    opacity: 1;
}

/* Ticket Category Styles */
#ticket-categories-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px dashed var(--hazy-gray-medium);
}

.ticket-category-entry {
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ticket-category-entry:hover {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.ticket-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.ticket-category-drag-handle {
    cursor: grab;
    color: var(--hazy-text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.ticket-category-drag-handle:active {
    cursor: grabbing;
}

.ticket-category-drag-handle:hover {
    color: var(--hazy-text-primary);
}

.ticket-category-entry.dragging {
    opacity: 0.5;
    border-color: rgba(220, 38, 38, 0.6);
    transform: scale(0.98);
}

.ticket-category-placeholder {
    background-color: rgba(220, 38, 38, 0.1);
    border: 2px dashed rgba(220, 38, 38, 0.4);
    border-radius: var(--radius-lg);
    margin: 0.75rem 0;
    transition: all 0.2s;
}

.ticket-category-emoji-input {
    width: 70px !important;
    min-width: 70px;
    text-align: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ticket-category-name-input {
    flex: 1;
    min-width: 200px;
}

.ticket-category-remove-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius-sm);
    color: var(--hazy-red);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.ticket-category-remove-btn:hover {
    background-color: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.6);
}

.ticket-category-description {
    margin-bottom: 1rem;
}

.ticket-category-description-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--hazy-text-primary);
    font-size: 0.9rem;
}

.ticket-category-description-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--hazy-gray-dark);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ticket-category-description-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}


#ticket-categories-container:empty::before {
    content: 'No ticket categories configured. Categories will appear here when added.';
    color: var(--hazy-text-secondary);
    font-size: 0.875rem;
    text-align: center;
    padding: 3rem 2rem;
    display: block;
}

.ticket-category-entry > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.ticket-category-entry > div[style*="grid-template-columns"] > div {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
}

.ticket-category-entry > div[style*="grid-template-columns"] > div {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
}

.ticket-category-entry > div[style*="grid-template-columns"] > div > label.ticket-category-description-label {
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    height: 1.5rem;
}

.ticket-category-entry > div[style*="grid-template-columns"] > div > small {
    margin-bottom: 0.5rem;
    min-height: 1.275rem;
    display: block;
    line-height: 1.275rem;
    height: 1.275rem;
}

.ticket-category-entry > div[style*="grid-template-columns"] > div > .role-selector-container {
    margin-top: 0;
    flex: 1;
    min-height: 0;
}

.ticket-category-entry > div[style*="grid-template-columns"] > div > .selected-items-container {
    margin-top: 0.75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}



/* Content Container Styles */
#updates-content,
#users-content,
#bans-content,
#analytics-content,
#backups-content,
#user-configs-content {
    min-height: 200px;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#updates-content p,
#users-content p,
#bans-content p,
#analytics-content p,
#backups-content p,
#user-configs-content p {
    color: var(--hazy-text-secondary);
    text-align: center;
    padding: 2rem;
    margin: 0;
}

#shared-configs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

#browse-configs-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.config-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
}

.config-card:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
    transform: translateY(-4px);
    background: rgba(18, 18, 18, 0.98);
}

.config-card-image {
    width: 100%;
    padding-top: 56.25%;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(20, 20, 20, 0.8);
    position: relative;
    margin: 0;
}

.config-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

.config-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.config-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hazy-white);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.config-card-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--hazy-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.625rem;
}

.config-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.config-card-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.config-card-view-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.config-card-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

#browse-configs-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

#config-search-input {
    max-width: 500px;
    margin: 0 auto 2rem;
    display: block;
}

/* Config Field Input Styles */
.config-field-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hazy-gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--hazy-gray-dark);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.config-field-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}

/* Selected Item Badge Styles */
.selected-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 6px;
    color: var(--hazy-white);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem;
}

.status-text {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.error-message {
    color: var(--hazy-red);
    text-align: center;
    margin-top: 1rem;
}


.change-entry-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

#change-container input.command-input,
#change-container input.desc-input {
    margin-top: 0.5rem;
}

.ticket-preview-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hazy-gray-medium);
}

.live-category-preview {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--hazy-gray-medium);
    border-radius: var(--radius-md);
}

.category-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

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

.category-info {
    flex: 1;
}

.category-info code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: rgba(0,0,0,0.1);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.user-info:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.12) 100%);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.user-info:hover::before {
    opacity: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-info:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.user-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.user-info-username {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hazy-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-info-rank {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.user-rank-icon {
    font-size: 0.75rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.user-rank-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}






/* Additional Styles for Better Layout */
#servers-list-container {
    max-width: 1400px;
    margin: 0 auto;
}

.server-item,
.server-card {
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.server-item h3,
.server-card h3 {
    word-break: break-word;
    font-size: 1.15rem;
}

.server-item .btn,
.server-card .btn {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 200px;
}

#browse-configs-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

#config-search-input {
    max-width: 100%;
    width: 100%;
    margin: 0 0 1.5rem 0;
    display: block;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    box-sizing: border-box;
}

#user-configs-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

#user-configs-content > div:first-child {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

#user-configs-content > div:first-child .btn {
    min-width: 180px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
}

#user-configs-content > div:first-child .btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

#shared-configs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}







.config-card {
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.config-card:hover::before {
    opacity: 1;
}

.config-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.25);
    border-color: var(--accent-color);
}

.config-card h3 {
    margin: 0;
    color: var(--hazy-text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.config-card p {
    margin: 0;
    color: var(--hazy-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.ticket-category-entry > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-top: 1rem;
}



/* Server Entry Styles */
.servers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.server-list-item:hover {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(18, 18, 18, 0.98);
    transform: translateX(4px);
}

.server-entry,
.server-entry-enhanced {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.server-entry:hover,
.server-entry-enhanced:hover {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(18, 18, 18, 0.98);
    transform: translateX(4px);
}

.server-status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.server-status-indicator.active {
    background: #10b981;
    color: #10b981;
}

.server-status-indicator.inactive {
    background: #6b7280;
    color: #6b7280;
}

.server-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.server-name-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hazy-text-primary);
    margin: 0 0 0.5rem 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.server-status-active {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.server-status-inactive {
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.4);
    color: var(--hazy-text-secondary);
}

.guild-id-display {
    font-size: 0.875rem;
    color: var(--hazy-text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guild-id-display i {
    color: var(--accent-color);
}

.guild-id-display strong {
    color: var(--hazy-text-primary);
    font-weight: 600;
}

.guild-id-display span {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.server-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
}

.server-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
    transition: all 0.2s;
}

.server-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}






/* -- Pagina de Login -- */
.login-top-bar {
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}
.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hazy-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s ease;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.login-back-btn:hover {
  color: var(--hazy-white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.login-back-btn svg {
  transition: transform 0.2s ease;
}
.login-back-btn:hover svg {
  transform: translateX(-3px);
}
.login-main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 2rem;
  position: relative;
  z-index: 10;
}
.login-center {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}
.login-card-main {
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 3.5rem 2.5rem 3rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}
.login-card-main:hover {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 40px 110px rgba(220, 38, 38, 0.12), 0 30px 100px rgba(0, 0, 0, 0.75);
  transform: translateY(-3px);
}
.login-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #dc2626, #ef4444, #dc2626, transparent);
  background-size: 200% 100%;
  animation: login-gradient-flow 4s ease infinite;
}
@keyframes login-gradient-flow {
  0%, 100% { background-position: -100% 50%; }
  50% { background-position: 200% 50%; }
}
.login-card-top {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.login-logo-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.3), transparent 70%);
  opacity: 0.5;
  animation: login-logo-pulse 3s ease-in-out infinite;
}
@keyframes login-logo-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}
.login-logo-img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(220, 38, 38, 0.4));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.login-logo-container:hover .login-logo-img {
  transform: scale(1.08) rotate(6deg);
}
.login-heading-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hazy-white);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.login-description-main {
  color: var(--hazy-text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
.login-loading-container {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0;
}
.login-spinner-container {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}
.login-spinner-ring {
  position: absolute;
  inset: 0;
  border: 3.5px solid rgba(220, 38, 38, 0.15);
  border-top-color: #dc2626;
  border-radius: 50%;
  animation: login-spin 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
.login-spinner-inner {
  position: absolute;
  inset: 7px;
  border: 2.5px solid rgba(220, 38, 38, 0.1);
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite reverse;
}
@keyframes login-spin {
  to { transform: rotate(360deg); }
}
.login-loading-text {
  color: var(--hazy-text-secondary);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
}
.login-card-bottom {
  display: block;
}
.login-discord-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.1rem 2rem;
  background: #5865f2;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.login-discord-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.login-discord-button:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.login-discord-button:hover::before {
  opacity: 1;
}
.login-discord-button:active {
  transform: translateY(0);
}
.login-discord-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-discord-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.login-discord-button:hover .login-discord-arrow {
  transform: translateX(4px);
}
.login-trust-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  margin: 2.5rem 0 1rem;
}
.login-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--hazy-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 0.25s ease;
}
.login-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.login-trust-secure {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.login-trust-fast {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.login-trust-encrypted {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
.login-trust-item:hover {
  color: var(--hazy-text-primary);
}
.login-trust-item:hover .login-trust-icon {
  transform: translateY(-3px);
}
.login-trust-item:hover .login-trust-secure {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
}
.login-trust-item:hover .login-trust-fast {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.12);
}
.login-trust-item:hover .login-trust-encrypted {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
}
.login-error-message {
  display: none;
  padding: 0.9rem 1.2rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  color: #fca5a5;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 600;
}
.login-card-footer-main {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.login-terms-text {
  color: var(--hazy-text-muted);
  font-size: 0.78rem;
  text-align: center;
  margin: 0;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.login-terms-text a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s ease;
}
.login-terms-text a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.login-help-container {
  text-align: center;
  margin-top: 2rem;
  color: var(--hazy-text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  line-height: 1.6;
}
.login-help-icon {
  font-size: 0.95rem;
  color: var(--accent-color);
  opacity: 0.8;
}
.login-help-container a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s ease;
}
.login-help-container a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* -- Pagina de Ban -- */
.banned-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}
.banned-card {
  max-width: 700px;
  width: 100%;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(24, 24, 27, 0.95) 100%);
  backdrop-filter: var(--card-backdrop-blur);
  -webkit-backdrop-filter: var(--card-backdrop-blur);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.2);
  animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.banned-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
.banned-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hazy-white);
  margin-bottom: 1rem;
}
.banned-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.ban-details {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.ban-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ban-detail-item:last-child {
  border-bottom: none;
}
.ban-detail-label {
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ban-detail-value {
  color: var(--hazy-white);
  font-family: 'Courier New', monospace;
  text-align: right;
  word-break: break-all;
}
.appeal-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.appeal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hazy-white);
  margin-bottom: 1rem;
}
.appeal-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #5865F2;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}
.discord-button:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}
.discord-button i {
  font-size: 1.25rem;
}

/* -- Dashboard y Configuracion -- */
.admin-tab-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.admin-tab-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#tab-dashboard.active,
#tab-servers.active,
#tab-server-panel.active,
#tab-admin-panel.active,
#tab-user-configs.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dashboard-header,
.stats-grid,
#dashboard-content,
.dashboard-widget,
.stat-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.stats-grid {
    display: grid !important;
}

#dashboard-content {
    display: grid !important;
}

.dashboard-widget {
    display: block !important;
}

.stat-card {
    display: flex !important;
}

.admin-panel-card,
#adminPanel {
    background-color: var(--card-bg-alpha) !important;
    backdrop-filter: var(--card-backdrop-blur) !important;
    -webkit-backdrop-filter: var(--card-backdrop-blur) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    padding: 2rem !important;
    color: var(--hazy-text-primary) !important;
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    min-height: 400px !important;
}

.admin-tabs-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    border-bottom: 1px solid var(--hazy-gray-medium) !important;
    padding-bottom: 1rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 1.5rem !important;
}

.tab-btn {
    padding: 0.8rem 1.5rem !important;
    border-radius: var(--radius-sm) !important;
    background-color: transparent !important;
    border: 1px solid var(--hazy-gray-medium) !important;
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--hazy-white) !important;
    border-color: var(--hazy-gray-light) !important;
}

.tab-btn.active {
    background-color: rgba(220, 38, 38, 0.15) !important;
    color: var(--hazy-white) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2) !important;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--hazy-white);
    font-size: 0.875rem;
    transition: all 0.2s;
    position: relative;
}

.search-input::placeholder {
    color: var(--hazy-text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.sort-select {
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--hazy-white);
    font-size: 0.875rem;
    transition: all 0.2s;
    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='%23dc2626' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    cursor: pointer;
}

.sort-select:hover {
    border-color: rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(15, 15, 15, 0.95) 100%);
    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='%23dc2626' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.sort-select option {
    background: rgba(24, 24, 27, 0.95);
    color: var(--hazy-white);
    padding: 0.5rem;
}

.admin-section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-section-actions .search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.admin-section-actions .search-input::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hazy-text-secondary);
    pointer-events: none;
}

.user-card-avatar-horizontal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: block;
}

.user-card-avatar-wrapper-horizontal {
    position: relative;
    flex-shrink: 0;
}

.user-card-banned-overlay-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    backdrop-filter: blur(2px);
}

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

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.dashboard-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hazy-text-primary);
    margin: 0;
}

.dashboard-title p {
    font-size: 0.875rem;
    color: var(--hazy-text-secondary);
    margin: 0;
}

.dashboard-stats,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg-alpha, rgba(24, 24, 27, 0.45));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border, rgba(63, 63, 70, 0.4));
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--hazy-text-primary, #E4E4E7);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    border-color: var(--accent-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--hazy-text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hazy-text-primary);
    line-height: 1;
}

#dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.dashboard-widget {
    background: var(--card-bg-alpha, rgba(24, 24, 27, 0.45));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border, rgba(63, 63, 70, 0.4));
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    transition: all 0.3s;
    color: var(--hazy-text-primary, #E4E4E7);
}

.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    border-color: var(--accent-color);
}

.dashboard-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--hazy-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-widget h3 i {
    color: var(--accent-color);
}

#recent-activity-list,
#top-servers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

#recent-activity-list > div,
#top-servers-list > div {
    padding: 1rem 1.25rem;
    background: var(--card-bg-alpha);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    border-left: 4px solid var(--accent-color);
    color: var(--hazy-text-primary);
}

#recent-activity-list > div:hover,
#top-servers-list > div:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.sub-tabs-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border, rgba(63, 63, 70, 0.4));
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sub-tab-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--card-border, rgba(63, 63, 70, 0.4));
    color: var(--hazy-text-secondary, #A1A1AA);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--hazy-text-primary, #E4E4E7);
    border-color: var(--accent-color, #DC2626);
}

.sub-tab-btn.active {
    background: rgba(220, 38, 38, 0.15);
    color: #FFFFFF;
    border-color: var(--accent-color, #DC2626);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

.server-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
    flex: 1;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent-color);
    color: var(--hazy-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-refresh i {
    font-size: 0.875rem;
}

.stats-grid .stat-card {
    background: var(--card-bg-alpha) !important;
    backdrop-filter: var(--card-backdrop-blur) !important;
    -webkit-backdrop-filter: var(--card-backdrop-blur) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.stats-grid .stat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15) !important;
    border-color: var(--accent-color) !important;
}

.dashboard-widget {
    background: var(--card-bg-alpha) !important;
    backdrop-filter: var(--card-backdrop-blur) !important;
    -webkit-backdrop-filter: var(--card-backdrop-blur) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    transition: all 0.3s !important;
}

.dashboard-widget:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15) !important;
    border-color: var(--accent-color) !important;
}



.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

.custom-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.custom-toast.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(10, 20, 15, 0.95);
}

.custom-toast.toast-error {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(20, 10, 10, 0.95);
}

.custom-toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(20, 15, 10, 0.95);
}

.custom-toast.toast-info {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(10, 15, 20, 0.95);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #dc2626;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    color: var(--hazy-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--hazy-text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hazy-white);
}

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

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

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-modal {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.custom-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.custom-modal-title {
    margin: 0;
    color: var(--hazy-white);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-modal-body {
    padding: 2rem;
    color: var(--hazy-text-primary);
}

.custom-modal-message {
    margin: 0;
    color: var(--hazy-text-primary);
    line-height: 1.6;
}

.custom-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

#subtab-users.sub-tab-content.active #users-content,
#subtab-users.sub-tab-content.active .users-section-header,
#subtab-users.sub-tab-content.active .users-toolbar {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.users-section-wrapper {
    padding: 0 0.5rem;
}
.users-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0 2rem;
}
.users-section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.users-section-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg, 16px);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(220, 38, 38, 0.12) 100%);
    border: 1px solid rgba(220, 38, 38, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}
.users-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hazy-text-primary);
    margin: 0 0 0.25rem 0;
}
.users-section-subtitle {
    font-size: 0.875rem;
    color: var(--hazy-text-secondary);
    margin: 0;
}
.users-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.users-toolbar-search,
.users-toolbar-sort {
    position: relative;
    display: flex;
    align-items: center;
}
.users-toolbar-search i,
.users-toolbar-sort i {
    position: absolute;
    left: 1rem;
    color: var(--hazy-text-secondary);
    font-size: 0.875rem;
    pointer-events: none;
}
.users-toolbar-sort i {
    left: 0.75rem;
}
.users-search-input,
.users-sort-select {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    background: var(--card-bg-alpha, rgba(24, 24, 27, 0.45));
    border: 1px solid var(--card-border, rgba(63, 63, 70, 0.4));
    border-radius: 10px;
    color: var(--hazy-white, #e4e4e7);
    font-size: 0.875rem;
    transition: all 0.25s ease;
}
.users-toolbar-search .users-search-input {
    min-width: 220px;
    max-width: 280px;
}
.users-toolbar-sort .users-sort-select {
    min-width: 140px;
    padding-left: 2.25rem;
    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='%23dc2626' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.users-search-input::placeholder {
    color: var(--hazy-text-secondary);
}
.users-search-input:focus,
.users-sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.users-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.users-toolbar-btn i {
    font-size: 0.9rem;
}
.users-toolbar-btn-secondary {
    background: var(--card-bg-alpha);
    border-color: var(--card-border);
    color: var(--hazy-text-primary);
}
.users-toolbar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    color: var(--hazy-white);
}
.users-toolbar-btn-primary {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.users-toolbar-btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}
.users-section .users-container {
    display: block !important;
    grid-template-columns: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    min-height: 200px;
}
.users-container .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--hazy-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}
.users-table-card {
    background: var(--card-bg-alpha, rgba(24, 24, 27, 0.45));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border, rgba(63, 63, 70, 0.4));
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.users-table-card:hover {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.12);
}
.users-tabulator-wrapper {
    min-height: 320px;
}
#users-tabulator-wrapper .tabulator,
#users-tabulator-wrapper .tabulator-tableholder,
#users-tabulator-wrapper .tabulator-table {
    background: transparent !important;
    color: var(--hazy-text-primary, #e4e4e7) !important;
}
#users-tabulator-wrapper .tabulator {
    border: none !important;
    font-size: 0.9rem !important;
}
#users-tabulator-wrapper .tabulator-header {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.18) 0%, rgba(220, 38, 38, 0.08) 100%) !important;
    border-bottom: 1px solid var(--card-border, rgba(63, 63, 70, 0.5)) !important;
    color: var(--hazy-text-primary) !important;
}
#users-tabulator-wrapper .tabulator-col,
#users-tabulator-wrapper .tabulator-col .tabulator-col-content {
    background: transparent !important;
    border-right: 1px solid rgba(63, 63, 70, 0.4) !important;
    color: var(--hazy-text-primary) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
}
#users-tabulator-wrapper .tabulator-col .tbl-col-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
#users-tabulator-wrapper .tabulator-col .tbl-col-icon {
    color: var(--accent-color);
    font-size: 0.85rem;
    opacity: 0.9;
}
#users-tabulator-wrapper .tabulator-row {
    background: transparent !important;
    color: var(--hazy-text-primary) !important;
    transition: background 0.2s ease, transform 0.2s ease;
}
#users-tabulator-wrapper .tabulator-row.tabulator-row-even {
    background: rgba(255, 255, 255, 0.02) !important;
}
#users-tabulator-wrapper .tabulator-row:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
#users-tabulator-wrapper .tabulator-cell {
    background: transparent !important;
    border-right: 1px solid rgba(63, 63, 70, 0.35) !important;
    color: var(--hazy-text-primary) !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.875rem !important;
    transition: background 0.2s ease;
}
#users-tabulator-wrapper .tabulator-paginator {
    background: rgba(10, 10, 12, 0.6) !important;
    border-top: 1px solid var(--card-border) !important;
    color: var(--hazy-text-secondary) !important;
    padding: 0.5rem 1rem !important;
}
#users-tabulator-wrapper .tabulator-paginator .tabulator-page,
#users-tabulator-wrapper .tabulator-paginator button {
    color: var(--hazy-text-primary) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(63, 63, 70, 0.5) !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.75rem !important;
    margin: 0 0.2rem !important;
    transition: all 0.2s ease !important;
}
#users-tabulator-wrapper .tabulator-paginator .tabulator-page:hover,
#users-tabulator-wrapper .tabulator-paginator button:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: rgba(220, 38, 38, 0.5) !important;
}
#users-tabulator-wrapper .tabulator-paginator .tabulator-page.active {
    background: var(--accent-color) !important;
    color: #fff !important;
    border-color: var(--accent-color) !important;
}
.users-tbl-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease;
}
.users-tabulator-wrapper .tabulator-row:hover .users-tbl-avatar {
    transform: scale(1.05);
}
.users-tbl-code {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hazy-text-primary) !important;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    margin-right: 0.4rem;
    font-family: ui-monospace, monospace;
}
.users-tbl-copy {
    background: none;
    border: none;
    color: var(--hazy-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    vertical-align: middle;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.users-tbl-copy:hover {
    color: var(--accent-color);
    background: rgba(220, 38, 38, 0.15);
}
.users-tbl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(63, 63, 70, 0.6);
    background: rgba(255, 255, 255, 0.06);
    color: var(--hazy-text-primary) !important;
    cursor: pointer;
    margin-right: 0.35rem;
    transition: all 0.25s ease;
}
.users-tbl-btn:hover {
    transform: translateY(-1px);
    color: #fff !important;
}
.users-tbl-manage:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}
.users-tbl-ban:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}
.users-tbl-unban:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}


.config-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



.config-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.config-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--hazy-text-secondary, #a1a1aa);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.config-nav-btn:hover {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.15);
    color: var(--hazy-text-primary, #f4f4f5);
    transform: translateX(4px);
}

.config-nav-btn.active {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(220, 38, 38, 0.05));
    border-color: rgba(220, 38, 38, 0.35);
    color: var(--accent-color, #dc2626);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.08);
}

.config-nav-btn i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    transition: transform 0.25s ease;
}

.config-nav-btn.active i {
    transform: scale(1.15);
    color: var(--accent-color, #dc2626);
}

.config-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.config-section-card {
    display: none;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.85) 0%, rgba(12, 12, 18, 0.95) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    padding: 2.25rem !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 0 !important;
    animation: fadeInCard 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.config-section-card.active {
    display: block !important;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.config-action-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-save-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 2.25rem;
    background: linear-gradient(135deg, var(--accent-color, #dc2626) 0%, #991b1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}

.btn-save-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.45), 0 0 30px rgba(220, 38, 38, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-save-premium:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}


.config-layout .form-group {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
}

.config-layout .form-group:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
}

.config-layout .form-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f4f4f5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-layout .form-label i {
    color: var(--accent-color, #dc2626);
}


.config-layout select.input,
.config-layout input.input,
.config-layout textarea.input {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.config-layout select.input:hover,
.config-layout input.input:hover,
.config-layout textarea.input:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(0, 0, 0, 0.55) !important;
}

.config-layout select.input:focus,
.config-layout input.input:focus,
.config-layout textarea.input:focus {
    border-color: var(--accent-color, #dc2626) !important;
    background: rgba(0, 0, 0, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

.config-layout .role-selector-container {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.config-layout .role-selector-search {
    background: rgba(0, 0, 0, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.server-panel-view .admin-main-content .container {
    max-width: 100% !important;
    width: 96% !important;
}

body.server-panel-view #adminPanel {
    max-width: 100% !important;
}

body.server-panel-view .admin-form-body {
    max-width: 100% !important;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  margin-top: 0.5rem;
}
details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s;
  color: var(--hazy-red);
}
details[open] summary::before {
  transform: rotate(90deg);
}
.config-modal-content {
  color: #fff !important;
}
.config-modal-content * {
  color: inherit;
}
.admin-main-content {
  max-width: 1400px !important;
  width: 95% !important;
  margin: 0 auto !important;
  padding-top: calc(var(--header-height, 80px) + 2.5rem) !important;
  padding-bottom: 4rem !important;
}
.admin-main-content .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
#adminPanel, .admin-panel-card {
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.admin-tabs-header {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.75rem 1.5rem !important;
  background: rgba(15, 15, 20, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 14px !important;
  margin-bottom: 2.5rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}
.tab-btn {
  padding: 0.75rem 1.5rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: #a1a1aa !important;
  font-size: 0.925rem !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.tab-btn:hover {
  background-color: rgba(220, 38, 38, 0.06) !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
  color: #f4f4f5 !important;
  transform: translateY(-1px);
}
.tab-btn.active {
  background: rgba(220, 38, 38, 0.15) !important;
  color: #ffffff !important;
  border-color: var(--accent-color, #dc2626) !important;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.2) !important;
}
.dashboard-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 2.5rem !important;
  padding: 1.75rem 2.25rem !important;
  background: rgba(15, 15, 20, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}
.servers-toolbar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 1.5rem 2rem !important;
  background: rgba(15, 15, 20, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  margin-bottom: 2.5rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}
.servers-toolbar > div {
  max-width: 600px !important;
  flex: 1 !important;
}
.server-select-input {
  background: rgba(10, 10, 12, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1.1rem !important;
  color: #f4f4f5 !important;
  font-size: 0.925rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.server-select-input:focus {
  border-color: var(--accent-color, #dc2626) !important;
  background: rgba(5, 5, 8, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
  outline: none !important;
}
.server-select-card {
  background: rgba(15, 15, 20, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 2.5rem !important;
  max-width: 600px !important;
  margin: 3rem auto !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}
.sub-tabs-header {
  background: rgba(15, 15, 20, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 1.25rem 2rem !important;
  margin-bottom: 2.5rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}
.sub-tabs-buttons {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}
.sub-tab-btn {
  padding: 0.7rem 1.25rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}
.sub-tab-btn.active {
  background: rgba(220, 38, 38, 0.15) !important;
  border-color: var(--accent-color, #dc2626) !important;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.2) !important;
}
.stats-grid {
  gap: 2rem !important;
}
.stat-card {
  background: rgba(20, 20, 25, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
  padding: 1.75rem !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  transition: all 0.3s ease !important;
}
.stat-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.15) !important;
}
.server-list-item {
  background: rgba(15, 15, 20, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 1.25rem 2rem !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.server-list-item:hover {
  border-color: rgba(220, 38, 38, 0.35) !important;
  transform: translateY(-2px) translateX(0) !important;
  background: rgba(20, 20, 25, 0.55) !important;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15) !important;
}

@media (min-width: 993px) {
  .config-layout {
    grid-template-columns: 300px 1fr !important;
    gap: 2.5rem !important;
    width: 100% !important;
  }
  .ticket-category-entry > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
  .ticket-category-entry {
    background-color: rgba(15, 15, 20, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 2.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .config-section-card input,
  .config-section-card select,
  .config-section-card textarea {
    background: rgba(10, 10, 12, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 0.85rem 1.1rem !important;
    color: #f4f4f5 !important;
    font-size: 0.925rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .config-section-card input:focus,
  .config-section-card select:focus,
  .config-section-card textarea:focus {
    border-color: var(--accent-color, #dc2626) !important;
    background: rgba(5, 5, 8, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
    outline: none !important;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3f3f46;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-color, #ef4444);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent-color, #ef4444);
}

input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.channel-role-selector {
    position: relative;
    width: 100%;
}

.channel-role-selector-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--hazy-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 42px;
}

.channel-role-selector-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 38, 38, 0.4);
}

.channel-role-selector-trigger .selector-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--hazy-white);
}

.channel-role-selector-trigger .selector-arrow {
    color: var(--hazy-text-secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Dropdown panel */
.channel-role-selector-dropdown {
    position: fixed;
    z-index: 99999;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    max-height: 300px;
    overflow: hidden;
}

.selector-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.2);
}

.selector-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--hazy-white);
    font-size: 0.875rem;
    padding: 0;
}

.selector-search-input::placeholder {
    color: var(--hazy-text-secondary);
}

.selector-search .fas {
    color: var(--hazy-text-secondary);
    font-size: 0.8rem;
}

.selector-items {
    overflow-y: auto;
    flex: 1;
    padding: 0.4rem;
    max-height: 220px;
}

.selector-items::-webkit-scrollbar {
    width: 4px;
}

.selector-items::-webkit-scrollbar-track {
    background: transparent;
}

.selector-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.selector-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--hazy-white);
    font-size: 0.875rem;
}

.selector-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.selector-item.selected {
    background: rgba(220, 38, 38, 0.18);
}

.selector-item .item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selector-item .fas:not(.selector-check) {
    color: var(--hazy-text-secondary);
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.selector-check {
    color: #ef4444;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.role-color {
    flex-shrink: 0;
}

.selector-loading,
.selector-empty,
.selector-error {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--hazy-text-secondary);
    font-size: 0.875rem;
}

.selector-loading .fas,
.selector-error .fas {
    display: block;
    margin-bottom: 0.4rem;
}

.selector-error {
    color: #f87171;
}


/* Modern Server Dashboard Redesign */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.server-card-modern {
    background: rgba(20, 20, 24, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.server-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(220, 38, 38, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.server-card-modern:hover::before {
    opacity: 1;
}

.server-card-modern:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(220, 38, 38, 0.15);
}

.server-card-modern-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
}

.server-card-modern-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.server-card-modern-icon-fallback {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.server-card-modern-icon-fallback i {
    font-size: 1.75rem;
    color: var(--hazy-text-secondary);
}

.server-card-modern-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.server-card-modern-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hazy-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.server-card-modern-id {
    font-size: 0.85rem;
    color: var(--hazy-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.server-card-modern-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.server-card-modern-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.server-card-modern-status.inactive {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.server-card-modern-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.server-card-modern-status.active .server-card-modern-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.server-card-modern-status.inactive .server-card-modern-status-dot {
    background: #9ca3af;
}

.server-card-modern-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    z-index: 1;
}

.server-card-modern-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.server-card-modern-btn-primary {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.9));
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.server-card-modern-btn-primary:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.user-dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hazy-white);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-dashboard-subtitle {
    color: var(--hazy-text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Modern Toggle Switch */
.hazy-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.hazy-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hazy-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 34px;
}

.hazy-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hazy-switch input:checked + .hazy-switch-slider {
  background-color: #10b981;
  border-color: #059669;
}

.hazy-switch input:checked + .hazy-switch-slider:before {
  transform: translateX(24px);
}

/* NEW SERVER CARDS */
.hazy-server-card {
    position: relative;
    border-radius: 20px;
    background: rgba(18, 18, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.hazy-server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(220, 38, 38, 0.2);
}

.hazy-server-card-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: 50%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.3);
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.hazy-server-card:hover .hazy-server-card-bg {
    opacity: 0.9;
}

.hazy-server-card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.hazy-server-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hazy-server-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #111;
}
.hazy-server-avatar i {
    font-size: 1.5rem;
    line-height: 60px;
    text-align: center;
    width: 100%;
    color: #888;
}

.hazy-server-status {
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.status-inactive {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.hazy-server-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.hazy-server-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hazy-server-id {
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hazy-server-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hazy-btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.hazy-btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.hazy-btn-primary:hover {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.hazy-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hazy-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
/* ====== NEW ADMIN PANEL REWORK STYLES ====== */

/* --- UPDATES TAB --- */
.updates-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .updates-layout-grid {
        grid-template-columns: 1fr;
    }
}

.updates-compose-col, .updates-preview-col {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--hazy-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.75rem;
}

.btn-dashed-add {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    color: var(--hazy-text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-dashed-add:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-color);
    color: var(--hazy-white);
}

.updates-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.users-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.users-section-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}


.update-change-card {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s;
}

.update-change-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.change-card-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.change-type-select {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.change-cmd-input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    color: white;
    font-size: 0.9rem;
}

.change-desc-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    color: var(--hazy-text-secondary);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.change-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hazy-red);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.update-change-card:hover .change-remove-btn {
    opacity: 1;
}

/* Discord Preview */
.discord-preview-card {
    background: #313338;
    border-radius: 8px;
    padding: 1rem;
    font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #dbdee1;
}
.discord-message-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.discord-author-info {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.discord-bot-name {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}
.discord-bot-tag {
    background: #5865F2;
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}
.discord-timestamp {
    color: #949ba4;
    font-size: 0.75rem;
}
.discord-embed {
    margin-left: 3.5rem;
    border-left: 4px solid var(--accent-color);
    background: #2b2d31;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
}
.discord-embed-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.discord-embed-description {
    font-size: 0.875rem;
    line-height: 1.375;
    color: #dbdee1;
    white-space: pre-wrap;
}

/* --- USERS TAB --- */
.modern-users-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.modern-user-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}
.modern-user-card:hover {
    background: rgba(30, 30, 35, 0.8);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.user-avatar-modern {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}
.user-info-modern {
    flex: 1;
    min-width: 0;
}
.user-name-modern {
    font-weight: 600;
    color: white;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.2rem 0;
}
.user-id-modern {
    font-family: monospace;
    color: var(--hazy-text-secondary);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}
.user-rank-badge {
    margin-top: 0.4rem;
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: #ccc;
}
.user-actions-btn {
    background: transparent;
    border: none;
    color: var(--hazy-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: 0.2s;
}
.user-actions-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* --- BANS TAB --- */
.modern-bans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.ban-card {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--hazy-red);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
}
.ban-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}
.ban-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ban-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ban-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
.ban-name {
    font-weight: 600;
    color: white;
    font-size: 1rem;
    margin: 0;
}
.ban-id {
    font-family: monospace;
    color: #ef4444;
    font-size: 0.8rem;
}
.ban-status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.ban-status-permanent {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.ban-status-temporary {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.ban-details {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}
.ban-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.ban-detail-row:last-child {
    margin-bottom: 0;
}
.ban-detail-label {
    color: var(--hazy-text-secondary);
}
.ban-detail-value {
    color: white;
    font-weight: 500;
    text-align: right;
}
.ban-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.ban-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem;
}
