/* --- GLOBAL RESET & BASE --- */
body { 
    background-color: #02040a; 
    color: #e2e8f0; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}

#stormCanvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -5; 
    pointer-events: none; 
}

#lightningLayer { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #fff; 
    opacity: 0; 
    z-index: -4; 
    pointer-events: none; 
    mix-blend-mode: overlay; 
    transition: opacity 0.1s ease-out; 
}

.bg-grid-pattern { 
    background-size: 40px 40px; 
    background-image: linear-gradient(to right, rgba(59, 130, 246, 0.03) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 1px, transparent 1px); 
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%); 
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%); 
    position: fixed; 
    inset: 0; 
    z-index: -6; 
    pointer-events: none; 
}

.ambient-glow { 
    position: fixed; 
    border-radius: 50%; 
    filter: blur(120px); 
    opacity: 0.12; 
    z-index: -7; 
    pointer-events: none; 
}

/* --- UI COMPONENTS --- */
.glass-panel { 
    background: rgba(15, 22, 35, 0.7); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: all 0.3s ease; 
}

.storm-card { 
    background: rgba(11, 16, 27, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    backdrop-filter: blur(10px); 
    border-radius: 12px; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
}

.storm-card:hover { 
    transform: translateY(-4px); 
    border-color: rgba(59, 130, 246, 0.4); 
    box-shadow: 0 10px 30px -10px rgba(6, 11, 22, 0.8); 
}

.storm-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 40%); 
    opacity: 0; 
    transition: opacity 0.5s; 
    pointer-events: none; 
    z-index: 1; 
}

.storm-card:hover::before { 
    opacity: 1; 
}

/* --- DASHBOARD SPECIFICS --- */
.view-section { 
    display: none; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
    width: 100%; 
}

.view-section.active { 
    display: block; 
    opacity: 1; 
}

.nav-item {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden; 
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.nav-item.active { 
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%); 
    border-left: 3px solid #3b82f6; 
    color: white; 
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.discord-embed { 
    border-left: 4px solid #3b82f6; 
    background: #2B2D31; 
    padding: 12px; 
    border-radius: 4px; 
    max-width: 100%; 
}

.discord-button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background-color: #5865F2; 
    color: white; 
    border-radius: 3px; 
    padding: 8px 16px; 
    font-size: 14px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.discord-button:hover { 
    background-color: #4752C4; 
}

#loading-screen.hidden { 
    display: none; 
    opacity: 0; 
    pointer-events: none; 
}

.dash-grid { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    min-height: 100vh; 
}

@media (max-width: 1024px) { 
    .dash-grid { 
        grid-template-columns: 1fr; 
    } 
    .sidebar { 
        display: none; 
    } 
    .sidebar.mobile-open { 
        display: block; 
        position: fixed; 
        inset: 0; 
        z-index: 50; 
        background: #02040a; 
        width: 100%; 
    } 
}

/* Modal Styles */
#editor-modal.hidden { display: none; }
#ticket-editor-modal.hidden { display: none; }

.ticket-tab-btn {
    position: relative;
    color: #94a3b8;
    transition: all 0.2s;
    white-space: nowrap;
    padding-bottom: 12px;
}

.ticket-tab-btn:hover {
    color: white;
}

.ticket-tab-btn.active {
    color: white;
    border-bottom-color: #3b82f6 !important;
}

.ticket-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

/* Ticket Button Editor */
#buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#buttons-container > div {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utils */
.marquee-mask { 
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); 
}

.gradient-text { 
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Animation for Loading Bar */
@keyframes loading-bar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.animate-loading-bar { 
    animation: loading-bar 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; 
}

/* Form Elements */
input[type=range] { 
    -webkit-appearance: none; 
    width: 100%; 
    background: transparent; 
}

input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    height: 16px; 
    width: 16px; 
    border-radius: 50%; 
    background: #3b82f6; 
    cursor: pointer; 
    margin-top: -6px; 
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); 
}

input[type=range]::-webkit-slider-runnable-track { 
    width: 100%; 
    height: 4px; 
    cursor: pointer; 
    background: #1e293b; 
    border-radius: 2px; 
}

input[type=color] { 
    -webkit-appearance: none; 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 8px; 
    cursor: pointer; 
    background: none; 
    padding: 0; 
}

input[type=color]::-webkit-color-swatch-wrapper { 
    padding: 0; 
}

input[type=color]::-webkit-color-swatch { 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 8px; 
}

/* Better Input Focus */
.input-enhanced {
    transition: all 0.2s ease;
}
.input-enhanced:focus {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* CRITICAL FIX FOR DROPDOWNS */
select {
    background-color: #0f1623;
    color: #e2e8f0;
    cursor: pointer;
}
select option {
    background-color: #1a2236; /* storm-700 */
    color: white;
    padding: 8px;
}

.tab-btn { 
    position: relative; 
    color: #94a3b8; 
    transition: all 0.2s; 
    white-space: nowrap; 
}

.tab-btn:hover { 
    color: white; 
}

.tab-btn.active { 
    color: white; 
}

.tab-btn.active::after { 
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: #3b82f6; 
    box-shadow: 0 0 10px #3b82f6; 
}

/* Buttons */
.btn-discord-login { 
    background: rgba(88, 101, 242, 0.1); 
    border: 1px solid rgba(88, 101, 242, 0.3); 
    color: #fff; 
    transition: all 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 600; 
    cursor: pointer; 
}

.btn-discord-login:hover { 
    background: rgba(88, 101, 242, 0.2); 
    border-color: #5865F2; 
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3); 
}

.btn-invite-hero { 
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%); 
    color: white; 
    font-weight: 700; 
    transition: all 0.3s; 
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.4); 
    border: 1px solid rgba(255,255,255,0.1); 
    cursor: pointer; 
}

.btn-invite-hero:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.6); 
}

.cat-header { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 24px; 
}

.cat-line { 
    height: 1px; 
    flex: 1; 
    background: linear-gradient(90deg, #1f293a 0%, transparent 100%); 
}

/* Discord Preview */
.discord-msg { 
    display: flex; 
    gap: 16px; 
    font-family: 'Inter', sans-serif; 
}

.discord-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: #3b82f6; 
    flex-shrink: 0; 
}

.discord-content { 
    flex: 1; 
    min-width: 0; 
}

.discord-header { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 2px; 
}

.discord-username { 
    color: white; 
    font-weight: 500; 
    font-size: 15px; 
}

.discord-bot-tag { 
    background: #5865F2; 
    color: white; 
    font-size: 10px; 
    padding: 1px 4px; 
    border-radius: 4px; 
    font-weight: bold; 
    line-height: 1.3; 
}

.discord-time { 
    color: #949BA4; 
    font-size: 11px; 
    margin-left: 4px; 
}

.discord-text { 
    color: #DBDEE1; 
    font-size: 15px; 
    line-height: 1.4; 
    white-space: pre-wrap; 
    word-break: break-word; 
}

.discord-embed { 
    margin-top: 8px; 
    border-left: 4px solid #3b82f6; 
    background: #2B2D31; 
    padding: 12px; 
    border-radius: 4px; 
    max-width: 100%; 
    overflow: hidden; 
}

.discord-embed-title { 
    color: white; 
    font-weight: 600; 
    font-size: 15px; 
    margin-bottom: 8px; 
    text-decoration: none;
    display: inline-block;
}

.discord-embed-title:hover {
    text-decoration: underline;
}

.discord-embed-desc { 
    color: #DBDEE1; 
    font-size: 13px; 
    line-height: 1.4; 
    white-space: pre-wrap; 
}

.discord-embed-image { 
    width: 100%; 
    height: auto; 
    border-radius: 4px; 
    margin-top: 8px; 
    object-fit: cover; 
    max-height: 300px; 
}

.discord-embed-thumbnail { 
    float: right; 
    max-width: 80px; 
    max-height: 80px; 
    border-radius: 4px; 
    margin-left: 12px; 
    object-fit: cover; 
}

.discord-embed-footer { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 8px; 
    font-size: 12px; 
    color: #dcddde; 
}

.discord-embed-footer-time {
    margin-left: 6px;
    color: #949BA4;
}

.discord-embed-footer-icon { 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    object-fit: cover; 
}

.discord-embed-author { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 8px; 
}

.discord-embed-author-icon { 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    object-fit: cover; 
}

.discord-embed-author-name { 
    color: white; 
    font-weight: 600; 
    font-size: 14px; 
}

.discord-embed-fields { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 8px; 
    margin-top: 8px; 
}

/* Grid Support for Inline Fields */
.discord-embed-fields.has-inline { 
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr)); 
}

.discord-embed-field { 
    min-width: 0; 
}

.discord-embed-field-name { 
    color: white; 
    font-weight: 600; 
    font-size: 13px; 
    margin-bottom: 2px; 
}

.discord-embed-field-value { 
    color: #dcddde; 
    font-size: 13px; 
    white-space: pre-wrap; 
}

.discord-component-row { 
    margin-top: 8px; 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { 
    width: 5px; 
}

.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: rgba(255,255,255,0.1); 
    border-radius: 10px; 
}

/* Stat Card */
.stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(30, 41, 59, 0.6);
}

/* --- FORM & MODULE UX --- */
.label-std {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cbd5f5;
}

.field-badges {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.field-badge {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5f5;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.field-badge.premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(234, 179, 8, 0.35));
    border-color: rgba(234, 179, 8, 0.5);
    color: #fde68a;
}

.field-help {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.field-section {
    grid-column: span 2 / span 2;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 22, 35, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.field-section-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.field-section-subtext {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.field-notice {
    grid-column: span 2 / span 2;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.field-notice-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.field-notice-text {
    margin-top: 6px;
    font-size: 12px;
    color: #c7d2fe;
}

.field-group-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group {
    background: rgba(10, 16, 27, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.field-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.field-group-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.field-group-subtext {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.field-group-toggle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 35, 0.7);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.field-group-toggle:hover {
    color: #e2e8f0;
    border-color: rgba(59, 130, 246, 0.4);
}

.field-group.is-collapsed .field-group-body {
    display: none;
}

.field-group .field-card {
    background: rgba(12, 18, 30, 0.8);
}

.input-std {
    width: 100%;
    background: rgba(15, 22, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-with-unit {
    padding-right: 52px;
}

.input-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
}

.multi-select {
    min-height: 120px;
}

.input-std:focus {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: rgba(15, 22, 35, 0.95);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 12px 24px -14px rgba(59, 130, 246, 0.8);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.field-card {
    background: rgba(11, 16, 27, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.8);
}

.toggle-switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #1f2937;
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    left: 3px;
    transition: transform 0.2s ease;
}

.toggle-active {
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.toggle-active .toggle-knob {
    transform: translateX(20px);
}

.toggle-inactive {
    background: #1f2937;
}

.module-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.module-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.module-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 220px;
    background: rgba(15, 22, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 12px;
}

.module-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    width: 100%;
    font-size: 14px;
}

.module-filter {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 35, 0.6);
    color: #94a3b8;
    transition: all 0.2s ease;
    cursor: pointer;
}

.module-filter.active {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.12);
}

.module-filter-reset {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 35, 0.4);
    color: #94a3b8;
    transition: all 0.2s ease;
    cursor: pointer;
}

.module-filter-reset:hover {
    color: #e2e8f0;
    border-color: rgba(59, 130, 246, 0.4);
}

.module-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.module-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 35, 0.6);
    color: #94a3b8;
    transition: all 0.2s ease;
    cursor: pointer;
}

.module-category-chip .chip-count {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.7);
    background: rgba(148, 163, 184, 0.2);
    padding: 2px 6px;
    border-radius: 999px;
}

.module-category-chip.active {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
}

.module-filter-summary {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
}

.server-group-label {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
    background: rgba(15, 22, 35, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.guild-icon-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.45), rgba(15, 23, 42, 0.8));
    color: #e2e8f0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guild-icon-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guild-icon-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(79, 70, 229, 0.25));
    font-size: inherit;
    font-weight: inherit;
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.server-badge {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.server-badge.online {
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.12);
}

.server-badge.invite {
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.4);
    background: rgba(250, 204, 21, 0.12);
}

.module-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.module-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.module-status.enabled {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.module-status.disabled {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.module-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1024px) {
    .module-field-grid {
        grid-template-columns: 1fr;
    }
}

.module-field-grid-modal {
    gap: 20px;
}

.field-span-2 {
    grid-column: span 2 / span 2;
}

@media (max-width: 1024px) {
    .field-span-2 {
        grid-column: span 1 / span 1;
    }
    .field-section,
    .field-notice {
        grid-column: span 1 / span 1;
    }
}

.force-hide {
    display: none !important;
}

/* Overview Module Cards */
.module-card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(140deg, rgba(10, 16, 29, 0.95), rgba(6, 11, 22, 0.9));
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -30px rgba(59, 130, 246, 0.45);
}

.module-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 20% 20%, rgba(59, 130, 246, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.module-card:hover .module-card-glow {
    opacity: 1;
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.module-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 22, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent, #3b82f6);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent, #3b82f6) 25%, transparent);
}

.module-card-body {
    position: relative;
    z-index: 1;
    min-height: 80px;
}

.module-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.6);
    margin-bottom: 8px;
}

.module-card-category {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 35, 0.6);
    color: rgba(226, 232, 240, 0.8);
    font-size: 9px;
    letter-spacing: 0.16em;
}

.module-card-dot {
    opacity: 0.4;
}

.module-card-tabs {
    font-size: 9px;
    letter-spacing: 0.16em;
}

.module-card-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.module-card-badge.enabled {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.module-card-badge.disabled {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.module-card-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
    position: relative;
    z-index: 1;
}
