.service-app { min-height: 100%; position: relative; display: flex; flex-direction: column; background: #fff; color: var(--ink); font-size: 14px; }
.service-header { min-height: 48px; display: grid; grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr); align-items: center; padding: 0 8px; flex: 0 0 auto; }
.service-header > b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; text-align: center; font-size: 16px; font-weight: 700; }
.service-header > div:last-child { justify-self: end; display: flex; }
.service-primary { min-height: 42px; border: 0; border-radius: 7px; padding: 6px 13px; font-size: 13px; font-weight: 620; }
.service-primary.yellow { background: var(--yellow); color: #1b1b1b; }
.service-primary.green { background: #2ab785; color: white; }
.service-primary.red { background: var(--red); color: white; }
.service-primary.neutral { background: #f3f3f3; color: #212121; }
.service-primary:disabled { opacity: .52; }
.service-spacer { flex: 1 1 auto; }
.service-empty { text-align: center; color: #929292; padding: 22px 12px; font-size: 12px; }
.service-empty svg { color: #adb4bd; }
.service-token { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: #c1a23b; font-size: 13px; font-weight: 700; color: #fff; }
.service-token.usdt { background: #27998a; }
.service-token.btc { background: #f7931a; }
.service-token.eth { background: #697ee5; }
.service-token.usdc { background: #2775ca; }
.service-token.bnb { background: #e6be29; }
.service-gold { color: #b48e24; }
.service-scrim { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; background: #16182277; }
.service-sheet { width: 100%; background: #fff; border-radius: 17px 17px 0 0; padding: 17px 15px 25px; max-height: 78dvh; overflow: auto; }
.service-sheet > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.service-sheet h2 { margin: 0; font-size: 17px; }
.service-sheet p { color: #53575d; margin: 12px 0 22px; line-height: 1.55; }
.service-sheet > .service-primary { width: 100%; }
.service-sheet-stack > button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 5px 0; border: 0; border-bottom: 1px solid #f3f3f3; background: #fff; text-align: left; font-size: 14px; }
.service-sheet-stack > button svg { margin-left: auto; color: #919191; }

.p2p-app { min-height: 100%; }
.p2p-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: min-content; }
.p2p-head { display: flex; justify-content: space-between; align-items: center; gap: 2px; padding: 0 13px 0 7px; min-height: 48px; }
.p2p-head .icon-button { width: 32px; }
.p2p-head nav { display: flex; gap: clamp(7px, 3vw, 16px); }
.p2p-head nav button { border: 0; background: transparent; padding: 0; white-space: nowrap; font-size: 14px; color: #767676; }
.p2p-head nav .selected { color: #1c1c1c; font-weight: 700; }
.p2p-currency { border: 1px solid #141414; background: white; border-radius: 4px; padding: 5px 6px; white-space: nowrap; font-size: 12px; }
.p2p-side { display: flex; justify-content: space-between; align-items: center; padding: 0 13px 0 15px; }
.p2p-side > div { display: flex; border: 1px solid #f3f3f3; border-radius: 22px; padding: 2px; }
.p2p-side > div > button { border: 0; padding: 6px 14px; border-radius: 20px; background: transparent; color: #7d7d7d; font-size: 12px; }
.p2p-side > div > button.selected { background: #151515; color: #fff; }
.p2p-asset { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; min-height: 30px; border: 0; padding: 0; background: transparent; font-weight: 650; }
.p2p-express > .p2p-asset { margin: 11px 15px 20px; }
.p2p-amount { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.p2p-express > .p2p-amount { padding: 0 15px; }
.p2p-amount input { border: 0; padding: 0; background: transparent; min-width: 0; width: min(265px, 72%); color: #111; font-weight: 640; }
.p2p-express .p2p-amount input { font-size: clamp(45px, 17vw, 68px); width: min(76%, calc(1ch * var(--p2p-characters, 1) + .13em)); }
.p2p-amount b { font-size: 15px; }
.p2p-amount input::placeholder { color: #a4a4a4; font-weight: 460; }
.p2p-convert-line { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; border: 0; padding: 0; margin: 5px 15px 0; background: transparent; font-size: 13px; }
.p2p-action { display: grid; gap: 7px; padding: 11px 15px; }
.p2p-action output:not(:empty) { color: #b0434b; font-size: 12px; }
.p2p-action output:empty { display: none; }
.p2p-pad { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, minmax(35px, 46px)); padding: 0 14px 4px; }
.p2p-pad button { font-size: 20px; font-weight: 660; padding: 1px; border: 0; background: #fff; }
.p2p-pad button:active, .p2p-pad button:hover { background: #f6f6f6; border-radius: 6px; }
.p2p-tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 53px; border-top: 1px solid #f4f4f4; flex: 0 0 auto; }
.p2p-tabbar button { display: grid; justify-items: center; align-content: center; gap: 4px; color: #979797; background: white; border: 0; font-size: 11px; }
.p2p-tabbar button[aria-current="page"] { color: #141414; font-weight: 650; }
.p2p-market-filters { display: flex; align-items: center; gap: 9px; min-height: 41px; margin: 0 15px; border-bottom: 1px solid #f4f4f4; }
.p2p-market-filters button:last-child { border: 0; background: none; font-size: 12px; }
.p2p-ad { border-bottom: 1px solid #f1f1f1; padding: 12px 15px; }
.p2p-ad small { color: #838383; font-size: 11px; }
.p2p-ad-price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 5px; }
.p2p-ad-price strong { font-size: 22px; }
.p2p-ad-price span:last-child { margin-left: auto; color: #757575; font-size: 12px; }
.p2p-ad-limit { display: flex; justify-content: space-between; gap: 8px; }
.p2p-ad-limit > div { display: grid; gap: 4px; }
.p2p-ad-limit > button { min-height: 29px; min-width: 77px; }
.p2p-quote-price { text-align: center; font-size: 12px; margin: 0 0 15px; }
.p2p-quote-box, .p2p-select { background: #f5f5f5; border-radius: 8px; margin: 0 15px 10px; padding: 12px; }
.p2p-by { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.p2p-by button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 1px 0 4px; color: #777; font-size: 13px; }
.p2p-by button.selected { border-color: var(--yellow); color: #141414; font-weight: 650; }
.p2p-quote-box input { font-size: 30px; width: auto; flex: 1; }
.p2p-quote-box .p2p-amount button { background: transparent; color: #ae8a10; border: 0; padding: 4px; }
.p2p-quote-box small { display: block; color: #949494; margin: 9px 0; }
.p2p-receive { display: block; margin: 13px 0 3px; }
.p2p-select { padding: 0 12px; }
.p2p-select > button { display: flex; justify-content: space-between; align-items: center; min-height: 50px; border: 0; width: 100%; background: transparent; text-align: left; padding: 0; }
.p2p-select small { margin-left: auto; margin-right: 10px; }
.p2p-requirements { padding: 15px; font-size: 13px; }
.p2p-requirements h2 { margin: 0 0 12px; font-size: 15px; }
.p2p-requirements b span { float: right; font-size: 11px; }
.p2p-requirements p { margin: 8px 0 0; color: #6b6b6b; }
.p2p-order-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border: 0; background: #fff; border-bottom: 1px solid #f5f5f5; text-align: left; width: 100%; gap: 12px; }
.p2p-order-item span:last-child { display: flex; align-items: center; gap: 5px; }
.p2p-order-item small { display: block; color: #878787; margin-top: 4px; }
.p2p-no-orders { display: grid; place-content: center; justify-items: center; flex: 1; }
.p2p-order-hero { padding: 15px; background: #f9fafb; }
.p2p-order-hero h1 { font-size: 28px; margin: 9px 0; }
.p2p-order-view dl { padding: 0 15px; }
.p2p-order-view dl div { display: flex; justify-content: space-between; gap: 10px; min-height: 29px; }
.p2p-order-view dt { color: #747474; }
.p2p-order-view dd { margin: 0; text-align: right; }
.p2p-order-view .status-notice { margin: 0 15px; }
.p2p-chat-card { padding: 12px; margin: 4px 15px 15px; border: 1px solid #f1f1f1; border-radius: 9px; }
.p2p-chat-card small { display: block; margin-top: 4px; color: #8d8d8d; }
.p2p-chat-intro .service-empty { display: grid; place-content: center; justify-items: center; flex: 1 1 auto; }
.p2p-chat-intro .service-empty button { border: 0; background: none; color: #a68117; }
.p2p-conversation { background: #f1f1f1; }
.p2p-conversation header, .p2p-conversation form { background: #fff; }
.p2p-conversation form { display: flex; gap: 8px; padding: 8px 12px; }
.p2p-conversation form input { flex: 1; min-width: 0; border: 0; background: #f5f5f5; padding: 9px; border-radius: 8px; }
.p2p-messages { flex: 1; padding: 10px 15px; text-align: center; }
.p2p-messages small { color: #8a8a8a; }
.p2p-messages p { margin: 4px auto 12px; padding: 6px; max-width: 260px; border-radius: 8px; background: #e8e8e8; color: #727272; font-size: 11px; }
.p2p-messages > div { display: flex; justify-content: flex-end; margin-bottom: 8px; text-align: left; }
.p2p-messages > div > span { max-width: 80%; overflow-wrap: anywhere; border-radius: 9px 9px 0 9px; background: #ffdf56; color: #202020; padding: 8px 10px; }

.earn-main { padding: 11px 15px 17px; }
.earn-main h2 { font-size: 15px; margin: 19px 0 11px; }
.earn-header-actions .icon-button { width: 31px; }
.earn-banner, .earn-autosub { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 9px; border: 1px solid #f2f2f2; }
.earn-banner b, .earn-banner small, .earn-autosub b, .earn-autosub small { display: block; }
.earn-banner small, .earn-autosub small { color: #868686; font-size: 11px; margin-top: 5px; }
.earn-banner > span { color: #d6a611; font-size: 17px; white-space: nowrap; }
.earn-banner i { display: inline-grid; place-items: center; width: 31px; height: 31px; background: #202020; border-radius: 50%; color: #ffdb4f; font-style: normal; }
.earn-dots { text-align: center; font-size: 8px; line-height: 1; letter-spacing: 2px; margin: 4px 0 19px; color: #999; }
.earn-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.earn-label h2 { margin-top: 0; }
.earn-label button, .earn-sharia button, .earn-staking-hero button { background: none; border: 0; color: #a88619; padding: 0; font-size: 12px; }
.earn-autosub > button, .earn-product > button { min-height: 26px; padding: 4px 9px; font-size: 11px; }
.earn-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.earn-featured button { display: grid; gap: 5px; padding: 8px 7px; background: #fff; border: 1px solid #f1f1f1; border-radius: 8px; text-align: left; }
.earn-featured button > span { display: flex; justify-content: space-between; align-items: center; }
.earn-featured button > small { color: #888; font-size: 10px; }
.earn-sharia { border-block: 1px solid #f3f3f3; padding: 9px 0; font-size: 12px; }
.earn-sharia button { min-height: 24px; display: block; margin-inline-start: 11px; }
.earn-list-control { display: flex; justify-content: space-between; align-items: center; margin: 9px 0 0; }
.earn-tabs { display: flex; gap: 14px; min-height: 40px; align-items: stretch; }
.earn-tabs button { align-self: stretch; border: 0; background: none; padding: 0; font-size: 13px; color: #787878; position: relative; }
.earn-tabs button[aria-current] { color: #1b1b1b; font-weight: 660; }
.earn-tabs button[aria-current]::after { content: ''; position: absolute; bottom: 2px; left: calc(50% - 6px); background: #ebc641; width: 12px; height: 2.5px; }
.earn-table-label, .earn-product { display: grid; grid-template-columns: 1fr 1fr auto; gap: 5px; align-items: center; padding: 8px 7px; }
.earn-table-label { padding-top: 5px; color: #8f8f8f; }
.earn-product { min-height: 53px; border: 1px solid #f2f2f2; border-radius: 8px; margin-bottom: 9px; font-size: 13px; }
.earn-product > span > b { vertical-align: middle; }
.earn-product .service-token { vertical-align: middle; }
.earn-product small { display: block; padding-left: 24px; margin-top: 5px; font-size: 9px; color: #b79618; }
.earn-high-yield { display: grid; gap: 5px; margin-bottom: 8px; }
.earn-high-yield button, .earn-staking-link { display: block; border: 1px solid #f3f3f3; background: #fff; border-radius: 8px; text-align: left; width: 100%; padding: 10px; }
.earn-high-yield button small { display: block; margin-top: 3px; color: #878787; }
.earn-staking-link svg { float: right; color: #888; }
.earn-search > span { position: absolute; width: 1px; overflow: hidden; clip-path: inset(100%); }
.earn-search input { width: 100%; border: 0; padding: 8px; border-radius: 6px; background: #f5f5f5; margin-bottom: 10px; }
.earn-column { flex: 1; display: flex; flex-direction: column; }
.earn-subscribe { display: flex; flex-direction: column; flex: 1; padding: 12px 15px 19px; gap: 8px; }
.earn-terms { display: flex; gap: 8px; margin-bottom: 24px; }
.earn-terms > button { text-align: left; display: grid; align-content: start; gap: 3px; min-height: 64px; padding: 8px 10px; border: 1px solid #ededed; border-radius: 8px; background: #fff; min-width: 106px; }
.earn-terms > button[aria-pressed="true"] { border: 1.5px solid #252525; }
.earn-terms > button small { font-size: 11px; }
.earn-terms > button b { font-size: 17px; }
.earn-terms > button em, .earn-terms > button i { color: #b49424; font-size: 10px; font-style: normal; font-weight: 450; }
.earn-amount-label { display: flex; align-items: center; justify-content: space-between; color: #6e6e6e; font-size: 12px; }
.earn-amount-label input { margin: 0 3px 0 0; vertical-align: middle; accent-color: #242424; }
.earn-amount { display: flex; align-items: center; gap: 7px; min-height: 43px; background: #f5f5f5; border-radius: 7px; padding: 0 10px; }
.earn-amount input { flex: 1; width: 0; border: 0; padding: 0; background: none; appearance: textfield; }
.earn-amount button, .earn-subscribe > small button { background: none; border: 0; color: #a6800e; padding: 0; }
.earn-subscribe > small { font-size: 11px; color: #767676; }
.earn-summary { border-top: 1px solid #f4f4f4; padding: 9px 0; }
.earn-summary > div { display: flex; justify-content: space-between; gap: 5px; min-height: 28px; align-items: center; font-size: 12px; }
.earn-summary p { font-size: 11px; color: #808080; line-height: 1.45; }
.earn-feedback { color: #aa4652; font-size: 12px; }
.earn-feedback:empty { display: none; }
.earn-positions > article { margin-bottom: 10px; padding: 11px; border: 1px solid #f2f2f2; border-radius: 8px; display: grid; gap: 7px; }
.earn-positions > article > div { display: flex; gap: 6px; align-items: center; }
.earn-positions > article > div em { font-size: 11px; color: #269370; margin-left: auto; font-style: normal; }
.earn-positions > article small { color: #858585; }
.earn-positions > article strong { font-size: 18px; }
.earn-positions > article > button { justify-self: start; min-height: 30px; }
.earn-staking-hero { display: flex; gap: 20px; align-items: center; padding: 0 0 13px; }
.earn-staking-hero h1 { font-size: 21px; margin: 0 0 12px; }
.earn-staking-hero > .service-token { width: 46px; height: 46px; font-size: 30px; }
.earn-staking-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.earn-staking-steps { padding-inline-start: 19px; }
.earn-staking-steps li { padding-inline-start: 4px; padding-bottom: 14px; }
.earn-staking-steps small { display: block; margin-top: 4px; color: #888; }
.earn-success { text-align: center; margin: 48px 12px 26px; }
.earn-success > span { display: inline-grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; color: #fff; background: #2ab785; font-size: 28px; }
.earn-success > h1 { margin: 14px 0 9px; font-size: 22px; }
.earn-success p { font-size: 18px; font-weight: 700; }
.earn-success small { color: #878787; }
.earn-column > .earn-main:last-child > button { width: 100%; }

.pay-main { padding: 0 15px 19px; }
.pay-main h1 { font-size: 29px; margin: 7px 0 5px; color: #1a1a1a; }
.pay-main h2 { font-size: 16px; margin: 22px 0 12px; }
.pay-main > small, .pay-muted { color: #8e8e8e; font-size: 12px; line-height: 1.5; }
.pay-send-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.pay-send-links > button, .pay-rewards > div > button { display: flex; gap: 7px; align-items: center; justify-content: space-between; border: 1px solid #f3f3f3; background: #fafafa; border-radius: 7px; padding: 10px; min-height: 55px; text-align: left; font-size: 13px; }
.pay-send-links svg { flex: 0 0 auto; }
.pay-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 5px; }
.pay-shortcuts button { display: grid; gap: 6px; align-content: start; justify-items: center; border: 0; background: white; text-align: center; padding: 0; font-size: 11px; }
.pay-shortcuts button > span { display: grid; place-items: center; width: 42px; height: 42px; background: #fafafa; border: 1px solid #f6f6f6; border-radius: 11px; }
.pay-rewards { margin-top: 19px; border-block: 1px solid #f4f4f4; padding: 11px 0; }
.pay-rewards h2 { margin-top: 0; }
.pay-rewards > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-rewards svg { color: #b68d1d; }
.pay-history-title { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 0 6px; border: 0; background: none; text-align: left; }
.pay-history-item { display: flex; justify-content: space-between; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid #f3f3f3; font-size: 13px; }
.pay-history-item span { overflow-wrap: anywhere; }
.pay-history-item strong { white-space: nowrap; }
.pay-history-item small { display: block; margin-top: 4px; color: #848484; }
.pay-fund-links { display: grid; gap: 10px; margin-top: 10px; }
.pay-fund-links > button { display: flex; justify-content: space-between; align-items: center; gap: 9px; border: 1px solid #efefef; border-radius: 9px; min-height: 63px; background: white; text-align: left; padding: 10px 11px; }
.pay-fund-links > button span { flex: 1; }
.pay-fund-links small { display: block; color: #888; font-size: 11px; margin-top: 4px; }
.pay-fund-links svg:last-child { color: #999; }
.pay-more { margin: 8px auto; display: flex; gap: 6px; align-items: center; justify-content: center; background: none; border: 0; padding: 8px; color: #747474; }
.pay-form { display: flex; flex-direction: column; gap: 14px; padding: 11px 15px 17px; flex: 1; }
.pay-form label, .pay-request label { display: grid; gap: 7px; font-size: 13px; min-width: 0; }
.pay-form label > input, .pay-form label > select, .pay-form label > div, .pay-request input { min-height: 39px; width: 100%; border: 1px solid #f2f2f2; border-radius: 7px; background: #f5f5f5; padding: 6px 9px; }
.pay-form label > div { display: flex; align-items: center; gap: 5px; }
.pay-form label > div > input { flex: 1; min-width: 0; width: 100%; }
.pay-form label > div input, .pay-form label > div select { border: 0; background: none; outline-offset: 1px; }
.pay-form > p { margin: 0; }
.pay-feedback { display: block; color: #a84754; margin-top: 5px; font-size: 12px; }
.pay-feedback:empty { display: none; }
.pay-receive-form { margin: 0 0 15px; padding: 4px 0 0; }
.pay-request { display: grid; gap: 8px; background: #fcfcfc; border: 1px solid #f0f0f0; border-radius: 9px; padding: 12px; }
.pay-request > span { color: #b7921e; justify-self: center; }
.pay-main > .service-primary { width: 100%; }
.pay-packet-graphic { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 150px; color: #c94e5a; background: radial-gradient(ellipse at 50% 45%, #ffeed4, #fff 61%); }
.pay-packet-graphic i { color: #d7aa25; font-size: 28px; font-style: normal; }
.pay-packet { display: grid; gap: 6px; border: 1px solid #f2f2f2; border-radius: 9px; padding: 9px; margin-bottom: 8px; }
.pay-packet > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pay-packet > div > span { font-size: 12px; color: #8a7019; }
.pay-packet p { margin: 1px 0; overflow-wrap: anywhere; }
.pay-packet button { min-height: 29px; }
.pay-result { margin: 40px 14px 15px; text-align: center; }
.pay-result > span { display: inline-grid; place-items: center; border-radius: 50%; width: 52px; height: 52px; background: #2dba85; color: white; font-size: 24px; }
.pay-result h1 { font-size: 21px; margin: 13px 0 8px; }
.pay-result strong { font-size: 20px; }
.pay-result p { color: #797979; }

@media (min-width: 580px) {
  .app-device { transform: translateZ(0); }
  .service-scrim { position: fixed; }
}
