/* SteadierSelf site pages (account, premium, admin) - built on steadierself-style.css (same colours and buttons). */
*, *::before, *::after { box-sizing: border-box; }
.page { max-width: 480px; margin: 0 auto; padding: 14px 16px 48px; }
.page.wide { max-width: 980px; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.top img { width: 40px; height: 40px; }
.top .ss-brand { font-size: 24px; }
.top .sp { flex: 1; }
.top a.chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; }
.top a.chip svg { width: 18px; height: 18px; }

.panel { background: rgba(30, 26, 100, .92); border: 2px solid #3A3A8A; border-top: 5px solid var(--acc, #FFA131);
  border-radius: 20px; padding: 20px; box-shadow: 0 4px 0 #0A0A2E; margin-bottom: 16px; }
.panel h2 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.panel .lead { margin: 0 0 16px; opacity: .8; font-size: 14px; line-height: 1.45; }

.hero { text-align: center; margin: 4px 0 18px; }
.hero .badge { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 22px; display: grid; place-items: center;
  background: #262673; box-shadow: 0 4px 0 #0A0A2E, 0 0 0 4px rgba(255, 161, 49, .25); font-size: 36px; }
.hero h1 { margin: 0; font-family: 'Lexend', sans-serif; font-size: 26px; }
.hero p { margin: 6px 0 0; opacity: .85; font-size: 15px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #16124F; border-radius: 16px; margin-bottom: 16px; }
.tabs button { min-height: 42px; border: none; border-radius: 12px; background: transparent; color: #C9C6FF; font-size: 15px; font-weight: 800; }
.tabs button[aria-selected="true"] { background: #FFA131; color: #14144A; box-shadow: 0 3px 0 #B8650F; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; opacity: .85; margin: 0 0 6px; }
.inp { position: relative; }
.inp > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8C88D9; pointer-events: none; }
.inp input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 14px 12px 44px; border-radius: 14px; border: 2px solid #3A3A8A;
  background: #16124F; color: #fff; font: inherit; font-size: 16px; font-weight: 700; transition: border-color .15s, box-shadow .15s; }
.inp input::placeholder { color: #7470B8; font-weight: 600; }
.inp input:focus { outline: none; border-color: #FFA131; box-shadow: 0 0 0 4px rgba(255, 161, 49, .22); }
.inp .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: none; border-radius: 10px;
  background: transparent; color: #8C88D9; display: grid; place-items: center; }
.inp .eye svg { width: 20px; height: 20px; }

.stack { display: grid; gap: 12px; margin-top: 14px; }
.stack > * { width: 100%; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn-primary:disabled, .btn-ghost:disabled { opacity: .6; cursor: progress; }
.btn-primary .spin, .btn-ghost .spin { width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; font-size: 13px; opacity: .65; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #4A4699; }
.link { background: none; border: none; color: #9EC9FF; font: inherit; font-size: 14px; font-weight: 700; padding: 6px 0; text-decoration: underline; cursor: pointer; }
.center { text-align: center; }

.msg { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.msg.show { display: block; }
.msg.err { background: rgba(255, 107, 107, .16); color: #FFB3B3; border: 1px solid rgba(255, 107, 107, .4); }
.msg.ok { background: rgba(45, 212, 160, .14); color: #8FF0CF; border: 1px solid rgba(45, 212, 160, .4); }

.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #FFA131, #F25EA8); color: #14144A; font-family: 'Lexend', sans-serif; font-size: 26px; font-weight: 700; }
.profile .nm { font-size: 19px; font-weight: 900; }
.profile .em { font-size: 14px; opacity: .75; word-break: break-all; }
.profile .days { margin-top: 3px; font-size: 11px; font-weight: 800; color: #FFD966; opacity: .9; }
.avatar { position: relative; }
.avatar.gold { background: linear-gradient(135deg, #FFC531, #FF8A1F); box-shadow: 0 0 0 3px rgba(255, 197, 49, .45); }
.avatar .crown { position: absolute; left: 50%; top: -17px; transform: translateX(-50%) rotate(-8deg); font-size: 22px; line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.plan-box { margin-top: 16px; padding: 14px; border-radius: 16px; background: #16124F; display: flex; align-items: center; gap: 12px; }
.plan-box .ic { font-size: 26px; }
.plan-box b { display: block; font-size: 16px; }
.plan-box span { font-size: 13px; opacity: .8; }
.plan-box.premium { background: linear-gradient(135deg, rgba(255, 197, 49, .22), rgba(255, 138, 31, .12)); border: 1px solid rgba(255, 197, 49, .5); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { position: relative; text-align: left; padding: 14px 12px 12px; border-radius: 18px; border: 2px solid #3A3A8A; border-top: 5px solid var(--acc);
  background: #1B1760; color: #fff; box-shadow: 0 4px 0 #0A0A2E; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.plan .pl { font-size: 14px; font-weight: 800; opacity: .9; padding-right: 26px; line-height: 1.25; }
.plan .pl small { display: block; font-size: 12px; opacity: .8; }
.plan .pr { font-family: 'Lexend', sans-serif; font-size: 30px; font-weight: 700; margin: 4px 0 2px; }
.plan .pr small { font-size: 16px; margin-right: 2px; }
.plan .pm { font-size: 12px; opacity: .75; }
.plan .tick { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #4A4699; display: grid; place-items: center; }
.plan .tick svg { width: 14px; height: 14px; opacity: 0; }
.plan[aria-checked="true"] { border-color: #FFA131; transform: translateY(-2px); box-shadow: 0 6px 0 #0A0A2E, 0 0 0 3px rgba(255, 161, 49, .35), 0 0 24px rgba(255, 161, 49, .35); }
.plan[aria-checked="true"] .tick { background: #FFA131; border-color: #FFA131; color: #14144A; }
.plan[aria-checked="true"] .tick svg { opacity: 1; }
.plan .ribbon { position: absolute; left: 10px; top: -13px; padding: 3px 9px; border-radius: 999px; background: #2DD4A0; color: #053B2B; font-size: 11px; font-weight: 900; letter-spacing: .02em; }

.steps { counter-reset: st; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 40px; font-size: 15px; line-height: 1.45; }
.steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: #262673; color: #FFC531; display: grid; place-items: center; font-weight: 900; font-size: 14px; box-shadow: 0 2px 0 #0A0A2E; }
.paybox { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #E2136E, #B30F58); margin: 4px 0 2px; }
.paybox .num { flex: 1; font-family: 'Lexend', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: .03em; }
.paybox .num small { display: block; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; opacity: .85; letter-spacing: 0; }
.paybox button { min-height: 40px; padding: 0 12px; border: none; border-radius: 12px; background: #fff; color: #B30F58; font-weight: 900; }
.amount { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #FFC531; color: #14144A; font-weight: 900; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.pill.pending { background: rgba(255, 197, 49, .18); color: #FFD966; }
.pill.approved { background: rgba(45, 212, 160, .18); color: #7CF0C8; }
.pill.rejected { background: rgba(255, 107, 107, .18); color: #FF9C9C; }
.hist { display: grid; gap: 10px; }
.hrow { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #16124F; font-size: 14px; }
.hrow .grow { flex: 1; min-width: 0; }
.hrow .t1 { font-weight: 800; }
.hrow .t2 { opacity: .7; font-size: 12px; word-break: break-all; }
.empty { opacity: .65; font-size: 14px; text-align: center; padding: 10px; }

.wait { text-align: center; padding: 6px 0; }
.wait .big { font-size: 44px; }
.wait h2 { margin: 6px 0; }

body > .toast.toast { position: fixed; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 10px 16px; border-radius: 12px;
  background: #2DD4A0; color: #053B2B; font-weight: 900; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { text-align: center; padding: 40px 0; opacity: .8; }
.loading .spin { display: inline-block; width: 32px; height: 32px; border: 4px solid #FFA131; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.hide { display: none !important; }
.enter > * { animation: pageIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.enter > *:nth-child(2) { animation-delay: .05s; } .enter > *:nth-child(3) { animation-delay: .1s; } .enter > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enter > * { animation: none; } }

/* admin */
.adm-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-tabs button { min-height: 40px; padding: 0 14px; border: none; border-radius: 12px; background: #262673; color: #C9C6FF; font-weight: 800; box-shadow: 0 3px 0 #0A0A2E; }
.adm-tabs button[aria-selected="true"] { background: #FFA131; color: #14144A; box-shadow: 0 3px 0 #B8650F; }
.adm-tabs .n { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pay { background: rgba(30, 26, 100, .92); border: 2px solid #3A3A8A; border-top: 5px solid #FFC531; border-radius: 18px; padding: 14px; box-shadow: 0 4px 0 #0A0A2E; }
.pay.approved { border-top-color: #2DD4A0; } .pay.rejected { border-top-color: #FF6B6B; }
.pay .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed #3A3A8A; }
.pay .row:last-of-type { border-bottom: none; }
.pay .row span { opacity: .7; } .pay .row b { text-align: right; word-break: break-all; }
.pay .trx { font-family: 'Lexend', sans-serif; letter-spacing: .04em; color: #FFC531; }
.pay .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pay .acts button { min-height: 44px; border: none; border-radius: 12px; font-weight: 900; font-size: 15px; }
.pay .ok { background: #2DD4A0; color: #053B2B; box-shadow: 0 3px 0 #0E8A66; }
.pay .no { background: transparent; color: #FF9C9C; border: 2px solid #FF6B6B !important; }
