:root {
    --bg: #f5f7fb;
    --bg-grid: rgba(18, 36, 29, 0.06);
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.68);
    --surface-chip: rgba(255, 255, 255, 0.72);
    --surface-subtle: rgba(255, 255, 255, 0.6);
    --surface-control: rgba(255, 255, 255, 0.86);
    --input-bg: rgba(255, 255, 255, 0.88);
    --header-bg: rgba(248, 251, 255, 0.76);
    --dialog-bg: rgba(248, 251, 255, 0.98);
    --overlay-bg: rgba(15, 23, 33, 0.58);
    --qr-bg: #ffffff;
    --ink: #0f1721;
    --muted: #4c6072;
    --line: rgba(15, 23, 33, 0.12);
    --line-strong: rgba(15, 23, 33, 0.2);
    --accent: #0f9f6e;
    --accent-deep: #0a6f52;
    --accent-soft: rgba(15, 159, 110, 0.12);
    --amber: #d97706;
    --cold: #2563eb;
    --shadow: 0 26px 60px rgba(24, 37, 56, 0.1);
    --body-grad-cold: rgba(37, 99, 235, 0.12);
    --body-grad-accent: rgba(15, 159, 110, 0.16);
    --body-grad-start: #f8fbff;
    --body-grad-end: #eef4f6;
    --noise-bright: rgba(255, 255, 255, 1);
    --noise-mid: rgba(37, 99, 235, 0.18);
    --noise-dark: rgba(15, 23, 33, 0.5);
    --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --sans: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
    scrollbar-gutter: stable;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #08111a;
    --bg-grid: rgba(150, 170, 190, 0.08);
    --surface: rgba(11, 21, 31, 0.9);
    --surface-strong: #111c27;
    --surface-soft: rgba(16, 29, 42, 0.82);
    --surface-chip: rgba(19, 33, 47, 0.88);
    --surface-subtle: rgba(16, 27, 39, 0.74);
    --surface-control: rgba(15, 28, 40, 0.92);
    --input-bg: rgba(10, 19, 29, 0.95);
    --header-bg: rgba(8, 17, 26, 0.82);
    --dialog-bg: rgba(8, 16, 24, 0.96);
    --overlay-bg: rgba(2, 8, 13, 0.72);
    --qr-bg: #0f1923;
    --ink: #e6f0fb;
    --muted: #98adc0;
    --line: rgba(216, 229, 245, 0.12);
    --line-strong: rgba(216, 229, 245, 0.22);
    --accent: #1dc58b;
    --accent-deep: #7ef4c3;
    --accent-soft: rgba(29, 197, 139, 0.14);
    --amber: #f59e0b;
    --cold: #7ab7ff;
    --shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
    --body-grad-cold: rgba(37, 99, 235, 0.18);
    --body-grad-accent: rgba(15, 159, 110, 0.16);
    --body-grad-start: #09131d;
    --body-grad-end: #060b11;
    --noise-bright: rgba(255, 255, 255, 0.22);
    --noise-mid: rgba(122, 183, 255, 0.12);
    --noise-dark: rgba(255, 255, 255, 0.26);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--sans);
    overflow-wrap: break-word;
    background:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
        radial-gradient(circle at top left, var(--body-grad-cold), transparent 30%),
        radial-gradient(circle at top right, var(--body-grad-accent), transparent 30%),
        linear-gradient(180deg, var(--body-grad-start) 0%, var(--body-grad-end) 100%);
    background-size: 24px 24px, 24px 24px, auto, auto, auto;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        radial-gradient(circle at 20% 20%, var(--noise-bright) 0 1.35px, transparent 1.5px),
        radial-gradient(circle at 80% 10%, var(--noise-dark) 0 1.15px, transparent 1.35px),
        radial-gradient(circle at 50% 60%, var(--noise-mid) 0 1px, transparent 1.2px),
        radial-gradient(circle at 35% 75%, var(--noise-dark) 0 0.8px, transparent 1px);
    background-size: 22px 22px, 34px 34px, 28px 28px, 44px 44px;
}

.page-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 44px 0 72px;
}

.page-shell,
.page-shell > *,
.site-header__inner,
.site-header__inner > *,
.nav-links,
.message-stack,
.section,
.section > *,
.hero,
.status-strip,
.product-grid,
.workflow-grid,
.split-layout,
.faq-list,
.detail-layout {
    min-width: 0;
}

.page-shell--narrow {
    width: min(760px, calc(100% - 32px));
    max-width: calc(100% - 32px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(15, 23, 33, 0.08);
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    min-height: 68px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    font-family: var(--mono);
    font-weight: 700;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.brand-mark__image {
    display: block;
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.nav-links a,
.nav-button {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.9rem;
}

.nav-link-admin {
    color: #ef4444 !important;
    font-weight: 700;
}

.nav-link-admin:hover {
    color: #f87171 !important;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-chip);
    color: var(--muted);
    cursor: pointer;
}

.theme-toggle__icon {
    font-size: 1rem;
    line-height: 1;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-deep) !important;
}

.nav-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.message-stack {
    position: relative;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    margin: 18px auto 0;
}

.message {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 159, 110, 0.18);
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.hero,
.status-strip,
.product-card,
.workflow-step,
.code-panel,
.narrative-card,
.faq-item {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: stretch;
    padding: 26px;
    border-radius: 30px;
}

.hero-copy {
    padding: 14px 8px 10px;
}

.eyebrow,
.section-kicker,
.product-tag,
.code-header,
.step-no,
.window-bar,
.hero-points,
.status-item strong,
.pill {
    font-family: var(--mono);
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--accent-deep);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 5.2vw, 4.9rem);
    line-height: 0.92;
}

.hero-title__line {
    display: block;
}

.hero-title__line + .hero-title__line {
    margin-top: 0.14em;
}

.hero-title__line--lead,
.hero-title__line--accent {
    white-space: nowrap;
}

.lede,
.section-head p,
.product-card p,
.workflow-step p,
.narrative-card p,
.faq-item p {
    color: var(--muted);
    line-height: 1.8;
}

.contact-strip {
    padding-top: 8px;
    text-align: center;
}

.contact-strip__email {
    margin: 0;
    font-family: var(--mono);
    font-size: 1rem;
}

.contact-strip__hint {
    margin: 0 0 10px;
    color: var(--muted);
}

.contact-strip__email a {
    color: var(--accent-deep);
    text-decoration: none;
}

.contact-strip__email a:hover {
    text-decoration: underline;
}

.lede {
    max-width: 58ch;
    margin: 22px 0 0;
    font-size: 1.06rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.hero-points span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-chip);
    color: var(--ink);
    font-size: 0.84rem;
}

.hero-points__accent {
    color: var(--accent-deep) !important;
    border-color: rgba(15, 159, 110, 0.24) !important;
    background: var(--accent-soft) !important;
}

.brand-name--chatgpt {
    color: #32d399;
}

.brand-name--gemini {
    color: #60a5fa;
}

.brand-name--claude {
    color: #fb923c;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.94rem;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #20c38b 100%);
    color: #f7fffb;
    box-shadow: 0 16px 32px rgba(15, 159, 110, 0.22);
}

.button-secondary {
    color: var(--ink);
    border-color: var(--line);
    background: var(--surface-chip);
}

.terminal-window {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(6, 31, 23, 0.12);
    background: #0d1620;
    color: #d9f2eb;
    box-shadow: 0 26px 54px rgba(8, 24, 36, 0.28);
}

.window-bar {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(217, 242, 235, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b57;
}

.window-bar span:nth-child(2) {
    background: #ffbd2f;
}

.window-bar span:nth-child(3) {
    background: #28c840;
}

.terminal-body {
    padding: 20px 18px 22px;
    font-family: var(--mono);
    font-size: 0.92rem;
    line-height: 1.85;
}

.terminal-body p {
    margin: 0;
}

.terminal-type-line {
    position: relative;
    min-height: 1.85em;
}

.terminal-type-line__token {
    white-space: pre-wrap;
}

.terminal-type-line__cursor {
    display: inline-block;
    width: 0.62ch;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -0.12em;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
}

.terminal-type-line.is-active .terminal-type-line__cursor {
    opacity: 1;
    animation: terminal-caret-blink 1s steps(1, end) infinite;
}

.terminal-body .prompt {
    color: #74f2bf;
}

.terminal-body .key {
    color: #86b5ff;
}

.terminal-body .value {
    color: #f5f7fb;
}

.terminal-body .ok {
    color: #74f2bf;
}

.terminal-body .gap {
    height: 12px;
}

@keyframes terminal-caret-blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(15, 23, 33, 0.08);
}

.status-item__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-item small {
    color: var(--muted);
}

.status-led {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.12);
    animation: status-led-core 2.8s ease-in-out infinite;
}

.status-led::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(15, 159, 110, 0.26);
    animation: status-led-ping 2.8s ease-out infinite;
}

@keyframes status-led-core {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.12);
    }

    35% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(15, 159, 110, 0.18);
    }

    65% {
        transform: scale(0.96);
        box-shadow: 0 0 0 5px rgba(15, 159, 110, 0.1);
    }
}

@keyframes status-led-ping {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    20% {
        opacity: 0.55;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.section {
    margin-top: 56px;
}

.section-head {
    max-width: 720px;
    margin-bottom: 22px;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.page-title,
.auth-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.96;
}

.section-head p:last-child {
    margin-top: 14px;
}

.product-grid,
.workflow-grid,
.faq-list {
    display: grid;
    gap: 18px;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    display: grid;
    grid-template-rows: auto auto calc(1.8em * 3) calc(1.85em * 5.2) auto;
    padding: 22px;
    border-radius: 22px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.product-tag {
    color: var(--accent-deep);
    font-size: 0.88rem;
}

.pill {
    min-height: 30px;
    font-size: 0.78rem;
    background: var(--accent-soft);
    border-color: rgba(15, 159, 110, 0.2);
    color: var(--accent-deep);
}

.pill-alt {
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(217, 119, 6, 0.24);
    color: var(--amber);
}

.pill-cold {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.24);
    color: var(--cold);
}

.pill-disabled {
    opacity: 0.45;
}

.product-card h3,
.workflow-step h3,
.faq-item h3 {
    font-size: 1.45rem;
    line-height: 1.05;
}

.product-card__title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.product-card__title .status-led {
    flex: 0 0 10px;
}

.product-card p,
.workflow-step p,
.faq-item p,
.narrative-card p {
    margin: 14px 0 0;
}

.product-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.85;
}

.product-card__pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
}

.product-card__official {
    color: #ef4444;
    font-size: 0.92rem;
    font-weight: 700;
}

.product-card__official-price {
    color: #ef4444;
    text-decoration: line-through;
    text-decoration-thickness: 0.5px;
    text-decoration-color: rgba(255, 255, 255, 0.9);
}

.product-card__official-label {
    margin-right: 0.2em;
}

.product-card__local {
    color: var(--accent-deep);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.product-card__local:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step {
    padding: 22px;
    border-radius: 20px;
}

.workflow-step__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.workflow-step__head h3 {
    margin: 0;
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(37, 99, 235, 0.14));
    color: var(--accent-deep);
    font-size: 0.95rem;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.earn-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.earn-card {
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.earn-card h3 {
    font-size: 1.65rem;
    line-height: 1.08;
}

.earn-card--feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 26px;
    align-items: center;
}

.earn-card__copy {
    min-width: 0;
}

.earn-card--feature p {
    max-width: 56ch;
}

.earn-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 22px;
}

.earn-points span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 159, 110, 0.24);
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.84rem;
}

.earn-visual {
    position: relative;
    display: grid;
    gap: 16px;
    align-self: stretch;
    min-height: 100%;
}

.earn-visual__panel {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 159, 110, 0.08), rgba(15, 23, 33, 0.02)), var(--surface-soft);
}

.earn-visual__panel::after {
    content: "";
    position: absolute;
    inset: auto -12% -30% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 197, 139, 0.22) 0%, rgba(29, 197, 139, 0) 72%);
    pointer-events: none;
    animation: earn-panel-glow 4.8s ease-in-out infinite;
}

.earn-visual__label {
    display: inline-block;
    color: var(--accent-deep);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.earn-visual__panel strong,
.earn-visual__panel small,
.earn-visual__price,
.earn-visual__deduction,
.earn-visual__total {
    display: block;
}

.earn-visual__panel strong {
    margin-top: 10px;
    font-size: 1.25rem;
    line-height: 1.12;
}

.earn-visual__panel small {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.earn-flow-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.earn-flow-item {
    display: grid;
    grid-template-columns: 70px minmax(32px, 1fr) 64px;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 6px 0;
    opacity: 0.54;
    transform: translate3d(0, 0, 0) scale(0.985);
    animation: earn-flow-highlight 5.6s ease-in-out infinite;
}

.earn-flow-item--2 {
    animation-delay: 1.1s;
}

.earn-flow-item--3 {
    animation-delay: 2.2s;
}

.earn-flow-item--4 {
    animation-delay: 3.3s;
}

.earn-flow-item__event,
.earn-flow-item__points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.earn-flow-item__event {
    justify-self: start;
    min-width: 60px;
    border: 1px solid rgba(95, 168, 255, 0.26);
    background: rgba(95, 168, 255, 0.12);
    color: #9bc6ff;
}

.earn-flow-item__points {
    justify-self: end;
    min-width: 56px;
    border: 1px solid rgba(29, 197, 139, 0.28);
    background: rgba(29, 197, 139, 0.16);
    color: var(--accent-deep);
    box-shadow: 0 10px 20px rgba(15, 159, 110, 0.08);
}

.earn-flow-item__line {
    position: relative;
    display: block;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(95, 168, 255, 0.18), rgba(29, 197, 139, 0.2));
    overflow: hidden;
}

.earn-flow-item__line::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -25%;
    width: 28%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(29, 197, 139, 0), rgba(29, 197, 139, 0.95), rgba(29, 197, 139, 0));
    animation: earn-flow-sweep 1.7s ease-in-out infinite;
}

.earn-visual__connector {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.earn-visual__connector span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(29, 197, 139, 0.3);
    animation: earn-connector-pulse 1.8s ease-in-out infinite;
}

.earn-visual__connector span:nth-child(2) {
    animation-delay: 0.2s;
}

.earn-visual__connector span:nth-child(3) {
    animation-delay: 0.4s;
}

.earn-visual__price,
.earn-visual__deduction,
.earn-visual__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-family: var(--mono);
}

.earn-visual__price span,
.earn-visual__deduction span,
.earn-visual__total span {
    color: var(--muted);
    font-size: 0.85rem;
}

.earn-visual__price strong,
.earn-visual__deduction strong,
.earn-visual__total strong {
    margin-top: 0;
    font-size: 1.05rem;
}

.earn-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    transform-origin: right center;
    transition: transform 220ms ease, text-shadow 220ms ease, color 220ms ease;
}

.earn-counter__digits {
    display: inline-block;
    min-width: 2ch;
    text-align: right;
}

.earn-counter__sign,
.earn-counter__suffix {
    display: inline-block;
}

.earn-counter--deduction {
    color: var(--accent-deep);
}

.earn-visual__total {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 159, 110, 0.18);
}

.earn-counter--total {
    font-size: 1.28rem;
}

.earn-counter--total.is-settled {
    transform: scale(1.18);
    text-shadow: 0 0 18px rgba(29, 197, 139, 0.26);
}

.earn-counter--total.is-settled .earn-counter__digits,
.earn-counter--total.is-settled .earn-counter__suffix {
    color: var(--accent-deep);
}

@keyframes earn-panel-glow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.38;
    }

    50% {
        transform: translate3d(-14px, -10px, 0) scale(1.08);
        opacity: 0.72;
    }
}

@keyframes earn-connector-pulse {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.35;
    }

    50% {
        transform: scale(1.22);
        opacity: 1;
    }
}

@keyframes earn-flow-highlight {
    0%,
    100% {
        opacity: 0.54;
        transform: translate3d(0, 0, 0) scale(0.985);
    }

    18%,
    42% {
        opacity: 1;
        transform: translate3d(4px, 0, 0) scale(1);
    }
}

@keyframes earn-flow-sweep {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translate3d(430%, 0, 0);
        opacity: 0;
    }
}

.split-layout > * {
    min-width: 0;
    width: 100%;
}

.code-panel,
.narrative-card,
.faq-item {
    padding: 22px;
    border-radius: 22px;
}

.code-panel {
    overflow: hidden;
}

.code-header {
    margin-bottom: 12px;
    color: var(--accent-deep);
    font-size: 0.84rem;
}

.code-panel pre {
    margin: 0;
    max-width: 100%;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 18px;
    border-radius: 16px;
    background: #101924;
    color: #d5e4f7;
    font-family: var(--mono);
    font-size: 0.92rem;
    line-height: 1.7;
}

.json-key--targets {
    color: #4dffb3;
}

.json-key--audience {
    color: #5fa8ff;
}

.json-key--style {
    color: #ffb24a;
}

.json-key--seo {
    color: #ff71c3;
}

.json-key--delivery {
    color: #b987ff;
}

.narrative-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.narrative-card h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
}

.narrative-card__rainbow {
    background-image: linear-gradient(
        90deg,
        #ff6b6b 0%,
        #ffb24a 18%,
        #f8f272 34%,
        #32d399 52%,
        #60a5fa 70%,
        #b987ff 86%,
        #ff71c3 100%
    );
    display: inline-block;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    will-change: filter;
    animation: rainbow-hue 7.5s linear infinite;
}

@keyframes rainbow-hue {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.faq-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-card,
.table-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border-radius: 24px;
}

.auth-card {
    padding: 24px;
}

.auth-card--wide {
    max-width: 860px;
}

.auth-copy,
.detail-summary,
.inline-meta,
.field-help {
    color: var(--muted);
    line-height: 1.75;
}

.auth-switch {
    margin-top: 16px;
    color: var(--muted);
}

.auth-note {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.12);
    color: var(--cold);
}

.auth-note strong {
    font-family: var(--mono);
    font-size: 0.88rem;
}

.auth-note__warning {
    color: #ef4444;
    font-weight: 700;
}

.auth-switch a,
.order-row a {
    color: var(--accent-deep);
}

.stack-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.form-feedback {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.24);
    background: rgba(127, 29, 29, 0.18);
    color: #fecaca;
    outline: none;
}

.form-feedback strong {
    font-size: 0.96rem;
}

.form-feedback__list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
}

.form-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 32;
    width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(33, 10, 14, 0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    color: #fecaca;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.96);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.form-toast--visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.form-toast__head {
    margin-bottom: 8px;
    font-size: 0.94rem;
}

.form-toast__list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.65;
    font-size: 0.92rem;
}

@media (max-width: 700px) {
    .form-toast {
        width: min(360px, calc(100vw - 24px));
    }
}

.form-field {
    display: grid;
    gap: 8px;
}

.order-supplement-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.order-supplement-form__label {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
}

.order-supplement-form__input {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.order-supplement-form__button {
    width: 100%;
    min-height: 40px;
}

.copy-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.copy-field__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-chip);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.copy-field__button:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.form-field label {
    font-family: var(--mono);
    font-size: 0.9rem;
}

.form-label-inline {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.form-label-inline__hint {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--ink);
    font: inherit;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.access-token-input-wrap {
    position: relative;
}

.access-token-input-wrap .form-control {
    position: relative;
    z-index: 1;
    background: transparent;
}

.access-token-placeholder {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    z-index: 0;
    color: var(--muted);
    line-height: 1.7;
    pointer-events: none;
    transition: opacity 140ms ease;
}

.access-token-placeholder__required {
    color: #ef4444;
    font-weight: 700;
}

.access-token-input-wrap.has-value .access-token-placeholder,
.access-token-input-wrap:focus-within .access-token-placeholder {
    opacity: 0;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.errorlist {
    margin: 0;
    padding-left: 18px;
    color: #b42318;
}

.button-block {
    width: 100%;
}

.inline-form {
    margin-top: 12px;
}

.empty-card {
    padding: 24px;
    border-radius: 22px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-subtle);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 18px;
}

.detail-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.detail-panel {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-panel--compact {
    display: grid;
    gap: 18px;
    align-content: start;
}

.detail-panel__divider {
    margin: 18px 0 20px;
    border-top: 1px solid var(--line);
}

.support-entry > h2 + p {
    margin-top: 14px;
}

.support-entry__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    margin-bottom: 16px;
}

.support-entry__time {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.82rem;
}

.workflow-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid rgba(15, 23, 33, 0.08);
}

.workflow-box h2 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.workflow-box ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.9;
}

.instruction-highlight {
    color: #dc2626;
    font-weight: 700;
}

.rich-copy p:first-child {
    margin-top: 0;
}

.rich-copy p:last-child {
    margin-bottom: 0;
}

.qr-image,
.qr-placeholder {
    display: block;
    width: min(100%, 460px);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 18px;
    border: 1px dashed var(--line-strong);
    background: var(--qr-bg);
}

.qr-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: var(--mono);
}

.order-submit {
    margin-top: 32px;
}

.payment-launch {
    display: grid;
    gap: 16px;
}

.payment-dialog {
    width: min(820px, calc(100vw - 24px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: var(--dialog-bg);
}

.payment-dialog::backdrop {
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
}

.payment-dialog__content {
    padding: 24px;
}

.payment-dialog__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.payment-dialog__close {
    min-height: 40px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.payment-method-card {
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface-control);
    color: var(--ink);
    font: inherit;
    font-family: var(--mono);
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.payment-method-card:hover {
    transform: translateY(-1px);
}

.payment-method-card--active {
    border-color: rgba(15, 159, 110, 0.38);
    box-shadow: 0 12px 22px rgba(15, 159, 110, 0.12);
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.payment-method-card--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.payment-panel {
    margin-top: 18px;
}

.field-error-block {
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

.payment-amount {
    margin: 0 0 16px;
    text-align: center;
    color: var(--ink);
    font-size: clamp(1.2rem, 2.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
}

.payment-reminder {
    margin: 14px 0 0;
    text-align: center;
    color: var(--accent-deep);
    font-size: clamp(0.98rem, 2vw, 1.12rem);
    font-weight: 700;
    line-height: 1.35;
}

.payment-reminder__alert {
    color: #ef4444;
    animation: payment-reminder-flash 1s ease-in-out infinite;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.payment-upload-field {
    gap: 8px;
    margin-top: 18px;
}

.payment-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.payment-upload-trigger {
    flex: 0 0 auto;
    min-width: 132px;
}

.payment-upload-status {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-upload-preview {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface-control);
    overflow: hidden;
}

.payment-upload-preview__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.payment-upload-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 33, 0.78);
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
}

.payment-upload-preview__remove:hover {
    background: rgba(15, 23, 33, 0.92);
}

.upload-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 34;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4, 11, 18, 0.54);
    backdrop-filter: blur(8px);
}

.upload-progress-card {
    display: grid;
    gap: 14px;
    width: min(420px, calc(100vw - 32px));
    padding: 22px 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--dialog-bg);
    box-shadow: var(--shadow);
}

.upload-progress-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.upload-progress-card__head h3 {
    font-size: 1.2rem;
    line-height: 1.1;
}

.upload-progress-value {
    color: var(--accent-deep);
    font-family: var(--mono);
    font-size: 0.94rem;
}

.upload-progress-status {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.upload-progress-track {
    position: relative;
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 33, 0.1);
}

.upload-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    transition: width 160ms ease;
}

.upload-progress-modal[data-state="error"] .upload-progress-value {
    color: #ef4444;
}

.upload-progress-modal[data-state="error"] .upload-progress-bar {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.upload-progress-close {
    justify-self: end;
}

@keyframes payment-reminder-flash {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.table-card {
    padding: 18px;
}

.fellow-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 24px;
}

.fellow-summary > .table-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 176px;
    height: 100%;
}

.fellow-summary > .table-card + .table-card {
    margin-top: 0;
}

.fellow-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.fellow-section__head p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.fellow-order-table .order-table__head,
.fellow-order-table .order-row {
    grid-template-columns: 1.2fr 1.2fr 1.1fr 0.9fr 1fr 0.8fr;
}

.fellow-conversations {
    display: grid;
    gap: 18px;
}

.fellow-conversation {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.fellow-conversation__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fellow-conversation__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.82rem;
}

.fellow-conversation__meta strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.fellow-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    margin-bottom: 24px;
}

.fellow-order-panel {
    display: grid;
    gap: 18px;
}

.fellow-order-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.fellow-order-panel__head p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.fellow-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.fellow-order-grid p {
    display: grid;
    gap: 6px;
    margin: 0;
}

.fellow-order-grid span,
.fellow-order-details h3 {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fellow-order-grid strong,
.fellow-order-details p {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.7;
}

.fellow-order-details {
    display: grid;
    gap: 18px;
}

.fellow-order-details > div {
    display: grid;
    gap: 10px;
}

.fellow-order-details p,
.fellow-order-details pre {
    margin: 0;
}

.fellow-order-token {
    margin: 0;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.fellow-order-screenshot {
    max-width: min(100%, 420px);
}

.fellow-order-form {
    display: grid;
    gap: 18px;
}

.fellow-order-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.table-card > h2 {
    margin-bottom: 0;
}

.table-card > h2 + p,
.table-card > h2 + .empty-card {
    margin-top: 24px;
}

.table-card--points-log > h2 {
    margin-bottom: 28px;
}

.support-thread {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.support-thread--embedded {
    margin-top: 18px;
}

.support-thread--standalone {
    margin-top: 0;
}

.support-thread__list {
    display: grid;
    gap: 12px;
}

.support-thread__empty {
    margin: 0;
}

.support-message {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.support-message--staff {
    border-color: rgba(29, 197, 139, 0.18);
    background: linear-gradient(180deg, rgba(29, 197, 139, 0.08), rgba(16, 29, 42, 0.88));
}

.support-message--user {
    background: rgba(16, 29, 42, 0.86);
}

.support-message__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.82rem;
}

.support-message__meta strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.support-message__body {
    color: var(--ink);
    line-height: 1.75;
    word-break: break-word;
}

.support-message__reply-context {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.support-message__reply-context span {
    display: block;
    color: var(--accent-deep);
    font-family: var(--mono);
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.support-message__reply-context p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.support-message__image-link {
    display: inline-block;
    margin-top: 12px;
}

.support-message__image {
    display: block;
    max-width: min(100%, 320px);
    max-height: 320px;
    border-radius: 14px;
    border: 1px solid var(--line);
    object-fit: cover;
}

.support-message__actions {
    margin-top: 12px;
}

.support-message__reply-link {
    color: var(--accent-deep);
    font-family: var(--mono);
    font-size: 0.82rem;
    text-decoration: none;
}

.support-message__reply-link:hover {
    text-decoration: underline;
}

.support-thread__form {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(16, 29, 42, 0.74);
}

.support-thread__form .form-field {
    margin-bottom: 12px;
}

.support-thread__form .button {
    min-width: 128px;
}

.support-thread__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.support-reply-box {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(29, 197, 139, 0.18);
    background: rgba(29, 197, 139, 0.08);
}

.support-reply-box__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.support-reply-box__meta strong {
    color: var(--accent-deep);
}

.support-reply-box__meta a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.support-reply-box__meta a:hover {
    color: var(--ink);
}

.support-reply-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-layout + .table-card,
.table-card + .table-card {
    margin-top: 24px;
}

.order-table__head,
.order-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr 0.6fr;
    gap: 14px;
    align-items: start;
}

.order-table__head {
    padding: 14px 12px 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.88rem;
}

.order-row {
    padding: 16px 12px;
    border-top: 1px solid rgba(15, 23, 33, 0.08);
}

.order-row__meta {
    grid-column: 1 / -1;
    color: var(--muted);
}

.order-row__meta p {
    margin: 8px 0 0;
}

.checkout-summary-shell {
    display: grid;
    gap: 10px;
}

.checkout-summary__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.checkout-summary__head--payable {
    grid-template-columns: minmax(0, 1fr);
}

.checkout-summary__title-inline {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.9rem;
    line-height: 1.65;
}

.checkout-summary__title-inline > span {
    display: inline-block;
    min-width: 0;
}

.checkout-summary__points {
    color: var(--accent-deep);
    font-weight: 700;
}

.checkout-summary__discount {
    color: #ef4444;
    font-weight: 700;
}

.checkout-summary__payable {
    color: var(--ink);
    font-weight: 700;
}

.payment-method-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 14px;
    margin-top: 18px;
}

.payment-method-field {
    gap: 0;
}

.payment-method-row__label {
    color: var(--ink);
    white-space: nowrap;
}

.order-table--compact .order-table__head,
.order-table--compact .order-row {
    grid-template-columns: 1.1fr 1.2fr 0.7fr;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.status-badge--pending_review {
    color: #9a6700;
    background: rgba(217, 119, 6, 0.16);
}

.status-badge--processing {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.16);
}

.status-badge--staff_completed {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.16);
}

.status-badge--completed {
    color: var(--accent-deep);
    background: rgba(15, 159, 110, 0.16);
}

.status-badge--rejected {
    color: #b42318;
    background: rgba(180, 35, 24, 0.16);
}

@media (max-width: 980px) {
    .hero,
    .product-grid,
    .workflow-grid,
    .split-layout,
    .earn-grid,
    .faq-list,
    .fellow-summary,
    .fellow-order-layout,
    .fellow-order-grid,
    .fellow-order-form__grid,
    .status-strip,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    h1 {
        max-width: none;
        font-size: clamp(2.2rem, 10vw, 4rem);
    }

    .product-card {
        grid-template-rows: auto auto auto auto auto;
    }

    .earn-card--feature {
        grid-template-columns: 1fr;
    }

    .order-table__head {
        display: none;
    }

    .order-row {
        grid-template-columns: 1fr;
    }

    .support-message__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .fellow-order-panel__head,
    .fellow-conversation__head,
    .fellow-section__head {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(1180px, calc(100% - 20px));
        max-width: calc(100% - 20px);
        padding-top: 18px;
        padding-bottom: 48px;
    }

    .site-header__inner {
        flex-direction: row;
        justify-content: flex-start;
        width: min(1180px, calc(100% - 20px));
        max-width: calc(100% - 20px);
        padding: 10px 0;
        align-items: center;
        gap: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .site-header__inner::-webkit-scrollbar {
        display: none;
    }

    .nav-links {
        width: max-content;
        min-width: max-content;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
    }

    .hero,
    .status-strip,
    .product-card,
    .workflow-step,
    .code-panel,
    .narrative-card,
    .faq-item,
    .auth-card,
    .table-card,
    .detail-panel {
        border-radius: 18px;
    }

    .hero {
        padding: 18px;
    }

    .copy-field__head {
        align-items: flex-start;
    }

    .payment-method-grid {
        gap: 8px;
    }

    .payment-method-row {
        gap: 10px;
        align-items: center;
    }

    .payment-method-card {
        min-height: 48px;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 0.82rem;
    }

    .checkout-summary__head {
        gap: 12px;
    }

    .checkout-summary__title-inline {
        font-size: 0.86rem;
    }

    .payment-upload-row {
        gap: 10px;
    }

    .payment-upload-trigger {
        min-width: 112px;
        padding: 0 14px;
    }

    .payment-upload-preview {
        width: 64px;
        height: 44px;
    }

    .upload-progress-card {
        width: min(360px, calc(100vw - 24px));
        padding: 20px 18px;
    }

    .terminal-body {
        font-size: 0.84rem;
    }
}
