.gateway-card { margin: 12px 0; padding: 16px; border: 1px solid #9ab492; border-radius: 18px; background: #f6faf1; color: #23412a; }
.gateway-card h3,.gateway-card h4 { margin: 0 0 8px; }
.gateway-card p { margin: 8px 0; overflow-wrap: anywhere; }
.gateway-card form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.gateway-card label { display: grid; gap: 5px; }
.gateway-card input { width: min(100%, 180px); min-height: 44px; border: 1px solid #9ab492; border-radius: 10px; padding: 8px; font: inherit; }
.gateway-card button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 10px; background: #285839; color: white; font: inherit; }
.gateway-card button:disabled { opacity: .55; }
.gateway-card #gateway-taxi-open-sms { display: inline-block; min-height: 44px; padding: 9px 14px; border-radius: 10px; background: #285839; color: white; font: inherit; text-decoration: none; }
.gateway-card #gateway-taxi-open-sms[hidden] { display: none; }
.gateway-payment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; margin: 10px 0; padding: 10px; border: 1px solid #b7c9af; border-radius: 12px; background: #fff; }
.gateway-payment-row span { grid-column: 1 / -1; }
.gateway-payment-row strong { font-size: 1.2em; overflow-wrap: anywhere; }
.gateway-payment-row button { font-size: .85em; }
.gateway-payment-note { font-size: .9em; }
.gateway-card .gateway-payee-warning { margin: 12px 0; padding: 12px 14px; border: 2px solid #b67d25; border-radius: 12px; background: #fff1d5; color: #442b06; font-size: 1.05em; font-weight: 800; white-space: pre-wrap; }
.gateway-coupon { display: grid; grid-template-columns: minmax(0, 4fr) minmax(56px, 1fr); min-height: 150px; margin: 14px 0 10px; border: 10px solid #f9c847; background: #27342f; color: #fff; box-shadow: 0 9px 18px #18372930; overflow: hidden; }
.gateway-coupon-main { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 12px 5px; text-align: center; }
.gateway-coupon-brand { font-size: 17px; font-weight: 900; letter-spacing: .08em; }
.gateway-coupon-value { position: relative; display: grid; place-items: center; width: min(100%, 240px); min-height: 73px; overflow: hidden; }
.gateway-coupon-main strong { font-size: clamp(38px, 12vw, 66px); line-height: 1.08; white-space: nowrap; }
.gateway-scratch-cover { position: absolute; inset: 6px 1px; display: grid; place-items: center; border: 1px solid #e0e2e0; border-radius: 5px; background: repeating-linear-gradient(155deg,#aeb4b1 0 8px,#cdd1ce 8px 11px,#9da5a1 11px 18px); box-shadow: 0 2px 5px #0006, 0 1px 1px #fff9 inset; color: #33433b; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-shadow: 0 1px #fff8; }
.gateway-coupon.is-revealed .gateway-scratch-cover { display: none; }
.gateway-coupon.is-scratching .gateway-scratch-cover { animation: gateway-scratch-away 1.15s ease-in forwards; }
@keyframes gateway-scratch-away { 0% { clip-path: inset(0); opacity: 1; } 35% { clip-path: polygon(0 0,90% 0,76% 27%,95% 49%,69% 71%,83% 100%,0 100%); opacity: .9; } 70% { clip-path: polygon(0 0,47% 0,31% 28%,58% 45%,24% 72%,45% 100%,0 100%); opacity: .65; } 100% { clip-path: inset(0 100% 0 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gateway-coupon.is-scratching .gateway-scratch-cover { animation: none; display: none; } }
.gateway-coupon-caption { font-size: clamp(11px, 3vw, 15px); letter-spacing: .12em; white-space: nowrap; }
.gateway-coupon-stub { position: relative; display: flex; flex-direction: column; justify-content: space-around; align-items: center; gap: 5px; border-left: 5px dotted #f9c847; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.gateway-coupon-stub::before,.gateway-coupon-stub::after { position: absolute; left: -12px; width: 18px; height: 18px; border-radius: 50%; background: #f6faf1; content: ''; }
.gateway-coupon-stub::before { top: -19px; }
.gateway-coupon-stub::after { bottom: -19px; }
.gateway-coupon-bars { width: 34px; height: 65px; background: repeating-linear-gradient(90deg,#fff 0 2px,transparent 2px 4px,#fff 4px 5px,transparent 5px 8px); }
.gateway-card #gateway-copy-amount { width: 100%; margin: 0 0 10px; }
.gateway-topup-controls { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 4px 0 10px; }
.gateway-coupon-tiers { display: flex; flex: 1 1 144px; gap: 6px; }
.gateway-card .gateway-coupon-tiers button { flex: 1 1 0; min-width: 44px; padding: 8px 3px; background: #e8f0df; color: #285839; border: 1px solid #9ab492; font-size: .9em; font-weight: 700; }
.gateway-card .gateway-coupon-tiers button[aria-pressed="true"] { background: #f9c847; color: #27342f; border-color: #d4a829; }
.gateway-card #gateway-topup-form { display: block; flex: 0 1 118px; min-width: 112px; }
.gateway-card #gateway-topup-form button { width: 100%; }
.gateway-card #gateway-confirm-transfer { width: 100%; margin-top: 10px; background: #b17f25; }
.gateway-card #gateway-support-open { width: 100%; margin-top: 12px; background: #315c3b; }
.payment-support-chat { margin-top: 12px; padding: 12px; border: 1px solid #9ab492; border-radius: 14px; background: #f8fbf5; }
.payment-support-chat .top-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.payment-support-chat .top-panel-head button { min-width: 40px; min-height: 40px; padding: 4px; }
.payment-support-chat form { display: flex; gap: 8px; align-items: stretch; }
.payment-support-chat textarea { flex: 1; min-width: 0; min-height: 58px; padding: 9px; border: 1px solid #9ab492; border-radius: 10px; font: inherit; resize: vertical; }
.payment-support-chat form button { flex: 0 0 auto; }
.payment-support-messages { display: grid; gap: 8px; margin: 10px 0; }
.payment-support-message { max-width: 100%; padding: 9px 11px; border-radius: 13px; background: #e6eddf; overflow-wrap: anywhere; }
.payment-support-message.is-client { margin-left: 12%; background: #d9ead0; }
.payment-support-message.is-admin { margin-right: 12%; background: #e7eadd; }
.payment-support-message small { color: #52634c; }
.payment-support-message p { margin: 4px 0 0; white-space: pre-wrap; }
#admin-payment-support-list { display: grid; gap: 8px; }
#admin-payment-support-list button { width: 100%; text-align: left; overflow-wrap: anywhere; }
#admin-payment-support-details { margin: 10px 0; padding: 10px; border-radius: 10px; background: #e8f0e3; white-space: pre-wrap; overflow-wrap: anywhere; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wallet-actions .top-panel-action { flex: 1 1 140px; }
.wallet-transfer-history .top-panel-head { align-items: center; }
.wallet-transfer-history .top-panel-head h3 { margin: 0 0 10px; }
.wallet-history-item { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #c5d5c1; }
.wallet-history-item strong { color: #23412a; font-size: 17px; }
.wallet-history-item time { color: #61715b; font-size: 12px; }
.wallet-history-status { font-size: 13px; font-weight: 700; }
.wallet-history-status.is-paid { color: #25633a; }
.wallet-history-status.is-pending { color: #76570d; }
.wallet-history-status.is-expired { color: #845447; }
.sms-admin-panel label { display: grid; gap: 6px; margin: 10px 0; }
.sms-admin-panel input { min-height: 42px; width: 100%; max-width: 320px; padding: 8px; font: inherit; }

.sms-admin-panel .gateway-apk-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;box-sizing:border-box;margin:8px 0;padding:10px 15px;border-radius:12px;background:#08653c;color:#fff;font:inherit;font-weight:750;text-decoration:none;text-align:center;overflow-wrap:anywhere}
.sms-admin-panel .gateway-apk-download:focus-visible{outline:2px solid #08653c;outline-offset:3px}
