/* =========================================================
   BIG MIKE HOSTING — DARK UI DESIGN SYSTEM
   Monochrome • Responsive • No moderation logic changes
   ========================================================= */

:root {
    color-scheme: dark;
    --bg: #090909;
    --bg-raised: #0d0d0d;
    --surface: #111111;
    --surface-2: #171717;
    --surface-3: #1d1d1d;
    --surface-hover: #222222;
    --border: #292929;
    --border-strong: #3a3a3a;
    --text: #f5f5f5;
    --text-secondary: #c3c3c3;
    --muted: #929292;
    --muted-dark: #686868;
    --white: #ffffff;
    --accent: #d4d4d4;
    --success: #a3a3a3;
    --danger: #e0a0a0;
    --danger-bg: #241515;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --sidebar-width: clamp(190px, 17vw, 250px);
    --topbar-height: 66px;
    --shadow: 0 12px 36px rgba(0, 0, 0, .22);
    --transition: 160ms ease;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    width: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
    scrollbar-color: #393939 var(--bg);
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: #414141;
    color: #fff;
}

a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

a:hover {
    color: #fff;
}

img, svg, video {
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #a3a3a3;
    outline-offset: 3px;
}

hr {
    height: 1px;
    border: 0;
    background: var(--border);
    margin: 22px 0;
}

h1, h2, h3, h4, h5 {
    color: var(--text);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.025em;
}

h1 { font-size: clamp(25px, 3vw, 34px); }
h2 { font-size: 21px; }
h3 { font-size: 16px; }

p {
    color: var(--text-secondary);
}

small,
.muted,
.bm-muted,
.field-help,
.bm-help {
    color: var(--muted);
}

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
    color: #e5e5e5;
    background: #1b1b1b;
    border: 1px solid #2b2b2b;
    border-radius: 5px;
    padding: 2px 5px;
}

/* Scrollbars */
*::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 20px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: var(--topbar-height);
    width: 100%;
    padding: 0 24px;
    background: rgba(12, 12, 12, .96);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    font-weight: 700;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    border-radius: 10px;
    background: linear-gradient(145deg, #292929, #111);
    color: white;
    font-weight: 800;
    box-shadow: inset 0 1px rgba(255,255,255,.06);
}

.brand-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -.02em;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

.status-indicator,
.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.status-indicator::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b5b5b5;
    box-shadow: 0 0 0 3px rgba(180,180,180,.09);
}

.user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--text-secondary);
}

.avatar,
.bm-avatar,
.bm-user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: linear-gradient(145deg, #303030, #171717);
    color: #f5f5f5;
    font-weight: 700;
}

.avatar {
    width: 32px;
    height: 32px;
}

.logout,
.bm-quiet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #151515;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.logout:hover,
.bm-quiet-link:hover {
    border-color: #505050;
    background: #222;
    color: white;
}

/* =========================================================
   APP LAYOUT AND SIDEBARS
   ========================================================= */

.app-layout,
.bm-shell {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(100vh - var(--topbar-height));
    min-height: calc(100dvh - var(--topbar-height));
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar,
.bm-sidebar {
    position: sticky !important;
    top: var(--topbar-height);
    left: 0 !important;
    right: auto !important;
    float: none !important;
    align-self: flex-start;
    flex: 0 0 var(--sidebar-width) !important;
    width: var(--sidebar-width) !important;
    min-width: 0;
    height: calc(100vh - var(--topbar-height));
    height: calc(100dvh - var(--topbar-height));
    max-height: none;
    margin: 0 !important;
    padding: 22px 14px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    transform: none !important;
    background: #0c0c0c;
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: #303030 transparent;
    overscroll-behavior: contain;
}

.bm-sidebar {
    top: 0;
    height: 100vh;
    height: 100dvh;
}

.sidebar-footer,
.bm-sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
    color: var(--muted);
    font-size: 11px;
}

.side-label,
.bm-nav-label,
.bm-nav-label,
.sidebar .side-label {
    display: block;
    margin: 16px 10px 9px;
    color: #737373;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.bm-nav-label:first-child,
.side-label:first-child {
    margin-top: 0;
}

.nav-item,
.bm-nav a,
.server-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 3px 0;
    padding: 9px 11px;
    overflow-wrap: anywhere;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #a5a5a5;
    font-size: 13px;
    font-weight: 520;
    text-align: left;
    transition: background var(--transition), border-color var(--transition),
        color var(--transition);
}

.nav-item:hover,
.bm-nav a:hover,
.server-link:hover {
    background: #191919;
    color: #f5f5f5;
}

.nav-item.active,
.nav-item[aria-current="page"],
.bm-nav a.active,
.bm-nav a[aria-current="page"] {
    background: #202020;
    border-color: #303030;
    color: #fff;
    font-weight: 650;
}

.nav-item.active::before,
.bm-nav a.active::before {
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 4px;
    background: #d4d4d4;
    content: "";
}

.nav-icon,
.server-icon,
.server-placeholder {
    display: inline-grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #b5b5b5;
    border-radius: 6px;
    background: rgba(255,255,255,.035);
}

.server-label {
    margin: 22px 10px 8px;
    color: #777;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.server-link {
    gap: 9px;
    padding: 8px 9px;
}

.server-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #929292;
}

.server-invite {
    display: block;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px dashed #393939;
    border-radius: 8px;
    color: #aaa;
    text-align: center;
}

.server-invite:hover {
    background: #191919;
    border-color: #5a5a5a;
    color: white;
}

/* Modern navigation */
.bm-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin: 0 5px 28px;
    color: white;
    font-weight: 750;
    letter-spacing: -.02em;
}

.bm-logo {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border: 1px solid #404040;
    border-radius: 11px;
    background: linear-gradient(145deg, #292929, #101010);
}

.bm-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bm-nav a {
    text-decoration: none;
}

.bm-main,
.main-content {
    flex: 1 1 0 !important;
    width: 0;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 28px clamp(18px, 3vw, 42px) 36px;
    overflow-wrap: anywhere;
    background: var(--bg);
    transform: none !important;
}

.bm-content {
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin: 0 auto;
}

/* =========================================================
   PAGE TITLES AND HERO
   ========================================================= */

.page-heading {
    margin: 0 0 25px;
}

.page-heading h1,
.bm-page-title {
    margin: 0;
    color: #f7f7f7;
    font-size: clamp(25px, 2.6vw, 33px);
    font-weight: 720;
    letter-spacing: -.045em;
}

.page-heading p,
.bm-page-title + p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #777;
    font-size: 12px;
}

.breadcrumb a {
    color: #aaa;
}

.breadcrumb a:hover {
    color: white;
}

.bm-page {
    min-width: 0;
}

.bm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 52px;
    margin-bottom: 25px;
}

.bm-page-title {
    margin: 0;
}

.bm-kicker,
.bm-eyebrow,
.eyebrow {
    margin: 0 0 8px;
    color: #888;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bm-server-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    margin-bottom: 24px;
    padding: clamp(22px, 3vw, 32px);
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 90% 0%, rgba(255,255,255,.055), transparent 38%),
        linear-gradient(135deg, #181818, #101010 65%);
    box-shadow: var(--shadow);
}

.bm-hero-copy {
    min-width: 0;
}

.bm-hero-copy h1,
.bm-hero-copy h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.04em;
}

.bm-hero-copy p {
    max-width: 600px;
    margin: 9px 0 0;
    color: #a4a4a4;
}

.bm-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #c0c0c0;
}

.bm-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.bm-hero-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1d1d1;
}

.bm-status-orbit {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #4a4a4a;
    border-radius: 50%;
    background: #222;
}

.bm-status-label {
    display: block;
    color: #929292;
    font-size: 11px;
}

.bm-status-good,
.bm-status-bad {
    color: #ddd;
    font-weight: 650;
}

/* =========================================================
   CARDS, PANELS, STATISTICS
   ========================================================= */

.panel,
.bm-card,
.command-panel,
.welcome-panel {
    min-width: 0;
    margin: 0 0 20px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #141414, #101010);
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
}

.panel-heading,
.bm-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 19px;
    padding-bottom: 15px;
    border-bottom: 1px solid #272727;
}

.panel-heading h2,
.panel-heading h3,
.bm-card-heading h2,
.bm-card-heading h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.heading-icon,
.bm-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #303030;
    border-radius: 9px;
    background: #202020;
    color: #dedede;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.stat-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #2b2b2b;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #171717, #101010);
    transition: border-color var(--transition), transform var(--transition);
}

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

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
    color: #a0a0a0;
    font-size: 12px;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid #303030;
    border-radius: 9px;
    background: #202020;
    color: #dedede;
}

.stat-value {
    display: block;
    color: #f7f7f7;
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.stat-caption {
    display: block;
    margin-top: 8px;
    color: #858585;
    font-size: 11px;
}

.bm-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #242424;
}

.bm-detail-row:last-child {
    border-bottom: 0;
}

.bm-detail-row > :first-child {
    color: #aaa;
}

.bm-detail-row > :last-child {
    text-align: right;
    overflow-wrap: anywhere;
}

/* =========================================================
   FORMS AND INPUTS
   ========================================================= */

label {
    display: block;
    margin: 0 0 7px;
    color: #dedede;
    font-size: 12px;
    font-weight: 650;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
textarea,
select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #343434;
    border-radius: 8px;
    outline: none;
    background: #0b0b0b;
    color: #f2f2f2;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
    transition: border-color var(--transition), background var(--transition),
        box-shadow var(--transition);
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

select {
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #656565;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #484848;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #777;
    background: #101010;
    box-shadow: 0 0 0 3px rgba(255,255,255,.045);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #d4d4d4;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

input[type="color"] {
    width: 44px;
    height: 38px;
    padding: 3px;
    border: 1px solid #3a3a3a;
    border-radius: 7px;
    background: #151515;
}

input[type="range"] {
    width: 100%;
    accent-color: #bdbdbd;
}

.field-help,
.bm-help {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.55;
}

.form-section {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #272727;
}

.form-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
    font-size: 15px;
}

.section-number {
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    border: 1px solid #363636;
    border-radius: 8px;
    background: #202020;
    color: #ddd;
    font-size: 11px;
    font-weight: 750;
}

.two-col,
.custom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.custom-form,
.bm-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.custom-field {
    min-width: 0;
}

.form-actions,
.custom-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #252525;
}

.toggle-row:last-child {
    border-bottom: 0;
}

.toggle-row label {
    margin: 0;
}

.toggle-row input {
    flex: 0 0 auto;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button,
button.button,
.bm-button,
button.bm-button,
button,
input[type="submit"],
input[type="button"] {
    font-family: inherit;
}

.button,
button.button,
.bm-button,
button.bm-button,
.form-actions button,
.custom-actions button,
button[type="submit"],
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    max-width: 100%;
    padding: 9px 15px;
    border: 1px solid #454545;
    border-radius: 8px;
    background: #e7e7e7;
    color: #101010;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition),
        color var(--transition), transform var(--transition);
}

.button:hover,
button.button:hover,
.bm-button:hover,
button.bm-button:hover,
.form-actions button:hover,
.custom-actions button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.button:active,
.bm-button:active,
button[type="submit"]:active {
    transform: translateY(1px);
}

.button.secondary,
.button:not(.primary):not(.danger),
.bm-button:not(.primary):not(.bm-danger):not(.danger),
button.secondary {
    border-color: #363636;
    background: #1b1b1b;
    color: #e1e1e1;
}

.button.secondary:hover,
.button:not(.primary):not(.danger):hover,
.bm-button:not(.primary):not(.bm-danger):not(.danger):hover,
button.secondary:hover {
    border-color: #555;
    background: #272727;
    color: white;
}

.button.danger,
.bm-button.danger,
.bm-button.bm-danger,
button.danger,
.danger button {
    border-color: #593838;
    background: #261818;
    color: #f0c4c4;
}

.button.danger:hover,
.bm-button.danger:hover,
.bm-button.bm-danger:hover,
button.danger:hover {
    border-color: #805050;
    background: #351e1e;
    color: #fff;
}

.bm-primary-action,
.bm-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid #414141;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.bm-primary-action {
    background: #e8e8e8;
    color: #111;
}

.bm-primary-action:hover {
    background: white;
    color: #000;
}

.bm-secondary-action {
    background: #191919;
    color: #ddd;
}

.bm-secondary-action:hover {
    background: #252525;
    color: white;
}

button:disabled,
.button:disabled,
.bm-button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   TABLES AND LISTS
   ========================================================= */

table,
.bm-table,
.bm-permission-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #dedede;
    font-size: 12px;
}

thead th,
.bm-table th,
.bm-permission-table th {
    padding: 12px 14px;
    border-bottom: 1px solid #353535;
    background: #171717;
    color: #999;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody td,
.bm-table td,
.bm-permission-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #252525;
    vertical-align: middle;
}

tbody tr {
    background: transparent;
    transition: background var(--transition);
}

tbody tr:hover {
    background: rgba(255,255,255,.025);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.bm-table-wrap,
.bm-permission-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.bm-table-wrap table,
.bm-permission-table-wrap table {
    min-width: 520px;
}

.custom-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.custom-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #292929;
    border-radius: 9px;
    background: #151515;
}

.custom-trigger {
    min-width: 0;
    color: #eee;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.permission-tag,
.bm-permission-badge,
.bm-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid #3b3b3b;
    border-radius: 999px;
    background: #202020;
    color: #d2d2d2;
    font-size: 10px;
    font-weight: 700;
    white-space: normal;
}

.count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border: 1px solid #373737;
    border-radius: 7px;
    background: #222;
    color: #ddd;
    font-size: 11px;
    font-weight: 700;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 155px;
    padding: 28px 18px;
    border: 1px dashed #333;
    border-radius: 10px;
    color: #8e8e8e;
    text-align: center;
}

.empty-state h3 {
    margin: 0;
    color: #ddd;
}

.empty-small {
    color: #858585;
    font-size: 11px;
}

/* =========================================================
   CUSTOMIZATION / PREVIEW
   ========================================================= */

.custom-preview {
    min-width: 0;
    padding: 20px;
    border: 1px solid #303030;
    border-radius: 12px;
    background: #151515;
}

.custom-preview h3 {
    margin-top: 0;
}

.custom-logo {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #3c3c3c;
    border-radius: 13px;
    background: #202020;
}

.custom-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-danger {
    padding: 18px;
    border: 1px solid #3f2c2c;
    border-radius: 10px;
    background: #171111;
}

.bm-appearance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    border: 1px solid #303030;
    border-radius: 10px;
    background: #151515;
}

.bm-swatch-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-swatch {
    width: 24px;
    height: 24px;
    border: 1px solid #555;
    border-radius: 7px;
    background: #111;
}

.bm-swatch:nth-child(2) { background: #252525; }
.bm-swatch:nth-child(3) { background: #777; }
.bm-swatch:nth-child(4) { background: #eee; }

/* =========================================================
   ADMIN PERMISSIONS
   ========================================================= */

.bm-permission-panel {
    min-width: 0;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #2d2d2d;
    border-radius: 13px;
    background: #111;
}

.bm-permission-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.bm-permission-heading h2,
.bm-permission-heading h3 {
    margin: 0;
}

.bm-permission-kicker {
    margin-bottom: 6px;
    color: #888;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bm-permission-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.bm-permission-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    border-radius: 50%;
    background: #222;
}

.bm-permission-select {
    min-width: 130px;
}

.bm-permission-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-permission-warning,
.bm-permission-note,
.bm-security-note {
    margin-top: 13px;
    padding: 12px 14px;
    border: 1px solid #343434;
    border-radius: 8px;
    background: #181818;
    color: #aaa;
    font-size: 11px;
    line-height: 1.6;
}

.bm-permission-owner {
    color: #e5e5e5;
    font-weight: 700;
}

.bm-permission-remove {
    border-color: #4b3030 !important;
    background: #211515 !important;
    color: #e7bcbc !important;
}

.bm-permission-remove:hover {
    background: #321c1c !important;
    color: white !important;
}

/* =========================================================
   LOGIN / LANDING PAGE
   ========================================================= */

.site-shell,
.login,
.hero {
    width: 100%;
    min-width: 0;
}

.site-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 48px 20px;
    text-align: center;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    letter-spacing: -.06em;
    line-height: 1.05;
}

.hero p {
    max-width: 620px;
    color: #a2a2a2;
    font-size: 15px;
}

.login,
.login-card {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #303030;
    border-radius: 16px;
    background: linear-gradient(145deg, #171717, #101010);
    box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.login h1,
.login-card h1 {
    margin-top: 0;
    font-size: 25px;
}

.login-button,
.oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1px solid #484848;
    border-radius: 9px;
    background: #e8e8e8;
    color: #111;
    font-weight: 750;
    text-align: center;
}

.login-button:hover,
.oauth-button:hover {
    background: #fff;
    color: #000;
}

.page-footer,
.bm-footer {
    padding: 20px 12px;
    color: #777;
    font-size: 11px;
    text-align: center;
}

.notice,
.bm-notice {
    margin: 0 0 18px;
    padding: 12px 15px;
    border: 1px solid #414141;
    border-radius: 9px;
    background: #1b1b1b;
    color: #e5e5e5;
    font-size: 12px;
}

.notice.error,
.bm-notice.error,
.notice.danger {
    border-color: #503333;
    background: #211515;
    color: #f0c4c4;
}

.notice.success,
.bm-notice.success {
    border-color: #3b3b3b;
    background: #191919;
    color: #e0e0e0;
}

.welcome-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid #393939;
    border-radius: 12px;
    background: #222;
}

/* =========================================================
   SMALL COMPONENTS / SAFETY
   ========================================================= */

.bm-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bm-user-avatar {
    width: 42px;
    height: 42px;
}

.bm-user-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bm-user-meta strong {
    display: block;
    color: #eee;
}

.bm-user-meta span {
    display: block;
    color: #888;
    font-size: 11px;
}

.bm-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bm-footer {
    border-top: 1px solid #252525;
}

form {
    min-width: 0;
}

form > * {
    max-width: 100%;
}

form p {
    margin-top: 5px;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #303030;
    border-radius: 10px;
}

legend {
    padding: 0 8px;
    color: #ddd;
    font-weight: 650;
}

details {
    padding: 12px 0;
    border-bottom: 1px solid #292929;
}

summary {
    color: #e5e5e5;
    cursor: pointer;
    font-weight: 650;
}

summary:hover {
    color: white;
}

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

.command-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    background: #151515;
    transition: border-color var(--transition), background var(--transition);
}

.command-card:hover {
    border-color: #454545;
    background: #191919;
}

.command-card h3 {
    margin: 0 0 7px;
}

.command-card p {
    margin: 0;
    color: #969696;
    font-size: 12px;
}

.command-symbol {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border: 1px solid #363636;
    border-radius: 9px;
    background: #222;
    color: #ddd;
}

/* Avoid oversized embedded content */
iframe,
canvas,
pre {
    max-width: 100%;
}

pre {
    overflow: auto;
    padding: 14px;
    border: 1px solid #2d2d2d;
    border-radius: 9px;
    background: #0b0b0b;
    color: #ddd;
}

/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (min-width: 1600px) {
    :root {
        --sidebar-width: 250px;
    }

    .main-content,
    .bm-main {
        padding-left: 42px;
        padding-right: 42px;
    }
}

@media (max-width: 1200px) {
    :root {
        --sidebar-width: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-content,
    .bm-main {
        padding: 24px 20px 30px;
    }

    .panel,
    .bm-card,
    .command-panel {
        padding: 18px;
    }
}

@media (max-width: 900px) {
    :root {
        --sidebar-width: 175px;
    }

    .sidebar,
    .bm-sidebar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-item,
    .bm-nav a {
        gap: 8px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }

    .bm-server-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .two-col,
    .custom-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 650px) {
    :root {
        --sidebar-width: 100%;
        --topbar-height: auto;
    }

    .topbar {
        min-height: 58px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }

    .topbar-right {
        flex-wrap: wrap;
        gap: 8px;
    }

    .app-layout,
    .bm-shell {
        flex-direction: column !important;
        min-height: 0;
    }

    .sidebar,
    .bm-sidebar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto;
        max-height: 32dvh;
        padding: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .bm-brand {
        margin: 0 5px 12px;
    }

    .side-label,
    .bm-nav-label {
        margin-top: 10px;
    }

    .main-content,
    .bm-main {
        flex: 1 1 auto !important;
        width: 100%;
        max-width: 100%;
        padding: 18px 14px 26px;
    }

    .stats-grid,
    .command-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card {
        padding: 16px;
    }

    .panel,
    .bm-card,
    .command-panel,
    .bm-permission-panel {
        padding: 16px;
    }

    .page-heading {
        margin-bottom: 20px;
    }

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

    .bm-hero-actions,
    .form-actions,
    .custom-actions {
        width: 100%;
    }

    .bm-hero-actions > *,
    .form-actions > *,
    .custom-actions > * {
        max-width: 100%;
    }

    .welcome-panel {
        align-items: flex-start;
    }

    .bm-detail-row {
        gap: 12px;
    }

    .bm-detail-row > :last-child {
        max-width: 60%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Warning activity chart */
.activity-panel {
    margin: 24px 0;
    padding: 26px;
    overflow: hidden;
}
.activity-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.activity-heading h2 {
    margin: 5px 0 7px;
    color: #f5f5f5;
    font-size: 21px;
    letter-spacing: -0.035em;
}
.activity-heading p { margin: 0; }
.activity-eyebrow {
    color: #a3a3a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}
.activity-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #303030;
    border-radius: 999px;
    color: #bdbdbd;
    font-size: 11px;
    white-space: nowrap;
}
.activity-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4d4d4;
    box-shadow: 0 0 10px #ffffff22;
}
.activity-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 4px;
}
.activity-total {
    display: block;
    color: #fafafa;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1.1;
}
.activity-total-label, .activity-refresh {
    color: #888;
    font-size: 12px;
}
.activity-refresh { padding-bottom: 4px; }
.activity-chart-wrap { width: 100%; min-width: 0; }
.activity-chart { display: block; width: 100%; height: auto; overflow: visible; }
.activity-gridline { stroke: #292929; stroke-width: 1; }
.activity-axis-label { fill: #858585; font-size: 12px; }
.activity-line {
    fill: none;
    stroke: #e5e5e5;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.activity-area { fill: #d4d4d4; opacity: .08; }
.activity-point {
    fill: #111;
    stroke: #f5f5f5;
    stroke-width: 2.5;
}
.activity-empty-label { fill: #888; font-size: 14px; }
.activity-chart-message { fill: #999; font-size: 14px; }
.activity-footnote {
    margin: 5px 0 0;
    color: #777;
    font-size: 11px;
}
@media (max-width: 650px) {
    .activity-panel { padding: 18px 14px; }
    .activity-heading { flex-direction: column; }
    .activity-summary { align-items: flex-start; flex-direction: column; gap: 7px; }
    .activity-chart { min-height: 150px; }
    .activity-axis-label { font-size: 10px; }
}

/* ==========================================================
   BIG MIKE BOT — PREMIUM DARK CONTROL CENTER
   Visual-only overrides; preserve existing layout and behavior
   ========================================================== */

:root {
    color-scheme: dark;
    --bm-bg: #090909;
    --bm-surface: #101010;
    --bm-surface-raised: #151515;
    --bm-surface-hover: #1b1b1b;
    --bm-border: #292929;
    --bm-border-light: #383838;
    --bm-text: #f5f5f5;
    --bm-muted: #929292;
    --bm-accent: #dedede;
    --bm-radius: 16px;
    --bm-radius-small: 11px;
    --bm-shadow: 0 16px 44px rgba(0, 0, 0, .2);
}

/* Base typography and surfaces */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    background: var(--bm-bg);
}

body {
    background:
        radial-gradient(ellipse at 78% -15%, rgba(255,255,255,.045), transparent 42%),
        var(--bm-bg);
    color: var(--bm-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: #dedede;
    color: #101010;
}

a {
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

button, input, select, textarea {
    font: inherit;
}

button, .button, a.button,
.bm-primary-action, .bm-secondary-action {
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #dedede;
    outline-offset: 3px;
}

/* Main page hierarchy */
.main-content {
    min-width: 0;
    padding-top: 34px;
    padding-bottom: 48px;
}

.page-heading {
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.page-heading h1 {
    color: #fafafa;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: 1.13;
    margin: 9px 0 10px;
}

.page-heading p,
.muted {
    color: var(--bm-muted);
    line-height: 1.7;
}

.breadcrumb {
    color: #888;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .17em;
}

.breadcrumb span {
    color: #555;
    padding: 0 7px;
}

/* Server hero */
.bm-server-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 225px;
    padding: clamp(25px, 4vw, 42px);
    margin-bottom: 22px;
    border: 1px solid #303030;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 88% 30%, rgba(255,255,255,.075), transparent 32%),
        linear-gradient(125deg, #181818 0%, #111 55%, #0c0c0c 100%);
    box-shadow: var(--bm-shadow);
}

.bm-server-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 12%;
    top: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(255,255,255,.018),
        0 0 0 66px rgba(255,255,255,.012);
    pointer-events: none;
}

.bm-hero-copy {
    min-width: 0;
    max-width: 690px;
}

.bm-eyebrow {
    color: #b8b8b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.bm-hero-copy h2 {
    margin: 16px 0 11px;
    color: #fafafa;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 760;
    letter-spacing: -.05em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.bm-hero-copy p {
    max-width: 570px;
    color: #a0a0a0;
    font-size: 13px;
    line-height: 1.8;
}

.bm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.bm-primary-action,
.bm-secondary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bm-primary-action {
    color: #101010;
    background: #f0f0f0;
    border: 1px solid #f0f0f0;
}

.bm-primary-action:hover {
    color: #000;
    background: #fff;
    box-shadow: 0 5px 22px #ffffff12;
    transform: translateY(-1px);
}

.bm-secondary-action {
    color: #e0e0e0;
    background: #ffffff06;
    border: 1px solid #3a3a3a;
}

.bm-secondary-action:hover {
    background: #ffffff0c;
    border-color: #626262;
}

.bm-hero-status {
    position: relative;
    z-index: 1;
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.bm-status-orbit {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border: 1px solid #484848;
    border-radius: 24px;
    background: linear-gradient(145deg, #262626, #101010);
    box-shadow: inset 0 1px #ffffff12, 0 12px 30px #0006;
}

.bm-status-orbit span {
    color: #f5f5f5;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.08em;
}

.bm-status-label {
    margin-top: 5px;
    color: #777;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.bm-hero-status strong {
    font-size: 13px;
}

.bm-hero-status small {
    color: #888;
    font-size: 11px;
}

/* Summary cards */
.stats-grid {
    gap: 14px;
    margin: 0 0 24px;
}

.stat-card {
    position: relative;
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: linear-gradient(145deg, #141414, #0f0f0f);
    box-shadow: 0 8px 24px #0002;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #444;
    background: linear-gradient(145deg, #191919, #111);
}

.stat-top {
    gap: 12px;
    color: #929292;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.stat-icon {
    width: 31px;
    height: 31px;
    display: inline-grid;
    flex: 0 0 31px;
    place-items: center;
    border: 1px solid #333;
    border-radius: 9px;
    background: #ffffff06;
    color: #e0e0e0;
}

.stat-icon.cyan,
.stat-icon.green,
.stat-icon.blue {
    color: #e0e0e0;
    background: #ffffff06;
}

.stat-value {
    margin-top: 19px;
    color: #f5f5f5;
    font-size: clamp(23px, 2.2vw, 31px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.stat-server-name {
    font-size: clamp(17px, 1.6vw, 23px);
}

.stat-caption {
    margin-top: 9px;
    color: #858585;
    font-size: 11px;
    line-height: 1.6;
}

/* Panels and section headings */
.panel {
    min-width: 0;
    margin-bottom: 22px;
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: linear-gradient(155deg, #131313, #0e0e0e);
    box-shadow: 0 10px 30px #0002;
}

.panel-heading {
    align-items: center;
    gap: 14px;
    padding-bottom: 19px;
    margin-bottom: 21px;
    border-bottom: 1px solid #252525;
}

.panel-heading h2,
.panel-heading h3 {
    color: #f3f3f3;
    font-size: 17px;
    font-weight: 730;
    letter-spacing: -.025em;
}

.panel-heading p {
    margin-top: 5px;
    color: #888;
    font-size: 12px;
    line-height: 1.65;
}

.heading-icon {
    width: 39px;
    height: 39px;
    display: grid;
    flex: 0 0 39px;
    place-items: center;
    border: 1px solid #353535;
    border-radius: 12px;
    color: #e2e2e2;
    background: linear-gradient(145deg, #242424, #141414);
}

.heading-icon.cyan {
    color: #e2e2e2;
    background: linear-gradient(145deg, #242424, #141414);
}

.count-badge {
    margin-left: auto;
    padding: 7px 10px;
    border: 1px solid #343434;
    border-radius: 8px;
    background: #ffffff05;
    color: #aaa;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    white-space: nowrap;
}

/* Welcome / empty state */
.welcome-panel {
    padding: clamp(28px, 5vw, 50px);
    text-align: left;
    background:
        radial-gradient(ellipse at 90% 0%, #ffffff0b, transparent 38%),
        linear-gradient(145deg, #151515, #0d0d0d);
}

.welcome-symbol {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border: 1px solid #393939;
    border-radius: 16px;
    background: #ffffff08;
    color: #eee;
    font-size: 23px;
}

.welcome-panel h2 {
    margin: 10px 0;
    color: #f5f5f5;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.045em;
}

.welcome-panel p {
    max-width: 660px;
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}

.welcome-panel .button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin-top: 20px;
    padding: 0 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #eee;
    color: #111;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.welcome-panel .button:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* Forms and configuration controls */
form label,
.field-label,
label {
    color: #c8c8c8;
    font-size: 12px;
    font-weight: 650;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #0b0b0b;
    color: #f1f1f1;
    box-shadow: inset 0 1px 2px #0003;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.65;
}

input::placeholder,
textarea::placeholder {
    color: #626262;
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
    border-color: #484848;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: #777;
    background: #101010;
    box-shadow: 0 0 0 3px #ffffff0a;
    outline: none;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #e5e5e5;
}

button,
button[type="submit"],
input[type="submit"] {
    cursor: pointer;
}

button:not(:disabled):hover {
    filter: brightness(1.12);
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.field-help {
    color: #858585;
    font-size: 11px;
    line-height: 1.7;
}

/* Custom commands and command directory */
.command-grid {
    gap: 12px;
}

.command-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid #292929;
    border-radius: 13px;
    background: linear-gradient(145deg, #151515, #101010);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    border-color: #464646;
    background: #171717;
}

.command-symbol {
    width: 34px;
    height: 34px;
    display: inline-grid;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #333;
    border-radius: 10px;
    background: #ffffff06;
    color: #e6e6e6;
}

.command-card code {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #090909;
    color: #eee;
    font-size: 11px;
}

.command-card p {
    margin-top: 9px;
    color: #929292;
    font-size: 12px;
    line-height: 1.7;
}

.permission-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 8px;
    border: 1px solid #303030;
    border-radius: 6px;
    background: #ffffff04;
    color: #a2a2a2;
    font-size: 10px;
}

.command-footnote {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #262626;
}

/* Tables, notices, server status */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: #8f8f8f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
}

td {
    color: #d0d0d0;
    font-size: 12px;
    line-height: 1.65;
}

th, td {
    padding: 13px 12px;
    border-bottom: 1px solid #282828;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #ffffff04;
}

.notice {
    padding: 14px 16px;
    border: 1px solid #383838;
    border-radius: 11px;
    background: #ffffff05;
    color: #dedede;
    font-size: 12px;
    line-height: 1.7;
}

.notice.warning {
    border-color: #554b3c;
    background: #a88a4c0b;
    color: #d8c6a5;
}

.server-status {
    padding: 9px 12px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #ffffff05;
    color: #c5c5c5;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.server-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #d5d5d5;
}

.server-status.offline i {
    background: #777;
}

.page-footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #242424;
    color: #777;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .13em;
}

.page-footer span {
    padding: 0 7px;
    color: #4b4b4b;
}

/* Keep the existing sidebar geometry, polish only its surfaces */
.sidebar {
    background: #0b0b0b;
    border-right-color: #262626;
}

.sidebar a,
.sidebar button {
    border-radius: 9px;
    transition: background .16s ease, color .16s ease;
}

.sidebar a:hover,
.sidebar button:hover {
    background: #ffffff08;
}

/* Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: #393939 #0b0b0b;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #0b0b0b;
    border-radius: 999px;
    background: #393939;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Responsive finishing touches */
@media (min-width: 1500px) {
    .main-content {
        max-width: 1800px;
    }

    .stats-grid {
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .bm-server-hero {
        align-items: flex-start;
    }

    .bm-hero-status {
        flex-basis: 120px;
    }

    .stat-card {
        padding: 17px;
    }
}

@media (max-width: 650px) {
    .main-content {
        padding-top: 22px;
        padding-bottom: 30px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .bm-server-hero {
        flex-direction: column;
        padding: 23px;
        border-radius: 15px;
    }

    .bm-hero-status {
        align-items: flex-start;
        flex-basis: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
    }

    .bm-status-orbit {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .bm-status-orbit span {
        font-size: 17px;
    }

    .bm-status-label {
        align-self: center;
        margin: 0;
    }

    .bm-hero-status strong,
    .bm-hero-status small {
        align-self: center;
    }

    .panel {
        padding: 18px;
        border-radius: 13px;
    }

    .panel-heading {
        align-items: flex-start;
    }

    .count-badge {
        display: none;
    }

    .command-card {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   BIG MIKE BOT — PREMIUM CONTROL CENTER V2
   Unified surfaces, hierarchy, spacing and interactions.
   Keeps existing sidebar geometry and application behavior.
   ========================================================= */

:root {
    --bg: #080808;
    --bg-raised: #0c0c0c;
    --surface: #101010;
    --surface-2: #151515;
    --surface-3: #1b1b1b;
    --surface-hover: #202020;
    --border: #262626;
    --border-strong: #3a3a3a;
    --text: #f5f5f5;
    --text-secondary: #b0b0b0;
    --muted: #858585;
    --accent: #e6e6e6;
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 19px;
    --shadow: 0 16px 42px #0005;
}

/* Overall canvas */
html {
    background: var(--bg);
    scroll-padding-top: 85px;
}

body {
    background:
        radial-gradient(ellipse at 75% -12%, #ffffff0a, transparent 42%),
        #080808;
    color: var(--text);
    font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont,
        Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -.008em;
}

::selection {
    background: #dedede;
    color: #090909;
}

/* Top bar: restrained, clean, and consistent */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 70px;
    padding: 0 28px;
    background: rgba(10, 10, 10, .94);
    border-bottom: 1px solid #252525;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border: 1px solid #484848;
    border-radius: 12px;
    background: linear-gradient(145deg, #292929, #111);
    color: #f8f8f8;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: -.07em;
    box-shadow: inset 0 1px #ffffff12, 0 5px 16px #0004;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.brand-copy strong {
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 760;
    letter-spacing: -.02em;
}

.brand-copy small {
    color: #777;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .15em;
}

.topbar-right {
    gap: 17px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #2c2c2c;
    border-radius: 999px;
    background: #ffffff04;
    color: #aaa;
    font-size: 10px;
    font-weight: 650;
}

.status-indicator i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dedede;
    box-shadow: 0 0 10px #ffffff25;
}

.user {
    gap: 10px;
}

.avatar {
    border: 1px solid #3a3a3a;
    box-shadow: 0 0 0 3px #ffffff04;
}

.avatar-fallback {
    display: inline-grid;
    place-items: center;
    background: #202020;
    color: #eee;
    font-weight: 750;
}

.user-name {
    max-width: 170px;
    overflow: hidden;
    color: #dedede;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout {
    padding: 7px 10px;
    border: 1px solid #303030;
    border-radius: 8px;
    color: #aaa;
    font-size: 11px;
    transition: .18s ease;
}

.logout:hover {
    border-color: #505050;
    background: #ffffff08;
    color: #fff;
}

/* Sidebar: preserve the established fixed positioning */
.sidebar {
    background: linear-gradient(180deg, #0d0d0d, #090909);
    border-right: 1px solid #252525;
    padding: 24px 13px 15px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.sidebar .side-label {
    padding: 0 12px;
    margin: 9px 0 12px;
    color: #707070;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.sidebar .server-label {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 3px 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 570;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.nav-item:hover {
    background: #ffffff07;
    border-color: #242424;
    color: #f5f5f5;
}

.nav-item.active,
.nav-item[aria-current="page"] {
    background: linear-gradient(100deg, #ffffff0d, #ffffff04);
    border-color: #333;
    color: #fff;
    box-shadow: inset 0 1px #ffffff05;
}

.nav-item.active::before,
.nav-item[aria-current="page"]::before {
    width: 2px;
    border-radius: 0 3px 3px 0;
    background: #e5e5e5;
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #aaa;
    font-size: 15px;
}

.nav-item.active .nav-icon {
    border-color: #373737;
    background: #ffffff08;
    color: #f4f4f4;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 43px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #aaa;
    transition: background .16s ease, border-color .16s ease;
}

.server-link:hover {
    border-color: #292929;
    background: #ffffff06;
    color: #fff;
}

.server-link.active {
    border-color: #363636;
    background: linear-gradient(110deg, #ffffff0b, #ffffff03);
    color: #f5f5f5;
}

.server-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 9px;
    object-fit: cover;
}

.server-placeholder {
    display: inline-grid;
    place-items: center;
    border: 1px solid #393939;
    background: linear-gradient(145deg, #252525, #111);
    color: #e6e6e6;
    font-size: 11px;
    font-weight: 750;
}

.server-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 570;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-dot,
.server-invite {
    flex: 0 0 auto;
}

.server-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d7d7d7;
}

.server-invite {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid #454545;
    border-radius: 6px;
    color: #aaa;
    font-size: 10px;
}

.sidebar-footer {
    gap: 11px;
    margin-top: 24px;
    padding: 15px 8px 5px;
    border-top: 1px solid #252525;
}

.brand-mark.mini {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 10px;
}

.sidebar-footer strong {
    display: block;
    color: #ddd;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-footer small {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 10px;
}

/* Main content and page heading */
.main-content {
    min-width: 0;
    padding: 34px clamp(20px, 3.2vw, 48px) 48px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.breadcrumb {
    color: #858585;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.breadcrumb span {
    margin: 0 7px;
    color: #4f4f4f;
}

.page-heading h1 {
    margin: 10px 0 8px;
    color: #f8f8f8;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: 1.13;
    overflow-wrap: anywhere;
}

.page-heading p {
    margin: 0;
    color: #929292;
    font-size: 12px;
    line-height: 1.8;
}

/* Hero: give the selected server a strong visual anchor */
.bm-server-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 230px;
    padding: clamp(25px, 4vw, 43px);
    margin-bottom: 21px;
    border: 1px solid #303030;
    border-radius: 19px;
    background:
        radial-gradient(ellipse at 82% 18%, #ffffff0a, transparent 35%),
        linear-gradient(120deg, #191919, #111 58%, #0d0d0d);
    box-shadow: 0 14px 38px #0003;
}

.bm-server-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 10%;
    top: -150px;
    width: 330px;
    height: 330px;
    border: 1px solid #ffffff0a;
    border-radius: 50%;
    box-shadow: 0 0 0 36px #ffffff03, 0 0 0 74px #ffffff02;
    pointer-events: none;
}

.bm-hero-copy h2 {
    margin: 15px 0 10px;
    color: #fafafa;
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 780;
    letter-spacing: -.05em;
    line-height: 1.15;
}

.bm-hero-copy p {
    max-width: 590px;
    color: #a1a1a1;
    font-size: 12px;
    line-height: 1.85;
}

.bm-eyebrow {
    color: #bcbcbc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.bm-hero-actions {
    gap: 9px;
    margin-top: 22px;
}

.bm-primary-action,
.bm-secondary-action {
    min-height: 41px;
    padding: 0 15px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
}

.bm-primary-action {
    border: 1px solid #eee;
    background: #eee;
    color: #111;
}

.bm-primary-action:hover {
    transform: translateY(-1px);
    background: #fff;
    color: #000;
    box-shadow: 0 7px 20px #ffffff0d;
}

.bm-secondary-action {
    border: 1px solid #383838;
    background: #ffffff04;
    color: #ddd;
}

.bm-secondary-action:hover {
    border-color: #555;
    background: #ffffff09;
}

.bm-status-orbit {
    border-color: #424242;
    border-radius: 22px;
    background: linear-gradient(145deg, #292929, #101010);
    box-shadow: inset 0 1px #ffffff12, 0 12px 28px #0006;
}

.bm-status-orbit span {
    color: #f5f5f5;
    font-weight: 850;
}

.bm-status-label {
    color: #777;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
}

/* Stats: consistent card heights and restrained hover */
.stats-grid {
    gap: 13px;
    margin: 0 0 23px;
}

.stat-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #292929;
    border-radius: 14px;
    background: linear-gradient(145deg, #141414, #0e0e0e);
    box-shadow: 0 7px 20px #0002;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #414141;
    background: linear-gradient(145deg, #191919, #111);
}

.stat-top {
    color: #888;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.stat-icon {
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid #343434;
    border-radius: 9px;
    background: #ffffff06;
    color: #ddd;
}

.stat-icon.cyan,
.stat-icon.green,
.stat-icon.blue {
    background: #ffffff06;
    color: #ddd;
}

.stat-value {
    margin-top: 17px;
    color: #f6f6f6;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 770;
    letter-spacing: -.05em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.stat-server-name {
    font-size: clamp(16px, 1.4vw, 22px);
}

.stat-caption {
    margin-top: 9px;
    color: #858585;
    font-size: 10px;
    line-height: 1.65;
}

/* Panels: consistent border, radius and heading system */
.panel {
    min-width: 0;
    margin-bottom: 21px;
    padding: clamp(19px, 2.4vw, 28px);
    border: 1px solid #292929;
    border-radius: 15px;
    background: linear-gradient(155deg, #131313, #0d0d0d);
    box-shadow: 0 8px 26px #0002;
}

.panel-heading {
    gap: 13px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #252525;
}

.panel-heading h2,
.panel-heading h3 {
    color: #f0f0f0;
    font-size: 16px;
    font-weight: 740;
    letter-spacing: -.025em;
}

.panel-heading p {
    margin-top: 5px;
    color: #888;
    font-size: 11px;
    line-height: 1.7;
}

.heading-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #343434;
    border-radius: 11px;
    background: linear-gradient(145deg, #242424, #141414);
    color: #e5e5e5;
}

.heading-icon.cyan {
    background: linear-gradient(145deg, #242424, #141414);
    color: #e5e5e5;
}

.count-badge {
    padding: 6px 9px;
    margin-left: auto;
    border: 1px solid #333;
    border-radius: 7px;
    background: #ffffff04;
    color: #aaa;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
}

/* Forms */
label,
.field-label {
    color: #c9c9c9;
    font-size: 11px;
    font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    max-width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 9px;
    background: #0b0b0b;
    color: #f1f1f1;
    box-shadow: inset 0 1px 2px #0003;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

textarea {
    min-height: 100px;
    line-height: 1.7;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #636363;
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
    border-color: #484848;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: #737373;
    background: #101010;
    box-shadow: 0 0 0 3px #ffffff0a;
    outline: none;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #ddd;
}

.field-help {
    color: #838383;
    font-size: 10px;
    line-height: 1.7;
}

/* Buttons, notices, and links */
button,
.button,
input[type="submit"] {
    transition: background .17s ease, border-color .17s ease,
        color .17s ease, transform .17s ease;
}

button:not(:disabled):active,
.button:active {
    transform: translateY(1px);
}

.notice {
    padding: 13px 15px;
    border: 1px solid #383838;
    border-radius: 10px;
    background: #ffffff05;
    color: #ddd;
    font-size: 11px;
    line-height: 1.7;
}

.notice.warning {
    border-color: #4c4436;
    background: #a88a4c0a;
    color: #d8c6a5;
}

.server-status {
    padding: 8px 11px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #ffffff04;
    color: #c9c9c9;
    font-size: 10px;
    font-weight: 700;
}

.server-status i {
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #d5d5d5;
}

.server-status.offline i {
    background: #777;
}

/* Command directory */
.command-grid {
    gap: 12px;
}

.command-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #292929;
    border-radius: 12px;
    background: linear-gradient(145deg, #151515, #101010);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    border-color: #454545;
    background: #171717;
}

.command-symbol {
    display: inline-grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    border: 1px solid #343434;
    border-radius: 9px;
    background: #ffffff05;
    color: #e6e6e6;
}

.command-card code {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid #303030;
    border-radius: 6px;
    background: #090909;
    color: #eee;
    font-size: 10px;
}

.command-card p {
    margin-top: 8px;
    color: #929292;
    font-size: 11px;
    line-height: 1.7;
}

.permission-tag {
    display: inline-block;
    margin-top: 9px;
    padding: 4px 7px;
    border: 1px solid #303030;
    border-radius: 6px;
    background: #ffffff03;
    color: #a2a2a2;
    font-size: 9px;
}

.command-footnote {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #262626;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: #888;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
}

td {
    color: #d0d0d0;
    font-size: 11px;
    line-height: 1.65;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #272727;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #ffffff04;
}

/* Activity chart refinements */
.activity-panel {
    padding: clamp(19px, 2.4vw, 28px);
    border-color: #2b2b2b;
    background:
        radial-gradient(ellipse at 100% 0%, #ffffff05, transparent 35%),
        linear-gradient(155deg, #131313, #0d0d0d);
}

.activity-heading h2 {
    color: #f5f5f5;
    font-size: 18px;
    letter-spacing: -.035em;
}

.activity-total {
    color: #fafafa;
    font-size: 36px;
    font-weight: 780;
    letter-spacing: -.055em;
}

.activity-live {
    border-color: #343434;
    background: #ffffff04;
}

.activity-gridline {
    stroke: #282828;
}

.activity-line {
    stroke: #e4e4e4;
    stroke-width: 2.5;
}

.activity-area {
    fill: #e0e0e0;
    opacity: .07;
}

.activity-point {
    fill: #121212;
    stroke: #eee;
}

.activity-footnote {
    color: #777;
}

/* Welcome state */
.welcome-panel {
    padding: clamp(28px, 4.5vw, 48px);
    border-color: #303030;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 90% 0%, #ffffff0a, transparent 40%),
        linear-gradient(145deg, #151515, #0d0d0d);
}

.welcome-symbol {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-bottom: 22px;
    border: 1px solid #3b3b3b;
    border-radius: 14px;
    background: #ffffff06;
    color: #eee;
    font-size: 21px;
}

.welcome-panel h2 {
    margin: 10px 0;
    color: #f5f5f5;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 770;
    letter-spacing: -.045em;
}

.welcome-panel p {
    max-width: 660px;
    color: #999;
    font-size: 12px;
    line-height: 1.85;
}

.welcome-panel .button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 41px;
    margin-top: 20px;
    padding: 0 15px;
    border: 1px solid #eee;
    border-radius: 9px;
    background: #eee;
    color: #111;
    font-size: 11px;
    font-weight: 750;
}

.welcome-panel .button:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* Footer */
.page-footer {
    margin-top: 30px;
    padding-top: 17px;
    border-top: 1px solid #252525;
    color: #777;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .14em;
}

.page-footer span {
    padding: 0 7px;
    color: #4c4c4c;
}

/* Consistent scrollbars */
* {
    scrollbar-color: #383838 #0b0b0b;
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #0b0b0b;
}

*::-webkit-scrollbar-thumb {
    border: 2px solid #0b0b0b;
    border-radius: 20px;
    background: #383838;
}

*::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Responsive layout polish */
@media (min-width: 1500px) {
    .main-content {
        max-width: 1850px;
    }

    .stats-grid {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .topbar {
        padding: 0 18px;
    }

    .main-content {
        padding-right: 22px;
        padding-left: 22px;
    }

    .bm-server-hero {
        gap: 18px;
    }

    .bm-hero-status {
        flex-basis: 115px;
    }
}

@media (max-width: 650px) {
    .topbar {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding: 13px 16px;
    }

    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .status-indicator {
        padding: 6px 9px;
        font-size: 9px;
    }

    .user-name {
        max-width: 100px;
    }

    .main-content {
        padding: 23px 15px 32px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .bm-server-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
        border-radius: 15px;
    }

    .bm-hero-status {
        flex-basis: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 9px;
        text-align: left;
    }

    .bm-status-orbit {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

    .bm-status-orbit span {
        font-size: 16px;
    }

    .bm-status-label {
        margin: 0;
    }

    .panel {
        padding: 17px;
        border-radius: 12px;
    }

    .panel-heading {
        align-items: flex-start;
    }

    .count-badge {
        display: none;
    }

    .activity-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .activity-chart {
        min-height: 140px;
    }

    .activity-axis-label {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
