/* ============================================================
   FPSF Members Portal — Design System
   Brand: IBM Plex Sans, navy #0B1F33, teal #1FA3A3
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --blue: #0B1F33;
  --teal: #1FA3A3;
  --teal-light: #E8F6F6;
  --teal-mid: #B8E5E5;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;

  /* Status */
  --gold: #C9A227;
  --gold-light: #FBF4E0;
  --green: #2D9348;
  --green-light: #E8F5EC;
  --red: #C0392B;
  --red-light: #FDECEA;

  /* Layout */
  --sidebar-width: 248px;
  --header-height: 64px;
  --content-max: 1100px;
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11,31,51,0.08);
  --shadow-md: 0 4px 12px rgba(11,31,51,0.12);
  --shadow-lg: 0 8px 32px rgba(11,31,51,0.16);

  /* Typography */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Auth Wall ─────────────────────────────────────────── */

.auth-wall {
  position: fixed;
  inset: 0;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;

  /* Background Image Setup */
  background-image: url('../img/login-page-art.png');
  /* Replace with your image path */
  background-size: cover;
  /* Covers the full screen without distorting ratio */
  background-position: center;
  /* Keeps center of image focused */
  background-repeat: repeat;
  /* Use 'no-repeat' if you don't want it to tile on mass*/
}

/* .auth-wall-content {
  text-align: center;
  max-width: 420px;
  width: 100%;
} */

/* Central Suspended Semi-Transparent Card */
.auth-wall-content {
  background: var(--blue);
  /* White with 85% opacity */
  backdrop-filter: blur(10px);
  /* Modern frosted-glass blur effect */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */

  width: 100%;
  max-width: 340px;
  max-height: 340px;
  /* Controls the size of the "large" card */
  padding: 48px 40px;
  border-radius: 16px;

  /* Card depth & elevation shadow */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.05);
  border: 0.25px solid var(--teal);

  text-align: center;
}

.auth-wall-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 32px;
}

.auth-wall-content h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.auth-wall-content p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  font-size: 15px;
}

.auth-wall-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-wall-back {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-wall-back:hover { color: rgba(255,255,255,0.7); }

/* ─── Portal Layout ─────────────────────────────────────── */

.portal-body {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  background: var(--blue);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 4px;
}

.logo-img { height: 28px; }

.logo-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.sidebar-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section { padding: 8px 0; }

.nav-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 4px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  border-radius: 0;
  position: relative;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.nav-item:hover svg { opacity: 1; }

.nav-item.active {
  background: rgba(31,163,163,0.15);
  color: var(--teal);
  border-left: 2px solid var(--teal);
  padding-left: 18px;
}

.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.nav-badge.locked { background: rgba(31,163,163,0.15); color: var(--teal); }
.nav-badge.locked-gold { background: rgba(201,162,39,0.2); color: var(--gold); }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.tier-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tier-icon {
  font-size: 18px;
  color: var(--teal);
  line-height: 1;
}

.tier-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

.tier-upgrade {
  font-size: 11px;
  color: var(--teal);
  text-decoration: none;
}

.tier-upgrade:hover { text-decoration: underline; }

.logout-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.logout-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
}

/* ─── Main Area ──────────────────────────────────────────── */

.portal-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--gray-700);
}

.menu-toggle svg { width: 22px; height: 22px; }

.header-greeting { flex: 1; }

.greeting-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--blue);
  line-height: 1.2;
}

.greeting-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.12s;
}

.header-link svg { width: 15px; height: 15px; }
.header-link:hover { color: var(--teal); }

.avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.avatar-btn:hover { border-color: var(--teal); }

.portal-content {
  padding: 32px;
  max-width: var(--content-max);
  width: 100%;
}

/* ─── Upgrade Banner ─────────────────────────────────────── */

.upgrade-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1a3a5c 100%);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.upgrade-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upgrade-banner-text {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.upgrade-banner-text strong { color: var(--white); }

/* ─── Stats Row ──────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 28px;
  font-weight: 300;
  color: var(--blue);
  font-family: var(--font-serif);
  line-height: 1;
  display: flex;
  align-items: center;
}

.stat-locked {
  color: var(--gray-300);
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.stat-sub, .stat-locked-sub {
  font-size: 11px;
  color: var(--gray-400);
}

/* ─── Sections ───────────────────────────────────────────── */

.portal-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
}

.section-link {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
}

.section-link:hover { text-decoration: underline; }

/* ─── Community / Forum Cards ────────────────────────────── */

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.forum-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.forum-card:hover {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow-sm);
}

.forum-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forum-card-icon svg { width: 18px; height: 18px; }
.forum-icon-pub { background: var(--teal-light); color: var(--teal); }
.forum-icon-spec { background: #EEF0FB; color: #4355B6; }
.forum-icon-inst { background: var(--gold-light); color: var(--gold); }
.forum-icon-dev { background: var(--green-light); color: var(--green); }

.forum-card-content { flex: 1; min-width: 0; }

.forum-card-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 4px;
}

.forum-card-content p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
}

.forum-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forum-status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}

.forum-status-open { background: var(--green-light); color: var(--green); }
.forum-status-member { background: var(--teal-light); color: var(--teal); }
.forum-status-inst { background: var(--gold-light); color: var(--gold); }

.coming-soon-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

.coming-soon-notice svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── Spec Cards ─────────────────────────────────────────── */

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.spec-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: border-color 0.15s;
}

.spec-card:hover { border-color: var(--gray-300); }

.spec-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.spec-id {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  font-family: 'IBM Plex Mono', monospace;
}

.spec-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-draft { background: var(--gray-100); color: var(--gray-600); }
.spec-member { background: var(--teal-light); color: var(--teal); }
.spec-inst { background: var(--gold-light); color: var(--gold); }

.spec-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}

.spec-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
}

.spec-link {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.spec-link:hover { text-decoration: underline; }

.spec-locked { overflow: hidden; }

.spec-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,249,250,0.9);
  backdrop-filter: blur(3px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.spec-lock-overlay svg { width: 24px; height: 24px; color: var(--gray-400); }

.spec-lock-overlay span {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ─── Research ───────────────────────────────────────────── */

.research-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.research-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.research-inst { border-color: var(--gold-light); }

.research-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.research-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.research-tag-inst { background: var(--gold-light); color: var(--gold); }

.research-date {
  font-size: 11px;
  color: var(--gray-400);
}

.research-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 5px;
}

.research-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  filter: blur(2px);
  user-select: none;
}

.research-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 10px;
}

.research-lock svg { width: 12px; height: 12px; }
.research-lock-inst { color: var(--gold); }

.unlock-cta {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.unlock-cta:hover { text-decoration: underline; }

/* ─── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover { background: #1a9090; border-color: #1a9090; }

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-secondary:hover { background: #0e2840; }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover { background: var(--teal-light); }

.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn-full { width: 100%; }

/* ─── Modal ──────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,51,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(8px);
  transition: transform 0.2s;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
}

.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { color: var(--gray-700); }

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon svg { width: 28px; height: 28px; }

.modal-icon-success { background: var(--green-light); color: var(--green); }

.modal h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 10px;
}

.modal p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions { display: flex; gap: 10px; justify-content: center; }

/* ─── Membership Page ────────────────────────────────────── */

.current-plan-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 24px;
}

.current-plan-banner svg { width: 16px; height: 16px; color: var(--teal); }

.membership-intro {
  max-width: 680px;
  margin-bottom: 28px;
}

.membership-intro p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 10px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 28px;
}

.billing-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.billing-btn.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.discount-badge {
  font-size: 11px;
  background: var(--green-light);
  color: var(--green);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  align-items: start;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}

.tier-card:hover { box-shadow: var(--shadow-md); }

.tier-card-featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.tier-card-featured:hover { box-shadow: 0 0 0 1px var(--teal), var(--shadow-md); }

.tier-card-inst { border-color: var(--gold); }

.tier-card-badge {
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tier-card-header { padding: 24px 24px 20px; }

.tier-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.tier-tag-inst { color: var(--gold); }

.tier-card-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 12px;
}

.tier-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-label {
  font-size: 12px;
  color: var(--gray-500);
}

.price-amount {
  font-size: 32px;
  font-weight: 300;
  color: var(--blue);
  font-family: var(--font-serif);
}

.price-contact { font-size: 24px; }

.price-period {
  font-size: 13px;
  color: var(--gray-500);
}

.tier-card-sub {
  font-size: 12px;
  color: var(--gray-400);
}

.tier-features {
  list-style: none;
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-features li {
  font-size: 13px;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
  line-height: 1.45;
}

.tier-features li::before {
  position: absolute;
  left: 0;
  font-size: 14px;
}

.feature-yes::before { content: '✓'; color: var(--green); font-weight: 600; }
.feature-no { color: var(--gray-400); }
.feature-no::before { content: '–'; color: var(--gray-300); }
.feature-yes-note { color: var(--gray-500); font-size: 12px; }
.feature-yes-note::before { content: '·'; color: var(--gray-400); }

.tier-card-footer { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 12px; }

.tier-card-note {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.5;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  font-style: italic;
}

/* ─── FAQ ────────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: 1px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.12s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--teal);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item summary:hover { background: var(--gray-50); }

.faq-item p, .faq-item > p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

.faq-item p a { color: var(--teal); }

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .tiers-grid { grid-template-columns: 1fr; max-width: 480px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }

  .sidebar.open { transform: translateX(0); }

  .portal-main { margin-left: 0; }

  .menu-toggle { display: block; }

  .portal-header { padding: 0 16px; }

  .portal-content { padding: 20px 16px; }

  .upgrade-banner-inner { flex-direction: column; align-items: flex-start; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .tiers-grid { max-width: 100%; }
}

/* ─── Sidebar overlay on mobile ──────────────────────────── */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}

.sidebar-overlay.active { display: block; }
