/* account pages: login / register / me / subscribe / app download */

/* ----- auth (login + register) ----- */
.auth-page {
  position: relative;
  margin: -20px -40px 0;
  min-height: calc(100vh - var(--bar) - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(248, 207, 3, .16), transparent 42%),
    radial-gradient(ellipse at 18% 80%, rgba(80, 70, 40, .35), transparent 50%),
    #12141c;
}
@media (max-width: 899px) {
  .auth-page { margin: -16px -16px 0; }
}
.auth-glow {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(420px, 80vw);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(248, 207, 3, .28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.auth-page .auth-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
}
.auth-page .auth-card {
  position: relative;
  width: min(400px, 100%);
  background: #1b1d24;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.auth-kicker {
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: .18em;
}
.auth-page .auth-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 750;
}
.auth-title-modal { display: none; }
.auth-page .auth-card .lead {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
}
.auth-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 20px;
  border-radius: 50%;
}
.auth-close:hover { color: #fff; background: #ffffff12; }
.auth-form { display: grid; gap: 12px; max-width: none; }
.auth-page .auth-card input,
.me-page .auth-form input {
  background: #14161c;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
}
.auth-page .auth-card input:focus,
.me-page .auth-form input:focus {
  outline: none;
  border-color: rgba(248, 207, 3, .55);
  box-shadow: 0 0 0 3px rgba(248, 207, 3, .12);
}
.auth-submit,
.auth-page .auth-card button.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 750;
  background: var(--acc);
  color: var(--acc-text);
}
.auth-submit:hover,
.auth-page .auth-card button.auth-submit:hover { filter: brightness(1.05); }
.auth-err {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}
.auth-err:empty { display: none; }
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-top: 14px;
}
.auth-links a,
.auth-textbtn {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.auth-links a:hover,
.auth-textbtn:hover { color: var(--acc); }
.auth-note,
.auth-devotp {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.auth-devotp { color: var(--warn); }
.auth-otp { margin-top: 16px; }

@media (max-width: 640px) {
  .auth-page .auth-wrap { padding: 28px 12px 40px; align-items: flex-start; }
  .auth-page .auth-card { padding: 24px 18px 20px; border-radius: 16px; width: 100%; }
  .auth-kicker { display: none; }
  .auth-title-full { display: none; }
  .auth-title-modal { display: block; }
  .auth-close { display: block; }
  .auth-page .auth-card .lead { margin-bottom: 16px; }
}

/* ----- personal center ----- */
.me-page { max-width: 1200px; margin: 0 auto; }
.me-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(248, 207, 3, .16), transparent 40%),
    var(--surface);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.me-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--acc-text);
  background: var(--acc);
  flex: 0 0 auto;
}
.me-who { flex: 1 1 200px; min-width: 0; }
.me-who h1 { margin: 2px 0 4px; font-size: 24px; }
.me-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.me-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
  overflow-x: auto;
}
.me-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 0;
}
.me-tab:hover { color: var(--text); }
.me-tab.on { color: var(--acc); border-bottom-color: var(--acc); font-weight: 700; }
.me-panel h2 { margin: 0 0 8px; font-size: 18px; }
.me-fav { min-width: 0; }
.me-fav .ghost { margin-top: 8px; width: 100%; }
.me-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.me-newlist {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 420px;
  align-items: center;
}
.me-newlist input { flex: 1; }
.me-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.me-account-grid h3 { margin: 0 0 10px; font-size: 16px; }
.me-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.me-table th,
.me-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #ffffff10;
  vertical-align: middle;
}
.me-table th { color: var(--muted); font-weight: 600; }

/* ----- subscribe ----- */
.sub-page { max-width: 1080px; margin: 0 auto; }
.sub-hero {
  border-radius: 16px;
  padding: 28px 28px 20px;
  background: radial-gradient(circle at 90% 20%, rgba(248, 207, 3, .18), transparent 40%), var(--surface);
  margin-bottom: 16px;
}
.sub-hero h1 { margin: 4px 0 6px; }
.sub-banner {
  background: rgba(245, 193, 108, .1);
  border: 1px solid rgba(245, 193, 108, .35);
  color: var(--warn);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 899px) {
  .sub-grid { grid-template-columns: 1fr; }
}
.sub-plan {
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  position: relative;
}
.sub-plan.is-featured { border-color: rgba(248, 207, 3, .55); box-shadow: 0 0 0 1px rgba(248, 207, 3, .2); }
.sub-plan h2 { margin: 0 0 8px; font-size: 20px; }
.sub-price { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.sub-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.sub-flag {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--acc);
  background: rgba(248, 207, 3, .1);
}
.sub-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--acc-text);
  background: var(--acc);
  border-radius: 999px;
  padding: 2px 8px;
}
.sub-channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sub-channels label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
}
.sub-channels input { width: auto; margin: 0; accent-color: var(--acc); }
.sub-plan .auth-submit { width: 100%; }
.sub-paybox { margin-top: 20px; }
.sub-order {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.sub-order h2 { margin: 0 0 8px; font-size: 16px; }
.sub-login-hint { color: var(--muted); font-size: 13px; margin-top: 16px; }
.sub-login-hint a { color: var(--acc); }

/* ----- app download ----- */
.appdl-page { max-width: 1120px; margin: 0 auto; }
.appdl-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
  border-radius: 24px;
  padding: 36px 40px;
  background:
    radial-gradient(circle at 78% 45%, rgba(248, 207, 3, .16), transparent 32%),
    linear-gradient(180deg, #1a1d26, #14161d);
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 20px;
  overflow: hidden;
}
.appdl-copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: .02em;
}
.appdl-lead { margin: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 34em; }
.appdl-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.appdl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 46px;
  padding: 0 18px;
  border-radius: 24px;
  font-weight: 750;
  font-size: 14px;
  border: 1px solid transparent;
}
a.appdl-btn.is-android,
button.appdl-btn.is-android {
  background: var(--acc);
  color: var(--acc-text) !important;
  border-color: var(--acc);
}
a.appdl-btn.is-ios,
button.appdl-btn.is-ios {
  background: #23262e;
  color: #fff !important;
  border-color: #3a3e48;
}
.appdl-btn.is-disabled,
button.appdl-btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.appdl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.appdl-chips li { position: relative; padding-left: 14px; }
.appdl-chips li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
}
.appdl-stage {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appdl-rings {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(248, 207, 3, .18);
  box-shadow:
    0 0 0 28px rgba(248, 207, 3, .05),
    0 0 0 56px rgba(248, 207, 3, .03);
  pointer-events: none;
}
.appdl-phone {
  position: relative;
  width: 198px;
  height: 400px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(180deg, #2a2d36, #15171c);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 2px #3a3e48;
  z-index: 1;
}
.appdl-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 72px;
  height: 8px;
  margin-left: -36px;
  border-radius: 8px;
  background: #0b0c10;
  z-index: 2;
}
.appdl-screen {
  height: 100%;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 42%, rgba(248, 207, 3, .14), transparent 46%), #0c0e14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 6px;
}
.appdl-brand {
  font-weight: 800;
  color: var(--acc);
  letter-spacing: .08em;
  font-size: 18px;
  margin-bottom: 18px;
}
.appdl-screen p { margin: 0; font-size: 14px; }
.appdl-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-top: 18px;
  background: var(--acc);
  position: relative;
  box-shadow: 0 8px 24px rgba(248, 207, 3, .35);
}
.appdl-play:after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--acc-text);
}
.appdl-sticker {
  position: absolute;
  right: 8%;
  bottom: 18%;
  z-index: 2;
  width: 92px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: #22252d;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  text-align: center;
}
.appdl-sticker span {
  display: flex;
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--acc);
  color: var(--acc-text);
  font-weight: 800;
  font-size: 22px;
}
.appdl-sticker small { color: var(--muted); font-size: 11px; }
.appdl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.appdl-status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.appdl-status h2 { margin: 0 0 8px; font-size: 16px; }
.appdl-feats { margin-top: 4px; }

@media (max-width: 899px) {
  .appdl-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px 28px;
  }
  .appdl-stage { min-height: 300px; order: -1; }
  .appdl-phone { width: 160px; height: 320px; border-radius: 28px; }
  .appdl-rings { width: 240px; height: 240px; }
  .appdl-grid { grid-template-columns: 1fr; }
  .me-hero { padding: 16px; }
}
