/* 🎨 IMPORT DEDICATED DESIGN SYSTEM COLOR TOKENS */
html {
    background: var(--theme-bg-main);
    color-scheme: light;
}

html.dark {
    color-scheme: dark;
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(var(--color-primary-rgb), 0.08), transparent 28rem),
        radial-gradient(circle at 88% 2%, rgba(var(--color-accent-rgb), 0.07), transparent 26rem),
        var(--theme-bg-main);
    color: var(--theme-text-main);
}

::selection {
    background: rgba(var(--color-primary-rgb), 0.25);
    color: var(--theme-text-main);
}

/* 🎚️ Universal Custom Scrollbar (Light & Dark Mode) */
html::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--theme-bg-main);
}

html::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--theme-text-subtle);
    border-radius: 9999px;
    border: 3px solid var(--theme-bg-main);
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--theme-text-muted);
}

/* Glassmorphism Panel using Design Tokens */
.glass-panel {
    background: rgba(var(--color-bg-surface-rgb), 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--color-border-rgb), 0.5);
}

.admin-shell {
    position: relative;
    isolation: isolate;
}

.admin-main {
    width: 100%;
    max-width: 96rem;
    margin-inline: auto;
    padding: 1.25rem;
}

.admin-page {
    display: grid;
    gap: 1.5rem;
}

.admin-panel {
    background: rgba(var(--color-bg-surface-rgb), 0.88);
    border: 1px solid rgba(var(--color-border-rgb), 0.82);
    border-radius: 1.25rem;
    box-shadow: var(--theme-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.admin-panel-subtle {
    background: rgba(var(--color-bg-main-rgb), 0.56);
    border: 1px solid rgba(var(--color-border-rgb), 0.7);
    border-radius: 1rem;
}

.admin-page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.375rem;
    overflow: hidden;
    position: relative;
}

.admin-page-heading::after {
    content: '';
    position: absolute;
    inset: auto -2rem -4rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 9999px;
    background: rgba(var(--color-primary-rgb), 0.1);
    filter: blur(8px);
    pointer-events: none;
}

.admin-eyebrow {
    color: var(--theme-primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-title {
    margin-top: 0.2rem;
    color: var(--theme-text-main);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.admin-description {
    margin-top: 0.25rem;
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.admin-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.35rem;
    background: rgba(var(--color-bg-surface-rgb), 0.72);
    border: 1px solid rgba(var(--color-border-rgb), 0.72);
    border-radius: 0.95rem;
}

.admin-tab {
    flex: 0 0 auto;
    padding: 0.6rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--theme-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    transition: 160ms ease;
}

.admin-tab:hover,
.admin-tab.is-active {
    background: rgba(var(--color-primary-rgb), 0.11);
    color: var(--theme-primary);
}

.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 0.75rem;
    background: var(--theme-bg-muted);
    color: var(--theme-text-main);
    font-size: 0.75rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-input,
.admin-select {
    min-height: 2.5rem;
    padding: 0.6rem 0.85rem;
}

.admin-textarea {
    padding: 0.75rem 0.85rem;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    background: var(--theme-bg-surface);
    box-shadow: 0 0 0 4px var(--theme-focus-ring);
}

.admin-button {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 1rem;
    border-radius: 0.75rem;
    background: var(--theme-primary);
    color: var(--theme-on-primary);
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(var(--color-primary-rgb), 0.2);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-button:hover {
    background: var(--theme-primary-hover);
    box-shadow: 0 14px 28px rgba(var(--color-primary-rgb), 0.28);
    transform: translateY(-1px);
}

.admin-button-danger {
    background: var(--theme-danger);
    color: var(--theme-on-danger);
}

.admin-button-danger:hover {
    background: var(--theme-danger-hover);
}

.admin-icon-button {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--theme-border);
    border-radius: 0.7rem;
    background: var(--theme-bg-surface);
    color: var(--theme-text-muted);
    transition: 160ms ease;
}

.admin-icon-button:hover {
    border-color: rgba(var(--color-primary-rgb), 0.42);
    color: var(--theme-primary);
    transform: translateY(-1px);
}

.admin-table thead {
    background: rgba(var(--color-bg-main-rgb), 0.64);
}

.admin-table th {
    color: var(--theme-text-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table tbody tr {
    transition: background 160ms ease;
}

.admin-table tbody tr:hover {
    background: rgba(var(--color-primary-rgb), 0.045);
}

.admin-notice {
    background: var(--theme-info-soft);
    border: 1px solid rgba(var(--color-info-rgb), 0.24);
    color: var(--theme-text-main);
}

.admin-header {
    background: rgba(var(--color-bg-surface-rgb), 0.78);
    border-color: rgba(var(--color-border-rgb), 0.76);
    box-shadow: 0 8px 30px rgba(var(--color-bg-main-rgb), 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.055), transparent 14rem),
        var(--theme-bg-surface);
    border-color: var(--theme-border);
    box-shadow: 18px 0 50px rgba(var(--color-bg-main-rgb), 0.08);
}

.admin-panel input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
.admin-panel select,
.admin-panel textarea,
.admin-panel-subtle input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
.admin-panel-subtle select,
.admin-panel-subtle textarea {
    border-color: var(--theme-border);
    background-color: var(--theme-bg-muted);
    color: var(--theme-text-main);
}

.admin-panel input:not([type='checkbox']):not([type='radio']):not([type='hidden']):focus,
.admin-panel select:focus,
.admin-panel textarea:focus,
.admin-panel-subtle input:not([type='checkbox']):not([type='radio']):not([type='hidden']):focus,
.admin-panel-subtle select:focus,
.admin-panel-subtle textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px var(--theme-focus-ring);
}

/* Active Nav Link Styling */
.nav-item.active {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.25) 0%, rgba(var(--color-accent-rgb), 0.15) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.4);
    color: var(--color-text-main);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
}

/* Stat Cards Hover & Shadows using Design Tokens */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    box-shadow: var(--theme-shadow-float);
}

/* Category Accent Utility Classes */
.card-imei {
    border-color: rgba(var(--color-imei-rgb), 0.3);
}

.card-imei:hover {
    border-color: rgba(var(--color-imei-rgb), 0.6);
}

.card-server {
    border-color: rgba(var(--color-server-rgb), 0.3);
}

.card-server:hover {
    border-color: rgba(var(--color-server-rgb), 0.6);
}

.card-remote {
    border-color: rgba(var(--color-remote-rgb), 0.3);
}

.card-remote:hover {
    border-color: rgba(var(--color-remote-rgb), 0.6);
}

.card-shop {
    border-color: rgba(var(--color-shop-rgb), 0.3);
}

.card-shop:hover {
    border-color: rgba(var(--color-shop-rgb), 0.6);
}

/* Floating Debug Bar using Design Tokens */
.debug-bar-panel {
    background-color: rgba(var(--color-bg-main-rgb), 0.95);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-border-rgb), 0.8);
    backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
    .admin-main {
        padding: 1.75rem;
    }
}

/* Client storefront: token-driven 3D experience */
.client-header {
    background: var(--client-header-bg);
    color: var(--client-hero-text);
    border-color: var(--client-glass-border)
}

.client-glass {
    background: var(--client-glass);
    border: 1px solid var(--client-glass-border);
    backdrop-filter: blur(18px)
}

.client-nav-link {
    color: var(--client-hero-muted)
}

.client-nav-link:hover,
.client-nav-link.is-active {
    color: var(--client-hero-text);
    background: var(--client-glass)
}

.client-brand-button {
    background: var(--client-brand-deep);
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(10, 65, 116, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-brand-button:hover {
    background: var(--theme-text-main);
    box-shadow: 0 6px 16px rgba(0, 29, 57, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.client-hero {
    position: relative;
    overflow: hidden;
    color: var(--client-hero-text);
    background: radial-gradient(circle at 18% 18%, var(--client-hero-glow), transparent 34%), radial-gradient(circle at 82% 75%, rgba(var(--client-brand-deep-rgb), .28), transparent 38%), var(--client-hero-bg)
}

.client-hero:before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: linear-gradient(var(--client-glass-border) 1px, transparent 1px), linear-gradient(90deg, var(--client-glass-border) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, var(--client-hero-text), transparent 82%)
}

.client-header option {
    background: var(--client-hero-bg);
    color: var(--client-hero-text)
}

.client-kicker {
    color: var(--client-brand);
    background: var(--client-brand-soft);
    border: 1px solid var(--client-brand-border)
}

.client-gradient-text {
    color: var(--client-brand);
    background: linear-gradient(100deg, var(--client-brand), var(--client-success), var(--client-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.client-muted {
    color: var(--client-hero-muted)
}

.client-secondary-button {
    color: var(--client-brand-deep);
    background: var(--theme-bg-surface);
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 4px rgba(0, 29, 57, 0.05);
    transition: all 0.2s ease;
}

.client-secondary-button:hover {
    border-color: var(--client-brand-border);
    background: var(--client-brand-soft);
    color: var(--client-brand-deep);
}

.client-stat-row {
    border-color: var(--client-glass-border)
}

.client-scene {
    position: relative;
    min-height: 510px;
    perspective: 1200px;
    transform-style: preserve-3d
}

.client-orbit {
    position: absolute;
    inset: 8% 4%;
    border: 1px solid var(--client-brand-border);
    border-radius: 50%;
    transform: rotateX(67deg) rotateZ(-12deg);
    animation: client-orbit 13s linear infinite
}

.client-orbit:before,
.client-orbit:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--client-brand);
    box-shadow: 0 0 28px var(--client-brand)
}

.client-orbit:before {
    top: 8%;
    left: 18%
}

.client-orbit:after {
    right: 10%;
    bottom: 18%;
    background: var(--client-accent);
    box-shadow: 0 0 28px var(--client-accent)
}

.client-phone {
    position: absolute;
    width: 238px;
    height: 430px;
    left: 50%;
    top: 50%;
    padding: 12px;
    border-radius: 42px;
    background: linear-gradient(145deg, var(--client-glass-strong), var(--client-hero-bg));
    border: 2px solid var(--client-brand-border);
    box-shadow: 0 45px 80px var(--client-depth-shadow), inset 0 0 25px var(--client-glass);
    transform: translate(-50%, -50%) rotateY(-18deg) rotateX(8deg);
    transform-style: preserve-3d;
    animation: client-float 5s ease-in-out infinite
}

.client-phone-screen {
    height: 100%;
    border-radius: 32px;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 25%, var(--client-brand-soft), transparent 45%), linear-gradient(160deg, rgb(var(--client-hero-surface-rgb)), var(--client-hero-bg));
    border: 1px solid var(--client-glass-border)
}

.client-lock-core {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 32px;
    color: var(--client-brand);
    background: var(--client-brand-soft);
    border: 1px solid var(--client-brand-border);
    box-shadow: 0 0 50px var(--client-hero-glow);
    animation: client-pulse 2.6s ease-in-out infinite
}

.client-float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 170px;
    padding: 14px;
    border-radius: 18px;
    color: var(--client-hero-text);
    background: var(--client-glass-strong);
    border: 1px solid var(--client-glass-border);
    box-shadow: 0 24px 50px var(--client-depth-shadow);
    backdrop-filter: blur(18px);
    animation: client-card-float 4s ease-in-out infinite
}

.client-float-card.one {
    left: 0;
    top: 17%
}

.client-float-card.two {
    right: 0;
    top: 48%;
    animation-delay: -1.3s
}

.client-float-card.three {
    left: 7%;
    bottom: 5%;
    animation-delay: -2.4s
}

.client-float-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    color: var(--client-brand);
    background: var(--client-brand-soft)
}

.client-service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 1.4rem;
    background: var(--theme-bg-surface);
    box-shadow: var(--theme-shadow-soft);
    transform-style: preserve-3d;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease
}

.client-service-card:hover {
    transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-9px);
    box-shadow: var(--theme-shadow-float);
    border-color: var(--client-brand)
}

.client-service-media {
    position: relative;
    overflow: hidden;
    background: var(--client-hero-bg)
}

.client-service-media:after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(transparent, var(--client-depth-shadow));
    pointer-events: none
}

.client-service-image {
    transition: transform .7s cubic-bezier(.2, .8, .2, 1)
}

.client-service-card:hover .client-service-image {
    transform: scale(1.09) rotate(-1deg)
}

.client-status {
    color: var(--client-hero-bg);
    background: var(--client-success)
}

.client-service-icon,
.client-price {
    color: var(--client-brand)
}

.client-scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 100;
    width: var(--scroll-progress, 0);
    height: 3px;
    background: linear-gradient(90deg, var(--client-brand), var(--client-success), var(--client-accent));
    box-shadow: 0 0 16px var(--client-brand)
}

.client-marquee {
    overflow: hidden;
    color: var(--client-hero-text);
    background: var(--client-hero-bg);
    border-block: 1px solid var(--client-glass-border)
}

.client-marquee-track {
    display: flex;
    width: max-content;
    animation: client-marquee 24s linear infinite
}

.client-marquee-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 2rem;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--client-hero-muted)
}

.client-marquee-item i {
    color: var(--client-brand)
}

.client-reveal {
    opacity: 0;
    transform: translateY(34px) scale(.98);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .8, .2, 1)
}

.client-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1)
}

.client-reveal[data-reveal-delay="1"] {
    transition-delay: .1s
}

.client-reveal[data-reveal-delay="2"] {
    transition-delay: .2s
}

.client-reveal[data-reveal-delay="3"] {
    transition-delay: .3s
}

.client-tilt {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform .18s ease-out;
    will-change: transform
}

.client-process-card {
    position: relative;
    min-height: 190px;
    padding: 1.5rem;
    border: 1px solid var(--theme-border);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, var(--theme-bg-surface), var(--theme-bg-muted));
    box-shadow: var(--theme-shadow-soft);
    overflow: hidden
}

.client-process-card:after {
    content: attr(data-step);
    position: absolute;
    right: -.5rem;
    bottom: -2.3rem;
    color: var(--client-brand-soft);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1
}

.client-process-icon,
.client-auth-icon,
.client-dashboard-icon {
    display: grid;
    place-items: center;
    color: var(--client-brand);
    background: var(--client-brand-soft);
    border: 1px solid var(--client-brand-border)
}

.client-auth-shell {
    position: relative;
    min-height: calc(100vh - 5rem);
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, var(--client-brand-soft), transparent 30%), radial-gradient(circle at 90% 75%, var(--client-success-soft), transparent 32%), var(--theme-bg-main)
}

.client-auth-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 45% 55% 62% 38%;
    background: linear-gradient(145deg, var(--client-brand-soft), var(--client-success-soft));
    filter: blur(2px);
    animation: client-blob 9s ease-in-out infinite
}

.client-auth-orb.one {
    left: -90px;
    top: 10%
}

.client-auth-orb.two {
    right: -100px;
    bottom: 8%;
    animation-delay: -4s
}

.client-auth-card {
    position: relative;
    background: rgba(var(--color-bg-surface-rgb), .82);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-float);
    backdrop-filter: blur(24px)
}

.client-field {
    width: 100%;
    min-height: 3.25rem;
    padding: .8rem 2.8rem;
    color: var(--theme-text-main);
    background: var(--theme-bg-muted);
    border: 1px solid var(--theme-border);
    border-radius: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, transform .2s
}

.client-field:focus {
    border-color: var(--client-brand);
    box-shadow: 0 0 0 4px var(--client-brand-soft);
    transform: translateY(-1px)
}

.client-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text-muted)
}

.client-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text-muted)
}

.client-form-label {
    color: var(--theme-text-main)
}

.client-auth-link,
.client-dashboard-accent {
    color: var(--client-brand)
}

.client-error {
    color: var(--client-danger);
    background: var(--client-danger-soft);
    border: 1px solid var(--client-danger-border)
}

.client-dashboard-hero {
    position: relative;
    overflow: hidden;
    color: var(--client-hero-text);
    background: linear-gradient(125deg, var(--client-hero-bg), rgb(var(--client-hero-surface-rgb)));
    border: 1px solid var(--client-brand-border);
    box-shadow: var(--theme-shadow-float)
}

.client-dashboard-hero:after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -100px;
    border-radius: 50%;
    background: var(--client-hero-glow);
    filter: blur(8px)
}

.client-dashboard-card {
    background: var(--theme-bg-surface);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-soft);
    transition: transform .3s ease, border-color .3s ease
}

.client-dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--client-brand)
}

.client-dashboard-danger {
    color: var(--client-danger);
    background: var(--client-danger-soft);
    border: 1px solid var(--client-danger-border)
}

.client-progress {
    height: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--theme-bg-muted)
}

.client-progress>span {
    display: block;
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: var(--progress-color, var(--client-brand));
    transform-origin: left;
    animation: client-grow 1.2s ease both
}

.client-progress.success {
    --progress-color: var(--client-success)
}

.client-progress.danger {
    --progress-color: var(--client-danger)
}

.client-announcement {
    background: var(--theme-bg-muted);
    border: 1px solid var(--theme-border)
}

@keyframes client-blob {

    0%,
    100% {
        transform: translate(0, 0) rotate(0) scale(1)
    }

    50% {
        transform: translate(20px, -25px) rotate(18deg) scale(1.12)
    }
}

@keyframes client-grow {
    from {
        transform: scaleX(0)
    }

    to {
        transform: scaleX(1)
    }
}

@keyframes client-marquee {
    to {
        transform: translateX(-50%)
    }
}

@media(max-width:640px) {
    .client-auth-shell {
        min-height: auto
    }

    .client-auth-card {
        border-radius: 1.5rem
    }

    .client-dashboard-hero {
        border-radius: 1.5rem
    }

    .client-reveal {
        transform: translateY(22px)
    }
}

@media(prefers-reduced-motion:reduce) {
    .client-reveal {
        opacity: 1;
        transform: none;
        transition: none
    }

    .client-auth-orb,
    .client-progress>span,
    .client-marquee-track {
        animation: none
    }

    .client-tilt {
        transform: none !important
    }
}

/* Premium client cockpit */
.luxury-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--client-luxury-text);
    background: var(--client-luxury-bg)
}

.luxury-shell:before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 12%, var(--client-hero-glow), transparent 28%), radial-gradient(circle at 88% 32%, var(--client-success-soft), transparent 24%), radial-gradient(circle at 55% 100%, rgba(var(--client-brand-deep-rgb), .3), transparent 32%)
}

.luxury-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image: linear-gradient(var(--client-luxury-line) 1px, transparent 1px), linear-gradient(90deg, var(--client-luxury-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, var(--client-luxury-text), transparent 78%)
}

.luxury-panel {
    background: linear-gradient(145deg, var(--client-luxury-panel), var(--client-luxury-bg));
    border: 1px solid var(--client-luxury-line);
    box-shadow: 0 30px 80px var(--client-depth-shadow), inset 0 1px var(--client-luxury-shine);
    backdrop-filter: blur(24px)
}

.luxury-eyebrow {
    color: var(--client-brand);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase
}

.luxury-muted {
    color: var(--client-luxury-muted)
}

.luxury-wallet-wrap {
    perspective: 1300px
}

.luxury-wallet {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: rotateX(4deg) rotateY(-6deg);
    background: radial-gradient(circle at 80% 15%, var(--client-luxury-shine), transparent 24%), linear-gradient(135deg, var(--client-brand-deep), var(--client-brand), var(--client-success));
    box-shadow: 0 45px 90px var(--client-depth-shadow);
    transition: transform .25s ease
}

.luxury-wallet:before {
    content: '';
    position: absolute;
    inset: -60% -30%;
    background: linear-gradient(105deg, transparent 38%, var(--client-luxury-shine) 48%, transparent 58%);
    transform: translateX(-60%) rotate(8deg);
    animation: luxury-shimmer 6s ease-in-out infinite
}

.luxury-wallet:after {
    content: '';
    position: absolute;
    width: 230px;
    height: 230px;
    right: -65px;
    bottom: -110px;
    border: 1px solid var(--client-luxury-line);
    border-radius: 50%;
    box-shadow: 0 0 0 30px var(--client-glass), 0 0 0 60px var(--client-glass)
}

.luxury-chip {
    position: relative;
    width: 48px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--client-accent), var(--client-warning-soft));
    box-shadow: inset 0 0 0 1px var(--client-luxury-shine)
}

.luxury-chip:before,
.luxury-chip:after {
    content: '';
    position: absolute;
    background: var(--client-depth-shadow)
}

.luxury-chip:before {
    inset: 0 47%;
}

.luxury-chip:after {
    inset: 47% 0
}

.luxury-balance-console {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    color: var(--client-hero-text);
    background: radial-gradient(circle at 82% 22%, var(--client-hero-glow), transparent 28%), linear-gradient(135deg, var(--client-luxury-panel-strong), var(--client-luxury-bg));
    border: 1px solid var(--client-brand-border);
    box-shadow: 0 38px 90px var(--client-depth-shadow), inset 0 1px var(--client-luxury-shine)
}

.luxury-console-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image: linear-gradient(var(--client-luxury-line) 1px, transparent 1px), linear-gradient(90deg, var(--client-luxury-line) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(120deg, var(--client-luxury-text), transparent 70%)
}

.luxury-balance-orb {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: var(--client-brand);
    background: var(--client-brand-soft);
    border: 1px solid var(--client-brand-border);
    box-shadow: 0 0 35px var(--client-hero-glow);
    animation: client-pulse 2.6s ease-in-out infinite
}

.luxury-console-stat {
    padding: .8rem 1rem;
    border: 1px solid var(--client-luxury-line);
    border-radius: 1rem;
    background: var(--client-glass)
}

.luxury-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--client-success);
    box-shadow: 0 0 12px var(--client-success);
    animation: client-pulse 2s ease-in-out infinite
}

.luxury-currency {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--client-luxury-line);
    border-radius: 12px;
    color: var(--client-brand);
    background: var(--client-glass)
}

.luxury-currency select,
.luxury-dock-currency select {
    appearance: none;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer
}

.luxury-currency option,
.luxury-dock-currency option {
    color: var(--theme-text-main);
    background: var(--theme-bg-surface)
}

.luxury-dock-currency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    color: var(--client-brand);
    background: var(--client-brand-soft)
}

.luxury-bento {
    position: relative;
    overflow: hidden;
    border-radius: 1.6rem;
    background: var(--client-luxury-panel);
    border: 1px solid var(--client-luxury-line);
    box-shadow: inset 0 1px var(--client-luxury-shine);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, background .35s
}

.luxury-bento:hover {
    transform: translateY(-7px) scale(1.015);
    border-color: var(--client-brand-border);
    background: var(--client-luxury-panel-strong)
}

.luxury-bento:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    right: -45px;
    top: -45px;
    border-radius: 50%;
    background: var(--client-brand-soft);
    filter: blur(2px)
}

.luxury-icon {
    display: grid;
    place-items: center;
    color: var(--client-brand);
    background: var(--client-brand-soft);
    border: 1px solid var(--client-brand-border);
    box-shadow: 0 12px 30px var(--client-depth-shadow)
}

.luxury-ring {
    --ring-value: 0;
    --ring-color: var(--client-brand);
    position: relative;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--ring-color) calc(var(--ring-value)*1%), var(--client-glass) 0);
    box-shadow: 0 0 35px color-mix(in srgb, var(--ring-color) 25%, transparent)
}

.luxury-ring:before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--client-luxury-panel-strong);
    border: 1px solid var(--client-luxury-line)
}

.luxury-ring>* {
    position: relative;
    z-index: 1
}

.luxury-ring.success {
    --ring-color: var(--client-success)
}

.luxury-ring.danger {
    --ring-color: var(--client-danger)
}

.luxury-order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
    background: var(--client-glass);
    border: 1px solid var(--client-luxury-line)
}

.luxury-dock {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px;
    border-radius: 22px;
    transform: translateX(-50%);
    background: var(--client-luxury-panel-strong);
    border: 1px solid var(--client-luxury-line);
    box-shadow: 0 25px 60px var(--client-depth-shadow);
    backdrop-filter: blur(24px)
}

.luxury-dock a,
.luxury-dock button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    color: var(--client-luxury-muted);
    transition: .2s
}

.luxury-dock a:hover,
.luxury-dock a.active,
.luxury-dock button:hover {
    color: var(--client-hero-bg);
    background: var(--client-brand);
    transform: translateY(-4px)
}

.luxury-auth {
    position: relative;
    min-height: calc(100vh - 5rem);
    overflow: hidden;
    background: var(--client-luxury-bg);
    color: var(--client-hero-text)
}

.luxury-auth-stage {
    position: relative;
    min-height: 580px;
    perspective: 1400px
}

.luxury-auth-phone {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    height: 510px;
    padding: 12px;
    border-radius: 48px;
    transform: translate(-50%, -50%) rotateY(-18deg) rotateX(7deg);
    background: linear-gradient(145deg, var(--client-luxury-shine), var(--client-hero-bg) 32%);
    border: 1px solid var(--client-brand-border);
    box-shadow: 55px 55px 100px var(--client-depth-shadow);
    animation: luxury-phone 6s ease-in-out infinite
}

.luxury-auth-screen {
    height: 100%;
    overflow: hidden;
    border-radius: 37px;
    background: radial-gradient(circle at 50% 30%, var(--client-hero-glow), transparent 34%), var(--client-luxury-panel-strong);
    border: 1px solid var(--client-luxury-line)
}

.luxury-auth-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 1px solid var(--client-brand-border);
    transform: translate(-50%, -50%) rotateX(68deg);
    animation: client-orbit 14s linear infinite
}

.luxury-auth-float {
    position: absolute;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--client-luxury-panel);
    border: 1px solid var(--client-luxury-line);
    box-shadow: 0 25px 60px var(--client-depth-shadow);
    backdrop-filter: blur(18px);
    animation: client-card-float 4s ease-in-out infinite
}

.luxury-auth-float.a {
    left: 2%;
    top: 22%
}

.luxury-auth-float.b {
    right: 0;
    bottom: 22%;
    animation-delay: -2s
}

.luxury-form {
    background: var(--client-luxury-panel);
    border: 1px solid var(--client-luxury-line);
    box-shadow: 0 35px 90px var(--client-depth-shadow), inset 0 1px var(--client-luxury-shine);
    backdrop-filter: blur(28px)
}

.luxury-form .client-field {
    color: var(--client-hero-text);
    background: var(--client-glass);
    border-color: var(--client-luxury-line)
}

.luxury-form .client-field::placeholder {
    color: var(--client-luxury-muted)
}

.luxury-form .client-form-label {
    color: var(--client-hero-text)
}

@keyframes luxury-shimmer {

    0%,
    55% {
        transform: translateX(-70%) rotate(8deg)
    }

    85%,
    100% {
        transform: translateX(70%) rotate(8deg)
    }
}

@keyframes luxury-phone {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateY(-18deg) rotateX(7deg) translateY(0)
    }

    50% {
        transform: translate(-50%, -50%) rotateY(-10deg) rotateX(4deg) translateY(-18px)
    }
}

@media(max-width:1023px) {
    .luxury-auth-stage {
        min-height: 390px
    }

    .luxury-auth-phone {
        width: 190px;
        height: 370px
    }

    .luxury-auth-ring {
        width: 310px;
        height: 310px
    }

    .luxury-auth-float {
        font-size: .7rem
    }

    .luxury-wallet {
        transform: none
    }

    .luxury-dock {
        bottom: 9px
    }
}

@media(max-width:640px) {
    .luxury-auth-stage {
        min-height: 315px
    }

    .luxury-auth-phone {
        width: 150px;
        height: 285px;
        border-radius: 34px
    }

    .luxury-auth-screen {
        border-radius: 25px
    }

    .luxury-auth-ring {
        width: 240px;
        height: 240px
    }

    .luxury-auth-float.a {
        left: 0;
        top: 12%
    }

    .luxury-auth-float.b {
        right: 0;
        bottom: 10%
    }

    .luxury-ring {
        width: 92px;
        height: 92px
    }

    .luxury-dock {
        width: max-content
    }
}

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

    .luxury-wallet:before,
    .luxury-auth-phone,
    .luxury-auth-ring,
    .luxury-auth-float {
        animation: none
    }
}

@keyframes client-float {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateY(-18deg) rotateX(8deg) translateY(0)
    }

    50% {
        transform: translate(-50%, -50%) rotateY(-12deg) rotateX(5deg) translateY(-18px)
    }
}

@keyframes client-card-float {

    0%,
    100% {
        transform: translateY(0) rotateZ(-1deg)
    }

    50% {
        transform: translateY(-13px) rotateZ(1deg)
    }
}

@keyframes client-orbit {
    to {
        transform: rotateX(67deg) rotateZ(348deg)
    }
}

@keyframes client-pulse {
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 72px var(--client-hero-glow)
    }
}

@media(max-width:1023px) {
    .client-scene {
        min-height: 410px;
        max-width: 540px;
        margin-inline: auto
    }

    .client-phone {
        width: 200px;
        height: 360px
    }

    .client-float-card {
        min-width: 145px
    }

    .client-float-card.three {
        display: none
    }
}

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

    .client-orbit,
    .client-phone,
    .client-lock-core,
    .client-float-card {
        animation: none
    }
}

/* ══════════════════════════════════════════════════════════════════
   ⚖️ UNIVERSAL SIZING SYSTEM (responsive component classes)
   Single source of truth — sizes, gaps, paddings, margins, type, radius.
   Tokens live in colors.css (--space-*, --text-*, --radius-*, --control-*).
   ══════════════════════════════════════════════════════════════════ */

/* ── Layout containers ─────────────────────────────────────────── */
.client-container {
    width: 100%;
    max-width: var(--container-max, 80rem);
    margin-inline: auto;
    padding-inline: var(--container-pad, 1rem);
}

.client-section {
    width: 100%;
    max-width: var(--container-max, 80rem);
    margin-inline: auto;
    padding-inline: var(--container-pad, 1rem);
    padding-block: var(--section-y, 2rem);
}

.client-section-sm {
    --section-y: var(--space-6, 1.5rem);
    --section-y-md: var(--space-8, 2rem);
    --section-y-lg: var(--space-10, 2.5rem);
}

.client-section-lg {
    --section-y: var(--space-12, 3rem);
    --section-y-md: var(--space-16, 4rem);
    --section-y-lg: var(--space-20, 5rem);
}

@media (min-width: 640px) {
    .client-container,
    .client-section {
        --container-pad: var(--container-pad-md, 1.5rem);
    }

    .client-section {
        --section-y: var(--section-y-md, 3rem);
    }
}

@media (min-width: 1024px) {
    .client-container,
    .client-section {
        --container-pad: var(--container-pad-lg, 2rem);
    }

    .client-section {
        --section-y: var(--section-y-lg, 4rem);
    }
}

/* ── Vertical rhythm stack (replaces space-y-*) ────────────────── */
.client-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 1rem);
}

.client-stack-sm {
    gap: var(--space-2, 0.5rem);
}

.client-stack-md {
    gap: var(--space-4, 1rem);
}

.client-stack-lg {
    gap: var(--space-6, 1.5rem);
}

.client-stack-xl {
    gap: var(--space-8, 2rem);
}

/* ── Cards ─────────────────────────────────────────────────────── */
.client-card {
    background: var(--theme-bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--theme-shadow-soft);
    padding: var(--space-4, 1rem);
}

.client-card-sm {
    padding: var(--space-3, 0.75rem);
}

.client-card-lg {
    padding: var(--space-6, 1.5rem);
}

.client-card-xl {
    padding: var(--space-8, 2rem);
}

@media (min-width: 640px) {
    .client-card {
        padding: var(--space-5, 1.25rem);
    }

    .client-card-lg {
        padding: var(--space-8, 2rem);
    }

    .client-card-xl {
        padding: var(--space-10, 2.5rem);
    }
}

/* ── Buttons (normalized heights: sm / md / lg) ────────────────── */
.client-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 0.5rem);
    min-height: var(--control-md, 2.75rem);
    padding-inline: var(--space-4, 1rem);
    border-radius: var(--radius-lg, 0.75rem);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.client-btn-sm {
    min-height: var(--control-sm, 2.25rem);
    padding-inline: var(--space-3, 0.75rem);
    border-radius: var(--radius-md, 0.5rem);
    font-size: var(--text-xs, 0.75rem);
}

.client-btn-lg {
    min-height: var(--control-lg, 3.25rem);
    padding-inline: var(--space-6, 1.5rem);
    border-radius: var(--radius-xl, 1rem);
    font-size: var(--text-base, 1rem);
}

.client-btn:active {
    transform: scale(0.98);
}

/* Note: existing .client-brand-button / .client-secondary-button stay color-only.
   Apply sizing via .client-btn / .client-btn-sm / .client-btn-lg alongside them
   (e.g. class="client-brand-button client-btn") when refactoring screens. */

/* ── Form fields (normalized height) ───────────────────────────── */
.client-input {
    width: 100%;
    min-height: var(--control-md, 2.75rem);
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg, 0.75rem);
    background: var(--theme-bg-muted);
    color: var(--theme-text-main);
    font-size: var(--text-sm, 0.875rem);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.client-input:focus {
    border-color: var(--client-brand);
    background: var(--theme-bg-surface);
    box-shadow: 0 0 0 4px var(--client-brand-soft);
}

.client-input::placeholder {
    color: var(--theme-text-muted);
}

/* ── Headings & text (canonical type scale) ────────────────────── */
.client-h1 {
    font-size: var(--text-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--theme-text-main);
}

.client-h2 {
    font-size: var(--text-3xl, 1.875rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--theme-text-main);
}

.client-h3 {
    font-size: var(--text-xl, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--theme-text-main);
}

.client-h4 {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--theme-text-main);
}

.client-body {
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.7;
    color: var(--theme-text-muted);
}

.client-label {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--theme-text-muted);
}

.client-caption {
    font-size: var(--text-xs, 0.75rem);
    color: var(--theme-text-muted);
}

/* ── Badges & chips (normalized sizing) ────────────────────────── */
.client-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
    padding: var(--space-1, 0.25rem) var(--space-2, 0.5rem);
    border-radius: var(--radius-full);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.client-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
    padding: var(--space-1, 0.25rem) var(--space-2, 0.5rem);
    border-radius: var(--radius-md, 0.5rem);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── Responsive type tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
    .client-h2 {
        font-size: var(--text-2xl, 1.5rem);
    }
}

/* Full-width button (opt-in, e.g. order submit on mobile) */
.client-btn-block {
    width: 100%;
}