@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #f6f4ef;
  background: #090a0d;
  font-synthesis: none;
  --muted: #9a9da4;
  --gold: #f2d28e;
  --line: #34373d;
  --blue: #0c2b3c;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 23px; line-height: 1.35; letter-spacing: -.6px; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 500; line-height: 1.6; margin-bottom: 8px; }
p { font-size: 13px; line-height: 1.75; }
small { font-size: 11px; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.positive { color: #74d6aa; }
.text-center { text-align: center; }
.preserve-lines { white-space: pre-wrap; }
.wrap { overflow-wrap: anywhere; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row > :first-child { min-width: 0; }
.row .positive { white-space: nowrap; font-size: 12px; }
.row h2, .row h3 { margin-bottom: 0; }
.app-shell {
  max-width: 460px;
  min-height: 100dvh;
  margin: auto;
  padding-bottom: 110px;
  position: relative;
  background-color: #050609;
  background-image: radial-gradient(ellipse at 30% 0, #1d24294d, transparent 40%), radial-gradient(#bcae7a30 .7px, transparent .8px), radial-gradient(#b3b9d81c .6px, transparent .8px);
  background-size: auto, 39px 59px, 67px 43px;
  background-position: 0 0, 9px 5px, 23px 14px;
  box-shadow: 0 0 80px #0008;
}
.environment-label { background: #1e1b16; color: #bdab88; text-align: center; font-size: 9px; padding: 6px 8px; letter-spacing: 1.4px; }
.topbar { height: 64px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; background: #202329ef; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(15px); }
.brand { display: flex; align-items: center; gap: 7px; }
.brand strong { font-size: 18px; letter-spacing: .4px; }
.brand-logo { background: #fff; color: #101923; height: 33px; width: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-style: italic; text-shadow: -2px 1px #46c5cf, 2px -1px #f34678; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language { border: 1px solid #484b52; border-radius: 22px; padding: 4px 8px; background: transparent; font-size: 10px; }
.language-options { display: grid; gap: 9px; }
.language-options button { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #222a34; border: 1px solid #4c5562; border-radius: 12px; padding: 15px 17px; font-size: 14px; }
.language-options button[aria-pressed="true"] { border-color: #e3c383; color: #f4d69c; background: #3a3226; }
.message-link { font-size: 22px; position: relative; }
#unread-count { position: absolute; right: -6px; top: -5px; border-radius: 10px; background: #e6bd72; color: #111; font-size: 9px; padding: 1px 4px; }
main { padding: 16px 16px 0; }
.loading { padding: 80px 16px; text-align: center; color: var(--muted); }
.card { border: 1px solid #3b3d43; background: linear-gradient(120deg,#2e3137,#24272c); border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 8px 20px #0002; }
.card p:last-child { margin-bottom: 0; }
.page-title { display: flex; align-items: center; justify-content: center; margin: -16px -16px 22px; padding: 17px 40px; position: relative; background: #1d2025d9; border-bottom: 1px solid #2d3036; }
.page-title h1 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: 0; }
.page-title > a { position: absolute; left: 17px; top: 7px; font-size: 30px; }
.primary { width: 100%; border: 1px solid #284351; background: linear-gradient(110deg,#103448,#0a2433); min-height: 45px; padding: 12px 16px; border-radius: 28px; font-size: 12px; font-weight: 500; display: block; text-align: center; }
.primary:hover { filter: brightness(1.2); }
.fit { width: auto; }
.outline-button { border: 1px solid #bac5ca; border-radius: 18px; padding: 7px 12px; background: #18303e9c; font-size: 10px; white-space: nowrap; display: inline-block; }
.text-link { border: 0; background: transparent; color: var(--gold); font-size: 12px; display: inline-block; margin: 8px 0 17px; padding: 0; }
.external-link { color: #9ad6e8; font-size: 12px; display: inline-block; margin-bottom: 15px; }
.notice { background: #2b2821; border: 1px solid #61513a; color: #e0cba5; font-size: 11px; line-height: 1.8; border-radius: 13px; padding: 14px; margin: 18px 0; }
.field-label { display: block; font-size: 12px; margin: 22px 0 10px; }
.field-label:first-child { margin-top: 4px; }
.input { width: 100%; min-width: 0; border: 1px solid #333d48; border-radius: 8px; padding: 14px; background: #212b36b0; color: #f7f7f7; min-height: 46px; font-size: 13px; }
.input::placeholder { color: #90959e; }
select.input { color-scheme: dark; }
textarea.input { resize: vertical; line-height: 1.7; }
.password-field { position: relative; }
.password-field .input { padding-right: 48px; }
.password-field button { position: absolute; right: 8px; top: 7px; border: 0; background: transparent; padding: 7px; color: #d9e1e9; }
.form-error { color: #ffad9c; font-size: 12px; min-height: 18px; margin: 14px 0 8px; }
.check-label { display: flex; align-items: center; gap: 9px; margin-top: 20px; font-size: 12px; }
.check-label input { accent-color: #edc77f; }
.segmented { display: flex; background: #2b2d33; border-radius: 28px; padding: 3px; margin: 17px 0; }
.segmented button { flex: 1; border: 0; color: #91959e; background: transparent; padding: 12px 7px; border-radius: 25px; font-size: 12px; }
.segmented button.selected { background: linear-gradient(120deg,#484b53,#30333b); color: white; box-shadow: 0 3px 10px #0005; }
.auth-hero { height: 180px; background: radial-gradient(ellipse at 55% 100%,#a5ced7,#64818b 55%,#384650); margin: -16px -16px 0; clip-path: ellipse(85% 100% at 50% 0); display: flex; align-items: center; flex-direction: column; justify-content: center; }
.auth-logo { height: 90px; width: 100px; display: flex; align-items: center; justify-content: center; background: white; border-radius: 50%; font-size: 36px; color: #12232d; font-style: italic; font-weight: 700; text-shadow: -3px 2px #43bdc5,3px -2px #ec4c79; box-shadow: 0 10px 30px #17344066; }
.auth-hero p { font-size: 8px; letter-spacing: 2.3px; margin: 13px 0 15px; color: #e8f7fc; }
.auth-heading { text-align: center; margin: 16px 0 20px; }
.auth-heading h1 { font-size: 23px; }
.auth-heading p { color: var(--muted); font-size: 12px; }
.auth-tabs { margin: 24px 10px; }
.auth-card { padding: 25px 24px; border-radius: 17px; }
.auth-switch { text-align: center; color: #9da3ac; font-size: 12px; margin: 25px 0; }
.auth-switch a { color: #c8e1ec; }
.signed-out .bottom-nav, .signed-out .floating-gift, .signed-out .floating-support { display: none; }
.signed-out .app-shell { padding-bottom: 25px; }
.announcement { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 25px; background: #252c36; padding: 10px 12px; margin-bottom: 16px; font-size: 11px; text-align: left; }
.announcement > span:first-child { color: #9ad3ec; font-size: 20px; }
.announcement > span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.launch-banner { background: radial-gradient(ellipse at 90% 30%,#c8964959,transparent 60%),linear-gradient(120deg,#183742,#122027); border: 1px solid #667277; border-radius: 17px; padding: 25px 20px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.launch-banner > div:first-child { min-width: 0; flex: 1; z-index: 1; }
.eyebrow { font-size: 9px; letter-spacing: 2px; color: #edd5a3; }
.launch-banner h1 { margin: 15px 0 10px; font-size: 24px; letter-spacing: -.9px; }
.launch-banner p { font-size: 11px; color: #c3d0d4; margin-bottom: 20px; }
.gold-button { display: inline-flex; align-items: center; gap: 18px; border-radius: 25px; background: linear-gradient(100deg,#f6e2ad,#e9bb6d); color: #342b1e; font-size: 10px; padding: 10px 13px; font-weight: 600; }
.medallion { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 94px; height: 94px; flex-shrink: 0; border-radius: 50%; border: 4px double #f0d38c; outline: 2px solid #84632f; outline-offset: 2px; color: #eaca8a; background: radial-gradient(ellipse,#6b4c24,#16100d 65%); box-shadow: 0 0 18px #f2c66a30,inset 0 0 12px #f7cf7466; position: relative; }
.medallion > span { font-size: 28px; line-height: 30px; }
.medallion b { font-size: 16px; font-family: Georgia,serif; }
.medallion small { font-size: 7px; letter-spacing: 3px; margin-top: 4px; }
.launch-banner .medallion { transform: rotate(12deg) translateX(16px); width: 115px; height: 115px; opacity: .95; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px 12px; padding: 26px 3px; }
.shortcut { display: flex; flex-direction: column; gap: 9px; align-items: center; text-align: center; background: none; border: 0; font-size: 11px; line-height: 1.6; }
.action-icon { width: 43px; height: 43px; background: linear-gradient(130deg,#818c9a,#454b57); border: 1px solid #ffffff25; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 5px 12px #0005; }
.pink { background: linear-gradient(130deg,#fa74b0,#ca347d); }
.coral { background: linear-gradient(130deg,#fda783,#e75e5c); }
.blue { background: linear-gradient(130deg,#74c8f5,#326fd5); }
.gold { background: linear-gradient(130deg,#f9e99b,#ac8730); }
.purple { background: linear-gradient(130deg,#d77df1,#9b2bc7); }
.cyan { background: linear-gradient(130deg,#65dfed,#0b9fba); }
.violet { background: linear-gradient(130deg,#a58aee,#6750bb); }
.balance-card { background: linear-gradient(100deg,#faf1df,#ebdcc5); color: #151920; border-radius: 17px; padding: 19px; margin-bottom: 24px; }
.balance-card > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.balance-card > div:first-child strong { font-size: 12px; overflow-wrap: anywhere; }
.balance-amount { font-size: 29px; font-weight: 600; margin: 16px 0 5px; letter-spacing: -.8px; }
.balance-amount small { font-size: 11px; margin-left: 7px; font-weight: 400; }
.balance-card > a { font-size: 10px; color: #665741; }
.tier-badge { padding: 3px 8px; border-radius: 4px; background: linear-gradient(100deg,#fff2ca,#e7b86a); color: #493816; font-size: 10px; white-space: nowrap; }
.section-heading { display: flex; align-items: center; gap: 9px; margin: 23px 0 17px; font-size: 15px; }
.section-heading .action-icon { width: 32px; height: 32px; font-size: 20px; background: #476879; }
.task-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; }
.task-symbol { width: 48px; height: 59px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 29px; color: #d7f1ee; background: linear-gradient(140deg,#1fa5b7,#4a419a 60%,#b774bd); }
.task-copy { flex: 1; min-width: 0; }
.task-copy .row { align-items: flex-start; gap: 6px; }
.task-copy h3 { flex: 1; }
.task-copy p { margin: 11px 0; font-size: 11px; color: #c0c3c9; }
.task-copy .row + .row { margin-top: 9px; align-items: center; }
.compact .task-symbol { width: 50px; height: 67px; }
.milestone { padding: 17px; }
.milestone strong { font-size: 12px; line-height: 1.7; font-weight: 500; }
.milestone .row:first-child { align-items: flex-start; }
.milestone p { font-size: 10px; color: #b4b8c0; margin: 8px 0 15px; }
.progress { height: 4px; background: #858c95; border-radius: 9px; overflow: hidden; margin-top: 14px; }
.progress > span { display: block; height: 100%; background: #ead394; }
.reset-info { text-align: center; margin: 25px 0; font-size: 22px; font-weight: 500; }
.reset-info small { display: block; font-weight: 400; font-size: 11px; margin-top: 7px; }
.compact-reset { margin-top: 0; font-size: 17px; }
.room-card { display: flex; align-items: center; gap: 20px; padding: 22px 20px; border: 1px solid #26292f; border-radius: 80px; background: linear-gradient(100deg,#191c22,#2c2e34); margin-bottom: 18px; }
.room-card .medallion { height: 72px; width: 72px; }
.room-card .medallion span { font-size: 22px; }
.room-card > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.room-card small { color: #92979f; font-size: 9px; }
.room-card strong { font-size: 15px; }
.room-card > div > span { font-size: 12px; color: #cbd1da; }
.room-lock { color: #dad6c8; font-size: 24px; }
.task-counts { display: flex; justify-content: space-around; text-align: center; padding: 22px 15px; }
.task-counts small { display: block; color: #c4c6ca; max-width: 130px; }
.task-counts strong { display: block; font-size: 23px; margin-top: 10px; font-weight: 400; }
.empty { background: linear-gradient(120deg,#292c32,#202329); border: 1px solid #383b42; border-radius: 17px; padding: 65px 20px; text-align: center; color: #9b9fa8; }
.empty > div { font-size: 45px; color: #737a88; margin-bottom: 18px; }
.empty p { font-size: 12px; margin: 0; }
.invitation-card { border-radius: 17px; padding: 22px 17px; color: #242018; background: linear-gradient(110deg,#fae6ad,#e7bb6d); margin-bottom: 20px; border: 1px solid #f6e4b3; }
.invitation-card small { font-size: 11px; }
.invitation-code { font-size: 25px; margin: 8px 0; }
.invitation-card p { font-size: 12px; margin: 10px 0; line-height: 1.65; }
.invitation-card .truncate { font-size: 11px; }
.black-button { border: 0; border-radius: 22px; background: #121313; color: white; padding: 7px 15px; font-size: 10px; white-space: nowrap; display: inline-block; }
.share-buttons { display: flex; gap: 12px; margin-top: 20px; }
.share-buttons button { background: #ffffff47; border: 1px solid #7e693a55; border-radius: 16px; padding: 8px 10px; color: #242018; font-size: 11px; }
.level-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.level-card { display: flex; flex-direction: column; align-items: center; border: 1px solid #ffffff30; background: linear-gradient(135deg,#8dfd9d,#3995f0); color: white; border-radius: 14px; padding: 18px 8px 9px; }
.level-2 { background: linear-gradient(135deg,#f9b7b3,#6950df); }
.level-3 { background: linear-gradient(135deg,#e996b1,#5324bd); }
.level-card > span:first-child { font-size: 11px; white-space: nowrap; margin-bottom: 25px; }
.level-card small { font-size: 9px; opacity: .85; }
.level-card strong { font-size: 18px; margin: 8px 0 20px; font-weight: 500; }
.level-card b { font-size: 17px; margin: 7px 0 15px; }
.level-detail { background: linear-gradient(100deg,#ffb46b,#f8df90); border-radius: 14px; width: 100%; color: #694520; padding: 5px 3px; font-size: 10px; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; text-align: center; }
.metrics-grid small { display: block; font-size: 10px; color: var(--muted); }
.metrics-grid strong { display: block; font-size: 21px; font-weight: 400; margin-top: 8px; }
.member-row { border: 1px solid #34363c; border-radius: 30px; background: #282b31; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.member-row > div { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 11px; }
.member-row small { display: block; color: #a9a397; margin-top: 5px; font-size: 9px; }
.member-row .action-icon { height: 30px; width: 30px; font-size: 18px; flex-shrink: 0; }
.member-row > strong { font-size: 11px; white-space: nowrap; }
.vip-card { position: relative; padding: 38px 20px 20px; overflow: hidden; }
.ribbon { position: absolute; top: 13px; left: -25px; transform: rotate(-45deg); width: 130px; text-align: center; font-size: 10px; background: linear-gradient(100deg,#ecd2a6,#ffefc6); color: #4d3a24; padding: 5px; }
.vip-body { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.vip-body > div:last-child { flex: 1; min-width: 0; }
.detail-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; line-height: 1.7; margin: 9px 0; }
.detail-line > span { color: #a6a9b0; }
.detail-line b { font-weight: 400; text-align: right; white-space: nowrap; }
.vip-card .primary { font-size: 10px; padding-left: 9px; padding-right: 9px; }
.profile-card { padding: 25px 10px 5px; }
.profile-card .row > strong { font-size: 13px; overflow-wrap: anywhere; }
.profile-balances { display: flex; text-align: center; gap: 12px; margin: 35px 0 25px; }
.profile-balances > div { flex: 1; }
.profile-balances strong { display: block; font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.profile-balances small { font-size: 10px; color: #91949d; }
.account-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 29px 15px; padding: 14px 12px 30px; }
.admin-entry { display: flex; justify-content: space-between; padding: 17px; border: 1px solid #8b7449; border-radius: 13px; background: #3c3020; color: var(--gold); font-size: 12px; }
.payment-balance { background: #24272e; border-radius: 11px; padding: 20px 14px; margin-top: 20px; }
.payment-balance small { color: #adb2bb; display: block; margin-bottom: 9px; }
.payment-balance strong { font-size: 20px; font-weight: 500; }
.deposit-address { padding: 12px 0 3px; }
.deposit-address p { margin-bottom: 7px; }
.record .row { align-items: flex-start; }
.record .row > strong { font-size: 12px; }
.record .row > b { font-size: 12px; white-space: nowrap; }
.record p { font-size: 11px; color: var(--muted); margin: 12px 0 7px; }
.status { display: inline-block; border-radius: 15px; font-size: 9px; padding: 5px 8px; white-space: nowrap; background: #3d4655; color: #d3ddea; }
.status.pending, .status.open { background: #665436; color: #ffe0a7; }
.status.approved, .status.answered { background: #254c40; color: #b0f0d1; }
.status.rejected { background: #5a3037; color: #ffbdc5; }
.message-card h2 { font-size: 14px; }
.message-card p { font-size: 12px; }
.unread { border-color: #8f7950; }
.unread-dot { height: 7px; width: 7px; border-radius: 50%; background: #f0cf83; flex-shrink: 0; }
.support-reply { padding: 13px; border-left: 2px solid #d5b77d; background: #1e252c; border-radius: 5px; }
.support-reply strong { font-size: 11px; color: var(--gold); }
.support-reply p { margin: 8px 0 0; }
.table-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid #ffffff14; font-size: 12px; }
.table-line:last-child { border-bottom: 0; }
.table-line strong { max-width: 65%; overflow-wrap: anywhere; text-align: right; font-weight: 500; }
details { border-top: 1px solid #ffffff17; padding: 18px 0; }
details summary { cursor: pointer; font-size: 12px; }
details p { margin: 14px 0 0; color: #aeb5c0; font-size: 11px; }
.bottom-nav { display: flex; justify-content: space-around; position: fixed; bottom: 9px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 10px),450px); border: 1px solid #37393f; border-radius: 30px; padding: 10px 8px 12px; background: #2a2c32f5; z-index: 25; backdrop-filter: blur(15px); box-shadow: 0 5px 30px #0008; }
.bottom-nav a { display: flex; align-items: center; flex-direction: column; gap: 2px; color: #989ba3; font-size: 10px; width: 20%; }
.bottom-nav a > span { font-size: 24px; height: 28px; }
.bottom-nav a.active { color: #fff4da; }
.bottom-nav a.active > span { filter: drop-shadow(0 0 5px #edd5a340); }
.floating-gift, .floating-support { position: fixed; right: max(calc((100vw - 460px) / 2 + 9px),9px); height: 40px; width: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 21; background: #242830; color: #f6e2b7; border: 1px solid #777c88; font-size: 23px; box-shadow: 0 4px 15px #0006; }
.floating-support { bottom: 110px; }
.floating-gift { bottom: 164px; }
.wheel-panel { text-align: center; }
.wheel-remaining { font-size: 14px; margin-bottom: 8px; }
.wheel-remaining strong { color: #f9d395; font-size: 23px; margin-left: 5px; }
.wheel-pointer { color: #ffe0a4; font-size: 27px; position: relative; z-index: 1; height: 13px; margin-top: 18px; }
.wheel { width: 260px; height: 260px; margin: 0 auto 18px; border-radius: 50%; border: 13px double #eed9fb; background: conic-gradient(from -22.5deg,#ab65d5 0deg 45deg,#6b3daf 45deg 90deg,#ab65d5 90deg 135deg,#6b3daf 135deg 180deg,#ab65d5 180deg 225deg,#6b3daf 225deg 270deg,#ab65d5 270deg 315deg,#6b3daf 315deg); box-shadow: 0 0 0 5px #6b338b,0 0 0 9px #f5dbff,0 0 24px #a254d36b; position: relative; transition: transform 3.2s cubic-bezier(.13,.6,.16,1); }
.wheel:after { content: 'TOZ'; position: absolute; inset: 90px; border-radius: 50%; display: flex; justify-content: center; align-items: center; background: linear-gradient(#e7a1eb,#7132a3); border: 4px solid #c887e8; box-shadow: 0 0 0 3px #f8d7ff; color: #ffe0fd; font-size: 10px; }
.wheel > span { position: absolute; left: 90px; top: 9px; width: 54px; height: 40px; font-size: 14px; font-weight: 700; line-height: 1.5; color: #fff2ff; transform-origin: 27px 108px; transform: rotate(calc(var(--sector) * 45deg)); }
.wheel > span small { display: block; font-size: 7px; font-weight: 400; letter-spacing: 1px; }
.wheel-result { font-size: 12px; min-height: 35px; margin-top: 25px; color: #ffe4ab; }
.wheel-panel > .primary { margin-bottom: 17px; }
.wheel-panel > p:last-child { font-size: 10px; margin-bottom: 0; }
dialog { width: min(420px,calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: linear-gradient(120deg,#2d3037,#20242b); border: 1px solid #8a7e6a; border-radius: 22px; color: white; padding: 23px; box-shadow: 0 20px 80px #000c; }
dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal-heading h2 { font-size: 16px; margin-bottom: 0; }
.modal-heading button { flex-shrink: 0; border: 1px solid #7e838e; background: transparent; border-radius: 50%; height: 28px; width: 28px; padding: 0; font-size: 20px; }
dialog p { color: #cbd0d7; }
#toast { position: fixed; bottom: 96px; left: 50%; transform: translate(-50%,15px); opacity: 0; pointer-events: none; background: #f3ebda; color: #292723; padding: 13px 19px; border-radius: 14px; max-width: calc(100% - 32px); width: max-content; font-size: 12px; text-align: center; z-index: 100; transition: opacity .2s,transform .2s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
.admin-mode .app-shell { max-width: 1160px; padding-bottom: 30px; background-size: auto,70px 80px,100px 90px; }
.admin-mode .bottom-nav, .admin-mode .floating-gift, .admin-mode .floating-support { display: none; }
.admin-mode main { padding: 30px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 30px; }
.admin-heading h1 { margin: 8px 0 0; font-size: 28px; }
.admin-heading > .outline-button { font-size: 11px; }
.admin-layout { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 30px; }
.admin-sidebar { display: flex; flex-direction: column; gap: 4px; align-self: start; position: sticky; top: 90px; }
.admin-sidebar > a { padding: 12px 15px; border-radius: 10px; color: #9fa5af; font-size: 12px; border: 1px solid transparent; }
.admin-sidebar > a.selected { color: #f2dcae; background: #3d3425; border-color: #79633b; }
.admin-sidebar > a:hover { background: #252930; }
.admin-sidebar > button { margin: 22px 15px 10px; text-align: left; }
.admin-content { min-width: 0; }
.admin-content > h2 { font-size: 21px; margin-bottom: 23px; }
.admin-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-metrics .card { padding: 25px; background: #23272e; }
.admin-metrics small { display: block; color: #9ba4b0; }
.admin-metrics strong { display: block; font-size: 25px; margin-top: 15px; font-weight: 500; color: #f0d49e; }
.admin-content .card { background: #22262d; }
.section-row { margin-bottom: 20px; }
.section-row h2 { font-size: 21px; }
.section-row .primary { font-size: 11px; }
.search-label { font-size: 11px; color: #a6acb7; display: block; margin-bottom: 20px; }
.search-label .input { margin-top: 9px; }
.table-scroll { width: 100%; overflow-x: auto; background: #20242b; border: 1px solid #383d45; border-radius: 15px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #919cab; background: #292f38; font-weight: 500; font-size: 10px; padding: 16px 14px; white-space: nowrap; }
td { padding: 16px 14px; font-size: 11px; border-top: 1px solid #343a43; vertical-align: top; }
td strong { font-size: 11px; font-weight: 500; }
td small { display: block; margin-top: 6px; font-size: 9px; color: #959daa; max-width: 280px; line-height: 1.7; }
.table-empty { text-align: center; color: var(--muted); padding: 45px; }
[hidden] { display: none !important; }
@media (min-width:700px) {
  body { background: radial-gradient(ellipse at 50% 0,#33383d,#111318 65%); background-attachment: fixed; }
  .app-shell { border-left: 1px solid #373b43; border-right: 1px solid #373b43; }
  .admin-mode .topbar { padding-left: 30px; padding-right: 30px; }
}
@media (max-width:699px) {
  .admin-mode main { padding: 20px 14px; }
  .admin-layout { display: block; }
  .admin-sidebar { flex-direction: row; position: static; overflow-x: auto; gap: 5px; padding: 3px 0 15px; margin-bottom: 15px; }
  .admin-sidebar > a { white-space: nowrap; padding: 9px 13px; font-size: 11px; }
  .admin-sidebar > button { margin: 0; padding: 8px 15px; white-space: nowrap; }
  .admin-heading { margin-bottom: 20px; }
  .admin-heading h1 { font-size: 23px; }
  .admin-metrics { gap: 9px; }
  .admin-metrics .card { padding: 18px 13px; }
  .admin-metrics strong { font-size: 20px; }
}
@media (max-width:360px) {
  .launch-banner { padding-left: 15px; }
  .launch-banner h1 { font-size: 21px; }
  .launch-banner .medallion { width: 85px; height: 85px; }
  .row .positive { font-size: 10px; }
  .task-card { gap: 9px; padding: 13px; }
  .task-symbol { width: 33px; font-size: 22px; }
  .vip-body { gap: 12px; }
  .vip-body .medallion { width: 75px; height: 75px; }
  dialog { padding: 18px; }
  .wheel { width: 244px; height: 244px; }
  .wheel > span { left: 82px; transform-origin: 27px 100px; }
  .wheel:after { inset: 82px; }
}
@media (prefers-reduced-motion:reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Keep mixed-direction addresses and numbers legible in the Arabic layout. */
input[type="email"], input[type="tel"], input[type="url"], input[type="number"] { direction: ltr; text-align: start; }
[dir="rtl"] body { font-family: 'DM Sans', Tahoma, Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .page-title > a { left: auto; right: 17px; transform: rotate(180deg); }
[dir="rtl"] .password-field .input { padding-right: 14px; padding-left: 48px; }
[dir="rtl"] .password-field button { right: auto; left: 8px; }
[dir="rtl"] .balance-amount small { margin-left: 0; margin-right: 7px; }
[dir="rtl"] .table-line strong, [dir="rtl"] .detail-line b { text-align: left; }
[dir="rtl"] table { text-align: right; }
[dir="rtl"] .support-reply { border-left: 0; border-right: 2px solid #d5b77d; }
[dir="rtl"] .ribbon { left: auto; right: -25px; transform: rotate(45deg); }
[dir="rtl"] .admin-sidebar > button { text-align: right; }
[dir="rtl"] .launch-banner .medallion { transform: rotate(-12deg) translateX(-16px); }
[dir="rtl"] .floating-gift, [dir="rtl"] .floating-support { right: auto; left: max(calc((100vw - 460px) / 2 + 9px),9px); }
.wheel { direction: ltr; }

.reference-shortcuts { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px 8px; }
.reference-shortcuts .action-icon { border-radius: 13px; width: 46px; height: 46px; }
.reference-shortcuts .shortcut { font-size: 10px; }
.referral-banner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 23px 20px; border: 1px solid #ffd792; border-radius: 14px; background: radial-gradient(ellipse at 95% 30%,#ffe9ac,#df763c77 35%,transparent 60%),linear-gradient(120deg,#9d2024,#e34a22 65%,#b82332); text-align: start; overflow: hidden; box-shadow: inset 0 0 30px #fdcc7325; }
.referral-banner > div { display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.referral-banner small { color: #ffe8a3; letter-spacing: 2px; font-size: 9px; }
.referral-banner strong { font-size: 28px; color: #fff3bf; line-height: 1.2; }
.referral-banner div > span { max-width: 235px; font-size: 12px; line-height: 1.7; color: #fff0dd; }
.referral-banner b { font-size: 11px; font-weight: 500; color: #ffe48b; }
.banner-gift { font-size: 75px; transform: rotate(13deg); margin-inline-end: -15px; filter: drop-shadow(0 5px 15px #681317); }
.compact-balance { padding: 17px; border-radius: 15px; }
.compact-balance > div:first-child strong { max-width: 75%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-balance .tier-badge { display: inline-block; margin-top: 7px; }
.compact-balance > div > b { font-size: 22px; font-weight: 500; white-space: nowrap; }
.milestone-invites { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 10px; color: #c8cbd0; }
.milestone-invites small { font-size: 10px; }
.milestone-invites > span { border: 1px solid #a4a9b1; background: #ffffff22; padding: 2px 7px; border-radius: 12px; }
.activity-crown { color: #f3ce74; font-size: 23px; }
.document-links { display: flex; gap: 14px; flex-wrap: wrap; }
.document-links .external-link { border: 1px solid #656b75; border-radius: 9px; padding: 16px; margin: 0; flex: 1; }
.social-icons { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 19px; }
.social-icons a, .social-icons button { background: transparent; color: #1c1b18; border: 0; font-size: 21px; font-weight: 600; padding: 3px; min-width: 23px; line-height: 1; }
.social-icons a:nth-child(4) { font-size: 17px; }
.period-row { align-items: center; gap: 10px; margin-top: 12px; }
.period-row .section-heading { font-size: 12px; margin: 15px 0; }
.period-select { max-width: 160px; font-size: 10px; border: 1px solid #676345; border-radius: 18px; padding: 7px; background: #22272e; color: #e9ddbc; }
.team-summary { text-align: center; padding: 23px 14px; }
.summary-top, .summary-bottom { display: flex; gap: 10px; }
.summary-top > div, .summary-bottom > div { flex: 1; min-width: 0; }
.summary-top strong, .summary-bottom strong { display: block; font-weight: 400; margin-top: 9px; font-size: 22px; }
.team-summary small { color: #a5a7ad; font-size: 10px; }
.summary-bottom { margin-top: 22px; align-items: end; }
.vip-log-link { display: flex; justify-content: flex-end; margin: -8px 0 20px; font-size: 11px; color: #c7c5bf; }
.task-history-row { display: flex; align-items: center; gap: 13px; font-size: 12px; }
.task-history-row > div { flex: 1; }
.task-history-row strong { display: block; font-size: 12px; }
.task-history-row small { display: block; margin-top: 9px; color: #aeb3bc; font-size: 10px; }
.task-history-row b { font-weight: 400; white-space: nowrap; }
.support-channel-list { display: grid; gap: 10px; margin-bottom: 22px; }
.support-channel { display: flex; align-items: center; gap: 12px; background: #eff1f4; color: #292f37; padding: 15px 13px; border-radius: 14px; border: 1px solid #dfe3e7; min-height: 80px; text-align: start; }
.support-channel > span:nth-child(2) { flex: 1; font-size: 12px; }
.support-channel small { display: block; color: #8a939e; margin-top: 6px; font-size: 10px; }
.support-channel b { font-size: 22px; font-weight: 400; color: #99a0a9; }
.telegram-icon { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; border-radius: 11px; color: white; font-size: 32px; background: linear-gradient(130deg,#66d0f0,#1681ba); border: 1px solid #70c7e8; box-shadow: inset 0 0 0 2px #ffffff5c,0 3px 5px #285b7833; }
dialog.sheet-mode { margin: 0 auto; position: fixed; top: auto; bottom: 0; max-width: 460px; width: 100%; background: white; color: #20242b; border: 0; border-radius: 18px 18px 0 0; padding: 22px 17px 30px; }
.sheet-mode .modal-heading { justify-content: center; position: relative; }
.sheet-mode .modal-heading h2 { font-weight: 600; font-size: 16px; }
.sheet-mode .modal-heading button { position: absolute; inset-inline-end: 0; border: 0; background: #eff0f3; color: #555; }
.sheet-mode .sheet-subtitle { text-align: center; font-size: 10px; color: #9a9fa6; margin: 4px 0 24px; }
.sheet-mode .support-channel { background: #f5f7f9; border-color: #f5f7f9; margin-bottom: 12px; }
.application-icon { font-size: 80px; margin-bottom: 20px; color: #9fc9d9; }
.network-options { padding: 0; border: 0; display: flex; gap: 10px; margin: 24px 0 4px; }
.network-options legend { font-size: 12px; padding: 0 0 12px; }
.network-options > label { flex: 1; min-width: 0; position: relative; }
.network-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.network-options span { display: block; background: #353940; color: #929da9; padding: 9px 6px; border: 1px solid #61656d; border-radius: 4px; font-size: 11px; text-align: center; cursor: pointer; }
.network-options input:checked + span { background: #0d2a38; color: #e2f3f5; border-color: #5c9eb0; }
.network-options input:focus-visible + span { outline: 2px solid #e9d097; outline-offset: 3px; }
.withdrawal-time { color: #ef8b8f; font-size: 10px; margin: 8px 0 0; }
.withdrawal-card .payment-balance { margin-top: 14px; background: #272c33; }
.withdrawal-quote { border-top: 1px solid #ffffff18; padding-top: 8px; margin-top: 20px; }
.withdrawal-quote .detail-line { font-size: 11px; }
.withdrawal-rules p { font-size: 11px; color: #c8cbd1; }
.settings-section { padding-top: 23px; margin: 28px 0 18px; border-top: 1px solid #4d535d; color: #e8d4ab; font-size: 15px; }
.goal-settings { margin: 20px 0; border: 1px solid #49525f; border-radius: 12px; padding: 15px; }
.goal-settings legend { font-size: 11px; color: #c0c7d1; padding: 0 8px; }
.goal-settings .field-label { font-size: 11px; }
.password-strength { display: flex; align-items: center; gap: 3px; margin: 7px 0 5px; }
.password-strength > span { width: 20px; height: 4px; background: #8c9299; border-radius: 4px; }
.password-strength > small { font-size: 9px; color: #aeb5bf; margin-inline-start: 6px; }
.password-strength[data-score="1"] > span:first-child { background: #d36169; }
.password-strength[data-score="2"] > span:nth-child(-n+2) { background: #e3bd70; }
.password-strength[data-score="3"] > span { background: #38ba9e; }
.wheel-rules { margin-top: 22px; padding: 16px; text-align: start; }
.wheel-rules h3 { color: #f3d3a3; }
.wheel-rules p { font-size: 10px; }
.wheel-invite { font-size: 12px; margin: 18px 0; }
.share-wheel { margin-bottom: 10px; }
.wheel:before { content: ''; position: absolute; inset: -10px; border: 7px dotted #fff4ff; border-radius: 50%; pointer-events: none; }
.announcement-body { padding: 18px; background: #fffdf4; color: #34322f; border: 4px solid #153348; max-height: 55dvh; overflow: auto; font-size: 13px; }
