/*
 * Indlvarn – gemeinsames Bot-Dashboard
 * Gemeinsame Gestaltung für Übersicht, Oasenwächter und Divinius.
 */

:root {
    color-scheme: dark;
    --dash-bg: #090d14;
    --dash-bg-soft: #0d1320;
    --dash-surface: #121a27;
    --dash-surface-raised: #182233;
    --dash-surface-glass: rgb(15 22 34 / 88%);
    --dash-border: rgb(173 191 221 / 14%);
    --dash-border-strong: rgb(173 191 221 / 24%);
    --dash-text: #f3f6fc;
    --dash-muted: #a5b1c5;
    --dash-subtle: #7d8ba2;
    --dash-accent: #9a91ff;
    --dash-accent-bright: #b7b0ff;
    --dash-accent-soft: rgb(154 145 255 / 14%);
    --dash-success: #73d6ae;
    --dash-warning: #f2ca78;
    --dash-danger: #ff8793;
    --dash-radius: 16px;
    --dash-shadow: 0 18px 48px rgb(0 0 0 / 25%);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--dash-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--dash-text);
    background:
        radial-gradient(900px 540px at 88% -12%, rgb(87 75 190 / 22%), transparent 68%),
        radial-gradient(680px 450px at -8% 18%, rgb(34 103 133 / 16%), transparent 70%),
        linear-gradient(180deg, var(--dash-bg-soft), var(--dash-bg) 70%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--dash-accent-bright);
    outline-offset: 3px;
}

::selection {
    color: #fff;
    background: rgb(125 111 255 / 42%);
}

/* Zentrale Übersichtsseite und Anmeldeseiten */

.card {
    width: min(100% - 40px, 520px);
    margin: clamp(36px, 14vh, 120px) auto;
    padding: clamp(26px, 5vw, 40px);
    border: 1px solid var(--dash-border);
    border-radius: 22px;
    background: linear-gradient(145deg, rgb(24 33 49 / 96%), rgb(16 22 34 / 96%));
    box-shadow: var(--dash-shadow);
}

.brand {
    color: var(--dash-muted);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

h1 {
    margin: 18px 0 10px;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.05;
}

p {
    color: #b7c2d4;
    line-height: 1.65;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 18px;
    padding: 11px 18px;
    border: 1px solid rgb(183 176 255 / 42%);
    border-radius: 12px;
    background: linear-gradient(135deg, #766cf0, #5a55bd);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 9px 24px rgb(91 80 215 / 24%);
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgb(91 80 215 / 34%);
}

.secondary {
    border: 0;
    background: transparent;
    color: var(--dash-muted);
    text-decoration: underline;
    cursor: pointer;
}

.notice {
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface-raised);
    color: #d1d9e8;
}

/* Zentrale Startseite */

.app-shell {
    width: min(1480px, calc(100% - 56px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px 0 34px;
}

.topbar {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--dash-border);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark,
.central-brand-mark,
.oase-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgb(183 176 255 / 42%);
    border-radius: 14px;
    background: linear-gradient(145deg, #8278ff, #4c59b2);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
    box-shadow: 0 8px 24px rgb(100 88 230 / 26%);
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-size: 1rem;
    letter-spacing: .01em;
}

.brand-copy span {
    color: var(--dash-subtle);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.account-area,
.topbar-account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-name,
.divinius-account-name {
    overflow: hidden;
    max-width: 220px;
    color: #c2ccdc;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form,
.divinius-logout-form {
    margin: 0;
}

.logout-button,
.topbar-logout {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 11px;
    background: rgb(255 255 255 / 4%);
    color: #e2e8f3;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.logout-button:hover,
.topbar-logout:hover {
    transform: translateY(-1px);
    border-color: rgb(183 176 255 / 60%);
    background: var(--dash-accent-soft);
}

.main-content {
    padding: 54px 0 42px;
}

.hero {
    max-width: 760px;
    margin-bottom: 44px;
}

.eyebrow {
    color: var(--dash-accent-bright);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 13px 0 12px;
    font-size: clamp(2.5rem, 7vw, 4.4rem);
    font-weight: 780;
    letter-spacing: -.06em;
    line-height: 1.02;
}

.hero p {
    max-width: 560px;
    margin: 0;
    color: var(--dash-muted);
    font-size: 1.04rem;
}

.platform-section {
    margin-top: 38px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 6px 0 4px;
    font-size: 1.55rem;
    letter-spacing: -.03em;
}

.section-heading p {
    margin: 0;
    color: var(--dash-muted);
    font-size: .9rem;
}

.section-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    background: rgb(255 255 255 / 3%);
    color: #bdc7d8;
    font-size: .74rem;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 280px));
    gap: 16px;
}

.bot-tile {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 1;
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--dash-border);
    border-radius: 19px;
    background:
        radial-gradient(240px 180px at 100% 0, var(--tile-glow), transparent 76%),
        linear-gradient(145deg, #171f2e, #101722);
    box-shadow: 0 14px 38px rgb(0 0 0 / 18%);
}

.bot-tile::after {
    position: absolute;
    top: -58px;
    right: -52px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--tile-glow);
    content: "";
    filter: blur(42px);
    opacity: .16;
    pointer-events: none;
}

.bot-tile--discord { --tile-glow: rgb(111 119 255 / 32%); }
.bot-tile--twitch { --tile-glow: rgb(166 103 255 / 34%); }

.bot-tile--linked {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bot-tile--linked:hover {
    transform: translateY(-3px);
    border-color: rgb(183 176 255 / 55%);
    box-shadow: 0 20px 46px rgb(0 0 0 / 34%);
}

.bot-tile--linked:focus-visible {
    outline: 2px solid var(--dash-accent-bright);
    outline-offset: 4px;
}

.tile-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.app-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 15px;
    color: #fff;
    font-size: .77rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.app-icon--discord {
    background: linear-gradient(145deg, #6875ff, #454fc2);
    box-shadow: 0 8px 22px rgb(88 101 242 / 22%);
}

.app-icon--twitch {
    background: linear-gradient(145deg, #ad63ff, #7138bf);
    box-shadow: 0 8px 22px rgb(145 70 255 / 22%);
}

.app-icon--image {
    padding: 3px;
    background: #242a35;
}

.app-icon-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: contain;
}

.tile-status {
    padding: 6px 9px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 999px;
    background: rgb(255 255 255 / 5%);
    color: #c5cede;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.tile-copy {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.tile-platform {
    color: #a8b1c7;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tile-copy h3 {
    margin: 6px 0 5px;
    font-size: 1.18rem;
    letter-spacing: -.025em;
}

.tile-copy p {
    margin: 0;
    color: var(--dash-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.tile-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgb(255 255 255 / 9%);
    color: #9aa6bb;
    font-size: .74rem;
}

.tile-footer span:last-child {
    color: var(--dash-accent-bright);
    font-size: .95rem;
}

.page-footer {
    padding-top: 20px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-subtle);
    font-size: .76rem;
}

/* Oasenwächter: gleiche Farben und Bauteile wie Divinius */

body.dashboard-body {
    --color-background: var(--dash-bg);
    --color-text: var(--dash-text);
    --color-border: var(--dash-border);
    --color-text-muted: var(--dash-muted);
    --oase-green: var(--dash-accent);
    --oase-green-bright: var(--dash-accent-bright);
    --oase-surface: var(--dash-surface);
    --oase-surface-raised: var(--dash-surface-raised);
    color-scheme: dark;
    color: var(--dash-text);
    background:
        radial-gradient(900px 540px at 88% -12%, rgb(87 75 190 / 22%), transparent 68%),
        radial-gradient(680px 450px at -8% 18%, rgb(34 103 133 / 16%), transparent 70%),
        var(--dash-bg);
}

body.dashboard-body .app-shell--dashboard {
    width: min(1480px, calc(100% - 56px));
    padding-top: 22px;
}

body.dashboard-body .topbar {
    border-bottom-color: var(--dash-border);
}

body.dashboard-body .brand-mark,
.oase-brand-mark {
    border-color: rgb(183 176 255 / 42%);
    background: linear-gradient(145deg, #8278ff, #4c59b2);
    box-shadow: 0 8px 24px rgb(100 88 230 / 26%);
}

body.dashboard-body .brand-copy span {
    color: var(--dash-subtle);
}

body.dashboard-body .account-name {
    color: #c2ccdc;
}

body.dashboard-body .logout-button {
    border-color: var(--dash-border-strong);
    background: rgb(255 255 255 / 4%);
    color: #e2e8f3;
}

body.dashboard-body .logout-button:hover {
    border-color: rgb(183 176 255 / 60%);
    background: var(--dash-accent-soft);
}

body.dashboard-body .main-content--dashboard {
    padding: 30px 0 42px;
}

body.dashboard-body .page-footer {
    border-top-color: var(--dash-border);
    color: var(--dash-subtle);
}

.discord-bot-page {
    display: grid;
    gap: 20px;
    color: var(--dash-text);
}

.discord-bot-page .box {
    margin: 0;
    padding: clamp(18px, 2.6vw, 24px);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    background: linear-gradient(145deg, rgb(24 33 49 / 96%), rgb(16 22 34 / 96%));
    box-shadow: var(--dash-shadow);
}

.discord-bot-page h1,
.discord-bot-page h2,
.discord-bot-page h3 {
    color: var(--dash-text);
}

.discord-bot-page h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -.04em;
}

.discord-bot-page h2 {
    margin-top: 0;
    letter-spacing: -.025em;
}

.discord-bot-page p {
    color: #b1bed1;
    line-height: 1.65;
}

.discord-bot-page a {
    color: var(--dash-accent-bright);
}

.discord-bot-page input,
.discord-bot-page select,
.discord-bot-page textarea,
.discord-bot-page button {
    font: inherit;
}

.discord-bot-page input[type="text"],
.discord-bot-page input[type="search"],
.discord-bot-page input[type="number"],
.discord-bot-page input[type="url"],
.discord-bot-page input[type="password"],
.discord-bot-page select,
.discord-bot-page textarea,
body.divinius-dashboard input,
body.divinius-dashboard select,
body.divinius-dashboard textarea {
    min-height: 40px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 11px;
    background: #0d1420;
    color: var(--dash-text);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}

.discord-bot-page input:focus,
.discord-bot-page select:focus,
.discord-bot-page textarea:focus,
body.divinius-dashboard input:focus,
body.divinius-dashboard select:focus,
body.divinius-dashboard textarea:focus {
    border-color: rgb(183 176 255 / 70%);
    outline: 2px solid rgb(154 145 255 / 24%);
    outline-offset: 1px;
}

.discord-bot-page button,
.discord-bot-page .discord-bot-action,
.discord-bot-page .discord-guild-primary-action,
.oase-permission-link,
body.divinius-dashboard .primary-button,
body.divinius-dashboard .secondary-button {
    border: 1px solid rgb(183 176 255 / 40%);
    border-radius: 11px;
    background: linear-gradient(135deg, rgb(118 108 240 / 40%), rgb(76 89 178 / 34%));
    color: #f5f3ff;
    font-weight: 700;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.discord-bot-page button:hover,
.discord-bot-page .discord-bot-action:hover,
.discord-bot-page .discord-guild-primary-action:hover,
.oase-permission-link:hover,
body.divinius-dashboard .primary-button:hover,
body.divinius-dashboard .secondary-button:hover {
    transform: translateY(-1px);
    border-color: var(--dash-accent-bright);
    background: linear-gradient(135deg, rgb(128 118 255 / 55%), rgb(86 100 193 / 44%));
}

.discord-bot-page .discord-bot-note,
.discord-bot-page .discord-bot-muted,
.discord-bot-page .discord-guild-meta,
.discord-bot-page .discord-guild-no-results,
.discord-bot-page .discord-bot-empty {
    color: var(--dash-muted);
}

.discord-bot-page .discord-bot-grid {
    gap: 16px;
}

.discord-bot-page .discord-bot-card,
.discord-bot-page .discord-guild-card {
    border-color: var(--dash-border);
    border-radius: var(--dash-radius);
    background: linear-gradient(145deg, rgb(24 33 49 / 96%), rgb(16 22 34 / 96%));
    box-shadow: 0 14px 36px rgb(0 0 0 / 18%);
}

.discord-bot-page .discord-bot-status-row {
    border-color: rgb(255 255 255 / 9%);
}

.discord-bot-page .discord-guild-card:hover {
    border-color: rgb(183 176 255 / 52%);
    box-shadow: 0 18px 40px rgb(0 0 0 / 28%);
}

.discord-bot-page .discord-guild-card h3 {
    color: var(--dash-text);
}

.discord-bot-page .discord-bot-badge,
.discord-bot-page .discord-guild-status {
    border-color: var(--dash-border-strong);
    border-radius: 999px;
}

.discord-bot-page .discord-bot-badge.is-ready,
.discord-bot-page .discord-bot-badge.is-online,
.discord-bot-page .discord-bot-badge.is-authorized,
body.divinius-dashboard .status-pill.is-online,
body.divinius-dashboard .status-pill.is-success {
    border-color: rgb(115 214 174 / 32%);
    background: rgb(115 214 174 / 10%);
    color: #9ce8c7;
}

.discord-bot-page .discord-bot-badge.is-missing,
.discord-bot-page .discord-bot-badge.is-offline,
body.divinius-dashboard .status-pill.is-offline {
    border-color: rgb(255 135 147 / 28%);
    background: rgb(255 135 147 / 9%);
    color: #ffadb5;
}

.discord-bot-page .discord-bot-badge.is-warning,
body.divinius-dashboard .status-pill.is-warning {
    border-color: rgb(242 202 120 / 30%);
    background: rgb(242 202 120 / 9%);
    color: #f5d99b;
}

.oase-server-header {
    border-color: var(--dash-border);
    border-radius: 20px;
    background:
        radial-gradient(420px 220px at 100% 0, rgb(124 110 255 / 16%), transparent 72%),
        linear-gradient(145deg, #182131, #111a27);
    box-shadow: var(--dash-shadow);
}

.oase-server-icon,
.oase-nav-icon,
.oase-server-back {
    border-color: var(--dash-border-strong);
    background: rgb(255 255 255 / 4%);
    color: #dce4f2 !important;
}

.oase-server-icon {
    border-radius: 18px;
    background: linear-gradient(145deg, #655ed1, #343d79);
}

.oase-server-eyebrow,
.oase-nav-caption,
.oase-brand-copy small,
.oase-nav-text small,
.oase-sidebar-footer {
    color: var(--dash-muted) !important;
}

.oase-server-copy h1,
.oase-server-meta strong,
.oase-nav-text strong,
.oase-sidebar-brand,
.oase-sidebar-brand strong {
    color: var(--dash-text) !important;
}

.oase-server-meta,
.oase-server-id {
    color: var(--dash-muted);
}

.oase-server-status,
.oase-nav-current {
    color: var(--dash-success);
}

.oase-live-dot {
    background: var(--dash-success);
    box-shadow: 0 0 0 4px rgb(115 214 174 / 10%), 0 0 15px rgb(115 214 174 / 45%);
}

.oase-permission-link {
    padding: 11px 15px;
    text-decoration: none;
}

.oase-dashboard-layout {
    gap: 18px;
}

.oase-sidebar {
    border-color: var(--dash-border);
    border-radius: 19px;
    background:
        radial-gradient(230px 200px at 0 0, rgb(124 110 255 / 12%), transparent 75%),
        linear-gradient(180deg, #141d2b, #101722);
    box-shadow: var(--dash-shadow);
}

.oase-sidebar-brand {
    border-bottom-color: var(--dash-border);
}

.oase-server-back:hover,
.oase-nav-link:hover {
    border-color: var(--dash-border-strong);
    background: rgb(255 255 255 / 6%);
    color: var(--dash-text) !important;
}

.oase-nav-link {
    color: #c2ccdc !important;
}

.oase-nav-link.is-active {
    border-color: rgb(183 176 255 / 30%);
    background: linear-gradient(100deg, rgb(122 110 255 / 18%), rgb(82 91 176 / 10%));
    color: #e5e2ff !important;
    box-shadow: inset 3px 0 0 var(--dash-accent);
}

.oase-nav-link.is-active .oase-nav-icon {
    border-color: rgb(183 176 255 / 32%);
    background: var(--dash-accent-soft);
    color: var(--dash-accent-bright);
}

.discord-bot-page table,
body.divinius-dashboard table {
    width: 100%;
    border-collapse: collapse;
}

.discord-bot-page th,
.discord-bot-page td,
body.divinius-dashboard th,
body.divinius-dashboard td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--dash-border);
    text-align: left;
}

.discord-bot-page th,
body.divinius-dashboard th {
    color: #c2cbe0;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.discord-bot-page td,
body.divinius-dashboard td {
    color: #d9e0ec;
}

.discord-bot-page tr:hover td,
body.divinius-dashboard tr:hover td {
    background: rgb(255 255 255 / 3%);
}

/* Divinius: gleiche Oberfläche, Sidebar und Akzentfarbe */

body.divinius-dashboard {
    --background: var(--dash-bg);
    --surface: var(--dash-surface);
    --navigation: #101722;
    --hover: rgb(154 145 255 / 12%);
    --border: var(--dash-border);
    --text: var(--dash-text);
    --muted: var(--dash-muted);
    --accent: var(--dash-accent);
    --success: var(--dash-success);
    --warning: var(--dash-warning);
    color-scheme: dark;
    background:
        radial-gradient(900px 540px at 88% -12%, rgb(87 75 190 / 22%), transparent 68%),
        radial-gradient(680px 450px at -8% 18%, rgb(34 103 133 / 16%), transparent 70%),
        var(--dash-bg);
}

body.divinius-dashboard .divinius-topbar,
body.divinius-dashboard .sidebar {
    border-color: var(--dash-border);
    background: var(--dash-surface-glass);
    box-shadow: 0 12px 34px rgb(0 0 0 / 20%);
    backdrop-filter: blur(18px);
}

body.divinius-dashboard .central-brand-mark {
    border-color: rgb(183 176 255 / 42%);
    border-radius: 13px;
    background: linear-gradient(145deg, #8278ff, #4c59b2);
    box-shadow: 0 8px 24px rgb(100 88 230 / 26%);
}

body.divinius-dashboard .central-brand-copy small,
body.divinius-dashboard .divinius-product small {
    color: var(--dash-subtle);
}

body.divinius-dashboard .divinius-product {
    color: #e6e8ff;
}

body.divinius-dashboard .product-dot {
    background: var(--dash-accent);
    box-shadow: 0 0 14px rgb(154 145 255 / 55%);
}

body.divinius-dashboard .main {
    scrollbar-color: var(--dash-border-strong) transparent;
}

body.divinius-dashboard .page-title {
    color: var(--dash-text);
    border-bottom-color: var(--dash-border);
}

body.divinius-dashboard .page-subtitle {
    color: var(--dash-muted);
}

body.divinius-dashboard .sidebar-title {
    color: var(--dash-subtle);
}

body.divinius-dashboard .nav-link {
    border-color: transparent;
    border-radius: 11px;
    color: #c2ccdc;
}

body.divinius-dashboard .nav-link:hover {
    background: rgb(255 255 255 / 5%);
    color: var(--dash-text);
}

body.divinius-dashboard .nav-link[aria-current="page"] {
    border-color: rgb(183 176 255 / 30%);
    background: linear-gradient(100deg, rgb(122 110 255 / 18%), rgb(82 91 176 / 10%));
    color: #e5e2ff;
}

body.divinius-dashboard .panel,
body.divinius-dashboard .dashboard-card {
    border-color: var(--dash-border);
    border-radius: var(--dash-radius);
    background: linear-gradient(145deg, rgb(24 33 49 / 96%), rgb(16 22 34 / 96%));
    box-shadow: var(--dash-shadow);
}

body.divinius-dashboard .panel h1,
body.divinius-dashboard .panel h2,
body.divinius-dashboard .panel h3,
body.divinius-dashboard .dashboard-card-title {
    color: var(--dash-text);
}

body.divinius-dashboard .panel p,
body.divinius-dashboard .dashboard-card-text {
    color: var(--dash-muted);
}

body.divinius-dashboard .dashboard-card:hover {
    border-color: rgb(183 176 255 / 48%);
    background: linear-gradient(145deg, #20243a, #151a28);
}

body.divinius-dashboard .primary-button,
body.divinius-dashboard .secondary-button {
    min-height: 40px;
    padding: 8px 13px;
    text-decoration: none;
    cursor: pointer;
}

body.divinius-dashboard input,
body.divinius-dashboard select,
body.divinius-dashboard textarea {
    padding: 8px 11px;
}

body.divinius-dashboard input[type="checkbox"],
body.divinius-dashboard input[type="radio"] {
    min-height: 0;
    accent-color: var(--dash-accent);
}

@media (max-width: 900px) {
    .app-shell {
        width: min(100% - 40px, 1480px);
    }
}

@media (max-width: 780px) {
    body.divinius-dashboard .divinius-topbar {
        padding-inline: 14px;
    }

    body.divinius-dashboard .central-brand {
        min-width: auto;
    }

    body.divinius-dashboard .central-brand-copy {
        display: none;
    }

    body.divinius-dashboard .divinius-product {
        padding-left: 10px;
        font-size: .84rem;
    }

    body.divinius-dashboard .divinius-product small,
    body.divinius-dashboard .divinius-account-name {
        display: none;
    }

    body.divinius-dashboard .divinius-topbar .topbar-account {
        gap: 7px;
    }
}

@media (max-width: 640px) {
    .app-shell {
        width: min(100% - 32px, 1480px);
        padding-top: 17px;
    }

    .topbar {
        align-items: flex-start;
        gap: 12px;
    }

    .account-area {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .account-name {
        max-width: 150px;
    }

    .main-content {
        padding-top: 42px;
    }

    .hero {
        margin-bottom: 36px;
    }

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

    .section-count {
        margin-top: 4px;
    }

    .tile-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 280px));
    }

    .card {
        padding: 28px 23px;
    }

    body.dashboard-body .app-shell--dashboard {
        width: min(100% - 28px, 1480px);
    }

    .oase-server-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .oase-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .oase-sidebar {
        position: static;
        min-height: 0;
    }

    .discord-bot-page .discord-bot-grid {
        grid-template-columns: 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
