/* =============================================================
   Customer account: login, register, forgot, dashboard, renew
   ============================================================= */

/* ---------- Shared ---------- */
.acc-link { color: var(--red); font-weight: 600; }
.acc-link:hover { text-decoration: underline; }
.acc-muted { color: var(--muted); font-size: 15px; }
.acc-static:hover { transform: none; box-shadow: none; }
.acc-dark { background: var(--ink); color: var(--text-light); border: 0; }
.acc-dark p { color: var(--text-light); }
.acc-dark .checks { margin: 18px 0 24px; }
.acc-dark .checks li { color: #fff; font-weight: 500; font-size: 15px; }
.acc-dark .checks .ic { background: rgba(255, 90, 79, .18); color: var(--red-2); }

.acc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; font-style: normal; letter-spacing: .04em; font-family: var(--ff-b); line-height: 1.3; white-space: nowrap; }
.acc-badge--green { background: rgba(20, 183, 137, .13); color: #0b7a5b; }
.acc-badge--amber { background: rgba(247, 201, 72, .22); color: #8a6200; }
.acc-badge--red { background: rgba(225, 56, 50, .12); color: var(--red-dark); }
.acc-badge--grey { background: var(--grey); color: var(--text); }

.acc-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 18px 0; }
.acc-note .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--red-2); }
.acc-note--dark { color: var(--ink); }
.acc-note--dark .ic { color: var(--red); }

.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.acc-empty .ic { width: 34px; height: 34px; color: var(--red); }
.acc-empty p { margin: 0; }

/* ---------- Auth pages ---------- */
.acc-auth { align-items: start; }
.acc-auth .form-card h3 { font-size: 22px; margin-bottom: 8px; }
.acc-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.acc-auth__foot { margin: 18px 0 0; font-size: 14px; text-align: center; }
.acc-portal { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.acc-portal b { display: block; color: #fff; font-family: var(--ff-h); font-size: 17px; margin-bottom: 4px; }
.acc-portal p { font-size: 14px; }
.acc-tabs { justify-content: center; }
.acc-tabs .tool-tab { white-space: normal; text-align: left; }
.acc-help { display: grid; gap: 10px; margin-top: 18px; }
.acc-help__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); color: #fff; font-weight: 600; transition: background .3s; overflow-wrap: anywhere; }
.acc-help__item:hover { background: rgba(255, 255, 255, .1); }
.acc-help__item .ic { color: var(--red-2); width: 18px; height: 18px; }
.acc-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; counter-reset: none; }
.acc-steps li { display: flex; gap: 14px; align-items: flex-start; color: #fff; font-size: 15px; }
.acc-steps b { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--ff-h); font-size: 14px; flex: none; }

/* ---------- Dashboard ---------- */
.acc-prompt { align-items: center; flex-wrap: wrap; }
.acc-prompt > span { flex: 1 1 260px; }
.acc-stats { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.acc-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.acc-stat--wide { background: var(--ink); border-color: transparent; color: var(--text-light); }
.acc-stat__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-stat__label .ic { color: var(--red); width: 16px; height: 16px; }
.acc-stat--wide .acc-stat__label { color: var(--text-light); }
.acc-stat__value { font-family: var(--ff-h); font-size: clamp(22px, 2.2vw, 30px); color: var(--ink); line-height: 1.1; overflow-wrap: anywhere; }
.acc-stat--wide .acc-stat__value { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.acc-stat__value .acc-badge { font-size: 14px; padding: 7px 16px; }
.acc-stat__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-stat__meta span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; }
.acc-stat__text { margin: 0; font-size: 14px; color: var(--muted); }
.acc-stat--wide .acc-stat__text { color: var(--text-light); }

.acc-actions { margin-bottom: 44px; }
.acc-actions__list { display: flex; flex-wrap: wrap; gap: 12px; }
.acc-logout { margin: 0 0 0 auto; }

.acc-referral { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; background: var(--ink); color: var(--text-light); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 50px); margin-bottom: 44px; position: relative; overflow: hidden; }
.acc-referral::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 56, 50, .35), transparent 65%); pointer-events: none; }
.acc-referral > * { position: relative; }
.acc-referral p { color: var(--text-light); }
.acc-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.acc-code code { font-family: var(--ff-h); font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: .06em; color: #fff; padding: 12px 20px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); overflow-wrap: anywhere; }
.acc-referral__share { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-referral__count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.acc-referral__count b { font-family: var(--ff-h); font-size: 64px; line-height: 1; color: #fff; }
.acc-referral__count span { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.acc-referral__next { color: #fff !important; font-weight: 600; }
.acc-tiers { display: grid; gap: 10px; }
.acc-tiers li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); font-size: 14px; }
.acc-tiers li b { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; font-family: var(--ff-h); flex: none; }
.acc-tiers li span { flex: 1; }
.acc-tiers li .ic { color: #5ee0b8; width: 20px; height: 20px; }
.acc-tiers li.is-done { border-color: rgba(94, 224, 184, .35); }
.acc-tiers li.is-done b { background: var(--red); }

.acc-block { margin-bottom: 44px; }
.acc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.acc-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 14px 18px; background: var(--off); white-space: nowrap; }
.acc-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.acc-table td b { color: var(--ink); font-family: var(--ff-h); white-space: nowrap; }
.acc-table tr:hover td { background: #fcfcfe; }

.acc-forms { align-items: start; }
.acc-forms .h3 { margin-bottom: 10px; }
.acc-forms .form { margin-top: 16px; }
.field input:disabled { background: var(--off); color: var(--muted); }

/* ---------- Renew ---------- */
.acc-renew__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.acc-renew__main { display: grid; gap: 24px; min-width: 0; }
.acc-step .h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.acc-step .h3 i { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 17px; flex: none; }
.acc-group { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 22px 0 12px; }
.acc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.acc-pick, .acc-method, .acc-cycle { position: relative; cursor: pointer; display: block; }
.acc-pick input, .acc-method input, .acc-cycle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-pick__box { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.acc-pick:hover .acc-pick__box, .acc-method:hover .acc-method__box { border-color: rgba(225, 56, 50, .45); }
.acc-pick input:checked + .acc-pick__box, .acc-method input:checked + .acc-method__box { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 56, 50, .12); }
.acc-pick input:focus-visible + .acc-pick__box, .acc-method input:focus-visible + .acc-method__box, .acc-cycle input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.acc-pick__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acc-pick__top b { font-family: var(--ff-h); color: var(--ink); font-size: 17px; }
.acc-pick__top .acc-badge { font-size: 11px; padding: 3px 9px; }
.acc-pick__speed { font-family: var(--ff-h); font-weight: 700; font-size: 28px; color: var(--ink); line-height: 1; }
.acc-pick__speed small, .acc-pick__price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.acc-pick__price { font-weight: 700; color: var(--red); }

.acc-cycles { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-cycle span { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--ff-h); font-weight: 600; font-size: 15px; color: var(--ink); background: #fff; transition: .3s; }
.acc-cycle span small { color: var(--red); font-weight: 700; }
.acc-cycle input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-cycle input:checked + span small { color: var(--red-2); }

.acc-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.acc-method__box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.acc-method__box b { font-family: var(--ff-h); color: var(--ink); font-size: 16px; }
.acc-method__number { font-weight: 700; color: var(--red); font-size: 14px; }
.acc-method__box small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.acc-trx { margin-bottom: 18px; }
.acc-notes textarea { min-height: 96px; }

.acc-renew__side { position: sticky; top: calc(var(--nav-h) + 20px); }
.acc-summary { background: var(--ink); color: var(--text-light); border-radius: var(--r-lg); padding: 30px; }
.acc-summary dl { margin: 0 0 18px; display: grid; gap: 0; }
.acc-summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 14.5px; }
.acc-summary dt { color: var(--text-light); }
.acc-summary dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.acc-summary__total { border-bottom: 0 !important; padding-top: 18px !important; }
.acc-summary__total dt { color: #fff; font-family: var(--ff-h); font-size: 18px; }
.acc-summary__total dd { font-family: var(--ff-h); font-size: 28px; color: #fff; }
.acc-summary__note { font-size: 13px; color: var(--text-light); }
.acc-summary__back { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--text-light); }
.acc-summary__back:hover { color: #fff; }
.acc-pending a { margin-left: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .acc-stats { grid-template-columns: repeat(2, 1fr); }
  .acc-renew__grid { grid-template-columns: 1fr; }
  .acc-renew__side { position: static; }
}
@media (max-width: 900px) {
  .acc-auth, .acc-forms { grid-template-columns: 1fr; }
  .acc-referral { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .acc-stats { grid-template-columns: 1fr; }
  .acc-logout { margin-left: 0; }
  .acc-actions__list .btn { flex: 1 1 100%; justify-content: center; }
  .acc-auth .form__row, .acc-forms .form__row, .acc-trx.form__row { grid-template-columns: 1fr; }
  .acc-table thead { display: none; }
  .acc-table, .acc-table tbody, .acc-table tr, .acc-table td { display: block; width: 100%; }
  .acc-table tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .acc-table tr:first-child { border-top: 0; }
  .acc-table td { border: 0; padding: 6px 16px; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .acc-table td[data-label]::before { content: attr(data-label); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: left; flex: none; }
  .acc-table-wrap { overflow-x: visible; }
  .acc-picks { grid-template-columns: 1fr 1fr; }
  .acc-pick__speed { font-size: 22px; }
  .acc-summary { padding: 24px; }
  .acc-referral__count b { font-size: 48px; }
}
@media (max-width: 440px) {
  .acc-picks { grid-template-columns: 1fr; }
}
