:root {
    --qb-bg: #07111b;
    --qb-bg-soft: #0b1724;
    --qb-bg-elevated: #101c2b;
    --qb-panel: rgba(10, 18, 30, 0.82);
    --qb-panel-strong: rgba(13, 22, 35, 0.94);
    --qb-panel-light: rgba(246, 249, 253, 0.96);
    --qb-card-light: rgba(255, 255, 255, 0.88);
    --qb-line: rgba(148, 163, 184, 0.16);
    --qb-line-strong: rgba(148, 163, 184, 0.24);
    --qb-text: #eef5ff;
    --qb-text-muted: #92a5bf;
    --qb-text-soft: #64748b;
    --qb-electric: #2563eb;
    --qb-electric-strong: #1d4ed8;
    --qb-cyan: #22d3ee;
    --qb-cyan-soft: rgba(34, 211, 238, 0.12);
    --qb-blue-soft: rgba(37, 99, 235, 0.12);
    --qb-alert: #f59e0b;
    --qb-danger: #fb7185;
    --qb-success: #38bdf8;
    --qb-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
    --qb-shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.18);
    --qb-radius-xl: 30px;
    --qb-radius-lg: 24px;
    --qb-radius-md: 18px;
    --qb-radius-sm: 14px;
}

html[data-theme="light"] {
    --qb-bg: #f2f6fb;
    --qb-bg-soft: #e8eef7;
    --qb-bg-elevated: #dce6f2;
    --qb-panel: rgba(255, 255, 255, 0.92);
    --qb-panel-strong: rgba(255, 255, 255, 0.98);
    --qb-line: rgba(15, 23, 42, 0.08);
    --qb-line-strong: rgba(15, 23, 42, 0.14);
    --qb-text: #0f172a;
    --qb-text-muted: #4b5d79;
    --qb-text-soft: #64748b;
    --qb-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
    --qb-shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.06);
}

body.theme-shell,
body.qb-auth-body {
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.16), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.16), transparent 26%),
        radial-gradient(circle at 55% 100%, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(180deg, var(--qb-bg) 0%, #091320 48%, #07111b 100%);
    color: var(--qb-text);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

html[data-theme="light"] body.theme-shell,
html[data-theme="light"] body.qb-auth-body {
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.10), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.10), transparent 26%),
        radial-gradient(circle at 55% 100%, rgba(59, 130, 246, 0.08), transparent 26%),
        linear-gradient(180deg, #f4f7fb 0%, #edf3fa 48%, #e7eef7 100%);
}

.theme-shell h1,
.theme-shell h2,
.theme-shell h3,
.theme-shell h4,
.qb-auth-body h1,
.qb-auth-body h2,
.qb-auth-body h3 {
    font-family: "Sora", "IBM Plex Sans", sans-serif;
    letter-spacing: -0.04em;
}

.theme-shell input,
.theme-shell select,
.theme-shell textarea,
.qb-auth-body input,
.qb-auth-body select,
.qb-auth-body textarea {
    border: 1px solid var(--qb-line-strong) !important;
    background: rgba(8, 15, 27, 0.72) !important;
    color: var(--qb-text) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

html[data-theme="light"] .theme-shell input,
html[data-theme="light"] .theme-shell select,
html[data-theme="light"] .theme-shell textarea,
html[data-theme="light"] .qb-auth-body input,
html[data-theme="light"] .qb-auth-body select,
html[data-theme="light"] .qb-auth-body textarea {
    background: rgba(255, 255, 255, 0.94) !important;
}

.theme-shell input:focus,
.theme-shell select:focus,
.theme-shell textarea:focus,
.qb-auth-body input:focus,
.qb-auth-body select:focus,
.qb-auth-body textarea:focus {
    border-color: rgba(37, 99, 235, 0.54) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.theme-shell textarea {
    min-height: 136px;
}

.qb-shell {
    color: var(--qb-text);
}

.qb-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.42;
}

.qb-orb--one {
    top: -100px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: rgba(37, 99, 235, 0.28);
}

.qb-orb--two {
    top: 120px;
    right: -40px;
    width: 320px;
    height: 320px;
    background: rgba(34, 211, 238, 0.16);
}

.qb-orb--three {
    bottom: -120px;
    left: 28%;
    width: 260px;
    height: 260px;
    background: rgba(59, 130, 246, 0.18);
}

.qb-sidebar {
    background:
        linear-gradient(180deg, rgba(9, 15, 25, 0.96) 0%, rgba(10, 17, 29, 0.92) 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .qb-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-right-color: rgba(15, 23, 42, 0.08);
}

.qb-brand-mark {
    filter: drop-shadow(0 12px 26px rgba(37, 99, 235, 0.22));
}

.qb-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.10);
    color: #dcecff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.qb-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qb-electric), var(--qb-cyan));
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.10);
}

html[data-theme="light"] .qb-label {
    color: var(--qb-electric-strong);
}

.qb-context-card,
.qb-surface,
.qb-topbar,
.qb-page-card,
.qb-page-hero,
.qb-metric-card,
.qb-table-shell,
.qb-form-shell,
.qb-side-card {
    border: 1px solid var(--qb-line);
    background: var(--qb-panel);
    box-shadow: var(--qb-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.qb-topbar {
    background: linear-gradient(135deg, rgba(8, 15, 27, 0.92), rgba(12, 20, 35, 0.82));
}

html[data-theme="light"] .qb-topbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.92));
}

.qb-topbar h2 {
    font-size: 1.8rem;
}

.qb-topbar-meta {
    border: 1px solid var(--qb-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--qb-text-muted);
}

.qb-nav-group-title {
    color: var(--qb-text-soft);
}

.qb-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--qb-text-muted);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qb-nav-link:hover {
    transform: translateX(3px);
    border-color: rgba(34, 211, 238, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--qb-text);
}

.qb-nav-link--active {
    border-color: rgba(34, 211, 238, 0.24);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(34, 211, 238, 0.10));
    color: #f8fcff;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
}

html[data-theme="light"] .qb-nav-link {
    background: rgba(15, 23, 42, 0.02);
}

html[data-theme="light"] .qb-nav-link--active {
    color: #0f172a;
}

.qb-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #d2e4ff;
}

html[data-theme="light"] .qb-nav-icon {
    color: var(--qb-electric-strong);
}

.qb-nav-icon svg {
    width: 18px;
    height: 18px;
}

.qb-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    background: rgba(34, 211, 238, 0.08);
    color: #d6f7ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

html[data-theme="light"] .qb-chip {
    color: #0f4c5d;
}

.qb-chip--soft {
    border-color: var(--qb-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--qb-text-muted);
}

.qb-chip--alert {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.10);
    color: #fde68a;
}

.qb-chip--danger {
    border-color: rgba(251, 113, 133, 0.24);
    background: rgba(251, 113, 133, 0.10);
    color: #fecdd3;
}

html[data-theme="light"] .qb-chip--alert {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

html[data-theme="light"] .qb-chip--danger {
    border-color: rgba(244, 63, 94, 0.26);
    background: rgba(251, 113, 133, 0.14);
    color: #9f1239;
}

.qb-button-primary,
.qb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(135deg, var(--qb-electric), var(--qb-cyan));
    color: #06111f !important;
    font-weight: 700;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.qb-button-primary:hover,
.qb-btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.qb-button-secondary,
.qb-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--qb-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--qb-text) !important;
    font-weight: 600;
}

.qb-button-danger,
.qb-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(251, 113, 133, 0.22);
    background: rgba(251, 113, 133, 0.08);
    color: #ffd7de !important;
    font-weight: 600;
}

html[data-theme="light"] .qb-button-danger,
html[data-theme="light"] .qb-btn-danger {
    border-color: rgba(244, 63, 94, 0.26);
    background: rgba(251, 113, 133, 0.12);
    color: #9f1239 !important;
}

.qb-button-secondary:hover,
.qb-btn-secondary:hover,
.qb-button-danger:hover,
.qb-btn-danger:hover {
    transform: translateY(-1px);
}

.qb-page-card,
.qb-form-shell,
.qb-table-shell,
.qb-side-card {
    border-radius: var(--qb-radius-xl);
    padding: 1.5rem;
}

.qb-page-hero {
    border-radius: var(--qb-radius-xl);
    padding: 1.75rem;
    background:
        linear-gradient(135deg, rgba(7, 16, 30, 0.96), rgba(8, 18, 33, 0.86)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.20), transparent 28%);
    position: relative;
    overflow: hidden;
}

.qb-page-hero::after {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 62%);
    pointer-events: none;
}

html[data-theme="light"] .qb-page-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 252, 0.94)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%);
}

.qb-page-hero h1 {
    font-size: clamp(2rem, 3vw, 3.4rem);
}

.qb-page-hero-copy {
    max-width: 58rem;
}

.qb-page-hero-copy p {
    color: var(--qb-text-muted);
}

.qb-page-hero-stats {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 1.35rem;
}

.qb-mini-metric {
    border: 1px solid var(--qb-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
}

.qb-mini-metric strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.6rem;
    color: var(--qb-text);
}

.qb-mini-metric span {
    display: block;
    margin-top: 0.35rem;
    color: var(--qb-text-muted);
    font-size: 0.88rem;
}

.qb-metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.qb-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.qb-metric-card {
    border-radius: 24px;
    padding: 1.2rem;
}

.qb-metric-card__label {
    color: var(--qb-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.qb-metric-card__value {
    margin-top: 0.85rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--qb-text);
}

.qb-metric-card__meta {
    margin-top: 0.55rem;
    color: var(--qb-text-muted);
    font-size: 0.88rem;
}

.qb-progress {
    margin-top: 1rem;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.qb-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qb-electric), var(--qb-cyan));
}

.qb-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--qb-text);
}

.qb-section-copy {
    color: var(--qb-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.qb-empty-state {
    border-radius: 22px;
    border: 1px dashed var(--qb-line-strong);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.1rem;
    color: var(--qb-text-muted);
    font-size: 0.92rem;
}

.qb-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qb-form-field {
    display: grid;
    gap: 0.45rem;
}

.qb-form-field--full {
    grid-column: 1 / -1;
}

.qb-form-field span,
.qb-form-field label {
    color: var(--qb-text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.qb-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.qb-table-shell {
    overflow: hidden;
}

.qb-table-shell table,
.theme-shell table {
    width: 100%;
    border-collapse: collapse;
}

.qb-table-shell thead,
.theme-shell thead {
    background: rgba(8, 15, 27, 0.88) !important;
}

html[data-theme="light"] .qb-table-shell thead,
html[data-theme="light"] .theme-shell thead {
    background: rgba(240, 245, 251, 0.96) !important;
}

.qb-table-shell th,
.theme-shell th {
    color: var(--qb-text-soft) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
}

.qb-table-shell td,
.theme-shell td {
    color: var(--qb-text-muted);
    vertical-align: middle;
}

.theme-shell tbody tr {
    transition: background 0.2s ease;
}

.theme-shell tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.qb-code {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    color: #dbeafe;
}

html[data-theme="light"] .qb-code {
    color: var(--qb-electric-strong);
}

.qb-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: rgba(34, 211, 238, 0.08);
    color: #d8fbff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html[data-theme="light"] .qb-status-pill {
    border-color: rgba(34, 211, 238, 0.24);
    background: rgba(34, 211, 238, 0.12);
    color: #0f4c5d;
}

.qb-status-pill--soft {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--qb-line);
    color: var(--qb-text-muted);
}

.qb-status-pill--alert {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.22);
    color: #fde68a;
}

.qb-status-pill--danger {
    background: rgba(251, 113, 133, 0.10);
    border-color: rgba(251, 113, 133, 0.22);
    color: #fecdd3;
}

html[data-theme="light"] .qb-status-pill--alert {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

html[data-theme="light"] .qb-status-pill--danger {
    border-color: rgba(244, 63, 94, 0.26);
    background: rgba(251, 113, 133, 0.14);
    color: #9f1239;
}

.qb-alert {
    border-radius: 18px;
    padding: 1rem 1.15rem;
    border: 1px solid;
    font-size: 0.92rem;
}

.qb-alert--success {
    border-color: rgba(34, 211, 238, 0.24);
    background: rgba(34, 211, 238, 0.10);
    color: #d7f9ff;
}

.qb-alert--error {
    border-color: rgba(251, 113, 133, 0.22);
    background: rgba(251, 113, 133, 0.10);
    color: #ffd7de;
}

html[data-theme="light"] .qb-alert--success {
    border-color: rgba(34, 211, 238, 0.26);
    background: rgba(34, 211, 238, 0.12);
    color: #0f4c5d;
}

html[data-theme="light"] .qb-alert--error {
    border-color: rgba(244, 63, 94, 0.26);
    background: rgba(251, 113, 133, 0.12);
    color: #9f1239;
}

.qb-divider-card {
    border-radius: 22px;
    border: 1px solid var(--qb-line);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.qb-inline-grid {
    display: grid;
    gap: 1rem;
}

.qb-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.qb-detail-item {
    border-radius: 20px;
    border: 1px solid var(--qb-line);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.qb-detail-item__label {
    color: var(--qb-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.qb-detail-item__value {
    margin-top: 0.45rem;
    color: var(--qb-text);
    font-size: 1rem;
    font-weight: 600;
}

.qb-list-stack {
    display: grid;
    gap: 0.9rem;
}

.qb-list-item {
    border-radius: 18px;
    border: 1px solid var(--qb-line);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.qb-list-item__meta {
    color: var(--qb-text-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.qb-list-item__title {
    margin-top: 0.45rem;
    color: var(--qb-text);
    font-weight: 700;
}

.qb-list-item__body {
    margin-top: 0.35rem;
    color: var(--qb-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.qb-auth-body .showcase,
.qb-auth-body .panel {
    border-radius: 32px;
    border: 1px solid var(--qb-line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--qb-shadow);
}

.qb-auth-body .showcase {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 246, 255, 0.92) 100%);
}

.qb-auth-body .eyebrow {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(37, 99, 235, 0.08);
    color: var(--qb-electric-strong);
}

.qb-auth-body button {
    background: linear-gradient(135deg, var(--qb-electric), var(--qb-cyan));
    color: #06111f;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
}

.qb-auth-body .link-btn {
    border-color: rgba(37, 99, 235, 0.12);
}

.qb-auth-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 2rem 0;
}

.qb-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    gap: 1.5rem;
}

.qb-auth-showcase,
.qb-auth-panel {
    border-radius: 32px;
    border: 1px solid var(--qb-line);
    box-shadow: var(--qb-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.qb-auth-showcase {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 245, 255, 0.92) 100%);
}

.qb-auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 34%, rgba(255,255,255,0.34) 66%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: qbSheen 8s linear infinite;
    pointer-events: none;
}

@keyframes qbSheen {
    to { transform: translateX(100%); }
}

.qb-auth-brand {
    display: block;
    color: var(--qb-electric-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.qb-auth-brand img {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.qb-auth-title {
    margin: 1.25rem 0 0;
    max-width: 12ch;
    font-size: clamp(2.5rem, 4.8vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: #07111b;
}

.qb-auth-lead {
    margin-top: 1rem;
    max-width: 54ch;
    color: #50617b;
    font-size: 1rem;
    line-height: 1.8;
}

.qb-auth-stats {
    margin-top: 1.8rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qb-auth-stat,
.qb-auth-float {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.08);
}

.qb-auth-stat {
    padding: 1rem;
}

.qb-auth-stat strong {
    display: block;
    color: #07111b;
    font-family: "Sora", sans-serif;
    font-size: 1.45rem;
}

.qb-auth-stat span {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.qb-auth-canvas {
    position: relative;
    min-height: 320px;
    margin-top: 1.8rem;
    border-radius: 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(239, 245, 255, 0.96) 0%, rgba(245, 249, 255, 0.92) 100%);
    overflow: hidden;
}

.qb-auth-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
}

.qb-auth-float {
    position: absolute;
    padding: 1rem 1.1rem;
    animation: qbFloat 6s ease-in-out infinite;
}

@keyframes qbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.qb-auth-float strong {
    display: block;
    color: #07111b;
    font-size: 0.95rem;
}

.qb-auth-float span {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.55;
}

.qb-auth-float--one { top: 1.6rem; left: 1.6rem; width: 220px; }
.qb-auth-float--two { top: 5rem; right: 1.8rem; width: 240px; animation-delay: -2s; }
.qb-auth-float--three { bottom: 1.8rem; left: 5.8rem; width: 270px; animation-delay: -3.2s; }

.qb-auth-panel {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.94);
}

.qb-auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.qb-auth-panel-copy {
    color: #5b6b84;
    font-size: 0.95rem;
    line-height: 1.7;
}

.qb-auth-link {
    color: var(--qb-electric-strong);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.qb-auth-link:hover {
    text-decoration: underline;
}

.qb-auth-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qb-auth-field {
    display: grid;
    gap: 0.45rem;
}

.qb-auth-field--full {
    grid-column: 1 / -1;
}

.qb-auth-field label {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.qb-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.qb-auth-note {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.85rem;
}

.qb-auth-note-card {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(247, 250, 255, 0.96);
}

.qb-auth-note-card strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #07111b;
    font-size: 0.95rem;
}

.qb-auth-note-card p {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

.qb-auth-note-card code {
    color: #07111b;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
}

.theme-shell [class*="text-emerald-100"],
.theme-shell [class*="text-emerald-200"],
.theme-shell [class*="text-emerald-50"] {
    color: #d9f6ff !important;
}

html[data-theme="light"] .theme-shell [class*="text-emerald-100"],
html[data-theme="light"] .theme-shell [class*="text-emerald-200"],
html[data-theme="light"] .theme-shell [class*="text-emerald-50"] {
    color: var(--qb-electric-strong) !important;
}

html[data-theme="light"] .theme-shell [class*="text-white"] {
    color: var(--qb-text) !important;
}

html[data-theme="light"] .theme-shell [class*="text-slate-100"] {
    color: #1e293b !important;
}

html[data-theme="light"] .theme-shell [class*="text-slate-200"] {
    color: #334155 !important;
}

html[data-theme="light"] .theme-shell [class*="text-slate-300"] {
    color: #475569 !important;
}

html[data-theme="light"] .theme-shell [class*="text-slate-400"] {
    color: #64748b !important;
}

html[data-theme="light"] .theme-shell [class*="text-slate-500"] {
    color: #64748b !important;
}

html[data-theme="light"] .theme-shell [class*="text-cyan-100"],
html[data-theme="light"] .theme-shell [class*="text-cyan-200"] {
    color: #0f4c5d !important;
}

html[data-theme="light"] .theme-shell [class*="text-violet-100"],
html[data-theme="light"] .theme-shell [class*="text-violet-200"] {
    color: #5b21b6 !important;
}

html[data-theme="light"] .theme-shell [class*="text-amber-100"],
html[data-theme="light"] .theme-shell [class*="text-amber-200"] {
    color: #92400e !important;
}

html[data-theme="light"] .theme-shell [class*="text-rose-100"],
html[data-theme="light"] .theme-shell [class*="text-rose-200"] {
    color: #9f1239 !important;
}

.theme-shell [class*="bg-emerald-400/10"],
.theme-shell [class*="bg-emerald-400/12"],
.theme-shell [class*="bg-emerald-400/15"],
.theme-shell [class*="bg-emerald-400/20"],
.theme-shell [class*="bg-emerald-300/15"] {
    background: rgba(37, 99, 235, 0.10) !important;
}

.theme-shell [class*="border-emerald-400/20"],
.theme-shell [class*="border-emerald-400/25"],
.theme-shell [class*="border-emerald-400/30"],
.theme-shell [class*="border-emerald-400/40"],
.theme-shell [class*="border-emerald-300/25"],
.theme-shell [class*="border-emerald-300/30"] {
    border-color: rgba(37, 99, 235, 0.24) !important;
}

.theme-shell [class*="bg-gradient-to-r"][class*="from-emerald-400"][class*="to-cyan-400"],
.theme-shell [class*="bg-gradient-to-r"][class*="from-emerald-400"][class*="to-cyan-500"],
.theme-shell [class*="bg-gradient-to-r"][class*="from-cyan-400"][class*="to-emerald-400"],
.theme-shell [class*="bg-gradient-to-br"][class*="from-emerald-500"],
.theme-shell [class*="bg-gradient-to-br"][class*="to-emerald-500"],
.theme-shell [class*="bg-gradient-to-br"][class*="to-emerald-950"] {
    background-image: linear-gradient(135deg, rgba(8, 16, 31, 0.96), rgba(14, 25, 44, 0.92)) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
}

.theme-shell [class*="bg-gradient-to-r"][class*="from-emerald-400"][class*="to-cyan-400"],
.theme-shell [class*="bg-gradient-to-r"][class*="from-emerald-400"][class*="to-cyan-500"],
.theme-shell [class*="bg-gradient-to-r"][class*="from-cyan-400"][class*="to-emerald-400"] {
    background-image: linear-gradient(135deg, var(--qb-electric), var(--qb-cyan)) !important;
    color: #06111f !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22) !important;
}

html[data-theme="light"] .theme-shell [class*="bg-gradient-to-br"][class*="from-emerald-500"],
html[data-theme="light"] .theme-shell [class*="bg-gradient-to-br"][class*="to-emerald-500"],
html[data-theme="light"] .theme-shell [class*="bg-gradient-to-br"][class*="to-emerald-950"] {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 252, 0.94)) !important;
}

html[data-theme="light"] .theme-shell [class*="bg-gradient-to-br"][class*="via-slate-900"],
html[data-theme="light"] .theme-shell [class*="bg-gradient-to-br"][class*="from-cyan-500/15"],
html[data-theme="light"] .theme-shell [class*="bg-gradient-to-br"][class*="from-cyan-500/20"] {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 252, 0.94)) !important;
    border-color: rgba(37, 99, 235, 0.14) !important;
}

html[data-theme="light"] .theme-shell [class*="bg-slate-950/60"],
html[data-theme="light"] .theme-shell [class*="bg-slate-950/50"],
html[data-theme="light"] .theme-shell [class*="bg-slate-950/40"],
html[data-theme="light"] .theme-shell [class*="bg-slate-900/60"],
html[data-theme="light"] .theme-shell [class*="bg-slate-900/50"] {
    background: rgba(241, 245, 249, 0.92) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .theme-shell [class*="bg-white/5"] {
    background: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="light"] .theme-shell [class*="border-white/10"] {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.theme-shell [class*="bg-lime-300/10"] {
    background: rgba(37, 99, 235, 0.08) !important;
}

.theme-shell [class*="drop-shadow-[0_10px_24px_rgba(16,185,129,0.18)]"] {
    filter: drop-shadow(0 12px 28px rgba(37, 99, 235, 0.22)) !important;
}

.theme-shell [class*="accent-emerald-400"] {
    accent-color: var(--qb-electric) !important;
}

@media (max-width: 1024px) {
    .qb-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--qb-line);
    }

    .qb-auth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .qb-form-grid,
    .qb-auth-grid,
    .qb-auth-stats {
        grid-template-columns: 1fr;
    }

    .qb-auth-shell {
        width: min(100%, calc(100% - 1rem));
        padding: 0.75rem 0;
    }

    .qb-auth-panel,
    .qb-auth-showcase {
        padding: 1.4rem;
        border-radius: 28px;
    }

    .qb-auth-canvas {
        min-height: 380px;
    }

    .qb-auth-float--one,
    .qb-auth-float--two,
    .qb-auth-float--three {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .qb-auth-float--one { top: 1rem; }
    .qb-auth-float--two { top: 7rem; }
    .qb-auth-float--three { top: 14rem; bottom: auto; }
}
