/* --- STYLE PARTNER DIGITAL --- */
:root {
    --basalt-deep: #0A0A0B;
    --basalt-core: #141417;
    --basalt-plate: #1C1C21;
    --magma-glow: #FF4D00;
    --magma-subtle: #852E00;
    --silver-structure: #E4E4E7;
    --tectonic-seam: rgba(255, 255, 255, 0.04);
    --text-muted: #8e9196;
    --transition-fluid: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --accent-cyan: #06b6d4;
    --success: #10B981;
    --warning: #F59E0B;

    /* Spacing scale (use across pages for consistent rhythm) */
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 22px;
    --space-6: 28px;
}

body[data-theme="light"] {
    --basalt-deep: #f5f7fb;
    --basalt-core: #ffffff;
    --basalt-plate: #eef2f8;
    --silver-structure: #121212;
    --tectonic-seam: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] {
    color: #111827;
}

body[data-theme="light"] .hero p,
body[data-theme="light"] .subtitle,
body[data-theme="light"] .stat-key,
body[data-theme="light"] .settings-label,
body[data-theme="light"] .search-rules,
body[data-theme="light"] .hero-pre,
body[data-theme="light"] .search-type-label,
body[data-theme="light"] .device-info-row span,
body[data-theme="light"] .settings-help {
    color: #374151 !important;
}

body[data-theme="light"] .workflow-step-desc,
body[data-theme="light"] .vault-quote,
body[data-theme="light"] .profile-meta,
body[data-theme="light"] .web-snippet {
    color: #1f2937 !important;
}

body[data-theme="light"] .search-input::placeholder {
    color: #6b7280;
}

body[data-theme="light"] .search-input,
body[data-theme="light"] .search-type-select,
body[data-theme="light"] .settings-input {
    color: #111827;
    background: #fff1de;
    border-color: rgba(17, 24, 39, 0.18);
}

body[data-theme="light"] .search-input:focus,
body[data-theme="light"] .search-type-select:focus,
body[data-theme="light"] .settings-input:focus {
    border-color: rgba(255, 77, 0, 0.55);
}

body[data-theme="light"] select.settings-input option,
body[data-theme="light"] select.search-type-select option {
    color: #111827;
    background: #ffffff;
}

body[data-theme="light"] .search-monolith {
    background: linear-gradient(180deg, rgba(255, 140, 66, 0.28), #ffffff);
    border-color: rgba(255, 77, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 140, 66, 0.38), 0 12px 28px rgba(17, 24, 39, 0.14);
}

body[data-theme="light"] .search-monolith::before {
    color: #9a3412;
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.45);
}

body[data-theme="light"] .search-monolith-head {
    border-bottom-color: rgba(17, 24, 39, 0.11);
    background: rgba(255, 255, 255, 0.74);
}

body[data-theme="light"] .search-monolith-head .search-type-label {
    color: #9a3412 !important;
}

body[data-theme="light"] .search-monolith-head .search-type-select {
    background: #ffffff;
    border-color: rgba(255, 77, 0, 0.35);
    color: #111827;
}

body[data-theme="light"] .btn-outline {
    background: #eef2f8;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.18);
}

body[data-theme="light"] .btn-outline:active,
body[data-theme="light"] .btn-outline:focus-visible {
    background: #e5eaf3;
}

body[data-theme="light"] .stat-val,
body[data-theme="light"] .profile-name,
body[data-theme="light"] .search-profile-name,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .page-title,
body[data-theme="light"] .detail-row,
body[data-theme="light"] .workflow-step-title,
body[data-theme="light"] .logo-text {
    color: #111827 !important;
}

body[data-theme="light"] .result-group-title,
body[data-theme="light"] .search-profile-key,
body[data-theme="light"] .search-profile-sub,
body[data-theme="light"] .profile-meta,
body[data-theme="light"] .search-profile-row {
    color: #4b5563 !important;
}

body[data-theme="light"] .status-copyright {
    color: #0f766e;
}

body[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .nav-item {
    opacity: 0.75;
    color: #374151;
}

body[data-theme="light"] .nav-item.active {
    opacity: 1;
    color: var(--magma-glow);
}

body[data-theme="light"] .nav-label {
    color: inherit;
}

body[data-theme="light"] .status-bar {
    background: transparent;
    border-top: none;
    color: #4b5563;
}

body[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--basalt-deep);
    color: var(--silver-structure);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    padding-bottom: 140px;
}

/* Typography rhythm */
h1, h2, h3, h4, h5, h6,
.page-title {
    line-height: 1.2;
}

/* Accessible focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(255, 77, 0, 0.65);
    outline-offset: 2px;
}

/* Inline SVG icons */
.pd-ico {
    display: inline-block;
    width: 22px;
    height: 22px;
    vertical-align: -0.18em;
    margin-right: 10px;
    color: var(--magma-glow);
    flex: 0 0 auto;
}

.pd-ico--menu {
    margin-right: 0;
    color: var(--magma-glow);
    width: 22px;
    height: 22px;
}

.pd-ico--inline {
    width: 20px;
    height: 20px;
    vertical-align: -0.18em;
    margin-right: 8px;
}

.register-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--tectonic-seam);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.9rem;
}

.register-hero-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 77, 0, 0.28);
    background: rgba(255, 77, 0, 0.08);
    color: var(--magma-glow);
    flex: 0 0 auto;
}

.register-hero-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
}

.register-hero-sub {
    margin-top: 0.2rem;
    color: #8e9196;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Global 480px frame (mobile-only layout on all screens) */
header,
main {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

body.results-open {
    overflow: hidden;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--tectonic-seam) 1px, transparent 1px),
        linear-gradient(90deg, var(--tectonic-seam) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tectonic-seam);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    text-decoration: none;
}

.logo-full {
    width: 190px;
    max-width: 48vw;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.monolith-icon {
    width: 32px;
    height: 32px;
    background: var(--magma-glow);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.btn-auth {
    background: transparent;
    border: 1px solid var(--silver-structure);
    color: var(--silver-structure);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fluid);
    text-decoration: none;
    display: inline-block;
}

body[data-theme="light"] .btn-auth {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.18);
    color: #111827;
}

.btn-auth:active,
.btn-auth:focus-visible {
    background: var(--silver-structure);
    color: var(--basalt-deep);
}

/* Hamburger */
.btn-menu {
    width: 42px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    color: var(--silver-structure);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fluid);
}

body[data-theme="light"] .btn-menu {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.12);
    color: #111827;
}

.btn-menu:active,
.btn-menu:focus-visible {
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.45);
    border-color: rgba(255, 77, 0, 0.45);
}

.btn-menu-lines {
    width: 18px;
    height: 12px;
    position: relative;
    display: block;
}

.btn-menu-lines::before,
.btn-menu-lines::after,
.btn-menu-lines {
    background: transparent;
}

.btn-menu-lines::before,
.btn-menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

.btn-menu-lines::before { top: 0; }
.btn-menu-lines::after { bottom: 0; }

/* middle line */
.btn-menu-lines {
    background: currentColor;
    border-radius: 2px;
}

.btn-menu-lines {
    height: 2px;
}

.btn-menu-lines::before,
.btn-menu-lines::after {
    transform: translateY(0);
}

.btn-menu-lines {
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    width: 18px;
}

/* Bottom sheet menu */
body.pd-sheet-open {
    overflow: hidden;
}

.pd-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
}

.pd-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 110%);
    width: min(calc(100% - 24px), 480px);
    max-height: calc(100dvh - 12px);
    border: 1px solid var(--tectonic-seam);
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(28, 28, 33, 0.98), rgba(20, 20, 23, 0.98));
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    z-index: 2001;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.pd-sheet-open .pd-sheet {
    transform: translate(-50%, 0);
}

.pd-sheet-handle {
    width: 52px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    margin: 6px auto 12px;
}

.pd-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 10px;
    border-bottom: 1px solid var(--tectonic-seam);
    margin-bottom: 10px;
}

.pd-sheet-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8e9196;
}

.pd-sheet-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    color: var(--silver-structure);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pd-sheet-close svg {
    width: 20px;
    height: 20px;
}

.pd-sheet-nav {
    display: grid;
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.pd-sheet-link {
    text-decoration: none;
    color: var(--silver-structure);
    padding: 14px 14px;
    border: 1px solid var(--tectonic-seam);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--transition-fluid);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-sheet-link:active,
.pd-sheet-link:focus-visible {
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.3);
}

body[data-theme="light"] .pd-sheet-overlay {
    background: rgba(17, 24, 39, 0.38);
}

body[data-theme="light"] .pd-sheet {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 -30px 60px rgba(17, 24, 39, 0.18);
}

body[data-theme="light"] .pd-sheet-head {
    border-bottom-color: rgba(17, 24, 39, 0.11);
}

body[data-theme="light"] .pd-sheet-link {
    background: #eef2f8;
    border-color: rgba(17, 24, 39, 0.12);
    color: #111827;
}

.pd-sheet-link.is-active {
    border-color: rgba(255, 77, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.22);
}

body[data-theme="light"] .pd-sheet-close {
    background: #eef2f8;
    border-color: rgba(17, 24, 39, 0.12);
    color: #111827;
}

body[data-theme="light"] .form-control {
    background: #fff1de;
    border-color: rgba(17, 24, 39, 0.18);
    color: #111827;
}

body[data-theme="light"] .kontak-root {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .cta-btn {
    background: #eef2f8;
    border-color: rgba(17, 24, 39, 0.12);
    color: #111827;
}

/* Harga (Pricing) */
.section-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.6rem;
}

.section-lead {
    text-align: center;
    color: #8e9196;
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
}

.pricing-card {
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1.05rem;
    margin-top: 1rem;
}

.pricing-card.featured {
    border-color: rgba(255, 77, 0, 0.5);
    box-shadow: 0 18px 44px rgba(255, 77, 0, 0.10);
}

.pricing-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--tectonic-seam);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--magma-glow);
    margin-bottom: 0.65rem;
}

.pricing-name {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--magma-glow);
    margin: 0.35rem 0 0.65rem;
}

.pricing-desc {
    color: #8e9196;
    margin: 0 0 0.9rem;
    font-size: 0.88rem;
}

.pricing-features {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.55rem;
}

.pricing-features li {
    position: relative;
    padding-left: 1.2rem;
    color: #d4d4d8;
    font-size: 0.88rem;
    line-height: 1.45;
}

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--magma-glow);
    opacity: 0.75;
}

.pricing-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.pricing-cta-muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--silver-structure);
    border-color: var(--tectonic-seam);
}

.pricing-note {
    text-align: center;
    color: #8e9196;
    margin-top: 1rem;
    font-size: 0.85rem;
}

body[data-theme="light"] .section-lead,
body[data-theme="light"] .pricing-desc,
body[data-theme="light"] .pricing-note {
    color: #374151 !important;
}

body[data-theme="light"] .pricing-card {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .pricing-features li {
    color: #1f2937;
}

/* Search */
.search-sector {
    padding: 2rem 1.25rem;
}

.search-type-wrap {
    margin-bottom: 0.75rem;
}

.search-type-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8e9196;
    margin-bottom: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
}

.search-type-select {
    width: 100%;
    background: var(--basalt-plate);
    color: var(--silver-structure);
    border: 1px solid var(--tectonic-seam);
    padding: 0.85rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    outline: none;
}

.search-rules {
    text-align: center;
    font-size: 0.72rem;
    color: #8e9196;
    margin-top: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.search-monolith {
    background: linear-gradient(180deg, rgba(255, 140, 66, 0.2), rgba(34, 20, 14, 0.96));
    border: 1px solid rgba(255, 77, 0, 0.45);
    position: relative;
    padding: 5px;
    box-shadow: 0 0 0 1px rgba(255, 140, 66, 0.35), 0 18px 36px rgba(0, 0, 0, 0.42);
}

.search-monolith::before {
    content: "Pencarian Aktif";
    position: absolute;
    top: -10px;
    left: 10px;
    padding: 1px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffd8c7;
    background: #35140a;
    border: 1px solid rgba(255, 77, 0, 0.35);
}

.page-login .search-monolith::before {
    content: "Masuk dengan akun terdaftar";
}

.search-monolith:focus-within {
    border-color: rgba(255, 77, 0, 0.85);
    box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.55), 0 0 32px rgba(255, 140, 66, 0.45);
}

.search-monolith-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.72rem 0.72rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.16);
}

.search-monolith-head .search-type-label {
    margin-bottom: 0;
    font-size: 0.66rem;
    color: #ffd8c7;
}

.search-monolith-head .search-type-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 140, 66, 0.42);
    color: #fff7ed;
    padding: 0.66rem 0.78rem;
}

.search-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: stretch;
    padding: 0.72rem;
}

.search-action-group {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.4rem;
    align-items: stretch;
}

.search-action-group .search-type-select {
    width: auto;
    min-width: 106px;
    padding: 0.72rem 0.6rem;
    margin: 0;
    font-size: 0.78rem;
}

.search-input {
    width: 100%;
    background: #5a2b17;
    border: none;
    padding: 1rem 0.9rem;
    color: #fff7ed;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: #fed7aa;
}

.search-trigger {
    position: static;
    background: var(--magma-glow);
    border: none;
    width: 40px;
    height: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.45);
}

/* Hero */
.hero {
    padding: 1rem 1.25rem 3rem;
}

.hero-pre {
    font-family: 'JetBrains Mono', monospace;
    color: var(--magma-glow);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 span {
    -webkit-text-stroke: 1px var(--silver-structure);
    color: transparent;
}

.hero-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: -0.7rem;
    margin-bottom: 1.1rem;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.hero-features::-webkit-scrollbar {
    display: none;
}

.hero-features-wrap {
    position: relative;
    width: 100%;
}

.hero-features-wrap .hero-features {
    /* ruang untuk tombol panah di kiri/kanan agar icon pertama/terakhir tidak tertutup */
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

.hero-features-wrap-secondary .hero-features {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-features-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 54px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--silver-structure);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hero-features-nav svg {
    width: 22px;
    height: 22px;
}

.hero-features-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0.92;
    transition: var(--transition-fluid);
}

.hero-features-nav-left { left: 0; }
.hero-features-nav-right { right: 0; }

.hero-features-nav-left::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.0));
}

.hero-features-nav-right::before {
    background: linear-gradient(270deg, rgba(0,0,0,0.82), rgba(0,0,0,0.0));
}

.hero-features-nav:active::before {
    opacity: 1;
}

.hero-features-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

body[data-theme="light"] .hero-features-nav-left::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.0));
}

body[data-theme="light"] .hero-features-nav-right::before {
    background: linear-gradient(270deg, rgba(255,255,255,0.92), rgba(255,255,255,0.0));
}

.hero-features-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #8e9196;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 0.5rem;
}

.hero-feature-link {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--silver-structure);
    font-size: 0.86rem;
}

.hero-feature-link svg {
    width: 20px;
    height: 20px;
    color: var(--magma-glow);
}

.hero-feature-link:active,
.hero-feature-link:focus-visible {
    color: var(--magma-glow);
}

.hero-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--silver-structure);
    transition: var(--transition-fluid);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--tectonic-seam);
    border-radius: 12px;
}

/* App Footer (minimal) */
.app-footer {
    width: min(calc(100% - 40px), 480px);
    margin: 1rem auto 5.75rem;
    padding: 1rem;
    border: 1px solid var(--tectonic-seam);
    background: var(--basalt-core);
    border-radius: 12px;
}

.footer-grid {
    display: grid;
    gap: 1rem;
}

.footer-subgrid {
    display: grid;
    gap: 1rem;
}

.footer-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--magma-glow);
    margin-bottom: 0.45rem;
}

.footer-text {
    font-size: 0.83rem;
    color: #a1a1aa;
}

.payment-list {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.payment-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: #d4d4d8;
    border: 1px solid var(--tectonic-seam);
    background: var(--basalt-plate);
    padding: 0.3rem 0.45rem;
    border-radius: 999px;
}

.payment-placeholder svg {
    width: 14px;
    height: 14px;
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.footer-link {
    text-decoration: none;
    color: #d4d4d8;
    font-size: 0.82rem;
}

.footer-link:active,
.footer-link:focus-visible {
    color: var(--magma-glow);
}

.footer-copyright {
    margin-top: 0.9rem;
    border-top: 1px solid var(--tectonic-seam);
    padding-top: 0.7rem;
    font-size: 0.74rem;
    color: #71717a;
}

body[data-theme="light"] .app-footer {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .footer-text,
body[data-theme="light"] .footer-link,
body[data-theme="light"] .payment-placeholder {
    color: #334155;
}

body[data-theme="light"] .payment-placeholder {
    background: #f8fafc;
    border-color: rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .footer-copyright {
    color: #64748b;
    border-top-color: rgba(17, 24, 39, 0.1);
}

.hero-feature-icon svg {
    width: 44px;
    height: 44px;
    color: var(--magma-glow);
}

.hero-feature-icon:hover,
.hero-feature-icon:active,
.hero-feature-icon:focus-visible {
    background: rgba(255, 77, 0, 0.1);
    border-color: rgba(255, 77, 0, 0.4);
    color: var(--magma-glow);
}

.cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--tectonic-seam);
    border: 1px solid var(--tectonic-seam);
}

.btn-magma {
    background: var(--magma-glow);
    color: var(--basalt-deep);
    padding: 1.2rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
}

.btn-outline {
    background: var(--basalt-core);
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none;
}

.btn-magma:active,
.btn-magma:focus-visible {
    filter: brightness(1.08);
}

.btn-outline:active,
.btn-outline:focus-visible {
    background: var(--basalt-plate);
}

/* Loader */
.scan-loader {
    display: none;
    text-align: center;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--magma-glow);
}

.scan-loader.scan-loader--overlay {
    position: fixed;
    inset: 0;
    z-index: 4500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: left;

    /* Dimming + Gradient overlay */
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82)),
        radial-gradient(1200px 600px at 50% 20%, rgba(255, 77, 0, 0.16), transparent 60%);

    /* Backdrop blur (glassmorphism) */
    backdrop-filter: blur(14px);
}

.scan-overlay-card {
    width: min(520px, 100%);
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(28, 28, 33, 0.92), rgba(20, 20, 23, 0.92));

    /* Shadow & Depth */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.18),
        0 18px 60px rgba(0, 0, 0, 0.55);
}

.scan-overlay-title {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #cfd2d7;
    font-weight: 900;
}

.scan-overlay-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e7e9ee;
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.scan-overlay-hint {
    margin-top: 12px;
    font-size: 0.72rem;
    color: #8e9196;
    line-height: 1.45;
}

.scan-bar {
    height: 2px;
    background: var(--magma-glow);
    width: 0%;
    margin: 0 auto 10px;
    animation: scanning 1.5s infinite ease-in-out;
}

@keyframes scanning {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
        margin-left: 100%;
    }
}

/* --- RESULT VISUALIZATIONS (UPDATED) --- */
#results-area {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(10, 10, 11, 0.94);
    backdrop-filter: blur(8px);
}

.results-modal {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--basalt-plate);
    width: min(480px, 100%);
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid var(--tectonic-seam);
    border-right: 1px solid var(--tectonic-seam);
}

#results-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

.results-loading {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
}

.results-loading-card {
    width: 100%;
    max-width: 480px;
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(28, 28, 33, 0.92), rgba(20, 20, 23, 0.92));
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.18),
        0 18px 60px rgba(0, 0, 0, 0.55);
}

.results-loading-title {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #cfd2d7;
    font-weight: 900;
}

.results-loading-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e7e9ee;
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.results-loading-illustration {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.scan-illu {
    width: 100%;
    max-width: 360px;
    height: auto;
    color: #e7e9ee;
}

.scan-ico {
    opacity: 0;
    transform: translateY(2px) scale(0.98);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Loader stage driven by JS: results-loading-card[data-scan="..."] */
.results-loading-card[data-scan="ig"] .scan-ico--ig,
.results-loading-card[data-scan="tt"] .scan-ico--tt,
.results-loading-card[data-scan="x"] .scan-ico--x,
.results-loading-card[data-scan="fb"] .scan-ico--fb,
.results-loading-card[data-scan="wa"] .scan-ico--wa {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scan-line {
    animation: scanSweep 1.35s infinite ease-in-out;
}

.scan-line-glow {
    animation: scanSweepGlow 1.35s infinite ease-in-out;
}

@keyframes scanSweep {
    0% { transform: translateX(-70px); opacity: 0.0; }
    20% { opacity: 1.0; }
    50% { transform: translateX(70px); opacity: 1.0; }
    80% { opacity: 0.9; }
    100% { transform: translateX(70px); opacity: 0.0; }
}

@keyframes scanSweepGlow {
    0% { transform: translateX(-70px); opacity: 0.0; }
    20% { opacity: 0.35; }
    50% { transform: translateX(70px); opacity: 0.35; }
    100% { transform: translateX(70px); opacity: 0.0; }
}

.results-loading-bar {
    height: 6px;
    width: 100%;
    margin: 14px auto 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
}

.results-loading-bar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    left: -45%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 0, 0.95), transparent);
    animation: scanBar 1.25s infinite ease-in-out;
}

@keyframes scanBar {
    0% { transform: translateX(0); }
    100% { transform: translateX(260%); }
}

.results-loading-text {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    color: var(--magma-glow);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.results-loading-hint {
    margin-top: 12px;
    font-size: 0.72rem;
    color: #8e9196;
    line-height: 1.45;
    text-align: center;
}

body[data-theme="light"] .results-loading-card {
    border-color: rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 4px 10px rgba(17, 24, 39, 0.10),
        0 18px 60px rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .results-loading-title {
    color: #111827;
}

body[data-theme="light"] .results-loading-meta {
    color: #111827;
}

body[data-theme="light"] .scan-illu {
    color: #111827;
}

body[data-theme="light"] .results-loading-hint {
    color: #4b5563;
}

body[data-theme="light"] .web-result,
body[data-theme="light"] .profile-result {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.10);
}

.result-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tectonic-seam);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.results-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border-top: 1px solid var(--tectonic-seam);
    background: var(--tectonic-seam);
}

.results-actions .btn-outline,
.results-actions .btn-magma {
    width: 100%;
}

.result-group-title {
    padding: 0.8rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-group-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--magma-glow);
    border-radius: 50%;
}

.result-group-spaced {
    margin-top: 20px;
}

.warning-text {
    color: var(--warning);
}

/* 1. Web Result Style */
.web-result {
    padding: 0.95rem 1rem;
    margin: 0.55rem 1.25rem;
    border: 1px solid var(--tectonic-seam);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.web-result:active {
    transform: translateY(-1px);
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 18px 44px rgba(255, 77, 0, 0.10), 0 18px 44px rgba(0, 0, 0, 0.16);
}

.web-result:focus-within {
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.28), 0 18px 44px rgba(0, 0, 0, 0.16);
}

.web-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #222;
    object-fit: contain;
    flex-shrink: 0;
}

.web-content {
    flex: 1;
    overflow: hidden;
}

.web-title {
    color: var(--silver-structure);
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.web-title:hover {
    color: var(--magma-glow);
}

.web-snippet {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.web-link {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. Profile Result Style */
.profile-result {
    padding: 0.95rem 1rem;
    margin: 0.55rem 1.25rem;
    border: 1px solid var(--tectonic-seam);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-result:active {
    transform: translateY(-1px);
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 18px 44px rgba(255, 77, 0, 0.10), 0 18px 44px rgba(0, 0, 0, 0.16);
}

.profile-result:focus-within {
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.28), 0 18px 44px rgba(0, 0, 0, 0.16);
}

.profile-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 77, 0, 0.35);
    background: rgba(255, 77, 0, 0.08);
    color: var(--magma-glow);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.profile-open:active,
.profile-open:focus-visible {
    border-color: rgba(255, 77, 0, 0.65);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.28);
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--tectonic-seam);
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--silver-structure);
}

.profile-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.search-profile-card {
    margin: 0.2rem 1.25rem 1.25rem;
    padding: 1rem;
    background: var(--basalt-core);
    border: 1px solid var(--tectonic-seam);
}

.search-profile-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.search-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--tectonic-seam);
    object-fit: cover;
}

.search-profile-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.search-profile-sub {
    font-size: 0.72rem;
    color: #8e9196;
    margin-top: 2px;
}

.search-profile-grid {
    display: grid;
    gap: 0.45rem;
}

.search-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tectonic-seam);
    font-size: 0.74rem;
    font-family: 'JetBrains Mono', monospace;
}

.search-profile-row:last-child {
    border-bottom: none;
}

.search-profile-key {
    color: #8e9196;
}

.search-profile-value {
    color: var(--silver-structure);
    text-align: right;
    overflow-wrap: anywhere;
}

.risk-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.risk-low {
    border: 1px solid var(--success);
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.risk-med {
    border: 1px solid var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.risk-high {
    border: 1px solid var(--magma-glow);
    color: var(--magma-glow);
    background: rgba(255, 77, 0, 0.1);
}

/* Utility & Stats */
.stats-tectonic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--tectonic-seam);
    margin: 1.25rem;
    background: var(--basalt-core);
}

.stat-box {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid var(--tectonic-seam);
}

.stat-box:last-child {
    border-right: none;
}

.stat-val {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

.stat-key {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #666;
    margin-top: 4px;
}

.setup-option {
    cursor: pointer;
}

.settings-panel {
    padding: 2rem 1.25rem;
}

.settings-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.settings-box {
    background: var(--basalt-plate);
    padding: 1.5rem;
    border: 1px solid var(--tectonic-seam);
}

.settings-field {
    margin-bottom: 1rem;
}

.settings-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.settings-input {
    width: 100%;
}

.settings-btn {
    width: 100%;
}

.settings-help {
    margin-top: 0.45rem;
    color: #8e9196;
    font-size: 0.72rem;
    line-height: 1.4;
}

.device-info-grid {
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
}

.device-info-row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--tectonic-seam);
    font-size: 0.8rem;
}

.device-info-row:last-child {
    border-bottom: none;
}

.device-info-row span {
    color: #8e9196;
}

.device-info-row strong {
    color: var(--silver-structure);
    text-align: right;
    overflow-wrap: anywhere;
}

/* Vault Featured */
.vault-featured-card {
    display: grid;
    gap: 0.9rem;
}

.vault-feature-item {
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem;
}

.vault-feature-item h3 {
    margin: 0;
    font-size: 0.98rem;
    text-transform: uppercase;
    color: var(--silver-structure);
}

.vault-feature-item .subtitle {
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.vault-section-title {
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
}

.vault-testimonial {
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 77, 0, 0.06);
    padding: 0.85rem;
}

.vault-quote {
    color: var(--silver-structure);
    font-size: 0.9rem;
    line-height: 1.5;
}

.vault-author {
    margin-top: 0.5rem;
    color: var(--magma-glow);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.vault-note {
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.vault-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 77, 0, 0.45);
    color: var(--magma-glow);
    text-decoration: none;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vault-feature-link:active,
.vault-feature-link:focus-visible {
    background: rgba(255, 77, 0, 0.14);
    color: #ffd8c7;
}

.feature-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    padding: 0.2rem 0;
}

.feature-item-wrap {
    border: 1px solid rgba(255, 77, 0, 0.25);
    padding: 0.65rem 0.75rem;
}

.feature-item-link h3 {
    color: var(--magma-glow);
}

.feature-item-link .subtitle {
    margin-bottom: 0;
}

.feature-item-link:active,
.feature-item-link:focus-visible {
    border-color: rgba(255, 77, 0, 0.35);
}

.vault-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Code blocks (used in Vault tutorial) - keep global background */
.code-block {
    margin-top: 0.65rem;
    padding: 12px;
    border: 1px solid var(--tectonic-seam);
    border-radius: 12px;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #d4d4d8;
}

#page-vault,
.vault-section,
.vault-section .vault-featured-card,
.vault-section .vault-feature-item,
.vault-section .vault-testimonial {
    background: transparent !important;
    box-shadow: none !important;
}

.vault-section .vault-feature-item,
.vault-section .vault-testimonial {
    border: none !important;
}

.labs-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.labs-section .vault-feature-item {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#page-labs,
.labs-section,
.labs-section .vault-featured-card {
    background: transparent !important;
    box-shadow: none !important;
}

.labs-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 77, 0, 0.45);
    color: var(--magma-glow);
    text-decoration: none;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.labs-feature-link:active,
.labs-feature-link:focus-visible {
    background: rgba(255, 77, 0, 0.14);
    color: #ffd8c7;
}

.vault-cta-link {
    border: 1px solid transparent;
    transition: var(--transition-fluid);
}

.vault-cta-link:active,
.vault-cta-link:focus-visible {
    border-color: rgba(255, 77, 0, 0.45);
    filter: brightness(1.05);
    transform: translateY(1px);
}

/* Home - Cara Kerja */
.how-card {
    display: grid;
    gap: 0.75rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.how-title-center {
    text-align: center;
}

#how-it-works,
#how-it-works .card,
#how-it-works .how-card,
#how-it-works .workflow-shell,
#how-it-works .workflow-grid,
#how-it-works .workflow-step-wrap,
#how-it-works .workflow-step-card {
    background: transparent !important;
    box-shadow: none !important;
}

.how-step {
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem;
}

.how-step h3 {
    margin: 0;
    color: var(--magma-glow);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.how-step .subtitle {
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.55;
}

.workflow-shell {
    width: 100%;
}

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

.workflow-step-wrap {
    display: grid;
    gap: 0.6rem;
}

.workflow-step-card {
    position: relative;
    border: none;
    background: transparent;
    padding: 0.85rem;
    padding-top: 2.8rem;
}

.workflow-step-number {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: transparent;
    color: var(--magma-glow);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.workflow-step-title {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--silver-structure);
}

.workflow-step-image {
    margin-top: 0.5rem;
    margin-bottom: 0.45rem;
    display: flex;
    justify-content: center;
}

#how-it-works .workflow-step-image svg [fill="#4A90E2"],
#how-it-works .workflow-step-image svg [stroke="#4A90E2"] {
    fill: var(--magma-glow);
    stroke: var(--magma-glow);
}

.workflow-inline-icons {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    flex-wrap: wrap;
}

.workflow-step-desc {
    margin: 0;
    color: #b8bcc5;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

.why-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
}

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

.why-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    align-items: start;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem;
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 0, 0.4);
    background: rgba(255, 77, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--magma-glow);
}

.why-icon svg {
    width: 22px;
    height: 22px;
}

.why-item .subtitle {
    margin: 0;
    line-height: 1.55;
}

.why-item .subtitle strong {
    color: var(--silver-structure);
}

/* Register Page */
.page-section {
    padding: var(--space-5);
}

.page-register {
    width: 100%;
    margin: 0 auto;
}

.card {
    /* Subtle glass surface so content doesn't sink into the global background. */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(10px);
    border: 1px solid var(--tectonic-seam);
    border-radius: 18px;
    padding: var(--space-5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.page-title {
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.page-register h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.subtitle {
    color: #8e9196;
    margin-top: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.policy-card {
    display: grid;
    gap: 0.7rem;
    padding: var(--space-5);
    /* Prevent long code lines (pre/code) from forcing the grid wider than the 480px frame. */
    min-width: 0;
}

.policy-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #8e9196;
    margin-top: -0.35rem;
}

.policy-content h3 {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    color: var(--magma-glow);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.policy-content h4,
.policy-content h5,
.policy-content h6 {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--silver-structure);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.policy-content a {
    color: var(--magma-glow);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 77, 0, 0.35);
    padding-bottom: 1px;
}

.policy-content a:hover,
.policy-content a:focus-visible {
    border-bottom-color: rgba(255, 77, 0, 0.75);
}

.policy-content p,
.policy-list li {
    font-size: 0.88rem;
    color: #d4d4d8;
    line-height: 1.6;
}

.policy-content {
    /* Same overflow guard for policy pages (tutorial, terms, etc.). */
    min-width: 0;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.policy-content pre,
.policy-content code {
    max-width: 100%;
}

.policy-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.policy-list {
    margin: 0.15rem 0 0.2rem 1.1rem;
    display: grid;
    gap: 0.35rem;
}

/* Artikel */
.article-shell {
    display: grid;
    gap: 0.9rem;
}

.article-list {
    display: grid;
    gap: 0.55rem;
    max-height: 320px;
    overflow: auto;
    padding-right: 2px;
}

.article-list.article-list--full {
    max-height: none;
}

.article-detail-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.85rem;
}

.article-link {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--tectonic-seam);
    /* Use global background (body/card) instead of local fills */
    background: transparent;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    transition: var(--transition-fluid);
}

.article-link:active,
.article-link:focus-visible {
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.28);
}

.article-link.is-active {
    border-color: rgba(255, 77, 0, 0.65);
    background: transparent;
}

.article-link-thumb {
    width: 96px;
    height: 54px; /* 16:9 */
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.14);
    display: block;
}

.article-link-thumb--placeholder {
    background:
        linear-gradient(135deg, rgba(255, 77, 0, 0.22), rgba(255, 255, 255, 0.04)),
        radial-gradient(240px 120px at 20% 20%, rgba(255, 77, 0, 0.25), transparent 55%);
}

.article-link-body {
    min-width: 0;
}

.article-link-title {
    font-weight: 800;
    line-height: 1.25;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link-excerpt {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: #b8bcc5;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link-meta {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #8e9196;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-detail {
    border: 1px solid var(--tectonic-seam);
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
}

.article-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.article-hero-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--tectonic-seam);
    background: rgba(0, 0, 0, 0.15);
}

.article-hero-meta {
    padding: 0.85rem 0.9rem;
}

.article-hero-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8e9196;
}

.article-hero-title {
    margin-top: 0.5rem;
    font-size: 1.15rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.article-content {
    padding: 0 0.9rem 0.95rem;
}

.article-content h3 {
    margin-top: 0.95rem;
}

body[data-theme="light"] .policy-meta {
    color: #6b7280;
}

body[data-theme="light"] .policy-content p,
body[data-theme="light"] .policy-list li {
    color: #1f2937;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.step-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--tectonic-seam);
    text-align: center;
    padding: 0.55rem 0.35rem;
}

.step-item.active {
    border-color: rgba(255, 77, 0, 0.6);
    background: rgba(255, 77, 0, 0.08);
}

.step-item.completed {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--tectonic-seam);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
}

.step-item.active .step-number {
    border-color: var(--magma-glow);
    color: var(--magma-glow);
}

.step-item.completed .step-number {
    border-color: var(--success);
    color: var(--success);
}

.step-label {
    font-size: 0.66rem;
    color: #8e9196;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.alert-error,
.alert-info,
.alert-success,
.hint {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--tectonic-seam);
    font-size: 0.82rem;
}

.alert-error {
    color: #ff8a8a;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

.alert-info {
    color: #9cdcff;
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
}

.alert-success {
    color: #86efac;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.hint {
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.03);
}

.device-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.device-grid label,
.checkbox-container label {
    display: block;
}

.device-grid input[type="radio"],
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.device-card {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-fluid);
    cursor: pointer;
}

.device-card i {
    font-size: 1.4rem;
    color: var(--magma-glow);
}

.device-grid input[type="radio"]:checked+.device-card {
    border-color: rgba(255, 77, 0, 0.65);
    background: rgba(255, 77, 0, 0.12);
}

.checkbox-container {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.service-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.7rem;
    align-items: center;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.65rem 0.75rem;
    transition: var(--transition-fluid);
    cursor: pointer;
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tectonic-seam);
    color: var(--magma-glow);
    font-size: 1rem;
}

.service-info strong {
    display: block;
    font-size: 0.92rem;
}

.service-info span {
    display: block;
    color: #8e9196;
    font-size: 0.75rem;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked+.service-item {
    border-color: rgba(255, 77, 0, 0.65);
    background: rgba(255, 77, 0, 0.12);
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    margin-top: 0.9rem;
    color: #8e9196;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group {
    margin-top: 0.2rem;
}

/* Alias class untuk halaman Kontak */
.form-control {
    width: 100%;
    background: var(--basalt-core);
    border: 1px solid var(--tectonic-seam);
    padding: 0.95rem 0.9rem;
    color: var(--silver-structure);
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    border-radius: 12px;
    transition: var(--transition-fluid);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-control:focus {
    border-color: rgba(255, 77, 0, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.25);
}

.btn-primary {
    background: var(--magma-glow);
    border: 1px solid rgba(255, 77, 0, 0.55);
    color: #0A0A0B;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: var(--transition-fluid);
}

.btn-primary:active,
.btn-primary:focus-visible {
    filter: brightness(1.05);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.35);
}

.btn-full {
    width: 100%;
    margin-top: 1.1rem;
}

.kontak-root {
    margin-top: 1.1rem;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
}

.kontak-logo {
    color: var(--magma-glow);
    margin: 0 auto 0.6rem;
    display: block;
}

.kontak-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.kontak-subtitle {
    margin: 0.35rem 0 0.9rem;
    color: #8e9196;
    font-size: 0.85rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    color: var(--silver-structure);
    transition: var(--transition-fluid);
}

.cta-btn:active,
.cta-btn:focus-visible {
    border-color: rgba(255, 77, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, 0.28);
}

.kontak-cta-icon {
    width: 20px;
    height: 20px;
    color: var(--magma-glow);
}

.kontak-ig {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: #8e9196;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.kontak-ig-icon {
    width: 18px;
    height: 18px;
    color: var(--magma-glow);
}

.kontak-ig-link {
    color: var(--silver-structure);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 77, 0, 0.35);
    padding-bottom: 1px;
}

.kontak-ig-link:active,
.kontak-ig-link:focus-visible {
    color: var(--magma-glow);
}

.form-input {
    width: 100%;
    background: var(--basalt-core);
    border: 1px solid var(--tectonic-seam);
    padding: 0.95rem 0.9rem;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
}

.countdown-wrapper {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.qris-wrapper {
    margin-top: 1rem;
    background: #fff;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
}

.qris-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.amount {
    margin-top: 0.9rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: var(--magma-glow);
}

.summary-box {
    margin-top: 0.9rem;
    border: 1px solid var(--tectonic-seam);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--tectonic-seam);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: #8e9196;
}

.btn-submit {
    width: 100%;
    margin-top: 0.8rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
}

.btn-on-gold,
.btn-cta-whatsapp {
    background: var(--magma-glow);
    color: #0a0a0b;
}

.btn-muted {
    background: var(--basalt-core);
    color: var(--silver-structure);
    border: 1px solid var(--tectonic-seam);
}

.tag-gold {
    letter-spacing: 0.04em;
}

.thank-icon {
    font-size: 3rem;
    color: var(--success);
    text-align: center;
    margin-bottom: 0.5rem;
}

.mt-20 {
    margin-top: 1.25rem;
}

.progress-steps {
    gap: 0.25rem;
}

.step-label {
    font-size: 0.58rem;
}

/* .card padding is defined in the main .card block above (keep single source of truth). */

/* Toast */
#tectonic-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--magma-glow);
    color: black;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 3000;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0% 20%);
    width: max-content;
    max-width: 90%;
    text-align: center;
}

#tectonic-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer & Nav */
.bottom-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100% - 40px), 480px);
    background: rgba(20, 20, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--tectonic-seam);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.5rem;
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0;
    gap: 4px;
    opacity: 0.4;
    transition: var(--transition-fluid);
    cursor: pointer;
}

.nav-item.active {
    opacity: 1;
    color: var(--magma-glow);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.magma-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--magma-glow);
    width: 25%;
    transition: var(--transition-fluid);
}

.status-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
    /* Use global background (no local bar fill). */
    background: transparent;
    border-top: none;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #666;
    z-index: 2001;
}

.status-copyright {
    color: var(--accent-cyan);
}

.pulse {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.spacer {
    height: 80px;
}

.reveal {
    animation: plateReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes plateReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
