:root {
    color-scheme: dark;
    --brand-orange: #ff9400;
    --brand-dark: #050505;
    --text-muted: rgba(255, 255, 255, 0.65);
    --card-bg: rgba(8, 8, 8, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    font-family: 'Noto Sans SC', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background-color: var(--brand-dark);
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    touch-action: manipulation;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 148, 0, 0.2), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 148, 0, 0.1), transparent 55%),
        linear-gradient(120deg, rgba(0, 0, 0, 0.9), rgba(5, 5, 5, 0.95)),
        url('https://images.unsplash.com/photo-1504753793650-d4a2b783c15e?auto=format&fit=crop&w=1600&q=60');
    background-size: 400px 400px, 500px 500px, cover, cover;
    background-attachment: fixed;
    background-position: center;
}

body.home {
    position: relative;
    overflow: hidden;
    background-image: none;
}

body.home::before {
    content: '';
    position: fixed;
    inset: -5%;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(8px) brightness(0.75);
    transform: scale(1.1);
    z-index: -2;
}

body.home::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 148, 0, 0.25), transparent 50%),
        radial-gradient(circle at 70% 10%, rgba(255, 148, 0, 0.15), transparent 55%);
    opacity: 0.8;
    z-index: -1;
}

body.story-page {
    --brand-header-height: 80px;
    --brand-footer-height: 66px;
    position: relative;
    overflow: hidden;
    background: #050505;
    height: 100vh;
}

body.story-page::before {
    content: '';
    position: fixed;
    inset: -4%;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(10px) brightness(0.65);
    transform: scale(1.1);
    z-index: -2;
}

body.story-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 15%, rgba(255, 148, 0, 0.35), transparent 60%),
        radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.45), transparent 50%);
    z-index: -1;
}

.page main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 5rem clamp(1.5rem, 4vw, 5rem);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.5rem, 4vw, 5rem);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.brand-lockup img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.primary-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}

.primary-nav .for-desktop {
    display: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.pill-cta {
    background: var(--brand-orange);
    color: #000;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.pill-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(255, 148, 0, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 36px;
    padding: clamp(2rem, 6vw, 5rem);
    backdrop-filter: blur(20px);
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.85), rgba(8, 8, 8, 0.65));
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 148, 0, 0.25), transparent 55%);
    pointer-events: none;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    margin: 1rem 0;
    font-family: 'Space Grotesk', sans-serif;
}

.hero__title strong {
    color: var(--brand-orange);
}

.hero__copy {
    max-width: 48ch;
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.home main {
    min-height: 100vh;
    padding: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    justify-content: center;
    gap: 0;
}

.home-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    width: min(92vw, 520px);
    margin-top: -6vh;
    position: relative;
    z-index: 1;
}

.home-logo {
    width: clamp(220px, 38vw, 360px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.55));
    display: block;
    opacity: 1;
}

.home-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #050505;
    background: linear-gradient(120deg, #ffb347, var(--brand-orange));
    box-shadow: 0 15px 45px rgba(255, 148, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: clamp(150px, 35vw, 210px);
}

.home-btn:hover,
.home-btn:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(255, 148, 0, 0.45);
}

.home-actions a + a {
    background: linear-gradient(120deg, #ffaf4d, #ff9400);
}

.home-actions a:nth-child(2) {
    filter: saturate(1.15);
}

.home-actions a:nth-child(3) {
    background: linear-gradient(120deg, #ffa43e, #ff7a00);
    color: #040404;
}

.home-copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.08em;
}

.story-page main {
    width: 100%;
    margin: 0 auto;
    height: 100%;
    padding: calc(var(--brand-header-height) + 24px) clamp(1.5rem, 4vw, 5rem) calc(var(--brand-footer-height) + 24px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-scroll {
    width: clamp(320px, 70vw, 1040px);
    max-width: calc(100vw - 4rem);
    height: calc(100vh - var(--brand-header-height) - var(--brand-footer-height) - 64px);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    padding: clamp(2rem, 4vw, 3.5rem);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    margin: 0 auto;
}

.brand-scroll::-webkit-scrollbar {
    width: 6px;
}

.brand-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 148, 0, 0.4);
    border-radius: 999px;
}

.brand-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9400;
    color: #050505;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    height: var(--brand-header-height);
}

.brand-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 clamp(1.5rem, 4vw, 5rem);
}

.brand-header__logo img {
    width: clamp(120px, 13vw, 170px);
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.brand-menu {
    position: relative;
}

.brand-menu__toggle {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    background: #050505;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.brand-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
    max-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
    text-align: center;
}

.brand-menu.open .brand-menu__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.brand-menu__panel a {
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: block;
}

.brand-menu__panel a:hover {
    background: rgba(255, 148, 0, 0.15);
}

.brand-story {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.story-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.brand-scroll .form-card {
    text-align: left;
    margin-top: 1.5rem;
}

.story-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.story-dashboard {
    margin-top: 2rem;
    text-align: left;
}

.story-dashboard .section-title {
    text-align: left;
}

.brand-story p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.brand-story__quote {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ff9400;
}

.brand-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    background: linear-gradient(100deg, #ffb347, #ff9400);
    color: #050505;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 15px 35px rgba(255, 148, 0, 0.35);
}

.copy-btn {
    margin-left: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.brand-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.07em;
    z-index: 10;
    height: var(--brand-footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.merchant-login {
    min-height: 100vh;
    background: #f7f7f7;
    color: #050505;
    color-scheme: light;
}

body.merchant-login main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4rem);
    min-height: 100vh;
}

.merchant-login__wrap {
    max-width: 480px;
    width: min(92vw, 480px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.merchant-login__logo {
    width: clamp(160px, 40vw, 220px);
    margin: 0 auto 1.5rem;
    display: block;
}

.merchant-login__panel h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.merchant-login__panel p {
    color: rgba(5, 5, 5, 0.6);
    margin-bottom: 1.5rem;
}

.merchant-login__panel form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.merchant-login__panel label {
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.75);
}

.merchant-login__panel input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #050505;
    padding: 0.85rem 1rem;
    margin-top: 0.35rem;
}

.merchant-login__panel button {
    border: 1px solid #050505;
    border-radius: 999px;
    padding: 0.95rem;
    font-size: 1rem;
    font-weight: 600;
    background: #050505;
    color: #fff;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.merchant-login__help {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.55);
}

@media (max-width: 600px) {
    body.merchant-login main {
        padding: 1.5rem;
    }

    .merchant-login__wrap {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .story-page {
        --brand-header-height: 70px;
        --brand-footer-height: 58px;
    }

    .story-page main {
        padding: calc(var(--brand-header-height) + 20px) 1.25rem calc(var(--brand-footer-height) + 20px);
    }

    .brand-scroll {
        width: 100%;
        max-width: none;
        padding: 1.5rem;
        margin: 0;
    }
}

.flash {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid;
    font-size: 0.9rem;
}

.flash + .flash {
    margin-top: 0.75rem;
}

.flash--success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #14532d;
}

.flash--info {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #312e81;
}

.flash--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}

.flash--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

body.merchant-app {
    background: #f6f7f8;
    color: #050505;
    color-scheme: light;
}

body.merchant-app main {
    padding: 0;
    display: block;
}

.merchant-shell {
    min-height: 100vh;
    background: #f6f7f8;
    display: flex;
    flex-direction: column;
}

.merchant-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 15;
}

.merchant-shell__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.merchant-shell__brand img {
    width: 90px;
    height: auto;
    border-radius: 12px;
}

.merchant-shell__brand strong {
    display: block;
    font-size: 1rem;
}

.merchant-shell__brand span {
    font-size: 0.8rem;
    color: rgba(5, 5, 5, 0.6);
}

.merchant-shell__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.95rem;
    flex: 1;
}

.admin-menu__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-menu__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    border-left: 1px solid #ececec;
    padding-left: 1rem;
}

.merchant-shell__nav a {
    color: inherit;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.merchant-shell__nav a:hover {
    border-color: #050505;
}

.admin-nav-toggle {
    display: none;
    border: 1px solid #050505;
    background: transparent;
    color: #050505;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
}

.merchant-shell__user {
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.75);
    padding: 0.35rem 0.75rem;
}

.merchant-shell__logout button {
    border: 1px solid #050505;
    background: #050505;
    color: #fff;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .merchant-shell__header {
        position: sticky;
        top: 0;
        z-index: 30;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35rem;
        padding: 0.6rem 1rem;
    }

    .merchant-shell__brand img {
        width: 70px;
    }

    .admin-nav-toggle {
        display: inline-flex;
        align-items: center;
        order: 2;
        margin-left: auto;
    }

    .merchant-shell__nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        width: min(85vw, 240px);
        flex-direction: column;
        display: none;
        background: #fff;
        border-radius: 16px;
        padding: 0.9rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        gap: 0.6rem;
        z-index: 20;
    }

    .merchant-shell__nav.is-open {
        display: flex;
    }

    .admin-menu__links {
        flex-direction: column;
        gap: 0.4rem;
    }

    .merchant-shell__nav a {
        white-space: nowrap;
    }

    .admin-menu__meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 0.75rem;
        margin-top: 0.5rem;
    }

    .merchant-shell__user {
        padding-left: 0;
        width: 100%;
    }

    .merchant-shell__logout {
        width: 100%;
    }

    .merchant-shell__logout button {
        width: 100%;
        padding: 0.7rem;
    }
}

.merchant-shell__content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 3.5rem) clamp(1rem, 3vw, 2rem) 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.merchant-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.merchant-card__header h2 {
    font-size: 1.25rem;
}

.merchant-card__header p {
    color: rgba(5, 5, 5, 0.65);
    margin-top: 0.35rem;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.form-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.25rem;
}

.form-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(5, 5, 5, 0.8);
}

.form-panel input,
.form-panel textarea,
.form-panel select,
.order-form input,
.order-form textarea,
.order-status-form select {
    border-radius: 14px;
    border: 1px solid #d1d5db;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    background: #fff;
}

.order-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.order-form input[type="number"] {
    width: 90px;
}

.form-panel button,
.form-panel .form-actions button,
.order-form button,
.order-status-form button {
    margin-top: 0.35rem;
    border: 1px solid #050505;
    background: #050505;
    color: #fff;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    cursor: pointer;
}

.table-panel {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.table-scroll {
    overflow-x: auto;
}

.merchant-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.credential-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.credential-panel dl {
    margin: 0;
}

.credential-panel dt {
    font-size: 0.85rem;
    color: rgba(5, 5, 5, 0.6);
    margin-bottom: 0.3rem;
}

.credential-panel dd {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.merchant-card th,
.merchant-card td {
    text-align: left;
    padding: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    white-space: nowrap;
}

.merchant-card thead {
    background: #f9fafb;
}

.merchant-card tbody tr:last-child td {
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: none;
}

.status-pill--positive {
    background: #ecfdf5;
    color: #047857;
}

.status-pill--muted {
    background: #f5f5f5;
    color: #6b7280;
}

.status-pill--outline {
    border: 1px solid #050505;
    color: #050505;
    background: transparent;
}

.muted-text {
    margin: 0.2rem 0 0;
    color: rgba(5, 5, 5, 0.6);
    font-size: 0.85rem;
}

.link-btn {
    border: none;
    background: none;
    color: #b91c1c;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.75rem;
}

.search-form input {
    min-width: 200px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
}

.search-form button {
    border: 1px solid #050505;
    background: #050505;
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
}

.inline-form {
    display: inline;
}

.pagination-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.pagination {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.pagination a {
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

.pagination a.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.7);
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    height: auto;
}

.order-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.order-summary p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.85);
}

.knowledge-table td,
.knowledge-table th {
    white-space: normal;
}

.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.knowledge-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.9rem;
    background: #fff;
}

.knowledge-card__toggle {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}

.knowledge-card__toggle strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.knowledge-card__meta {
    font-size: 0.8rem;
    color: rgba(5, 5, 5, 0.55);
}

.knowledge-card__chevron {
    width: 1rem;
    height: 1rem;
    border-right: 2px solid #050505;
    border-bottom: 2px solid #050505;
    transform: rotate(45deg);
    align-self: center;
    transition: transform 0.2s ease;
}

.knowledge-card.is-open .knowledge-card__chevron {
    transform: rotate(-135deg);
}

.knowledge-card__content {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(5, 5, 5, 0.85);
    line-height: 1.6;
}

.knowledge-card__content p,
.knowledge-card__content ul,
.knowledge-card__content ol {
    margin: 0 0 0.6rem;
}

.knowledge-card__content ul,
.knowledge-card__content ol {
    padding-left: 1.25rem;
}

.knowledge-card__content hr {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 1rem 0;
}

.markdown-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.5rem 0;
}

.markdown-table table {
    border-collapse: collapse;
    min-width: 520px;
    width: 100%;
}

.markdown-table th,
.markdown-table td {
    padding: 0.4rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.training-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    background: #fdfdfd;
}

.training-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.training-card ul {
    list-style: disc;
    margin-left: 1.25rem;
    color: rgba(5, 5, 5, 0.75);
    line-height: 1.5;
}

.training-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.training-card th,
.training-card td {
    border: 1px solid #e5e7eb;
    padding: 0.4rem 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.training-card__section {
    margin-top: 0.75rem;
}

.training-card__section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.training-card__note {
    font-size: 0.85rem;
    color: rgba(5, 5, 5, 0.65);
    margin-top: 0.4rem;
}

.order-form textarea {
    margin-top: 1rem;
    min-height: 120px;
}

.order-preview {
    border: 1px dashed #f59e0b;
    border-radius: 16px;
    background: #fffbeb;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-preview h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.order-preview__total {
    font-weight: 600;
    margin-top: 0.75rem;
}

.order-preview__note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.75);
}

.order-preview__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.order-preview__actions button {
    border: 1px solid #050505;
    background: #050505;
    color: #fff;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
}

.package-builder {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.75rem;
    background: #fff;
    margin-top: 1rem;
}

.package-builder__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.package-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.package-item-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.package-item-row select {
    flex: 1 1 220px;
}

.package-item-row input {
    flex: 0 0 120px;
}

.order-list {
    display: grid;
    gap: 1rem;
}

.order-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.25rem;
    background: #fff;
}

.order-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.order-card__meta span {
    font-size: 0.85rem;
    color: rgba(5, 5, 5, 0.6);
}

.order-card__code {
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.6);
    margin-bottom: 0.5rem;
}

.order-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.75rem 0;
    padding: 0;
}

.order-items li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.order-card__total {
    font-weight: 600;
    margin-top: 0.5rem;
}

.order-card__note {
    margin-top: 0.4rem;
    color: rgba(5, 5, 5, 0.7);
}

.order-status-form {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.order-status-form label {
    font-size: 0.85rem;
    color: rgba(5, 5, 5, 0.75);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-status-form select {
    min-width: 160px;
}

.package-list {
    display: grid;
    gap: 1rem;
}

.package-card {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1rem;
    background: #fff;
}

.package-card header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.package-card__items {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.package-card__items li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.package-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.package-shortcut {
    border: 1px dashed #cbd5f5;
    border-radius: 20px;
    padding: 0.75rem;
    background: #f8fafc;
    margin-bottom: 1rem;
}

.package-shortcut__head h3 {
    margin: 0;
    font-size: 1rem;
}

.package-shortcut__head p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: rgba(5, 5, 5, 0.7);
}

.package-shortcut__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.package-shortcut__card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-shortcut__card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.package-shortcut__name {
    border: none;
    background: none;
    padding: 0;
    flex: 1;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.package-shortcut__chevron {
    width: 0.85rem;
    height: 0.85rem;
    border-right: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.package-shortcut__card.is-open .package-shortcut__chevron {
    transform: rotate(-135deg);
}

.package-fill-btn {
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
}

.package-shortcut__details {
    margin-top: 0.25rem;
}

.package-shortcut__card-header h4 {
    margin: 0;
    font-size: 1rem;
}

.package-shortcut__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.package-shortcut__items li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.package-feedback {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #2563eb;
}

.package-feedback.is-visible {
    font-weight: 600;
}

@media (max-width: 900px) {
    .merchant-shell__header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .merchant-shell__nav {
        width: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
}

@media (max-width: 640px) {
    .order-items li {
        flex-direction: column;
        gap: 0.1rem;
    }

    .order-status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .order-status-form select {
        width: 100%;
    }
}

.hero.compact {
    padding: clamp(2rem, 4vw, 3rem);
}

.ghost-btn {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    color: #fff;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.ghost-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    transform: translateY(-1px);
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.entry-card {
    position: relative;
    border-radius: 28px;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s ease, border-color 0.3s ease;
}

.entry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 148, 0, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.entry-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 148, 0, 0.4);
}

.entry-card:hover::before {
    opacity: 1;
}

.entry-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.in-view {
    opacity: 1;
    transform: translateY(0);
}

.entry-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.entry-card a {
    font-weight: 600;
    color: var(--brand-orange);
}

.badge-cloud {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.badge-cloud span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.split-panel {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(5, 5, 5, 0.85);
}

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

.story-grid figure {
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.timeline-step strong {
    font-size: 1.25rem;
}

.form-card {
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    background: rgba(7, 7, 7, 0.9);
}

.form-card form {
    display: grid;
    gap: 1rem;
}

.form-card label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.form-card button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--brand-orange);
    color: #000;
    cursor: pointer;
}

.merchant-hero {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 2rem;
    border-radius: 36px;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border-color);
    background: rgba(3, 3, 3, 0.9);
}

.dashboard-preview {
    border-radius: 24px;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.site-footer {
    padding: 2rem clamp(1.5rem, 4vw, 5rem) 4rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.8);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.fine-print {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 640px) {
    .home-actions {
        flex-direction: row;
    }
}

@media (max-width: 960px) {
    .site-header__inner {
        gap: 0.5rem;
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        padding-top: 6rem;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.92);
        align-items: center;
        justify-content: flex-start;
        transform: translateY(-100%);
        transition: transform 0.35s ease;
    }

    body.nav-open .primary-nav {
        transform: translateY(0);
    }

    .nav-toggle {
        display: inline-flex;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .pill-cta {
        display: none;
    }

    .merchant-hero {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 961px) {
    .primary-nav .for-desktop {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    body.home::before,
    body.story-page::before,
    body.merchant-login::before {
        inset: 0;
        transform: none;
        background-image: url('/images/bg_m.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #050505;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .hero {
        border-radius: 24px;
    }

    .entry-card {
        border-radius: 20px;
    }
}
.form-panel .form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-panel .secondary-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #050505;
}
    .order-form button {
        width: 100%;
    }

    .order-form textarea {
        width: 100%;
    }
