/* Draft extensions: rates table, install CTAs, security, iOS/Android guides, 20-language menu */

.lang-menu{
  max-height:min(74vh, 640px);
  overflow:auto;
  min-width:260px;
}
@media (width>=720px){
  .lang-menu{
    display:grid;
    grid-template-columns:1fr 1fr;
    min-width:420px;
  }
}

.actions .btn{width:100%}
@media (width>=720px){
  .actions .btn{width:auto;min-width:220px}
}

.btn-install{
  color:var(--ink);
  background:linear-gradient(#5af094 0%, #1f9a52 100%);
  box-shadow:inset 0 1px #ffffffb3,0 0 0 1px #f2c14d55,0 10px 28px #2eb45a38;
}
.btn-install:hover{filter:brightness(1.05)}
.btn-install .ico,
.btn .ico{
  width:18px;height:18px;flex:none;
}

.apk-note{
  color:var(--muted);
  font-size:.9rem;
  margin:10px 0 0;
}

/* four how-to steps */
@media (width>=720px){
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (width>=1100px){
  .steps.steps-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}

.sec-grid{
  display:grid;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}
@media (width>=720px){
  .sec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.sec-card{
  border:1px solid var(--line);
  background:#0c2016eb;
  border-radius:18px;
  padding:18px;
}
.sec-card h3{
  letter-spacing:-.03em;
  margin:0 0 8px;
  font-size:1.15rem;
  display:flex;
  align-items:center;
  gap:8px;
}
.sec-card p{color:var(--muted);margin:0}
.sec-ico{
  color:var(--gold);
  font-size:1.15rem;
}

/* Rates table: horizontal scroll on small screens, sticky coin column */
.rates-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:18px;
  background:#0c2016eb;
  -webkit-overflow-scrolling:touch;
  margin-top:8px;
}
.rates-wrap:focus-visible{outline:2px solid #fff;outline-offset:2px}
table.rates{
  width:max(100%, 720px);
  border-collapse:separate;
  border-spacing:0;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum";
}
table.rates th,
table.rates td{
  padding:12px 14px;
  text-align:right;
  white-space:nowrap;
  border-bottom:1px solid var(--line);
  font-size:.95rem;
}
table.rates thead th{
  color:var(--muted);
  font-weight:650;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:#10261c;
  position:sticky;
  top:0;
  z-index:1;
}
table.rates tbody th,
table.rates thead th:first-child{
  text-align:start;
  position:sticky;
  inset-inline-start:0;
  background:#102018;
  z-index:2;
  font-weight:700;
  letter-spacing:-.02em;
}
table.rates thead th:first-child{z-index:3;background:#0e2218}
table.rates tbody tr:last-child th,
table.rates tbody tr:last-child td{border-bottom:0}
table.rates tbody tr:hover td,
table.rates tbody tr:hover th{background:#3ee07a14}
table.rates .coin-cell{
  display:flex;
  align-items:center;
  gap:10px;
}
table.rates .coin-cell img{width:24px;height:24px;border-radius:50%;flex:none}
.rates-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  align-items:baseline;
  margin:12px 0 0;
  color:var(--muted);
  font-size:.92rem;
}
.rates-notes{
  margin:16px 0 0;
  padding:0;
  list-style:none;
  color:var(--muted);
  display:grid;
  gap:8px;
}
.rates-notes li{padding-inline-start:0}

.term-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.term-pills span{
  border:1px solid var(--line-gold);
  color:var(--gold-2);
  border-radius:999px;
  padding:6px 10px;
  font-size:.85rem;
  font-weight:650;
}

.dock{
  gap:8px;
}
.dock .btn{width:auto;flex:1;min-height:48px;padding-inline:12px;font-size:.95rem}
@media (width>=960px){
  .steps.steps-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Install / guide modal */
.modal[hidden]{display:none !important}
.modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:grid;
  place-items:end center;
  padding:12px 12px calc(12px + env(safe-area-inset-bottom));
  background:#00000099;
}
@media (width>=720px){
  .modal{place-items:center}
}
.modal-card{
  width:min(520px, 100%);
  max-height:min(90vh, 760px);
  overflow:auto;
  background:linear-gradient(#3ee07a14,#0000 28%), #0e1c15;
  border:1px solid var(--line-gold);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:22px 20px 18px;
  color:var(--text);
}
.modal-card h2{
  margin:0 0 8px;
  font-size:1.45rem;
  max-width:none;
}
.modal-card .lede-sm{
  color:var(--muted);
  margin:0 0 18px;
  font-size:.98rem;
}
.guide-steps{
  display:grid;
  gap:12px;
  margin:0 0 16px;
  padding:0;
  list-style:none;
  counter-reset:gs;
}
.guide-steps li{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  background:#0c2016eb;
  border-radius:16px;
  padding:12px;
}
.guide-ill{
  width:56px;height:56px;
  border-radius:14px;
  background:#10261c;
  border:1px solid var(--line-emerald);
  display:grid;
  place-items:center;
  color:var(--gold);
}
.guide-ill svg{width:30px;height:30px}
.guide-steps h3{
  margin:0 0 4px;
  font-size:1.02rem;
  letter-spacing:-.02em;
}
.guide-steps p{margin:0;color:var(--muted);font-size:.92rem}
.modal-actions{display:flex;flex-direction:column;gap:8px}
.modal-close{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--muted);
  position:absolute;
  inset-inline-end:14px;
  top:12px;
  width:40px;height:40px;
  border-radius:999px;
  cursor:pointer;
  font-size:1.4rem;
  line-height:1;
}
.modal-card{position:relative}
.modal-close:hover{color:var(--text);background:#ffffff14}

/* Choose platform (desktop) */
.platform-choice{
  display:grid;
  gap:10px;
  margin:0 0 14px;
}
.platform-choice .btn{width:100%}

/* RTL tweaks */
[dir=rtl] .faq summary:after{
  transform:rotate(45deg);
}
[dir=rtl] table.rates th,
[dir=rtl] table.rates td{text-align:left}
[dir=rtl] table.rates tbody th,
[dir=rtl] table.rates thead th:first-child{text-align:right}

/* CJK / Thai / Korean / Japanese: rely on system fonts already in the stack */
:lang(th){font-family:Onest,"Noto Sans Thai","Thonburi","Sarabun",sans-serif}
:lang(ja){font-family:Onest,"Hiragino Sans","Noto Sans JP","Yu Gothic",sans-serif}
:lang(ko){font-family:Onest,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif}
:lang(zh-Hans),:lang(zh-CN){font-family:Onest,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif}
:lang(zh-Hant),:lang(zh-TW){font-family:Onest,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}

body.is-standalone .js-install{display:none !important}

@media (prefers-reduced-motion:reduce){
  .modal{scroll-behavior:auto}
}

.footer-brand{align-items:flex-start}
.footer-brand div p{margin:0}
.footer{padding-bottom:calc(28px + env(safe-area-inset-bottom))}

/* WhatsApp lead form (unpublished draft; emerald + gold, mobile-first) */
.wa-section{padding-top:12px}
.wa-card{
  margin-top:20px;
  padding:22px 18px 20px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(16,64,48,.55), rgba(10,28,24,.8));
  border:1px solid rgba(212,175,55,.38);
  box-shadow:0 12px 40px rgba(0,0,0,.28);
  max-width:560px;
}
.wa-form{display:flex;flex-direction:column;gap:14px}
.wa-field{display:flex;flex-direction:column;gap:6px;font-weight:600;color:var(--gold,#d4af37)}
.wa-field span{font-size:.92rem}
.wa-field input,
.wa-field select,
.wa-field textarea{
  font:inherit;
  font-weight:500;
  font-size:16px; /* avoids iOS zoom */
  color:#f4f7f5;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(212,175,55,.28);
  border-radius:12px;
  padding:12px 14px;
  min-height:48px;
  width:100%;
  box-sizing:border-box;
}
.wa-field textarea{min-height:96px;resize:vertical}
.wa-field input:focus,
.wa-field select:focus,
.wa-field textarea:focus{
  outline:2px solid rgba(46,139,87,.85);
  outline-offset:1px;
  border-color:rgba(46,139,87,.9);
}
.wa-field small{font-weight:500;color:rgba(244,247,245,.72);font-size:.82rem}
.wa-consent{
  display:flex;align-items:flex-start;gap:10px;
  font-size:.95rem;line-height:1.4;color:#f4f7f5;
}
.wa-consent input{width:20px;height:20px;margin-top:2px;flex:none;accent-color:#2e8b57}
.wa-submit{width:100%;min-height:48px;justify-content:center}
.wa-error{color:#ffb4a8;margin:0;font-size:.92rem}
.wa-success{
  padding:8px 2px 4px;
  color:#e8f6ee;
  font-size:1.05rem;
  line-height:1.45;
}
.wa-success p{margin:0}
.wa-card.is-sent .wa-form{display:none}
.wa-card.is-sent .wa-success{display:block}
.hp{
  /* Honeypot: visually hidden without a huge offset (a left:-10000px offset made
     the Arabic RTL page 10 000 px wide, zoomed out and the language button untappable). */
  position:absolute;
  width:1px;height:1px;
  margin:-1px;padding:0;border:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}
@media (min-width:720px){
  .wa-card{padding:28px 28px 24px}
  .hero .actions{flex-wrap:wrap}
}

/* Website support chat widget */
.msw-fab-wrap{
  position:fixed;
  inset-inline-end:calc(12px + env(safe-area-inset-right, 0px));
  bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  z-index:60;
  display:flex;
  align-items:center;
  gap:8px;
  max-width:calc(100vw - 24px);
  padding:0;border:0;background:transparent;
  cursor:pointer;
  font:inherit;
  color:inherit;
  overflow:visible;
}
body.has-dock .msw-fab-wrap{
  /* just above the fixed dock, with a small gap */
  bottom:calc(96px + env(safe-area-inset-bottom, 0px));
}
@media (max-width:719px){
  /* room for the 48px owl beside a single-line install button */
  body.has-dock .hero .actions{padding-inline-end:72px}
}
@media (min-width:400px) and (min-height:860px){
  /* taller phones: also clear the wider pill above the owl */
  body.has-dock .hero .actions{padding-inline-end:128px}
}
.msw-fab-label{
  background:#102018;
  color:var(--gold-2,#ffe7a8);
  border:1px solid var(--line-gold,#f2c14d80);
  border-radius:999px;
  padding:8px 12px;
  font-size:.82rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  max-width:min(58vw, 200px);
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:1;
  visibility:visible;
}
.msw-fab{
  position:relative;
  flex:none;
  width:56px;height:56px;
  padding:0;border:0;
  border-radius:50%;
  background:linear-gradient(180deg,#2e8b57,#14914a);
  box-shadow:0 8px 24px rgba(0,0,0,.35),0 0 0 2px rgba(242,193,77,.55);
  display:grid;
  place-items:center;
  pointer-events:none;
}
.msw-fab-avatar{width:40px;height:40px;border-radius:50%;display:block;margin:0 auto;object-fit:cover}
@media (max-width:719px){
  .msw-fab-wrap{
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
  }
  .msw-fab-label{font-size:.72rem;padding:5px 9px;max-width:min(62vw, 168px)}
  .msw-fab{width:48px;height:48px}
  .msw-fab-avatar{width:34px;height:34px}
}
@media (max-width:379px){
  .msw-fab-label{font-size:.7rem;padding:4px 8px}
}
.msw-fab-badge{
  position:absolute;top:-4px;inset-inline-end:-4px;
  min-width:20px;height:20px;padding:0 5px;
  border-radius:999px;background:var(--gold,#f2c14d);color:var(--ink,#10210c);
  font-size:.7rem;font-weight:800;line-height:20px;text-align:center;
}
.msw-panel{
  position:fixed;
  z-index:55;
  inset-inline-end:12px;
  bottom:16px;
  width:min(380px, calc(100vw - 24px));
  max-height:min(72vh, 620px);
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,#163528 0%,#0c1c15 36%);
  border:1px solid var(--line-gold,#f2c14d80);
  border-radius:20px;
  box-shadow:var(--shadow,0 24px 70px #00000073);
  overflow:hidden;
  color:var(--text,#f3f7f1);
}
.msw-panel[hidden]{display:none !important}
body.has-dock .msw-panel{bottom:calc(84px + env(safe-area-inset-bottom))}
.msw-panel-head{
  display:flex;align-items:center;gap:10px;
  padding:12px 12px 10px;border-bottom:1px solid var(--line,#aae6ba24);
  background:rgba(0,0,0,.18);
}
.msw-panel-avatar{border-radius:50%;flex:none}
.msw-panel-titles{min-width:0;flex:1}
.msw-panel-titles h2{margin:0;font-size:1rem;line-height:1.25}
.msw-eta{margin:2px 0 0;font-size:.8rem;color:var(--muted,#c5d4c8);font-weight:500}
.msw-panel-close{
  width:36px;height:36px;border:0;background:transparent;color:var(--text,#f3f7f1);
  font-size:1.6rem;line-height:1;cursor:pointer;border-radius:8px;
}
.msw-intro{margin:10px 14px 0;font-size:.88rem;color:var(--muted,#c5d4c8)}
.msw-log{flex:1;overflow:auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.msw-msg{max-width:90%;padding:8px 10px;border-radius:14px}
.msw-msg-visitor{align-self:flex-end;background:rgba(46,139,87,.28);border:1px solid rgba(46,139,87,.4)}
.msw-msg-admin{align-self:flex-start;background:rgba(242,193,77,.12);border:1px solid rgba(242,193,77,.35)}
.msw-msg-who{display:block;font-size:.72rem;font-weight:700;color:var(--gold,#f2c14d);margin-bottom:2px}
.msw-msg-text{margin:0;white-space:pre-wrap;word-break:break-word;font-size:.95rem}
.msw-form{display:flex;flex-direction:column;gap:8px;padding:8px 12px 12px}
.msw-field{display:flex;flex-direction:column;gap:4px;font-size:.8rem;font-weight:600;color:var(--gold,#f2c14d)}
.msw-field input,.msw-field textarea{
  font:inherit;font-weight:500;font-size:16px;color:#f4f7f5;
  background:rgba(0,0,0,.28);border:1px solid rgba(242,193,77,.28);
  border-radius:12px;padding:10px 12px;width:100%;box-sizing:border-box;
}
.msw-field textarea{min-height:72px;resize:vertical}
.msw-send{width:100%;min-height:44px;justify-content:center}
.msw-error{margin:0;color:#ffb4a8;font-size:.85rem}
.msw-closed{padding:10px 14px 8px;color:var(--text,#f3f7f1)}
.msw-closed p{margin:0 0 8px}
.msw-new{width:100%}
@media (max-width:719px){
  .msw-panel{
    inset:auto 0 0 0;
    width:100%;
    max-height:min(86vh, 680px);
    border-radius:20px 20px 0 0;
    bottom:0 !important;
  }
}

.msw-support [hidden]{display:none !important}

/* Income calculator */
.calc-card{
  background:var(--card);
  border:1px solid var(--line-gold);
  border-radius:20px;
  padding:20px;
  display:grid;
  gap:14px;
  box-shadow:var(--shadow);
}
.calc-field{display:flex;flex-direction:column;gap:6px;font-weight:600}
.calc-field span{color:var(--muted);font-size:.92rem;font-weight:600}
.calc-field input,
.calc-field select{
  background:rgba(0,0,0,.28);
  border:1px solid rgba(242,193,77,.28);
  border-radius:12px;
  padding:10px 12px;
  width:100%;
  color:var(--text);
  min-height:48px;
}
.calc-result{
  background:linear-gradient(180deg, #10261c, #0c1c15);
  border:1px solid var(--line-emerald);
  border-radius:16px;
  padding:14px 16px;
}
.calc-result p{margin:0 0 6px}
.calc-result p:last-child{margin:0}
.calc-reward strong,.calc-pct strong,.calc-usd strong{
  color:var(--gold-2);
  font-size:1.15rem;
}
.calc-disclaimer{
  color:var(--muted);
  font-size:.92rem;
  margin:0;
}
.calc-card .btn{justify-content:center;width:100%;min-height:48px}
@media (width>=720px){
  .calc-card{
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:end;
  }
  .calc-result,.calc-disclaimer,.calc-card .btn{grid-column:1/-1}
}

.licence{font-size:.95rem;color:var(--text)}
.policy .licence{color:var(--text)}
.wa-turnstile,.msw-turnstile{margin:4px 0 8px;min-height:0}
.msw-consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}
.msw-consent input{margin-top:4px;flex:none}
.msw-consent a{color:var(--gold-2)}
.wa-consent a{color:var(--gold-2)}

/* Open language menu must sit above the cookie banner, the mobile dock and the chat button,
   otherwise the lower languages (e.g. 中文) are covered and cannot be tapped. */
.header:has(.lang[open]){z-index:70}


/* Standalone mobile app is not public: hide install CTAs (wallet is opened in Telegram). */
html.msw-no-native-app [data-install],
html.msw-no-native-app .btn-install,
html.msw-no-native-app #ios-guide,
html.msw-no-native-app #android-guide,
html.msw-no-native-app #platform-guide{display:none !important}
html.msw-no-native-app .dock .btn-install{display:none !important}
html.msw-no-native-app .dock .btn{width:100%}


/* Leave a column for the Support 24/7 orb so it does not cover cookie Accept on phones. */
@media (width < 960px){
  .cookie{inset-inline-end:76px;inset-inline-start:12px}
}
