
/* ==========================================================
   REEDROUX CUSTOM BOT DASHBOARD
   NEON BLACK EDITION
   ========================================================== */

/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
    color-scheme: dark;

    --bg: #000000;
    --sidebar: #020202;

    --surface: #050505;
    --surface2: #080808;
    --surface3: #0d0d0d;

    --border: #181818;
    --border-hover: #303030;

    --text: #ffffff;
    --muted: #858585;
    --subtle: #666666;

    --red: #ff1738;
    --red-hover: #ff3854;
    --red-dark: #e00025;
    --red-soft: rgba(255, 23, 56, 0.10);
    --red-border: rgba(255, 23, 56, 0.25);

    --green: #36c78b;
    --yellow: #e6b968;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;

    --sidebar-width: 256px;

    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --transition: 180ms ease;
}

/* ==========================================================
   GLOBAL
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #000000;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font:
        13px Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

h1,
h2,
h3 {
    margin-top: 0;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.15;
    font-weight: 800;
}

h2 {
    font-size: 20px;
    font-weight: 750;
}

::selection {
    background: rgba(255, 23, 56, 0.35);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* ==========================================================
   SCROLLBAR
   ========================================================== */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #202020;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #202020 transparent;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

.eyebrow {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    min-height: 42px;
    padding: 0 17px;

    border: 1px solid var(--red);
    border-radius: var(--radius-sm);

    background: var(--red);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.btn:hover:not(:disabled) {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.btn:active:not(:disabled) {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn.secondary {
    background: #0b0b0b;
    border-color: #292929;
    color: #eeeeee;
}

.btn.secondary:hover:not(:disabled) {
    background: #141414;
    border-color: var(--red);
    color: #ffffff;
}

.btn.small-btn {
    min-height: 36px;
    padding: 0 13px;
    font-size: 11px;
}

.back-to-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-to-dashboard-heading {
    margin-top: 17px;
}

.btn svg,
.nav svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* ==========================================================
   INPUTS
   ========================================================== */

.input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;

    background: #030303;
    color: #ffffff;

    border: 1px solid #242424;
    border-radius: var(--radius-sm);

    font-size: 12px;

    transition:
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.input::placeholder {
    color: #626262;
}

.input:hover:not(:disabled) {
    border-color: #393939;
}

.input:focus {
    outline: none;
    border-color: var(--red);
    background: #050505;
    box-shadow: 0 0 0 2px rgba(255, 23, 56, 0.12);
}

.input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
    accent-color: var(--red);
}

/* ==========================================================
   BADGES
   ========================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 12px;

    border: 1px solid rgba(54, 199, 139, 0.25);
    border-radius: 6px;

    background: rgba(54, 199, 139, 0.08);
    color: var(--green);

    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge.red {
    background: var(--red-soft);
    color: #ff8496;
    border-color: var(--red-border);
}

.badge.neutral {
    background: #101010;
    color: #aaaaaa;
    border-color: #282828;
}

.badge.good {
    background: rgba(54, 199, 139, 0.08);
    color: var(--green);
    border-color: rgba(54, 199, 139, 0.25);
}

.good {
    color: var(--green);
}

/* ==========================================================
   NOTICES
   ========================================================== */

.notice {
    margin-bottom: 22px;
    padding: 14px 17px;

    border: 1px solid #39131b;
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);

    background: #100508;
    color: #d5b4bb;

    font-size: 12px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.notice.success {
    border-color: rgba(54, 199, 139, 0.25);
    border-left-color: var(--green);
    background: #06150d;
    color: #a1e7c6;
}

.notice.error {
    border-color: rgba(255, 23, 56, 0.35);
    border-left-color: var(--red);
    background: #180509;
    color: #ff9ba7;
}

#message:empty {
    display: none;
}

/* ==========================================================
   LOADING SCREEN
   ========================================================== */

.loading {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #000000;
    text-align: center;
}

.loading img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 12px;

    animation: reedroux-pulse 1.8s ease-in-out infinite;
}

.loading h2 {
    margin: 17px 0 0;

    font-size: 29px;
    font-weight: 850;
    letter-spacing: -1.2px;
}

.loading h2 span,
.brand strong span {
    color: var(--red);
}

.loading p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

@keyframes reedroux-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.97);
    }
}

/* ==========================================================
   APPLICATION LAYOUT
   ========================================================== */

.app {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar {
    position: sticky;
    top: 0;

    display: flex;
    flex-direction: column;

    width: var(--sidebar-width);
    height: 100vh;
    flex-shrink: 0;

    padding: 23px 13px 15px;

    background: var(--sidebar);
    border-right: 1px solid #151515;

    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================================
   BRAND
   ========================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 4px 12px 24px;
}

.brand img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 9px;
}

.brand strong {
    display: block;

    font-size: 21px;
    font-weight: 850;
    letter-spacing: -0.9px;
    line-height: 1.15;
}

.brand small {
    display: block;
    margin-top: 5px;

    color: var(--subtle);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.nav-label {
    margin: 15px 13px 10px;

    color: #666666;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 42px;
    padding: 0 13px;

    border: 1px solid transparent;
    border-radius: 6px;

    color: #929292;
    font-size: 12px;
    font-weight: 600;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.nav a:hover {
    background: #0c0c0c;
    color: #ffffff;
}

.nav a.active {
    background: #180307;
    border-color: #4d0c19;
    color: #ffffff;
    font-weight: 700;
}

.nav a.active svg {
    color: var(--red);
}

/* ==========================================================
   SIDEBAR BOTTOM
   ========================================================== */

.sidebar-bottom {
    margin-top: auto;
    padding-top: 25px;
}

.premium-promo {
    padding: 17px;

    border: 1px solid #42101b;
    border-radius: var(--radius-md);

    background: #090204;
}

.premium-promo strong {
    display: block;
    color: #ffffff;

    font-size: 12px;
    font-weight: 750;
}

.premium-promo p {
    margin: 10px 0 15px;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.premium-promo .btn {
    width: 100%;
    min-height: 36px;
    font-size: 11px;
}

/* ==========================================================
   PROFILE
   ========================================================== */

.profile {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 17px;
    padding: 16px 7px 4px;

    border-top: 1px solid var(--border);
    min-width: 0;
}

.profile > div:last-child {
    min-width: 0;
}

.profile strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    font-weight: 700;
}

.profile small {
    display: block;
    margin-top: 4px;

    color: var(--green);
    font-size: 10px;
}

.avatar {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    flex-shrink: 0;

    overflow: hidden;

    background: #16080c;
    border: 1px solid #39131b;
    border-radius: 50%;

    color: #ffffff;
    font-weight: 750;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================
   MAIN CONTENT
   ========================================================== */

.main {
    flex: 1;
    min-width: 0;
    background: #000000;
}

/* ==========================================================
   TOPBAR
   ========================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    min-height: 70px;
    padding: 14px 32px;

    background: #020202;
    border-bottom: 1px solid #151515;
}

.breadcrumb {
    color: var(--subtle);
    font-size: 12px;
    font-weight: 550;
}

.breadcrumb strong {
    color: #ffffff;
    font-weight: 700;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.connection {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    background: #050505;
    border: 1px solid #202020;
    border-radius: 6px;

    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.connection::before {
    content: "";

    width: 7px;
    height: 7px;
    flex-shrink: 0;

    border-radius: 50%;
    background: var(--yellow);
}

.connection.good::before,
.connection.connected::before,
.connection.online::before {
    background: var(--green);
}

.connection.error::before,
.connection.offline::before,
.connection.disconnected::before {
    background: var(--red);
}

/* ==========================================================
   PAGE CONTENT
   ========================================================== */

.content {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
    padding: 34px 32px 60px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;

    margin-bottom: 25px;
}

.page-heading h1 {
    margin: 9px 0;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.section {
    margin-top: 21px;
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    min-height: 155px;
    padding: 27px 30px;

    border: 1px solid #3d0b15;
    border-left: 3px solid var(--red);
    border-radius: var(--radius-lg);

    background: #090204;
    overflow: hidden;
}

.hero h2 {
    margin: 11px 0;

    font-size: clamp(23px, 3vw, 29px);
    font-weight: 800;
    letter-spacing: -0.9px;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.hero-art {
    display: grid;
    place-items: center;

    width: 82px;
    height: 82px;
    flex-shrink: 0;

    border: 1px solid #430d19;
    border-radius: 10px;

    background: #160308;
    color: var(--red);

    font-size: 40px;
}

/* ==========================================================
   STAT CARDS
   ========================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.stat-card {
    min-width: 0;
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    transition:
        border-color var(--transition),
        background-color var(--transition);
}

.stat-card:hover {
    border-color: #392027;
    background: #080808;
}

.stat-card span {
    display: block;
    color: var(--muted);

    font-size: 11px;
    font-weight: 600;
}

.stat-card strong {
    display: block;
    margin: 13px 0 8px;

    color: #ffffff;

    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.4px;

    overflow-wrap: anywhere;
}

.stat-card small {
    display: block;
    color: var(--subtle);
    font-size: 10px;
}

/* ==========================================================
   GRID
   ========================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}

/* ==========================================================
   PANELS
   ========================================================== */

.panel {
    min-width: 0;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    transition: border-color var(--transition);
}

.panel:hover {
    border-color: #303030;
}

.panel h2 {
    margin: 9px 0;

    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.panel > p {
    max-width: 800px;
    margin: 0 0 22px;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* ==========================================================
   FORMS
   ========================================================== */

.panel label {
    display: block;
    margin: 18px 0 9px;

    color: #dddddd;
    font-size: 12px;
    font-weight: 650;
}

.panel form > .btn {
    margin-top: 20px;
}

#botConfigurationForm {
    max-width: 820px;
}

#botConfigurationForm .detail:first-of-type {
    margin-top: 20px;
}

#tokenSecurityNotice {
    margin-top: 20px;
    margin-bottom: 0;
}

#botControlNotice {
    margin-top: 20px;
    margin-bottom: 0;
}

/* ==========================================================
   COLOR PICKER
   ========================================================== */

.color-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.color-row input[type="color"] {
    width: 48px;
    height: 44px;
    flex-shrink: 0;

    padding: 4px;

    border: 1px solid #242424;
    border-radius: var(--radius-sm);

    background: #030303;
    cursor: pointer;
}

.color-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-row input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
}

.color-row .input {
    flex: 1;
    min-width: 0;
    max-width: 200px;

    font-family: ui-monospace, monospace;
}

/* ==========================================================
   BOT CONTROL PANEL
   ========================================================== */

#botControlPanel > .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

#botControlPanel > .top-actions {
    padding: 4px 0 21px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

#startBotButton {
    background: var(--red);
    border-color: var(--red);
}

#stopBotButton,
#restartBotButton {
    background: #0b0b0b;
    border-color: #292929;
    color: #eeeeee;
}

#stopBotButton:hover:not(:disabled),
#restartBotButton:hover:not(:disabled) {
    background: #141414;
    border-color: var(--red);
}

/* ==========================================================
   BOT PREVIEW
   ========================================================== */

.bot-preview {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 23px;
    padding: 19px;

    border: 1px solid #202020;
    border-radius: 8px;

    background: #030303;
}

.preview-avatar {
    display: grid;
    place-items: center;

    width: 55px;
    height: 55px;
    flex-shrink: 0;

    overflow: hidden;

    border-radius: 50%;
    background: #16080c;
    color: #ffffff;

    font-size: 25px;
}

.preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-preview strong {
    display: block;

    color: #ffffff;
    font-size: 13px;
    font-weight: 750;

    overflow-wrap: anywhere;
}

.bot-preview small {
    display: block;
    margin-top: 6px;

    color: var(--muted);
    font-size: 11px;
}

/* ==========================================================
   EMBED PREVIEW
   ========================================================== */

.embed-preview {
    margin-top: 17px;
    padding: 20px;

    border: 1px solid #202020;
    border-left: 4px solid var(--red);
    border-radius: 7px;

    background: #030303;
    overflow-wrap: anywhere;
}

.embed-preview strong {
    display: block;

    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
}

.embed-preview p {
    margin: 11px 0;

    color: #cccccc;
    font-size: 12px;
}

.embed-preview small {
    color: var(--subtle);
    font-size: 10px;
}

/* ==========================================================
   DETAIL ROWS
   ========================================================== */

.detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.detail:last-child {
    border-bottom: 0;
}

.detail span {
    color: var(--muted);
    font-size: 12px;
}

.detail strong {
    color: #eeeeee;

    font-size: 12px;
    font-weight: 650;
    text-align: right;

    overflow-wrap: anywhere;
}

/* ==========================================================
   LOCKED PREMIUM PANEL
   ========================================================== */

.locked-panel {
    max-width: 850px;
    margin: 18px auto;
    padding: 45px 35px;

    text-align: center;

    border: 1px solid #42101b;
    border-radius: var(--radius-lg);

    background: #050505;
}

.lock-icon {
    display: grid;
    place-items: center;

    width: 65px;
    height: 65px;
    margin: 0 auto 23px;

    border: 1px solid var(--red-border);
    border-radius: 9px;

    background: #160308;
    color: var(--red);

    font-size: 31px;
}

.locked-panel h2 {
    margin: 12px 0;

    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.locked-panel > p {
    max-width: 510px;
    margin: 0 auto 25px;

    font-size: 12px;
    line-height: 1.85;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;

    max-width: 580px;
    margin: 25px auto;

    text-align: left;
}

.feature-grid div {
    padding: 13px 15px;

    border: 1px solid #202020;
    border-radius: 6px;

    background: #090909;
    color: #dddddd;

    font-size: 12px;
}

.price {
    margin: 26px 0;

    color: #ffffff;
    font-size: 36px;
    font-weight: 850;
    letter-spacing: -1.2px;
}

.price small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

/* ==========================================================
   LOGIN VIEW
   ========================================================== */

.login-view {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 22px;

    background: #000000;
}

.login-card {
    width: 100%;
    max-width: 455px;
    padding: 40px 35px;

    text-align: center;

    background: #050505;
    border: 1px solid #202020;
    border-radius: var(--radius-lg);
}

.login-card img {
    width: 68px;
    height: 68px;
    object-fit: contain;

    margin-bottom: 24px;
    border-radius: 10px;
}

.login-card h1 {
    margin: 12px 0;

    font-size: 27px;
    font-weight: 800;
}

.login-card p {
    margin-bottom: 25px;

    font-size: 12px;
    line-height: 1.85;
}

.login-card .btn {
    display: flex;
    width: 100%;
    margin: 10px 0;
}

/* ==========================================================
   TOAST NOTIFICATIONS
   ========================================================== */

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;

    display: grid;
    gap: 10px;

    max-width: calc(100vw - 40px);
}

.toast {
    width: 100%;
    max-width: 360px;
    padding: 15px 18px;

    border: 1px solid #252525;
    border-radius: 7px;

    background: #080808;
    color: #ffffff;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);

    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;

    animation: toast-enter 220ms ease-out;
}

.toast.success {
    border-color: rgba(54, 199, 139, 0.4);
}

.toast.error {
    border-color: rgba(255, 23, 56, 0.5);
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
    margin-top: 38px;
    padding-top: 23px;

    border-top: 1px solid var(--border);

    color: var(--subtle);
    font-size: 11px;
    text-align: center;
}

/* ==========================================================
   RESPONSIVE - DESKTOP
   ========================================================== */

@media (max-width: 1200px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content {
        padding: 29px 25px 55px;
    }

    .topbar {
        padding: 14px 25px;
    }
}

/* ==========================================================
   RESPONSIVE - TABLETS
   ========================================================== */

@media (max-width: 900px) {
    :root {
        --sidebar-width: 215px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-left: 9px;
        padding-right: 9px;
    }

    .premium-promo {
        padding: 13px;
    }

    .brand strong {
        font-size: 19px;
    }
}

/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 700px) {
    .app {
        display: block;
    }

    .sidebar {
        position: relative;

        width: 100%;
        height: auto;
        max-height: none;

        padding: 14px;

        border-right: 0;
        border-bottom: 1px solid var(--border);

        overflow: visible;
    }

    .brand {
        padding: 0 4px 15px;
    }

    .sidebar .nav-label,
    .sidebar-bottom {
        display: none;
    }

    .sidebar .nav {
        flex-direction: row;
        gap: 7px;

        overflow-x: auto;
        padding-bottom: 7px;
    }

    .sidebar .nav a {
        min-height: 36px;
        flex-shrink: 0;

        padding: 0 11px;

        font-size: 11px;
        white-space: nowrap;
    }

    .sidebar .nav + .nav-label + .nav {
        margin-top: 6px;
    }

    .main {
        width: 100%;
    }

    .topbar {
        position: relative;

        min-height: 60px;
        padding: 13px 17px;

        flex-wrap: wrap;
    }

    .content {
        padding: 24px 17px 42px;
    }

    .page-heading {
        align-items: flex-start;
    }

    .hero {
        min-height: 135px;
        padding: 23px;
    }

    .hero-art {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .panel {
        padding: 21px;
    }

    .back-to-dashboard-heading {
        margin-top: 15px;
    }
}

/* ==========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {
    .cards,
    .feature-grid,
    #botControlPanel > .cards {
        grid-template-columns: 1fr;
    }

    .locked-panel {
        padding: 30px 19px;
    }

    .locked-panel h2 {
        font-size: 24px;
    }

    .hero {
        padding: 22px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .hero-art {
        display: none;
    }

    .stat-card,
    .panel {
        padding: 19px;
    }

    .page-heading h1 {
        font-size: 29px;
    }

    .top-actions {
        width: 100%;
    }

    .top-actions .btn {
        flex: 1;
    }

    .detail {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .detail strong {
        max-width: 100%;
        text-align: left;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .toast {
        max-width: none;
    }

    .login-card {
        padding: 32px 22px;
    }
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
