@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #020203;
    --surface: #08080a;
    --fg: #ffffff;
    --muted: rgba(255, 255, 255, 0.64);
    --dim: rgba(255, 255, 255, 0.34);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.065);
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.28);
    --hairline: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
    --wrap: 1240px;
    --font: 'Manrope', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-x: hidden;
    background: var(--bg);
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 75% 45% at 50% -5%, rgba(255, 255, 255, 0.09), transparent 70%),
        linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
    color: var(--fg);
    font: 400 1rem/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(48rem 28rem at 85% 15%, rgba(255, 255, 255, 0.045), transparent 65%),
        radial-gradient(42rem 30rem at 15% 85%, rgba(255, 255, 255, 0.03), transparent 65%);
    animation: auroraMove 24s ease-in-out infinite alternate;
}

@keyframes auroraMove {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-2%, 2%, 0) scale(1.06);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: min(var(--wrap), 100% - 2.5rem);
    margin-inline: auto;
}

section {
    padding: clamp(5rem, 10vw, 8.5rem) 0;
    position: relative;
}

section+section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--wrap), 100% - 2.5rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
}

h2 {
    font-size: clamp(2.1rem, 4.3vw, 3.3rem);
    max-width: 22ch;
    letter-spacing: -0.04em;
}

p {
    margin: 0;
}

.lead {
    color: var(--muted);
    max-width: 52ch;
    font-size: 1.06rem;
    line-height: 1.7;
}

.sec-head {
    margin-bottom: 3.25rem;
    display: grid;
    gap: 0.9rem;
    padding-left: 1.15rem;
    border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.glass {
    background: rgba(10, 10, 12, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 20px 50px rgba(0, 0, 0, 0.75);
    transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 60%, transparent);
    pointer-events: none;
}

.glass:hover {
    border-color: var(--line-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 28px 65px rgba(0, 0, 0, 0.9);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.55rem;
    min-height: 44px;
    border-radius: 10px;
    font: 600 0.9rem var(--font);
    letter-spacing: -0.01em;
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.65);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn.primary {
    background: #ffffff;
    color: #020203;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 30px rgba(255, 255, 255, 0.16);
}

.btn.primary:hover {
    background: #e6e6e8;
    border-color: #e6e6e8;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 14px 36px rgba(255, 255, 255, 0.25);
}

.btn.sm {
    padding: 0.55rem 1.05rem;
    min-height: 38px;
    font-size: 0.84rem;
    border-radius: 8px;
}

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding: 1rem 0;
    transition: all 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.scrolled,
.nav.menu-open {
    background: rgba(4, 4, 6, 0.86);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-color: var(--line);
    padding: 0.7rem 0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.25rem;
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 7px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.brand:hover {
    transform: scale(1.02);
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.links a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.25s, transform 0.25s;
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

.links a:hover,
.links a.active {
    color: #fff;
}

.links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: #fff;
}

.links .btn {
    color: #fff;
}

.links .btn::after {
    display: none;
}

.links .btn.primary {
    color: #020203;
}

.prefs {
    display: flex;
    gap: 0.5rem;
}

.prefs select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    min-height: 36px;
    font-family: var(--mono);
    font-size: 0.78rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.prefs select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-strong);
}

.prefs select option {
    background: #09090b;
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--line-strong);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-dropdown-wrap {
    display: none;
}

.mobile-dropdown {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.65rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(7, 7, 9, 0.96);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    max-height: calc(100svh - 84px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px) scaleY(0.97);
    transform-origin: top center;
    transition: opacity 0.22s var(--ease), transform 0.24s var(--ease);
}

.mobile-dropdown.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

.mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.96rem;
    transition: background 0.2s;
}

.mobile-links a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mobile-prefs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.mobile-prefs select.input-field {
    padding: 0.7rem 0.8rem;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
}

.mobile-auth .btn {
    width: 100%;
}

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 8.5rem 0 5.5rem;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.9rem, 7.6vw, 6.5rem);
    letter-spacing: -0.055em;
    line-height: 0.95;
    font-weight: 800;
    animation: textReveal 0.95s var(--ease) forwards;
    opacity: 0;
}

.hero h1 span {
    display: block;
    color: rgba(255, 255, 255, 0.28);
    animation: textReveal 0.95s 0.18s var(--ease) forwards;
    opacity: 0;
}

.hero .lead {
    margin: 1.75rem 0 2.25rem;
    animation: slideUp 0.8s 0.35s var(--ease) forwards;
    opacity: 0;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: slideUp 0.8s 0.5s var(--ease) forwards;
    opacity: 0;
}

.meta {
    margin-top: 2.2rem;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding-top: 1.1rem;
    border-top: 1px solid var(--hairline);
    animation: fadeIn 1s 0.75s var(--ease) forwards;
    opacity: 0;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }

    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.console {
    padding: 2.2rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.01) 100%);
    background-color: rgba(8, 8, 10, 0.85);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 70px rgba(0, 0, 0, 0.85);
    animation: scaleIn 0.9s 0.25s var(--ease) forwards;
    opacity: 0;
    position: relative;
}

.console::before {
    content: "SPEC // UNIT-01";
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--dim);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--hairline);
}

.console h2 {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 1rem 0;
}

/* ==========================================================================
   PRICING & BENTO ARCHITECTURE (Distinct, Sharp, High-Contrast Tier Design)
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    counter-reset: tier-counter;
}

.card {
    counter-increment: tier-counter;
    padding: 2rem 2.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(8, 8, 11, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 45px rgba(0, 0, 0, 0.7);
    transition: all 0.4s var(--ease);
    opacity: 0;
    animation: scaleIn 0.65s var(--ease) forwards;
    position: relative;
}

.card::before {
    content: "0" counter(tier-counter) " // TIER";
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--dim);
    padding-bottom: 0.85rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--hairline);
    width: 100%;
}

.card:hover {
    border-color: var(--line-strong);
    background: rgba(14, 14, 18, 0.92);
    transform: translateY(-5px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 26px 65px rgba(0, 0, 0, 0.9);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.025em;
    color: #fff;
}

.card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.f1 {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 360px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 55%), rgba(10, 10, 13, 0.88);
    border-color: rgba(255, 255, 255, 0.2);
    animation-delay: 0.1s;
}

.f1::before {
    content: "01 // PRIMARY ARCHITECTURE";
    color: rgba(255, 255, 255, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.f2 {
    grid-column: span 2;
    animation-delay: 0.15s;
}

.f3 {
    grid-column: span 2;
    animation-delay: 0.2s;
}

.f4 {
    grid-column: span 3;
    animation-delay: 0.25s;
}

.f5 {
    grid-column: span 3;
    animation-delay: 0.3s;
}

.price-tag {
    font-family: var(--mono);
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    font-weight: 700;
    margin: 1.35rem 0 0.35rem;
    padding: 0.45rem 0 0.45rem 1rem;
    border-left: 3px solid #ffffff;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.f1 .price-tag {
    font-size: clamp(2.2rem, 3.8vw, 3.1rem);
    padding-left: 1.15rem;
    border-left-width: 4px;
}

.auth-wrapper {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 20px 56px;
    animation: fadeIn 0.5s var(--ease);
}

.auth-box {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background: rgba(9, 9, 12, 0.88);
    border: 1px solid var(--line);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 35px 80px rgba(0, 0, 0, 0.85);
    animation: scaleIn 0.6s var(--ease);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.04), transparent 30%);
    animation: spin 14s linear infinite;
    pointer-events: none;
}

.auth-box>* {
    position: relative;
    z-index: 1;
}

.auth-box h1 {
    font-size: 1.85rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 0.94rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.74rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.input-field {
    width: 100%;
    padding: 0.9rem 1rem;
    min-height: 46px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font);
    font-size: 0.98rem;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.input-field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.auth-box .btn {
    width: 100%;
    margin-top: 0.85rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-links a {
    color: #fff;
    font-weight: 600;
}

.alert {
    padding: 1rem 1.15rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    animation: slideDown 0.35s ease forwards;
}

.alert.error {
    background: rgba(239, 68, 68, 0.09);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.alert.info {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.alert.success {
    background: rgba(34, 197, 94, 0.09);
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
}

footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 2, 3, 0.94);
    padding: 4.5rem 0 2.5rem;
    margin-top: 2rem;
}

.f-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
}

.f-grid p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 1rem;
    max-width: 32ch;
}

.f-grid h4 {
    margin: 0 0 1.1rem;
    font-size: 0.76rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dim);
}

.f-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.f-grid a {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 0.25s, transform 0.25s;
    display: inline-block;
}

.f-grid a:hover {
    color: #fff;
    transform: translateX(4px);
}

.copy {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: all 0.8s var(--ease);
}

.reveal {
    transform: translateY(28px);
}

.reveal-left {
    transform: translateX(-28px);
}

.reveal-right {
    transform: translateX(28px);
}

.reveal-scale {
    transform: scale(0.95);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: none;
}

.dash-wrap {
    padding: 104px 0 72px;
    min-height: 100svh;
}

.dash-header {
    margin-bottom: 2.5rem;
    padding-left: 1.15rem;
    border-left: 2px solid #ffffff;
    animation: slideDown 0.5s var(--ease);
}

.dash-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.95rem);
    margin-bottom: 0.45rem;
    overflow-wrap: anywhere;
}

.dash-header p {
    color: var(--muted);
}

.section-sub {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 1.15rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    padding: 1.55rem;
    background: rgba(9, 9, 12, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 35px rgba(0, 0, 0, 0.6);
    transition: all 0.35s var(--ease);
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(15, 15, 19, 0.92);
}

.stat-card .label {
    font-size: 0.72rem;
    font-family: var(--mono);
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.stat-card .value {
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.stat-card .value.stat-money {
    font-family: var(--mono);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.tabs {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1.85rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 0 0 auto;
    padding: 0.65rem 1.2rem;
    min-height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
    background: transparent;
    font-family: var(--font);
    white-space: nowrap;
}

.tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: #020203;
    background: #ffffff;
    border-color: #ffffff;
}

.tab-content {
    animation: fadeIn 0.3s var(--ease);
}

.list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.list-item {
    padding: 1.3rem 1.5rem;
    background: rgba(9, 9, 12, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
    min-width: 0;
}

.list-item:hover {
    border-color: var(--line-strong);
    background: rgba(14, 14, 18, 0.92);
    transform: translateX(3px);
}

.item-main {
    min-width: 0;
    flex: 1;
}

.list-item h4 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

.meta-small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.ticket-card {
    flex-direction: column;
    align-items: stretch;
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.ticket-text {
    margin-top: 0.55rem;
    line-height: 1.6;
    color: var(--muted);
}

.admin-reply-box {
    margin-top: 1.1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--line);
    border-left: 3px solid #fff;
    width: 100%;
}

.admin-reply-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-reply-text {
    margin-top: 0.45rem;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.order-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.order-amount {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    flex-shrink: 0;
}

.badge.status-INQUIRY {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.1);
}

.badge.status-QUOTED {
    color: #fde047;
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.1);
}

.badge.status-PAID,
.badge.status-DELIVERED {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
}

.badge.status-IN_PROGRESS {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.35);
    background: rgba(249, 115, 22, 0.1);
}

.badge.status-CANCELLED,
.badge.status-CLOSED {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
}

.badge.status-OPEN {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.1);
}

.badge.status-PENDING {
    color: #fde047;
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.1);
}

.badge.status-REFUNDED {
    color: #a1a1aa;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.form-card {
    padding: 1.85rem;
    background: rgba(9, 9, 12, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.65);
    margin-bottom: 1.85rem;
}

.form-card textarea.input-field {
    min-height: 115px;
    resize: vertical;
    font-family: var(--font);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(9, 9, 12, 0.84);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

th,
td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

th {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cursor-glow {
    position: fixed;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.045), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .mobile-dropdown-wrap {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 6.5rem 0 3.5rem;
    }

    .hero .wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .console {
        padding: 1.5rem;
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .f1 {
        grid-column: span 2;
        min-height: 0;
    }

    .f2,
    .f3,
    .f4,
    .f5 {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .f-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .f-grid>div:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(var(--wrap), 100% - 1.25rem);
    }

    section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 5.75rem 0 2.75rem;
    }

    .hero .lead {
        margin: 1.25rem 0 1.5rem;
        font-size: 1rem;
    }

    .cta {
        flex-direction: column;
        gap: 0.65rem;
    }

    .cta .btn,
    .full-mobile {
        width: 100%;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .f1,
    .f2,
    .f3,
    .f4,
    .f5 {
        grid-column: span 1;
    }

    .card {
        padding: 1.4rem;
        border-radius: 14px;
    }

    .card:hover {
        transform: none;
    }

    .auth-wrapper {
        padding: 84px 14px 40px;
        min-height: auto;
    }

    .auth-box {
        padding: 1.65rem 1.2rem;
        border-radius: 16px;
    }

    .auth-box h1 {
        font-size: 1.65rem;
    }

    .dash-wrap {
        padding: 80px 0 48px;
    }

    .dash-header {
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 1.15rem 1.25rem;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .stat-card .label {
        margin-bottom: 0;
    }

    .tabs {
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }

    .tab {
        padding: 0.6rem 0.9rem;
        font-size: 0.88rem;
    }

    .form-card {
        padding: 1.2rem;
        border-radius: 14px;
        margin-bottom: 1.25rem;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.1rem;
        gap: 0.6rem;
        border-radius: 14px;
    }

    .order-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.35rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .f-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .f-grid>div:first-child {
        grid-column: span 1;
    }

    footer {
        padding: 3rem 0 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}