@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body.home-page {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    background-color: #070614;
    overflow-x: clip;
}

body.home-page > header,
body.home-page > footer {
    display: none !important;
}

body.home-page main {
    padding: 0 !important;
}

.hx {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 6, 15, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(140, 110, 255, 0.18);
}

.hx-bar,
.hx-foot-bar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.85rem 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.hx-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
}

.hx-mark {
    width: 38px;
    height: 38px;
    display: block;
}

.hx-bar .hx-mark {
    width: 50px;
    height: 50px;
}

.hx-word {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.hx-bar .hx-word {
    font-size: 0.95rem;
}

.hx-word small {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: #A78BFA;
    font-weight: 700;
}

.hx-bar .hx-word small {
    font-size: 0.74rem;
}

.hx-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hx-nav a {
    color: #d5d3e8;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.hx-nav > li > a.is-active {
    color: #fff;
    box-shadow: inset 0 -2px 0 #7C5CFF;
    padding-bottom: 0.35rem;
}

.hx-nav a:hover {
    color: #fff;
}

.hx-cta {
    border-radius: 999px !important;
    padding: 0.65rem 1.15rem !important;
    white-space: nowrap;
}

.hx-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.home {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 3rem;
}

.home-kicker {
    margin: 0 0 0.8rem;
    color: #A78BFA;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home h1 {
    margin: 0 0 1rem;
    font-size: clamp(3.1rem, 5.4vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.12;
    color: #fff;
    overflow: visible;
}

.home h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #fff;
    overflow: visible;
}

.home-accent {
    display: inline-block;
    line-height: 1.2;
    padding-bottom: 0.08em;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-lead {
    max-width: 34rem;
    margin: 0 0 1.5rem;
    color: #b7b6c9;
    font-size: 1rem;
    line-height: 1.6;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.home .btn,
.hx .btn {
    border-radius: 999px;
}

body.home-page .btn-primary {
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    box-shadow: 0 0 22px rgba(59, 157, 255, 0.4);
}

body.home-page .btn-primary:hover {
    box-shadow: 0 8px 28px rgba(124, 92, 255, 0.55);
}

.home-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(180, 160, 255, 0.35);
}

.home-play {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 110, 255, 0.25);
    color: #fff;
}

.home-points {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-points li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #a7a6ba;
    font-size: 0.78rem;
}

.home-points strong {
    display: block;
    color: #fff;
    font-size: 0.86rem;
}

.home-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: #A78BFA;
    margin-top: 0.1rem;
}

.home-hero {
    position: relative;
    width: 100%;
    margin-left: 0;
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: 3rem max(24px, calc((100% - 1192px) / 2)) 4.5rem;
    overflow: hidden;
    background: #070614 url('/assets/images/section-hero.jpg?v=26') center / cover no-repeat;
}

.home-hero::before {
    content: none;
}

.home-hero::after {
    content: none;
}

.home-hero > div:first-child {
    position: relative;
    z-index: 2;
    max-width: 38rem;
}

.home-hero-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    margin: 0;
    pointer-events: none;
}

.home-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
    filter: saturate(1.2) contrast(1.05);
    display: block;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}

.home-section {
    padding: 3.2rem 0 3.6rem;
}

.home-split,
.home-stats,
.home-work-head,
.home-projects {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.home-split {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

#bots,
.home-platform,
.home-cta {
    position: relative;
    isolation: isolate;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#bots {
    background-image: url('/assets/images/section-bots.jpg?v=26');
}

.home-platform {
    background-image: url('/assets/images/section-platform.jpg?v=26');
}

.home-cta {
    background-image: url('/assets/images/section-cta.jpg?v=26');
}

#bots > *,
.home-platform > *,
.home-cta > * {
    position: relative;
    z-index: 1;
}

.home-bot-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-bot-card {
    min-width: 0;
    background: rgba(8, 10, 22, 0.9);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.55), 0 0 24px rgba(140, 60, 255, 0.22);
    padding: 1rem 0.85rem 0.95rem;
    text-align: center;
}

.home-bot-card img,
.home-bot-fallback {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: contain;
    margin: 0 auto 0.7rem;
}

.home-bot-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-weight: 800;
}

.home-bot-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
}

.home-bot-card p {
    margin: 0 0 0.7rem;
    color: #a7a6ba;
    font-size: 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.05rem;
}

.home-more {
    color: #93C5FD;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.home-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-service {
    position: relative;
    background: rgba(16, 14, 32, 0.92);
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.55), 0 0 24px rgba(140, 60, 255, 0.22);
    padding: 1.15rem 1.15rem 1rem;
}

.home-service h3 {
    margin: 0.45rem 0 0.4rem;
    font-size: 1.02rem;
}

.home-service p {
    margin: 0 0 0.7rem;
    color: #b7b6c9;
    font-size: 0.84rem;
}

.home-service ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #d5d3e8;
    font-size: 0.82rem;
}

.home-service li {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin: 0.28rem 0;
}

.home-service li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3B9DFF;
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.28);
}

.home-go {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(180, 160, 255, 0.35);
    color: #fff;
    text-decoration: none;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.home-stat strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.home-stat span {
    color: #a7a6ba;
    font-size: 0.78rem;
}

.home-work-head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.home-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-project {
    background: rgba(16, 14, 32, 0.92);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.55), 0 0 24px rgba(140, 60, 255, 0.22);
    color: inherit;
    text-decoration: none;
}

.home-project img {
    width: 100%;
    height: auto;
    display: block;
}

.home-project div {
    padding: 0.9rem 1rem 1rem;
}

.home-project h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.home-project p {
    margin: 0;
    color: #a7a6ba;
    font-size: 0.82rem;
}

.hx-foot {
    border-top: 1px solid rgba(140, 110, 255, 0.16);
    margin-top: 1rem;
}

.hx-foot-bar {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
}

body.home-page .hx-foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.3rem;
}

.hx-foot a {
    color: #b7b6c9;
    text-decoration: none;
    font-size: 0.88rem;
}

.hx-copy {
    color: #8d8ca0;
    font-size: 0.78rem;
}

.home-platform {
    padding-top: 3.5rem;
}

.home-platform h2,
.home-cta h2 {
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.home-feature-grid {
    max-width: 1040px;
    margin: 1.6rem auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-feature {
    background: rgba(8, 10, 22, 0.9);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4);
    padding: 1.5rem 1.2rem 1.35rem;
    text-align: center;
}

.home-feature h3 {
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
}

.home-feature p {
    margin: 0;
    color: #b7b6c9;
    font-size: 0.92rem;
    line-height: 1.5;
}

.home-cta {
    text-align: center;
    margin-top: 0;
    padding: 4.5rem 24px;
}

.home-cta p {
    color: #b7b6c9;
    margin: 0 0 1.6rem;
}

@media (max-width: 980px) {
    .hx-toggle { display: block; }
    .hx-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #100e1c;
        border-bottom: 1px solid rgba(140, 110, 255, 0.2);
        padding: 0.4rem 0 0.8rem;
    }
    .hx-nav.is-open { display: flex; }
    .hx-nav > li > a { display: block; width: 100%; padding: 0.75rem 1.4rem; }
    .home-split,
    .home-services,
    .home-stats,
    .home-projects,
    .home-work-head {
        grid-template-columns: 1fr;
        display: grid;
    }
    .home-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem;
    }
    .home-hero-art {
        position: relative;
        order: -1;
        width: 100%;
        height: 280px;
        margin: 0;
    }
    .home-hero-art img {
        width: 100%;
        height: 100%;
        object-position: center;
        -webkit-mask-image: linear-gradient(#000 60%, transparent);
        mask-image: linear-gradient(#000 60%, transparent);
    }
    .home-hero > div:first-child { padding: 0 24px; }
    .home-bot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-feature-grid { grid-template-columns: 1fr; }
    body.home-page { background-attachment: scroll; }
    .home-points { flex-wrap: wrap; }
    .hx-foot-bar { flex-direction: column; align-items: flex-start; }
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrap .hx-foot {
    margin-top: 0;
}

.login-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 24px;
    background: #070614 url('/assets/images/section-cta.jpg?v=26') center / cover no-repeat;
}

.login-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
    background: rgba(8, 10, 22, 0.9);
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.55), 0 0 32px rgba(140, 60, 255, 0.28);
    padding: 2.4rem 2rem 1.7rem;
}

.login-card h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #fff;
}

.login-lead {
    margin: 0 0 1.5rem;
    color: #b7b6c9;
    font-size: 1rem;
    line-height: 1.5;
}

.login-discord {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.95rem 1.2rem;
    font-size: 1.05rem;
    border-radius: 999px;
}

.login-legal,
.login-extra {
    margin: 0;
    color: #8d8ca0;
    font-size: 0.84rem;
    line-height: 1.5;
}

.login-legal {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(140, 110, 255, 0.22);
}

.login-extra {
    margin-top: 0.85rem;
}

.login-card a {
    color: #93C5FD;
    font-weight: 600;
    text-decoration: none;
}

.login-card a:hover {
    color: #fff;
}

.login-alert {
    margin: 0 0 1.2rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(180, 30, 50, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 90, 110, 0.45);
    color: #fff;
    font-size: 0.9rem;
    text-align: left;
}

.login-alert strong {
    display: block;
    margin-bottom: 0.2rem;
}

@media (max-width: 640px) {
    .login-card { padding: 1.8rem 1.2rem 1.4rem; }
}

.dash {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(7, 6, 20, 0.78), rgba(7, 6, 20, 0.9)),
        url('/assets/images/section-cta.jpg?v=26') center / cover no-repeat;
    background-attachment: fixed;
}

.dash.dash-mkt {
    background:
        linear-gradient(180deg, rgba(7, 6, 20, 0.78), rgba(7, 6, 20, 0.9)),
        url('/assets/images/section-cta.jpg?v=26') center / cover no-repeat;
    background-attachment: fixed;
}

.dash-stage {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.4rem 24px 3.2rem;
}

.dash h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #fff;
}

.dash-lead {
    margin: 0 0 2rem;
    color: #b7b6c9;
}

.dash-block {
    margin-bottom: 2.2rem;
}

.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.dash-note {
    margin: 0.3rem 0 0;
    color: #a7a6ba;
    font-size: 0.86rem;
}

.dash .btn {
    border-radius: 999px;
}

.dash a.btn-primary,
.dash a.btn-primary:hover {
    color: #fff;
}

.dash-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(180, 160, 255, 0.35);
}

.dash a.dash-ghost:hover,
.dash button.dash-ghost:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.16);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.dash-card {
    background: rgba(8, 10, 22, 0.9);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 0 24px rgba(140, 60, 255, 0.16);
    padding: 1.05rem 1rem 1rem;
}

.dash-id {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    min-width: 0;
}

.dash-id img,
.dash-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-weight: 800;
}

.dash-id > div {
    min-width: 0;
    flex: 1;
}

.dash-id h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
}

.dash-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.dash-role {
    display: inline-block;
    margin-top: 0.25rem;
    color: #C4B5FD;
    font-size: 0.72rem;
    font-weight: 700;
}

.dash-meta {
    margin: 0 0 0.9rem;
    color: #a7a6ba;
    font-size: 0.84rem;
}

.dash-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.dash-foot .dash-meta {
    margin: 0;
}

.dash-wide {
    width: 100%;
}

.dash-actions {
    display: flex;
    gap: 0.45rem;
}

.dash-actions .btn {
    flex: 1;
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
}

.dash-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.dash-tag {
    background: rgba(124, 92, 255, 0.16);
    color: #d5d3e8;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    font-size: 0.72rem;
}

.dash-empty,
.dash-panel {
    background: rgba(8, 10, 22, 0.9);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 0 24px rgba(140, 60, 255, 0.16);
}

.dash-empty {
    padding: 2.2rem 1.2rem;
    text-align: center;
    color: #b7b6c9;
}

.mkt-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.15em;
}

.mkt-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(16, 14, 32, 0.85);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.28);
}

.mkt-label {
    display: block;
    color: #8d8ba3;
    font-size: 0.72rem;
    font-weight: 600;
}

.mkt-value {
    display: block;
    margin-top: 0.12rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mkt-sub {
    display: block;
    margin-top: 0.1rem;
    color: #a7a6ba;
    font-size: 0.72rem;
}

.mkt-users {
    text-align: right;
}

.dash-alert {
    margin: 0 0 1.4rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(80, 16, 24, 0.85);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.dash-status.is-muted {
    color: #a7a6ba;
}

.dash-status.is-muted::before {
    background: #8d8ba3;
    box-shadow: none;
}

.srv-bots {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.srv-bot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: rgba(16, 14, 32, 0.85);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.28);
}

.srv-bot img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.srv-bot span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
}

.srv-plan {
    flex: 0 0 auto;
    color: #C4B5FD;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
}

.srv-drop {
    position: relative;
    flex: 1;
    min-width: 0;
}

.srv-drop-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}

.srv-drop-btn span {
    font-size: 0.65rem;
}

.srv-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow: auto;
    padding: 0.35rem;
    border-radius: 14px;
    background: rgba(12, 10, 24, 0.98);
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 20;
}

.srv-menu.is-open {
    display: block;
}

.dash-card:has(.srv-menu.is-open) {
    position: relative;
    z-index: 6;
}

.srv-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d5d3e8;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.srv-item:hover {
    background: rgba(124, 92, 255, 0.18);
    color: #fff;
}

.srv-item img {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.srv-item.is-empty {
    color: #a7a6ba;
    cursor: default;
}

.srv-item.is-empty:hover {
    background: transparent;
    color: #a7a6ba;
}

.dash-panel {
    padding: 1.15rem 1.1rem 1.15rem;
}

.dash-panel h2 {
    margin-bottom: 1rem;
}

.dash-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.dash-quick a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1.15rem 0.6rem;
    border-radius: 14px;
    background: rgba(16, 14, 32, 0.85);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.28);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.dash-quick a:hover {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.7), 0 0 18px rgba(124, 92, 255, 0.28);
}

.dash-ico {
    width: 1.45rem;
    height: 1.45rem;
    color: #A78BFA;
}

.dash .hx-nav {
    gap: 1.05rem;
}

.dash .hx-nav a,
.dash .hx-drop-btn {
    font-size: 0.86rem;
}

.hx-drop {
    position: relative;
}

.hx-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 0;
    padding: 0;
    color: #d5d3e8;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.hx-drop-btn span {
    font-size: 0.65rem;
}

.hx-drop.is-open .hx-drop-btn,
.hx-drop-btn:hover {
    color: #fff;
}

.hx-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    left: auto;
    width: min(440px, calc(100vw - 2rem));
    max-height: min(70vh, 540px);
    overflow: auto;
    padding: 0.45rem;
    border-radius: 14px;
    background: rgba(12, 10, 24, 0.98);
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 40;
}

.hx-drop.is-open .hx-drop-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.35rem;
    align-items: start;
}

.hx-drop-home {
    grid-column: 1 / -1;
    margin-bottom: 0.15rem;
}

.hx-drop-label {
    margin: 0.4rem 0.75rem 0.05rem;
    color: #a78bfa;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hx-drop-menu a {
    display: block;
    padding: 0.42rem 0.75rem;
    border-radius: 8px;
    color: #d5d3e8;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
    white-space: nowrap;
}

.hx-drop-menu a:hover {
    background: rgba(124, 92, 255, 0.18);
    color: #fff;
}

.bill-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 2.2rem;
}

.bill-stat .mkt-value {
    margin-top: 0.35rem;
    font-size: 1.85rem;
}

.dash-alert.is-ok {
    background: rgba(6, 48, 32, 0.85);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.45);
    color: #bbf7d0;
}

.dash-alert.is-info {
    background: rgba(16, 24, 64, 0.85);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45);
    color: #dbeafe;
}

.dash-status.is-pending {
    color: #fbbf24;
}

.dash-status.is-pending::before {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.dash-status.is-cancelled {
    color: #f87171;
}

.dash-status.is-cancelled::before {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
}

.bill-facts {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(16, 14, 32, 0.85);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.28);
}

.dash-card > .bill-facts:last-child {
    margin-bottom: 0;
}

.bill-fact {
    display: block;
    margin-top: 0.12rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.bill-end {
    text-align: right;
}

.bill-cancel {
    background: transparent;
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.45);
    font-family: inherit;
    cursor: pointer;
}

.dash a.bill-cancel:hover,
.dash button.bill-cancel:hover {
    color: #fff;
    background: rgba(127, 29, 29, 0.45);
}

.dash-empty .btn {
    margin-top: 1rem;
}

.bill-table-wrap {
    overflow-x: auto;
}

.bill-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.bill-table th {
    padding: 0.55rem 0.75rem 0.7rem;
    text-align: left;
    color: #8d8ba3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(140, 110, 255, 0.22);
}

.bill-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(140, 110, 255, 0.14);
    font-size: 0.9rem;
    vertical-align: middle;
}

.bill-table tr:last-child td {
    border-bottom: 0;
}

.bill-table .dash-status {
    margin-top: 0;
}

.bill-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: #c4b5fd;
}

.dash.dash-bill .dash-stage {
    max-width: 1240px;
}

.dash-bill .hx-nav {
    gap: 0.72rem;
}

.dash-bill .hx-nav a,
.dash-bill .hx-drop-btn {
    font-size: 0.8rem;
}

.dash-bill .hx-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.hx-ico {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.bill-user {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.75);
    flex-shrink: 0;
}

.bill-user.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #241a45;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.bill-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #d5d3e8;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bill-logout:hover {
    color: #fff;
}

.bill-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.35rem;
}

.dash-bill .bill-hero h1 {
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    margin-bottom: 0.45rem;
}

.bill-accent {
    background: linear-gradient(100deg, #8B5CF6 0%, #3B9DFF 58%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bill-hero .dash-lead {
    max-width: 38rem;
    margin-bottom: 0;
}

.bill-art {
    justify-self: end;
    width: min(100%, 420px);
}

.bill-art svg {
    display: block;
    width: 100%;
    height: auto;
}

.bill-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.bill-metric {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(10, 12, 28, 0.9);
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.38), 0 0 22px rgba(90, 40, 190, 0.16);
}

.bill-metric-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c4b5fd;
    background: rgba(76, 48, 160, 0.45);
    box-shadow: inset 0 0 0 1px rgba(180, 150, 255, 0.35);
}

.bill-metric-ico svg {
    width: 1.35rem;
    height: 1.35rem;
}

.bill-metric .mkt-label {
    font-size: 0.78rem;
}

.bill-metric strong {
    display: block;
    margin-top: 0.08rem;
    color: #fff;
    font-size: 1.65rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.bill-metric-note {
    display: block;
    margin-top: 0.12rem;
    color: #8d8ba3;
    font-size: 0.75rem;
}

.bill-panel {
    margin-bottom: 1.3rem;
    padding: 1.05rem 1rem 0.55rem;
    border-radius: 18px;
    background: rgba(8, 10, 24, 0.86);
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

.bill-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.bill-panel-title {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
}

.bill-panel-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c4b5fd;
    background: rgba(76, 48, 160, 0.4);
    box-shadow: inset 0 0 0 1px rgba(180, 150, 255, 0.3);
}

.bill-panel-ico svg {
    width: 1.05rem;
    height: 1.05rem;
}

.bill-panel h2 {
    margin-bottom: 0.15rem;
}

.bill-panel-title p {
    margin: 0;
    color: #8d8ba3;
    font-size: 0.8rem;
}

.bill-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.bill-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 250px;
    padding: 0.48rem 0.75rem;
    border-radius: 10px;
    background: rgba(16, 14, 32, 0.9);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.35);
    color: #8d8ba3;
}

.bill-search svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.bill-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.84rem;
}

.bill-search input::placeholder {
    color: #8d8ba3;
}

.bill-filter {
    position: relative;
}

.bill-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.8rem;
    border: 0;
    border-radius: 10px;
    background: rgba(16, 14, 32, 0.9);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.35);
    color: #d5d3e8;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.bill-filter-btn svg {
    width: 0.95rem;
    height: 0.95rem;
}

.bill-filter.is-open .bill-filter-btn,
.bill-filter-btn:hover {
    color: #fff;
}

.bill-filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 160px;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(12, 10, 24, 0.98);
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 20;
}

.bill-filter.is-open .bill-filter-menu {
    display: block;
}

.bill-filter-menu button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d5d3e8;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.bill-filter-menu button:hover,
.bill-filter-menu button.is-active {
    background: rgba(124, 92, 255, 0.18);
    color: #fff;
}

.bill-sheet {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.bill-sheet th {
    padding: 0.55rem 0.7rem 0.7rem;
    text-align: left;
    color: #8d8ba3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(140, 110, 255, 0.18);
}

.bill-sheet td {
    padding: 0.72rem 0.7rem;
    border-bottom: 1px solid rgba(140, 110, 255, 0.1);
    vertical-align: middle;
    color: #eceaf8;
    font-size: 0.9rem;
}

.bill-sheet tr:last-child td {
    border-bottom: 0;
}

.bill-row[hidden] {
    display: none;
}

.bill-who {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.bill-who img,
.bill-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bill-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.bill-who.is-bot img,
.bill-who.is-bot .bill-letter {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.bill-who strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.bill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.bill-badge.is-active { background: #22c55e; }
.bill-badge.is-pending { background: #f59e0b; }
.bill-badge.is-expired { background: #f97316; }
.bill-badge.is-cancelled { background: #ef4444; }

.bill-row-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.4rem;
    white-space: nowrap;
}

.dash-bill .bill-view,
.dash-bill .bill-stop {
    border-radius: 8px;
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.dash-bill .bill-stop {
    background: #ef4444;
    color: #fff;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.dash-bill .bill-stop:hover {
    background: #dc2626;
    color: #fff;
}

.bill-empty,
.bill-none {
    padding: 1.6rem 0.4rem 1.2rem;
    text-align: center;
    color: #b7b6c9;
}

.bill-empty .btn {
    margin-top: 0.9rem;
}

@media (max-width: 980px) {
    .bill-hero {
        grid-template-columns: 1fr;
    }
    .bill-art {
        display: none;
    }
    .bill-panel-head,
    .bill-tools {
        align-items: stretch;
        flex-direction: column;
    }
    .bill-search {
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .bill-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .dash .hx-toggle { display: block; }
    .dash .hx-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #100e1c;
        border-bottom: 1px solid rgba(140, 110, 255, 0.2);
        padding: 0.4rem 0 0.8rem;
    }
    .dash .hx-nav.is-open {
        display: flex;
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
    }
    .dash .hx-nav > li > a,
    .dash .hx-drop-btn {
        display: block;
        width: 100%;
        padding: 0.75rem 1.4rem;
        text-align: left;
        font-size: 0.92rem;
    }
    .dash .hx-drop { width: 100%; }
    .dash .hx-drop-menu {
        position: static;
        width: auto;
        right: auto;
        min-width: 0;
        max-height: none;
        margin: 0 0.8rem 0.4rem;
        box-shadow: none;
        background: rgba(124, 92, 255, 0.08);
    }
}

@media (max-width: 860px) {
    .dash-grid,
    .dash-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dash { background-attachment: scroll; }
}

@media (max-width: 640px) {
    .dash-grid,
    .dash-quick,
    .bill-stats {
        grid-template-columns: 1fr;
    }
    .dash-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.dash-set .dash-stage {
    max-width: 1120px;
}

.set-hero {
    margin-bottom: 1.35rem;
}

.set-hero .dash-lead {
    max-width: 38rem;
    margin-bottom: 0;
}

.set-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.set-stat {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 118px;
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    color: #fff;
}

.set-stat::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -46px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.set-stat.is-level {
    background: linear-gradient(115deg, #4f46e5 0%, #6d5efc 48%, #3b82f6 100%);
}

.set-stat.is-expiry {
    background: linear-gradient(115deg, #047857 0%, #10b981 52%, #14b8a6 100%);
}

.set-stat-main,
.set-pill {
    position: relative;
    z-index: 1;
}

.set-stat-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.set-stat-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.set-stat-ico svg {
    width: 1.45rem;
    height: 1.45rem;
}

.set-stat-k,
.set-stat-note {
    display: block;
    font-size: 0.78rem;
    opacity: 0.9;
}

.set-stat strong {
    display: block;
    margin: 0.08rem 0 0.12rem;
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.set-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.52rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.set-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
}

.set-panel {
    margin-bottom: 1rem;
    padding: 1.15rem 1.15rem 1.15rem;
    border-radius: 18px;
    background: rgba(8, 10, 24, 0.86);
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

.set-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.05rem;
}

.set-panel-head h2,
.set-secure h3,
.set-mini h3 {
    margin: 0 0 0.15rem;
}

.set-panel-head p,
.set-secure p,
.set-mini p {
    margin: 0;
    color: #8d8ba3;
    font-size: 0.82rem;
    line-height: 1.45;
}

.set-ico,
.set-mini-ico,
.set-action-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c4b5fd;
    background: rgba(76, 48, 160, 0.4);
    box-shadow: inset 0 0 0 1px rgba(180, 150, 255, 0.3);
}

.set-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.set-ico svg,
.set-mini-ico svg,
.set-action-ico svg {
    width: 1.05rem;
    height: 1.05rem;
}

.set-profile {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    gap: 1.4rem;
    align-items: center;
}

.set-who {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
}

.set-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #7c5cff 0%, #3b82f6 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.set-fields {
    margin: 0;
    min-width: 0;
    flex: 1;
}

.set-fields > div {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.42rem 0;
}

.set-fields dt {
    margin: 0;
    color: #8d8ba3;
    font-size: 0.84rem;
}

.set-fields dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.set-fields dd span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.set-copy {
    display: inline-flex;
    padding: 0.15rem;
    border: 0;
    background: transparent;
    color: #a7a6ba;
    cursor: pointer;
}

.set-copy svg {
    width: 0.95rem;
    height: 0.95rem;
}

.set-copy:hover,
.set-copy.is-copied {
    color: #c4b5fd;
}

.set-secure {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(140, 110, 255, 0.22);
}

.set-actions,
.set-split {
    display: grid;
    gap: 0.75rem;
}

.set-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.set-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.set-action {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    background: rgba(16, 14, 32, 0.78);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.28);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.set-action span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.set-action:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.14);
}

.set-action-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.set-go {
    color: #a7a6ba;
}

.set-action.is-danger {
    color: #fecaca;
    background: rgba(90, 16, 28, 0.38);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.55);
}

.set-action.is-danger .set-action-ico {
    color: #fda4af;
    background: rgba(120, 20, 36, 0.45);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.set-action.is-danger .set-go,
.set-action.is-danger:hover {
    color: #fecaca;
}

.set-action.is-danger:hover {
    background: rgba(120, 20, 36, 0.5);
}

.set-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 100%;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.24);
}

.set-mini-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    margin-bottom: 0.35rem;
}

.set-mini p {
    flex: 1;
}

.set-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.7rem;
    margin-left: auto;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(76, 48, 160, 0.45);
    box-shadow: inset 0 0 0 1px rgba(180, 150, 255, 0.4);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.set-mini-btn:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.4);
}

.set-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.set-help .set-panel-head {
    margin-bottom: 0;
}

.set-pill-ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(180, 160, 255, 0.45);
}

.set-pill-ghost:hover {
    background: rgba(124, 92, 255, 0.18);
}

@media (max-width: 860px) {
    .set-stats,
    .set-profile,
    .set-actions,
    .set-split {
        grid-template-columns: 1fr;
    }

    .set-stat,
    .set-help {
        align-items: flex-start;
        flex-direction: column;
    }

    .set-secure {
        padding: 1rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(140, 110, 255, 0.22);
    }
}

@media (max-width: 640px) {
    .set-who {
        flex-direction: column;
        align-items: flex-start;
    }

    .set-fields,
    .set-fields > div {
        width: 100%;
    }

    .set-fields > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.12rem;
    }
}

.legal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(7, 6, 20, 0.82), rgba(7, 6, 20, 0.92)),
        url('/assets/images/section-cta.jpg?v=26') center / cover no-repeat;
    background-attachment: fixed;
}

.legal .hx {
    z-index: 40;
    background: #07060f;
    isolation: isolate;
}

.legal .hx-foot {
    margin-top: 0;
}

.legal-stage {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.6rem 24px 3.4rem;
}

.legal-hero {
    margin-bottom: 1.8rem;
    background: none;
    box-shadow: none;
    position: static;
    padding: 0;
    z-index: auto;
}

.legal h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
    color: #fff;
}

.legal-meta {
    margin: 0;
    color: #a7a6ba;
    font-size: 0.92rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 1rem 0.9rem;
    border-radius: 16px;
    background: rgba(8, 10, 22, 0.88);
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.4);
}

.legal-toc p {
    margin: 0 0 0.55rem;
    padding: 0 0.45rem;
    color: #a78bfa;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-toc a {
    display: block;
    padding: 0.38rem 0.45rem;
    border-radius: 8px;
    color: #c8c6d8;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.legal-toc a:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.18);
}

.legal-doc {
    padding: 0.4rem 1.7rem 1.5rem;
    border-radius: 20px;
    background: rgba(8, 10, 22, 0.92);
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 0 28px rgba(140, 60, 255, 0.16);
}

.legal-doc section {
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(140, 110, 255, 0.16);
    scroll-margin-top: 128px;
}

.legal-doc section:last-child {
    border-bottom: 0;
    padding-bottom: 0.4rem;
}

.legal-doc h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.legal-doc h3 {
    margin: 1.15rem 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ddd6fe;
}

.legal-doc p,
.legal-doc li {
    color: #c8c6d8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-doc p {
    margin: 0 0 0.75rem;
}

.legal-doc p:last-child,
.legal-doc ul:last-child {
    margin-bottom: 0;
}

.legal-doc ul {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
}

.legal-doc li + li {
    margin-top: 0.35rem;
}

.legal-doc li::marker {
    color: #a78bfa;
}

.legal-doc strong {
    color: #fff;
    font-weight: 700;
}

.legal-doc a {
    color: #c4b5fd;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal-doc a:hover {
    color: #fff;
}

@media (max-width: 860px) {
    .legal {
        background-attachment: scroll;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        max-height: 220px;
    }

    .legal-doc {
        padding: 0.2rem 1.05rem 1.2rem;
    }
}

.feat {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(7, 6, 20, 0.8), rgba(7, 6, 20, 0.92)),
        url('/assets/images/section-bots.jpg?v=26') center / cover no-repeat;
    background-attachment: fixed;
}

.feat .hx {
    background: #07060f;
}

.feat .hx-foot {
    margin-top: 0;
}

.feat .btn {
    border-radius: 999px;
}

.feat-stage {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.6rem 24px 3.4rem;
}

.feat-hero {
    margin-bottom: 1.5rem;
    background: none;
    box-shadow: none;
    position: static;
    padding: 0;
    z-index: auto;
}

.feat h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2.4rem, 4.4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    color: #fff;
}

.feat-hero .home-lead {
    max-width: 36rem;
    margin-bottom: 0;
}

.feat-switch {
    margin: 0 0 1.8rem;
    padding: 0.55rem;
    border-radius: 18px;
    background: #0c0a16;
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.35);
}

.feat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.feat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0.42rem 0.8rem 0.42rem 0.42rem;
    border-radius: 999px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(180, 160, 255, 0.28);
    color: #d5d3e8;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.feat-chip img,
.feat-chip-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    object-fit: contain;
}

.feat-chip-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-size: 0.72rem;
}

.feat-chip.is-plain {
    padding-left: 0.9rem;
}

.feat-chip:hover {
    color: #fff;
}

.feat-chip.is-active {
    color: #fff;
    background: linear-gradient(110deg, rgba(168, 85, 247, 0.5), rgba(59, 157, 255, 0.32));
    box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.75), 0 0 16px rgba(124, 92, 255, 0.28);
}

.feat-block {
    margin-bottom: 1.6rem;
}

.feat-block > h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.feat .home-feature-grid {
    max-width: none;
    margin: 0;
    padding: 0;
}

.feat-bot {
    margin-bottom: 1.15rem;
    padding: 1.25rem;
    border-radius: 22px;
    background: rgba(8, 10, 22, 0.92);
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 0 28px rgba(140, 60, 255, 0.16);
}

.feat-bot-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.1rem;
}

.feat-bot-head img,
.feat-fallback {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
}

.feat-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}

.feat-bot h2 {
    margin: 0 0 0.28rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.feat-bot-head p {
    margin: 0;
    color: #b7b6c9;
    font-size: 0.92rem;
    line-height: 1.5;
}

.feat-count {
    display: inline-block;
    margin-top: 0.45rem;
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feat-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.feat-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.24);
}

.feat-ico {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(124, 92, 255, 0.18);
    font-size: 1.2rem;
    line-height: 1;
}

.feat-card h3 {
    margin: 0.05rem 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
}

.feat-card p {
    margin: 0;
    color: #b7b6c9;
    font-size: 0.84rem;
    line-height: 1.45;
}

.feat-soon {
    margin: 0;
    padding: 1.4rem 0.4rem 0.4rem;
    text-align: center;
    color: #b7b6c9;
}

.feat-empty {
    padding: 2.4rem 1.4rem;
    border-radius: 20px;
    text-align: center;
    color: #b7b6c9;
    background: rgba(8, 10, 22, 0.92);
    box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.4);
}

@media (max-width: 860px) {
    .feat {
        background-attachment: scroll;
    }

    .feat-bot-head {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .feat-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .feat-grid {
        grid-template-columns: 1fr;
    }
}

.price .feat-bot {
    scroll-margin-top: 5.5rem;
}

.price .feat-bot-head p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem 1.1rem 1.1rem;
    border-radius: 16px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.24);
}

.price-card.is-value {
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.28), rgba(16, 14, 32, 0.88));
    box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.75), 0 0 22px rgba(124, 92, 255, 0.22);
}

.price-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.price-card h3 {
    margin: 0;
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-card.is-value h3 {
    padding-right: 4.8rem;
}

.price-amount {
    margin: 0.55rem 0 0.2rem;
    color: #fff;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.price-amount span {
    color: #b7b6c9;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
}

.price-note {
    margin: 0 0 1rem;
    color: #b7b6c9;
    font-size: 0.84rem;
}

.price-card .btn {
    margin-top: auto;
    width: 100%;
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
}

.price .feat-bot:target {
    box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.85), 0 0 32px rgba(124, 92, 255, 0.28);
}

@media (max-width: 860px) {
    .price-plans {
        grid-template-columns: 1fr;
    }
}

.dash-bot .dash-stage {
    max-width: 1240px;
}

.bot-hero {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.35rem;
}

.bot-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    flex-shrink: 0;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.45), 0 0 24px rgba(124, 92, 255, 0.28);
}

.bot-hero-copy {
    min-width: 0;
    flex: 1;
}

.bot-hero .home-kicker {
    margin-bottom: 0.35rem;
}

.bot-hero h1 {
    margin-bottom: 0.3rem;
}

.bot-hero .dash-lead {
    margin-bottom: 0;
    max-width: 40rem;
}

.bot-add {
    flex-shrink: 0;
}

.dash-bot .bill-view,
.dash-bot .bot-invite {
    border-radius: 8px;
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.bot-sheet {
    min-width: 820px;
}

.bot-id {
    display: block;
    margin-top: 0.15rem;
    color: #8d8ba3;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bot-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.15rem;
    border-top: 1px solid rgba(140, 110, 255, 0.12);
}

.bot-access h3 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 0.98rem;
}

.bot-access .dash-tags {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .bot-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .bot-access {
        align-items: flex-start;
        flex-direction: column;
    }
}

.dash-srv .dash-stage {
    max-width: 1240px;
}

.srv-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.srv-back {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(180, 160, 255, 0.35);
    background: rgba(8, 10, 24, 0.55);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.srv-back:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.2);
}

.srv-hero {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.15rem;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: rgba(8, 10, 24, 0.86);
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

.srv-mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex-shrink: 0;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
}

.srv-hero-copy {
    min-width: 0;
    flex: 1;
}

.srv-hero .home-kicker {
    margin-bottom: 0.2rem;
}

.srv-hero h1 {
    margin-bottom: 0.45rem;
}

.srv-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.srv-plan {
    color: #b7b6c9;
    font-size: 0.88rem;
}

.srv-plan strong {
    color: #fff;
}

.srv-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.srv-ghost,
.srv-danger {
    border-radius: 999px;
    padding: 0.7rem 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.srv-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(180, 160, 255, 0.4);
}

.srv-ghost:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.18);
}

.srv-danger {
    background: rgba(90, 16, 28, 0.45);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.55);
}

.srv-danger:hover {
    color: #fecaca;
    background: rgba(120, 20, 36, 0.6);
}

.srv-note {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.srv-note a {
    font-weight: 700;
    text-decoration: none;
}

.srv-note.is-admin {
    color: #c7d2fe;
    background: rgba(79, 70, 229, 0.16);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.45);
}

.srv-note.is-admin a {
    color: #a5b4fc;
}

.srv-note.is-manager {
    color: #bbf7d0;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.4);
}

.srv-note.is-manager a {
    color: #6ee7b7;
}

.srv-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.srv-metrics .bill-metric strong {
    font-size: 1.7rem;
}

.dash-srv .srv-tabs {
    padding: 0.4rem 1.15rem 1.2rem;
}

.dash-srv .tab-content h2 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 1.15rem;
}

.srv-tab-head {
    margin-bottom: 1rem;
}

.srv-hint,
.srv-empty p,
.srv-row p {
    margin: 0.25rem 0 0;
    color: #8d8ba3;
    font-size: 0.88rem;
}

.srv-hint code {
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: rgba(124, 92, 255, 0.2);
    color: #ddd6fe;
    font-size: 0.84rem;
}

.srv-empty {
    padding: 2.4rem 1rem;
    text-align: center;
    border-radius: 14px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.2);
}

.srv-empty h3 {
    margin: 0 0 0.35rem;
    color: #fff;
}

.srv-list {
    display: grid;
    gap: 0.75rem;
}

.srv-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.24);
}

.srv-row h3 {
    margin: 0;
    color: #fff;
    font-size: 1.02rem;
}

.srv-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
    margin: 0.75rem 0;
}

.srv-facts div {
    display: flex;
    gap: 0.35rem;
}

.srv-facts dt {
    margin: 0;
    color: #8d8ba3;
    font-size: 0.82rem;
}

.srv-facts dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.srv-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b7b6c9;
    font-size: 0.86rem;
    cursor: pointer;
}

.srv-row-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 132px;
}

.dash-srv .group-btn {
    background: rgba(16, 14, 32, 0.78);
    border: 1px solid rgba(140, 110, 255, 0.28);
    color: #b7b6c9;
}

.dash-srv .group-btn.active {
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
    border-color: transparent;
    color: #fff;
}

.dash-srv .tab-bar,
.dash-srv .tab-bar-group {
    border-bottom-color: rgba(140, 110, 255, 0.22);
}

.dash-srv .tab-btn.active {
    color: #ddd6fe;
    border-bottom-color: #a78bfa;
}

@media (max-width: 980px) {
    .srv-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .srv-hero,
    .srv-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .srv-actions,
    .srv-row-actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
    }

    .srv-metrics {
        grid-template-columns: 1fr;
    }
}

:is(.dash-mail, .dash-order) .dash-stage {
    max-width: 1240px;
}

:is(.dash-mail, .dash-order) .mail-sub {
    margin: 0.35rem 0 0;
    color: #b7b6c9;
    font-size: 0.92rem;
    line-height: 1.45;
}

:is(.dash-mail, .dash-order) .mail-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

:is(.dash-mail, .dash-order) .card,
:is(.dash-mail, .dash-order) .stat-card,
:is(.dash-mail, .dash-order) .keyword-card,
:is(.dash-mail, .dash-order) .warning-card,
:is(.dash-mail, .dash-order) .manager-card,
:is(.dash-mail, .dash-order) .category-card,
:is(.dash-mail, .dash-order) .info-box {
    background: rgba(8, 10, 24, 0.86);
    border: 0;
    border-radius: 18px;
    color: #eceaf8;
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

:is(.dash-mail, .dash-order) .card:hover,
:is(.dash-mail, .dash-order) .keyword-card:hover,
:is(.dash-mail, .dash-order) .manager-card:hover,
:is(.dash-mail, .dash-order) .category-card:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

:is(.dash-mail, .dash-order) .warning-card {
    border-left: 3px solid #f87171;
}

:is(.dash-mail, .dash-order) .info-box {
    color: #ddd6fe;
}

:is(.dash-mail, .dash-order) h2,
:is(.dash-mail, .dash-order) h3,
:is(.dash-mail, .dash-order) .keyword-text,
:is(.dash-mail, .dash-order) .stat-value {
    color: #fff;
}

:is(.dash-mail, .dash-order) .form-control,
:is(.dash-mail, .dash-order) input[type="text"],
:is(.dash-mail, .dash-order) input[type="search"],
:is(.dash-mail, .dash-order) input[type="number"],
:is(.dash-mail, .dash-order) input[type="datetime-local"],
:is(.dash-mail, .dash-order) select,
:is(.dash-mail, .dash-order) textarea {
    background: rgba(16, 14, 32, 0.9);
    border: 0;
    border-radius: 10px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.35);
}

:is(.dash-mail, .dash-order) .form-control:focus,
:is(.dash-mail, .dash-order) input[type="text"]:focus,
:is(.dash-mail, .dash-order) input[type="search"]:focus,
:is(.dash-mail, .dash-order) input[type="number"]:focus,
:is(.dash-mail, .dash-order) input[type="datetime-local"]:focus,
:is(.dash-mail, .dash-order) select:focus,
:is(.dash-mail, .dash-order) textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.85);
}

:is(.dash-mail, .dash-order) .btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(180, 160, 255, 0.4);
}

:is(.dash-mail, .dash-order) .btn-secondary:hover {
    background: rgba(124, 92, 255, 0.18);
    color: #fff;
}

:is(.dash-mail, .dash-order) .table {
    background: transparent;
}

:is(.dash-mail, .dash-order) .table th {
    color: #8d8ba3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(140, 110, 255, 0.22);
}

:is(.dash-mail, .dash-order) .table td {
    color: #eceaf8;
    border-bottom: 1px solid rgba(140, 110, 255, 0.14);
}

:is(.dash-mail, .dash-order) .table tr:hover {
    background: rgba(124, 92, 255, 0.08);
}

:is(.dash-mail, .dash-order) code {
    color: #c4b5fd;
}

:is(.dash-mail, .dash-order) .settings-accordion-summary {
    color: #fff;
}

:is(.dash-mail, .dash-order) .settings-accordion-body {
    border-top-color: rgba(140, 110, 255, 0.18);
}

:is(.dash-mail, .dash-order) #threadModal,
:is(.dash-mail, .dash-order) #snippetModal,
:is(.dash-mail, .dash-order) .emoji-picker {
    z-index: 4000 !important;
}

:is(.dash-mail, .dash-order) #threadModal > div,
:is(.dash-mail, .dash-order) #snippetModal > div {
    background: #100e1c !important;
    color: #eceaf8;
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dash-order #editModal,
.dash-order #standaloneModal,
.dash-order #tierModal,
.dash-order #catModal,
.dash-order #categoryModal,
.dash-order #itemModal,
.dash-order #managerModal,
.dash-order #discountModal,
.dash-order #productModal,
.dash-order #blockModal,
.dash-order .modal-overlay,
.dash-order #copyFlowOverlay {
    z-index: 4000 !important;
}

.dash-order .profile-hero,
.dash-order .profile-stat-card {
    background: rgba(8, 10, 24, 0.86);
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
    color: #fff;
}

.dash-builder .dash-stage {
    max-width: none;
    padding: 0;
}

.dash-builder .builder-wrap {
    height: calc(100vh - 72px);
    min-height: 560px;
}

.dash-builder .hx-foot {
    display: none;
}

.dash .ac1-nav {
    background: rgba(8, 10, 24, 0.86);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32);
    margin-bottom: 1.15rem;
}

.dash .ac1-nav-link {
    color: #d5d3e8;
    border-radius: 999px;
}

.dash .ac1-nav-link:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.18);
}

.dash .ac1-nav-link.is-active {
    color: #fff;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
}

.hx-drop-btn.is-active {
    color: #fff;
    box-shadow: inset 0 -2px 0 #7C5CFF;
    padding-bottom: 0.35rem;
}

.hx-drop-menu a.is-active {
    background: rgba(124, 92, 255, 0.22);
    color: #fff;
}

.dash-admin .hx-bar,
.dash-admin .hx-foot-bar,
.dash-admin .dash-stage {
    max-width: 1400px;
}

.dash-admin .container {
    max-width: none;
    padding: 0 !important;
}

.dash-admin .card {
    background: rgba(8, 10, 24, 0.86);
    border: 0;
    border-radius: 18px;
    color: #eceaf8;
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

.dash-admin .card:has(table) {
    overflow-x: auto;
}

.dash-admin .card:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

.dash-admin h2,
.dash-admin h3,
.dash-admin .card-header {
    color: #fff;
}

.dash-admin .form-group label,
.dash-admin .form-label {
    color: #ddd6fe;
}

.dash-admin .form-control,
.dash-admin input[type="text"],
.dash-admin input[type="search"],
.dash-admin input[type="number"],
.dash-admin input[type="email"],
.dash-admin input[type="url"],
.dash-admin input[type="password"],
.dash-admin input[type="datetime-local"],
.dash-admin select,
.dash-admin textarea {
    background: rgba(16, 14, 32, 0.9);
    border: 0;
    border-radius: 10px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.35);
}

.dash-admin .form-control:focus,
.dash-admin input[type="text"]:focus,
.dash-admin input[type="search"]:focus,
.dash-admin input[type="number"]:focus,
.dash-admin input[type="email"]:focus,
.dash-admin input[type="url"]:focus,
.dash-admin input[type="password"]:focus,
.dash-admin select:focus,
.dash-admin textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.85);
}

.dash-admin .btn-secondary,
.dash-admin .btn-info {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(180, 160, 255, 0.4);
}

.dash-admin .btn-secondary:hover,
.dash-admin .btn-info:hover {
    background: rgba(124, 92, 255, 0.18);
    color: #fff;
}

.dash-admin .btn-danger {
    background: #ef4444;
    color: #fff;
    border: 0;
}

.dash-admin .table {
    background: transparent;
}

.dash-admin .table thead {
    background: transparent;
}

.dash-admin .table th {
    color: #8d8ba3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(140, 110, 255, 0.22);
    border-top: 0;
}

.dash-admin .table td {
    color: #eceaf8;
    border-top: 0;
    border-bottom: 1px solid rgba(140, 110, 255, 0.14);
}

.dash-admin .table tr:hover {
    background: rgba(124, 92, 255, 0.08);
}

.dash-admin code {
    color: #c4b5fd;
}

.dash-admin .alert {
    border: 0;
    border-radius: 12px;
}

.dash-admin .alert-success {
    background: rgba(6, 48, 32, 0.85);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.45);
    color: #bbf7d0;
}

.dash-admin .alert-danger {
    background: rgba(80, 16, 28, 0.85);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.dash-admin .alert-warning,
.dash-admin .alert-info {
    background: rgba(16, 24, 64, 0.85);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45);
    color: #dbeafe;
}

.dash-admin #editModal {
    z-index: 4000 !important;
}

.login-card.is-wide {
    max-width: 560px;
}

.login-card.is-left {
    text-align: left;
}

.login-card .btn-primary {
    width: 100%;
    border-radius: 999px;
    color: #fff;
}

.login-card .code-input,
.login-card .recovery-input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.9rem;
    text-align: center;
    color: #fff;
    background: rgba(16, 14, 32, 0.9);
    border: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.35);
}

.login-card .code-input {
    font-size: 1.6rem;
    letter-spacing: 0.45em;
}

.login-card .recovery-input {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.12em;
}

.login-card .code-input:focus,
.login-card .recovery-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.85);
}

.totp-steps {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 0.4rem;
}

.totp-step {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: #d5d3e8;
    line-height: 1.5;
}

.totp-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    background: linear-gradient(110deg, #A855F7 0%, #7C5CFF 45%, #3B9DFF 100%);
}

.totp-qr {
    display: block;
    margin: 0.9rem auto;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.totp-secret,
.totp-code {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.08em;
    background: rgba(16, 14, 32, 0.9);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.35);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    text-align: center;
    color: #fff;
}

.totp-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.8rem 0 1.2rem;
}

.totp-warn {
    margin-bottom: 1.2rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(80, 48, 8, 0.8);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.45);
    color: #fde68a;
    text-align: left;
}

.dash-order .container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 !important;
}

.flow-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.flow-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.flow-feature {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(140, 110, 255, 0.14);
}

.flow-feature:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.flow-feature strong {
    display: block;
    color: #fff;
}

.flow-feature p {
    margin: 0.2rem 0 0;
    color: #b7b6c9;
    font-size: 0.88rem;
}

.flow-points {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: #b7b6c9;
    font-size: 0.84rem;
}

.flow-points li + li {
    margin-top: 0.35rem;
}

.flow-points li::before {
    content: "✓ ";
    color: #c4b5fd;
}

.flow-pick {
    display: block;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.24);
    color: inherit;
    text-decoration: none;
}

.flow-pick:hover {
    color: inherit;
    box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.75);
}

.flow-summary {
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(16, 14, 32, 0.72);
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.24);
}

.flow-line {
    padding-top: 0.9rem;
    margin-top: 0.9rem;
    border-top: 1px solid rgba(140, 110, 255, 0.18);
}

.dash-order .alert-success {
    background: rgba(6, 48, 32, 0.85);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.45);
    color: #bbf7d0;
    border-radius: 12px;
}

.dash-order .alert-danger,
.dash-order .alert-error {
    background: rgba(80, 16, 28, 0.85);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
    color: #fecaca;
    border-radius: 12px;
}

.dash-admin .admin-section,
.dash-admin .admin-filters {
    margin-bottom: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: rgba(8, 10, 24, 0.86);
    color: #eceaf8;
    box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.32), 0 0 28px rgba(80, 40, 180, 0.14);
}

.dash-admin .admin-table {
    width: 100%;
    background: transparent;
    color: #eceaf8;
}

.dash-admin .admin-table th {
    color: #8d8ba3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(140, 110, 255, 0.22);
}

.dash-admin .admin-table td {
    color: #eceaf8;
    border-bottom: 1px solid rgba(140, 110, 255, 0.14);
}

.dash-admin .search-input,
.dash-admin .filter-form input {
    background: rgba(16, 14, 32, 0.9);
    border: 0;
    border-radius: 10px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(140, 110, 255, 0.35);
}

.price-card:has(input:checked) {
    box-shadow: inset 0 0 0 2px #34d399, 0 0 22px rgba(52, 211, 153, 0.18);
}

.price-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 860px) {
    .flow-split {
        grid-template-columns: 1fr;
    }
}
