:root { --muted: #a4a7b2; }
.startup-recovery { max-width: 520px; margin: 10vh auto; padding: 24px; }
.startup-recovery h1 { font-size: 24px; line-height: 1.4; }
.startup-recovery p { color: #c0c1ca; line-height: 1.7; }
.startup-recovery button { min-height: 44px; margin-top: 12px; padding: 10px 18px; color: #151006; background: #e6ad36; border: 1px solid #e6ad36; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer; }
.header-signin-icon { display: none; }
.checkout-demo-label { margin: 8px 0 18px; color: #d9c28f; font-size: .8rem; line-height: 1.6; }
.package-section + .package-section { margin-top: 24px; }
.checkout-main, .topup-panel { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.product-page .product-hero { min-height: 0; }
.package-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.package-toolbar small { color: #b1b4bf; font-size: .75rem; }
.package-card small { color: #b9bbc5; }
.package-card, .payment-option { border-color: #676b78; }
.more-packages { margin-top: 12px; }
.more-packages summary, .payment-guide summary { min-height: 44px; padding: 12px 0; color: #efc369; cursor: pointer; font-size: .85rem; }
.more-packages[open] summary { margin-bottom: 8px; }
.field select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #757987; border-radius: 8px; color: #f6f6f8; background: #13151c; font: inherit; }
.field input { border-color: #757987; }
.field small, .summary-status small, .summary-total span { color: #c0c1ca; }
.field input::placeholder { color: #aaadb8; }
.password-control { position: relative; }
.password-control input { padding-right: 116px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 72px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #f4c46a; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.password-toggle:hover { background: #29241a; }
.modal-form .field input { min-height: 52px; font-size: 1rem; }
.modal-form > p { color: #c4c6d0; }
.modal-form #login-feedback { color: #f0b3b3; margin: 0; }
.modal-form #login-feedback:empty { display: none; }
.consent { min-height: 44px; }
.summary-status .summary-demo, .summary-total small { color: #d5bd88; font-size: .7rem; }
.summary-card { gap: 16px; }
.checkout-button { min-height: 48px; }
.mobile-menu, .mobile-search { min-height: 44px; }
.category-tabs { overflow-x: auto; }
.flow-empty { padding: 42px 20px; text-align: center; }
.flow-empty h1, .flow-empty h3 { line-height: 1.3; }
.flow-footnote { color: #b1b4bf; font-size: .8rem; line-height: 1.6; }
.transactions-page { max-width: 1100px; min-height: calc(100dvh - 65px); padding-top: 56px; }
.customer-feed { width: min(100%, 960px); margin: 0 auto; }
.transaction-heading { margin: 20px 0 28px; }
.transaction-heading h1, .invoice-heading h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.035em; }
.transaction-heading p { max-width: 620px; }
.transactions-page .invoice-lookup { width:min(100%,672px); margin:0 auto 56px; padding:40px; border:1px solid #292c37; border-radius:22px; background:#070810; text-align:center; }
.lookup-intro { display:flex; flex-direction:column; align-items:center; }
.lookup-symbol { display:grid; place-items:center; width:48px; height:48px; color:#f4c46a; background:#292314; border:1px solid #76613a; border-radius:14px; }
.lookup-symbol svg { width:24px; height:24px; }
.lookup-kicker { margin:20px 0 6px; color:#edc77e; font-size:.8rem; line-height:1.5; font-weight:600; }
.invoice-lookup h1 { margin:0; color:#fafafa; font-size:32px; line-height:1.1; font-weight:800; letter-spacing:-.025em; }
.lookup-description { max-width:448px; margin:8px 0 0; color:#b1b4bf; font-size:14px; line-height:1.625; }
.invoice-lookup form { display:flex; flex-direction:column; gap:12px; width:min(100%,448px); margin:24px auto 0; }
.invoice-search-field { display:flex; align-items:center; gap:10px; height:48px; padding:0 16px; border:1px solid #717581; border-radius:999px; color:#b1b4bf; background:#11121b; }
.invoice-search-field > svg,.invoice-lookup .primary-button > svg { flex-shrink:0; width:16px; height:16px; }
.invoice-search-field input { width:100%; min-width:0; height:46px; padding:0; border:0; border-radius:0; color:#fafafa; background:transparent; font-family:inherit; font-size:14px; line-height:20px; }
.invoice-search-field input::placeholder { color:#b1b4bf; }
.invoice-search-field:focus-within { border-color:#f4c46a; }
.invoice-lookup .primary-button { position:relative; gap:6px; min-height:36px; margin:0; padding:0 10px; border:1px solid transparent; border-radius:999px; color:#151006; background:#ffbb02; font-size:14px; line-height:20px; font-weight:500; transform:none; }
.invoice-lookup .primary-button::after { content:""; position:absolute; inset:-4px 0; }
.invoice-lookup .primary-button:hover:not(:disabled) { background:#ffd15a; transform:none; }
.invoice-lookup .primary-button:disabled { opacity:.5; }
.invoice-lookup #invoice-lookup-hint { margin:0; color:#b1b4bf; font-size:11px; line-height:1.65; }
.invoice-lookup .field-error { margin:0; font-size:12px; line-height:1.6; text-align:left; }
.invoice-lookup .field-error:empty { display:none; }
.lookup-notes { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:24px 0 0; padding:0; list-style:none; }
.lookup-notes li { padding:4px 10px; border:1px solid #292c37; border-radius:999px; color:#c4c6d0; background:#0c0f18; font-size:11px; line-height:16.5px; }
.app-shell:has(.transactions-page) .rail-link .icon { width:20px; height:20px; stroke-width:2; }
.app-shell:has(.transactions-page) .rail-link.is-active { border:1px solid #76613a; background:#292314; }
.app-shell:has(.transactions-page) .header-action { min-width:0; min-height:36px; gap:6px; padding:0 20px 0 6px; border:1px solid transparent; color:#fff; background:#795700; font-size:12.8px; line-height:19.2px; }
.app-shell:has(.transactions-page) .header-action::after { inset:-4px 0; }
.app-shell:has(.transactions-page) .header-signin-icon { display:inline-flex; }
.feed-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; text-align: left; }
.feed-heading h2 { margin-bottom: 8px; font-size: 20px; }
.feed-heading .eyebrow { padding: 5px 10px; margin-bottom: 10px; border: 1px solid #6f572a; border-radius: 14px; background: #302713; font-size: 10px; }
.feed-heading p { margin-bottom: 0; font-size: .85rem; }
#feed-update { max-width: 240px; color: #d9c18b; font-size: .75rem; }
.customer-table-scroll { border: 1px solid #343741; border-radius: 10px; }
.customer-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .85rem; background: #0e1017; }
.customer-table th { padding: 12px; background: #171a24; color: #c4c5cf; text-align: left; font-size: .75rem; line-height: 1.5; font-weight: 500; }
.customer-table th:first-child { width: 42%; }
.customer-table td { padding: 16px 12px; border-top: 1px solid #292c35; vertical-align: middle; font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.customer-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.customer-order-title, .customer-order-item { display: block; }
.customer-order-title { margin-bottom: 2px; font-size: .9rem; font-weight: 650; }
.customer-order-item { color: #c4c6d0; }
.customer-order-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; color: #b1b4bf; font-size: .75rem; }
.customer-order-meta .invoice-code { font-size: inherit; }
.invoice-history summary:focus-visible { outline: 3px solid #f4c46a; outline-offset: 3px; }
.customer-table .customer-status { font-size: .75rem; line-height: 1.5; }
.invoice-code { font-size: .85rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.customer-status { display: inline-flex; padding: 2px 6px; border-radius: 5px; color: #f3ce80; background: #302713; font-size: 10px; line-height: 16px; }
.customer-status--paid, .customer-status--processing { color: #c2ddfa; background: #192d47; }
.customer-status--completed, .customer-status--refunded { color: #bde7cb; background: #183725; }
.customer-status--cancelled, .customer-status--expired, .customer-status--failed { color: #fac1b9; background: #402226; }
.customer-status--refunding { color: #ead5fc; background: #332546; }
.invoice-page { max-width: 1100px; padding-bottom: 60px; }
.invoice-page .breadcrumb { margin: 0 0 24px; }
.invoice-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 26px; }
.invoice-heading > div { min-width: 0; }
.invoice-heading p { margin: 8px 0 0; font-size: .8rem; }
.invoice-reference { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.text-button { min-height: 44px; padding: 8px 0; }
.invoice-status-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid #5a5d6c; border-radius: 10px; background: #11141d; }
.invoice-status-panel h2 { max-width: 600px; margin: 12px 0 0; font-size: .95rem; font-weight: 500; line-height: 1.6; }
.invoice-status-panel > small { color: #c4c6d0; font-size: .75rem; }
.invoice-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 32px 0; }
.invoice-timeline li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; min-width: 0; font-size: .8rem; color: #afb2be; }
.invoice-step-node { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #767987; border-radius: 50%; font-variant-numeric: tabular-nums; }
.invoice-step-node svg { width: 18px; height: 18px; }
.invoice-step-label { grid-column: 1 / -1; padding-right: 16px; margin-top: 12px; line-height: 1.5; }
.invoice-step-track { position: absolute; top: 17px; left: 48px; right: 12px; height: 3px; overflow: hidden; border-radius: 2px; background: #676b78; }
.invoice-step-flow { display: block; width: 100%; height: 100%; background: #e6ad36; transform: scaleX(0); transform-origin: left; }
.invoice-timeline .is-complete, .invoice-timeline .is-active { color: #f5cd7e; }
.invoice-timeline .is-complete .invoice-step-node, .invoice-timeline .is-active .invoice-step-node { background: #e6ad36; color: #171007; border-color: #e6ad36; }
.invoice-timeline .is-complete .invoice-step-flow { transform: scaleX(1); }
.invoice-timeline .is-active .invoice-step-node::after { content: ""; position: absolute; inset: -5px; border: 1px solid #e6ad36; border-radius: inherit; animation: invoice-step-pulse 2.4s ease-out infinite; }
.invoice-timeline .is-active .invoice-step-flow { width: 30%; background: linear-gradient(90deg, transparent, #e6ad36 55%, #f5cd7e); animation: invoice-flow-horizontal 2.4s linear infinite; }
@keyframes invoice-step-pulse { from { transform: scale(.9); opacity: .65; } to { transform: scale(1.16); opacity: 0; } }
@keyframes invoice-flow-horizontal { from { transform: translateX(-105%); } to { transform: translateX(440%); } }
@keyframes invoice-flow-vertical { from { transform: translateY(-105%); } to { transform: translateY(440%); } }
.invoice-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 24px; }
.invoice-payment, .invoice-details { min-width: 0; padding: 26px; border: 1px solid #565969; border-radius: 12px; background: #0e1017; }
.invoice-details > h2, .invoice-card-heading h2 { font-size: 1.1rem; }
.invoice-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.invoice-card-heading h2 { margin: 0; }
.invoice-card-heading > span { padding: 5px 8px; border-radius: 4px; color: #efc369; background: #302713; font-size: .7rem; }
.invoice-demo-warning { padding: 13px 16px; margin-bottom: 22px; border: 1px solid #aa8744; border-radius: 6px; color: #f1d39d; background: #272011; font-size: .82rem; line-height: 1.7; }
.qr-preview { display: flex; flex-direction: column; align-items: center; width: min(100%, 260px); margin: 26px auto; padding: 18px; border-radius: 8px; background: #fff; color: #292929; }
.qr-preview svg { width: 160px; max-width: 100%; }
.qr-preview strong { margin: 10px 0 6px; font-size: .9rem; }
.qr-preview > span { font-size: .7rem; text-align: center; }
.invoice-amount { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.invoice-amount span { color: #bfc2cb; font-size: .85rem; }
.invoice-amount strong { color: #f3c362; font-size: 2rem; font-variant-numeric: tabular-nums; }
.invoice-countdown { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 16px; border: 1px solid #676b78; border-radius: 8px; }
.invoice-countdown > span, .invoice-countdown small { color: #c5c7d1; font-size: .8rem; }
.invoice-countdown strong { color: #f0c873; font-variant-numeric: tabular-nums; }
.invoice-countdown small { grid-column: 1 / -1; }
.payment-guide { margin-top: 12px; }
.payment-guide ol { padding-left: 22px; color: #c4c6d0; font-size: .8rem; line-height: 1.8; }
.payment-guide li + li { margin-top: 8px; }
.payment-placeholder { padding: 28px 0; }
.payment-placeholder p { margin: 12px 0; font-size: .9rem; }
.invoice-demo-actions { padding-top: 22px; border-top: 1px solid #565969; }
.invoice-demo-actions > span { display: block; margin-bottom: 12px; color: #c4c6d0; font-size: .8rem; }
.invoice-demo-actions .secondary-button { width: 100%; }
.invoice-details dl, .confirm-order dl { margin: 24px 0; }
.invoice-details dl > div, .confirm-order dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; font-size: .85rem; }
.invoice-details dt, .confirm-order dt { color: #c0c3cd; flex: 0 0 32%; }
.invoice-details dd, .confirm-order dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; }
.invoice-history { margin-top: 20px; border-top: 1px solid #565969; }
.invoice-history summary { min-height: 44px; padding: 14px 0; color: #efc369; font-size: .85rem; cursor: pointer; }
.invoice-history ol { margin: 0; padding: 0; list-style: none; }
.invoice-history li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid #343741; font-size: .85rem; }
.invoice-history time, .invoice-history li > span { color: #c4c6d0; font-size: .75rem; }
.invoice-detail-total { margin-top: 10px; border-top: 1px solid #676b78; font-weight: 700; }
.invoice-detail-total dd { color: #f1c86e; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.confirm-order h3 { margin-top: 24px; font-size: 1.1rem; }
.confirm-order > p { font-size: .85rem; }
.verification-state { margin: 18px 0; padding: 12px; border: 1px solid #676b78; border-radius: 6px; color: #c4c6d0; font-size: .85rem; line-height: 1.6; }
.confirm-product { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding: 16px; background: #171a24; border-radius: 8px; }
.confirm-product .product-art { width: 48px; height: 48px; flex: 0 0 48px; min-width: 0; margin: 0; }
.confirm-product .product-art strong { font-size: 1rem; }
.confirm-product > div:not(.product-art) { flex: 1; min-width: 140px; }
.confirm-product h3, .confirm-product p { margin: 0; }
.confirm-product p { margin-top: 6px; color: #c0c3cd; font-size: .8rem; }
.confirm-product > strong { color: #f1c86e; }
.invoice-costs { padding: 16px 0; margin: 0; }
.invoice-costs > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: .85rem; }
.invoice-costs dt { color: #c0c3cd; }
.invoice-costs dd { margin: 0; text-align: right; }
.invoice-amount .text-button { color: #f1c86e; font-size: .8rem; }
.invoice-lookup, .customer-table-scroll, .invoice-payment, .invoice-details { border-color: #676b78; }
@media (max-width: 700px) {
  .invoice-heading, .invoice-status-panel { align-items: flex-start; flex-direction: column; gap: 14px; }
  .invoice-layout { grid-template-columns: 1fr; gap: 16px; }
  .invoice-payment, .invoice-details { padding: 20px 16px; }
  .invoice-timeline { grid-template-columns: 1fr; margin: 26px 0; }
  .invoice-timeline li { column-gap: 14px; min-height: 36px; padding-bottom: 40px; }
  .invoice-timeline li:last-child { padding-bottom: 0; }
  .invoice-step-label { grid-column: 2; margin-top: 0; padding-right: 0; }
  .invoice-step-track { top: 44px; bottom: 8px; left: 17px; right: auto; width: 3px; height: auto; }
  .invoice-step-flow { transform: scaleY(0); transform-origin: top; }
  .invoice-timeline .is-complete .invoice-step-flow { transform: scaleY(1); }
  .invoice-timeline .is-active .invoice-step-flow { width: 100%; height: 30%; background: linear-gradient(180deg, transparent, #e6ad36 55%, #f5cd7e); animation-name: invoice-flow-vertical; }
  .customer-table-scroll { width: 100%; border: 0; border-radius: 0; }
  .customer-table { display: block; background: transparent; }
  .customer-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .customer-table tbody { display: grid; gap: 12px; }
  .customer-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid #565969; border-radius: 10px; background: #0e1017; }
  .customer-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .customer-table td:first-child { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid #343741; }
  .customer-table td:nth-child(2)::before, .customer-table td:nth-child(3)::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #b1b4bf; font-size: .75rem; }
  .customer-table td:nth-child(3) { text-align: right; }
  .customer-table td:nth-child(4) { grid-column: 1 / -1; }
  .transactions-page { width: calc(100% - 32px); padding-top: 32px; }
  .transactions-page .feed-heading h2 { margin-bottom: 4px; font-size: 18px; line-height: 28px; }
  .transactions-page .feed-heading > div { display: flex; flex-direction: column; align-items: flex-start; }
  .transactions-page .feed-heading p { font-size: .85rem; line-height: 1.6; }
  .transactions-page .feed-heading .eyebrow { margin-bottom: 8px; font-weight: 500; }
  .transactions-page .feed-heading .eyebrow { padding-block: 4px; line-height: 15px; }
  .invoice-reference { gap: 4px 12px; }
  .invoice-reference .invoice-code { font-size: .8rem; }
  .confirm-actions { grid-template-columns: 1fr; }
  .summary-total small { font-size: .65rem; }
}
@media(max-width:767px) {
  .transactions-page { width:calc(100% - 32px); padding-top:32px; }
  .transactions-page .invoice-lookup { margin-bottom:40px; padding:24px; }
  .invoice-lookup h1 { font-size:24px; }
  .invoice-search-field input { font-size:16px; }
  .app-shell:has(.transactions-page) .mobile-menu .icon { width:20px; height:20px; stroke-width:2; }
  .app-shell:has(.transactions-page) .mobile-search .icon { stroke-width:2; }
}
@media(min-width:768px) and (max-width:1023px) {
  .app-shell:has(.transactions-page) .side-rail { display:none; }
  .app-shell:has(.transactions-page) .site-frame { margin-left:0; }
  .app-shell:has(.transactions-page) .mobile-menu { position:relative; display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; min-height:36px; padding:0; border:0; border-radius:8px; color:#b1b4bf; background:transparent; cursor:pointer; }
  .app-shell:has(.transactions-page) .mobile-menu::after { content:""; position:absolute; inset:-4px; }
  .app-shell:has(.transactions-page) .mobile-menu .icon { width:20px; height:20px; stroke-width:2; }
}
@media (prefers-reduced-motion: reduce) {
  .invoice-timeline .is-active .invoice-step-node::after { animation: none; opacity: .65; }
  .invoice-timeline .is-active .invoice-step-flow { animation: none; transform: none; background: #e6ad36; }
}
@media (max-width: 640px) {
  .product-page .product-hero { padding-top: 60px; padding-bottom: 24px; }
  .checkout-button { min-width: 0; min-height: 44px; font-size: 13px; white-space: normal; line-height: 1.4; }
  .summary-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 1.25fr); grid-template-areas: "item item" "total action"; align-items: center; min-height: 0; bottom: max(8px, env(safe-area-inset-bottom)); gap: 8px 12px; padding: 12px; border-radius: 12px; }
  .summary-card .summary-status { grid-area: item; min-width: 0; }
  .summary-card .summary-status > strong { display: none; }
  .summary-card .summary-status small { color: #d4d5dc; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
  .summary-card .summary-total { grid-area: total; min-width: 0; align-items: flex-start; gap: 2px; }
  .summary-card .checkout-button { grid-area: action; width: 100%; padding: 8px; border-radius: 8px; }
  .summary-status .summary-demo, .summary-total small { display: none; }
  .step-head h2 { font-size: 16px; }
  .step-head p { font-size: 12px; line-height: 18px; }
  .package-card strong { font-size: 13px; }
  .package-card small { font-size: 12px; }
  .package-price { font-size: 14px; }
  .summary-card .summary-total span { font-size: 11px; line-height: 16px; text-transform: none; letter-spacing: 0; }
  .summary-card .summary-total strong { font-size: clamp(16px, 4.8vw, 20px); line-height: 24px; }
  .product-page { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  .product-page .checkout-step { scroll-margin-top: 72px; scroll-margin-bottom: 150px; }
  .account-form input, .account-form select { scroll-margin-block: 80px 160px; }
}
