/* ==========================================================================
   Account page -- "The Members' Room"
   A membership card on a leather desk. Brass is what Pro costs and what Pro
   unlocks; everything the account can do to itself (codes, deletion) sits back
   in plain card stock so it never competes with the plan.
   Scoped under `.acct`. No external asset and no webfont.
   ========================================================================== */

.acct {
  --leather:    #1B1712;
  --leather-2:  #141110;
  --panel:      #2A231C;
  --panel-2:    #201A15;
  --rule:       rgba(226, 205, 168, 0.13);
  --rule-firm:  rgba(226, 205, 168, 0.28);
  --ink:        #F1E8D8;
  --ink-soft:   #A79781;
  --brass:      #D9A94F;
  --brass-lit:  #F0C878;
  --sage:       #74C97B;
  --rose:       #E08C86;

  display: block;
  padding: clamp(14px, 2.6vw, 30px) clamp(12px, 3vw, 34px) clamp(34px, 5vw, 62px);
  background:
    radial-gradient(110% 70% at 50% -8%, rgba(217, 169, 79, 0.07), transparent 60%),
    linear-gradient(168deg, var(--leather) 0%, var(--leather-2) 100%);
  min-height: 88vh;
  color: var(--ink);
}

.acct a { text-decoration: none; }
.acct :focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.acct-shell {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
}

/* ---- the membership card ---- */

.acct-card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 10px;
  border: 1px solid var(--rule-firm);
  background:
    linear-gradient(150deg, rgba(217, 169, 79, 0.10) 0%, transparent 46%),
    linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

/* brass leaf along the top edge */
.acct-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.7;
}

.acct-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.acct-eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.acct-email {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.acct-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-firm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.acct-badge.is-pro {
  border-color: var(--brass);
  background: linear-gradient(160deg, rgba(217, 169, 79, 0.24), rgba(217, 169, 79, 0.10));
  color: var(--brass-lit);
  box-shadow: 0 0 0 1px rgba(217, 169, 79, 0.18), 0 6px 18px rgba(217, 169, 79, 0.14);
}

.acct-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.acct-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---- buttons ---- */

.acct-btn {
  display: inline-block;
  width: auto;          /* styles.css sets button { width: 100% } globally */
  min-height: 0;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid var(--rule-firm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.acct-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--rule-firm); }
.acct-btn:active { transform: translateY(1px); }

.acct-btn.is-primary {
  border-color: var(--brass);
  background: linear-gradient(160deg, var(--brass) 0%, #C08F35 100%);
  color: #241B08;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(217, 169, 79, 0.24);
}

.acct-btn.is-primary:hover {
  background: linear-gradient(160deg, var(--brass-lit) 0%, var(--brass) 100%);
}

.acct-btn.is-danger {
  border-color: rgba(224, 140, 134, 0.5);
  background: rgba(224, 140, 134, 0.1);
  color: var(--rose);
}

.acct-btn.is-danger:hover { background: rgba(224, 140, 134, 0.18); }

/* ---- plan comparison ---- */

.acct-section-title {
  margin: 0 0 3px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.acct-section-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.acct-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: 16px;
  align-items: stretch;
}

.acct-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-2) 100%);
}

.acct-plan.is-pro {
  border-color: var(--brass);
  background:
    radial-gradient(130% 80% at 50% -10%, rgba(217, 169, 79, 0.16), transparent 62%),
    linear-gradient(165deg, #2E2519 0%, #241D14 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(240, 200, 120, 0.14);
}

.acct-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.acct-plan-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.acct-plan.is-pro .acct-plan-head h3 { color: var(--brass-lit); }

.acct-current {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule-firm);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.acct-plan.is-pro .acct-current { border-color: var(--brass); color: var(--brass-lit); }

.acct-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.acct-price strong {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.acct-plan.is-pro .acct-price strong { color: var(--brass-lit); }

.acct-price span { font-size: 0.82rem; color: var(--ink-soft); }

.acct-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.acct-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}

/* tick drawn from two borders -- no icon font, no SVG file */
.acct-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.36em;
  width: 5px;
  height: 9px;
  border: solid var(--sage);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.acct-plan.is-pro .acct-features li::before { border-color: var(--brass); }

.acct-features li em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.acct-plan-foot { margin-top: auto; padding-top: 8px; }

.acct-plan-foot .acct-section-note { font-size: 0.8rem; }

/* ---- quieter utility panels ---- */

.acct-panel {
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-2) 100%);
}

.acct-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.acct-panel-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.acct-panel-head span { font-size: 0.78rem; color: var(--ink-soft); }

.acct-panel p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.acct-panel p:last-child { margin-bottom: 0; }

.acct-panel code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.34);
  font-size: 0.82em;
  color: var(--brass-lit);
}

.acct-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.acct-form label {
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.acct-form input[type="text"],
.acct-form input[type="file"],
.acct-form input:not([type]) {
  padding: 9px 12px;
  min-width: 200px;
  border-radius: 6px;
  border: 1px solid var(--rule-firm);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: normal;
}

.acct-form input::placeholder { color: rgba(167, 151, 129, 0.6); }

.acct-panel.is-danger { border-color: rgba(224, 140, 134, 0.34); }
.acct-panel.is-danger .acct-panel-head h3 { color: var(--rose); }

@media (max-width: 620px) {
  .acct-card-top { flex-direction: column; }
  .acct-form { align-items: stretch; }
  .acct-form label, .acct-form input { width: 100%; min-width: 0; }
}
