:root {
    --ink: #111827;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --page: #f4f7fb;
    --brand: #16325c;
    --brand-deep: #0b1f3a;
    --accent: #1677ff;
    --accent-soft: #eaf3ff;
    --success: #0f9f6e;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding-bottom: 76px;
    color: var(--ink);
    background: var(--page);
    overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    color: #fff;
    background: rgba(11, 31, 58, 0.96);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.16);
    backdrop-filter: blur(14px);
}
.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}
.brand-mark {
    width: 68px;
    height: 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: transparent url("/assets/logo.png") center / contain no-repeat;
}
.brand-mark img, .brand-mark video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.brand-name { display: none; }
.desktop-nav, .header-account { display: none; }
.desktop-nav {
    align-items: center;
    gap: 28px;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    font-weight: 700;
}
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: #fff; }
.header-account {
    min-height: 38px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
}
.menu-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    cursor: pointer;
}
.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #fff;
}
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    z-index: 25;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: grid; animation: menuIn .18s ease both; }
.mobile-menu a {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 750;
}
.mobile-menu a:hover { background: var(--surface-soft); }

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    scroll-margin-top: 84px;
}
.hero {
    width: 100%;
    min-height: 470px;
    display: grid;
    align-items: end;
    gap: 24px;
    padding: 46px max(16px, calc((100% - 1180px) / 2)) 34px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 23, 46, .97) 0%, rgba(13, 45, 82, .9) 48%, rgba(12, 53, 96, .6) 100%),
        var(--hero-background, url("/assets/invoice.jpg")) center 38% / cover no-repeat;
    animation: heroPan 18s ease-in-out infinite alternate;
}
.hero-copy { max-width: 620px; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}
.hero .eyebrow { color: #7db7ff; }
h1, h2, h3, p { margin-top: 0; }
h1 {
    max-width: 620px;
    margin-bottom: 14px;
    font-size: 36px;
    line-height: 1.07;
    letter-spacing: 0;
}
h1 em { display: block; color: #7db7ff; font-style: normal; }
h2 { margin-bottom: 0; font-size: 22px; line-height: 1.25; }
h3 { margin-bottom: 6px; font-size: 17px; line-height: 1.3; }
.hero-text, .muted { color: var(--muted); line-height: 1.65; }
.hero-text {
    max-width: 520px;
    margin-bottom: 0;
    color: rgba(255,255,255,.76);
    font-size: 15px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .ghost-button {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    color: #fff;
}
.hero-trust {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    color: rgba(255,255,255,.66);
    font-size: 12px;
}
.hero-trust span { min-width: 0; line-height: 1.45; }
.hero-trust strong { color: #fff; }
.promo-shell { display: none; }
.mobile-promo {
    display: grid;
    gap: 8px;
    padding-top: 16px;
}
.mobile-promo-card {
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 132px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.mobile-promo-media {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    transition: opacity .3s ease, transform .45s ease;
}
.mobile-promo-card.is-changing .mobile-promo-media { animation: promoIn .45s ease both; }
.mobile-promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.mobile-promo-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: var(--line-strong);
    transition: width .2s ease, background .2s ease;
}
.mobile-promo-dots button.active { width: 20px; background: var(--accent); }

.primary-button, .ghost-button, .link-button {
    min-height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 150px;
    padding: 0 18px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(22, 50, 92, .18);
}
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
}
.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
}
.primary-button:hover, .ghost-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.full { width: 100%; }

.products-section { padding: 32px 0 0; }
.section-heading, .category-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.section-heading > div, .category-heading > div { min-width: 0; }
.section-heading .link-button { flex: 0 0 auto; font-size: 12px; }
.section-heading .eyebrow, .category-heading .eyebrow { margin-bottom: 5px; }
.popular-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 8px;
    margin: 0 -16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.popular-grid::-webkit-scrollbar { display: none; }
.popular-grid .popular-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
}
.brand-grid, .product-list {
    animation: gridRefresh .22s ease both;
}
.reveal-item {
    animation: cardIn .42s ease both;
    animation-delay: var(--delay, 0ms);
}
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .42s ease, transform .42s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.flash-update {
    animation: balanceFlash 1.1s ease both;
}
.popular-grid {
    gap: 10px;
}
.popular-card, .brand-card, .product-card {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.popular-card:hover, .brand-card:hover, .product-card:hover {
    transform: translateY(-2px);
    border-color: #b9cdf0;
    box-shadow: var(--shadow-sm);
}
.popular-card:active, .brand-card:active, .product-card:active, .primary-button:active, .ghost-button:active {
    transform: scale(.985);
}
.popular-card {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    text-align: left;
}
.popular-logo, .logo-chip, .category-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}
.popular-logo img, .logo-chip img, .category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.popular-copy { min-width: 0; display: grid; gap: 4px; }
.popular-copy strong {
    min-height: 36px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
}
.popular-copy small { color: var(--muted); font-size: 11px; }
.popular-copy em { color: var(--brand); font-size: 12px; font-style: normal; font-weight: 800; }
.arrow-chip {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-style: normal;
}
.popular-card .arrow-chip { position: absolute; right: 12px; bottom: 12px; }
.popular-card:hover .arrow-chip, .brand-card:hover .arrow-chip, .product-card:hover .arrow-chip, .link-button:hover b {
    transform: translateX(3px);
}
.arrow-chip, .link-button b { transition: transform .18s ease; }

.features {
    margin: 22px 0 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}
.features article {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px;
    background: #fff;
}
.feature-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}
.feature-icon svg, .category-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.features h3 { margin: 0 0 3px; font-size: 12px; }
.features p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }

.category-heading { align-items: start; }
.category-heading .muted { margin: 6px 0 0; font-size: 13px; }
.search-panel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
input, select { min-height: 44px; padding: 0 12px; }
textarea { padding: 12px; }
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}
.search-panel button {
    min-width: 68px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink-soft);
    cursor: pointer;
    font-weight: 800;
}
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 10px;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button, .catalog-breadcrumb button {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}
.category-tabs button { min-height: 36px; padding: 0 14px; }
.category-tabs button.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 12px;
}
.catalog-breadcrumb button { min-height: 30px; padding: 0 10px; }
.catalog-breadcrumb span { color: var(--line-strong); }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.brand-card {
    min-height: 126px;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 14px;
    border-radius: var(--radius);
    text-align: left;
}
.brand-card strong {
    padding-right: 30px;
    font-size: 13px;
    line-height: 1.35;
}
.brand-card > span:not(.category-icon) { color: var(--muted); font-size: 11px; line-height: 1.4; }
.brand-card .arrow-chip { position: absolute; right: 12px; bottom: 12px; }
.brand-logo { background: #fff; }

.checkout-section, .track-section, .account-section { padding-top: 34px; }
.checkout-shell {
    display: grid;
    gap: 14px;
}
.checkout-main, .order-panel, .track-card, .account-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.checkout-main, .order-panel, .track-card, .account-card { padding: 18px; }
.checkout-main h2, .track-card h2, .account-card h2 { font-size: 20px; }
.product-list {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.product-card {
    min-height: 162px;
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 13px;
    border-radius: var(--radius);
    text-align: left;
}
.product-card.active {
    border-color: var(--accent);
    background: #f7fbff;
    box-shadow: 0 0 0 2px rgba(22,119,255,.08);
}
.product-card strong { font-size: 13px; line-height: 1.35; }
.product-card > span:not(.logo-chip) { color: var(--muted); font-size: 11px; line-height: 1.4; }
.price { margin: auto 0 0; color: var(--brand); font-size: 13px; font-weight: 900; }
.checkout-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.buyer-panel, .selected-product, .nickname-panel, .order-receipt, .account-summary {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}
.checkout-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.checkout-trust span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(22,119,255,.16);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}
.buyer-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 13px;
}
.buyer-panel div:first-child { display: grid; gap: 4px; }
.buyer-panel strong { color: var(--brand); font-size: 13px; }
.buyer-panel span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.buyer-login, .account-login { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.form-grid { display: grid; gap: 12px; }
.form-grid label, .payment-method {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}
.payment-method { margin-top: 12px; }
.payment-notice {
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(217,119,6,.2);
    border-radius: var(--radius-sm);
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    line-height: 1.55;
}
.voucher-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin-top: 12px;
}
.voucher-panel label {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}
.voucher-panel p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}
.voucher-panel p.success { color: var(--success); }
.voucher-panel p.error { color: var(--danger); }
.selected-product {
    margin: 14px 0;
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}
.selected-product strong { color: var(--ink); }
.summary-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.summary-head small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.summary-grid span {
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow-wrap: anywhere;
}
.summary-grid b {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
}
.nickname-panel { margin-top: 12px; padding: 11px 12px; font-size: 12px; line-height: 1.5; }
.nickname-panel.success { border-color: rgba(15,159,110,.24); background: #f0fdf8; color: var(--success); }
.nickname-panel.error { border-color: rgba(220,38,38,.2); background: #fff7f7; color: var(--danger); }
.nickname-panel.checking { color: var(--accent); }
.nickname-panel.checking::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 6px;
    margin-left: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), transparent, var(--accent));
    background-size: 180% 100%;
    animation: shimmer 1s linear infinite;
}
.nickname-panel strong, .nickname-panel span { display: block; }
.order-panel { align-self: start; }
.empty-state {
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 13px;
    line-height: 1.6;
}
.empty-state.compact { padding: 14px; font-size: 12px; }
.action-state {
    display: grid;
    gap: 8px;
}
.action-state strong { color: var(--ink); }
.action-state span { color: var(--muted); }
.action-state .ghost-button { width: fit-content; min-height: 36px; }
.order-card { display: grid; gap: 12px; margin-top: 14px; }
.order-card:not([hidden]), .deposit-result:not([hidden]) {
    animation: panelIn .34s ease both;
}
.order-card img {
    width: min(240px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.order-receipt { display: grid; gap: 8px; padding: 12px; }
.receipt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.receipt-head button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 900;
}
.order-receipt p { margin: 0; font-size: 12px; }
.status-pill {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px !important;
    font-weight: 900;
}
.status-pill.success { background: #dcfce7; color: #087a55; }
.status-pill.failed { background: #fee2e2; color: #b91c1c; }
.status-pill.processing { background: #dbeafe; color: #1d4ed8; }
.status-pill.waiting_payment { background: #ffedd5; color: #c2410c; }
.refund-info {
    margin: 3px 0 0 !important;
    padding: 9px 10px;
    border: 1px solid rgba(15,159,110,.2);
    border-radius: var(--radius-sm);
    background: #f0fdf8;
    color: #087a55;
    font-size: 11px !important;
    line-height: 1.55;
}
.invoice-link { text-align: center; text-decoration: none; }
.success-animation {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--success);
    font-size: 13px;
}
.success-animation span {
    width: 48px;
    height: 48px;
    position: relative;
    border-radius: 50%;
    background: var(--success);
    animation: pop .45s ease both;
}
.success-animation span::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 18px;
    height: 10px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg);
}
.track-card, .account-card { display: grid; gap: 16px; }
.track-form { display: grid; gap: 8px; }
.track-result {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
}
.track-result-card {
    display: grid;
    gap: 7px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}
.track-result-card strong { color: var(--ink); }
.track-result-card span:not(.status-pill), .track-result-card small { color: var(--muted); }
.account-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px;
}
.account-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}
.account-avatar svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.account-summary strong { display: block; color: var(--brand); font-size: 14px; overflow-wrap: anywhere; }
.account-summary p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.account-actions { display: grid; gap: 8px; }
.account-actions a { text-align: center; }
.buyer-history {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.history-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}
.history-heading h3 { margin: 0; }
.history-heading .ghost-button { min-height: 36px; padding: 0 12px; }
.history-list { display: grid; gap: 8px; }
.history-item {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    text-align: left;
}
.history-item strong {
    display: block;
    color: var(--ink);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}
.mini-status {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
}
.mini-status.success { background: #dcfce7; color: #087a55; }
.mini-status.failed { background: #fee2e2; color: #b91c1c; }
.mini-status.processing { background: #dbeafe; color: #1d4ed8; }
.mini-status.waiting_payment { background: #ffedd5; color: #c2410c; }
.deposit-panel {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.deposit-panel h3 { margin-bottom: 4px; }
.deposit-panel .muted { margin-bottom: 0; font-size: 12px; }
.deposit-form {
    width: 100%;
    display: grid;
    gap: 10px;
}
.deposit-form input, .deposit-form button { width: 100%; }
.deposit-form .primary-button { width: 100%; }
.deposit-result {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}
.deposit-result img {
    width: min(220px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.deposit-result p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.site-footer {
    margin-top: 38px;
    padding: 22px max(16px, calc((100% - 1180px) / 2)) calc(84px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    background: var(--brand-deep);
    color: #fff;
}
.site-footer p, .site-footer a, .site-footer span { color: rgba(255,255,255,.66); font-size: 12px; }
.site-footer div { min-width: 0; display: grid; gap: 8px; align-content: start; }
.site-footer strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}
.footer-intro {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-intro p {
    max-width: 520px;
    margin: 0;
    line-height: 1.55;
}
.footer-brand { margin-bottom: 2px; color: #fff; }
.footer-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: none;
}
.footer-brand .brand-mark img {
    object-fit: cover;
}
.footer-links {
    gap: 7px;
}
.footer-links a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    line-height: 1.25;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.footer-links a:hover {
    color: #fff;
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 28px rgba(15,23,42,.07);
    backdrop-filter: blur(16px);
}
.bottom-nav a {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.toast {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 82px;
    z-index: 50;
    display: none;
    padding: 13px 14px;
    border-radius: var(--radius);
    background: var(--brand-deep);
    color: #fff;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 750;
}
.toast.show { display: block; animation: toastIn .22s ease both; }
button[disabled] {
    position: relative;
    cursor: wait;
    opacity: .82;
}
button[disabled]::after {
    content: "";
    width: 13px;
    height: 13px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,.38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
.skeleton-card {
    min-height: 140px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #fff, #edf2f7, #fff);
    background-size: 220% 100%;
    animation: shimmer 1.25s infinite linear;
}

.seo-main {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 104px 0 40px;
}
.seo-hero {
    min-height: auto;
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(22,50,92,.96), rgba(11,31,58,.92)),
        var(--brand-deep);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.seo-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
}
.seo-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.76);
    line-height: 1.7;
}
.seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.seo-section {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.seo-grid {
    display: grid;
    gap: 10px;
}
.seo-tile {
    min-width: 0;
    display: grid;
    gap: 7px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.seo-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(22,119,255,.32);
    box-shadow: var(--shadow-sm);
}
.seo-tile span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.seo-tile strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}
.seo-tile small {
    color: var(--muted);
    line-height: 1.55;
}
.seo-products {
    display: grid;
    gap: 10px;
}
.seo-product-card {
    min-width: 0;
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.seo-product-card strong {
    color: var(--ink);
    line-height: 1.35;
}
.seo-product-card span {
    color: var(--muted);
    font-size: 12px;
}
.seo-product-card b {
    color: var(--brand);
    font-size: 14px;
}
.seo-product-card a, .seo-copy a {
    color: var(--accent);
    font-weight: 800;
}
.seo-copy {
    color: var(--ink-soft);
    line-height: 1.75;
}
.seo-copy h2 {
    margin-top: 8px;
    color: var(--ink);
    font-size: 18px;
}
.seo-copy p, .seo-copy li {
    color: var(--ink-soft);
}
.seo-copy ol {
    margin: 0;
    padding-left: 20px;
}
.seo-footer {
    grid-template-columns: 1fr;
}
.seo-footer span {
    color: rgba(255,255,255,.66);
    font-size: 13px;
}

@keyframes shimmer { to { background-position-x: -220%; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes menuIn { from { transform: translateY(-6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes promoIn { from { opacity: .45; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gridRefresh { from { opacity: .72; } to { opacity: 1; } }
@keyframes balanceFlash { 0% { background: transparent; } 18% { background: #dcfce7; color: #087a55; } 100% { background: transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heroPan {
    from { background-position: center 38%; }
    to { background-position: center 43%; }
}

@media (max-width: 430px) {
    .checkout-trust { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: 1fr; }
    .voucher-panel { grid-template-columns: 1fr; }
    .buyer-login, .account-login { grid-template-columns: 1fr; }
    .history-heading { align-items: start; }
}

@media (min-width: 700px) {
    body { padding-bottom: 0; }
    .section { width: min(1180px, calc(100% - 48px)); }
    .popular-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        padding: 0;
        margin: 0;
        scroll-snap-type: none;
    }
    .popular-grid .popular-card {
        min-width: 0;
        flex: initial;
        scroll-snap-align: none;
    }
    .mobile-promo { display: none; }
    .hero {
        min-height: 520px;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
        align-items: center;
        padding: 54px max(24px, calc((100% - 1180px) / 2));
    }
    .hero.no-promo { grid-template-columns: minmax(0, 620px); }
    h1 { font-size: 58px; }
    .promo-shell { display: grid; gap: 12px; }
    .hero-video-card {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: var(--radius-lg);
        background: rgba(255,255,255,.08);
        box-shadow: 0 24px 60px rgba(0,0,0,.18);
        cursor: pointer;
    }
    .promo-media { width: 100%; height: 100%; display: block; transition: opacity .3s ease, transform .45s ease; }
    .promo-card.is-changing .promo-media { animation: promoIn .45s ease both; }
    .hero-dots { display: flex; justify-content: center; gap: 7px; }
    .hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.34); }
    .hero-dots button.active { width: 24px; background: #fff; }
    .popular-card { min-height: 132px; grid-template-columns: 52px minmax(0, 1fr); align-items: start; }
    .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-heading { align-items: end; }
    .search-panel { width: 340px; }
    .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-shell { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); }
    .track-card { grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); align-items: center; }
    .track-result { grid-column: 1 / -1; }
    .account-card { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); align-items: center; }
    .account-summary, .account-actions { grid-column: 2; }
    .account-login { grid-column: 1; }
    .deposit-panel { grid-column: 1 / -1; }
    .deposit-form { grid-template-columns: minmax(0, 1fr) auto; }
    .deposit-form .primary-button { width: auto; }
    .deposit-result { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .deposit-result img { grid-column: 1 / -1; }
    .site-footer {
        grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, auto));
        align-items: start;
        padding-bottom: 30px;
    }
    .footer-intro {
        grid-column: auto;
        padding-bottom: 0;
        border-bottom: 0;
    }
    .seo-footer { grid-template-columns: 1.2fr repeat(2, minmax(160px, auto)); }
    .seo-main { width: min(1180px, calc(100% - 48px)); }
    .seo-hero { padding: 34px; }
    .seo-hero h1 { font-size: 44px; }
    .seo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seo-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bottom-nav { display: none; }
    .toast { left: auto; right: 24px; bottom: 24px; width: min(380px, calc(100% - 48px)); }
}

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

@media (min-width: 960px) {
    .header-inner { min-height: 70px; }
    .brand-name { display: inline; font-size: 15px; }
    .desktop-nav, .header-account { display: flex; }
    .menu-button { display: none; }
    .products-section { padding-top: 42px; }
    .popular-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .popular-card { min-height: 160px; grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .product-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .seo-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .checkout-main, .order-panel, .track-card, .account-card { padding: 22px; }
}
