/* CaskVeil premium dark visual system */
:root {
    --lux-bg: #020307;
    --lux-bg-deep: #000106;
    --lux-panel: rgba(0, 0, 0, 0.96);
    --lux-panel-strong: rgba(0, 0, 0, 0.985);
    --lux-border: rgba(148, 163, 184, 0.16);
    --lux-border-bright: rgba(56, 189, 248, 0.34);
    --lux-cyan: #38bdf8;
    --lux-cyan-hot: #00d2ff;
    --lux-blue: #3d81e3;
    --lux-blue-deep: #0b2551;
    --lux-green: #00ff9d;
    --lux-red: #fb7185;
    --lux-text: #ffffff;
    --lux-text-soft: #dbeafe;
    --lux-muted: #94a3b8;
    --lux-muted-deep: #64748b;
    --lux-radius: 18px;
    --lux-radius-sm: 10px;
    --lux-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
    --lux-cyan-shadow: 0 28px 90px rgba(14, 165, 233, 0.12);
    --font-ui: "Didact Gothic", "Akt", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Didact Gothic", "Akt", Inter, system-ui, sans-serif;
}

html,
body {
    font-family: var(--font-ui);
    font-optical-sizing: auto;
    font-style: normal;
}

html {
    background: var(--lux-bg);
}

body {
    min-height: 100vh;
    color: var(--lux-muted);
    background: var(--lux-bg) !important;
    font-weight: 400;
    letter-spacing: 0;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

::selection {
    background: rgba(61, 129, 227, 0.32);
    color: #ffffff;
}

.bg-cinematic {
    background:
        radial-gradient(900px 520px at 50% 8%, rgba(0, 210, 255, 0.09), transparent 64%),
        radial-gradient(760px 480px at 12% 22%, rgba(61, 129, 227, 0.055), transparent 66%),
        radial-gradient(700px 420px at 84% 26%, rgba(0, 255, 157, 0.022), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 18%),
        linear-gradient(135deg, #000000 0%, #020307 44%, #000106 72%, #000000 100%);
}

.bg-grid-pattern {
    opacity: 0.22;
    background-size: 84px 84px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 22%, black 0%, transparent 68%);
}

.noise-overlay {
    opacity: 0.17;
    mix-blend-mode: soft-light;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px),
        radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px);
    background-size: 5px 5px, 7px 7px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--lux-text);
    letter-spacing: 0;
}

button,
input,
textarea,
select {
    font-family: var(--font-ui);
    font-optical-sizing: auto;
    font-style: normal;
}

p {
    color: var(--lux-muted);
}

a {
    text-underline-offset: 4px;
}

.tracking-tight,
.tracking-wider,
.tracking-widest {
    letter-spacing: 0 !important;
}

.text-brand-cyan {
    color: var(--lux-cyan) !important;
}

.text-brand-green {
    color: var(--lux-green) !important;
}

.border-glass {
    border-color: var(--lux-border) !important;
}

.bg-brand-dark,
.bg-brand-darker,
.bg-brand-darkest {
    background-color: rgba(0, 0, 0, 0.96) !important;
}

.bg-brand-cyan\/5,
.bg-brand-cyan\/10 {
    background-color: rgba(56, 189, 248, 0.075) !important;
}

.border-brand-cyan\/20,
.border-brand-cyan\/30,
.border-brand-cyan\/50 {
    border-color: rgba(56, 189, 248, 0.28) !important;
}

.brand-text {
    letter-spacing: 0;
}

.nav-lux {
    background: transparent !important;
    border: 0 !important;
    outline: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.nav-right-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.nav-social-link svg {
    width: 1.28rem;
    height: 1.28rem;
    fill: currentColor;
}

.nav-social-link:hover {
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.78);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
}

.brand-logo,
.footer-logo {
    width: 2.375rem;
    height: 2.375rem;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    filter: none;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.brand-lockup:hover .brand-logo {
    filter: none;
}

.brand-copy {
    display: block;
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 780;
    line-height: 1.05;
}

.brand-subtitle {
    display: block;
    margin-top: 0.12rem;
    color: rgba(219, 234, 254, 0.48);
    font-size: 0.68rem;
    line-height: 1.1;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2.15rem;
}

.footer-logo {
    width: 2rem;
    height: 2rem;
    display: block;
    object-position: center;
    transform: translateY(-0.02rem);
}

.footer-brand .brand-name {
    font-size: 1.08rem;
    font-weight: 760;
    line-height: 1;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-ui);
    min-height: 2.45rem;
    padding: 0 0.9rem;
    color: rgba(226, 232, 240, 0.66);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.32rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lux-cyan), transparent);
    opacity: 0;
    transform: scaleX(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 0.78;
    transform: scaleX(1);
}

.nav-menu-button {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--lux-text-soft);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav-menu-button:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.08);
}

.nav-mobile {
    background: transparent !important;
    border: 0 !important;
    outline: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-mobile-link {
    display: block;
    padding: 0.82rem 0.9rem;
    color: rgba(226, 232, 240, 0.74);
    border-radius: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-mobile-link:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.08);
}

@media (max-width: 767.98px) {
    body.mobile-menu-open .nav-lux {
        background: rgba(2, 6, 23, 0.82) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
        backdrop-filter: blur(18px) saturate(122%);
        -webkit-backdrop-filter: blur(18px) saturate(122%);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    }

    .nav-mobile {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.88) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
        backdrop-filter: blur(20px) saturate(125%);
        -webkit-backdrop-filter: blur(20px) saturate(125%);
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
    }
}

.footer-lux {
    margin-top: 1.25rem;
    background:
        radial-gradient(520px 180px at 50% 0%, rgba(56, 189, 248, 0.08), transparent 72%),
        rgba(0, 0, 0, 0.56);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.footer-copyright {
    color: rgba(148, 163, 184, 0.68);
    font-size: 0.82rem;
}

.footer-link {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: var(--lux-cyan);
}

@media (max-width: 640px) {
    .nav-right-actions {
        gap: 0.55rem;
    }

    .nav-social-link {
        width: 2.25rem;
        height: 2.25rem;
    }

    .nav-social-link svg {
        width: 1.18rem;
        height: 1.18rem;
    }

    .brand-logo {
        width: 2rem;
        height: 2rem;
    }

    .footer-brand {
        gap: 0.38rem;
        min-height: 2rem;
    }

    .footer-logo {
        width: 1.85rem;
        height: 1.85rem;
    }

    .footer-brand .brand-name {
        font-size: 1rem;
    }

    .brand-subtitle {
        display: none;
    }
}

.page-shell {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
    padding-block: clamp(5rem, 8vw, 8rem) clamp(4rem, 7vw, 7rem);
}

.landing-page-shell {
    --index-section-gap: clamp(2.75rem, 5vw, 4.25rem);
    padding-top: clamp(1.75rem, 3vw, 3rem);
    padding-bottom: 1.75rem !important;
}

.landing-page-shell .landing-security-strip {
    margin-top: var(--index-section-gap) !important;
    margin-bottom: var(--index-section-gap) !important;
}

.landing-page-shell .how-it-works-section {
    margin-bottom: 1.35rem !important;
    padding-top: clamp(3rem, 5vw, 4.25rem) !important;
    padding-bottom: clamp(3rem, 5vw, 4.25rem) !important;
}

.landing-hero {
    isolation: isolate;
    padding-block: clamp(2.25rem, 4vw, 3.75rem) var(--index-section-gap);
}

.hero-cyan-orbit {
    position: absolute;
    left: 50%;
    top: 4%;
    width: min(72rem, 100%);
    height: 27rem;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 32%, rgba(164, 244, 253, 0.10), transparent 32%),
        radial-gradient(ellipse at 50% 58%, rgba(0, 210, 255, 0.085), transparent 60%);
    filter: blur(42px);
    opacity: 0.68;
}

.hero-title {
    font-family: var(--font-display);
    line-height: 0.96;
    font-weight: 820;
}

.landing-hero-title {
    max-width: 63rem;
    margin-inline: auto;
    font-size: clamp(3.35rem, 6.5vw, 6.8rem);
    text-wrap: balance;
}

.hero-subtitle {
    color: rgba(226, 232, 240, 0.66);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.trust-line,
.card-note {
    color: rgba(148, 163, 184, 0.72);
    font-size: 0.95rem;
}

.gradient-text {
    display: inline-block;
    background-image: linear-gradient(to right, #091020 0%, #0b2551 12.5%, #a4f4fd 32.5%, #00d2ff 50%, #3d81e3 67.5%, #091020 87.5%, #091020 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.18));
}

.animate-shiny {
    animation: shiny 6s linear infinite;
}

@keyframes shiny {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.badge,
.dark-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border-radius: 999px;
    color: rgba(219, 234, 254, 0.86);
    font-size: 0.76rem;
    font-weight: 720;
    letter-spacing: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.liquid-glass {
    background:
        linear-gradient(180deg, rgba(0, 2, 7, 0.96), rgba(0, 0, 0, 0.985)),
        #000000;
    background-blend-mode: luminosity;
    backdrop-filter: blur(18px) saturate(122%);
    -webkit-backdrop-filter: blur(18px) saturate(122%);
    border: none;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.035),
        var(--lux-shadow);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(164, 244, 253, 0.20) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(61, 129, 227, 0.22) 80%,
        rgba(255, 255, 255, 0.36) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.liquid-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px circle at 50% 0%, rgba(56, 189, 248, 0.045), transparent 72%);
    opacity: 0.46;
}

.liquid-glass > * {
    position: relative;
    z-index: 1;
}

.glass-card,
.lux-card,
.dashboard-card,
.repo-style-card,
.payload-card,
.payload-status-card,
.payload-download-card {
    background:
        linear-gradient(180deg, rgba(0, 2, 7, 0.96), rgba(0, 0, 0, 0.985)),
        #000000;
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-radius);
    box-shadow: var(--lux-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.glass-card:hover,
.lux-card-hover:hover,
.repo-style-card:hover,
.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.42) !important;
    box-shadow: var(--lux-cyan-shadow), 0 24px 90px rgba(0, 0, 0, 0.55);
}

.lux-static:hover,
nav.glass-card:hover,
.payload-terminal:hover,
.wizard-step .glass-card:hover {
    transform: none;
}

.lux-glow {
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 28px 90px rgba(14, 165, 233, 0.11);
}

.action-card-grid {
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.25rem) !important;
}

.landing-action-card {
    min-height: 27rem;
    display: flex;
    flex-direction: column;
    padding: clamp(1.65rem, 3vw, 2.25rem);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), box-shadow 0.35s ease;
}

.landing-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 120px rgba(0, 210, 255, 0.14), 0 28px 90px rgba(0, 0, 0, 0.62);
}

.landing-action-icon {
    width: 4.35rem;
    height: 4.35rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a4f4fd;
    margin-bottom: 1.5rem;
    background:
        radial-gradient(circle at 35% 20%, rgba(164, 244, 253, 0.13), transparent 42%),
        linear-gradient(135deg, rgba(4, 18, 32, 0.94), rgba(0, 2, 8, 0.96));
    border: 1px solid rgba(164, 244, 253, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 60px rgba(14, 165, 233, 0.14);
}

.security-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1.4px solid rgba(255, 255, 255, 0.34);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.10),
        0 28px 90px rgba(0, 0, 0, 0.62);
}

.landing-security-item {
    min-height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: rgba(226, 232, 240, 0.86);
    font-weight: 700;
    background: rgba(0, 2, 8, 0.94);
}

.section-dark {
    position: relative;
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(540px 220px at 50% 0%, rgba(56, 189, 248, 0.028), transparent 78%),
        rgba(0, 0, 0, 0.94);
}

.step-card {
    min-height: 12.5rem;
}

.step-number {
    color: var(--lux-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.btn-primary,
.dark-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    gap: 0.5rem;
    color: #06111f;
    font-weight: 760;
    padding: 0.78rem 1.45rem;
    min-height: 2.85rem;
    line-height: 1.15;
    border-radius: 14px;
    border: 1px solid rgba(164, 244, 253, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(164, 244, 253, 0.82)),
        #ffffff;
    box-shadow: 0 18px 58px rgba(0, 210, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover,
.dark-button-primary:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, #ffffff, rgba(190, 245, 255, 0.9)),
        #ffffff;
    box-shadow: 0 22px 70px rgba(0, 210, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.btn-secondary,
.btn-outline,
.dark-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    gap: 0.5rem;
    color: rgba(226, 232, 240, 0.90);
    font-weight: 720;
    padding: 0.78rem 1.45rem;
    min-height: 2.85rem;
    line-height: 1.15;
    border-radius: 14px;
    border: 1px solid rgba(164, 244, 253, 0.20);
    background: rgba(0, 2, 8, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-secondary:hover,
.btn-outline:hover,
.dark-button-secondary:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.44);
    background: rgba(56, 189, 248, 0.075);
}

.unlock-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: stretch;
}

.unlock-actions .btn-primary,
.unlock-actions .btn-outline {
    min-height: 3rem;
    padding: 0.78rem 1.25rem !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
    white-space: nowrap;
}

.unlock-actions .btn-primary {
    width: 100%;
}

.unlock-actions .btn-outline {
    min-width: 8.75rem;
}

:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.82);
    outline-offset: 3px;
    border-radius: 12px;
}

.dark-input,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
    background: rgba(0, 0, 0, 0.76) !important;
    border: 1px solid var(--lux-border) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(100, 116, 139, 0.92) !important;
}

textarea {
    resize: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus,
select:focus,
.dark-input:focus {
    outline: none !important;
    border-color: rgba(56, 189, 248, 0.70) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    background: rgba(0, 0, 0, 0.88) !important;
}

input.field-invalid,
textarea.field-invalid,
select.field-invalid {
    border-color: rgba(251, 113, 133, 0.82) !important;
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

input.field-valid,
textarea.field-valid,
select.field-valid {
    border-color: rgba(0, 255, 157, 0.34) !important;
}

.validation-message {
    margin-top: 0.45rem;
    color: var(--lux-red);
    font-size: 0.78rem;
    line-height: 1.35;
}

.validation-message.is-success {
    color: var(--lux-green);
}

.validation-summary {
    margin-top: 1rem;
    border: 1px solid rgba(251, 113, 133, 0.22);
    border-radius: 14px;
    background: rgba(251, 113, 133, 0.08);
    color: #fecdd3;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
}

.vault-upgrade-notice {
    border-color: rgba(0, 255, 157, 0.24);
    background: rgba(0, 255, 157, 0.07);
    color: rgba(209, 250, 229, 0.96);
}

.biometric-status-note {
    display: inline-flex;
    max-width: 100%;
    border: 1px solid rgba(56, 189, 248, 0.20);
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.06);
    color: rgba(219, 234, 254, 0.92);
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.biometric-status-note.is-warning {
    border-color: rgba(251, 191, 36, 0.26);
    background: rgba(251, 191, 36, 0.08);
    color: rgba(254, 243, 199, 0.96);
}

.biometric-status-note.is-success {
    border-color: rgba(0, 255, 157, 0.22);
    background: rgba(0, 255, 157, 0.07);
    color: rgba(209, 250, 229, 0.96);
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.8rem;
    margin-top: 0.8rem;
    color: var(--lux-muted-deep);
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .password-rules {
        grid-template-columns: 1fr;
    }
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.password-rule::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.68);
    flex: 0 0 auto;
}

.password-rule.is-met {
    color: rgba(209, 250, 229, 0.92);
}

.password-rule.is-met::before {
    background: var(--lux-green);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.28);
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none !important;
    box-shadow: none;
}

input[type="checkbox"] {
    border-color: var(--lux-border);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #05070d;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.46);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.38s ease-out forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-tab {
    background: rgba(0, 0, 0, 0.92);
    transition: background 0.25s ease, color 0.25s ease;
}

.wizard-tab.active,
.wizard-tab:hover {
    background: rgba(0, 4, 10, 0.94);
}

.payload-terminal {
    background: var(--lux-panel-strong);
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-radius);
    overflow: hidden;
    box-shadow: var(--lux-shadow);
}

.payload-topbar {
    background: rgba(0, 0, 0, 0.82);
    border-bottom: 1px solid var(--lux-border);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    position: relative;
}

.payload-dots {
    display: flex;
    gap: 0.5rem;
}

.payload-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background-color: rgba(100, 116, 139, 0.58);
}

.encryption-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--lux-text-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.7rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(0, 2, 8, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.encryption-badge .lock-icon {
    color: var(--lux-green);
}

.payload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 1.35rem;
}

.payload-card {
    padding: 1.5rem;
}

.payload-card-title {
    color: var(--lux-text-soft);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
}

.payload-card-title svg {
    color: var(--lux-cyan);
}

.payload-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.payload-skeleton-line {
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 125, 170, 0.16), rgba(56, 189, 248, 0.14), rgba(96, 125, 170, 0.11));
}

.payload-status-card {
    padding: 1rem;
}

.payload-status-label {
    color: var(--lux-muted-deep);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.payload-status-value {
    color: var(--lux-text-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
}

.payload-status-encrypted {
    color: var(--lux-green);
    font-weight: 700;
}

.payload-status-waiting {
    color: var(--lux-muted);
}

.payload-status-unlocked {
    color: var(--lux-cyan);
    font-weight: 700;
}

.payload-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 2rem 1rem;
    text-align: center;
}

.payload-download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.42) !important;
    box-shadow: var(--lux-cyan-shadow);
}

.payload-download-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 35% 20%, rgba(164, 244, 253, 0.13), transparent 42%),
        linear-gradient(135deg, rgba(4, 18, 32, 0.96), rgba(0, 2, 8, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
    border: 1px solid rgba(164, 244, 253, 0.20);
    box-shadow: 0 18px 48px rgba(14, 165, 233, 0.12);
}

.payload-filename {
    color: var(--lux-text-soft);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.payload-ready-text {
    color: var(--lux-muted);
    font-size: 0.78rem;
}

.drop-zone {
    border: 1px dashed rgba(164, 244, 253, 0.30) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.drop-zone.dragover {
    border-color: rgba(56, 189, 248, 0.76) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.16);
}

.drop-zone.field-invalid {
    border-color: rgba(251, 113, 133, 0.72) !important;
    background: rgba(251, 113, 133, 0.07) !important;
}

.vault-editor-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vault-editor-header,
.vault-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--lux-radius);
    background:
        radial-gradient(420px 160px at 50% 0%, rgba(56, 189, 248, 0.03), transparent 76%),
        rgba(0, 0, 0, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--lux-cyan-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vault-editor-title {
    color: var(--lux-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
}

.vault-editor-label,
.vault-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(56, 189, 248, 0.06);
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
}

.vault-status-secure,
.vault-status-saved {
    color: var(--lux-green);
    border-color: rgba(0, 255, 157, 0.22);
    background: rgba(0, 255, 157, 0.07);
}

.vault-editor-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vault-create-security-panel {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 1.35fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.20);
    border-radius: var(--lux-radius);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.vault-create-security-panel .biometric-status-note {
    display: flex;
    width: 100%;
}

.vault-create-security-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vault-create-security-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vault-editor-grid {
    display: grid;
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.vault-section-sidebar,
.vault-editor-card {
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-radius);
    background:
        linear-gradient(180deg, rgba(0, 2, 7, 0.96), rgba(0, 0, 0, 0.985)),
        #000000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vault-documents-card {
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-radius);
    background:
        linear-gradient(180deg, rgba(0, 2, 7, 0.96), rgba(0, 0, 0, 0.985)),
        #000000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    padding: 1.25rem;
}

.vault-section-sidebar {
    padding: 1rem;
    min-height: 34rem;
}

.vault-sidebar-head,
.vault-card-toolbar,
.vault-editor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vault-sidebar-head {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--lux-border);
}

.vault-icon-button {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.06);
    color: var(--lux-cyan);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.vault-icon-button:hover {
    border-color: rgba(56, 189, 248, 0.48);
    background: rgba(56, 189, 248, 0.10);
}

.vault-section-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vault-section-tab {
    width: 100%;
    min-height: 3.75rem;
    padding: 0.75rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.34);
    color: var(--lux-muted);
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vault-section-tab span,
.vault-section-tab small {
    display: block;
}

.vault-section-tab span {
    color: var(--lux-text-soft);
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vault-section-tab small {
    margin-top: 0.2rem;
    color: var(--lux-muted-deep);
    font-size: 0.72rem;
}

.vault-section-tab:hover,
.vault-section-tab.active {
    border-color: rgba(56, 189, 248, 0.32);
    background: rgba(56, 189, 248, 0.08);
}

.vault-empty-state {
    padding: 1.25rem;
    border: 1px dashed rgba(56, 189, 248, 0.28);
    border-radius: 14px;
    text-align: center;
}

.vault-empty-state h3 {
    color: var(--lux-text);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.vault-empty-state p,
.vault-editor-footer p {
    color: var(--lux-muted);
    font-size: 0.88rem;
}

.vault-document-progress {
    margin-bottom: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.20);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.06);
    color: rgba(219, 234, 254, 0.92);
    padding: 0.75rem 0.9rem;
    font-size: 0.84rem;
}

.vault-document-progress.is-success {
    border-color: rgba(0, 255, 157, 0.22);
    background: rgba(0, 255, 157, 0.07);
    color: rgba(209, 250, 229, 0.96);
}

.vault-document-progress.is-error {
    border-color: rgba(251, 113, 133, 0.24);
    background: rgba(251, 113, 133, 0.08);
    color: #fecdd3;
}

.vault-document-list {
    display: grid;
    gap: 0.75rem;
}

.vault-document-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.36);
    padding: 1rem;
}

.vault-document-main {
    min-width: 0;
}

.vault-document-name {
    color: var(--lux-text-soft);
    font-weight: 800;
    word-break: break-word;
}

.vault-document-meta {
    margin-top: 0.25rem;
    color: var(--lux-muted);
    font-size: 0.82rem;
}

.vault-document-integrity {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.vault-document-integrity.verified {
    color: var(--lux-green);
}

.vault-document-integrity.warning {
    color: var(--lux-red);
}

.vault-document-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vault-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vault-confirm-dialog {
    width: min(100%, 28rem);
    border: 1px solid rgba(251, 113, 133, 0.26);
    border-radius: var(--lux-radius);
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--lux-shadow);
    padding: 1.25rem;
}

.vault-confirm-dialog h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.vault-confirm-dialog p {
    color: var(--lux-muted);
    font-size: 0.92rem;
}

.vault-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.vault-editor-card {
    padding: 1.25rem;
    min-height: 34rem;
}

.vault-card-toolbar {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--lux-border);
}

.vault-field-label {
    display: block;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.vault-input,
.vault-textarea {
    width: 100%;
}

.vault-input {
    min-height: 2.85rem;
    padding: 0.75rem 0.9rem;
}

.vault-textarea {
    min-height: 22rem;
    padding: 1rem;
    resize: none;
    line-height: 1.65;
}

.vault-editor-meta {
    margin-top: 1rem;
    color: var(--lux-muted-deep);
    font-size: 0.78rem;
}

#dashboard-container .glass-card pre {
    color: rgba(226, 232, 240, 0.84);
}

@media (min-width: 768px) {
    .payload-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 767px) {
    .page-shell {
        width: min(100% - 1rem, 80rem);
        padding-block: 4.25rem 4.5rem;
    }

    .landing-page-shell {
        --index-section-gap: 2rem;
        padding-top: 1.2rem;
        padding-bottom: 1.25rem !important;
    }

    .landing-page-shell .landing-security-strip {
        margin-top: var(--index-section-gap) !important;
        margin-bottom: var(--index-section-gap) !important;
    }

    .landing-page-shell .how-it-works-section {
        padding-top: 2.35rem !important;
        padding-bottom: 2.35rem !important;
    }

    .landing-hero {
        padding-block: 1.6rem var(--index-section-gap);
    }

    .landing-hero-title {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
        line-height: 1.02;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .landing-action-card {
        min-height: auto;
        border-radius: 20px;
        padding: 1.35rem 1.2rem 1.45rem;
        gap: 0.85rem;
    }

    .landing-action-card .flex-1 {
        flex: 0 0 auto;
    }

    .landing-action-card p {
        margin-bottom: 0.8rem !important;
    }

    .landing-action-card .card-note {
        margin-bottom: 0.25rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .dark-button-primary,
    .dark-button-secondary {
        min-height: 2.85rem;
        padding: 0.68rem 1.15rem !important;
        font-size: 0.95rem !important;
        line-height: 1.15;
        border-radius: 14px;
    }

    .unlock-actions {
        grid-template-columns: 1fr;
    }

    .unlock-actions .btn-primary,
    .unlock-actions .btn-outline {
        width: 100%;
        min-width: 0;
        min-height: 2.85rem;
    }

    .landing-action-card .btn-primary,
    .landing-action-card .btn-outline {
        width: min(100%, 20rem) !important;
        align-self: center;
        min-height: 3rem;
    }

    .landing-action-card .landing-action-icon {
        width: 3.9rem;
        height: 3.9rem;
        margin-bottom: 1.2rem;
    }

    .security-strip {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .payload-topbar {
        justify-content: center;
    }

    .encryption-badge {
        position: static;
        transform: none;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }

    .payload-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .payload-download-card {
        min-height: 12rem;
    }

    .vault-editor-header,
    .vault-editor-footer,
    .vault-card-toolbar,
    .vault-editor-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .vault-editor-actions {
        width: 100%;
        flex-direction: column;
    }

    .vault-editor-actions > * {
        width: min(100%, 20rem);
        align-self: center;
        justify-content: center;
    }

    .vault-create-security-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .vault-create-security-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .vault-create-security-actions > * {
        width: 100%;
        justify-content: center;
    }

    .vault-editor-grid {
        grid-template-columns: 1fr;
    }

    .vault-section-sidebar {
        min-height: auto;
    }

    .vault-section-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
    }

    .vault-section-tab {
        min-width: 12rem;
        scroll-snap-align: start;
    }

    .vault-editor-card {
        min-height: auto;
    }

    .vault-textarea {
        min-height: 18rem;
    }

    .vault-document-card {
        flex-direction: column;
    }

    .vault-document-actions {
        justify-content: flex-start;
    }
}

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