:root {
    --tg-bg: #071d18;
    --tg-bg-soft: #0b2a23;
    --tg-panel: #113128;
    --tg-panel-strong: #123b30;
    --tg-header: #051612;
    --tg-border: rgba(154, 224, 198, .18);
    --tg-text: #f1fff8;
    --tg-muted: #9bb7ac;
    --tg-accent: #27d17f;
    --tg-accent-text: #052619;
    --tg-link: #27d17f;
    --tg-accent-strong: #0dbb6c;
    --tg-accent-soft: rgba(39, 209, 127, .14);
    --tg-overlay: rgba(255, 255, 255, .04);
    --tg-overlay-soft: rgba(255, 255, 255, .025);
    --tg-warning: #f2b65d;
    --tg-danger: #f87979;
    --tg-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    color-scheme: dark;
}

:root[data-tg-scheme="light"] {
    --tg-bg: #f4f7f5;
    --tg-bg-soft: #eaf0ec;
    --tg-panel: #ffffff;
    --tg-panel-strong: #f8fbf9;
    --tg-header: #ffffff;
    --tg-border: rgba(16, 50, 38, .14);
    --tg-text: #10221c;
    --tg-muted: #68766f;
    --tg-accent: #0dbb6c;
    --tg-accent-text: #ffffff;
    --tg-link: #078b50;
    --tg-danger: #c53f4e;
    --tg-warning: #946200;
    --tg-shadow: 0 18px 50px rgba(16, 50, 38, .09);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--tg-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--tg-text);
    background: var(--tg-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--tg-accent);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

.app-shell {
    min-height: 100vh;
}

.app-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.app-header {
    position: sticky;
    z-index: 10;
    top: 0;
    padding: calc(14px + env(safe-area-inset-top)) 0 14px;
    border-bottom: 1px solid var(--tg-border);
    background: var(--tg-header);
    backdrop-filter: blur(18px);
}

.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(212, 255, 236, .3);
    border-radius: 13px;
    color: var(--tg-accent-text);
    background: var(--tg-accent);
    box-shadow: 0 8px 22px rgba(39, 209, 127, .22);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-image {
    object-fit: cover;
}

.brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.brand-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.brand-copy span {
    margin-top: 4px;
    color: var(--tg-muted);
    font-size: 11px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a,
.nav-action {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--tg-muted);
    background: transparent;
    font-size: 13px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.main-nav a:hover,
.nav-action:hover {
    border-color: var(--tg-border);
    color: var(--tg-text);
    background: var(--tg-overlay);
}

.nav-action {
    padding: 8px 10px;
    font-size: 20px;
    line-height: 1;
}

.theme-toggle {
    font-size: 18px;
}

.app-main {
    padding: 38px 0 calc(64px + env(safe-area-inset-bottom));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--tg-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-heading {
    max-width: 760px;
    margin: 0;
    font-size: 58px;
    line-height: 1.05;
    letter-spacing: 0;
}

.page-heading-compact {
    font-size: 32px;
}

.page-lead {
    max-width: 670px;
    margin: 16px 0 0;
    color: var(--tg-muted);
    font-size: 16px;
}

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
    align-items: end;
    gap: 32px;
    padding-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--tg-accent-text);
    background: var(--tg-accent);
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.button.secondary {
    border-color: var(--tg-border);
    color: var(--tg-text);
    background: var(--tg-overlay);
}

.button.secondary:hover {
    border-color: rgba(39, 209, 127, .5);
    background: var(--tg-accent-soft);
}

.button.full {
    width: 100%;
}

.status-panel {
    padding: 18px;
    border: 1px solid var(--tg-border);
    border-radius: 14px;
    background: var(--tg-panel-strong);
    box-shadow: var(--tg-shadow);
}

.status-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--tg-muted);
    font-size: 12px;
}

.online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--tg-accent);
    box-shadow: 0 0 0 4px rgba(39, 209, 127, .12);
}

.user-chip {
    overflow: hidden;
    max-width: 150px;
    padding: 5px 9px;
    border: 1px solid var(--tg-border);
    border-radius: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.stat {
    min-width: 0;
    padding: 10px;
    border-left: 1px solid var(--tg-border);
}

.stat:first-child {
    border-left: 0;
}

.stat strong {
    display: block;
    overflow: hidden;
    color: var(--tg-text);
    font-size: 23px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat span {
    display: block;
    margin-top: 7px;
    color: var(--tg-muted);
    font-size: 11px;
}

.notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 32px;
    padding: 13px 15px;
    border: 1px solid rgba(242, 182, 93, .26);
    border-radius: 10px;
    color: var(--tg-text);
    background: rgba(242, 182, 93, .08);
    font-size: 13px;
}

.notice-bar strong {
    flex: 0 0 auto;
    color: var(--tg-warning);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 42px 0 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: var(--tg-muted);
    font-size: 13px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 0 8px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--tg-border);
    border-radius: 8px;
    color: var(--tg-muted);
    background: var(--tg-overlay-soft);
    font-size: 13px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.category-tab:hover,
.category-tab.is-active {
    border-color: rgba(39, 209, 127, .55);
    color: var(--tg-text);
    background: var(--tg-accent-soft);
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 13px;
    border: 1px solid var(--tg-border);
    border-radius: 12px;
    background: var(--tg-panel);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(39, 209, 127, .55);
    background: var(--tg-panel-strong);
}

.product-card.is-hidden {
    display: none;
}

.product-card.is-disabled {
    cursor: not-allowed;
    opacity: .72;
}

.product-card.is-disabled:hover {
    border-color: var(--tg-border);
    background: var(--tg-panel);
    transform: none;
}

.product-visual {
    position: relative;
    display: grid;
    height: 122px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--tg-panel-strong);
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-glyph {
    color: var(--tg-accent);
    font-size: 42px;
    font-weight: 700;
}

.product-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    border: 1px solid rgba(39, 209, 127, .35);
    border-radius: 5px;
    color: var(--tg-text);
    background: var(--tg-panel-strong);
    font-size: 10px;
}

.product-status.is-empty {
    border-color: rgba(248, 121, 121, .36);
    color: var(--tg-danger);
}

.product-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 13px 2px 1px;
}

.product-title {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
}

.product-description {
    overflow: hidden;
    min-height: 41px;
    margin: 6px 0 13px;
    color: var(--tg-muted);
    font-size: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.price {
    color: var(--tg-accent);
    font-size: 19px;
    font-weight: 800;
}

.price small {
    color: var(--tg-muted);
    font-size: 11px;
    font-weight: 400;
}

.product-link {
    color: var(--tg-text);
    font-size: 12px;
    font-weight: 700;
}

.product-link span {
    margin-left: 4px;
    color: var(--tg-accent);
    font-size: 16px;
}

.stock-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: var(--tg-muted);
    font-size: 11px;
}

.stock-track {
    height: 4px;
    flex: 1;
    overflow: hidden;
    border-radius: 99px;
    background: var(--tg-border);
}

.stock-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tg-accent);
}

.stock-track span.is-empty {
    background: var(--tg-danger);
}

.empty-state {
    padding: 40px 20px;
    border: 1px dashed var(--tg-border);
    border-radius: 12px;
    color: var(--tg-muted);
    text-align: center;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 42px;
}

.quick-action {
    padding: 16px;
    border: 1px solid var(--tg-border);
    border-radius: 11px;
    background: var(--tg-overlay-soft);
    transition: border-color .2s ease, background .2s ease;
}

.quick-action:hover {
    border-color: rgba(39, 209, 127, .45);
    background: var(--tg-accent-soft);
}

.quick-action strong,
.quick-action span {
    display: block;
}

.quick-action strong {
    font-size: 14px;
}

.quick-action span {
    margin-top: 5px;
    color: var(--tg-muted);
    font-size: 12px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin-top: 16px;
}

.faq-item {
    padding: 13px 0;
    border-bottom: 1px solid var(--tg-border);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    float: right;
    color: var(--tg-accent);
    content: "+";
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin: 9px 0 0;
    color: var(--tg-muted);
    font-size: 13px;
}

.page-section {
    width: min(720px, 100%);
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: var(--tg-muted);
    font-size: 13px;
}

.back-link:hover {
    color: var(--tg-text);
}

.form-panel,
.order-panel,
.result-panel,
.payment-panel {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid var(--tg-border);
    border-radius: 14px;
    background: var(--tg-panel);
    box-shadow: var(--tg-shadow);
}

.product-summary {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.product-summary .product-visual {
    height: 112px;
}

.product-summary h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.2;
}

.product-summary p {
    margin: 8px 0 0;
    color: var(--tg-muted);
    font-size: 13px;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag {
    padding: 4px 7px;
    border: 1px solid var(--tg-border);
    border-radius: 5px;
    color: var(--tg-muted);
    font-size: 11px;
}

.tag.success {
    border-color: rgba(39, 209, 127, .3);
    color: var(--tg-accent);
}

.tag.warning {
    border-color: rgba(242, 182, 93, .3);
    color: var(--tg-text);
}

.order-form {
    margin-top: 24px;
}

.field {
    margin-top: 16px;
}

.field:first-child {
    margin-top: 0;
}

.field label,
.field legend {
    display: block;
    margin-bottom: 7px;
    color: var(--tg-text);
    font-size: 13px;
    font-weight: 700;
}

.field label span,
.field legend span {
    margin-left: 4px;
    color: var(--tg-muted);
    font-size: 11px;
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--tg-border);
    border-radius: 8px;
    color: var(--tg-text);
    outline: none;
    background: var(--tg-bg-soft);
    transition: border-color .2s ease, background .2s ease;
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--tg-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(39, 209, 127, .7);
    background: var(--tg-panel-strong);
}

.quantity-control {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    overflow: hidden;
    border: 1px solid var(--tg-border);
    border-radius: 8px;
}

.quantity-control button {
    border: 0;
    color: var(--tg-text);
    background: var(--tg-overlay);
    font-size: 22px;
}

.quantity-control button:hover {
    background: var(--tg-accent-soft);
}

.quantity-control input {
    min-width: 0;
    border: 0;
    border-right: 1px solid var(--tg-border);
    border-left: 1px solid var(--tg-border);
    border-radius: 0;
    text-align: center;
}

.field-help {
    margin: 6px 0 0;
    color: var(--tg-muted);
    font-size: 11px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.payment-option {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--tg-border);
    border-radius: 8px;
    color: var(--tg-muted);
    background: var(--tg-overlay-soft);
    text-align: left;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.payment-option:hover,
.payment-option.is-selected {
    border-color: rgba(39, 209, 127, .7);
    color: var(--tg-text);
    background: var(--tg-accent-soft);
}

.payment-option strong {
    font-size: 13px;
    font-weight: 700;
}

.payment-option span {
    color: var(--tg-accent);
    font-size: 12px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row input {
    flex: 1;
}

.captcha-row img {
    width: 124px;
    height: 44px;
    flex: 0 0 124px;
    cursor: pointer;
    border: 1px solid var(--tg-border);
    border-radius: 7px;
    object-fit: cover;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid var(--tg-border);
}

.total-label {
    color: var(--tg-muted);
    font-size: 12px;
}

.total-price {
    display: block;
    margin-top: 3px;
    color: var(--tg-accent);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.description-block {
    margin-top: 24px;
    padding: 20px 22px;
    border: 1px solid var(--tg-border);
    border-radius: 14px;
    background: var(--tg-panel);
}

.description-block h2 {
    margin: 0 0 13px;
    font-size: 16px;
}

.description-content {
    overflow-wrap: anywhere;
    color: var(--tg-muted);
    font-size: 13px;
}

.description-content img {
    height: auto;
}

.order-title,
.payment-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 22px;
}

.order-title::before,
.payment-title::before {
    display: inline-grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    color: var(--tg-accent-text);
    background: var(--tg-accent);
    content: "#";
    font-size: 15px;
    font-weight: 800;
}

.payment-title::before {
    content: "$";
}

.order-alert {
    margin: 18px 0;
    padding: 11px 13px;
    border-left: 3px solid var(--tg-warning);
    color: var(--tg-text);
    background: rgba(242, 182, 93, .08);
    font-size: 13px;
}

.order-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 19px;
}

.order-field {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tg-border);
    font-size: 13px;
}

.order-field strong {
    color: var(--tg-muted);
    font-weight: 400;
}

.order-field span {
    overflow-wrap: anywhere;
    text-align: right;
}

.order-field .accent {
    color: var(--tg-accent);
    font-weight: 700;
}

.order-info-box {
    margin-top: 18px;
}

.order-info-box h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.order-info-box textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 12px;
    border: 1px solid var(--tg-border);
    border-radius: 8px;
    color: var(--tg-text);
    background: var(--tg-bg-soft);
    resize: vertical;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.error-panel {
    text-align: center;
}

.error-message {
    margin-right: auto;
    margin-left: auto;
    overflow-wrap: anywhere;
}

.error-actions {
    justify-content: center;
}

.search-tabs {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    padding-bottom: 8px;
    overflow-x: auto;
    border-bottom: 1px solid var(--tg-border);
    scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab {
    flex: 0 0 auto;
    padding: 9px 11px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--tg-muted);
    background: transparent;
    font-size: 13px;
}

.search-tab.is-active {
    border-bottom-color: var(--tg-accent);
    color: var(--tg-text);
}

.search-panel {
    display: none;
    padding-top: 4px;
}

.search-panel.is-active {
    display: block;
}

.search-tip {
    margin: 0 0 14px;
    color: var(--tg-muted);
    font-size: 13px;
}

.result-panel + .result-panel {
    margin-top: 13px;
}

.result-panel .order-fields {
    margin-top: 8px;
}

.qr-wrap {
    margin: 22px auto 0;
    padding: 14px;
    border: 1px solid var(--tg-border);
    border-radius: 12px;
    background: #f6fffb;
    text-align: center;
}

.qr-wrap img {
    width: min(260px, 100%);
    height: auto;
}

.qr-amount {
    margin: 0 0 14px;
    color: #123b30;
    font-size: 14px;
    font-weight: 700;
}

.qr-hint {
    margin: 12px 0 0;
    color: var(--tg-muted);
    font-size: 12px;
}

.empty-result {
    padding: 25px 0 10px;
    color: var(--tg-muted);
    text-align: center;
}

.app-footer {
    padding: 20px 0 calc(34px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tg-border);
    color: var(--tg-muted);
    font-size: 11px;
    text-align: center;
}

.app-footer a {
    color: var(--tg-text);
}

.toast {
    position: fixed;
    z-index: 30;
    right: 18px;
    bottom: 20px;
    max-width: min(320px, calc(100% - 36px));
    padding: 11px 14px;
    border: 1px solid rgba(39, 209, 127, .35);
    border-radius: 8px;
    color: var(--tg-text);
    background: var(--tg-panel-strong);
    box-shadow: var(--tg-shadow);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 820px) {
    .app-container {
        width: min(100% - 28px, 640px);
    }

    .app-main {
        padding-top: 28px;
    }

    .hero-row {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .goods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .app-container {
        width: min(100% - 24px, 480px);
    }

    .app-header {
        padding: 10px 0;
    }

    .main-nav a {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .page-heading {
        font-size: 34px;
    }

    .page-heading-compact {
        font-size: 28px;
    }

    .page-lead {
        font-size: 14px;
    }

    .goods-grid,
    .quick-actions,
    .faq-list,
    .order-fields {
        grid-template-columns: 1fr;
    }

    .product-visual {
        height: 112px;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 6px;
    }

    .form-panel,
    .order-panel,
    .result-panel,
    .payment-panel,
    .description-block {
        padding: 16px;
        border-radius: 11px;
    }

    .product-summary {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 13px;
    }

    .product-summary .product-visual {
        height: 76px;
    }

    .product-summary h1 {
        font-size: 18px;
    }

    .form-footer {
        display: block;
    }

    .form-footer .button {
        margin-top: 15px;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .captcha-row {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .captcha-row input {
        flex-basis: calc(100% - 136px);
    }

    .order-field {
        align-items: flex-start;
    }
}

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

/* Gpass Mini App home shell. The legacy storefront rules above remain in use on detail pages. */
body.gpass-home {
    --gp-bg: #f6faf7;
    --gp-panel: #ffffff;
    --gp-soft: #eef8f2;
    --gp-line: #dce9e1;
    --gp-text: #10221b;
    --gp-muted: #718078;
    --gp-green: #04a85c;
    --gp-green-dark: #008a4a;
    --gp-shadow: 0 16px 38px rgba(28, 76, 53, .08);
    color: var(--gp-text);
    background: var(--gp-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root[data-tg-scheme="dark"] body.gpass-home {
    --gp-bg: #071d18;
    --gp-panel: #113128;
    --gp-soft: #0b2a23;
    --gp-line: rgba(154, 224, 198, .18);
    --gp-text: #f1fff8;
    --gp-muted: #9bb7ac;
    --gp-green: #27d17f;
    --gp-green-dark: #0dbb6c;
    --gp-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

body.gpass-home .app-shell {
    min-height: 100vh;
    overflow: hidden;
    background: var(--gp-bg);
}

body.gpass-home .app-container {
    width: min(100% - 72px, 780px);
}

body.gpass-home .app-header {
    padding: 21px 0 20px;
    border-bottom: 1px solid var(--gp-line);
    background: color-mix(in srgb, var(--gp-bg) 92%, transparent);
}

body.gpass-home .brand-mark {
    display: none;
}

body.gpass-home .brand-copy strong {
    color: var(--gp-text);
    font-size: 25px;
    line-height: 1;
}

body.gpass-home .brand-copy span {
    display: none;
}

body.gpass-home .gpass-top-actions {
    gap: 18px;
}

body.gpass-home .gpass-top-actions .nav-action {
    width: 32px;
    height: 36px;
    padding: 0;
    border: 0;
    color: var(--gp-muted);
    font-size: 25px;
}

body.gpass-home .gpass-top-actions .nav-action:hover {
    color: var(--gp-green);
    background: transparent;
}

.gpass-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: max(36px, calc((100% - 780px) / 2));
    display: grid;
    min-width: 190px;
    overflow: hidden;
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    background: var(--gp-panel);
    box-shadow: 0 16px 40px rgba(17, 58, 40, .16);
}

.gpass-menu[hidden] {
    display: none;
}

.gpass-menu a,
.gpass-menu button {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 0;
    color: var(--gp-text);
    background: transparent;
    text-align: left;
    font-size: 13px;
}

.gpass-menu a + a,
.gpass-menu a + button,
.gpass-menu button + a,
.gpass-menu button + button {
    border-top: 1px solid var(--gp-line);
}

.gpass-menu a:hover,
.gpass-menu button:hover {
    color: var(--gp-green-dark);
    background: var(--gp-soft);
}

.gpass-menu i {
    width: 18px;
    color: var(--gp-green);
    font-size: 18px;
    text-align: center;
}

body.gpass-home .app-main {
    padding: 32px 0 142px;
}

.gpass-view[hidden] {
    display: none;
}

.gpass-welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 5px 0 33px;
}

.gpass-welcome-row h1,
.gpass-page-heading h1 {
    margin: 0;
    color: var(--gp-text);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.gpass-view-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.gpass-icon-button,
.gpass-back-button {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid var(--gp-line);
    border-radius: 22px;
    color: var(--gp-green-dark);
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
    font-size: 22px;
    font-weight: 700;
}

.gpass-icon-button:hover,
.gpass-back-button:hover {
    border-color: rgba(4, 168, 92, .42);
    background: var(--gp-soft);
}

.gpass-icon-button i {
    font-size: 24px;
}

.gpass-balance-card {
    position: relative;
    min-height: 262px;
    padding: 35px 45px 31px;
    overflow: hidden;
    border-radius: 40px;
    color: #f1fff7;
    background: linear-gradient(125deg, #04b564 0%, #008b4b 100%);
    box-shadow: 0 18px 38px rgba(0, 145, 77, .2);
}

.gpass-balance-card::after {
    position: absolute;
    top: -70px;
    right: -34px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    content: "";
    filter: blur(28px);
}

.gpass-balance-label {
    position: relative;
    z-index: 1;
    display: block;
    color: rgba(241, 255, 247, .84);
    font-size: 20px;
    font-weight: 700;
}

.gpass-balance-star {
    position: absolute;
    z-index: 1;
    top: 45px;
    right: 47px;
    color: rgba(241, 255, 247, .86);
    font-size: 37px;
}

.gpass-balance-value {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 25px;
    font-size: clamp(56px, 8vw, 76px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: 0;
}

.gpass-balance-value small {
    margin-left: 7px;
    color: rgba(241, 255, 247, .84);
    font-size: 23px;
    font-weight: 800;
}

.gpass-balance-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 28px;
    color: rgba(241, 255, 247, .76);
    font-size: 18px;
    letter-spacing: 1px;
}

.gpass-balance-meta b {
    color: inherit;
    font-weight: 500;
}

.gpass-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f1fff7;
    font-weight: 700;
    letter-spacing: 0;
}

.gpass-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #baffd9;
    box-shadow: 0 0 0 4px rgba(186, 255, 217, .14);
}

.gpass-balance-meta button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 21px;
    border: 1px solid rgba(241, 255, 247, .28);
    border-radius: 99px;
    color: #f1fff7;
    background: rgba(255, 255, 255, .15);
    font-weight: 700;
}

.gpass-balance-meta button:hover {
    background: rgba(255, 255, 255, .24);
}

.gpass-balance-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gpass-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.gpass-shortcuts a {
    display: flex;
    min-height: 148px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--gp-line);
    border-radius: 32px;
    color: var(--gp-text);
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.gpass-shortcuts a:hover {
    border-color: rgba(4, 168, 92, .42);
    background: var(--gp-soft);
    transform: translateY(-2px);
}

.gpass-shortcut-icon,
.gpass-service-icon,
.gpass-asset-icon,
.gpass-account-icon {
    display: grid;
    place-items: center;
    color: var(--gp-green);
    background: var(--gp-soft);
}

.gpass-shortcut-icon {
    width: 68px;
    height: 68px;
    border: 2px solid rgba(4, 168, 92, .22);
    border-radius: 22px;
    font-size: 31px;
}

.gpass-shortcuts strong {
    color: var(--gp-muted);
    font-size: 18px;
}

.gpass-notice {
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
    padding: 0 23px;
    border: 1px solid rgba(4, 168, 92, .13);
    border-radius: 25px;
    color: var(--gp-text);
    background: rgba(4, 168, 92, .09);
    text-align: left;
}

.gpass-notice span {
    flex: 0 0 auto;
    padding: 6px 15px;
    border-radius: 99px;
    color: var(--gp-green);
    background: rgba(4, 168, 92, .14);
    font-size: 16px;
    font-weight: 800;
}

.gpass-notice em {
    overflow: hidden;
    color: var(--gp-muted);
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpass-notice i {
    margin-left: auto;
    color: var(--gp-green);
    font-size: 20px;
}

.gpass-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 42px 0 20px;
}

.gpass-section-title h2 {
    margin: 0;
    color: var(--gp-text);
    font-size: 26px;
    font-weight: 800;
}

.gpass-section-title a {
    color: var(--gp-green-dark);
    font-size: 16px;
    font-weight: 800;
}

.gpass-service-card,
.gpass-business-product {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 22px;
    border: 1px solid var(--gp-line);
    border-radius: 33px;
    color: var(--gp-text);
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.gpass-service-card {
    min-height: 133px;
    padding: 24px 28px;
}

.gpass-service-card:hover,
.gpass-business-product:hover {
    border-color: rgba(4, 168, 92, .4);
    background: var(--gp-soft);
    transform: translateY(-2px);
}

.gpass-service-card.is-disabled,
.gpass-business-product.is-disabled {
    cursor: not-allowed;
    opacity: .58;
}

.gpass-service-card.is-disabled:hover,
.gpass-business-product.is-disabled:hover {
    background: var(--gp-panel);
    transform: none;
}

.gpass-service-icon {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border: 2px solid rgba(4, 168, 92, .22);
    border-radius: 26px;
    font-size: 37px;
}

.gpass-service-copy,
.gpass-business-product-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.gpass-service-copy strong,
.gpass-business-product-copy strong {
    overflow: hidden;
    color: var(--gp-text);
    font-size: 22px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpass-service-copy span,
.gpass-business-product-copy span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gp-muted);
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gpass-service-arrow {
    flex: 0 0 auto;
    color: var(--gp-green);
    font-size: 25px;
}

.gpass-empty {
    padding: 26px 18px;
    border: 1px dashed var(--gp-line);
    border-radius: 22px;
    color: var(--gp-muted);
    background: var(--gp-panel);
    text-align: center;
}

.gpass-page-heading {
    margin: 3px 0 28px;
}

.gpass-page-heading p {
    margin: 10px 0 0;
    color: var(--gp-muted);
    font-size: 17px;
    font-weight: 600;
}

.gpass-page-heading-with-back {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.gpass-page-heading-with-back .gpass-back-button {
    flex: 0 0 64px;
    color: var(--gp-green);
    font-size: 32px;
}

.gpass-search {
    display: flex;
    height: 72px;
    align-items: center;
    gap: 14px;
    padding: 0 25px;
    border: 1px solid var(--gp-line);
    border-radius: 28px;
    color: var(--gp-muted);
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
}

.gpass-search i {
    font-size: 22px;
}

.gpass-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--gp-text);
    background: transparent;
    font-size: 20px;
}

.gpass-search input::placeholder {
    color: #a4aea9;
}

.gpass-business-layout {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.gpass-category-list {
    display: grid;
    align-content: start;
    gap: 8px;
}

.gpass-category-list button {
    min-height: 54px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 21px;
    color: var(--gp-muted);
    background: transparent;
    text-align: left;
    font-size: 17px;
    font-weight: 800;
}

.gpass-category-list button:hover,
.gpass-category-list button.is-active {
    border-color: rgba(4, 168, 92, .3);
    color: var(--gp-green-dark);
    background: rgba(4, 168, 92, .1);
}

.gpass-business-results {
    min-width: 0;
}

.gpass-business-intro {
    display: flex;
    min-height: 112px;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 19px 29px;
    border: 1px solid rgba(4, 168, 92, .14);
    border-radius: 31px;
    background: linear-gradient(100deg, rgba(4, 168, 92, .1), rgba(4, 168, 92, .02));
}

.gpass-business-intro strong {
    color: var(--gp-text);
    font-size: 22px;
}

.gpass-business-intro span {
    color: var(--gp-muted);
    font-size: 16px;
}

.gpass-business-product {
    min-height: 148px;
    margin-top: 16px;
    padding: 22px 25px;
}

.gpass-business-product .gpass-service-icon {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-radius: 24px;
    font-size: 31px;
}

.gpass-business-price {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
    color: var(--gp-text);
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.gpass-business-price small {
    padding: 5px 11px;
    border-radius: 99px;
    color: var(--gp-green-dark);
    background: rgba(4, 168, 92, .1);
    font-size: 13px;
}

.gpass-business-price small.is-empty {
    color: #c45a5a;
    background: rgba(196, 90, 90, .1);
}

.gpass-wallet-card {
    min-height: 255px;
}

.gpass-wallet-card .gpass-balance-value {
    margin-top: 29px;
}

.gpass-wallet-section {
    margin-top: 30px;
    padding: 30px 32px;
    border: 1px solid var(--gp-line);
    border-radius: 31px;
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
}

.gpass-wallet-section h2 {
    margin: 0 0 24px;
    color: var(--gp-text);
    font-size: 23px;
}

.gpass-payment-grid,
.gpass-amount-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gpass-payment-option {
    display: flex;
    min-height: 115px;
    align-items: center;
    gap: 17px;
    padding: 15px 20px;
    border: 2px solid var(--gp-line);
    border-radius: 27px;
    color: var(--gp-text);
    background: var(--gp-panel);
    text-align: left;
}

.gpass-payment-option:hover,
.gpass-payment-option.is-selected {
    border-color: var(--gp-green);
    background: var(--gp-soft);
}

.gpass-payment-option:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.gpass-payment-logo {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    color: #fff;
    background: #1f9bf0;
    font-size: 21px;
    font-weight: 800;
}

.logo-ok { background: #159cf0; }
.logo-fll { background: #3a81ea; }
.logo-xvip { background: #1768dc; }
.logo-usdt { border: 2px solid #9edfc6; border-radius: 20px; color: #fff; background: #3da995; font-size: 34px; }

.gpass-payment-option > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.gpass-payment-option strong {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpass-payment-option small {
    color: var(--gp-muted);
    font-size: 16px;
    font-weight: 700;
}

.gpass-amount-grid button {
    min-height: 59px;
    border: 1px solid var(--gp-line);
    border-radius: 18px;
    color: var(--gp-muted);
    background: var(--gp-panel);
    font-size: 18px;
    font-weight: 800;
}

.gpass-amount-grid button:hover,
.gpass-amount-grid button.is-selected {
    border-color: var(--gp-green);
    color: var(--gp-green-dark);
    background: var(--gp-soft);
}

.gpass-topup-info {
    margin-top: 17px;
    padding: 17px 19px;
    border: 1px solid var(--gp-line);
    border-radius: 20px;
    color: var(--gp-muted);
    background: var(--gp-soft);
}

.gpass-topup-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.gpass-topup-address-row,
.gpass-topup-result-address {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}

.gpass-topup-address-row span {
    flex: 0 0 auto;
    color: var(--gp-muted);
    font-size: 12px;
}

.gpass-topup-address-row code,
.gpass-topup-result-address code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--gp-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.gpass-copy-button {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid var(--gp-line);
    border-radius: 10px;
    color: var(--gp-green-dark);
    background: var(--gp-panel);
}

.gpass-copy-button:hover {
    border-color: var(--gp-green);
    background: var(--gp-soft);
}

.gpass-topup-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--gp-green-dark);
    font-size: 13px;
    font-weight: 800;
}

.gpass-topup-link:hover {
    color: var(--gp-green);
}

.gpass-topup-fields {
    margin-top: 22px;
    padding-top: 4px;
    border-top: 1px solid var(--gp-line);
}

.gpass-topup-fields .field {
    margin-top: 15px;
}

.gpass-topup-fields .field:first-child {
    margin-top: 0;
}

.gpass-topup-fields .field label {
    display: block;
    margin-bottom: 7px;
    color: var(--gp-text);
    font-size: 13px;
    font-weight: 800;
}

.gpass-topup-fields .field label span {
    margin-left: 5px;
    color: var(--gp-muted);
    font-size: 11px;
    font-weight: 400;
}

.gpass-topup-fields .field input,
.gpass-topup-fields .field textarea {
    display: block;
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid var(--gp-line);
    border-radius: 13px;
    color: var(--gp-text);
    outline: 0;
    background: var(--gp-panel);
}

.gpass-topup-fields .field textarea {
    min-height: 76px;
    resize: vertical;
}

.gpass-topup-fields .field input:focus,
.gpass-topup-fields .field textarea:focus {
    border-color: var(--gp-green);
}

.gpass-topup-result {
    margin-top: 22px;
    padding: 23px 25px;
    border: 1px solid rgba(4, 168, 92, .32);
    border-radius: 25px;
    background: var(--gp-soft);
}

.gpass-topup-result-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gpass-topup-result-heading > i {
    color: var(--gp-green-dark);
    font-size: 29px;
}

.gpass-topup-result-heading div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gpass-topup-result-heading strong {
    color: var(--gp-text);
    font-size: 17px;
}

.gpass-topup-result-heading span {
    color: var(--gp-muted);
    font-size: 13px;
}

.gpass-topup-result-fields {
    display: grid;
    grid-template-columns: minmax(80px, .35fr) minmax(0, 1fr);
    gap: 9px 15px;
    margin-top: 19px;
    padding-top: 16px;
    border-top: 1px solid var(--gp-line);
    font-size: 13px;
}

.gpass-topup-result-fields span {
    color: var(--gp-muted);
}

.gpass-topup-result-fields strong {
    overflow-wrap: anywhere;
    color: var(--gp-text);
    text-align: right;
}

.gpass-topup-result > p {
    margin: 17px 0 0;
    color: var(--gp-muted);
    font-size: 13px;
    line-height: 1.6;
}

.gpass-topup-result-address {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--gp-panel);
}

.gpass-wallet-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 28px;
    border: 1px solid var(--gp-line);
    border-radius: 31px;
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
}

.gpass-wallet-confirm div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gpass-wallet-confirm span {
    color: var(--gp-muted);
    font-size: 16px;
}

.gpass-wallet-confirm strong {
    color: var(--gp-text);
    font-size: 31px;
    line-height: 1;
}

.gpass-primary-button {
    display: inline-flex;
    min-height: 64px;
    align-items: center;
    gap: 8px;
    padding: 0 27px;
    border: 0;
    border-radius: 25px;
    color: #fff;
    background: var(--gp-green-dark);
    font-size: 18px;
    font-weight: 800;
}

.gpass-primary-button:hover {
    background: var(--gp-green);
}

.gpass-primary-button:disabled {
    cursor: wait;
    opacity: .6;
}

.gpass-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gpass-assets-grid button {
    display: flex;
    min-height: 185px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 25px 28px;
    border: 1px solid var(--gp-line);
    border-radius: 31px;
    color: var(--gp-text);
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
    text-align: left;
}

.gpass-assets-grid button:hover {
    border-color: rgba(4, 168, 92, .42);
    background: var(--gp-soft);
}

.gpass-asset-icon {
    width: 59px;
    height: 59px;
    margin-bottom: 4px;
    border: 2px solid rgba(4, 168, 92, .22);
    border-radius: 21px;
    font-size: 28px;
}

.gpass-assets-grid strong {
    font-size: 22px;
}

.gpass-assets-grid small {
    color: var(--gp-muted);
    font-size: 16px;
}

.gpass-profile-title {
    margin-top: 42px;
}

.gpass-profile-title span {
    color: var(--gp-muted);
    font-size: 15px;
    font-weight: 600;
}

.gpass-account-list {
    padding: 0 28px;
    border: 1px solid var(--gp-line);
    border-radius: 31px;
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
}

.gpass-account-list a,
.gpass-account-list button {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 23px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--gp-line);
    color: var(--gp-text);
    background: transparent;
    text-align: left;
}

.gpass-account-list a:last-child,
.gpass-account-list button:last-child {
    border-bottom: 0;
}

.gpass-account-list a:hover,
.gpass-account-list button:hover {
    color: var(--gp-green-dark);
}

.gpass-account-icon {
    width: 59px;
    height: 59px;
    flex: 0 0 59px;
    border: 2px solid rgba(4, 168, 92, .22);
    border-radius: 21px;
    font-size: 27px;
}

.gpass-account-list strong {
    flex: 1;
    font-size: 21px;
}

.gpass-account-list > a > i:last-child,
.gpass-account-list > button > i:last-child {
    color: var(--gp-text);
    font-size: 25px;
}

.gpass-modal {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 34, 24, .35);
    backdrop-filter: blur(7px);
}

.gpass-modal[hidden] {
    display: none;
}

.gpass-modal-panel {
    width: min(100%, 520px);
    max-height: min(680px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid var(--gp-line);
    border-radius: 29px;
    background: var(--gp-panel);
    box-shadow: 0 22px 60px rgba(10, 48, 31, .25);
}

.gpass-modal-header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 23px;
    border-bottom: 1px solid var(--gp-line);
    background: var(--gp-panel);
}

.gpass-modal-header h2 {
    margin: 0;
    color: var(--gp-text);
    font-size: 21px;
}

.gpass-modal-header button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: var(--gp-muted);
    background: var(--gp-soft);
    font-size: 20px;
}

.gpass-modal-header button:hover {
    color: var(--gp-green-dark);
}

.gpass-modal-list {
    padding: 16px 21px 22px;
}

.gpass-ledger-item,
.gpass-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 13px;
    padding: 15px 3px;
    border-bottom: 1px solid var(--gp-line);
    color: var(--gp-text);
}

.gpass-topup-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 13px;
    padding: 15px 3px;
    border-bottom: 1px solid var(--gp-line);
}

.gpass-topup-item:last-child {
    border-bottom: 0;
}

.gpass-topup-item > strong {
    overflow: hidden;
    color: var(--gp-text);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.gpass-topup-item > b:not(.gpass-topup-status) {
    color: var(--gp-text);
    font-size: 15px;
}

.gpass-topup-meta,
.gpass-topup-reference {
    color: var(--gp-muted);
    font-size: 12px;
}

.gpass-topup-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpass-topup-reference {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
}

.gpass-topup-item > .gpass-topup-status {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.gpass-topup-status.is-pending {
    color: #9a6711;
    background: rgba(214, 151, 35, .13);
}

.gpass-topup-status.is-paid {
    color: var(--gp-green-dark);
    background: rgba(4, 168, 92, .12);
}

.gpass-topup-status.is-failed {
    color: var(--tg-danger);
    background: rgba(196, 90, 90, .12);
}

.gpass-topup-status.is-cancelled {
    color: var(--gp-muted);
    background: var(--gp-soft);
}

.gpass-ledger-item:last-child,
.gpass-order-item:last-child {
    border-bottom: 0;
}

.gpass-ledger-item strong,
.gpass-order-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.gpass-ledger-item b,
.gpass-order-item b {
    color: var(--gp-green-dark);
    font-size: 15px;
}

.gpass-ledger-item b.is-debit {
    color: var(--tg-danger);
}

.gpass-ledger-item span,
.gpass-order-item span {
    grid-column: 1 / -1;
    color: var(--gp-muted);
    font-size: 12px;
}

.gpass-order-item:hover {
    color: var(--gp-green-dark);
}

.gpass-order-item {
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.gpass-order-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.gpass-order-detail-heading strong {
    min-width: 0;
    overflow: hidden;
    color: var(--gp-text);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}

.gpass-order-detail-heading span {
    flex: 0 0 auto;
    color: var(--gp-green-dark);
    font-size: 12px;
    font-weight: 800;
}

.gpass-order-detail-grid {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.gpass-order-detail-grid div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gp-line);
}

.gpass-order-detail-grid span {
    flex: 0 0 auto;
    color: var(--gp-muted);
    font-size: 13px;
}

.gpass-order-detail-grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--gp-text);
    font-size: 13px;
    text-align: right;
}

.gpass-order-detail-delivery {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--gp-line);
}

.gpass-order-detail-delivery h3 {
    margin: 0 0 10px;
    color: var(--gp-text);
    font-size: 16px;
}

.gpass-order-detail-delivery pre {
    max-height: 260px;
    margin: 0;
    padding: 13px;
    overflow: auto;
    border-radius: 13px;
    color: var(--gp-text);
    background: var(--gp-soft);
    font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gpass-order-copy {
    width: auto;
    margin-top: 12px;
    padding: 0 11px;
    color: var(--gp-green-dark);
    font-size: 12px;
}

.gpass-order-payment {
    margin-top: 20px;
}

.gpass-notification-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 3px;
    border-bottom: 1px solid var(--gp-line);
    color: var(--gp-text);
}

.gpass-notification-item:last-child {
    border-bottom: 0;
}

.gpass-notification-item strong {
    font-size: 15px;
}

.gpass-notification-item span {
    color: var(--gp-muted);
    font-size: 14px;
    line-height: 1.45;
}

.gpass-notification-item small {
    color: var(--gp-muted);
    font-size: 12px;
}

.gpass-notification-item:hover {
    color: var(--gp-green-dark);
}

.gpass-modal-copy {
    padding: 22px 23px 25px;
    color: var(--gp-muted);
    font-size: 15px;
    line-height: 1.7;
}

.gpass-modal-copy p {
    margin: 18px 0 0;
}

.gpass-security-grid {
    display: grid;
    gap: 13px;
}

.gpass-security-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gp-line);
}

.gpass-security-grid div:last-child {
    border-bottom: 0;
}

.gpass-security-grid strong {
    color: var(--gp-text);
    text-align: right;
}

.gpass-legal-panel {
    padding: 27px 30px;
    border: 1px solid var(--gp-line);
    border-radius: 31px;
    background: var(--gp-panel);
    box-shadow: var(--gp-shadow);
}

.gpass-legal-panel section + section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--gp-line);
}

.gpass-legal-panel h2 {
    margin: 0 0 8px;
    color: var(--gp-text);
    font-size: 20px;
}

.gpass-legal-panel p {
    margin: 0;
    color: var(--gp-muted);
    font-size: 15px;
    line-height: 1.75;
}

body.gpass-home .gpass-bottom-nav {
    position: fixed;
    z-index: 15;
    right: max(24px, calc((100% - 836px) / 2));
    bottom: 18px;
    left: max(24px, calc((100% - 836px) / 2));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    width: auto;
    max-width: 836px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid var(--gp-line);
    border-radius: 40px;
    background: color-mix(in srgb, var(--gp-panel) 94%, transparent);
    box-shadow: 0 17px 42px rgba(34, 81, 59, .15);
    backdrop-filter: blur(18px);
}

.gpass-bottom-nav a {
    display: flex;
    min-height: 67px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 33px;
    color: #7d8b84;
    flex-direction: column;
    font-size: 15px;
    font-weight: 800;
}

.gpass-bottom-nav a:hover,
.gpass-bottom-nav a.is-active {
    color: var(--gp-green-dark);
    background: rgba(4, 168, 92, .13);
}

.gpass-bottom-nav i {
    font-size: 28px;
    line-height: 1;
}

body.gpass-home .gpass-footer {
    padding: 25px 0 32px;
    border-top: 0;
    color: var(--gp-muted);
    background: var(--gp-bg);
    font-size: 19px;
}

@media (max-width: 680px) {
    body.gpass-home .app-container {
        width: min(100% - 32px, 480px);
    }

    body.gpass-home .app-header {
        padding: 17px 0 16px;
    }

    body.gpass-home .app-main {
        padding-top: 25px;
    }

    .gpass-menu {
        right: 16px;
    }

    .gpass-welcome-row {
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .gpass-welcome-row h1 {
        max-width: 230px;
        font-size: 31px;
    }

    .gpass-icon-button,
    .gpass-back-button {
        width: 54px;
        height: 54px;
        border-radius: 19px;
    }

    .gpass-view-actions {
        gap: 8px;
    }

    .gpass-balance-card {
        min-height: 205px;
        padding: 25px 23px 23px;
        border-radius: 31px;
    }

    .gpass-balance-label {
        font-size: 16px;
    }

    .gpass-balance-star {
        top: 29px;
        right: 24px;
        font-size: 28px;
    }

    .gpass-balance-value {
        margin-top: 20px;
        font-size: 54px;
    }

    .gpass-balance-value small {
        font-size: 17px;
    }

    .gpass-balance-meta {
        margin-top: 21px;
        font-size: 13px;
        letter-spacing: .3px;
    }

    .gpass-balance-meta button {
        padding: 9px 12px;
        font-size: 12px;
    }

    .gpass-shortcuts {
        gap: 10px;
        margin-top: 18px;
    }

    .gpass-shortcuts a {
        min-height: 111px;
        gap: 7px;
        border-radius: 24px;
    }

    .gpass-shortcut-icon {
        width: 49px;
        height: 49px;
        border-radius: 17px;
        font-size: 24px;
    }

    .gpass-shortcuts strong {
        font-size: 15px;
    }

    .gpass-notice {
        min-height: 61px;
        margin-top: 18px;
        padding: 0 15px;
        border-radius: 20px;
    }

    .gpass-notice span {
        padding: 5px 11px;
        font-size: 13px;
    }

    .gpass-notice em {
        font-size: 11px;
    }

    .gpass-section-title {
        margin: 30px 0 15px;
    }

    .gpass-section-title h2 {
        font-size: 22px;
    }

    .gpass-section-title a {
        font-size: 14px;
    }

    .gpass-service-card {
        min-height: 116px;
        gap: 14px;
        padding: 18px 17px;
        border-radius: 26px;
    }

    .gpass-service-icon {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 21px;
        font-size: 29px;
    }

    .gpass-service-copy strong,
    .gpass-business-product-copy strong {
        font-size: 18px;
    }

    .gpass-service-copy span,
    .gpass-business-product-copy span {
        font-size: 13px;
    }

    .gpass-page-heading {
        margin-bottom: 21px;
    }

    .gpass-page-heading h1 {
        font-size: 34px;
    }

    .gpass-page-heading p {
        font-size: 15px;
    }

    .gpass-page-heading-with-back {
        gap: 15px;
    }

    .gpass-search {
        height: 60px;
        padding: 0 18px;
        border-radius: 22px;
    }

    .gpass-search input {
        font-size: 15px;
    }

    .gpass-business-layout {
        grid-template-columns: 89px minmax(0, 1fr);
        gap: 13px;
        margin-top: 18px;
    }

    .gpass-category-list {
        gap: 3px;
    }

    .gpass-category-list button {
        min-height: 50px;
        padding: 6px 8px;
        border-radius: 16px;
        font-size: 14px;
        text-align: center;
    }

    .gpass-business-intro {
        min-height: 124px;
        margin-bottom: 13px;
        padding: 16px;
        border-radius: 23px;
    }

    .gpass-business-intro strong {
        font-size: 18px;
    }

    .gpass-business-intro span {
        font-size: 13px;
    }

    .gpass-business-product {
        min-height: 126px;
        gap: 10px;
        margin-top: 11px;
        padding: 14px 12px;
        border-radius: 23px;
    }

    .gpass-business-product .gpass-service-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 18px;
        font-size: 24px;
    }

    .gpass-business-price {
        font-size: 14px;
    }

    .gpass-business-price small {
        padding: 4px 8px;
        font-size: 10px;
    }

    .gpass-wallet-section {
        margin-top: 17px;
        padding: 22px 17px;
        border-radius: 25px;
    }

    .gpass-wallet-section h2 {
        margin-bottom: 17px;
        font-size: 20px;
    }

    .gpass-payment-grid,
    .gpass-amount-grid {
        gap: 10px;
    }

    .gpass-payment-option {
        min-height: 88px;
        gap: 8px;
        padding: 10px 9px;
        border-radius: 21px;
    }

    .gpass-payment-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 14px;
    }

    .logo-usdt {
        border-radius: 14px;
        font-size: 23px;
    }

    .gpass-payment-option strong {
        font-size: 13px;
    }

    .gpass-payment-option small {
        font-size: 12px;
    }

    .gpass-amount-grid button {
        min-height: 50px;
        border-radius: 15px;
        font-size: 15px;
    }

    .gpass-topup-info {
        padding: 14px 13px;
        border-radius: 17px;
    }

    .gpass-topup-address-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .gpass-topup-address-row code {
        flex: 1 1 calc(100% - 42px);
    }

    .gpass-topup-result {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .gpass-wallet-confirm {
        margin-top: 17px;
        padding: 16px 17px;
        border-radius: 25px;
    }

    .gpass-wallet-confirm span {
        font-size: 12px;
    }

    .gpass-wallet-confirm strong {
        font-size: 25px;
    }

    .gpass-primary-button {
        min-height: 52px;
        padding: 0 16px;
        border-radius: 19px;
        font-size: 14px;
    }

    .gpass-assets-grid {
        gap: 10px;
    }

    .gpass-assets-grid button {
        min-height: 145px;
        padding: 17px 15px;
        border-radius: 24px;
    }

    .gpass-asset-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 22px;
    }

    .gpass-assets-grid strong {
        font-size: 17px;
    }

    .gpass-assets-grid small {
        font-size: 12px;
    }

    .gpass-profile-title {
        margin-top: 30px;
    }

    .gpass-profile-title span {
        font-size: 12px;
    }

    .gpass-account-list {
        padding: 0 15px;
        border-radius: 25px;
    }

    .gpass-account-list a,
    .gpass-account-list button {
        min-height: 83px;
        gap: 13px;
    }

    .gpass-account-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 16px;
        font-size: 21px;
    }

    .gpass-account-list strong {
        font-size: 17px;
    }

    .gpass-account-list > a > i:last-child,
    .gpass-account-list > button > i:last-child {
        font-size: 20px;
    }

    .gpass-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .gpass-modal-panel {
        max-height: calc(100vh - 24px);
        border-radius: 25px;
    }

    body.gpass-home .gpass-bottom-nav {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 7px;
        border-radius: 31px;
    }

    .gpass-bottom-nav a {
        min-height: 58px;
        border-radius: 25px;
        font-size: 12px;
    }

    .gpass-bottom-nav i {
        font-size: 24px;
    }

    body.gpass-home .gpass-footer {
        padding-bottom: 25px;
        font-size: 16px;
    }
}
