:root,
[data-bs-theme="dark"],
[data-bs-theme="light"] {
    --security-bg: #0b0f14;
    --security-surface: rgba(16, 22, 30, 0.92);
    --security-surface-strong: #121923;
    --security-surface-soft: #18212c;
    --security-border: rgba(141, 168, 198, 0.14);
    --security-border-strong: rgba(141, 168, 198, 0.22);
    --security-text: #eef5fb;
    --security-text-soft: #c5d3df;
    --security-text-muted: #8ba3ba;
    --security-primary: #4bb3fd;
    --security-primary-soft: rgba(75, 179, 253, 0.14);
    --security-critical: #ff5468;
    --security-high: #ff9f43;
    --security-medium: #ffd166;
    --security-low: #39d98a;
    --security-shadow: 0 24px 80px rgba(3, 8, 15, 0.46);
    --security-sidebar-width: 304px;
    --security-sidebar-width-sm: 94px;
    --security-layout-sidebar-width: var(--security-sidebar-width);
    --security-topbar-height: 84px;
    --security-content-padding-inline: clamp(18px, 2vw, 26px);
    --security-content-padding-bottom: 110px;
    --bs-body-bg: #0b0f14;
    --bs-body-color: #c5d3df;
    --bs-border-color: rgba(141, 168, 198, 0.14);
    --bs-card-bg: rgba(16, 22, 30, 0.92);
    --bs-card-border-color: rgba(141, 168, 198, 0.14);
    --bs-border-radius: 20px;
    --bs-border-radius-lg: 24px;
    --bs-link-color: #d9f1ff;
    --bs-link-hover-color: #ffffff;
    --bs-secondary-color: #8ba3ba;
    --bs-emphasis-color: #eef5fb;
    --bs-font-sans-serif: "IBM Plex Sans", sans-serif;
    --bs-heading-color: #eef5fb;
}

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

html,
body {
    min-height: 100%;
    overflow-x: clip;
    background:
        radial-gradient(circle at top left, rgba(75, 179, 253, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(57, 217, 138, 0.08), transparent 22%),
        var(--security-bg);
}

body {
    color: var(--security-text-soft);
    font-family: "IBM Plex Sans", sans-serif;
    letter-spacing: -0.01em;
}

body.sidebar-open {
    overflow: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.brand-title,
.topbar-brand-title {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
    color: var(--security-text);
}

a {
    color: inherit;
}

.app-wrapper {
    position: relative;
}

.app-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
        radial-gradient(circle at 20% 20%, rgba(75, 179, 253, 0.08), transparent 26%);
    opacity: 0.8;
}

.page-content {
    min-height: calc(100vh - var(--security-topbar-height));
    margin-left: var(--security-layout-sidebar-width);
    max-width: 100%;
    min-width: 0;
    padding: 26px var(--security-content-padding-inline) var(--security-content-padding-bottom);
}

.container-fluid {
    max-width: 1560px;
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1005;
    min-height: var(--security-topbar-height);
    padding-left: var(--security-layout-sidebar-width);
    background: rgba(11, 15, 20, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--security-border);
}

.app-topbar .container-fluid {
    min-width: 0;
}

.app-topbar .navbar-header {
    min-width: 0;
    min-height: var(--security-topbar-height);
    flex-wrap: nowrap;
    gap: 18px;
    padding: 0 14px;
}

.app-topbar .navbar-header > * {
    min-width: 0;
}

.app-topbar .topbar-item {
    height: auto;
}

.topbar-item .topbar-button {
    width: 42px;
    height: 42px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--security-border);
    color: var(--security-text-soft);
    box-shadow: none;
}

.topbar-item .topbar-button#page-header-user-dropdown {
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 0.35rem 0.45rem 0.35rem 0.35rem;
}

.topbar-item .topbar-button#page-header-user-dropdown img {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-item .topbar-button:hover,
.topbar-item .topbar-button:focus,
.topbar-item .topbar-button.show {
    color: var(--security-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--security-border-strong);
}

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

.topbar-brand-mark,
.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(75, 179, 253, 0.18), rgba(57, 217, 138, 0.18));
    color: var(--security-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.topbar-brand-copy,
.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.topbar-brand-title,
.brand-title {
    font-size: 1rem;
    font-weight: 700;
}

.topbar-brand-subtitle,
.brand-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--security-text-muted);
}

.topbar-command {
    flex-direction: column;
    min-width: 0;
    max-width: min(100%, 24rem);
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--security-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.topbar-command-label,
.section-kicker,
.page-title-kicker,
.support-kicker {
    color: var(--security-primary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.topbar-command-value {
    color: var(--security-text-soft);
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-search {
    flex: 1 1 22rem;
    min-width: min(18rem, 100%);
    width: min(520px, 100%);
}

.app-search .position-relative {
    width: 100%;
}

.app-search .form-control {
    height: 48px;
    border-radius: 16px;
    padding-left: 46px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--security-border);
    color: var(--security-text);
}

.app-search .form-control::placeholder {
    color: var(--security-text-muted);
}

.app-search .form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(75, 179, 253, 0.45);
    box-shadow: 0 0 0 4px rgba(75, 179, 253, 0.12);
}

.app-search .search-widget-icon {
    color: var(--security-text-muted);
    left: 15px;
}

.status-pill,
.severity-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
}

.status-pill {
    background: rgba(255, 255, 255, 0.05);
    color: var(--security-text-soft);
    border-color: rgba(255, 255, 255, 0.06);
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 999px;
    background: var(--security-low);
    box-shadow: 0 0 0 6px rgba(57, 217, 138, 0.12);
}

.status-completed {
    background: rgba(57, 217, 138, 0.14);
    border-color: rgba(57, 217, 138, 0.22);
    color: #7ce7b0;
}

.status-running {
    background: rgba(75, 179, 253, 0.16);
    border-color: rgba(75, 179, 253, 0.24);
    color: #87cbff;
}

.status-warning {
    background: rgba(255, 159, 67, 0.16);
    border-color: rgba(255, 159, 67, 0.24);
    color: #ffc380;
}

.status-default {
    background: rgba(139, 163, 186, 0.14);
    border-color: rgba(139, 163, 186, 0.2);
    color: var(--security-text-soft);
}

.severity-critical,
.alert-critical,
.severity-dot.severity-critical {
    color: #ffe2e6;
    background: rgba(255, 84, 104, 0.16);
    border-color: rgba(255, 84, 104, 0.28);
}

.severity-high,
.alert-high,
.severity-dot.severity-high {
    color: #ffe9d2;
    background: rgba(255, 159, 67, 0.16);
    border-color: rgba(255, 159, 67, 0.26);
}

.severity-medium,
.alert-medium,
.severity-dot.severity-medium {
    color: #fff3c4;
    background: rgba(255, 209, 102, 0.16);
    border-color: rgba(255, 209, 102, 0.26);
}

.severity-low,
.alert-low,
.severity-dot.severity-low {
    color: #d9ffeb;
    background: rgba(57, 217, 138, 0.16);
    border-color: rgba(57, 217, 138, 0.26);
}

.alert-info {
    color: #d8f1ff;
    background: rgba(75, 179, 253, 0.16);
    border-color: rgba(75, 179, 253, 0.26);
}

.severity-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.alert-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.topbar-badge {
    background: var(--security-critical) !important;
    box-shadow: 0 0 0 4px rgba(11, 15, 20, 0.85);
}

.security-dropdown-header {
    background: rgba(255, 255, 255, 0.02);
}

.topbar-user-copy {
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.topbar-user-name {
    font-weight: 700;
    color: var(--security-text);
}

.topbar-user-role {
    font-size: 0.72rem;
    color: var(--security-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dropdown-menu {
    border-radius: 18px;
    border: 1px solid var(--security-border);
    background: rgba(11, 15, 20, 0.94);
    box-shadow: var(--security-shadow);
    color: var(--security-text-soft);
    padding: 0.65rem;
}

.dropdown-item,
.dropdown-header {
    color: var(--security-text-soft);
}

.security-dropdown-header a {
    color: var(--security-text-muted);
}

.dropdown-item {
    border-radius: 14px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--security-text);
    background: rgba(255, 255, 255, 0.05);
}

.app-sidebar {
    width: var(--security-sidebar-width);
    min-width: var(--security-sidebar-width);
    max-width: 100%;
    background:
        linear-gradient(180deg, rgba(18, 25, 35, 0.98), rgba(11, 15, 20, 0.98)),
        var(--security-bg);
    border-right: 1px solid var(--security-border);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 26px;
    overflow: hidden;
}

.logo-box {
    position: sticky;
    top: 0;
    padding: 20px 24px 14px;
    line-height: normal;
    background: transparent;
}

.logo-box .logo-dark {
    display: inline-flex;
}

.logo-box .logo-light {
    display: none;
}

.app-sidebar .scrollbar {
    height: calc(100% - 88px);
    padding: 0 18px 26px;
}

.app-sidebar .navbar-nav {
    margin: 0;
    gap: 4px;
}

.app-sidebar .menu-title {
    padding: 18px 12px 8px;
    height: auto;
    color: var(--security-text-muted);
}

.app-sidebar .navbar-nav .nav-item {
    padding: 0;
}

.app-sidebar .navbar-nav .nav-link {
    gap: 14px;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    color: var(--security-text-soft);
    background: transparent;
    border: 1px solid transparent;
}

.app-sidebar .navbar-nav .nav-link:hover,
.app-sidebar .navbar-nav .nav-link.active {
    color: var(--security-text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--security-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.app-sidebar .nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-sidebar .nav-link.active .nav-icon,
.app-sidebar .nav-link:hover .nav-icon {
    background: rgba(75, 179, 253, 0.14);
    color: var(--security-primary);
}

.sidebar-support-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--security-border);
    background: linear-gradient(180deg, rgba(255, 84, 104, 0.1), rgba(255, 159, 67, 0.06));
}

.sidebar-support-card h5 {
    margin: 10px 0 10px;
    font-size: 1.12rem;
}

.sidebar-support-card p {
    color: var(--security-text-soft);
    margin-bottom: 14px;
}

.page-title-box,
.security-page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 24px;
}

.page-title-box > *,
.security-page-title > *,
.hero-panel-header > *,
.detail-header > *,
.risk-list-item > *,
.stack-list-item > * {
    min-width: 0;
}

.security-page-title h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.security-page-title p {
    color: var(--security-text-muted);
    max-width: 720px;
}

.security-page-meta {
    min-width: 200px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--security-border);
    background: rgba(255, 255, 255, 0.03);
    text-align: right;
}

.security-page-meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--security-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.security-page-meta-value {
    display: block;
    font-size: 1.05rem;
    color: var(--security-text);
    font-weight: 700;
    margin-top: 4px;
}

.card {
    margin-bottom: 0;
    border: 1px solid var(--security-border);
    border-radius: 22px;
    background: var(--security-surface);
    box-shadow: var(--security-shadow);
    backdrop-filter: blur(14px);
    min-width: 0;
}

.card-header {
    padding: 1.5rem 1.5rem 0.75rem;
    background: transparent;
    min-width: 0;
}

.card-body {
    padding: 1.5rem;
    min-width: 0;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer {
    background: rgba(16, 22, 30, 0.78);
    border: 1px solid var(--security-border);
    color: var(--security-text-muted);
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(75, 179, 253, 0.12);
    border: 1px solid rgba(75, 179, 253, 0.22);
    color: #d9f1ff;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.security-hero-card {
    overflow: hidden;
    position: relative;
}

.security-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(75, 179, 253, 0.16), transparent 66%);
    pointer-events: none;
}

.security-hero-title {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.security-hero-copy {
    max-width: 62ch;
    color: var(--security-text-muted);
    font-size: 1rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-metric,
.mini-stat-card,
.detail-score-card,
.integration-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--security-border);
    background: rgba(255, 255, 255, 0.03);
}

.hero-metric strong {
    display: block;
    margin-top: 8px;
    font-size: 1.25rem;
    color: var(--security-text);
}

.hero-metric-label,
.mini-stat-label,
.score-label,
.mini-stat-helper,
.metric-footnote {
    color: var(--security-text-muted);
}

.hero-panel {
    position: relative;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--security-border);
    background: rgba(7, 11, 16, 0.54);
}

.hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.risk-list,
.stack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-list-item,
.stack-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid var(--security-border);
    background: rgba(255, 255, 255, 0.03);
}

.risk-list-copy,
.stack-list-item > div,
.stack-list-aside {
    min-width: 0;
}

.risk-list-item:hover {
    border-color: var(--security-border-strong);
    transform: translateY(-1px);
}

.risk-list-copy h5,
.stack-list-item h5 {
    margin: 10px 0 4px;
    font-size: 0.98rem;
}

.risk-list-copy p,
.stack-list-item p {
    margin: 0;
    color: var(--security-text-muted);
    font-size: 0.9rem;
}

.risk-list-icon {
    font-size: 1.15rem;
    color: var(--security-text-muted);
}

.security-chart-sm {
    min-height: 240px;
}

.security-chart-lg {
    min-height: 320px;
}

.score-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.score-summary strong {
    color: var(--security-low);
    font-size: 1.2rem;
}

.severity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.severity-list-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.severity-list-item strong,
.mini-stat-value,
.stack-list-aside strong {
    font-size: 1.1rem;
    color: var(--security-text);
}

.mini-stat-grid,
.integration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mini-stat-helper {
    margin: 10px 0 0;
    font-size: 0.85rem;
}

.stack-list-aside {
    text-align: right;
}

.stack-list-caption {
    display: block;
    margin-top: 4px;
    color: var(--security-text-muted);
    font-size: 0.82rem;
}

.dashboard-filter-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--security-border);
}

.dashboard-filter-group .btn {
    min-height: 44px;
}

.btn {
    border-radius: 14px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #2095ff, #39d98a);
    border: none;
    color: #041019;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #041019;
    box-shadow: 0 0 0 4px rgba(75, 179, 253, 0.16);
}

.btn-outline-light {
    color: var(--security-text-soft);
    border-color: var(--security-border);
    background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light.active {
    color: var(--security-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--security-border-strong);
}

.security-table {
    color: var(--security-text-soft);
    width: 100%;
}

.security-table thead th {
    padding: 1rem 1rem 0.95rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--security-text-muted);
    border-bottom: 1px solid var(--security-border);
    background: transparent;
    white-space: normal;
}

.security-table tbody td {
    padding: 1rem;
    border-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    white-space: normal;
}

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

.table-primary-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-primary-cell strong {
    color: var(--security-text);
}

.table-subcopy {
    font-size: 0.86rem;
    color: var(--security-text-muted);
}

.table-count-badge {
    display: inline-flex;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(75, 179, 253, 0.12);
    border: 1px solid rgba(75, 179, 253, 0.2);
    color: #cfe8ff;
    font-weight: 700;
}

.table-link {
    color: var(--security-text);
    text-decoration: none;
}

.table-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.security-stat-card h3 {
    margin: 14px 0 6px;
    font-size: 2rem;
}

.security-stat-card p {
    margin-bottom: 0;
    color: var(--security-text-muted);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.detail-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.detail-summary {
    color: var(--security-text-muted);
}

.detail-score-card {
    min-width: 140px;
    text-align: center;
}

.detail-score-label {
    display: block;
    color: var(--security-text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-score-card strong {
    display: block;
    color: var(--security-text);
    font-size: 2.2rem;
    margin-top: 6px;
}

.detail-grid {
    display: grid;
    gap: 18px;
}

.detail-section {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--security-border);
    background: rgba(255, 255, 255, 0.025);
}

.detail-code-block {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    color: #dff4ff;
    font-family: "IBM Plex Mono", monospace;
}

.detail-meta-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-meta-item {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-meta-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-meta-item span {
    display: block;
    color: var(--security-text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.detail-meta-item strong {
    color: var(--security-text);
    font-weight: 600;
    word-break: break-word;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.path-card {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--security-border);
    background: rgba(255, 255, 255, 0.03);
}

.path-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.path-card p {
    color: var(--security-text-muted);
}

.path-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.path-steps span {
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--security-text-soft);
    font-size: 0.8rem;
}

.settings-block {
    margin-bottom: 18px;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--security-border);
    color: var(--security-text);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(75, 179, 253, 0.45);
    box-shadow: 0 0 0 4px rgba(75, 179, 253, 0.12);
    color: var(--security-text);
}

.form-label {
    color: var(--security-text-soft);
    font-weight: 600;
}

.settings-switch {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-switch .form-check-input {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

.settings-switch .form-check-input:checked {
    background-color: var(--security-primary);
    border-color: var(--security-primary);
}

.integration-card p {
    color: var(--security-text-muted);
    margin: 10px 0 14px;
}

.app-sidebar .nav-text,
.topbar-user-name,
.topbar-user-role,
.security-page-title p,
.risk-list-copy p,
.stack-list-item p,
.table-primary-cell strong,
.table-subcopy,
.detail-summary,
.detail-meta-item strong,
.path-card p,
.hero-metric strong,
.mini-stat-value {
    overflow-wrap: anywhere;
}

.apexcharts-canvas,
.apexcharts-svg {
    max-width: 100% !important;
}

body.auth-premium-page {
    --auth-background: #f4f7fb;
    --auth-surface: rgba(255, 255, 255, 0.72);
    --auth-surface-strong: rgba(255, 255, 255, 0.92);
    --auth-surface-soft: rgba(248, 250, 252, 0.94);
    --auth-border: rgba(15, 23, 42, 0.08);
    --auth-border-strong: rgba(74, 129, 211, 0.22);
    --auth-text: #101828;
    --auth-text-soft: #334155;
    --auth-text-muted: #64748b;
    --auth-accent: #4a81d3;
    --auth-accent-soft: rgba(74, 129, 211, 0.12);
    --auth-shadow-lg: 0 32px 90px rgba(15, 23, 42, 0.14);
    --auth-shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
    --auth-frame-border: rgba(255, 255, 255, 0.62);
    --auth-frame-fill-top: rgba(255, 255, 255, 0.84);
    --auth-frame-fill-bottom: rgba(255, 255, 255, 0.72);
    --auth-frame-overlay-top: rgba(255, 255, 255, 0.45);
    --auth-frame-overlay-soft: rgba(255, 255, 255, 0.18);
    --auth-frame-pattern: rgba(148, 163, 184, 0.05);
    --auth-story-bg: linear-gradient(180deg, rgba(249, 251, 255, 0.82), rgba(241, 246, 253, 0.72));
    --auth-story-divider: rgba(15, 23, 42, 0.06);
    --auth-panel-bg: rgba(255, 255, 255, 0.56);
    --auth-wordmark-meta: #7c8ca0;
    --auth-wordmark-highlight: rgba(74, 129, 211, 0.14);
    --auth-switch-bg: rgba(148, 163, 184, 0.12);
    --auth-switch-border: rgba(15, 23, 42, 0.06);
    --auth-switch-option: #5b6b80;
    --auth-switch-option-hover: rgba(255, 255, 255, 0.5);
    --auth-switch-active-bg: rgba(255, 255, 255, 0.9);
    --auth-switch-active-color: #101828;
    --auth-switch-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    --auth-switch-icon-size: 1rem;
    --auth-pill-bg: rgba(255, 255, 255, 0.78);
    --auth-pill-border: rgba(74, 129, 211, 0.12);
    --auth-tabs-bg: rgba(148, 163, 184, 0.12);
    --auth-tabs-border: rgba(15, 23, 42, 0.06);
    --auth-tab-hover: rgba(255, 255, 255, 0.56);
    --auth-tab-active-bg: linear-gradient(180deg, #15243a, #101828);
    --auth-tab-active-color: #ffffff;
    --auth-tab-active-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
    --auth-card-border: rgba(15, 23, 42, 0.06);
    --auth-card-bg: rgba(255, 255, 255, 0.6);
    --auth-card-index-bg: linear-gradient(180deg, rgba(74, 129, 211, 0.14), rgba(74, 129, 211, 0.06));
    --auth-metric-bg: rgba(255, 255, 255, 0.7);
    --auth-input-border: rgba(15, 23, 42, 0.08);
    --auth-input-bg: rgba(248, 250, 252, 0.92);
    --auth-input-hover-border: rgba(15, 23, 42, 0.14);
    --auth-input-hover-bg: rgba(255, 255, 255, 0.96);
    --auth-input-placeholder: #94a3b8;
    --auth-input-highlight: rgba(74, 129, 211, 0.36);
    --auth-input-shadow: rgba(74, 129, 211, 0.14);
    --auth-input-shadow-strong: rgba(74, 129, 211, 0.08);
    --auth-input-sheen: rgba(255, 255, 255, 0.76);
    --auth-disabled-bg: rgba(226, 232, 240, 0.72);
    --auth-disabled-border: rgba(148, 163, 184, 0.22);
    --auth-disabled-text: #94a3b8;
    --auth-checkbox-border: rgba(15, 23, 42, 0.14);
    --auth-checkbox-bg: rgba(255, 255, 255, 0.9);
    --auth-cta-border: rgba(15, 23, 42, 0.04);
    --auth-cta-bg: linear-gradient(180deg, #1b2940, #101828);
    --auth-cta-color: #ffffff;
    --auth-cta-shadow: 0 18px 38px rgba(16, 24, 40, 0.16);
    --auth-cta-shadow-hover: 0 22px 44px rgba(16, 24, 40, 0.2);
    min-height: 100vh;
    position: relative;
    color: var(--auth-text-soft);
    background:
        radial-gradient(circle at top left, rgba(74, 129, 211, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 46%, #f7f9fc 100%);
}

body.auth-premium-page::before,
body.auth-premium-page::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
    opacity: 0.7;
    z-index: 0;
}

body.auth-premium-page::before {
    width: 24rem;
    height: 24rem;
    top: 8%;
    right: -7rem;
    background: radial-gradient(circle, rgba(74, 129, 211, 0.16), transparent 68%);
}

body.auth-premium-page::after {
    width: 20rem;
    height: 20rem;
    bottom: 6%;
    left: -5rem;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.18), transparent 72%);
}

body.auth-premium-page .app-wrapper::before {
    display: none;
}

body.auth-premium-page .account-pages {
    min-height: 100svh;
}

body.auth-premium-page .auth-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

body.auth-premium-page .auth-shell__container {
    width: 100%;
    max-width: 29rem;
    padding-right: clamp(12px, 4vw, 18px);
    padding-left: clamp(12px, 4vw, 18px);
}

body.auth-premium-page .auth-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 29rem;
    margin-inline: auto;
    border: 1px solid var(--auth-frame-border);
    border-radius: 24px;
    background:
        linear-gradient(145deg, var(--auth-frame-fill-top), var(--auth-frame-fill-bottom)),
        var(--auth-surface);
    box-shadow: var(--auth-shadow-lg);
    backdrop-filter: blur(26px);
}

body.auth-premium-page .auth-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--auth-frame-overlay-top), transparent 38%),
        linear-gradient(180deg, var(--auth-frame-overlay-soft), transparent 22%),
        repeating-linear-gradient(90deg, var(--auth-frame-pattern) 0 1px, transparent 1px 72px);
    pointer-events: none;
}

body.auth-premium-page .auth-story,
body.auth-premium-page .auth-panel {
    position: relative;
    min-height: auto;
    padding: 1.125rem;
}

body.auth-premium-page .auth-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    border-right: 1px solid var(--auth-story-divider);
    background: var(--auth-story-bg);
}

body.auth-premium-page .auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.95rem;
    background: var(--auth-panel-bg);
}

body.auth-premium-page .auth-panel__controls {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

body.auth-premium-page .auth-story__brand,
body.auth-premium-page .auth-panel__brand {
    margin-bottom: 1.5rem;
}

body.auth-premium-page .auth-panel__brand {
    margin-bottom: 0;
}

body.auth-premium-page .auth-panel__brand--mobile {
    min-width: 0;
}

body.auth-premium-page .auth-panel__brand--mobile .auth-wordmark__name {
    font-size: clamp(1.32rem, 5.6vw, 1.6rem);
    line-height: 1;
}

body.auth-premium-page .auth-wordmark {
    display: inline-flex;
    align-items: center;
}

body.auth-premium-page .auth-wordmark__link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-decoration: none;
}

body.auth-premium-page .auth-wordmark__name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 2vw, 1.95rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: var(--auth-text);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.auth-premium-page .auth-wordmark__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--auth-wordmark-meta);
}

body.auth-premium-page .auth-wordmark__meta::before {
    content: "";
    width: 1.9rem;
    height: 1px;
    background: var(--auth-wordmark-highlight);
}

body.auth-premium-page .auth-theme-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    min-width: 0;
    margin: 0;
    margin-inline-start: auto;
    padding: 0.28rem;
    border: 1px solid var(--auth-switch-border);
    border-radius: 999px;
    background: var(--auth-switch-bg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

body.auth-premium-page .auth-theme-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.auth-premium-page .auth-theme-switch__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border-radius: 999px;
    color: var(--auth-switch-option);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.auth-premium-page .auth-theme-switch__option:hover {
    background: var(--auth-switch-option-hover);
    color: var(--auth-text);
}

body.auth-premium-page .auth-theme-switch input:focus-visible + .auth-theme-switch__option {
    box-shadow: 0 0 0 4px rgba(74, 129, 211, 0.14);
}

body.auth-premium-page .auth-theme-switch input:checked + .auth-theme-switch__option {
    background: var(--auth-switch-active-bg);
    color: var(--auth-switch-active-color);
    box-shadow: var(--auth-switch-shadow);
    transform: translateY(-1px);
}

body.auth-premium-page .auth-theme-switch__icon {
    font-size: var(--auth-switch-icon-size);
    line-height: 1;
}

body.auth-premium-page .auth-story__eyebrow,
body.auth-premium-page .auth-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: var(--auth-pill-bg);
    border: 1px solid var(--auth-pill-border);
    color: var(--auth-accent);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.auth-premium-page .auth-story__title,
body.auth-premium-page .auth-panel__title {
    margin: 0.2rem 0 0;
    font-size: clamp(1.55rem, 6.4vw, 1.95rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    color: var(--auth-text);
}

body.auth-premium-page .auth-panel__title {
    font-size: clamp(1.55rem, 6.4vw, 1.95rem);
    max-width: 12ch;
}

body.auth-premium-page .auth-story__copy,
body.auth-premium-page .auth-panel__copy,
body.auth-premium-page .auth-highlight-card p,
body.auth-premium-page .auth-story__metric span,
body.auth-premium-page .auth-footer {
    color: var(--auth-text-muted);
}

body.auth-premium-page .auth-story__copy,
body.auth-premium-page .auth-panel__copy {
    max-width: 34ch;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

body.auth-premium-page .auth-panel__intro {
    display: grid;
    gap: 0.5rem;
}

body.auth-premium-page .auth-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 6px;
    border-radius: 999px;
    background: var(--auth-tabs-bg);
    border: 1px solid var(--auth-tabs-border);
}

body.auth-premium-page .auth-tabs__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border-radius: 999px;
    color: var(--auth-text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

body.auth-premium-page .auth-tabs__item:hover,
body.auth-premium-page .auth-tabs__item:focus-visible {
    color: var(--auth-text);
    background: var(--auth-tab-hover);
}

body.auth-premium-page .auth-tabs__item.active {
    color: var(--auth-tab-active-color);
    background: var(--auth-tab-active-bg);
    box-shadow: var(--auth-tab-active-shadow);
}

body.auth-premium-page .auth-highlights {
    display: grid;
    gap: 1rem;
}

body.auth-premium-page .auth-highlight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    border: 1px solid var(--auth-card-border);
    background: var(--auth-card-bg);
    box-shadow: var(--auth-shadow-md);
}

body.auth-premium-page .auth-highlight-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: var(--auth-card-index-bg);
    color: var(--auth-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

body.auth-premium-page .auth-highlight-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--auth-text);
}

body.auth-premium-page .auth-highlight-card p {
    margin: 0;
    line-height: 1.65;
}

body.auth-premium-page .auth-story__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

body.auth-premium-page .auth-story__metric {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid var(--auth-card-border);
    background: var(--auth-metric-bg);
}

body.auth-premium-page .auth-story__metric strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--auth-text);
    font-size: 0.98rem;
    font-weight: 700;
}

body.auth-premium-page .auth-story__metric span {
    display: block;
    line-height: 1.55;
    font-size: 0.92rem;
}

body.auth-premium-page .auth-form {
    display: grid;
    gap: 0.78rem;
}

body.auth-premium-page .auth-form__group {
    margin: 0;
}

body.auth-premium-page .auth-wizard {
    display: grid;
    gap: 1rem;
}

body.auth-premium-page .auth-wizard__progress,
body.auth-premium-page .auth-step-card,
body.auth-premium-page .auth-step-mini-preview,
body.auth-premium-page .auth-step-summary {
    border: 1px solid var(--auth-card-border);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.auth-premium-page .auth-wizard__progress {
    display: grid;
    gap: 0.55rem;
    padding: 0.8rem 0.9rem;
    border-radius: 24px;
}

body.auth-premium-page .auth-wizard__progress-copy {
    display: grid;
    gap: 0.25rem;
}

body.auth-premium-page .auth-wizard__progress-step,
body.auth-premium-page .auth-step-card__eyebrow,
body.auth-premium-page .auth-step-mini-preview__eyebrow,
body.auth-premium-page .auth-step-summary__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--auth-pill-bg);
    border: 1px solid var(--auth-pill-border);
    color: var(--auth-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.auth-premium-page .auth-wizard__progress-title {
    color: var(--auth-text);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.auth-premium-page .auth-wizard__progress-text,
body.auth-premium-page .auth-step-card__copy,
body.auth-premium-page .auth-step-mini-preview__copy {
    margin: 0;
    color: var(--auth-text-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}

body.auth-premium-page .auth-wizard__meter {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

body.auth-premium-page .auth-wizard__meter-fill {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--auth-accent), #7dd3fc);
    box-shadow: 0 6px 18px rgba(74, 129, 211, 0.25);
    transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.auth-premium-page .auth-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.auth-premium-page .auth-stepper__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.22rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    text-align: left;
    box-shadow: none;
    transition: transform 180ms ease, opacity 180ms ease;
}

body.auth-premium-page .auth-stepper__item:hover,
body.auth-premium-page .auth-stepper__item:focus-visible {
    transform: none;
    opacity: 0.9;
}

body.auth-premium-page .auth-stepper__item.is-active {
    background: transparent;
    box-shadow: none;
}

body.auth-premium-page .auth-stepper__item.is-complete .auth-stepper__index {
    border-color: transparent;
    background: rgba(74, 222, 128, 0.5);
}

body.auth-premium-page .auth-stepper__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.28);
    color: transparent;
    font-size: 0;
    font-weight: 700;
    flex-shrink: 0;
    transition: width 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

body.auth-premium-page .auth-stepper__item.is-active .auth-stepper__index {
    width: 1.8rem;
    background: var(--auth-text);
}

body.auth-premium-page .auth-stepper__copy {
    display: none;
}

body.auth-premium-page .auth-stepper__copy strong {
    color: var(--auth-text);
    font-size: 0.91rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

body.auth-premium-page .auth-stepper__copy small {
    color: var(--auth-text-soft);
    font-size: 0.75rem;
    line-height: 1.4;
}

body.auth-premium-page .auth-wizard__stage {
    position: relative;
    overflow: hidden;
    min-height: 0;
    transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.auth-premium-page .auth-step-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(36px, 0, 0) scale(0.985);
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms;
    will-change: opacity, transform;
}

body.auth-premium-page .auth-step-panel.is-before {
    transform: translate3d(-30px, 0, 0) scale(0.985);
}

body.auth-premium-page .auth-step-panel.is-after {
    transform: translate3d(30px, 0, 0) scale(0.985);
}

body.auth-premium-page .auth-step-panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 40ms, 0s, 0s;
}

body.auth-premium-page .auth-step-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.05rem;
    border-radius: 24px;
}

body.auth-premium-page .auth-step-card__header {
    display: grid;
    gap: 0.2rem;
}

body.auth-premium-page .auth-step-card__eyebrow {
    display: none;
}

body.auth-premium-page .auth-step-card__title {
    margin: 0;
    color: var(--auth-text);
    font-size: clamp(1.12rem, 1.3vw, 1.32rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

body.auth-premium-page .auth-form__grid {
    display: grid;
    gap: 0.82rem;
}

body.auth-premium-page .auth-form__grid--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.auth-premium-page .auth-form__group--reveal {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 180ms ease, opacity 160ms ease, transform 180ms ease;
}

body.auth-premium-page .auth-form__group--reveal.is-open {
    max-height: 240px;
    padding: 4px 4px 8px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
}

body.auth-premium-page .auth-step-mini-preview,
body.auth-premium-page .auth-step-summary {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
}

body.auth-premium-page .auth-step-mini-preview__value {
    display: block;
    color: var(--auth-text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

body.auth-premium-page .auth-step-summary__items {
    display: grid;
    gap: 0.65rem;
}

body.auth-premium-page .auth-step-summary__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

body.auth-premium-page .auth-step-summary__item span {
    color: var(--auth-text-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

body.auth-premium-page .auth-step-summary__item strong {
    color: var(--auth-text);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
    line-height: 1.45;
    word-break: break-word;
}

body.auth-premium-page .auth-phone-field {
    display: grid;
    grid-template-columns: minmax(116px, 124px) minmax(0, 1fr);
    gap: 0.55rem;
}

body.auth-premium-page .auth-phone-field__country-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--auth-input-border);
    background: var(--auth-input-bg);
    box-shadow: inset 0 1px 0 var(--auth-input-sheen);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.auth-premium-page .auth-phone-field__country-shell:hover {
    border-color: var(--auth-input-hover-border);
    background: var(--auth-input-hover-bg);
}

body.auth-premium-page .auth-phone-field__country-shell:focus-within {
    background: var(--auth-surface-strong);
    border-color: var(--auth-input-highlight);
    box-shadow:
        0 0 0 4px var(--auth-input-shadow),
        0 12px 28px var(--auth-input-shadow-strong);
}

body.auth-premium-page .auth-phone-field__country-shell::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.46rem;
    height: 0.46rem;
    border-right: 1.5px solid var(--auth-text-soft);
    border-bottom: 1.5px solid var(--auth-text-soft);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    opacity: 0.8;
}

body.auth-premium-page .auth-phone-field__country-display {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    max-width: 100%;
    padding-right: 1.2rem;
    color: var(--auth-text);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

body.auth-premium-page .auth-phone-field__country {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}

body.auth-premium-page .auth-phone-field__number {
    letter-spacing: 0.015em;
}

@keyframes authAutofillReveal {
    from {
        opacity: 1;
    }

    to {
        opacity: 1;
    }
}

body.auth-premium-page .auth-field-message {
    margin: 0.25rem 0 0;
    color: var(--auth-text-soft);
    font-size: 0.76rem;
    line-height: 1.45;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-2px);
    transition: opacity 160ms ease, max-height 180ms ease, transform 160ms ease, margin-top 160ms ease;
}

body.auth-premium-page .auth-form__group:focus-within .auth-field-message,
body.auth-premium-page .auth-form__group--terms:focus-within .auth-field-message,
body.auth-premium-page .auth-field-message.is-error,
body.auth-premium-page .auth-field-message.is-success {
    max-height: 3rem;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.45rem;
}

body.auth-premium-page .auth-field-message--compact {
    margin-top: 0;
}

body.auth-premium-page .auth-field-message.is-error {
    color: #b42318;
}

body.auth-premium-page .auth-field-message.is-success {
    color: #027a48;
}

body.auth-premium-page .auth-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

body.auth-premium-page .auth-password-rules__item {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.08);
    color: var(--auth-text-soft);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

body.auth-premium-page .auth-password-rules__item.is-met {
    border-color: rgba(74, 222, 128, 0.28);
    background: rgba(74, 222, 128, 0.12);
    color: #027a48;
}

body.auth-premium-page .auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin-top: 0;
}

body.auth-premium-page .auth-form__row--stack {
    justify-content: flex-start;
}

body.auth-premium-page .auth-form__submit {
    margin-top: 0.1rem;
}

body.auth-premium-page .auth-wizard__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.auth-premium-page .auth-wizard__actions-primary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-left: auto;
}

body.auth-premium-page .auth-ghost-button {
    min-height: 50px;
    padding: 0.82rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--auth-card-border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--auth-text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.auth-premium-page .auth-ghost-button:hover,
body.auth-premium-page .auth-ghost-button:focus-visible {
    transform: translateY(-1px);
    border-color: var(--auth-input-hover-border);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: var(--auth-text);
}

body.auth-premium-page .auth-ghost-button:disabled,
body.auth-premium-page .auth-ghost-button.disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

body.auth-premium-page .auth-form__status {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.5;
}

body.auth-premium-page .auth-form__status.is-error {
    color: #b42318;
    border-color: rgba(255, 84, 104, 0.18);
    background: rgba(255, 84, 104, 0.08);
}

body.auth-premium-page .auth-form__status.is-success {
    color: #027a48;
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(74, 222, 128, 0.08);
}

body.auth-premium-page .form-label {
    margin-bottom: 0.4rem;
    color: var(--auth-text-soft);
    font-size: 0.81rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.auth-premium-page .form-control {
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--auth-input-border);
    background: var(--auth-input-bg);
    color: var(--auth-text);
    box-shadow: inset 0 1px 0 var(--auth-input-sheen);
    font-size: 1rem;
    line-height: 1.3;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.auth-premium-page .form-control:hover {
    border-color: var(--auth-input-hover-border);
    background: var(--auth-input-hover-bg);
}

body.auth-premium-page .form-control::placeholder {
    color: var(--auth-input-placeholder);
}

body.auth-premium-page .form-control:focus {
    background: var(--auth-surface-strong);
    color: var(--auth-text);
    border-color: var(--auth-input-highlight);
    box-shadow:
        0 0 0 4px var(--auth-input-shadow),
        0 12px 28px var(--auth-input-shadow-strong);
}

body.auth-premium-page .form-control:-webkit-autofill,
body.auth-premium-page .form-control:-webkit-autofill:hover,
body.auth-premium-page .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text);
    caret-color: var(--auth-text);
    box-shadow:
        0 0 0 1000px var(--auth-surface-strong) inset,
        0 0 0 1px var(--auth-input-highlight) inset,
        0 12px 28px var(--auth-input-shadow-strong);
    animation-name: authAutofillReveal;
    animation-duration: 0.01s;
    animation-iteration-count: 1;
}

body.auth-premium-page .form-control:disabled,
body.auth-premium-page .form-control[readonly] {
    color: var(--auth-disabled-text);
    background: var(--auth-disabled-bg);
    border-color: var(--auth-disabled-border);
}

body.auth-premium-page .form-control.is-invalid,
body.auth-premium-page .was-validated .form-control:invalid {
    border-color: rgba(255, 84, 104, 0.48);
    box-shadow: 0 0 0 4px rgba(255, 84, 104, 0.12);
}

body.auth-premium-page .form-control.is-valid,
body.auth-premium-page .was-validated .form-control:valid {
    border-color: rgba(74, 222, 128, 0.46);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

body.auth-premium-page .form-check-input.is-invalid {
    border-color: rgba(255, 84, 104, 0.48);
    box-shadow: 0 0 0 4px rgba(255, 84, 104, 0.12);
}

body.auth-premium-page .form-check-input.is-valid {
    border-color: rgba(74, 222, 128, 0.46);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

body.auth-premium-page .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: auto;
    margin: 0;
}

body.auth-premium-page .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0;
    border-radius: 0.38rem;
    border: 1px solid var(--auth-checkbox-border);
    background-color: var(--auth-checkbox-bg);
}

body.auth-premium-page .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

body.auth-premium-page .form-check-input:focus {
    border-color: rgba(74, 129, 211, 0.4);
    box-shadow: 0 0 0 4px rgba(74, 129, 211, 0.14);
}

body.auth-premium-page .form-check-label {
    color: var(--auth-text-soft);
    font-size: 0.87rem;
    font-weight: 500;
    line-height: 1.35;
}

body.auth-premium-page .auth-inline-link,
body.auth-premium-page .auth-footer a {
    color: var(--auth-text);
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    white-space: nowrap;
}

body.auth-premium-page .auth-inline-link:hover,
body.auth-premium-page .auth-inline-link:focus-visible,
body.auth-premium-page .auth-footer a:hover,
body.auth-premium-page .auth-footer a:focus-visible {
    color: var(--auth-accent);
}

body.auth-premium-page .auth-cta {
    min-height: 50px;
    border: 1px solid var(--auth-cta-border);
    border-radius: 18px;
    background: var(--auth-cta-bg);
    color: var(--auth-cta-color);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--auth-cta-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

body.auth-premium-page .auth-cta:hover,
body.auth-premium-page .auth-cta:focus-visible {
    color: var(--auth-cta-color);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--auth-cta-shadow-hover);
}

body.auth-premium-page .auth-cta:disabled,
body.auth-premium-page .auth-cta.disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

body.auth-premium-page .auth-footer {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

body.auth-premium-page .invalid-feedback,
body.auth-premium-page .valid-feedback {
    font-size: 0.85rem;
}

body.auth-premium-page a:focus-visible,
body.auth-premium-page button:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    body.auth-premium-page .auth-wizard__meter-fill,
    body.auth-premium-page .auth-stepper__item,
    body.auth-premium-page .auth-wizard__stage,
    body.auth-premium-page .auth-step-panel,
    body.auth-premium-page .auth-ghost-button,
    body.auth-premium-page .auth-cta,
    body.auth-premium-page .form-control {
        transition: none !important;
        animation: none !important;
    }
}

html[data-bs-theme="dark"] body.auth-premium-page {
    --auth-surface: rgba(10, 14, 20, 0.76);
    --auth-surface-strong: rgba(15, 20, 28, 0.96);
    --auth-surface-soft: rgba(14, 19, 27, 0.92);
    --auth-text: #f6f8fb;
    --auth-text-soft: #d8e0ea;
    --auth-text-muted: #8fa0b6;
    --auth-accent: #8eb8ff;
    --auth-accent-soft: rgba(142, 184, 255, 0.16);
    --auth-shadow-lg: 0 38px 120px rgba(0, 0, 0, 0.46);
    --auth-shadow-md: 0 18px 44px rgba(0, 0, 0, 0.22);
    --auth-frame-border: rgba(255, 255, 255, 0.08);
    --auth-frame-fill-top: rgba(17, 24, 33, 0.84);
    --auth-frame-fill-bottom: rgba(9, 12, 18, 0.78);
    --auth-frame-overlay-top: rgba(255, 255, 255, 0.07);
    --auth-frame-overlay-soft: rgba(255, 255, 255, 0.03);
    --auth-frame-pattern: rgba(148, 163, 184, 0.06);
    --auth-story-bg: linear-gradient(180deg, rgba(14, 20, 29, 0.9), rgba(8, 12, 18, 0.92));
    --auth-story-divider: rgba(255, 255, 255, 0.08);
    --auth-panel-bg: rgba(8, 11, 17, 0.68);
    --auth-wordmark-meta: #8fa0b6;
    --auth-wordmark-highlight: rgba(142, 184, 255, 0.3);
    --auth-switch-bg: rgba(255, 255, 255, 0.04);
    --auth-switch-border: rgba(255, 255, 255, 0.08);
    --auth-switch-option: #95a6bb;
    --auth-switch-option-hover: rgba(255, 255, 255, 0.07);
    --auth-switch-active-bg: rgba(247, 251, 255, 0.92);
    --auth-switch-active-color: #09111d;
    --auth-switch-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    --auth-switch-icon-size: 1rem;
    --auth-pill-bg: rgba(255, 255, 255, 0.04);
    --auth-pill-border: rgba(142, 184, 255, 0.18);
    --auth-tabs-bg: rgba(255, 255, 255, 0.04);
    --auth-tabs-border: rgba(255, 255, 255, 0.08);
    --auth-tab-hover: rgba(255, 255, 255, 0.07);
    --auth-tab-active-bg: linear-gradient(180deg, #f7fbff, #dbe7f8);
    --auth-tab-active-color: #09111d;
    --auth-tab-active-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    --auth-card-border: rgba(255, 255, 255, 0.08);
    --auth-card-bg: rgba(255, 255, 255, 0.035);
    --auth-card-index-bg: linear-gradient(180deg, rgba(142, 184, 255, 0.22), rgba(142, 184, 255, 0.08));
    --auth-metric-bg: rgba(255, 255, 255, 0.04);
    --auth-input-border: rgba(255, 255, 255, 0.1);
    --auth-input-bg: rgba(255, 255, 255, 0.035);
    --auth-input-hover-border: rgba(255, 255, 255, 0.16);
    --auth-input-hover-bg: rgba(255, 255, 255, 0.05);
    --auth-input-placeholder: #7f8da1;
    --auth-input-highlight: rgba(142, 184, 255, 0.36);
    --auth-input-shadow: rgba(142, 184, 255, 0.14);
    --auth-input-shadow-strong: rgba(0, 0, 0, 0.2);
    --auth-input-sheen: rgba(255, 255, 255, 0.03);
    --auth-disabled-bg: rgba(255, 255, 255, 0.03);
    --auth-disabled-border: rgba(255, 255, 255, 0.08);
    --auth-disabled-text: #708196;
    --auth-checkbox-border: rgba(255, 255, 255, 0.14);
    --auth-checkbox-bg: rgba(255, 255, 255, 0.04);
    --auth-cta-border: rgba(255, 255, 255, 0.08);
    --auth-cta-bg: linear-gradient(180deg, #f8fbff, #dee7f5);
    --auth-cta-color: #0a1220;
    --auth-cta-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    --auth-cta-shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.34);
    background:
        radial-gradient(circle at top left, rgba(74, 129, 211, 0.2), transparent 32%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
        linear-gradient(180deg, #04070c 0%, #09111a 46%, #0b131d 100%);
}

html[data-bs-theme="dark"] body.auth-premium-page::before {
    background: radial-gradient(circle, rgba(74, 129, 211, 0.24), transparent 68%);
}

html[data-bs-theme="dark"] body.auth-premium-page::after {
    background: radial-gradient(circle, rgba(148, 163, 184, 0.12), transparent 72%);
}

html[data-bs-theme="dark"] body.auth-premium-page .auth-wordmark__name {
    text-shadow: none;
}

html[data-bs-theme="dark"] body.auth-premium-page .auth-form__status.is-error {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(127, 29, 29, 0.28);
}

html[data-bs-theme="dark"] body.auth-premium-page .auth-form__status.is-success {
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.24);
    background: rgba(20, 83, 45, 0.32);
}

html[data-bs-theme="dark"] body.auth-premium-page .auth-cta {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        var(--auth-cta-shadow);
}

html[data-bs-theme="dark"] body.auth-premium-page .auth-cta:hover,
html[data-bs-theme="dark"] body.auth-premium-page .auth-cta:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        var(--auth-cta-shadow-hover);
}

@media (min-width: 576px) {
    body.auth-premium-page .auth-shell {
        padding-top: max(18px, env(safe-area-inset-top));
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    body.auth-premium-page .auth-shell__container,
    body.auth-premium-page .auth-frame {
        max-width: 32rem;
    }

    body.auth-premium-page .auth-story,
    body.auth-premium-page .auth-panel {
        padding: 1.45rem;
    }

    body.auth-premium-page .auth-panel {
        gap: 1.05rem;
    }

    body.auth-premium-page .auth-panel__title {
        font-size: clamp(1.7rem, 4.8vw, 2.1rem);
    }

    body.auth-premium-page .auth-panel__copy {
        font-size: 0.95rem;
    }

    body.auth-premium-page .auth-tabs__item {
        min-height: 46px;
    }

    body.auth-premium-page .form-control {
        min-height: 50px;
    }

    body.auth-premium-page .auth-cta {
        min-height: 52px;
    }
}

@media (min-width: 992px) {
    body.auth-premium-page .auth-frame {
        max-width: none;
        border-radius: 28px;
    }

    body.auth-premium-page .auth-shell {
        padding-top: clamp(24px, 4vw, 44px);
        padding-bottom: clamp(24px, 4vw, 44px);
    }

    body.auth-premium-page .auth-shell__container {
        max-width: 1220px;
    }

    body.auth-premium-page .auth-story,
    body.auth-premium-page .auth-panel {
        padding: clamp(1.5rem, 5vw, 2.4rem);
        min-height: 100%;
    }

    body.auth-premium-page .auth-story {
        border-right: 1px solid var(--auth-story-divider);
        border-top: none;
    }

    body.auth-premium-page .auth-story__title,
    body.auth-premium-page .auth-panel__title {
        font-size: clamp(1.95rem, 2.8vw, 2.85rem);
    }

    body.auth-premium-page .auth-panel__title {
        max-width: 13ch;
    }

    body.auth-premium-page .auth-panel__copy {
        max-width: 36ch;
        font-size: 1rem;
        line-height: 1.65;
    }

    body.auth-premium-page .auth-panel__intro {
        gap: 0.85rem;
    }

    body.auth-premium-page .auth-panel {
        gap: 1.35rem;
        justify-content: center;
    }

    body.auth-premium-page .auth-panel__controls {
        margin-bottom: 0.1rem;
        justify-content: flex-end;
    }

    body.auth-premium-page .auth-theme-switch__option {
        width: 2.6rem;
        min-width: 2.6rem;
        min-height: 2.6rem;
    }

    body.auth-premium-page .auth-theme-switch {
        gap: 0.35rem;
        padding: 0.35rem;
    }

    body.auth-premium-page .auth-tabs {
        width: min(100%, 320px);
        gap: 8px;
        padding: 8px;
    }

    body.auth-premium-page .auth-tabs__item {
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    body.auth-premium-page .auth-form {
        gap: 1rem;
    }

    body.auth-premium-page .auth-form__row {
        gap: 1rem;
    }

    body.auth-premium-page .form-label {
        margin-bottom: 0.55rem;
        font-size: 0.88rem;
    }

    body.auth-premium-page .form-control {
        min-height: 56px;
        padding: 0.95rem 1rem;
        border-radius: 18px;
    }

    body.auth-premium-page .form-check {
        gap: 0.7rem;
    }

    body.auth-premium-page .form-check-label {
        font-size: 0.94rem;
    }

    body.auth-premium-page .auth-inline-link,
    body.auth-premium-page .auth-footer a {
        font-size: 0.95rem;
    }

    body.auth-premium-page .auth-cta {
        min-height: 58px;
        border-radius: 20px;
    }

    body.auth-premium-page .auth-footer {
        font-size: 0.95rem;
    }
}

@media (min-width: 1200px) {
    body.auth-premium-page .auth-frame {
        border-radius: 34px;
    }

    body.auth-premium-page .auth-story,
    body.auth-premium-page .auth-panel {
        padding: clamp(2rem, 4vw, 4.5rem);
    }
}

@media (max-width: 575.98px) {
    body.auth-premium-page .auth-panel {
        gap: 0.85rem;
    }

    body.auth-premium-page .auth-panel__intro {
        gap: 0.3rem;
    }

    body.auth-premium-page .auth-panel__title {
        max-width: none;
        font-size: clamp(1.45rem, 7vw, 1.75rem);
    }

    body.auth-premium-page .auth-panel__copy {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    body.auth-premium-page .auth-wizard {
        gap: 0.75rem;
    }

    body.auth-premium-page .auth-wizard__progress {
        gap: 0.55rem;
        padding: 0.8rem 0.85rem;
    }

    body.auth-premium-page .auth-wizard__progress-text,
    body.auth-premium-page .auth-step-card__eyebrow {
        display: none;
    }

    body.auth-premium-page .auth-step-card {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    body.auth-premium-page .auth-step-card__copy {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    body.auth-premium-page .auth-field-message {
        margin-top: 0.35rem;
        font-size: 0.72rem;
    }

    body.auth-premium-page .auth-password-rules {
        gap: 0.35rem;
        margin-top: 0.5rem;
    }

    body.auth-premium-page .auth-form__grid--split,
    body.auth-premium-page .auth-stepper,
    body.auth-premium-page .auth-phone-field,
    body.auth-premium-page .auth-wizard__actions-primary {
        grid-template-columns: 1fr;
    }

    body.auth-premium-page .auth-phone-field,
    body.auth-premium-page .auth-wizard__actions-primary {
        display: grid;
    }

    body.auth-premium-page .auth-wizard__actions {
        display: grid;
        position: sticky;
        bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 4;
        padding: 0.65rem;
        border: 1px solid var(--auth-card-border);
        border-radius: 20px;
        background: var(--auth-surface-strong);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(12px);
    }

    body.auth-premium-page .auth-step-summary__item {
        flex-direction: column;
        gap: 0.2rem;
    }

    body.auth-premium-page .auth-step-summary__item strong {
        text-align: left;
    }

    body.auth-premium-page .auth-ghost-button,
    body.auth-premium-page .auth-wizard__actions-primary .auth-cta {
        width: 100%;
        min-height: 46px;
    }
}

@media (max-width: 359.98px) {
    body.auth-premium-page .auth-form__row {
        flex-direction: column;
        align-items: flex-start;
    }

    body.auth-premium-page .auth-phone-field {
        grid-template-columns: 1fr;
    }

    body.auth-premium-page .auth-tabs__item {
        min-height: 42px;
        font-size: 0.88rem;
    }
}

@media (max-height: 760px) and (max-width: 767.98px) {
    body.auth-premium-page .auth-shell {
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    body.auth-premium-page .auth-panel {
        padding: 1rem;
        gap: 0.8rem;
    }

    body.auth-premium-page .auth-panel__title {
        font-size: clamp(1.45rem, 5.6vw, 1.78rem);
    }

    body.auth-premium-page .auth-panel__copy {
        font-size: 0.89rem;
        line-height: 1.45;
    }

    body.auth-premium-page .auth-form {
        gap: 0.68rem;
    }

    body.auth-premium-page .form-control {
        min-height: 46px;
        padding-top: 0.72rem;
        padding-bottom: 0.72rem;
    }

    body.auth-premium-page .auth-cta {
        min-height: 48px;
    }

    body.auth-premium-page .auth-tabs__item {
        min-height: 42px;
    }
}

html[data-sidebar-size="condensed"] .app-sidebar {
    width: var(--security-sidebar-width-sm);
    min-width: var(--security-sidebar-width-sm);
}

html[data-sidebar-size="condensed"] {
    --security-layout-sidebar-width: var(--security-sidebar-width-sm);
}

html[data-sidebar-size="condensed"] .brand-copy,
html[data-sidebar-size="condensed"] .sidebar-support-card,
html[data-sidebar-size="condensed"] .app-sidebar .menu-title,
html[data-sidebar-size="condensed"] .app-sidebar .nav-text {
    display: none;
}

html[data-sidebar-size="condensed"] .logo-box {
    padding: 20px 0 12px;
    text-align: center;
}

html[data-sidebar-size="condensed"] .app-sidebar .scrollbar {
    padding: 0 12px 18px;
}

html[data-sidebar-size="condensed"] .app-sidebar .nav-link {
    justify-content: center;
}

html[data-sidebar-size="hidden"] {
    --security-layout-sidebar-width: 0px;
}

html[data-sidebar-size="hidden"] .app-sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
}

html.sidebar-enable[data-sidebar-size="hidden"] .app-sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Large desktop down */
@media (max-width: 1439.98px) {
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

/* Laptop / tablet landscape */
@media (max-width: 1279.98px) {
    .page-content {
        padding: 22px clamp(18px, 3vw, 22px) var(--security-content-padding-bottom);
    }

    .topbar-brand {
        display: inline-flex !important;
    }

    .app-topbar .navbar-header {
        gap: 12px;
        padding: 0 10px;
    }

    .topbar-command {
        display: none !important;
    }

    .security-page-title,
    .page-title-box,
    .hero-panel-header,
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .security-page-meta {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .security-hero-card .card-body {
        padding: clamp(20px, 3vw, 30px);
    }

    .app-sidebar {
        width: min(86vw, 320px);
        min-width: 0;
        max-width: 320px;
        box-shadow: 0 28px 64px rgba(2, 6, 12, 0.52);
    }

    .dashboard-filter-group {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px;
    }

    .dashboard-filter-group .btn {
        flex: 0 0 auto;
    }

    .table-responsive {
        margin-inline: -4px;
        padding-bottom: 4px;
    }

    .security-table {
        min-width: 680px;
    }

    .detail-score-card {
        width: 100%;
        max-width: 280px;
    }

    .stack-list-item,
    .risk-list-item {
        align-items: flex-start;
    }
}

/* Tablet / large mobile */
@media (max-width: 1023.98px) {
    .page-content {
        padding: 20px 18px 96px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .app-topbar .navbar-header {
        gap: 8px;
        padding: 10px 0;
    }

    .page-content {
        padding: 18px 16px 88px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .mini-stat-grid,
    .integration-grid,
    .path-grid {
        grid-template-columns: 1fr;
    }

    .security-page-meta {
        width: 100%;
        text-align: left;
    }

    .hero-panel-header,
    .detail-header,
    .risk-list-item,
    .stack-list-item,
    .path-card-header,
    .score-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .stack-list-aside {
        width: 100%;
        text-align: left;
    }

    .risk-list-icon {
        align-self: flex-end;
    }

    .card-header {
        padding: 1.15rem 1.15rem 0.65rem;
    }

    .card-body {
        padding: 1.15rem;
    }

    .security-hero-title {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .security-chart-sm {
        min-height: 210px;
    }

    .security-chart-lg {
        min-height: 280px;
    }

    .status-pill,
    .severity-pill {
        white-space: normal;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 479.98px) {
    body.auth-premium-page .auth-step-card,
    body.auth-premium-page .auth-wizard__progress,
    body.auth-premium-page .auth-step-mini-preview,
    body.auth-premium-page .auth-step-summary {
        padding: 0.9rem;
        border-radius: 20px;
    }

    body.auth-premium-page .auth-stepper__item {
        padding: 0.8rem;
        border-radius: 18px;
    }

    body.auth-premium-page .auth-panel {
        gap: 0.75rem;
    }

    body.auth-premium-page .auth-panel__copy {
        font-size: 0.78rem;
    }

    body.auth-premium-page .auth-step-card__title {
        font-size: 1rem;
    }

    body.auth-premium-page .form-control {
        min-height: 46px;
        padding: 0.72rem 0.9rem;
        border-radius: 15px;
    }

    .page-content {
        padding: 14px 12px 82px;
    }

    .app-sidebar {
        width: min(92vw, 320px);
    }

    .topbar-brand-copy {
        display: none;
    }

    .card {
        border-radius: 18px;
    }

    .card-header {
        padding: 1rem 1rem 0.55rem;
    }

    .card-body {
        padding: 1rem;
    }

    .hero-metric,
    .mini-stat-card,
    .detail-score-card,
    .integration-card,
    .hero-panel,
    .path-card,
    .detail-section {
        padding: 14px;
        border-radius: 16px;
    }

    .hero-metrics {
        gap: 10px;
    }

    .security-stat-card h3,
    .detail-score-card strong {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .security-table {
        min-width: 560px;
    }
}
