.reference-wallet{margin-top:14px;padding:18px 13px 13px;border-radius:22px}
.wallet-balances{min-height:128px;padding-bottom:14px}.wallet-balances>strong{font-size:35px;margin-top:10px}.wallet-balances p{font-size:14px}
.ton-wallet{margin-top:12px;position:relative;z-index:3;border:1px solid color-mix(in srgb,var(--theme-2) 28%,transparent);border-radius:16px;background:linear-gradient(115deg,color-mix(in srgb,var(--theme-0) 45%,#171020),#151020a8);box-shadow:inset 0 1px 0 #fff1}
.ton-connect-row{display:flex;align-items:center;gap:9px;padding:10px 11px;min-height:73px}
.ton-wallet-art{width:44px;height:48px;object-fit:contain;flex-shrink:0;filter:hue-rotate(var(--theme-hue)) drop-shadow(0 3px 9px #05020d88)}
.ton-connect-button{background:none;padding:3px 0;text-align:left;min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;font-family:Montserrat,Onest,sans-serif}
.ton-connect-button strong{font-size:12px;font-weight:700;line-height:1.4}.ton-connect-button small{font-size:9px;font-weight:500;color:var(--hud-muted);line-height:1.5;overflow-wrap:anywhere}
.ton-connect-chevron{font-size:25px;color:var(--theme-2);pointer-events:none}.ton-disconnect{background:#11091d66;width:31px;height:33px;border:1px solid var(--hud-edge);border-radius:10px;color:var(--theme-2);font-size:20px;flex-shrink:0}
.ton-connect-notice{padding:0 12px 11px;color:var(--hud-muted);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.wallet-promo{margin:12px 0;padding:14px;border:1px solid var(--hud-edge);border-radius:20px;background:linear-gradient(125deg,color-mix(in srgb,var(--hud-surface) 95%,transparent),color-mix(in srgb,var(--theme-0) 15%,#16101fe8));box-shadow:inset 0 1px 0 #fff1}
.wallet-promo-heading{display:flex;align-items:center;gap:10px;margin-bottom:13px}.wallet-promo-heading>img{width:37px;height:43px;object-fit:contain;filter:hue-rotate(var(--theme-hue)) drop-shadow(0 0 8px #a273db33)}
.wallet-promo h2{font-size:14px;font-weight:750;margin:0 0 5px}.wallet-promo-heading p{font-size:9px;color:var(--hud-muted);line-height:1.5}
.wallet-promo-field{display:flex;align-items:center;gap:8px;padding:5px 5px 5px 13px;border:1px solid color-mix(in srgb,var(--theme-2) 24%,transparent);border-radius:12px;background:#100a1b77;box-shadow:inset 0 2px 6px #07040c22}
.wallet-promo-field:focus-within{border-color:var(--theme-1)}.wallet-promo input{width:100%;min-width:0;background:none;border:0;outline:none;color:white;font:550 12px Montserrat,Onest,sans-serif;letter-spacing:.5px;min-height:32px}.wallet-promo input::placeholder{color:var(--hud-muted);font-size:11px;font-weight:450;letter-spacing:0}
.wallet-promo-field button{width:39px;height:35px;flex-shrink:0;display:grid;place-items:center;border-radius:9px;border:1px solid var(--hud-edge);background:linear-gradient(135deg,var(--theme-0),color-mix(in srgb,var(--theme-1) 55%,var(--theme-0)));color:white}
.wallet-promo-field svg{width:19px;height:19px}.wallet-promo #promo-result:empty{display:none}.wallet-promo #promo-result{font-size:10px;line-height:1.5;color:var(--theme-2);margin-top:10px}

.wallet-history-empty{font-size:11px;line-height:1.7;color:var(--hud-muted);padding:4px 0 15px}
dialog:has(.withdrawal-dialog){width:min(380px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow-y:auto;overflow-x:hidden;padding:23px 20px 21px;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--theme-0) 40%,transparent),transparent 65%),#21152e;border-radius:25px}
.withdrawal-dialog{font-family:Montserrat,Onest,sans-serif;min-width:0}.withdrawal-art{display:flex;align-items:center;justify-content:center;gap:18px;height:65px}.withdrawal-art img{width:51px;height:57px;object-fit:contain;filter:hue-rotate(var(--theme-hue)) drop-shadow(0 0 12px #b27fda44)}.withdrawal-art span{color:var(--theme-2);font-size:31px}.withdrawal-dialog h2{font-family:Montserrat,sans-serif;text-align:center;font-size:24px;letter-spacing:-.6px;margin:12px 0 8px}.withdrawal-intro{font-size:10px;text-align:center;color:var(--hud-muted);line-height:1.5}.withdrawal-available{margin:20px 0;padding:15px;border:1px solid var(--hud-edge);border-radius:16px;background:linear-gradient(120deg,color-mix(in srgb,var(--theme-0) 30%,transparent),#130c2170)}.withdrawal-available>span{display:block;font-size:10px;color:var(--hud-muted)}.withdrawal-available strong{display:block;margin-top:8px;font-size:25px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.withdrawal-available small{font-size:12px;color:var(--theme-2)}
.withdrawal-dialog textarea{resize:none;width:100%;max-width:100%;padding:12px;border:1px solid var(--hud-edge);border-radius:12px;background:#10091b88;color:white;font:500 11px/1.6 Montserrat,sans-serif;overflow-wrap:anywhere}.withdrawal-dialog textarea:focus{outline:none;border-color:var(--theme-2)}.withdrawal-address-note{margin:7px 0 18px;font-size:9px;line-height:1.5;color:var(--hud-muted)}.withdrawal-dialog .exchange-input-wrap>span{font-size:11px;color:var(--theme-2)}.withdrawal-summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:17px 0 0;font-size:10px;line-height:1.5;color:var(--hud-muted)}.withdrawal-summary strong{font-size:11px;color:white;font-weight:600;white-space:nowrap}.withdrawal-dialog .exchange-error{min-height:28px;margin:12px 0;font-size:10px}.withdrawal-dialog .primary{min-height:49px;font-size:13px}.withdrawal-dialog .exchange-footnote{margin-top:13px}
dialog:has(.exchange-dialog){padding:26px 21px 20px;width:min(365px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;border-radius:25px;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--theme-0) 40%,transparent),transparent 62%),linear-gradient(145deg,#2e203c,#171020);box-shadow:0 20px 80px #0009,inset 0 1px 0 #fff2}
.exchange-dialog{font-family:Montserrat,Onest,sans-serif}.exchange-heading{display:flex;justify-content:center;align-items:center;gap:17px;margin:0 0 13px}.exchange-heading img{width:43px;height:46px;object-fit:contain;filter:drop-shadow(0 0 10px #b47cda44)}.exchange-heading img:last-child{filter:hue-rotate(var(--theme-hue)) drop-shadow(0 0 10px #b47cda44)}.exchange-symbol{font-size:30px;font-weight:400;color:var(--theme-2)}
.exchange-dialog h2{text-align:center;font-size:23px;font-weight:750;letter-spacing:-.6px}.exchange-rate{font-size:11px;text-align:center;color:var(--hud-muted);margin:8px 0 25px}
.exchange-label{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:10px;font-weight:600;margin-bottom:9px}.exchange-label span{font-size:9px;font-weight:450;color:var(--hud-muted);white-space:nowrap}
.exchange-input-wrap{display:flex;align-items:center;gap:8px;background:#10091b88;border:1px solid var(--hud-edge);border-radius:14px;padding:11px 12px}.exchange-input-wrap:focus-within{border-color:var(--theme-2);box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-1) 13%,transparent)}.exchange-input-wrap>img{width:26px;height:26px;object-fit:contain}.exchange-input-wrap input{border:0;outline:0;background:none;min-width:0;flex:1;color:white;font:650 23px Montserrat,sans-serif;font-variant-numeric:tabular-nums;width:100%}.exchange-input-wrap input::placeholder{font-size:16px;color:var(--hud-muted)}.exchange-input-wrap button{font-family:Montserrat,sans-serif;font-size:10px;font-weight:650;background:color-mix(in srgb,var(--theme-0) 40%,transparent);color:var(--theme-2);border:1px solid var(--hud-edge);border-radius:8px;padding:7px 9px}
.exchange-receive{border:1px solid color-mix(in srgb,var(--theme-2) 30%,transparent);border-radius:17px;background:radial-gradient(ellipse at 100% 50%,color-mix(in srgb,var(--theme-1) 17%,transparent),transparent 65%),#2b1c3a88;padding:17px;margin-top:14px}.exchange-receive>span{font-size:10px;color:var(--hud-muted)}.exchange-receive>strong{display:flex;gap:8px;align-items:baseline;margin-top:9px}.exchange-receive b{font-size:29px;line-height:1.3;font-weight:750;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.exchange-receive small{font-size:13px;font-weight:650;color:var(--theme-2)}
.exchange-after{display:flex;gap:8px;align-items:baseline;justify-content:space-between;margin:16px 2px 0;font-size:10px;color:var(--hud-muted)}.exchange-after strong{font-size:11px;font-weight:600;color:white;font-variant-numeric:tabular-nums;white-space:nowrap}
.exchange-error{font-size:10px;min-height:15px;line-height:1.5;margin:9px 2px 13px;color:#ffbad0}.exchange-dialog .primary{font-family:Montserrat,sans-serif;font-size:13px;min-height:49px}.exchange-footnote{font-size:9px;line-height:1.6;color:var(--hud-muted);text-align:center;margin-top:11px}
@media(max-width:360px){.ton-connect-row{padding:9px;gap:7px}.ton-wallet-art{width:36px;height:42px}.ton-connect-button strong{font-size:11px}.ton-connect-button small{font-size:8px}.wallet-promo{padding:12px}.wallet-promo-heading p{font-size:8px}.exchange-label{font-size:9px}.exchange-label span{font-size:8px}.exchange-receive b{font-size:26px}}
.language-picker{margin:4px 0 20px}.language-picker h3{font:700 16px Montserrat,sans-serif;margin-bottom:13px}.language-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.language-options button{font:600 12px/1.5 Montserrat,Onest,sans-serif;border-radius:10px;border:1px solid var(--hud-edge);background:#140d2177;padding:10px 7px}.language-options button[aria-pressed=true]{background:var(--theme-0);border-color:var(--theme-2)}
.withdrawal-history{margin-top:22px}.withdrawal-history h2{font:750 19px Montserrat,sans-serif;margin-bottom:12px}.withdrawal-history-row{display:flex;gap:10px;align-items:center;border:1px solid var(--hud-edge);border-radius:14px;padding:13px 12px;margin:8px 0;background:color-mix(in srgb,var(--hud-surface) 88%,transparent)}.withdrawal-history-row>div{flex:1;min-width:0}.withdrawal-history-row strong{display:block;font-size:13px}.withdrawal-history-row span{display:block;font-size:10px;color:var(--hud-muted);margin-top:6px}.withdrawal-history-row small{font-size:10px;color:var(--hud-muted)}.withdrawal-history-row a{font-size:22px;color:var(--theme-2)}
[dir=rtl] .ton-connect-button{text-align:right}[dir=rtl] .tab-hero-copy{text-align:right;direction:rtl}[dir=rtl] .tasks-reference-hero .tab-hero-copy,[dir=rtl] .friends-reference-hero .tab-hero-copy{margin-right:auto}[dir=rtl] .subscription-card{text-align:right}.withdrawal-dialog textarea,.withdrawal-dialog input,.wallet-promo input{direction:ltr;text-align:left}.language-options button{white-space:normal;overflow-wrap:anywhere}
[dir=rtl] .tasks-reference-hero .tab-hero-copy,[dir=rtl] .friends-reference-hero .tab-hero-copy{margin-right:0;margin-left:auto;width:62%}[dir=rtl] .tasks-reference-hero .hero-illustration,[dir=rtl] .friends-reference-hero .hero-illustration{right:auto;left:-12px}.referral-field input{direction:ltr}.friend-description p{overflow-wrap:anywhere}

/* Reserve separate text and illustration columns in Arabic/Persian. */
[dir=rtl] .reference-wallet .wallet-balances{width:50%;margin-left:auto;margin-right:0}
[dir=rtl] .reference-wallet .wallet-illustration{right:auto;left:0;width:46%;object-position:left center}
[dir=rtl] .shop-welcome-art{right:auto;left:0;width:42%}
[dir=rtl] .shop-welcome-copy{min-width:0;width:56%;flex:0 0 56%}
[dir=rtl] .is-inner .shop-welcome .shop-illustration{right:auto;left:0;object-position:bottom left}
