:root {
  color-scheme: dark;
  --bg: #03150f;
  --panel: rgba(9, 37, 28, 0.88);
  --panel-strong: #103329;
  --line: rgba(217, 187, 114, 0.22);
  --gold: #d9bb72;
  --gold-soft: #f3dfa7;
  --green: #4fd19a;
  --text: #f8f3e8;
  --muted: #a8bab2;
  --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; }
.app-header.app-header-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; }
.payment-card .tariff-period-heading { margin-top: 18px; }
.plan-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 13px 0 4px; }
.plan-tier { display: grid; min-height: 74px; padding: 10px; place-items: center; gap: 2px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; color: var(--text); background: rgba(255,255,255,.025); cursor: pointer; }
.plan-tier i { color: var(--gold); font-size: 20px; }
.plan-tier strong { font-size: 13px; }
.plan-tier small { color: var(--muted); font-size: 10px; }
.plan-tier.selected { border-color: rgba(216,189,114,.75); background: rgba(216,189,114,.1); }
.renewal-devices,
.device-addon { margin-top: 14px; padding: 14px; border: 1px solid rgba(216,189,114,.24); border-radius: 16px; background: rgba(216,189,114,.055); }
.renewal-devices { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.renewal-devices[hidden],
.device-addon[hidden] { display: none; }
.renewal-devices strong,
.device-addon-copy strong { display: block; font-size: 13px; }
.renewal-devices small,
.device-addon-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.renewal-device-choice { display: inline-flex; min-height: 38px; padding: 0 11px; align-items: center; gap: 7px; border: 1px solid rgba(216,189,114,.35); border-radius: 12px; color: var(--gold-soft); font-size: 12px; font-weight: 800; cursor: pointer; }
.renewal-device-choice input { accent-color: var(--gold); }
.device-addon { display: grid; gap: 12px; }
.device-addon-controls { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; }
.device-addon-controls button { min-height: 40px; border: 1px solid rgba(216,189,114,.32); border-radius: 12px; color: var(--gold-soft); background: rgba(216,189,114,.08); font-size: 21px; cursor: pointer; }
.device-addon-controls strong { text-align: center; font-size: 18px; }
.device-addon-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.device-addon-method { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 12px; font-weight: 800; cursor: pointer; }
.device-addon-method.selected { border-color: rgba(216,189,114,.7); color: var(--gold-soft); background: rgba(216,189,114,.1); }
.device-addon .secondary { margin: 0; }
.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-old-price { color: var(--muted); font-size: 11px; text-decoration: line-through; }
.plan-campaign-saving { margin-top: auto; padding-top: 7px; color: var(--gold-soft); font-size: 10px; font-weight: 900; }
.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; }
.payment-heading { align-items: center; }
.wallet-pay-compact {
  display: inline-flex;
  width: auto;
  min-width: 74px;
  min-height: 42px;
  margin: 0 0 0 auto;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(91,211,166,.3);
  border-radius: 14px;
  color: #c9f5e4;
  background: rgba(91,211,166,.07);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, border-color .2s ease;
}
.wallet-pay-compact i { font-size: 16px; }
.wallet-pay-copy { display: grid; gap: 1px; text-align: left; line-height: 1; }
.wallet-pay-copy small { color: rgba(201,245,228,.7); font-size: 7px; font-weight: 750; letter-spacing: .04em; }
.wallet-pay-copy strong { color: inherit; font-size: 12px; font-weight: 900; }
.wallet-pay-compact.pending { border-color: rgba(243,223,167,.52); color: #fff7df; background: rgba(216,189,114,.13); }
.wallet-pay-compact.pending i, .wallet-pay-compact.pending small { color: var(--gold-soft); }
.wallet-pay-compact[hidden] { display: none; }
.wallet-pay-compact:active:not(:disabled) { transform: scale(.97); }
.wallet-pay-compact:disabled { opacity: .58; cursor: default; }
.payment-breakdown {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(91,211,166,.2);
  border-radius: 15px;
  background: rgba(91,211,166,.045);
}
.payment-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dce9e4;
  font-size: 11px;
}
.payment-breakdown strong { color: #c9f5e4; white-space: nowrap; }
.payment-breakdown small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.payment-breakdown.compact { margin: 0; padding: 11px 12px; }
.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: #f3dfa7; letter-spacing: .16em; font-size: 10px; font-weight: 900; }
.earn-hero strong { margin-top: 7px; color: #fff8e6; font-family: Georgia, serif; font-size: 42px; font-weight: 600; text-shadow: 0 2px 18px rgba(255,240,195,.2); }
.earn-hero small { margin-top: 7px; color: #e0eee8; 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 {
  border: 1px solid rgba(255, 218, 104, .58);
  color: #ffd966;
  background: radial-gradient(circle at 50% 25%, #594616, #1b190d 72%);
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 7px 20px rgba(255, 207, 73, .25);
}
.leaderboard-crown {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(255, 205, 62, .72));
}
.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-copy .leaderboard-buyers {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 7px;
  align-items: center;
  gap: 5px;
  overflow: visible;
  border: 1px solid rgba(91, 211, 166, .22);
  border-radius: 8px;
  color: #a9f0d4;
  background: rgba(91, 211, 166, .08);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}
.leaderboard-buyers i { flex: 0 0 auto; color: var(--green); font-size: 11px; }
.leaderboard-buyers span { overflow: hidden; text-overflow: ellipsis; }
.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; }

.campaign-banner {
  display: flex;
  margin: 0 0 12px;
  padding: 13px 15px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(217,187,114,.42);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(217,187,114,.17), rgba(79,209,154,.08));
}
.campaign-banner[hidden] { display: none; }
.campaign-banner > i { color: var(--gold-soft); font-size: 23px; }
.campaign-banner strong, .campaign-banner small { display: block; }
.campaign-banner strong { font-size: 14px; }
.campaign-banner small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.partner-campaign { border-color: rgba(79,209,154,.35); }

.referral-copy-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.referral-copy-options button { margin: 0; }

.account-link-card { margin-top: 0; }

.account-link-icon { color: var(--accent); font-size: 28px; }

.account-identities {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.account-identities div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}

.account-identities i { color: var(--accent); }

.account-link-dialog form label { display: grid; gap: 8px; }

/* Окно единого аккаунта следует интерфейсу кабинета, без браузерных стилей. */
.account-link-dialog {
  width: min(calc(100% - 24px), 430px);
  padding: 20px;
  border-color: rgba(217, 187, 114, .28);
  border-radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(155deg, #10392e, #071f19 72%);
}

.account-link-dialog .guide-head {
  align-items: center;
}

.account-link-dialog .guide-head h2 {
  margin: 5px 0 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.account-link-dialog .guide-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 13px;
  font-size: 24px;
}

.account-link-dialog form,
.account-link-dialog #account-link-telegram-step {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.account-link-dialog form[hidden],
.account-link-dialog #account-link-telegram-step[hidden] {
  display: none;
}

.account-link-dialog form label {
  gap: 7px;
  color: #dce9e4;
  font-size: 12px;
  font-weight: 750;
}

.account-link-dialog input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(217, 187, 114, .3);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(3, 21, 15, .72);
  font: inherit;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.account-link-dialog input::placeholder {
  color: #708a80;
}

.account-link-dialog input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 187, 114, .11);
}

.account-link-dialog #account-link-code {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .28em;
}

.account-link-dialog .primary {
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
}

.account-link-dialog #account-link-destination,
.account-link-dialog #account-link-telegram-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-link-dialog .auth-message {
  min-height: 18px;
  margin: 10px 1px 0;
  font-size: 12px;
}

@media (max-width: 420px) {
  .referral-copy-options { grid-template-columns: 1fr; }
}
.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; }
.onboarding-card { position: relative; overflow: hidden; }
.onboarding-badge { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(79,209,154,.28); border-radius: 14px; color: var(--green); background: rgba(79,209,154,.09); font-size: 18px; }
.onboarding-steps { display: grid; margin: 18px 0; }
.onboarding-step { display: flex; align-items: center; gap: 12px; padding: 11px 0; opacity: .52; }
.onboarding-step + .onboarding-step { border-top: 1px solid rgba(255,255,255,.06); }
.onboarding-step > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--gold-soft); background: rgba(223,197,127,.06); font-size: 12px; font-weight: 900; }
.onboarding-step strong, .onboarding-step small { display: block; }
.onboarding-step strong { font-size: 13px; }
.onboarding-step small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.onboarding-step.current { opacity: 1; }
.onboarding-step.current > span { color: #08241c; border-color: transparent; background: var(--gold); }
.onboarding-step.complete { opacity: .78; }
.onboarding-step.complete > span { color: #08241c; border-color: transparent; background: var(--green); }
.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; }
}

/* Обновлённая визуальная система: компактнее, понятнее, без лишнего шума. */
:root {
  --bg: #03150f;
  --panel: rgba(9, 37, 28, .92);
  --panel-strong: #103329;
  --surface: #09251c;
  --surface-raised: #103329;
  --line: rgba(217, 187, 114, .2);
  --line-strong: rgba(243, 223, 167, .4);
  --gold: #d9bb72;
  --gold-soft: #f3dfa7;
  --green: #4fd19a;
  --text: #f8f3e8;
  --muted: #a8bab2;
  --shadow: 0 18px 55px rgba(0, 0, 0, .3);
}

body {
  background:
    radial-gradient(circle at 10% -4%, rgba(24, 91, 68, .68), transparent 31%),
    radial-gradient(circle at 92% 35%, rgba(217, 187, 114, .1), transparent 27%),
    linear-gradient(155deg, #020d0a 0%, var(--bg) 48%, #061d16 100%);
}

body::before {
  opacity: .075;
  background-size: 82px 82px;
}

button, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: min(100%, 600px);
  padding: calc(16px + env(safe-area-inset-top)) 16px
    calc(105px + env(safe-area-inset-bottom));
}

.brand {
  gap: 11px;
  margin: 0 3px 14px;
}

.mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .09),
    0 10px 25px rgba(0, 0, 0, .2);
}

.eyebrow, .label {
  font-size: 10px;
  letter-spacing: .14em;
}

h1 { font-size: 21px; }

.hero {
  min-height: 144px;
  padding: 22px;
  border-color: rgba(247, 232, 188, .27);
  border-radius: 25px;
  background:
    radial-gradient(circle at 87% 20%, rgba(243, 223, 167, .12), transparent 24%),
    linear-gradient(135deg, rgba(16, 66, 50, .98), rgba(5, 29, 22, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), var(--shadow);
}

.hero p {
  margin-bottom: 7px;
  font-size: 12px;
}

.hero h2 {
  max-width: 330px;
  font-size: clamp(27px, 7.4vw, 36px);
  line-height: 1.02;
}

.mosque {
  right: -11px;
  bottom: -18px;
  width: 174px;
  height: 174px;
  transform: none;
  opacity: .48;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 0, 0, .72) 24%,
    #000 48%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 0, 0, .72) 24%,
    #000 48%
  );
}

.mosque img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.78) drop-shadow(0 10px 24px rgba(0, 0, 0, .18));
}

.card {
  margin-top: 12px;
  padding: 20px;
  border-color: var(--line);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(16, 51, 41, .93), rgba(6, 29, 22, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), var(--shadow);
}

.card h3 {
  margin-top: 6px;
  font-size: 21px;
  letter-spacing: -.015em;
}

.pill {
  padding: 7px 9px;
  font-size: 9px;
  letter-spacing: .07em;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.metrics {
  gap: 14px;
  margin: 18px 0 11px;
}

.metrics > div + div { padding-left: 14px; }
.metric-label { font-size: 12px; }
.metrics strong { font-size: 17px; }
.progress { margin-bottom: 17px; }

.primary, .secondary {
  min-height: 52px;
  border-radius: 15px;
  font-size: 15px;
}

.primary {
  background: linear-gradient(135deg, #f7e7ba, var(--gold));
  box-shadow: 0 12px 28px rgba(217, 187, 114, .17),
    inset 0 1px rgba(255, 255, 255, .62);
}

.secondary { background: rgba(255, 255, 255, .035); }

.client-actions { gap: 9px; }

.client-row {
  padding: 12px;
  border-radius: 18px;
}

.client-copy strong { font-size: 16px; }
.client-copy span { font-size: 11px; }

.client-button {
  min-height: 46px;
  border-radius: 13px;
  font-size: 15px;
}

.copy-subscription {
  min-height: 48px;
  font-size: 15px;
}

.notice {
  margin-top: 11px;
  font-size: 12px;
}

.features {
  gap: 8px;
  margin-top: 8px;
}

.feature {
  min-height: 66px;
  padding: 12px;
  border-radius: 18px;
}

.feature > span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.feature strong { font-size: 14px; }
.feature small { font-size: 10px; }

.mission {
  gap: 12px;
  margin-top: 8px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(217, 187, 114, .055);
}

.mission-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 18px;
}

.mission p {
  margin-top: 4px;
  font-size: 11px;
}

.section-heading {
  gap: 12px;
  margin: 2px 3px 14px;
}

.section-heading h2 {
  margin-top: 3px;
  font-size: 27px;
}

.section-icon {
  width: 45px;
  height: 45px;
  border-radius: 15px;
  font-size: 20px;
}

.payment-methods {
  gap: 8px;
  margin-bottom: 17px;
}

.payment-method {
  position: relative;
  min-height: 78px;
  gap: 2px;
  border-radius: 16px;
}

.payment-method i {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 20px;
}

.payment-method strong { font-size: 14px; }
.payment-method small { font-size: 10px; }

.payment-method.selected {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(217, 187, 114, .16), rgba(79, 209, 154, .05));
  box-shadow: inset 0 0 0 1px rgba(243, 223, 167, .08);
}

.plans {
  gap: 8px;
  margin: 13px 0 15px;
}

.plan-option {
  min-height: 116px;
  padding: 14px;
  border-radius: 17px;
}

.plan-option.selected {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(217, 187, 114, .18), rgba(79, 209, 154, .055));
  box-shadow: inset 0 0 0 1px rgba(243, 223, 167, .12),
    0 10px 28px rgba(0, 0, 0, .12);
}

.plan-term { font-size: 12px; }
.plan-option strong { font-size: 22px; }
.plan-monthly, .plan-saving { font-size: 11px; }

.promo-box input {
  height: 50px;
  font-size: 15px;
}

.promo-box button {
  padding: 0 16px;
  font-size: 12px;
}

.promo-result { font-size: 12px; }

.payment-panel {
  padding-bottom: 98px;
}

.payment-card .tariff-heading {
  font-size: 22px;
}

.payment-method {
  min-height: 70px;
}

.plan-option {
  min-height: 108px;
}

.promo-disclosure {
  margin-top: 11px;
  border: 1px solid rgba(217, 187, 114, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .022);
}

.promo-disclosure summary {
  display: flex;
  min-height: 48px;
  padding: 0 14px;
  align-items: center;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.promo-disclosure summary::-webkit-details-marker { display: none; }
.promo-disclosure summary i { color: var(--gold); font-size: 17px; }
.promo-disclosure summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-size: 20px;
  font-weight: 500;
  transition: transform .18s ease;
}
.promo-disclosure[open] summary::after { transform: rotate(45deg); }
.promo-disclosure .promo-box { margin: 0 10px 7px; }
.promo-disclosure .promo-result { margin: 0 13px 9px; }

.payment-action-dock {
  position: fixed;
  z-index: 19;
  right: 10px;
  bottom: calc(91px + env(safe-area-inset-bottom));
  left: 10px;
  width: auto;
  max-width: 540px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(243, 223, 167, .34);
  border-radius: 22px;
  background: rgba(3, 20, 15, .94);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07),
    0 18px 52px rgba(0, 0, 0, .52);
  backdrop-filter: blur(28px) saturate(145%);
}

.payment-action-dock .pay-plan {
  min-height: 62px;
  margin: 0;
  padding: 0 16px;
  border-radius: 16px;
  overflow: hidden;
  font-size: 17px;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-action-dock .pay-plan:not(:disabled) {
  box-shadow: 0 13px 34px rgba(217, 187, 114, .28),
    inset 0 1px rgba(255, 255, 255, .7);
}

.payment-help {
  padding: 13px 14px;
  border-radius: 14px;
}

.payment-help strong { font-size: 14px; }
.payment-help p { font-size: 12px; }

.devices-help {
  margin: 12px 0 15px;
  color: #bdcbc5;
}

.device-item {
  border-radius: 17px;
  background: rgba(255, 255, 255, .028);
}

.earn-hero {
  min-height: 154px;
  padding: 22px;
  border-radius: 24px;
}

.earn-hero strong { font-size: 39px; }
.affiliate-stats article { border-radius: 15px; }
.affiliate-stats strong { font-size: 17px; }
.affiliate-stats span { font-size: 10px; }

.leaderboard-row,
.affiliate-history-row {
  border-radius: 14px;
}

.leaderboard-copy strong,
.leaderboard-score,
.affiliate-history-row strong,
.affiliate-history-row b {
  font-size: 13px;
}

.leaderboard-copy small,
.affiliate-history-row small {
  font-size: 11px;
}

.support-card > p {
  margin-top: 8px;
  margin-bottom: 14px;
}

.faq-list {
  gap: 7px;
  margin-bottom: 14px;
}

.faq-list details {
  border-radius: 14px;
  background: rgba(255, 255, 255, .027);
}

.faq-list summary {
  min-height: 55px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.3;
}

.faq-list summary i {
  width: 24px;
  font-size: 17px;
}

.support-card .faq-list p {
  padding: 0 15px 15px 47px;
  font-size: 13px;
  line-height: 1.5;
}

.guide-dialog {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(155deg, #0e3b2f, #061d17);
}

.guide-close {
  min-width: 42px;
  min-height: 42px;
}

.bottom-nav {
  right: 8px;
  bottom: calc(7px + env(safe-area-inset-bottom));
  left: 8px;
  max-width: 584px;
  min-height: 72px;
  padding: 6px;
  border-color: rgba(243, 223, 167, .25);
  border-radius: 23px;
  background: rgba(3, 19, 15, .92);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06),
    0 18px 55px rgba(0, 0, 0, .52);
}

.nav-item {
  min-height: 58px;
  gap: 4px;
  border-radius: 17px;
  color: #97aaa2;
  font-size: 9px;
}

.nav-item.active {
  color: var(--gold-soft);
  background: linear-gradient(145deg, rgba(217, 187, 114, .18), rgba(79, 209, 154, .055));
  box-shadow: inset 0 0 0 1px rgba(217, 187, 114, .14);
}

.nav-icon { font-size: 20px; }
.nav-item.active .nav-icon { transform: translateY(-1px) scale(1.08); }

.tab-panel:not([hidden]) {
  animation: panelReveal .28s cubic-bezier(.22, .75, .25, 1) both;
}

.payment-panel:not([hidden]) {
  transform: none;
  animation: paymentPanelReveal .28s ease both;
}

.plans-loading,
.devices-loading {
  animation: softPulse 1.8s ease-in-out infinite alternate;
}

.web-auth {
  padding: 18px;
  background:
    radial-gradient(circle at 18% 5%, rgba(24, 91, 68, .5), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(217, 187, 114, .09), transparent 28%),
    var(--bg);
}

.auth-card {
  width: min(100%, 470px);
  padding: 31px;
  border-color: rgba(243, 223, 167, .27);
  border-radius: 27px;
  background:
    linear-gradient(155deg, rgba(16, 51, 41, .98), rgba(4, 23, 17, .99));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06),
    0 34px 100px rgba(0, 0, 0, .52);
}

.auth-brand { margin-bottom: 27px; }
.auth-card h2 { font-size: 30px; }
.auth-card p { font-size: 14px; }

.auth-methods {
  grid-template-columns: 1fr;
  gap: 8px;
}

.auth-methods button {
  min-height: 58px;
  padding: 12px 16px;
  justify-content: flex-start;
  flex-direction: row;
  gap: 10px;
  border-radius: 15px;
  font-size: 14px;
}

.auth-methods button i {
  width: 24px;
  margin: 0;
  text-align: center;
  font-size: 21px;
}

#auth-telegram {
  border-color: rgba(72, 177, 225, .28);
  background: rgba(34, 158, 217, .095);
}

.auth-card form input { font-size: 16px; }
.auth-legal { font-size: 10px; }

@media (min-width: 520px) {
  .client-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(218px, auto);
    align-items: center;
  }

  .client-logo { grid-row: 1; }
  .client-buttons {
    grid-row: 1;
    grid-column: 3;
  }
}

@media (max-width: 380px) {
  .shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero, .card {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hero { min-height: 136px; }
  .hero h2 { font-size: 27px; }
  .nav-item { font-size: 8px; }
  .nav-icon { font-size: 19px; }
  .client-button { font-size: 13px; }
  .payment-action-dock {
    right: 6px;
    left: 6px;
    padding: 6px;
  }
  .payment-action-dock .pay-plan {
    min-height: 58px;
    padding: 0 10px;
    font-size: 15px;
  }
}

/* Компактная компоновка оплаты: зоны нажатия остаются не меньше 44 px. */
.payment-panel {
  padding-top: 0;
  padding-bottom: 82px;
}

.payment-panel .payment-heading {
  gap: 9px;
  margin: 0 2px 9px;
}

.payment-panel .payment-heading h2 {
  margin-top: 1px;
  font-size: 22px;
}

.payment-panel .payment-heading > div:nth-child(2) { min-width: 0; }
.payment-panel .payment-heading h2 { white-space: nowrap; }

.payment-panel .section-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 18px;
}

.payment-panel .wallet-pay-compact {
  min-width: 68px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
}

.payment-panel .wallet-pay-compact:disabled {
  opacity: 1;
  border-color: rgba(243, 223, 167, .52);
  color: #fff7df;
  background: rgba(216, 189, 114, .13);
}

.payment-panel .wallet-pay-compact:disabled i {
  color: var(--gold-soft);
}

.payment-panel .payment-card {
  padding: 14px;
  border-radius: 18px;
}

.payment-panel .payment-card h3 {
  margin: 0;
  font-size: 16px;
}

.payment-panel .payment-card .tariff-heading {
  margin-top: 1px;
  font-size: 16px;
}

.payment-panel .payment-card .tariff-period-heading {
  margin-top: 11px;
}

.payment-panel .payment-methods {
  gap: 7px;
  margin: 8px 0 12px;
}

.payment-panel .payment-method {
  min-height: 52px;
  padding: 6px 9px;
  border-radius: 12px;
  flex-direction: row;
  gap: 7px;
}

.payment-panel .payment-method i {
  margin: 0;
  font-size: 17px;
}

.payment-panel .payment-method strong {
  font-size: 12px;
}

.payment-panel .payment-method small {
  display: none;
}

.payment-panel .plan-tiers {
  gap: 7px;
  margin: 8px 0 10px;
}

.payment-panel .plan-tier {
  min-height: 56px;
  padding: 7px;
  border-radius: 12px;
}

.payment-panel .plan-tier i {
  font-size: 16px;
}

.payment-panel .plan-tier strong {
  font-size: 12px;
}

.payment-panel .plan-tier small {
  font-size: 9px;
}

.payment-panel .plans {
  gap: 7px;
  margin: 8px 0 10px;
}

.payment-panel .plans-loading {
  padding: 20px 8px;
}

.payment-panel .plan-option {
  min-height: 92px;
  padding: 11px;
  border-radius: 14px;
}

.payment-panel .plan-term {
  margin-bottom: 4px;
  font-size: 10px;
}

.payment-panel .plan-option strong {
  font-size: 18px;
}

.payment-panel .plan-monthly,
.payment-panel .plan-saving {
  font-size: 9px;
}

.payment-panel .plan-monthly {
  margin-top: 3px;
}

.payment-panel .plan-saving {
  padding-top: 5px;
}

.payment-panel .renewal-devices,
.payment-panel .auto-renewal {
  margin-top: 9px;
  padding: 10px;
  border-radius: 13px;
}

.auto-renewal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(91, 211, 166, .25);
  background: rgba(91, 211, 166, .055);
}

.auto-renewal[hidden] {
  display: none;
}

.auto-renewal-copy {
  min-width: 0;
}

.auto-renewal-copy strong,
.auto-renewal-copy small {
  display: block;
}

.auto-renewal-copy strong {
  font-size: 13px;
}

.auto-renewal-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.auto-renewal-switch {
  display: grid;
  min-width: 64px;
  justify-items: center;
  gap: 3px;
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.auto-renewal-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auto-renewal-switch span {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease;
}

.auto-renewal-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c5d2cd;
  transition: transform .2s ease, background .2s ease;
}

.auto-renewal-switch input:checked + span {
  border-color: rgba(91, 211, 166, .58);
  background: rgba(91, 211, 166, .25);
}

.auto-renewal-switch input:checked + span::after {
  transform: translateX(20px);
  background: var(--green);
}

.payment-panel .renewal-device-choice {
  min-height: 36px;
  padding: 0 9px;
}

.payment-panel .promo-disclosure {
  margin-top: 9px;
  border-radius: 12px;
}

.payment-panel .promo-disclosure summary {
  min-height: 44px;
  padding: 0 11px;
  font-size: 12px;
}

.payment-panel .promo-box input {
  height: 44px;
  font-size: 14px;
}

.payment-panel #payment-notice {
  margin: 8px 1px 0;
  font-size: 10px;
  line-height: 1.45;
}

.payment-panel .payment-help {
  margin-top: 9px;
  padding: 10px 11px;
  border-radius: 12px;
}

.payment-panel .payment-help strong {
  font-size: 12px;
}

.payment-panel .payment-help p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.4;
}

.payment-panel .payment-options {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 16px;
}

.payment-panel .payment-options h3 {
  margin: 0;
  font-size: 14px;
}

.payment-panel .payment-options .notice {
  margin: 5px 0 9px;
  font-size: 10px;
  line-height: 1.4;
}

.payment-panel .payment-options .secondary {
  min-height: 44px;
  font-size: 13px;
}

.payment-action-dock {
  bottom: calc(81px + env(safe-area-inset-bottom));
  padding: 6px;
  border-radius: 18px;
}

.payment-action-dock .pay-plan {
  min-height: 52px;
  border-radius: 13px;
  font-size: 15px;
}

@media (hover: hover) {
  .primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(216, 185, 95, .22),
      inset 0 1px rgba(255, 255, 255, .65);
  }

  .secondary:hover,
  .client-button:hover:not(:disabled),
  .device-action:hover:not(:disabled),
  .payment-method:hover,
  .plan-option:hover,
  .faq-list summary:hover,
  .auth-methods button:hover:not(:disabled) {
    border-color: var(--line-strong);
    background-color: rgba(255, 255, 255, .055);
  }

  .nav-item:hover:not(.active) { color: #c1d2cb; }
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes paymentPanelReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes softPulse {
  from { opacity: .58; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel:not([hidden]),
  .plans-loading,
  .devices-loading {
    animation: none;
  }
}

/* Компактная навигация и единая типографика кабинета. */
.hero h2,
.section-heading h2,
.guide-head h2,
.auth-card h2 {
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -.025em;
}

.shell {
  padding-top: calc(12px + env(safe-area-inset-top));
}

.brand {
  margin-bottom: 10px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 18px;
}

.hero {
  min-height: 118px;
  padding: 18px;
  border-radius: 20px;
}

.hero h2 {
  max-width: 300px;
  font-size: clamp(25px, 6.9vw, 32px);
  line-height: 1.08;
}

.mosque {
  width: 145px;
  height: 145px;
}

.card {
  margin-top: 10px;
  padding: 16px;
  border-radius: 19px;
}

.card h3 {
  margin-top: 4px;
  font-size: 18px;
}

.section-heading {
  gap: 10px;
  margin: 0 2px 10px;
}

.section-heading h2 {
  margin-top: 1px;
  font-size: 24px;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 18px;
}

.metrics {
  margin: 14px 0 9px;
}

.progress {
  margin-bottom: 13px;
}

.primary,
.secondary {
  min-height: 48px;
  border-radius: 14px;
  font-size: 14px;
}

.client-actions {
  gap: 7px;
}

.client-row {
  padding: 10px;
  border-radius: 15px;
}

.client-button {
  min-height: 44px;
  font-size: 14px;
}

.devices-help {
  margin: 9px 0 11px;
  font-size: 12px;
}

.device-item {
  padding: 12px;
  border-radius: 15px;
}

.device-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 16px;
}

.device-copy strong { font-size: 14px; }
.device-copy small { margin-top: 3px; font-size: 11px; }
.device-actions { margin-top: 9px; }

.device-addon {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  gap: 9px;
}

.device-addon-controls {
  grid-template-columns: 44px 1fr 44px;
  gap: 6px;
}

.device-addon-controls button,
.device-addon-method {
  min-height: 44px;
}

.payment-card .tariff-heading,
.payment-card .tariff-period-heading,
.payment-card .payment-method-heading {
  font-size: 16px;
}

.payment-card .tariff-period-heading,
.payment-card .payment-method-heading {
  margin-top: 10px;
}

.payment-panel .plan-tier {
  min-height: 56px;
  padding: 6px;
  border-radius: 12px;
}

.payment-panel .plans {
  margin: 6px 0 7px;
}

.payment-panel .plan-option {
  min-height: 78px;
  padding: 8px;
  border-radius: 13px;
}

.payment-panel .plan-option strong { font-size: 18px; }

.payment-panel .plan-term { margin-bottom: 2px; }
.payment-panel .plan-monthly { margin-top: 1px; }
.payment-panel .plan-saving { padding-top: 3px; }

.payment-panel .payment-methods {
  margin: 7px 0 2px;
}

.payment-panel .payment-method {
  min-height: 50px;
  padding: 5px 7px;
  border-radius: 12px;
}

.payment-panel .payment-method i {
  margin-bottom: 2px;
  font-size: 17px;
}

.payment-panel .renewal-devices,
.payment-panel .auto-renewal {
  padding: 9px;
}

.payment-help,
.payment-panel .payment-options {
  margin-top: 10px;
}

.earn-hero,
.affiliate-stats,
.leaderboard-card,
.earn-card,
.account-link-card,
.support-card {
  margin-top: 10px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 13px 0 9px;
}

.about-highlights > div {
  display: flex;
  min-width: 0;
  padding: 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.about-highlights i {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 17px;
}

.about-highlights strong,
.about-highlights small {
  display: block;
  text-align: left;
}

.about-highlights > div > span {
  min-width: 0;
}

.about-highlights strong { font-size: 12px; }
.about-highlights small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.about-note {
  display: flex;
  padding: 11px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--gold-soft);
  background: rgba(217, 187, 114, .055);
}

.about-note i { font-size: 18px; }
.about-note p { margin: 0; color: inherit; font-size: 11px; line-height: 1.45; }
.legal-use-note { margin: 10px 2px 13px !important; font-size: 10px !important; }

@media (max-width: 899px) {
  .guide-dialog {
    width: calc(100% - 16px);
    max-width: none;
    max-height: 88vh;
    margin: auto 8px 0;
    border-radius: 24px 24px 0 0;
  }
}

@media (min-width: 900px) {
  body {
    padding-left: 250px;
  }

  .shell {
    display: grid;
    width: min(calc(100% - 44px), 1080px);
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto;
    padding: 24px 0 44px;
  }

  .bottom-nav {
    top: 24px;
    right: auto;
    bottom: auto;
    left: 20px;
    width: 210px;
    max-width: none;
    min-height: 0;
    padding: 9px;
    grid-template-columns: 1fr;
    gap: 5px;
    border-radius: 22px;
  }

  .nav-item {
    min-height: 52px;
    padding: 0 14px;
    justify-content: flex-start;
    flex-direction: row;
    gap: 11px;
    border-radius: 14px;
    font-size: 13px;
  }

  .nav-icon {
    width: 24px;
    font-size: 18px;
    text-align: center;
  }

  .brand,
  .onboarding-card,
  .devices-panel,
  .payment-panel,
  .earn-panel,
  .support-panel {
    grid-column: 1 / -1;
  }

  .brand {
    margin-bottom: 0;
  }

  .hero,
  .subscription-card {
    min-height: 100%;
    margin-top: 0;
  }

  .hero {
    min-height: 310px;
    padding: 28px;
  }

  .hero h2 {
    max-width: 390px;
    font-size: 38px;
  }

  .mosque {
    width: 260px;
    height: 260px;
  }

  .devices-panel:not([hidden]),
  .support-panel[data-panel="support"]:not([hidden]),
  .earn-panel:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .devices-panel .section-heading,
  .support-panel .section-heading,
  .earn-panel .section-heading,
  .earn-panel .campaign-banner,
  .earn-panel .earn-hero,
  .earn-panel .affiliate-stats,
  .earn-panel .affiliate-history {
    grid-column: 1 / -1;
  }

  .devices-panel .devices-card,
  .devices-panel .device-addon,
  .support-panel .account-link-card,
  .support-panel .support-card,
  .earn-panel .leaderboard-card,
  .earn-panel .earn-card {
    margin-top: 0;
  }

  .payment-panel {
    width: min(100%, 760px);
    margin: 0 auto;
    padding-bottom: 24px;
  }

  .payment-action-dock {
    position: sticky;
    right: auto;
    bottom: 14px;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }

  .guide-dialog {
    max-width: 560px;
  }
}
