:root {
  color-scheme: dark;
  --bg: #04130f;
  --panel: rgba(10, 39, 31, 0.76);
  --panel-strong: #0d352a;
  --line: rgba(225, 194, 119, 0.22);
  --gold: #dfc57f;
  --gold-soft: #f7e8bc;
  --green: #5bd3a6;
  --text: #fffaf0;
  --muted: #9fbdb1;
  --danger: #e47d73;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -5%, #17604c 0, transparent 34%),
    radial-gradient(circle at 85% 38%, rgba(112, 86, 31, .18) 0, transparent 29%),
    linear-gradient(155deg, #03110d 0%, #08251d 48%, #03120e 100%);
  background-size: 130% 130%;
  overflow-x: hidden;
  animation: backgroundShift 18s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8bd72' stroke-opacity='.18'%3E%3Cpath d='M36 2l9 17 19 9-19 9-9 17-9-17-19-9 19-9z'/%3E%3C/g%3E%3C/svg%3E");
}

button { font: inherit; }
button i { margin-right: 7px; }
.shell { position: relative; z-index: 2; width: min(100%, 560px); margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 18px calc(116px + env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 13px; margin: 2px 2px 22px; }
.mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(247,232,188,.27); border-radius: 18px; color: var(--gold-soft); font-size: 23px; background: linear-gradient(145deg, rgba(223,197,127,.17), rgba(91,211,166,.05)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.25); }
.eyebrow, .label { color: var(--gold); letter-spacing: .16em; font-size: 10px; font-weight: 800; }
h1 { margin: 2px 0 0; font-size: 23px; letter-spacing: .06em; }
h1 span { color: var(--gold); font-weight: 500; }
.hero { position: relative; min-height: 178px; padding: 28px 25px; overflow: hidden; border: 1px solid rgba(247,232,188,.23); border-radius: 29px; background: linear-gradient(135deg, rgba(22,83,65,.95), rgba(7,31,25,.9)); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 28px 70px rgba(0,0,0,.28); }
.hero::before { content: ""; position: absolute; inset: -60% -20% auto 30%; height: 180px; transform: rotate(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); animation: heroSheen 9s ease-in-out infinite; }
.hero-copy { position: relative; z-index: 2; }
.hero p { margin: 0 0 9px; color: var(--gold-soft); font-size: 13px; }
.hero h2 { margin: 0; max-width: 390px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(28px, 8vw, 40px); line-height: 1.06; letter-spacing: -.025em; text-shadow: 0 6px 24px rgba(0,0,0,.25); }
.mosque { position: absolute; right: -3px; bottom: -4px; width: 155px; height: 150px; opacity: .34; }
.moon { position: absolute; right: 30px; top: 1px; color: var(--gold); font-size: 38px; transform: rotate(-9deg); }
.dome { position: absolute; right: 10px; bottom: 0; width: 114px; height: 74px; border-radius: 60px 60px 7px 7px; background: var(--gold); }
.dome::before { content: ""; position: absolute; left: 51px; top: -39px; width: 12px; height: 43px; border-radius: 8px; background: var(--gold); }
.dome::after { content: "◆"; position: absolute; left: 48px; top: -55px; color: var(--gold); font-size: 17px; }
.tower { position: absolute; right: 126px; bottom: 0; width: 17px; height: 108px; background: var(--gold); border-radius: 9px 9px 0 0; }
.tower::before { content: ""; position: absolute; left: -8px; top: 20px; width: 33px; height: 12px; border-radius: 50%; background: var(--gold); }
.card { margin-top: 15px; padding: 22px; border: 1px solid rgba(225,194,119,.2); border-radius: 25px; background: linear-gradient(145deg, rgba(14,52,42,.84), rgba(7,30,24,.76)); backdrop-filter: blur(22px) saturate(125%); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 20px 55px rgba(0,0,0,.2); }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h3 { margin: 7px 0 0; font-size: 23px; }
.pill { display: inline-flex; min-width: max-content; flex: 0 0 auto; align-items: center; justify-content: center; padding: 7px 10px; border-radius: 999px; color: var(--green); background: rgba(73,200,154,.12); border: 1px solid rgba(73,200,154,.25); font-size: 9px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.pill.loading { color: var(--gold); background: rgba(216,189,114,.1); border-color: var(--line); }
.pill.inactive { color: var(--danger); background: rgba(228,125,115,.1); border-color: rgba(228,125,115,.22); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 23px 0 13px; }
.metrics > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.metric-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.metrics strong { font-size: 16px; }
.progress { height: 5px; margin-bottom: 22px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .5s ease; }
.primary, .secondary { width: 100%; min-height: 54px; border-radius: 17px; font-weight: 800; cursor: pointer; transition: transform .15s ease, opacity .15s ease, box-shadow .2s ease; }
.primary { border: 0; color: #09261e; background: linear-gradient(135deg, #fff0c3, #d8b95f); box-shadow: 0 14px 32px rgba(216,185,95,.18), inset 0 1px rgba(255,255,255,.5); }
.primary:disabled { cursor: default; opacity: .48; box-shadow: none; }
.secondary { margin-top: 9px; border: 1px solid var(--line); color: var(--gold-soft); background: rgba(255,255,255,.025); }
.primary:active:not(:disabled), .secondary:active { transform: scale(.985); }
.client-actions { display: grid; gap: 10px; }
.client-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; padding: 13px; border: 1px solid; border-radius: 19px; }
.client-logo { width: 48px; height: 48px; grid-row: 1; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.client-copy { min-width: 0; align-self: center; }
.client-copy strong, .client-copy span { display: block; }
.client-copy strong { font-size: 15px; }
.client-copy span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.client-buttons { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; }
.client-button { min-width: 0; min-height: 43px; padding: 8px 10px; border: 1px solid; border-radius: 13px; font-size: 14px; font-weight: 900; cursor: pointer; transition: transform .15s ease, opacity .15s ease, box-shadow .2s ease; }
.client-button:active:not(:disabled) { transform: scale(.98); }
.client-button:disabled { cursor: default; opacity: .48; }
.client-button i { margin-right: 6px; }
.happ-client { border-color: rgba(216,222,229,.22); background: linear-gradient(145deg, rgba(193,200,208,.1), rgba(58,64,68,.08)); }
.happ-client .client-add { color: #101516; border-color: rgba(255,255,255,.55); background: linear-gradient(135deg, #f3f5f6, #aeb6bc); box-shadow: inset 0 1px rgba(255,255,255,.75), 0 9px 22px rgba(179,188,194,.1); }
.happ-client .client-download { color: #eef1f3; border-color: rgba(216,222,229,.24); background: rgba(216,222,229,.08); }
.incy-client { border-color: rgba(86,224,115,.25); background: linear-gradient(145deg, rgba(23,171,76,.13), rgba(5,65,35,.09)); }
.incy-client .client-add { color: #041b0e; border-color: rgba(131,241,126,.5); background: linear-gradient(135deg, #26dd72, #a5e659); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 9px 22px rgba(38,221,114,.1); }
.incy-client .client-download { color: #bdf5bf; border-color: rgba(86,224,115,.25); background: rgba(40,205,91,.08); }
.copy-subscription { width: 100%; min-height: 44px; margin-top: 9px; border: 1px solid var(--line); border-radius: 14px; color: var(--gold-soft); background: rgba(223,197,127,.05); font-size: 14px; font-weight: 800; cursor: pointer; }
.copy-subscription:active { transform: scale(.985); }
.app-downloads { margin: 15px 0; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.app-downloads summary { padding: 8px 0; color: var(--gold-soft); text-align: center; font-size: 11px; font-weight: 800; cursor: pointer; }
.app-downloads[open] summary { margin-bottom: 9px; }
.app-downloads > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-downloads small { display: block; margin-top: 9px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.4; }
.store-button { min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; color: var(--gold-soft); background: rgba(216,189,114,.06); font-size: 10px; font-weight: 800; cursor: pointer; }
.store-button.android { grid-column: 1 / -1; }
.store-button:active { transform: scale(.98); }
.guide-button { width: 100%; margin-top: 10px; padding: 0; border: 0; color: var(--gold); background: none; font-size: 11px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.guide-dialog { width: min(calc(100% - 28px), 520px); max-height: 86vh; padding: 22px; overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: #0c2d25; box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.guide-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.guide-head h2 { margin: 5px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.guide-close { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-soft); background: rgba(216,189,114,.08); font-size: 25px; cursor: pointer; }
.guide-dialog > p { margin: 18px 0 13px; color: #dce9e4; font-size: 13px; line-height: 1.55; }
.guide-warning { padding: 13px; border-left: 3px solid var(--gold); border-radius: 10px; color: var(--gold-soft); background: rgba(216,189,114,.09); font-size: 12px; line-height: 1.5; }
.guide-dialog ol { margin: 17px 0 4px; padding-left: 25px; color: #dce9e4; font-size: 13px; line-height: 1.55; }
.guide-dialog li { padding: 0 0 11px 5px; }
.notice { margin: 13px 3px 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.45; }
.devices-panel { padding-top: 4px; }
.devices-card { margin-top: 0; }
.devices-card h3 { font-size: 19px; }
.devices-help { margin: 14px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.devices-list { display: grid; gap: 9px; }
.devices-loading, .devices-empty { padding: 18px 8px; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.5; }
.device-item { padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.038), rgba(255,255,255,.012)); }
.device-summary { display: flex; align-items: center; gap: 11px; }
.device-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 14px; color: var(--gold-soft); background: rgba(216,189,114,.09); font-size: 18px; }
.device-copy { min-width: 0; }
.device-copy strong, .device-copy small { display: block; }
.device-copy strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.device-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.device-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.device-action { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--gold-soft); background: transparent; font-size: 14px; font-weight: 800; cursor: pointer; }
.device-action.danger { color: #f3aaa3; border-color: rgba(228,125,115,.3); background: rgba(228,125,115,.06); }
.device-action:disabled { cursor: default; opacity: .45; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.feature { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 20px; background: rgba(7,31,25,.66); }
.feature > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 13px; color: var(--gold); background: rgba(216,189,114,.09); font-size: 17px; }
.feature strong, .feature small { display: block; }
.feature strong { font-size: 13px; }
.feature small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.mission { display: flex; gap: 15px; align-items: center; margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(216,189,114,.07); }
.mission-icon { display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 auto; border-radius: 16px; color: var(--gold-soft); background: rgba(216,189,114,.12); font-size: 21px; }
.mission p { margin: 6px 0 0; color: #e4ddca; font-size: 12px; line-height: 1.5; }
footer { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 24px 0 3px; color: #6e9485; }
.link-button { padding: 0; border: 0; color: var(--muted); background: none; font-size: 11px; cursor: pointer; }
.glow { position: fixed; width: 300px; height: 300px; border-radius: 50%; filter: blur(100px); opacity: .17; pointer-events: none; animation: glowDrift 14s ease-in-out infinite alternate; }
.glow-one { top: -100px; right: -100px; background: var(--gold); }
.glow-two { bottom: 5%; left: -180px; background: var(--green); animation-delay: -6s; animation-direction: alternate-reverse; }
.tab-panel[hidden] { display: none !important; }
.section-heading { display: flex; align-items: center; gap: 13px; margin: 4px 2px 20px; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.section-icon { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--line); border-radius: 17px; background: rgba(216,189,114,.08); font-size: 22px; }
.payment-panel, .support-panel { padding-top: 4px; }
.earn-panel { padding-top: 4px; }
.subscription-panel { padding-top: 4px; }
.payment-card, .support-card { position: relative; margin-top: 0; }
.payment-options { position: relative; }
.payment-card h3, .support-card h3 { margin-top: 2px; }
.payment-card p, .support-card p { margin: 12px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.soon-badge { position: absolute; top: 18px; right: 18px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); background: rgba(216,189,114,.08); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 14px; }
.payment-method { display: flex; min-height: 60px; padding: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; color: #d9e7e1; background: rgba(255,255,255,.035); cursor: pointer; }
.payment-method strong { font-size: 12px; }
.payment-method small { color: var(--muted); font-size: 9px; }
.payment-method.selected { border-color: rgba(216,189,114,.75); color: var(--gold-soft); background: rgba(216,189,114,.1); }
.payment-card .payment-methods { margin: 12px 0 20px; }
.payment-card .tariff-heading { margin-top: 4px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 17px 0; }
.plans-loading { grid-column: 1 / -1; padding: 28px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.plans-loading.error { color: var(--danger); }
.promo-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 4px 0 7px; }
.promo-box input { min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--text); background: rgba(255,255,255,.035); text-transform: uppercase; }
.promo-box input:focus { border-color: var(--gold); }
.promo-box button { padding: 0 14px; border: 1px solid rgba(216,189,114,.5); border-radius: 14px; color: var(--gold-soft); background: rgba(216,189,114,.1); font-size: 10px; font-weight: 800; }
.promo-result { display: block; min-height: 17px; margin: 0 3px 8px; color: var(--green); font-size: 10px; }
.plan-option { position: relative; display: flex; min-height: 126px; padding: 15px; overflow: hidden; align-items: flex-start; flex-direction: column; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; color: var(--text); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .15s ease; }
.plan-option:active { transform: scale(.98); }
.plan-option.selected { border-color: rgba(216,189,114,.75); background: linear-gradient(145deg, rgba(216,189,114,.14), rgba(73,200,154,.05)); box-shadow: inset 0 0 0 1px rgba(216,189,114,.12); }
.plan-term { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.plan-option strong { font-size: 21px; }
.plan-monthly { margin-top: 5px; color: var(--gold-soft); font-size: 10px; }
.plan-saving { margin-top: auto; padding-top: 9px; color: var(--green); font-size: 10px; font-weight: 800; }
.plan-recommended { position: absolute; top: 10px; right: -21px; width: 82px; padding: 4px 0; transform: rotate(40deg); color: #08241c; background: var(--gold); text-align: center; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.pay-plan { margin-top: 2px; }
.payment-help { margin-top: 15px; padding: 14px; border: 1px solid rgba(216,189,114,.25); border-radius: 15px; color: var(--gold-soft); background: rgba(216,189,114,.07); }
.payment-help strong { display: block; font-size: 12px; }
.payment-help p { margin: 6px 0 0; color: #dce9e4; font-size: 11px; line-height: 1.5; }
.wallet-pay { border-color: rgba(91,211,166,.28); color: #c9f5e4; }
.earn-hero { position: relative; display: flex; min-height: 174px; padding: 25px; overflow: hidden; align-items: flex-start; justify-content: flex-end; flex-direction: column; border: 1px solid rgba(247,232,188,.3); border-radius: 27px; background: linear-gradient(135deg, #155f49, #09271f 70%); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 25px 60px rgba(0,0,0,.28); }
.earn-hero::after { content: "₽"; position: absolute; top: -38px; right: 16px; color: rgba(247,232,188,.09); font-family: Georgia, serif; font-size: 190px; line-height: 1; }
.earn-hero span { color: var(--gold); letter-spacing: .16em; font-size: 10px; font-weight: 900; }
.earn-hero strong { margin-top: 7px; font-family: Georgia, serif; font-size: 42px; font-weight: 500; }
.earn-hero small { margin-top: 7px; color: #b8d1c7; font-size: 11px; }
.affiliate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.affiliate-stats article { padding: 14px 8px; border: 1px solid rgba(255,255,255,.07); border-radius: 17px; background: rgba(7,31,25,.7); text-align: center; }
.affiliate-stats strong, .affiliate-stats span { display: block; }
.affiliate-stats strong { color: var(--gold-soft); font-size: 16px; white-space: nowrap; }
.affiliate-stats span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.earn-card h3 { font-size: 21px; }
.earn-card p { margin: 8px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.leaderboard-card { margin-top: 11px; }
.leaderboard-card h3 { font-size: 20px; }
.leaderboard-icon { color: var(--gold); font-size: 27px; filter: drop-shadow(0 5px 12px rgba(223,197,127,.25)); }
.leaderboard-date { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.affiliate-leaderboard { display: grid; gap: 7px; margin-top: 14px; }
.leaderboard-row { display: grid; min-height: 58px; padding: 10px 12px; align-items: center; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(7,31,25,.66); }
.leaderboard-row.current { border-color: rgba(223,197,127,.38); background: linear-gradient(135deg, rgba(223,197,127,.13), rgba(16,74,57,.33)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.leaderboard-rank { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 11px; color: var(--gold-soft); background: rgba(223,197,127,.1); font-size: 12px; font-weight: 900; }
.leaderboard-row:first-child .leaderboard-rank { color: #09251d; background: linear-gradient(145deg, #f7e8bc, #c9a950); box-shadow: 0 7px 18px rgba(223,197,127,.2); }
.leaderboard-copy { min-width: 0; }
.leaderboard-copy strong, .leaderboard-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-copy strong { font-size: 11px; }
.leaderboard-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.leaderboard-you { color: var(--gold); font-size: 9px; font-weight: 900; }
.leaderboard-score { color: var(--gold-soft); text-align: right; font-size: 11px; font-weight: 900; white-space: nowrap; }
.leaderboard-empty { padding: 15px; border: 1px dashed rgba(223,197,127,.18); border-radius: 15px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.45; }
.earn-bank-icon { color: var(--gold); font-size: 25px; }
.partner-rules { display: block; margin: 16px auto 0; text-decoration: underline; }
.affiliate-history { display: grid; gap: 7px; margin-top: 10px; }
.affiliate-history-row { display: flex; min-height: 58px; padding: 12px 15px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(7,31,25,.66); }
.affiliate-history-row strong, .affiliate-history-row small { display: block; }
.affiliate-history-row strong { font-size: 11px; }
.affiliate-history-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.affiliate-history-row b { flex: 0 0 auto; font-size: 12px; }
.affiliate-history-row .positive { color: var(--green); }
.affiliate-history-row .negative { color: var(--gold-soft); }
.payout-dialog form { display: grid; gap: 13px; margin-top: 20px; }
.payout-dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.payout-dialog input:not([type="checkbox"]), .payout-dialog select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--text); background: #08251e; font: inherit; }
.payout-dialog input:focus, .payout-dialog select:focus { border-color: var(--gold); }
.payout-dialog .accept-row { display: flex; align-items: center; gap: 9px; color: #dce9e4; }
.payout-dialog .accept-row input { width: 19px; height: 19px; accent-color: var(--gold); }
.faq-list { display: grid; gap: 8px; margin: 4px 0 16px; }
.faq-list details { border: 1px solid rgba(255,255,255,.075); border-radius: 15px; background: rgba(255,255,255,.022); }
.faq-list summary { display: flex; min-height: 50px; padding: 13px 14px; align-items: center; color: #e8f1ed; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 18px; font-weight: 500; transition: transform .18s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary i { width: 22px; flex: 0 0 auto; margin-right: 8px; color: var(--gold); font-size: 15px; }
.support-card .faq-list p { margin: 0; padding: 0 14px 14px 44px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.connection-card { margin-top: 0; }
.connection-step { display: flex; align-items: center; gap: 13px; padding: 14px 0; }
.connection-step + .connection-step { border-top: 1px solid rgba(255,255,255,.07); }
.connection-step > span { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(223,197,127,.32); border-radius: 12px; color: var(--gold-soft); background: rgba(223,197,127,.08); font-size: 13px; font-weight: 900; }
.connection-step strong, .connection-step small { display: block; }
.connection-step strong { font-size: 13px; }
.connection-step small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.connection-home { margin-top: 13px; }
.faq-action { width: 100%; padding: 10px 12px; border: 1px solid rgba(223,197,127,.24); border-radius: 12px; color: var(--gold-soft); background: rgba(223,197,127,.08); font: inherit; font-weight: 800; cursor: pointer; }
.support-card small { display: block; margin-top: 13px; color: var(--muted); text-align: center; }
.bottom-nav { position: fixed; z-index: 20; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 540px; min-height: 78px; margin: 0 auto; padding: 7px; border: 1px solid rgba(242,218,157,.22); border-radius: 25px; background: rgba(4,21,17,.9); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 22px 65px rgba(0,0,0,.5); backdrop-filter: blur(28px) saturate(140%); }
.nav-item { display: flex; min-width: 0; min-height: 62px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 0; border-radius: 18px; color: #86a69a; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; transition: color .18s ease, background .18s ease, transform .15s ease; }
.nav-item:active { transform: scale(.96); }
.nav-item.active { color: var(--gold-soft); background: linear-gradient(145deg, rgba(223,197,127,.16), rgba(91,211,166,.05)); box-shadow: inset 0 0 0 1px rgba(223,197,127,.09); }
.nav-icon { font-size: 21px; line-height: 1; }
.nav-icon i { margin: 0; }
.migration-shell { display: grid; min-height: 100vh; place-items: center; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.migration-card { width: 100%; margin: 0; padding: 30px 24px; text-align: center; }
.migration-icon { margin-bottom: 12px; font-size: 50px; }
.migration-card h1 { margin-bottom: 24px; color: var(--gold-soft); font-size: 31px; }
.migration-card p { margin: 10px 0; color: #dce9e4; font-size: 15px; line-height: 1.55; }
.migration-button { display: grid; margin-top: 25px; place-items: center; text-decoration: none; }
.web-auth { position: fixed; z-index: 100; inset: 0; display: grid; padding: 22px; place-items: center; overflow-y: auto; background: radial-gradient(circle at 80% 10%, rgba(216,189,114,.16), transparent 34%), #061b15; }
.web-auth[hidden] { display: none; }
.auth-card { width: min(100%, 430px); padding: 27px; border: 1px solid rgba(242,218,157,.22); border-radius: 28px; background: linear-gradient(155deg, rgba(17,63,50,.96), rgba(5,27,21,.98)); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.auth-brand > span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(242,218,157,.3); border-radius: 16px; color: var(--gold-soft); background: rgba(216,189,114,.1); font-size: 21px; }
.auth-brand h1 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.auth-card h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.auth-card p { margin: 9px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.auth-methods button { display: flex; min-height: 88px; padding: 12px 7px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; color: #eaf2ee; background: rgba(255,255,255,.035); font-size: 11px; font-weight: 800; cursor: pointer; }
.auth-methods button i { color: var(--gold-soft); font-size: 23px; }
.auth-methods button:disabled { opacity: .35; cursor: default; }
.auth-card form label { display: block; margin: 19px 2px 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.auth-card form input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; outline: none; color: var(--text); background: rgba(255,255,255,.04); font: inherit; }
.auth-card form input:focus { border-color: var(--gold); }
#auth-code { text-align: center; font-size: 25px; font-weight: 800; letter-spacing: .3em; }
.auth-back { margin: 0 0 19px; padding: 0; border: 0; color: var(--gold-soft); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.auth-telegram-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 18px; place-items: center; border-radius: 22px; color: #fff; background: #229ed9; font-size: 31px; box-shadow: 0 14px 35px rgba(34,158,217,.25); }
#auth-telegram-wait { text-align: center; }
.auth-message { min-height: 19px; margin: 14px 0 0 !important; color: #f0a49d !important; text-align: center; font-size: 11px !important; }
.auth-legal { display: block; margin-top: 17px; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.5; }
.auth-legal a { color: var(--gold-soft); }
body.auth-required .shell, body.auth-required .bottom-nav { visibility: hidden; }

@media (max-width: 360px) {
  .shell { padding-left: 13px; padding-right: 13px; }
  .hero, .card { padding-left: 18px; padding-right: 18px; }
  .features { grid-template-columns: 1fr; }
  .client-row { padding: 11px; }
  .client-buttons { grid-template-columns: 1fr 1fr; }
  .client-button { padding-right: 7px; padding-left: 7px; font-size: 12px; }
  .bottom-nav { right: 6px; left: 6px; padding: 5px; }
  .nav-item { gap: 4px; font-size: 7px; }
  .nav-icon { font-size: 19px; }
}

@keyframes backgroundShift {
  from { background-position: 0% 0%; }
  to { background-position: 70% 40%; }
}

@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(45px, 35px, 0) scale(1.18); }
}

@keyframes heroSheen {
  0%, 55% { transform: translateX(-120%) rotate(-18deg); opacity: 0; }
  65% { opacity: .7; }
  82%, 100% { transform: translateX(155%) rotate(-18deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body, .glow, .hero::before { animation: none; }
  * { scroll-behavior: auto !important; }
}
