/* ==========================================================================
   Demonity — design system
   Self-contained: intentionally does NOT rely on the precompiled Tailwind
   bundle, which is built from a stale class scan and cannot be regenerated
   in this environment (no package.json / build pipeline present).
   Brand: rgb(30, 131, 209)
   ========================================================================== */

:root {
    --brand-rgb: 30, 131, 209;
    --brand: rgb(30, 131, 209);
    --brand-600: #1a74bb;
    --brand-400: #4ba3e6;
    --brand-300: #7dc0f2;

    --bg: #06080c;
    --bg-alt: #090c12;
    --surface: #0d1119;
    --surface-2: #111721;
    --surface-3: #161d29;

    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(255, 255, 255, .12);

    --txt: #eef2f7;
    --txt-soft: #a7b1c0;
    --txt-mute: #6f7987;

    --ok: #22c55e;
    --warn: #f59e0b;
    --bad: #ef4444;

    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 26px;

    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .85);
    --glow: 0 0 0 1px rgba(var(--brand-rgb), .3), 0 12px 44px -14px rgba(var(--brand-rgb), .45);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --wrap: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.dm {
    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Deliberately NO overflow clipping here. `hidden` would turn the body into
       a scroll container and break the sticky header, and `clip` can clip
       position:fixed descendants — which would cut off modal dialogs. Sideways
       overflow is prevented at the component level instead (decorative art is
       clipped by its own container, tables stack on phones). */
}

body.dm main {
    flex: 1 0 auto;
}

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

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

::selection {
    background: rgba(var(--brand-rgb), .35);
    color: #fff;
}

/* Scrollbar ------------------------------------------------------------- */
.dm ::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

.dm ::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

.dm ::-webkit-scrollbar-thumb {
    background: #263243;
    border-radius: 99px;
    border: 2px solid var(--bg-alt);
}

.dm ::-webkit-scrollbar-thumb:hover {
    background: #35455b;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.dm-wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

.dm-wrap-sm {
    max-width: 820px;
}

.dm-wrap-md {
    max-width: 1000px;
}

/* The dashboard carries data tables next to a fixed sidebar, so it gets more
   room than the marketing pages. */
.dm-wrap-wide {
    max-width: 1440px;
}

.dm-sec {
    position: relative;
    padding: clamp(56px, 8vw, 104px) 0;
}

.dm-sec-tight {
    padding: clamp(40px, 5vw, 64px) 0;
}

.dm-sec-alt {
    background: var(--bg-alt);
}

.dm-sec-line {
    border-top: 1px solid var(--line);
}

.dm-grid {
    display: grid;
    gap: 20px;
}

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

.dm-g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dm-g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dm-split {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

/* Narrow media rail + content. Must be a class, not an inline style: an inline
   grid-template-columns outranks the responsive rule below and would pin the
   two-column layout on phones. */
.dm-split-aside {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
}

.dm-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dm-center {
    text-align: center;
}

.dm-center .dm-lead {
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Ambient background art (pure CSS, no assets)
   -------------------------------------------------------------------------- */
.dm-aura {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.dm-aura::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
}

.dm-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    animation: dm-drift 18s var(--ease) infinite alternate;
}

.dm-orb-1 {
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    top: -18%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(var(--brand-rgb), .55), transparent 66%);
}

.dm-orb-2 {
    width: 34vw;
    height: 34vw;
    max-width: 460px;
    max-height: 460px;
    bottom: -20%;
    right: -6%;
    background: radial-gradient(circle, rgba(80, 60, 220, .34), transparent 68%);
    animation-delay: -6s;
}

.dm-orb-3 {
    width: 30vw;
    height: 30vw;
    max-width: 400px;
    max-height: 400px;
    bottom: -14%;
    left: -8%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .3), transparent 68%);
    animation-delay: -11s;
}

@keyframes dm-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(28px, -34px, 0) scale(1.1);
    }
}

.dm-orb-1 {
    animation-name: dm-drift-c;
}

@keyframes dm-drift-c {
    from {
        transform: translate(-50%, 0) scale(1);
    }

    to {
        transform: translate(-50%, -30px) scale(1.09);
    }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.dm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand-300);
    background: rgba(var(--brand-rgb), .1);
    border: 1px solid rgba(var(--brand-rgb), .28);
    padding: 7px 14px;
    border-radius: 99px;
    margin-bottom: 22px;
}

.dm-eyebrow i {
    font-size: 11px;
}

.dm-h1,
.dm-h2,
.dm-h3,
.dm-h4 {
    margin: 0;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.08;
    font-weight: 700;
    text-wrap: balance;
}

.dm-h1 {
    font-size: clamp(2.35rem, 6vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.dm-h2 {
    font-size: clamp(1.85rem, 3.9vw, 2.85rem);
    letter-spacing: -.028em;
}

.dm-h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.2;
}

.dm-h4 {
    font-size: 1.05rem;
    line-height: 1.35;
}

.dm-lead {
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--txt-soft);
    max-width: 62ch;
    line-height: 1.65;
}

.dm-sec-head {
    margin-bottom: clamp(34px, 5vw, 60px);
}

.dm-accent {
    color: var(--brand);
}

/* `-webkit-text-fill-color` rather than `color: transparent`: if a browser
   can't clip the gradient to the glyphs, the text stays visible in the fallback
   colour instead of disappearing. `clone` keeps the gradient intact when the
   headline wraps to a second line on narrow screens. */
.dm-gradient {
    color: var(--brand-300);
    background: linear-gradient(100deg, #fff 18%, var(--brand-300) 55%, var(--brand) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.dm-muted {
    color: var(--txt-mute);
}

.dm-soft {
    color: var(--txt-soft);
}

.dm-small {
    font-size: .875rem;
}

.dm-xs {
    font-size: .78rem;
}

.dm-mono {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.dm-btn {
    --btn-bg: var(--surface-2);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: .94rem;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}

.dm-btn:hover {
    transform: translateY(-2px);
}

.dm-btn:active {
    transform: translateY(0);
}

.dm-btn:disabled,
.dm-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.dm-btn-primary {
    --btn-bg: linear-gradient(180deg, var(--brand-400), var(--brand) 55%, var(--brand-600));
    border-color: rgba(var(--brand-rgb), .55);
    box-shadow: 0 10px 30px -12px rgba(var(--brand-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.dm-btn-primary:hover {
    box-shadow: 0 16px 40px -12px rgba(var(--brand-rgb), .95), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.dm-btn-success {
    --btn-bg: linear-gradient(180deg, #2fd06e, #18a957);
    border-color: rgba(34, 197, 94, .5);
    box-shadow: 0 10px 30px -12px rgba(34, 197, 94, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.dm-btn-ghost {
    --btn-bg: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
}

.dm-btn-ghost:hover {
    --btn-bg: rgba(255, 255, 255, .09);
    border-color: rgba(var(--brand-rgb), .45);
}

.dm-btn-danger {
    --btn-bg: rgba(239, 68, 68, .14);
    --btn-fg: #fca5a5;
    border-color: rgba(239, 68, 68, .35);
}

.dm-btn-danger:hover {
    --btn-bg: rgba(239, 68, 68, .24);
}

.dm-btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.dm-btn-sm {
    padding: 9px 16px;
    font-size: .84rem;
}

.dm-btn-block {
    width: 100%;
}

.dm-link {
    color: var(--brand-300);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap .2s var(--ease), color .2s;
}

.dm-link:hover {
    color: #fff;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.dm-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: rgba(6, 8, 12, .72);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), border-color .3s;
}

.dm-header.is-stuck {
    background: rgba(6, 8, 12, .93);
    border-bottom-color: var(--line-strong);
}

.dm-header-in {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

.dm-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.dm-logo img {
    height: 26px;
    width: auto;
    display: block;
}

.dm-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dm-navlink {
    position: relative;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--txt-soft);
    transition: color .2s, background .2s;
}

.dm-navlink:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.dm-navlink.is-active {
    color: #fff;
}

.dm-navlink.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(var(--brand-rgb), .9);
}

.dm-header-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-burger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
}

/* user menu */
.dm-user {
    position: relative;
}

.dm-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 99px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 500;
    transition: border-color .2s, background .2s;
}

.dm-user-btn:hover {
    border-color: rgba(var(--brand-rgb), .5);
    background: rgba(255, 255, 255, .07);
}

/* A long username must never widen the header. */
.dm-user-btn > .dm-nowrap {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 560px) {
    .dm-user-btn > .dm-nowrap,
    .dm-user-btn > .fa-chevron-down {
        display: none;
    }

    .dm-user-btn {
        padding: 6px;
    }
}

.dm-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--brand-400), var(--brand) 55%, var(--brand-600));
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dm-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.dm-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 250px;
    padding: 8px;
    border-radius: var(--r);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    z-index: 90;
}

.dm-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: .88rem;
    color: var(--txt-soft);
    transition: background .16s, color .16s;
}

.dm-menu-item:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.dm-menu-item i {
    width: 16px;
    text-align: center;
    font-size: .85rem;
    color: var(--txt-mute);
}

.dm-menu-item:hover i {
    color: var(--brand-300);
}

.dm-menu-item.is-danger {
    color: #f87171;
}

.dm-menu-item.is-danger i {
    color: #f87171;
}

.dm-menu-sep {
    height: 1px;
    background: var(--line);
    margin: 6px 4px;
}

.dm-menu-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(var(--brand-rgb), .09);
    border: 1px solid rgba(var(--brand-rgb), .2);
    font-size: .85rem;
}

.dm-menu-balance b {
    color: #4ade80;
    font-size: .95rem;
}

/* mobile drawer */
.dm-drawer {
    border-top: 1px solid var(--line);
    background: rgba(6, 8, 12, .97);
    padding: 14px 0 20px;
}

.dm-drawer .dm-navlink {
    display: block;
    padding: 12px 14px;
    font-size: .98rem;
}

.dm-drawer-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Announcement banner
   -------------------------------------------------------------------------- */
.dm-announce {
    position: relative;
    z-index: 60;
    border-bottom: 1px solid var(--line-strong);
    background: linear-gradient(100deg, rgba(var(--brand-rgb), .22), rgba(var(--brand-rgb), .08));
}

.dm-announce[data-type="warning"] {
    background: linear-gradient(100deg, rgba(245, 158, 11, .24), rgba(245, 158, 11, .08));
}

.dm-announce[data-type="success"] {
    background: linear-gradient(100deg, rgba(34, 197, 94, .24), rgba(34, 197, 94, .08));
}

.dm-announce[data-type="error"] {
    background: linear-gradient(100deg, rgba(239, 68, 68, .26), rgba(239, 68, 68, .08));
}

.dm-announce-in {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
}

.dm-announce-ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.dm-announce h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
}

.dm-announce p {
    margin: 1px 0 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .78);
}

.dm-announce-x {
    margin-left: auto;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
}

.dm-announce-x:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Cards & surfaces
   -------------------------------------------------------------------------- */
.dm-card {
    position: relative;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    overflow: hidden;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.dm-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16) 30%, rgba(255, 255, 255, .16) 70%, transparent);
}

.dm-card-hover:hover {
    border-color: rgba(var(--brand-rgb), .4);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 40px -22px rgba(var(--brand-rgb), .8);
}

.dm-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 30px);
    /* Allows the panel to shrink below its content's intrinsic width so wide
       children scroll inside themselves rather than widening the page. */
    min-width: 0;
}

.dm-panel-flush {
    padding: 0;
    overflow: hidden;
}

.dm-panel-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dm-panel-head h2,
.dm-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.dm-panel-body {
    padding: clamp(18px, 3vw, 26px);
}

.dm-ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--brand-rgb), .12);
    border: 1px solid rgba(var(--brand-rgb), .26);
    color: var(--brand-400);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.dm-ico-lg {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    border-radius: 14px;
}

/* --------------------------------------------------------------------------
   Bento feature grid
   -------------------------------------------------------------------------- */
.dm-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dm-bento > * {
    min-width: 0;
}

.dm-b-2 {
    grid-column: span 2;
}

.dm-b-3 {
    grid-column: span 3;
}

.dm-b-4 {
    grid-column: 1 / -1;
}

.dm-bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    overflow: hidden;
    min-height: 240px;
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.dm-bento-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18) 35%, rgba(255, 255, 255, .18) 65%, transparent);
}

.dm-bento-card:hover {
    border-color: rgba(var(--brand-rgb), .45);
    transform: translateY(-4px);
    box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .95), 0 0 46px -26px rgba(var(--brand-rgb), .85);
}

/* soft brand wash in the corner of each bento card */
.dm-bento-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .3), transparent 68%);
    filter: blur(26px);
    opacity: .55;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.dm-bento-card:hover::after {
    opacity: .95;
}

.dm-bento-card > * {
    position: relative;
    z-index: 2;
}

.dm-bento-body {
    margin-top: auto;
    padding-top: 26px;
}

.dm-bento-card h3 {
    margin: 0 0 9px;
    font-size: 1.16rem;
    font-weight: 650;
    letter-spacing: -.02em;
    color: #fff;
    line-height: 1.25;
}

.dm-bento-card p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--txt-soft);
}

.dm-bento-tag {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 3;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 99px;
    background: rgba(var(--brand-rgb), .16);
    border: 1px solid rgba(var(--brand-rgb), .35);
    color: var(--brand-300);
}

/* the big "live" card */
.dm-bento-live {
    padding: 0;
    min-height: 340px;
    justify-content: flex-end;
}

.dm-bento-live::after {
    display: none;
}

.dm-live-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 16px 16px 58px;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(var(--brand-rgb), .3), transparent 60%),
        linear-gradient(180deg, #0a1520, #060a10);
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* The SVG carries width/height attributes and preserveAspectRatio="meet", so
   stretching the box to fill letterboxes the drawing instead of distorting it. */
.dm-live-stage svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dm-live-cap {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    background: linear-gradient(180deg, transparent, rgba(4, 6, 10, .92) 62%);
    font-size: .88rem;
    font-weight: 500;
    color: #fff;
}

.dm-live-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 99px;
    background: rgba(6, 10, 16, .78);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(8px);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}

.dm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .75);
    animation: dm-ping 1.9s var(--ease) infinite;
    flex-shrink: 0;
}

.dm-dot-ok {
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .75);
}

@keyframes dm-ping {
    0% {
        box-shadow: 0 0 0 0 currentColor;
    }

    70% {
        box-shadow: 0 0 0 9px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* decorative mini-visuals inside small bento cards */
.dm-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 130px;
    z-index: 1;
    opacity: .5;
    pointer-events: none;
    transition: opacity .4s var(--ease);
    overflow: hidden;
    mask-image: linear-gradient(200deg, #000 10%, transparent 82%);
    -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 82%);
}

.dm-bento-card:hover .dm-deco {
    opacity: .95;
}

.dm-deco-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 18px;
    height: 100%;
}

.dm-deco-bars span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--brand-400), rgba(var(--brand-rgb), .1));
    animation: dm-eq 1.6s var(--ease) infinite alternate;
}

@keyframes dm-eq {
    from {
        height: 22%;
    }

    to {
        height: 84%;
    }
}

.dm-deco-rows {
    padding: 20px;
    display: grid;
    gap: 7px;
}

.dm-deco-rows span {
    display: block;
    height: 7px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(var(--brand-rgb), .75), transparent);
}

.dm-deco-ring {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 1px solid rgba(var(--brand-rgb), .32);
}

.dm-deco-ring::before,
.dm-deco-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--brand-rgb), .22);
}

.dm-deco-ring::before {
    inset: 22px;
}

.dm-deco-ring::after {
    inset: 46px;
    border-color: rgba(var(--brand-rgb), .5);
}

.dm-deco-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.dm-deco-grid span {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(var(--brand-rgb), .18);
    border: 1px solid rgba(var(--brand-rgb), .28);
}

.dm-deco-grid span:nth-child(3n) {
    background: rgba(var(--brand-rgb), .5);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.dm-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 8vw, 96px);
    border-bottom: 1px solid var(--line);
}

.dm-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dm-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
}

.dm-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 8, 12, .82), rgba(6, 8, 12, .6) 45%, var(--bg)),
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(var(--brand-rgb), .22), transparent 70%);
}

.dm-hero-in {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
}

.dm-hero-in .dm-lead {
    margin-inline: auto;
    max-width: 58ch;
}

.dm-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}

/* trust bar */
/* Grid, not flex-wrap: with four items of differing label lengths a wrapping
   flex row lands unevenly and a label that breaks to two lines knocks the row
   out of alignment. auto-fit gives 4 even columns on desktop and a clean 2x2
   on phones, with every cell the same width. */
.dm-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.dm-trust-item {
    text-align: center;
    min-width: 0;
}

.dm-trust-item b {
    display: block;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -.03em;
    color: #fff;
    line-height: 1.1;
}

.dm-trust-item span {
    display: block;
    margin-top: 6px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-mute);
    line-height: 1.35;
    overflow-wrap: break-word;
    /* Tracked-out uppercase adds a trailing gap on the last glyph, which reads
       as off-centre in a centred cell. */
    text-indent: .1em;
}

/* --------------------------------------------------------------------------
   Feature list (checkmarks)
   -------------------------------------------------------------------------- */
.dm-checks {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.dm-checks li {
    display: flex;
    gap: 14px;
}

.dm-checks i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(var(--brand-rgb), .14);
    border: 1px solid rgba(var(--brand-rgb), .3);
    color: var(--brand-400);
    font-size: .68rem;
    margin-top: 2px;
}

.dm-checks h4 {
    margin: 0 0 3px;
    font-size: .98rem;
    font-weight: 600;
    color: #fff;
}

.dm-checks p {
    margin: 0;
    font-size: .88rem;
    color: var(--txt-soft);
    line-height: 1.6;
}

.dm-ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.dm-ticks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: var(--txt-soft);
}

.dm-ticks li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-400);
    font-size: .72rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Badges & pills
   -------------------------------------------------------------------------- */
.dm-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .01em;
    /* A badge is a single token — never break it across lines. */
    white-space: nowrap;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-strong);
    color: var(--txt-soft);
}

.dm-badge-brand {
    background: rgba(var(--brand-rgb), .14);
    border-color: rgba(var(--brand-rgb), .35);
    color: var(--brand-300);
}

.dm-badge-ok {
    background: rgba(34, 197, 94, .14);
    border-color: rgba(34, 197, 94, .35);
    color: #6ee7a0;
}

.dm-badge-warn {
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .35);
    color: #fcd34d;
}

.dm-badge-bad {
    background: rgba(239, 68, 68, .14);
    border-color: rgba(239, 68, 68, .35);
    color: #fca5a5;
}

.dm-badge-purple {
    background: rgba(168, 85, 247, .14);
    border-color: rgba(168, 85, 247, .35);
    color: #d8b4fe;
}

.dm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   Product / category cards
   -------------------------------------------------------------------------- */
.dm-prod {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.dm-prod:hover {
    border-color: rgba(var(--brand-rgb), .45);
    transform: translateY(-5px);
    box-shadow: 0 28px 60px -32px rgba(0, 0, 0, .95), 0 0 44px -26px rgba(var(--brand-rgb), .7);
}

.dm-prod-featured {
    border-color: rgba(var(--brand-rgb), .55);
    box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .3), 0 24px 60px -30px rgba(var(--brand-rgb), .7);
}

.dm-prod-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: radial-gradient(ellipse at 50% 120%, rgba(var(--brand-rgb), .22), transparent 62%), #080b11;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.dm-prod-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.dm-prod-media img.is-contain {
    object-fit: contain;
    padding: 18px;
}

.dm-prod:hover .dm-prod-media img {
    transform: scale(1.06);
}

.dm-prod-media-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 3;
}

/* Badges sitting on top of artwork need to be opaque — the translucent
   variants used on flat surfaces wash out against a bright product image. */
.dm-prod-media-top .dm-badge {
    background: rgba(6, 9, 14, .84);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .95);
}

.dm-prod-media-top .dm-badge-brand {
    background: var(--brand);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.dm-prod-media-top .dm-badge-ok {
    background: #16a34a;
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.dm-prod-media-top .dm-badge-ok .dm-dot {
    background: #fff;
    box-shadow: none;
    animation: none;
}

.dm-prod-in {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
    gap: 10px;
}

.dm-prod-in h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 650;
    letter-spacing: -.02em;
    color: #fff;
}

.dm-prod-in p {
    margin: 0;
    font-size: .89rem;
    color: var(--txt-soft);
    line-height: 1.6;
}

.dm-prod-foot {
    margin-top: auto;
    padding-top: 16px;
    display: grid;
    gap: 14px;
}

.dm-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dm-price b {
    font-size: 1.9rem;
    font-weight: 750;
    letter-spacing: -.035em;
    color: #fff;
    line-height: 1;
}

.dm-price s {
    font-size: .95rem;
    color: var(--txt-mute);
}

/* Sits inside the media strip, not overhanging the card edge — the card clips
   its overflow, so an overhanging ribbon would be cut in half. */
.dm-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
    border: 1px solid rgba(var(--brand-rgb), .6);
    box-shadow: 0 8px 24px -8px rgba(var(--brand-rgb), .9);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Rule heading — a small tracked-out label with a hairline running off to the
   right, used to open a subsection.
   -------------------------------------------------------------------------- */
.dm-rulehead {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.dm-rulehead > span {
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-400);
}

.dm-rulehead::after {
    content: '';
    flex: 1;
    height: 1px;
    min-width: 0;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* --------------------------------------------------------------------------
   Spec grid (system requirements)
   -------------------------------------------------------------------------- */
.dm-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.dm-spec {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 16px 18px;
    border-radius: var(--r);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    transition: border-color .3s var(--ease);
}

.dm-spec:hover {
    border-color: rgba(var(--brand-rgb), .35);
}

.dm-spec > i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--brand-400);
}

.dm-spec > div {
    min-width: 0;
}

.dm-spec dt {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--txt-mute);
}

.dm-spec dd {
    margin: 4px 0 0;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -.01em;
    color: #fff;
    overflow-wrap: break-word;
}

@media (max-width: 620px) {
    .dm-specs {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.dm-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 16px 0;
    font-size: .84rem;
    color: var(--txt-mute);
    border-bottom: 1px solid var(--line);
}

.dm-crumbs {
    overflow-wrap: anywhere;
}

.dm-crumbs a {
    color: var(--txt-mute);
    transition: color .2s;
}

.dm-crumbs a:hover {
    color: var(--brand-300);
}

.dm-crumbs i {
    font-size: .6rem;
    opacity: .6;
}

.dm-crumbs .is-current {
    color: var(--txt);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.dm-form {
    display: grid;
    gap: 18px;
}

.dm-field {
    display: grid;
    gap: 7px;
}

.dm-label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--txt-soft);
}

.dm-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dm-input-wrap > i:first-child {
    position: absolute;
    left: 15px;
    font-size: .88rem;
    color: var(--txt-mute);
    pointer-events: none;
    transition: color .2s;
}

.dm-input-wrap:focus-within > i:first-child {
    color: var(--brand-400);
}

.dm-input,
.dm-select,
.dm-textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--r-sm);
    background: var(--bg-alt);
    border: 1px solid var(--line-strong);
    color: var(--txt);
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.dm-input-wrap .dm-input {
    padding-left: 42px;
}

.dm-input-wrap.has-action .dm-input {
    padding-right: 46px;
}

.dm-input::placeholder,
.dm-textarea::placeholder {
    color: #5b6474;
}

.dm-input:focus,
.dm-select:focus,
.dm-textarea:focus {
    outline: none;
    border-color: rgba(var(--brand-rgb), .6);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18);
    background: var(--surface);
}

.dm-input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.dm-textarea {
    min-height: 120px;
    resize: vertical;
}

.dm-input-btn {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--txt-mute);
    cursor: pointer;
}

.dm-input-btn:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.dm-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dm-input-group .dm-input {
    flex: 1;
    min-width: 0;
}

/* On phones the field takes its own row and the buttons share the next one,
   instead of all three being squeezed onto one line. */
@media (max-width: 620px) {
    .dm-input-group > .dm-input,
    .dm-input-group > .dm-input-wrap {
        flex: 1 0 100%;
    }

    .dm-input-group > .dm-btn {
        flex: 1;
    }
}

/* Licence key + copy button pairing (HWID page). */
.dm-key-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dm-key-row .dm-input {
    flex: 1;
    min-width: 0;
    max-width: 240px;
}

.dm-key-row .dm-btn {
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .dm-key-row .dm-input {
        max-width: none;
    }
}

.dm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .86rem;
    color: var(--txt-soft);
    cursor: pointer;
}

.dm-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 1px 0 0;
    border-radius: 5px;
    border: 1px solid var(--line-strong);
    background: var(--bg-alt);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.dm-check input:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.dm-check input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .62rem;
    color: #fff;
    display: grid;
    place-items: center;
    height: 100%;
}

.dm-check a {
    color: var(--brand-300);
}

.dm-check a:hover {
    text-decoration: underline;
}

.dm-form-foot {
    text-align: center;
    font-size: .88rem;
    color: var(--txt-mute);
}

.dm-form-foot a {
    color: var(--brand-300);
    font-weight: 600;
}

.dm-form-foot a:hover {
    text-decoration: underline;
}

/* auth shell */
.dm-auth {
    display: grid;
    place-items: center;
    padding: clamp(40px, 8vw, 90px) 0;
    position: relative;
    overflow: hidden;
}

.dm-auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 452px;
    padding: clamp(26px, 4vw, 40px);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.dm-auth-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .8), transparent);
}

.dm-auth-head {
    text-align: center;
    margin-bottom: 28px;
}

.dm-auth-head img {
    height: 52px;
    width: auto;
    margin: 0 auto 18px;
    display: block;
}

.dm-auth-head h1 {
    margin: 0;
    font-size: 1.62rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #fff;
}

.dm-auth-head p {
    margin: 8px 0 0;
    font-size: .92rem;
    color: var(--txt-soft);
}

/* alerts */
.dm-alert {
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    border-radius: var(--r-sm);
    font-size: .88rem;
    line-height: 1.55;
    border: 1px solid;
}

.dm-alert i {
    margin-top: 3px;
    flex-shrink: 0;
}

.dm-alert-error {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .32);
    color: #fca5a5;
}

.dm-alert-ok {
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .32);
    color: #86efac;
}

.dm-alert-info {
    background: rgba(var(--brand-rgb), .1);
    border-color: rgba(var(--brand-rgb), .32);
    color: var(--brand-300);
}

.dm-alert-warn {
    background: rgba(245, 158, 11, .1);
    border-color: rgba(245, 158, 11, .32);
    color: #fcd34d;
}

/* --------------------------------------------------------------------------
   FAQ / accordion
   -------------------------------------------------------------------------- */
.dm-faq {
    display: grid;
    gap: 12px;
}

.dm-faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .25s var(--ease), background .25s;
}

.dm-faq-item:hover {
    border-color: var(--line-strong);
}

.dm-faq-item.is-open {
    border-color: rgba(var(--brand-rgb), .4);
    background: var(--surface-2);
}

.dm-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: 0;
    text-align: left;
    font-size: .98rem;
    font-weight: 550;
    color: #fff;
    cursor: pointer;
}

.dm-faq-q i {
    flex-shrink: 0;
    font-size: .78rem;
    color: var(--brand-400);
    transition: transform .3s var(--ease);
}

.dm-faq-item.is-open .dm-faq-q i {
    transform: rotate(180deg);
}

.dm-faq-a {
    padding: 0 22px 20px;
    font-size: .92rem;
    color: var(--txt-soft);
    line-height: 1.7;
}

.dm-faq-a p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.dm-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.dm-tabs::-webkit-scrollbar {
    display: none;
}

.dm-tab {
    flex: 1;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--txt-soft);
    font-size: .9rem;
    font-weight: 550;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.dm-tab:hover {
    color: #fff;
}

.dm-tab.is-active {
    background: var(--surface-3);
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* --------------------------------------------------------------------------
   Status rows
   -------------------------------------------------------------------------- */
.dm-list {
    display: grid;
}

.dm-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.dm-list-row:first-child {
    border-top: 0;
}

.dm-list-row h3 {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
    color: #fff;
}

.dm-list-row p {
    margin: 3px 0 0;
    font-size: .84rem;
    color: var(--txt-mute);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.dm-tablewrap {
    width: 100%;
    overflow-x: auto;
}

.dm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    min-width: 560px;
}

.dm-table th {
    text-align: left;
    padding: 13px 16px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--txt-mute);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.dm-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--txt-soft);
    vertical-align: middle;
    /* `break-word`, not `anywhere`: long keys and HWIDs still wrap, but the
       column's intrinsic minimum stays word-based, so a wide neighbour can't
       squeeze normal text down to one character per line. */
    overflow-wrap: break-word;
}

.dm-table tbody tr:hover td {
    background: rgba(255, 255, 255, .022);
}

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

.dm-table strong {
    color: #fff;
    font-weight: 600;
}

/* Stacked tables ------------------------------------------------------------
   A table with .dm-table-stack collapses into one labelled block per row on
   phones, so data pages never need horizontal scrolling. Each <td> supplies its
   own heading through data-label. */
@media (max-width: 720px) {
    .dm-table-stack {
        min-width: 0;
        display: block;
    }

    .dm-table-stack thead {
        display: none;
    }

    .dm-table-stack tbody,
    .dm-table-stack tr,
    .dm-table-stack td {
        display: block;
        width: 100%;
    }

    .dm-table-stack tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .dm-table-stack tr:last-child {
        border-bottom: 0;
    }

    /* Label sits above the value rather than beside it: a cell can hold any
       number of children (key + HWID line, date + order no.) and still stack
       predictably, with nothing forced off-screen. */
    .dm-table-stack td {
        padding: 7px 0;
        border: 0;
        text-align: left;
        min-width: 0;
    }

    .dm-table-stack td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: .66rem;
        font-weight: 700;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: var(--txt-mute);
    }

    /* Cells without a label carry actions — give them a full-width button. */
    .dm-table-stack td:not([data-label]) {
        text-align: left;
        padding-top: 14px;
    }

    .dm-table-stack td:not([data-label])::before {
        display: none;
    }

    .dm-table-stack td:not([data-label]) .dm-btn {
        width: 100%;
    }

    .dm-table-stack tbody tr:hover td {
        background: none;
    }

    /* Long values (keys, wallet addresses) must wrap instead of pushing wide. */
    .dm-table-stack td > * {
        min-width: 0;
    }

    .dm-table-stack .dm-nowrap {
        white-space: normal;
    }
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.dm-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dm-stat {
    position: relative;
    padding: 20px 22px;
    border-radius: var(--r);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    overflow: hidden;
}

.dm-stat::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .24), transparent 68%);
    filter: blur(18px);
}

.dm-stat-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--txt-mute);
}

.dm-stat-value {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -.035em;
    color: #fff;
    line-height: 1.1;
}

.dm-stat-sub {
    position: relative;
    z-index: 2;
    margin-top: 4px;
    font-size: .82rem;
    color: var(--txt-mute);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.dm-empty {
    text-align: center;
    padding: clamp(38px, 6vw, 64px) 24px;
}

.dm-empty-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong);
    color: var(--txt-mute);
    font-size: 1.5rem;
}

.dm-empty h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 650;
    color: #fff;
}

.dm-empty p {
    margin: 0 auto 22px;
    max-width: 46ch;
    font-size: .92rem;
    color: var(--txt-soft);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.dm-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 66px) clamp(24px, 5vw, 60px);
    border-radius: var(--r-xl);
    border: 1px solid rgba(var(--brand-rgb), .3);
    background:
        radial-gradient(ellipse 70% 120% at 50% 0%, rgba(var(--brand-rgb), .26), transparent 62%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    text-align: center;
}

.dm-cta::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .9), transparent);
}

.dm-cta .dm-lead {
    margin-inline: auto;
    max-width: 56ch;
}

.dm-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.dm-footer {
    position: relative;
    margin-top: auto;
    padding: clamp(48px, 6vw, 72px) 0 28px;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.dm-footer-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 92%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .85), transparent);
}

.dm-footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
}

.dm-footer-brand img {
    height: 26px;
    width: auto;
    margin-bottom: 16px;
}

.dm-footer-brand p {
    margin: 0;
    max-width: 38ch;
    font-size: .9rem;
    color: var(--txt-soft);
    line-height: 1.7;
}

.dm-footer h4 {
    margin: 0 0 16px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #fff;
}

.dm-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.dm-footer ul a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    color: var(--txt-soft);
    transition: color .2s;
}

.dm-footer ul a:hover {
    color: var(--brand-300);
}

.dm-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.dm-social {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong);
    color: var(--txt-soft);
    transition: all .22s var(--ease);
}

.dm-social:hover {
    color: #fff;
    border-color: rgba(var(--brand-rgb), .5);
    background: rgba(var(--brand-rgb), .14);
    transform: translateY(-2px);
}

.dm-footer-bottom {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .84rem;
    color: var(--txt-mute);
}

.dm-footer-bottom img {
    height: 26px;
    width: auto;
    opacity: .8;
}

/* --------------------------------------------------------------------------
   Dashboard shell
   -------------------------------------------------------------------------- */
.dm-dash {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: clamp(26px, 4vw, 44px) 0 clamp(44px, 6vw, 72px);
}

.dm-side {
    position: sticky;
    top: 90px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    overflow: hidden;
}

.dm-side-user {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.dm-side-user h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 650;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-side-user p {
    margin: 2px 0 0;
    font-size: .8rem;
    color: var(--txt-mute);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-side-nav {
    padding: 10px;
    display: grid;
    gap: 2px;
}

.dm-side-group {
    margin: 12px 0 4px;
    padding: 0 12px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--txt-mute);
}

.dm-sidelink {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--txt-soft);
    transition: background .18s, color .18s;
}

.dm-sidelink i {
    width: 17px;
    text-align: center;
    font-size: .88rem;
    color: var(--txt-mute);
    transition: color .18s;
}

.dm-sidelink:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.dm-sidelink:hover i {
    color: var(--brand-300);
}

.dm-sidelink.is-active {
    background: rgba(var(--brand-rgb), .14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .28);
}

.dm-sidelink.is-active i {
    color: var(--brand-400);
}

.dm-sidelink.is-danger {
    color: #f87171;
}

.dm-sidelink.is-danger i {
    color: #f87171;
}

.dm-sidelink-tag {
    margin-left: auto;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 7px;
    border-radius: 99px;
    background: var(--brand);
    color: #fff;
}

.dm-side-sep {
    height: 1px;
    background: var(--line);
    margin: 10px 6px;
}

.dm-dash-main {
    min-width: 0;
    display: grid;
    /* Explicit minmax(0, …): an implicit `auto` track is sized by its item's
       min-content, so a wide table inside a panel would stretch this column and
       push the whole page sideways on phones. */
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.dm-page-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -.03em;
    color: #fff;
}

.dm-page-head p {
    margin: 7px 0 0;
    font-size: .94rem;
    color: var(--txt-soft);
}

/* --------------------------------------------------------------------------
   Prose (WYSIWYG output: blog posts, product descriptions, ToS)
   -------------------------------------------------------------------------- */
.dm-prose {
    color: var(--txt-soft);
    font-size: 1rem;
    line-height: 1.78;
}

.dm-prose > *:first-child {
    margin-top: 0;
}

.dm-prose > *:last-child {
    margin-bottom: 0;
}

.dm-prose h1,
.dm-prose h2,
.dm-prose h3,
.dm-prose h4 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.dm-prose h2 {
    font-size: 1.55rem;
    margin: 2.4rem 0 .9rem;
}

.dm-prose h3 {
    font-size: 1.22rem;
    margin: 2rem 0 .7rem;
}

.dm-prose h4 {
    font-size: 1.05rem;
    margin: 1.6rem 0 .6rem;
}

.dm-prose p {
    margin: 0 0 1.15rem;
}

.dm-prose ul,
.dm-prose ol {
    margin: 0 0 1.2rem;
    padding-left: 1.4rem;
}

.dm-prose ul {
    list-style: disc;
}

.dm-prose ol {
    list-style: decimal;
}

.dm-prose li {
    margin-bottom: .45rem;
    display: list-item;
}

.dm-prose strong,
.dm-prose b {
    color: #fff;
    font-weight: 650;
}

.dm-prose em {
    font-style: italic;
    color: #dfe6ef;
}

.dm-prose u {
    text-decoration: underline;
}

.dm-prose a {
    color: var(--brand-300);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dm-prose a:hover {
    color: #fff;
}

.dm-prose blockquote {
    margin: 1.5rem 0;
    padding: 1.1rem 1.3rem;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: rgba(var(--brand-rgb), .08);
    color: var(--txt-soft);
    font-style: italic;
}

.dm-prose blockquote p:last-child {
    margin-bottom: 0;
}

.dm-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    padding: .15em .42em;
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line);
    color: var(--brand-300);
}

.dm-prose pre {
    margin: 1.4rem 0;
    padding: 1.1rem 1.2rem;
    border-radius: var(--r);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    overflow-x: auto;
}

.dm-prose pre code {
    padding: 0;
    background: none;
    border: 0;
    color: var(--txt);
}

.dm-prose img {
    border-radius: var(--r);
    border: 1px solid var(--line);
    margin: 1.4rem 0;
}

.dm-prose hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.2rem 0;
}

/* Admin-authored content can contain long URLs and wide tables; neither may
   push the page sideways. */
.dm-prose {
    overflow-wrap: anywhere;
}

.dm-prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: .92rem;
}

.dm-prose th,
.dm-prose td {
    padding: 10px 13px;
    border: 1px solid var(--line);
    text-align: left;
}

.dm-prose th {
    background: var(--bg-alt);
    color: #fff;
}

/* Legacy WYSIWYG output often ships hardcoded light colors — neutralise them
   so injected admin content stays readable on the dark surface. */
.dm-prose [style*="background-color"] {
    background-color: transparent !important;
}

.dm-prose span[style*="color"],
.dm-prose p[style*="color"],
.dm-prose div[style*="color"],
.dm-prose li[style*="color"] {
    color: inherit !important;
}

/* --------------------------------------------------------------------------
   Modal (buy-with-balance flow)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 8, .8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    animation: dm-fade .18s var(--ease);
}

.modal-content {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    animation: dm-pop .22s var(--ease);
}

.modal-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-strong);
    color: var(--brand-400);
    font-size: 1.25rem;
}

.modal-icon.success {
    background: rgba(34, 197, 94, .14);
    border-color: rgba(34, 197, 94, .4);
    color: #4ade80;
}

.modal-icon.error {
    background: rgba(239, 68, 68, .14);
    border-color: rgba(239, 68, 68, .4);
    color: #f87171;
}

.modal-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -.02em;
    color: #fff;
}

.modal-message {
    margin: 0 0 20px;
    text-align: center;
    font-size: .9rem;
    color: var(--txt-soft);
    line-height: 1.6;
}

.modal-details {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--r-sm);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.modal-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .86rem;
    padding: 5px 0;
}

.modal-detail-label {
    color: var(--txt-mute);
    flex-shrink: 0;
}

.modal-detail-value {
    color: #fff;
    font-weight: 550;
    text-align: right;
    word-break: break-all;
}

.modal-detail-value.highlight {
    color: var(--brand-400);
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface-3);
    color: var(--txt);
    transition: filter .2s, transform .15s;
}

.modal-btn:hover {
    filter: brightness(1.18);
    transform: translateY(-1px);
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, .05);
    color: var(--txt-soft);
}

.modal-btn-confirm {
    background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
    border-color: rgba(var(--brand-rgb), .5);
    color: #fff;
}

.modal-btn-ok {
    background: linear-gradient(180deg, #2fd06e, #18a957);
    border-color: rgba(34, 197, 94, .5);
    color: #fff;
}

@keyframes dm-fade {
    from {
        opacity: 0;
    }
}

@keyframes dm-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
}

.dm-countdown {
    color: #fcd34d;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.dm-toast {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: min(380px, calc(100vw - 40px));
    padding: 14px 18px;
    border-radius: var(--r);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    font-size: .9rem;
    color: var(--txt);
    animation: dm-toast-in .28s var(--ease);
}

.dm-toast i {
    flex-shrink: 0;
    font-size: 1.05rem;
}

.dm-toast-success {
    border-color: rgba(34, 197, 94, .4);
}

.dm-toast-success i {
    color: #4ade80;
}

.dm-toast-error {
    border-color: rgba(239, 68, 68, .4);
}

.dm-toast-error i {
    color: #f87171;
}

.dm-toast-info i {
    color: var(--brand-400);
}

@keyframes dm-toast-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.dm-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.dm-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.dm-hide {
    display: none !important;
}

@media (max-width: 620px) {
    .dm-hide-sm {
        display: none !important;
    }
}

.dm-mt-0 { margin-top: 0 !important; }
.dm-mt-1 { margin-top: 8px; }
.dm-mt-2 { margin-top: 16px; }
.dm-mt-3 { margin-top: 24px; }
.dm-mt-4 { margin-top: 32px; }
.dm-mb-2 { margin-bottom: 16px; }
.dm-mb-3 { margin-bottom: 24px; }
.dm-gap-sm { gap: 10px; }
.dm-flex-1 { flex: 1; }
.dm-ml-auto { margin-left: auto; }
.dm-nowrap { white-space: nowrap; }
.dm-break { word-break: break-all; }

.dm-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dm-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .dm-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .dm-footer-brand {
        grid-column: 1 / -1;
    }

    .dm-dash {
        /* minmax(0, …) rather than a bare 1fr, so the single column may shrink
           below its content's intrinsic width. */
        grid-template-columns: minmax(0, 1fr);
    }

    .dm-side {
        position: static;
    }

    .dm-side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
    }

    .dm-side-group,
    .dm-side-sep {
        grid-column: 1 / -1;
    }
}

@media (max-width: 940px) {
    .dm-nav {
        display: none;
    }

    .dm-burger {
        display: inline-flex;
    }

    .dm-header-end .dm-btn,
    .dm-header-end .dm-navlink {
        display: none;
    }

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

    .dm-b-3,
    .dm-b-2 {
        grid-column: span 2;
    }

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

    .dm-split,
    .dm-split-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Stacked, the media rail would blow up to full width — keep it a sensible
       size and centred above the text. */
    .dm-split-aside > :first-child {
        max-width: 300px;
        margin-inline: auto;
        width: 100%;
    }

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

@media (max-width: 720px) {
    .dm-wrap {
        padding-inline: 16px;
    }

    .dm-bento,
    .dm-g2,
    .dm-g3,
    .dm-g4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .dm-b-2,
    .dm-b-3 {
        grid-column: span 1;
    }

    .dm-bento-card {
        min-height: 0;
    }

    .dm-bento-live {
        min-height: 300px;
    }

    .dm-side-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .dm-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
        margin-top: 34px;
        padding-top: 24px;
    }

    .dm-hero-cta .dm-btn {
        width: 100%;
    }

    .dm-list-row {
        padding: 16px;
    }

    .dm-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .dm-reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
