/* GM-t global high-tech color override */
:root {
    --nx-bg-0: #040816;
    --nx-bg-1: #060f29;
    --nx-bg-2: #0b163b;
    --nx-surface: rgba(9, 19, 52, 0.88);
    --nx-surface-strong: rgba(10, 22, 58, 0.95);
    --nx-border: #273d7d;
    --nx-border-soft: rgba(96, 127, 208, 0.52);
    --nx-text: #f4f7ff;
    --nx-text-muted: #aebbe0;
    --nx-text-subtle: #8fa1ce;
    --nx-accent-purple: #8a57ff;
    --nx-accent-blue: #2f9bff;
    --nx-accent-cyan: #4ccfff;

    --bg: var(--nx-bg-0);
    --bg-soft: var(--nx-bg-1);
    --accent: var(--nx-accent-blue);
    --accent-2: var(--nx-accent-purple);
    --card: var(--nx-surface);
    --text: var(--nx-text);
    --muted: var(--nx-text-muted);
    --shadow: rgba(2, 8, 24, 0.45);
    --header-bg: linear-gradient(135deg, #0b163b 0%, #081129 100%);
    --footer-bg: linear-gradient(135deg, #0a1435 0%, #070f25 100%);
    --header-shadow: 0 10px 24px rgba(2, 8, 24, 0.45);
}

html,
body {
    scrollbar-color: var(--nx-accent-blue) #0a1333;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #0a1333;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--nx-accent-purple), var(--nx-accent-blue));
}

body,
body.dashboard-body,
body.settings-body,
body.users-body,
body.auth-body {
    background:
        radial-gradient(circle at 76% 18%, rgba(74, 119, 255, 0.17) 0%, rgba(74, 119, 255, 0) 36%),
        radial-gradient(circle at 18% 0%, rgba(138, 87, 255, 0.2) 0%, rgba(138, 87, 255, 0) 38%),
        linear-gradient(155deg, var(--nx-bg-1) 0%, var(--nx-bg-0) 60%, #02050f 100%) !important;
    color: var(--nx-text-muted);
}

.top-header,
.header,
.footer,
.sidebar,
.dashboard-body .header,
.settings-body .header,
.users-body .header {
    background: var(--header-bg) !important;
    border-color: var(--nx-border) !important;
    box-shadow: var(--header-shadow) !important;
}

.logo,
.brand,
.brand-name,
.panel h1,
.panel h2,
.copy,
.stats-table th,
.stats-table td,
h1,
h2,
h3,
label,
strong,
th,
td {
    color: var(--nx-text);
}

.header-btn,
button,
.btn {
    background: linear-gradient(160deg, rgba(19, 32, 72, 0.95), rgba(8, 16, 40, 0.92));
    color: #e6eeff;
    border-color: var(--nx-border-soft);
    box-shadow: 0 6px 14px rgba(2, 7, 24, 0.45);
}

.header-btn:hover,
button:hover,
.btn:hover {
    border-color: rgba(98, 171, 255, 0.7);
    background: linear-gradient(160deg, rgba(26, 43, 95, 0.98), rgba(11, 21, 56, 0.95));
    box-shadow: 0 10px 22px rgba(2, 9, 29, 0.56), 0 0 0 1px rgba(101, 163, 255, 0.24) inset;
}

.header-btn.login,
.btn-primary,
button.login,
input[type="submit"] {
    background: linear-gradient(135deg, var(--nx-accent-purple), var(--nx-accent-blue));
    color: #fff;
    border-color: rgba(104, 176, 255, 0.7);
    box-shadow: 0 10px 24px rgba(58, 123, 255, 0.35);
}

.hero-bg {
    background:
        radial-gradient(circle at center, rgba(65, 120, 255, 0.26) 0%, rgba(10, 16, 42, 0) 50%),
        radial-gradient(circle at center, rgba(138, 87, 255, 0.14) 0%, rgba(138, 87, 255, 0) 42%) !important;
}

.panel,
.feature,
.module-row,
.module-media,
.dashboard-overview-gallery,
.dashboard-overview-gallery img,
.hero-card,
.section-card,
.card,
.table,
.widget,
.stat-card,
.auth-container,
.login-card,
.form-card,
.content-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
}

.module-media,
.dashboard-overview-gallery img {
    background: var(--nx-surface-strong) !important;
}

.lead,
.feature p,
.module-text p,
.stats-meta,
.muted,
small,
p,
li,
span,
.footer-text,
.description,
.subtitle,
.help-text {
    color: var(--nx-text-muted);
}

.feature h3,
.module-text h3,
.stats-value,
.accent,
.text-accent,
.badge,
.highlight {
    color: var(--nx-accent-cyan) !important;
}

.stats-value,
.metric-value,
.number,
.value {
    background: linear-gradient(135deg, var(--nx-accent-purple), var(--nx-accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

input,
select,
textarea {
    background: rgba(10, 19, 45, 0.9);
    color: var(--nx-text);
    border-color: var(--nx-border-soft);
}

input::placeholder,
textarea::placeholder {
    color: #88a0d6;
}

a {
    color: #8ec6ff;
}

a:hover {
    color: #b4d8ff;
}

/* Unified ember-cyan visual system for all theme-linked pages */
:root {
    --gmt-ink-0: #020307;
    --gmt-ink-1: #070b13;
    --gmt-ink-2: #0d1424;
    --gmt-surface: rgba(8, 14, 28, 0.88);
    --gmt-surface-strong: rgba(11, 20, 36, 0.94);
    --gmt-border: rgba(0, 247, 255, 0.42);
    --gmt-border-soft: rgba(255, 79, 0, 0.34);
    --gmt-text: #f6f9ff;
    --gmt-text-muted: #b3c0d9;
    --gmt-text-subtle: #8f9ab4;
    --gmt-ember: #ff4f00;
    --gmt-flame: #ffd84a;
    --gmt-spark: #00f7ff;
    --gmt-spark-soft: #b8fdff;
    --gmt-line: rgba(0, 245, 255, 0.48);

    --bg: var(--gmt-ink-0);
    --bg-soft: var(--gmt-ink-1);
    --accent: var(--gmt-spark);
    --accent-2: var(--gmt-ember);
    --card: var(--gmt-surface);
    --text: var(--gmt-text);
    --muted: var(--gmt-text-muted);
    --shadow: rgba(0, 0, 0, 0.52);
    --header-bg: linear-gradient(124deg, rgba(8, 15, 31, 0.94), rgba(5, 10, 22, 0.96));
    --footer-bg: linear-gradient(124deg, rgba(8, 15, 31, 0.96), rgba(4, 8, 18, 0.98));
    --header-shadow: 0 0 28px rgba(0, 247, 255, 0.24), 0 12px 36px rgba(0, 0, 0, 0.45);
}

html,
body {
    scrollbar-color: var(--gmt-spark) #0a1333 !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.content .tabs::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.content .tabs::-webkit-scrollbar-track {
    background: #0a1333 !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.content .tabs::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gmt-ember), var(--gmt-spark));
    border-radius: 999px !important;
}

.sidebar,
.content .tabs {
    scrollbar-color: var(--gmt-spark) #0a1333 !important;
}

body,
body.dashboard-body,
body.settings-body,
body.users-body,
body.auth-body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    background:
        radial-gradient(980px 520px at 78% -10%, rgba(0, 247, 255, 0.26), transparent 54%),
        radial-gradient(1040px 620px at -4% 12%, rgba(255, 79, 0, 0.34), transparent 52%),
        linear-gradient(165deg, var(--gmt-ink-2), var(--gmt-ink-1) 52%, var(--gmt-ink-0)) !important;
    color: var(--gmt-text-muted) !important;
}

.top-header,
.header,
.footer,
.sidebar,
.dashboard-body .header,
.settings-body .header,
.users-body .header {
    background: var(--header-bg) !important;
    border-color: var(--gmt-border) !important;
    box-shadow: 0 -1px 0 rgba(255, 79, 0, 0.24) inset, var(--header-shadow) !important;
}

.logo,
.brand,
.brand-name,
.panel h1,
.panel h2,
.copy,
.stats-table th,
.stats-table td,
h1,
h2,
h3,
label,
strong,
th,
td {
    color: var(--gmt-text) !important;
}

.logo-icon,
.brand-logo {
    border-radius: 999px !important;
    border: 2px solid rgba(0, 247, 255, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(255, 79, 0, 0.38), 0 0 24px rgba(0, 247, 255, 0.34) !important;
}

.header-btn,
button,
.btn,
.button,
.link,
.nav-link,
input[type="submit"] {
    background: linear-gradient(160deg, rgba(10, 19, 37, 0.97), rgba(6, 11, 23, 0.93)) !important;
    color: var(--gmt-text) !important;
    border-color: rgba(0, 247, 255, 0.38) !important;
    box-shadow: 0 0 0 1px rgba(255, 79, 0, 0.14) inset, 0 8px 18px rgba(0, 0, 0, 0.46) !important;
}

.header-btn:hover,
button:hover,
.btn:hover,
.button:hover,
.link:hover,
.nav-link:hover,
input[type="submit"]:hover {
    border-color: rgba(0, 247, 255, 0.68) !important;
    box-shadow: 0 0 0 1px rgba(0, 247, 255, 0.28), 0 12px 24px rgba(0, 247, 255, 0.18), 0 0 24px rgba(255, 79, 0, 0.16) !important;
}

.header-btn.login,
.btn-primary,
button.login,
input[type="submit"].login {
    background: linear-gradient(115deg, var(--gmt-ember), var(--gmt-flame)) !important;
    color: #fff !important;
    border-color: rgba(255, 216, 74, 0.72) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32) inset, 0 14px 30px rgba(255, 79, 0, 0.46), 0 0 26px rgba(255, 216, 74, 0.32) !important;
}

.panel,
.feature,
.module-row,
.module-media,
.dashboard-overview-gallery,
.dashboard-overview-gallery img,
.hero-card,
.section-card,
.card,
.table,
.widget,
.stat-card,
.auth-container,
.login-card,
.form-card,
.content-card,
.guild-card,
.guilds li {
    background: var(--gmt-surface) !important;
    border-color: var(--gmt-border) !important;
    box-shadow: 0 0 0 1px var(--gmt-border-soft) inset, 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

.module-media,
.dashboard-overview-gallery img,
.card,
.stat-card {
    background: var(--gmt-surface-strong) !important;
}

.lead,
.feature p,
.module-text p,
.stats-meta,
.muted,
small,
p,
li,
span,
.footer-text,
.description,
.subtitle,
.help-text,
.hint {
    color: var(--gmt-text-muted) !important;
}

.feature h3,
.module-text h3,
.stats-value,
.accent,
.text-accent,
.badge,
.highlight {
    color: var(--gmt-spark-soft) !important;
}

.stats-value,
.metric-value,
.number,
.value {
    background: linear-gradient(135deg, var(--gmt-ember), var(--gmt-spark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

input,
select,
textarea {
    background: rgba(10, 19, 45, 0.92) !important;
    color: var(--gmt-text) !important;
    border-color: rgba(0, 247, 255, 0.42) !important;
}

input::placeholder,
textarea::placeholder {
    color: #88a0d6;
}

a {
    color: var(--gmt-spark-soft) !important;
}

a:hover {
    color: #dcfeff !important;
}

/* Strict cross-page consistency layer */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    color: var(--gmt-text-muted) !important;
}

body .top-header,
body .header,
body .site-header,
body .footer,
body .site-footer {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(124deg, rgba(8, 15, 31, 0.94), rgba(5, 10, 22, 0.96)) !important;
    backdrop-filter: blur(8px) !important;
}

body .top-header,
body .header,
body .site-header {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--gmt-line) !important;
    box-shadow: 0 -1px 0 rgba(255, 79, 0, 0.32) inset, 0 0 36px rgba(0, 247, 255, 0.28), 0 14px 40px rgba(0, 0, 0, 0.52) !important;
    padding: 10px 40px !important;
}

body .footer,
body .site-footer,
body footer {
    border-top: 1px solid var(--gmt-line) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    color: var(--gmt-text-muted) !important;
    font-size: 13px !important;
    text-align: center !important;
    padding: 10px 40px !important;
    box-shadow: 0 1px 0 rgba(255, 79, 0, 0.28) inset, 0 0 36px rgba(0, 247, 255, 0.22), 0 -12px 34px rgba(0, 0, 0, 0.52) !important;
}

body .header-left,
body .header-right,
body .nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

body .header-right,
body .nav {
    flex-wrap: wrap;
}

body .top-header .logo,
body .header .logo {
    font-family: "Cinzel", "Times New Roman", serif !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.1 !important;
}

body .top-header .logo span,
body .header .logo span {
    font-family: "Cinzel", "Times New Roman", serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    color: var(--gmt-text-muted) !important;
}

/* Homepage uses externally loaded fonts; force the same fallback look as the rest of pages. */
body .brand-text strong {
    font-family: "Times New Roman", serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    color: var(--gmt-text-muted) !important;
}

body .top-header .logo-icon,
body .header .logo-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    padding: 2px !important;
}

body .header-inner,
body .content-wrapper,
body .page-wrap,
body .content,
body .container {
    width: min(1100px, 100%);
    margin: 0 auto !important;
}

body .page-wrap,
body .container {
    padding: 28px 20px 88px !important;
}

body .content {
    padding: 32px 20px 88px !important;
}

body .panel,
body .card,
body .hero-card,
body .section-card,
body .doc-card,
body .server-card,
body .feature,
body .box,
body .thread,
body .post,
body .alert-box,
body .empty-state,
body .module-help-dialog,
body .lang-menu,
body .channel-dropdown,
body .health-widget,
body .user-info,
body .sidebar,
body .sidebar-header,
body .form-card,
body .auth-container,
body .login-card,
body .image-upload-wrapper {
    background: var(--gmt-surface) !important;
    border: 1px solid var(--gmt-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 0 0 1px var(--gmt-border-soft) inset, 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

body .feature,
body .doc-card,
body .server-card,
body .box,
body .thread,
body .post {
    background: var(--gmt-surface-strong) !important;
}

body .header-btn,
body .btn,
body .button,
body .link,
body .upload-btn,
body .lang-item,
body .channel-option,
body .sidebar-menu a,
body .nav a,
body .doc-link {
    padding: 9px 14px !important;
    font-size: 0.81rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    background: linear-gradient(145deg, rgba(10, 19, 37, 0.97), rgba(6, 11, 23, 0.93)) !important;
    color: var(--gmt-text) !important;
    border: 1px solid rgba(0, 245, 255, 0.34) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 0 1px rgba(255, 59, 0, 0.12) inset, 0 8px 18px rgba(0, 0, 0, 0.46) !important;
    text-decoration: none !important;
}

body .header-btn:hover,
body .btn:hover,
body .button:hover,
body .link:hover,
body .upload-btn:hover,
body .lang-item:hover,
body .channel-option:hover,
body .sidebar-menu a:hover,
body .nav a:hover,
body .doc-link:hover {
    border-color: rgba(0, 245, 255, 0.64) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 0 1px rgba(0, 247, 255, 0.44), 0 14px 30px rgba(0, 247, 255, 0.3), 0 0 30px rgba(0, 247, 255, 0.3) !important;
}

body .btn-primary,
body .header-btn.login,
body .button.login,
body .header-btn.active,
body .sidebar-menu a.active,
body .lang-item.active,
body .channel-option.selected {
    background: linear-gradient(115deg, var(--gmt-ember), var(--gmt-flame)) !important;
    color: #fff !important;
    border-color: rgba(255, 216, 74, 0.72) !important;
}

body h1,
body h2,
body h3,
body h4,
body .title,
body .page-title,
body .header-title,
body .server-name,
body .sidebar-title,
body .doc-card h3,
body .feature h3,
body .section-card h2,
body .hero-card h1,
body .module-help-dialog h2,
body .module-help-dialog h3 {
    color: var(--gmt-text) !important;
}

body p,
body li,
body small,
body span,
body .lead,
body .meta,
body .page-desc,
body .header-desc,
body .server-id,
body .guild-name,
body .user-name,
body .sidebar-subtitle,
body .input-hint,
body .help-text,
body .stats-meta,
body .note,
body .foot,
body .footer-text {
    color: var(--gmt-text-muted) !important;
}

body .stats-value,
body .value,
body .number,
body .accent,
body .badge,
body .highlight,
body .status-active {
    color: var(--gmt-spark-soft) !important;
}

body .status-inactive,
body .alert.error,
body .error {
    border-color: rgba(255, 79, 0, 0.56) !important;
}

body .alert.success,
body .success {
    border-color: rgba(0, 247, 255, 0.56) !important;
}

body table,
body .stats-table {
    width: 100%;
    border-collapse: collapse;
}

body th,
body td,
body .stats-table th,
body .stats-table td {
    border-bottom: 1px solid rgba(0, 247, 255, 0.22) !important;
    color: var(--gmt-text) !important;
}

body th,
body .stats-table th {
    color: var(--gmt-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

body input,
body select,
body textarea,
body .input-field,
body .channel-search,
body .color-hex {
    background: rgba(10, 19, 45, 0.92) !important;
    color: var(--gmt-text) !important;
    border: 1px solid rgba(0, 247, 255, 0.42) !important;
    border-radius: 10px !important;
}

body .docs-grid,
body .servers-grid,
body .feature-grid,
body .box-grid,
body .grid,
body .form-row {
    gap: 14px !important;
}

/* Unify all dashboard form tabs to the Mother HQ look. */
body .automod-form-container .tabs,
body .automod-form-container .panel-tabs-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    padding: 8px !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    background: #0f172a !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
}

body .automod-form-container .tab-button,
body .automod-form-container .panel-tab-trigger {
    position: relative !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: linear-gradient(160deg, #1a2a48, #15223b) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease !important;
    box-shadow: none !important;
    border-bottom: 1px solid transparent !important;
}

body .automod-form-container .tab-button:hover,
body .automod-form-container .panel-tab-trigger:hover {
    color: #ffffff !important;
    border-color: #3b4c74 !important;
    background: linear-gradient(160deg, #22345a, #1a2948) !important;
    transform: translateY(-1px) !important;
}

body .automod-form-container .tab-button.active,
body .automod-form-container .panel-tab-trigger.active {
    color: #e8f2ff !important;
    border-color: #365989 !important;
    background: linear-gradient(160deg, #1f3256, #1a2b4a) !important;
    box-shadow: 0 2px 8px rgba(16, 36, 68, 0.28) !important;
}

@media (max-width: 900px) {
    body .top-header,
    body .header,
    body .footer,
    body footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body .page-wrap,
    body .container,
    body .content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
