/* =====================================================================
   AI Trends Magazine — auth.css
   Styles for non-front-page surfaces:
     - Site chrome (top nav band on light bg)
     - Auth screens: login, signup, forgot, reset
     - Subscribe / pricing page
     - Account dashboard
     - Legal pages: privacy, terms
   Inherits palette + typography from theme.css.
   ===================================================================== */

/* ---------- SITE CHROME (top nav for non-hero pages) ---------- */
.site-chrome {
  border-bottom: 1px solid rgba(14,14,44,0.08);
}
.site-chrome .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 24px;
}
.site-chrome .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-chrome .brand .mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.site-chrome .brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.site-chrome .brand-name small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 1px;
}
.site-chrome .menu {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-chrome .menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-chrome .menu li { margin: 0; }
.site-chrome .menu a {
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 6px 0;
  position: relative;
  transition: color 0.15s;
}
.site-chrome .menu a:hover { color: var(--blue) !important; }
.site-chrome .menu a::after { background: var(--blue) !important; }
.site-chrome .menu .current-menu-item > a {
  color: var(--magenta-hot) !important;
  font-weight: 700;
}
.site-chrome .menu .search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink) !important;
  color: var(--ink) !important;
  background: transparent !important;
  transition: background 0.18s, color 0.18s;
}
.site-chrome .menu .search:hover {
  background: var(--ink) !important;
  color: var(--gold) !important;
  border-color: var(--ink) !important;
}
@media (max-width: 700px) {
  .site-chrome .menu ul { display: none; }
  .site-chrome .nav { padding: 16px 0; }
}

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  border: 1.5px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(95deg, var(--blue) 0%, #4DA2FF 100%);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(30,107,255,0.55);
  color: #fff;
}
.btn-primary:disabled {
  background: rgba(14,14,44,0.06);
  color: var(--mute);
  cursor: not-allowed;
  border-color: rgba(14,14,44,0.08);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: rgba(14,14,44,0.18);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--cream);
  color: var(--ink);
}
.btn-danger {
  background: #fff;
  color: #B22330;
  border-color: rgba(230,56,75,0.3);
}
.btn-danger:hover {
  background: rgba(230,56,75,0.08);
  border-color: #B22330;
  color: #B22330;
}

/* ---------- AUTH SHELL (login / signup / forgot / reset / account) ---------- */
.auth-shell {
  background: var(--cream);
  min-height: calc(100vh - 220px);
  padding: 64px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 48px 44px;
  box-shadow: 0 24px 48px -16px rgba(14,14,44,0.12);
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(14,14,44,0.06);
}
.auth-card h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.15;
}
.auth-sub {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.auth-banner {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 20px;
  border: 1px solid transparent;
  line-height: 1.45;
}
.auth-banner.err {
  background: rgba(230,56,75,0.08);
  color: #B22330;
  border-color: rgba(230,56,75,0.2);
}
.auth-banner.ok {
  background: rgba(43,178,76,0.1);
  color: #1a7a2f;
  border-color: rgba(43,178,76,0.25);
}

/* ---------- AUTH FORM ---------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin: 0;
}
.auth-form > label > span {
  display: block;
  margin: 0 0 6px;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(14,14,44,0.15);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-weight: 500;
}
.auth-form input::placeholder { color: var(--mute); }
.auth-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,107,255,0.15);
}
.auth-form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.5;
}
.auth-form .check input[type="checkbox"] {
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.auth-form .check a {
  color: var(--blue);
  font-weight: 600;
}
.auth-form .check a:hover { text-decoration: underline; }
.auth-form button[type="submit"],
.auth-form .btn-primary {
  margin-top: 8px;
  width: 100%;
}
.auth-foot {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--mute);
  text-align: center;
}
.auth-foot a {
  color: var(--blue);
  font-weight: 600;
}
.auth-foot a:hover { text-decoration: underline; }

/* ---------- PRICING / SUBSCRIBE ---------- */
.pricing-shell {
  background: var(--cream);
  padding: 64px 24px 96px;
}
.flash-sale {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 14px 22px;
  background: linear-gradient(95deg, #E6384B 0%, #FF7A2E 100%);
  border-radius: 14px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 12px 28px -10px rgba(230,56,75,0.5);
}
.flash-sale strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.flash-sale span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.95;
}
@media (max-width: 600px) {
  .flash-sale strong { font-size: 18px; }
  .flash-sale span { font-size: 12px; }
}
.plan-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--magenta-hot);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(187,38,108,0.5);
}
.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.price-strike {
  font-size: 18px;
  font-weight: 600;
  color: var(--mute);
  text-decoration: line-through;
  text-decoration-color: rgba(230,56,75,0.7);
  text-decoration-thickness: 2px;
}
.price-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.01em;
}
.plan-cta { margin-bottom: 20px; }
.pricing-hero {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.pricing-hero .kicker {
  margin-bottom: 16px;
  display: inline-block;
}
.pricing-hero .kicker::before {
  margin-right: 8px;
}
.pricing-hero h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.05;
}
.pricing-hero .lede {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}
.plan {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 12px 32px -16px rgba(14,14,44,0.12);
  border: 1px solid rgba(14,14,44,0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -16px rgba(14,14,44,0.18);
}
.plan > header {
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(14,14,44,0.08);
  background: transparent;
  display: block;
}
.plan h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin: 0 0 12px;
}
.plan .price {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
  font-weight: 500;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.4l3 3 6-6'/></svg>") center/12px no-repeat;
}
.plan .btn-primary,
.plan .btn-secondary {
  width: 100%;
}
.plan form {
  width: 100%;
  display: block;
  margin: 0;
}
.plan form button { width: 100%; }
.plan-featured {
  background: linear-gradient(180deg, #FFF8F2 0%, #fff 60%);
  border: 2px solid var(--magenta-hot);
}
.plan-featured::after {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--magenta-hot);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-featured li::before { background-color: var(--magenta-hot); }
.plan-free {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
  border-color: rgba(14,14,44,0.18);
}
.plan-free:hover { box-shadow: none; }
.plan-free li::before { background-color: var(--mute); }
.pricing-foot {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
}
.pricing-foot p {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.6;
  margin: 0;
}
.pricing-foot a {
  color: var(--blue);
  font-weight: 600;
}
.pricing-foot a:hover { text-decoration: underline; }

/* ---------- ACCOUNT DASHBOARD ----------
   The account template uses .auth-shell as outer wrapper but contains
   a wider .account-grid (sidebar + main), so override max-width inside. */
.auth-shell .account-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) {
  .auth-shell .account-grid { grid-template-columns: 1fr; }
}
.account-side {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid rgba(14,14,44,0.06);
  box-shadow: 0 12px 32px -16px rgba(14,14,44,0.1);
}
.account-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px 18px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(14,14,44,0.08);
}
.account-user .avatar {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}
.account-user strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.account-user small {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
  display: block;
}
.account-nav a:hover { background: var(--cream); color: var(--ink); }
.account-nav a.logout {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(14,14,44,0.08);
  border-radius: 0 0 6px 6px;
  color: #B22330;
}
.account-nav a.logout:hover {
  background: transparent;
  color: #8a1c25;
}
.account-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.account-main h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.1;
}
.account-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(14,14,44,0.06);
  box-shadow: 0 12px 32px -16px rgba(14,14,44,0.08);
}
.account-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.account-card .auth-form { gap: 12px; }
.account-card .btn-primary,
.account-card .btn-secondary,
.account-card .btn-danger { width: auto; }
.account-line {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.5;
}
.account-line.muted {
  color: var(--mute);
  font-size: 14px;
}
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.status-pill.status-active   { background: rgba(43,178,76,0.15); color: #1a7a2f; }
.status-pill.status-trialing { background: rgba(30,107,255,0.12); color: var(--blue-deep); }
.status-pill.status-past_due { background: rgba(255,122,46,0.15); color: #B85B1A; }
.status-pill.status-canceled { background: rgba(106,106,133,0.15); color: var(--mute); }
.status-pill.status-incomplete { background: rgba(230,56,75,0.12); color: #B22330; }
.status-pill.status-none     { background: rgba(106,106,133,0.10); color: var(--mute); }
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.muted { color: var(--mute); }

/* ---------- LEGAL PAGES (privacy / terms) ---------- */
.legal-page {
  background: var(--cream);
  padding: 64px 0 96px;
  /* override .wrap padding limits when combined */
}
.legal-hero {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.legal-hero .kicker { margin-bottom: 12px; }
.legal-hero h1 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0;
  line-height: 1.1;
}
.legal-hero .muted {
  font-size: 14px;
  color: var(--mute);
  margin: 0;
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 48px 56px;
  border: 1px solid rgba(14,14,44,0.06);
  box-shadow: 0 16px 40px -16px rgba(14,14,44,0.1);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .legal-body { padding: 32px 24px; }
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 28px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a { color: var(--blue); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: 28px; }
.faq-item {
  border-top: 1px solid rgba(14, 14, 44, 0.1);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(14, 14, 44, 0.1); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--hero-bg); }
.faq-answer {
  padding: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
.faq-answer a { color: var(--blue); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 600px) {
  .auth-shell { padding: 40px 16px; }
  .auth-card { padding: 32px 24px; }
  .auth-card h1 { font-size: 26px; }
  .pricing-hero h1 { font-size: 36px; }
  .pricing-shell { padding: 48px 16px 64px; }
  .plan { padding: 28px 24px; }
  .plan .price { font-size: 36px; }
  .legal-hero h1 { font-size: 32px; }
  .account-main h1 { font-size: 26px; }
  .account-card { padding: 22px 20px; }
}

/* =====================================================================
   ACCOUNT DASHBOARD — v2 (class names match template-account.php)
   ===================================================================== */

.account-shell {
  min-height: calc(100vh - 80px);
  padding: 56px 24px 80px;
  background: #f4f4f8;
}
.account-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) {
  .account-wrap { grid-template-columns: 1fr; }
}

/* --- Sidebar --- */
.account-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  border: 1px solid rgba(14,14,44,0.07);
  box-shadow: 0 6px 28px -12px rgba(14,14,44,0.12);
}
.account-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(14,14,44,0.08);
}
.account-avatar-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #7C3AED;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.account-avatar-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0E0E2C;
  margin-bottom: 6px;
}
.account-avatar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  justify-content: center;
}
.account-avatar-links a {
  color: #1E6BFF;
  font-weight: 500;
  text-decoration: none;
}
.account-avatar-links a:hover { text-decoration: underline; }
.account-avatar-links a.account-logout-inline { color: #B22330; }
.account-avatar-links span { color: #ddd; }

/* Sidebar navigation */
.account-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #4a4a6a;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.account-nav-item:hover {
  background: #f4f4f8;
  color: #0E0E2C;
}
.account-nav-item.is-active {
  background: #f4f4f8;
  color: #0E0E2C;
  font-weight: 600;
  border-color: rgba(14,14,44,0.06);
}
.account-nav-icon {
  color: #6a6a85;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.account-nav-item.is-active .account-nav-icon { color: #0E0E2C; }
.account-nav-arrow {
  margin-left: auto;
  color: #c0c0cc;
  font-size: 18px;
  line-height: 1;
}

/* Logout button in sidebar */
.account-logout-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #B22330;
  background: rgba(230,56,75,0.06);
  border: 1px solid rgba(230,56,75,0.18);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.account-logout-btn:hover {
  background: rgba(230,56,75,0.12);
  color: #8a1c25;
  text-decoration: none;
}

/* --- Content area --- */
.account-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.account-panel {
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  border: 1px solid rgba(14,14,44,0.07);
  box-shadow: 0 6px 28px -12px rgba(14,14,44,0.08);
}
.account-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: #0E0E2C;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(14,14,44,0.08);
  letter-spacing: -0.01em;
}

/* Account form */
.account-form {
  display: flex;
  flex-direction: column;
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.account-field label {
  font-size: 13px;
  font-weight: 600;
  color: #4a4a6a;
  letter-spacing: 0.01em;
}
.account-field .req { color: #B22330; }
.account-field input[type="text"],
.account-field input[type="email"],
.account-field input[type="password"] {
  padding: 11px 14px;
  border: 1.5px solid rgba(14,14,44,0.14);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #0E0E2C;
  background: #fff;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.account-field input:focus {
  outline: none;
  border-color: #1E6BFF;
  box-shadow: 0 0 0 3px rgba(30,107,255,0.12);
}
.account-field input[readonly] {
  background: #f7f7fb;
  color: #888;
  cursor: not-allowed;
  border-color: rgba(14,14,44,0.08);
}
.account-form > .btn-primary { margin-top: 6px; }

/* Billing table */
.billing-table {
  width: 100%;
  border-collapse: collapse;
}
.billing-table tr { border-bottom: 1px solid rgba(14,14,44,0.06); }
.billing-table tr:last-child { border-bottom: none; }
.billing-table th {
  padding: 13px 0;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a6a;
  text-align: left;
  width: 160px;
  vertical-align: top;
}
.billing-table td {
  padding: 13px 0;
  font-size: 14px;
  color: #0E0E2C;
  font-weight: 500;
}
.billing-status { font-weight: 700; }
.billing-status-trialing { color: #E67E22; }
.billing-status-active   { color: #27AE60; }
.billing-status-canceled { color: #6A6A85; }
.billing-status-past_due { color: #B22330; }
.billing-status-none     { color: #6A6A85; }
.billing-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(14,14,44,0.08);
}

@media (max-width: 600px) {
  .account-shell { padding: 32px 16px 60px; }
  .account-panel { padding: 24px 20px; }
  .account-avatar-circle { width: 68px; height: 68px; font-size: 28px; }
  .billing-table th { width: 110px; font-size: 13px; }
  .billing-table td { font-size: 13px; }
}

/* =====================================================================
   LATEST ISSUE PAGE  (li- prefix to avoid collisions)
   ===================================================================== */

.li-shell {
  background: #f0f0f5;
  min-height: calc(100vh - 80px);
  padding: 40px 0 80px;
}
.li-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* ── Page header row (title + user bar) ── */
.li-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(14,14,44,0.09);
  flex-wrap: wrap;
}
.li-page-title {
  font-size: 26px;
  font-weight: 800;
  color: #0E0E2C;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  border: none;
}
.li-user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.li-user-name {
  font-size: 13px;
  color: #6A6A85;
  font-weight: 500;
}
.li-user-name strong {
  color: #0E0E2C;
}
.li-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.li-user-btn--account {
  background: rgba(14,14,44,0.06);
  color: #0E0E2C;
  border: 1px solid rgba(14,14,44,0.10);
}
.li-user-btn--account:hover { background: rgba(14,14,44,0.11); }
.li-user-btn--logout {
  background: transparent;
  color: #e53e3e;
  border: 1px solid rgba(229,62,62,0.28);
}
.li-user-btn--logout:hover { background: rgba(229,62,62,0.06); }

/* ── HERO CARD (dark) ── */
.li-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 44px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.45);
}
@media (max-width: 680px) {
  .li-hero { grid-template-columns: 1fr; }
}

.li-hero-cover {
  background: #0a0f1e;
  padding: 20px;
}
.li-cover-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 6px;
  box-shadow: 0 8px 28px -6px rgba(0,0,0,0.6);
  flex-shrink: 0;
}
.li-cover-fallback {
  width: 100%;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.li-hero-body {
  background: #0a0f1e;
  padding: 28px 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.li-date-badge {
  display: inline-block;
  padding: 5px 14px;
  background: #12B5A8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-transform: uppercase;
  align-self: flex-start;
}

/* Section list */
.li-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.li-sections > div { display: flex; flex-direction: column; gap: 2px; }
.li-sections dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.li-sections dd {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.5;
}
.li-sections dd small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Trial note inside hero */
.li-trial-note {
  font-size: 12px;
  color: #12B5A8;
  background: rgba(18,181,168,0.08);
  border: 1px solid rgba(18,181,168,0.25);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.5;
  margin: 0;
}

/* Action buttons */
.li-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.li-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  line-height: 1;
  white-space: nowrap;
}
.li-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.li-btn-primary {
  background: #12B5A8;
  color: #fff;
}
.li-btn-outline {
  background: transparent;
  color: #12B5A8;
  border: 1.5px solid #12B5A8;
}
.li-btn-upgrade {
  background: #f59e0b;
  color: #fff;
}
.li-btn-upgrade:hover { opacity: 0.88; transform: translateY(-1px); }

/* Empty state */
.li-empty {
  background: #fff;
  border-radius: 14px;
  padding: 56px 32px;
  text-align: center;
  color: #6A6A85;
  border: 1px solid rgba(14,14,44,0.07);
}

/* ── BACK ISSUES GRID ── */
.li-archive { margin-top: 8px; }
.li-archive-title {
  font-size: 20px;
  font-weight: 800;
  color: #0E0E2C;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(14,14,44,0.08);
}
.li-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 20px;
}
@media (max-width: 600px) {
  .li-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
}

/* Card — both locked and unlocked share base styles */
.li-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.18s;
}
a.li-card:hover { transform: translateY(-3px); }

.li-card-cover {
  width: 100%;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px -4px rgba(14,14,44,0.28);
}
.li-card-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.li-card-cover-blank {
  width: 100%;
  aspect-ratio: 3/4;
  background: #dcdce8;
}

/* Locked card */
.li-card--locked .li-card-cover img { filter: grayscale(100%); opacity: 0.55; }
.li-card--locked .li-card-cover-blank { filter: grayscale(100%); opacity: 0.55; }
.li-card-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,30,0.22);
  color: rgba(255,255,255,0.85);
}
.li-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #4a4a6a;
  text-align: center;
  display: block;
}
.li-card-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  background: rgba(14,14,44,0.07);
  color: #4a4a6a;
  border: 1px solid rgba(14,14,44,0.10);
  transition: background 0.15s, color 0.15s;
}
a.li-card-dl:hover, a.li-card:hover .li-card-dl {
  background: #12B5A8;
  color: #fff;
  border-color: #12B5A8;
}
/* Locked subscribe button — show amber so the CTA stands out */
.li-card-dl--locked {
  background: rgba(245,158,11,0.10);
  color: #b45309;
  border-color: rgba(245,158,11,0.35);
}
a.li-card-dl--locked:hover {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

/* Upgrade bar at bottom */
.li-upgrade-bar {
  margin-top: 36px;
  padding: 18px 24px;
  background: #0a0f1e;
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.li-upgrade-bar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.li-upgrade-bar-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.li-upgrade-bar-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.li-upgrade-bar-btn--primary {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}
.li-upgrade-bar-btn--primary:hover { background: #d97706; border-color: #d97706; color: #fff; }
