/* Account — full redesign green × violet */

.account-page {
  --panel-bg: rgba(18, 12, 32, 0.75);
}

.account-main {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
  min-height: calc(100vh - var(--nav-h) - 5rem);
}

.profile-hero {
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.profile-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.profile-hero__left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.profile-hero h1 {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.avatar {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.35rem;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
  flex-shrink: 0;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .65rem;
}
.chip, .chip-meta {
  font-size: .78rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(0,0,0,.2);
}
.plan-orb {
  text-align: right;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(139,92,246,.12));
  min-width: 160px;
}
.plan-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .35rem;
}
.plan-line {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.05rem;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.stat {
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.2);
}
.stat__label {
  display: block;
  font-size: .75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.stat strong { font-family: var(--font-d); font-size: 1.1rem; }

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
  padding: .35rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  width: fit-content;
  max-width: 100%;
}
.ptab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: .55rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.ptab:hover { color: var(--text); }
.ptab.is-active {
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(139,92,246,.2));
  color: var(--text);
}

.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.profile-grid--3 { grid-template-columns: repeat(3, 1fr); }

.panel {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
}
.panel--glow {
  border-color: rgba(52, 211, 153, 0.25);
  background: linear-gradient(160deg, rgba(16,185,129,.08), rgba(139,92,246,.1)), var(--panel-bg);
}
.panel h3 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.panel--lift { /* alias */ }

.status-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .85rem;
  color: var(--text-muted);
  font-size: .92rem;
}
.status-list li::before {
  content: "· ";
  color: var(--green);
  font-weight: 700;
}

.dash-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .75rem;
}
.dash-actions .btn { width: 100%; }

.sub-features {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.sub-features span {
  font-size: .78rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.redeem-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  margin-top: .75rem;
}
.redeem-row input {
  font-family: ui-monospace, monospace;
  letter-spacing: .04em;
}

/* Buy modal */
.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.buy-modal[hidden] { display: none !important; }
.buy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}
.buy-modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: #120c20;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.65rem 1.45rem 1.45rem;
  box-shadow: var(--shadow);
}
.buy-modal__panel h2 {
  font-family: var(--font-d);
  font-size: 1.3rem;
  margin: 0 0 .25rem;
  font-weight: 700;
}
.buy-modal__close {
  position: absolute;
  top: .7rem; right: .85rem;
  border: 0; background: transparent;
  color: var(--text-muted);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.buy-modal__close:hover { color: #fff; }
.buy-label {
  margin: 1.15rem 0 .45rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  font-weight: 600;
}
.buy-options { display: flex; flex-direction: column; gap: .5rem; }
.buy-option {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem .95rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.buy-option:has(input:checked) {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.1);
}
.buy-option input { margin-top: .2rem; accent-color: #34d399; width: auto; }
.buy-option__body { display: flex; flex-direction: column; gap: .15rem; }
.buy-option__body strong { font-size: .95rem; }
.buy-modal__submit { width: 100%; margin-top: 1.25rem; }

@media (max-width: 960px) {
  .profile-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .profile-hero__inner { flex-direction: column; align-items: flex-start; }
  .plan-orb { text-align: left; width: 100%; }
  .profile-grid, .profile-grid--3, .redeem-row { grid-template-columns: 1fr; }
  .profile-tabs { width: 100%; }
}

.client-center {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}
.client-card {
  width: min(420px, 100%);
  text-align: center;
}
.client-card .status-list {
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  margin: 1rem auto;
}
.client-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}
