@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap");

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

:root {
  --sidebar-bg: #3d0628;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(245, 200, 0, 0.12);
  --sidebar-w: 230px;
  --brand: #5c0a3c;
  --accent: #f5c800;
  --text: #18151a;
  --text-secondary: #7a7282;
  --text-muted: #b0a8b5;
  --border: #ececec;
  --border-strong: #d8d3de;
  --bg: #ffffff;
  --green: #12a06a;
  --green-light: #e6f7f1;
  --red: #e0341e;
  --red-light: #fdecea;
  --blue: #2563eb;
  --teal: #0d9488;
  --orange: #ea580c;
  --purple: #7c3aed;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --transition: 0.15s ease;
  --color-accent: var(--accent);
  --surface-2: #f7f7f8;
}

/* Use min-height, not height: 100% — otherwise the shell stays viewport-tall while
   main content grows, so the white .main background ends and content appears to
   “spill” over the purple page background. */
html {
  min-height: 100%;
  background: #2a1a30;
}

body {
  font-family: var(--font);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
  background: #2a1a30;
}

a {
  color: inherit;
}

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  padding-bottom: 20px;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 22px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.logo-text span {
  color: var(--accent);
}

.sidebar-nav {
  flex: 1;
  padding: 4px 10px;
  overflow-y: auto;
}

.nav-group {
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  user-select: none;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: rgba(255, 255, 255, 0.85);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 16px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

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

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

.nav-sub {
  padding-left: 14px;
  margin-top: 1px;
}

.nav-sub .nav-item {
  font-size: 12.5px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.38);
}

.nav-sub .nav-item:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-sub .nav-item.active {
  color: var(--accent);
}

.nav-expand {
  margin-left: auto;
  transition: transform var(--transition);
  opacity: 0.4;
}

.nav-item.expanded .nav-expand {
  transform: rotate(180deg);
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 10px 5px;
}

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

.sidebar-user:hover {
  background: var(--sidebar-hover);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e07800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.5px;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.logout-btn:hover {
  color: #ff8a8a;
  background: rgba(255, 107, 107, 0.08);
}

/* ── Main ────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.member-body {
  padding: 8px 36px 48px;
  flex: 1 1 auto;
}

/* Page header */
.page-header {
  padding: 28px 36px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}

.page-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.header-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.icon-btn:hover {
  border-color: #b0a0bc;
  color: var(--text);
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0 0;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  cursor: default;
  transition: border-color var(--transition);
  user-select: none;
}

.filter-pill svg {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
}

.filter-divider {
  width: 18px;
  height: 1px;
  background: var(--border-strong);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.stat-cell {
  padding: 22px 0 18px;
  border-right: 1px solid var(--border);
  padding-right: 28px;
  padding-left: 4px;
}

.stat-cell:first-child {
  padding-left: 0;
}

.stat-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-cell:not(:first-child) {
  padding-left: 28px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1;
}

.stat-currency {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.trend-up {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-weight: 600;
}

.trend-down {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--red);
  font-weight: 600;
}

.trend-up svg,
.trend-down svg {
  width: 10px;
  height: 10px;
}

.stat-plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Content block (dashboard lower + generic pages) */
.content {
  padding: 32px 0 0;
  flex: 1;
}

/* Section titles */
.section-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 20px;
}

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

.section-header .section-title {
  margin-bottom: 0;
}

.section-link {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

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

/* Generic two-column panels (workspace, etc.) */
.member-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .member-two-col {
    grid-template-columns: 1fr;
  }
}

/* Dashboard: donut + breakdown */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
  margin-bottom: 40px;
}

.col-left {
  padding-right: 40px;
  border-right: 1px solid var(--border);
}

.col-right {
  padding-left: 40px;
}

.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 20px;
}

.donut-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.donut-container canvas {
  width: 200px;
  height: 200px;
}

.donut-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-label-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.donut-label-val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-top: 1px;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
}

.sub-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border-strong);
}

.sub-table th:not(:first-child) {
  padding-left: 16px;
}

.sub-table td {
  padding: 13px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.sub-table td:not(:first-child) {
  padding-left: 16px;
}

.sub-table tr:last-child td {
  border-bottom: none;
}

.sub-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.sub-type {
  display: flex;
  align-items: center;
}

.sub-pct {
  color: var(--text-secondary);
}

/* Quick actions row */
.actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 40px;
}

.action-cell {
  padding: 18px 0;
  border-right: 1px solid var(--border);
  padding-right: 24px;
  cursor: pointer;
  transition: opacity var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.action-cell:first-child {
  padding-left: 0;
}

.action-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.action-cell:not(:first-child) {
  padding-left: 24px;
}

.action-cell:hover {
  opacity: 0.65;
}

.action-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 10px;
}

.action-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.action-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Activity */
.activity-section {
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
}

.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.activity-dot.green {
  background: var(--green);
}

.activity-dot.blue {
  background: var(--blue);
}

.activity-dot.orange {
  background: var(--orange);
}

.activity-body {
  flex: 1;
}

.activity-title {
  font-size: 13px;
  font-weight: 500;
}

.activity-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.activity-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
}

.badge-red {
  background: var(--red-light);
  color: var(--red);
}

.activity-empty {
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Announcements */
.announce-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.announce-row:last-child {
  border-bottom: none;
}

.announce-row:hover {
  opacity: 0.7;
}

.announce-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.announce-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.announce-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

.bottom-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
}

.bottom-col-left {
  padding-right: 40px;
  border-right: 1px solid var(--border);
}

.bottom-col-right {
  padding-left: 40px;
}

/* ── Shared member forms / tables ───────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.page-lead {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 640px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tabs a {
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tabs a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.tabs a.is-active {
  background: rgba(92, 10, 60, 0.06);
  color: var(--brand);
  border-color: rgba(92, 10, 60, 0.15);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  max-width: 560px;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  font-family: var(--font);
  font-size: 14px;
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary,
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: #b0a0bc;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-secondary);
  display: inline-block;
}

.badge-warn {
  background: #fff4e6;
  color: var(--orange);
}

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.45;
}

.alert-success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(18, 160, 106, 0.25);
}

.alert-error {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(224, 52, 30, 0.2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  margin-bottom: 24px;
  background: #fff;
}

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data th,
.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface-2);
}

.data tbody tr:last-child td {
  border-bottom: none;
}

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  color: var(--brand);
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
}

.back-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

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

.stepper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

ul.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

ul.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

ul.plain-list li:last-child {
  border-bottom: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  animation: fadeUp 0.3s ease both;
}

.anim-1 {
  animation-delay: 0.04s;
}

.anim-2 {
  animation-delay: 0.08s;
}

.anim-3 {
  animation-delay: 0.13s;
}

.anim-4 {
  animation-delay: 0.18s;
}

@media (max-width: 1100px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col .col-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .two-col .col-right {
    padding-left: 0;
  }

  .bottom-two {
    grid-template-columns: 1fr;
  }

  .bottom-col-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .bottom-col-right {
    padding-left: 0;
  }

  .actions-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .member-body,
  .page-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Admin auth (login / change password) — centred card on shell background */
body.admin-auth-page {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.admin-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border-radius: 16px;
  padding: 28px 26px 26px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* ── Portal burgundy theme (workspace, meeting rooms, billing, services) ─ */
.main--portal-theme {
  background: #faf9f7;
}

.main--portal-theme .portal-topbar {
  padding: 0 32px;
  min-height: 60px;
  align-items: center;
  border-bottom: 1px solid #e0d8d0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.main--portal-theme .portal-page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.main--portal-theme .page-sub {
  font-size: 11px;
  color: #9c7d8c;
  margin-top: 1px;
}

.main--portal-theme .portal-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #610536;
  color: #fff !important;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  margin-left: 2px;
}

.main--portal-theme .portal-topbar-cta:hover {
  background: #4a0328;
  color: #fff !important;
}

.member-body--portal-theme {
  padding: 0 32px 48px;
}

@media (max-width: 700px) {
  .main--portal-theme .portal-topbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .member-body--portal-theme {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.workspace-page {
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 14px;
  color: #1a0a12;
  max-width: 1100px;
  padding-top: 28px;
}

.ws-flash-stack {
  margin-bottom: 20px;
}

.ws-flash-stack .ws-flash {
  margin-bottom: 10px;
}

.ws-flash-stack .ws-flash:last-child {
  margin-bottom: 0;
}

/* Active membership hero — My workspace */
.ws-active-membership {
  border-radius: 14px;
  margin-bottom: 28px;
  background: linear-gradient(145deg, #faf7f5 0%, #fff 45%, #f6f0ec 100%);
  border: 1px solid #e8dfd8;
  box-shadow: 0 12px 40px rgba(97, 5, 54, 0.07);
  overflow: hidden;
  position: relative;
}

.ws-active-membership::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #610536 0%, #a30b5c 100%);
  border-radius: 14px 0 0 14px;
}

.ws-am-inner {
  padding: 22px 22px 22px 26px;
  position: relative;
  z-index: 1;
}

.ws-am-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.ws-am-kicker {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9c7d8c;
  margin: 0;
}

.ws-am-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0;
  line-height: 1.2;
}

.ws-am-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(97, 5, 54, 0.08);
  color: #610536;
}

.ws-am-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #5c4455;
  margin: 0 0 16px;
  max-width: 720px;
}

.ws-am-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 18px;
  margin-bottom: 18px;
}

.ws-am-meta-item--wide {
  grid-column: 1 / -1;
}

.ws-am-meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c7d8c;
  margin-bottom: 2px;
}

.ws-am-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: #1a0a12;
}

.ws-am-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.ws-am-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ebe3dd;
  border-radius: 10px;
}

.ws-am-benefit--compact {
  padding: 12px 16px;
}

.ws-am-benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26, 122, 74, 0.1);
  color: #1a7a4a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-am-benefit-body {
  flex: 1;
  min-width: 0;
}

.ws-am-benefit-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a0a12;
  margin-bottom: 4px;
}

.ws-am-benefit-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #5c4455;
  margin: 0 0 8px;
}

.ws-am-progress {
  height: 6px;
  border-radius: 999px;
  background: #ece8e4;
  overflow: hidden;
}

.ws-am-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a7a4a, #2ea06a);
  transition: width 0.25s ease;
}

.ws-am-linked-plan {
  font-size: 12px;
  color: #7a6670;
  margin: 0;
}

.ws-am-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.ws-am-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 9px;
  background: #610536;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}

.ws-am-cta:hover {
  background: #4a0328;
  color: #fff !important;
}

.ws-am-assignment {
  font-size: 12.5px;
  color: #5c4455;
}

@media (max-width: 560px) {
  .ws-am-inner {
    padding: 18px 16px 18px 20px;
  }

  .ws-am-title {
    font-size: 19px;
  }
}

.ws-strip {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.55;
}

.ws-strip--credits {
  background: #e8f5ee;
  border: 1px solid rgba(26, 122, 74, 0.2);
  color: #1a0a12;
}

.ws-strip-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #610536;
  text-decoration: none;
}

.ws-strip-link:hover {
  text-decoration: underline;
}

.ws-banner-promo {
  background: linear-gradient(135deg, #610536 0%, #7a0642 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.ws-banner-promo::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 246, 5, 0.07);
  border-radius: 50%;
}

.ws-banner-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 246, 5, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  z-index: 1;
}

.ws-banner-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.ws-banner-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff605;
  margin-bottom: 4px;
}

.ws-banner-text {
  font-size: 12.5px;
  color: rgba(255, 232, 238, 0.85);
  line-height: 1.5;
}

.ws-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.ws-banner-link {
  font-size: 12px;
  font-weight: 600;
  color: #fff605;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 246, 5, 0.3);
  padding-bottom: 1px;
}

.ws-banner-link:hover {
  border-color: #fff605;
}

.ws-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.ws-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a0a12;
}

.ws-section-sub {
  font-size: 12px;
  color: #9c7d8c;
}

.ws-category-block {
  margin-bottom: 8px;
}

.ws-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ws-category-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a0a12;
}

.ws-category-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #ede9e4;
  color: #9c7d8c;
  padding: 2px 8px;
  border-radius: 20px;
}

.ws-category-desc {
  font-size: 13px;
  color: #5c4455;
  margin-bottom: 14px;
  line-height: 1.6;
  max-width: 640px;
}

.ws-coming-soon-note {
  font-size: 12px;
  color: #9c7d8c;
  font-style: italic;
  margin-top: 4px;
}

.ws-divider {
  height: 1px;
  background: #e0d8d0;
  margin: 4px 0 28px;
}

.ws-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.ws-plan-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.ws-plan-card:hover {
  border-color: #610536;
  box-shadow: 0 4px 20px rgba(97, 5, 54, 0.08);
  transform: translateY(-1px);
}

.ws-plan-card.featured {
  border-color: #610536;
  background: linear-gradient(160deg, #fdf8fb 0%, #fff 60%);
}

.ws-plan-card.featured::before {
  content: "Popular";
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff605;
  color: #380220;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 1;
}

.ws-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ws-plan-name {
  font-weight: 600;
  font-size: 15px;
  color: #1a0a12;
  line-height: 1.3;
  padding-right: 72px;
}

.ws-plan-card.featured .ws-plan-name {
  padding-right: 88px;
}

.ws-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #9c7d8c;
  background: #f5f3f0;
  border: 1px solid #ede9e4;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ws-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a7a4a;
}

.ws-plan-desc {
  font-size: 12.5px;
  color: #5c4455;
  line-height: 1.6;
}

.ws-plan-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ws-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #5c4455;
  line-height: 1.5;
}

.ws-feature-check {
  width: 14px;
  height: 14px;
  background: #e8f5ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ws-feature-check svg {
  width: 8px;
  height: 8px;
}

.ws-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(97, 5, 54, 0.06);
  border: 1px solid rgba(97, 5, 54, 0.12);
  color: #610536;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.ws-plan-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #ede9e4;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.ws-plan-price {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ws-price-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #610536;
  line-height: 1.1;
}

.ws-price-period {
  font-size: 10px;
  color: #9c7d8c;
  margin-top: 1px;
}

.ws-plan-note {
  font-size: 10.5px;
  color: #9c7d8c;
  font-style: italic;
  margin-top: 2px;
  line-height: 1.4;
}

.ws-plan-actions {
  flex-shrink: 0;
}

.ws-plan-form {
  display: inline;
}

.ws-btn-book {
  background: #610536;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ws-btn-book:hover {
  background: #4a0328;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(97, 5, 54, 0.25);
}

.ws-btn-book.secondary {
  background: transparent;
  color: #610536;
  border: 1.5px solid #610536;
}

.ws-btn-book.secondary:hover {
  background: #610536;
  color: #fff;
}

.ws-waitlist-status {
  font-size: 12px;
  color: #5c4455;
  margin: 0;
  max-width: 200px;
  text-align: right;
}

.ws-panel {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.ws-panel-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1a0a12;
}

.ws-panel-title--spaced {
  margin-top: 1.25rem;
}

.ws-panel-line {
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.5;
  color: #1a0a12;
}

.ws-panel-desc {
  font-size: 13px;
  color: #5c4455;
  line-height: 1.55;
  margin: 0 0 12px;
}

.ws-panel-muted {
  font-size: 13px;
  color: #9c7d8c;
  margin: 0 0 12px;
}

.ws-inline-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: #ede9e4;
  color: #5c4455;
  vertical-align: middle;
}

.ws-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5c4455;
}

.ws-plain-list li {
  margin-bottom: 6px;
}

.ws-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .ws-two-col {
    grid-template-columns: 1fr;
  }

  .ws-plan-grid {
    grid-template-columns: 1fr;
  }
}

.ws-legacy-note {
  font-size: 12.5px;
  color: #9c7d8c;
  margin: 0 0 14px;
  line-height: 1.5;
}

.ws-legacy-note a {
  color: #610536;
  font-weight: 600;
}

.workspace-page .form-row label {
  font-size: 12px;
  color: #5c4455;
}

.workspace-page .form-row input,
.workspace-page .form-row select {
  border-radius: 8px;
  border: 1px solid #e0d8d0;
}

/* ── Workspace: Book & invoice confirmation modal ─────────── */
.ws-modal[hidden] {
  display: none !important;
}

.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
}

.ws-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 18, 0.45);
  backdrop-filter: blur(2px);
}

.ws-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0d8d0;
  box-shadow: 0 24px 60px rgba(56, 2, 32, 0.22);
  padding: 26px 26px 22px;
  animation: wsModalIn 0.22s ease both;
}

@keyframes wsModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ws-modal-accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #610536 0%, #7a0642 55%, #fff605 100%);
}

.ws-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #e0d8d0;
  border-radius: 8px;
  background: #faf9f7;
  color: #5c4455;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.ws-modal-close:hover {
  background: #f5f3f0;
  border-color: #d0c8c0;
}

.ws-modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0 40px 10px 0;
  line-height: 1.25;
}

.ws-modal-lead {
  font-size: 13.5px;
  color: #5c4455;
  line-height: 1.55;
  margin: 0 0 16px;
}

.ws-modal-summary {
  background: linear-gradient(160deg, #fdf8fb 0%, #faf9f7 100%);
  border: 1px solid #ede9e4;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ws-modal-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(224, 216, 208, 0.7);
}

.ws-modal-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ws-modal-summary-row:first-child {
  padding-top: 0;
}

.ws-modal-summary-label {
  color: #9c7d8c;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.ws-modal-summary-value {
  color: #1a0a12;
  font-weight: 500;
  text-align: right;
  max-width: 68%;
}

.ws-modal-summary-row--price {
  align-items: flex-end;
}

.ws-modal-summary-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.ws-modal-summary-price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #610536;
  line-height: 1.1;
}

.ws-modal-summary-period {
  font-size: 11px;
  color: #9c7d8c;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-weight: 500;
}

.ws-modal-note {
  font-size: 12px;
  color: #9c7d8c;
  line-height: 1.5;
  margin: 0 0 18px;
}

.ws-modal-note a {
  color: #610536;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(97, 5, 54, 0.25);
}

.ws-modal-note a:hover {
  border-bottom-color: #610536;
}

.ws-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ws-modal-actions .ws-btn-book {
  min-height: 42px;
}

/* ── Shared portal content pages (DM Sans + Playfair) ───────── */
.portal-page {
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 14px;
  color: #1a0a12;
  max-width: 1100px;
  padding-top: 8px;
}

.portal-section-head {
  margin: 28px 0 16px;
}

.portal-section-head--first {
  margin-top: 0;
}

.portal-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0;
}

.portal-section-tagline {
  font-size: 13px;
  color: #5c4455;
  margin: 6px 0 0;
  line-height: 1.5;
}

.portal-flash {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.5;
}

.portal-flash--success {
  background: #e8f5ee;
  border: 1px solid rgba(26, 122, 74, 0.25);
  color: #1a0a12;
}

.portal-flash--error {
  background: #fdecea;
  border: 1px solid rgba(176, 0, 32, 0.25);
  color: #1a0a12;
}

.portal-inline-link {
  color: #610536;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(97, 5, 54, 0.25);
}

.portal-inline-link:hover {
  border-bottom-color: #610536;
}

.portal-panel {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.portal-panel--empty {
  text-align: center;
  padding: 36px 24px;
}

.portal-panel--quote {
  background: linear-gradient(160deg, #fdf8fb 0%, #fff 70%);
}

.portal-panel-muted {
  font-size: 13px;
  color: #9c7d8c;
  margin: 0;
  line-height: 1.55;
}

.portal-panel-foot {
  margin: 12px 0 0;
}

.portal-panel--invoice.is-overdue {
  border: 2px solid #b00020;
}

.portal-panel--invoice.is-focused {
  box-shadow: 0 0 0 3px rgba(97, 5, 54, 0.35);
}

.portal-invoice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.portal-invoice-num {
  font-size: 15px;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #ede9e4;
  color: #5c4455;
}

.portal-pill--warn {
  background: rgba(234, 88, 12, 0.12);
  color: #9a3412;
}

.portal-invoice-amount {
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 500;
}

.portal-invoice-meta {
  font-size: 13px;
  color: #5c4455;
  margin: 0 0 8px;
  line-height: 1.5;
}

/* ── Payments / billing page ───────────────────────────────── */
.pay-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pay-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .pay-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .pay-summary-strip {
    grid-template-columns: 1fr;
  }
}

.pay-summary-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pay-summary-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-summary-icon--red {
  background: #fef2f2;
  color: #b91c1c;
}

.pay-summary-icon--amber {
  background: #fef3e2;
  color: #92600a;
}

.pay-summary-icon--green {
  background: #e8f5ee;
  color: #1a7a4a;
}

.pay-summary-icon--blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.pay-summary-label {
  font-size: 11px;
  color: #9c7d8c;
  margin-bottom: 2px;
}

.pay-summary-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #1a0a12;
  line-height: 1.1;
}

.pay-summary-sub {
  font-size: 10px;
  color: #9c7d8c;
  margin-top: 1px;
}

.pay-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a0a12;
  display: inline;
  margin: 0;
}

.pay-section-count {
  font-size: 11px;
  color: #9c7d8c;
  background: #ede9e4;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.pay-empty-invoices {
  margin-bottom: 28px;
}

.pay-invoices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pay-invoice-row {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pay-invoice-row:hover {
  border-color: #610536;
  box-shadow: 0 3px 16px rgba(97, 5, 54, 0.07);
}

.pay-invoice-row--focused {
  box-shadow: 0 0 0 3px rgba(97, 5, 54, 0.35);
}

.pay-invoice-row-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

@media (max-width: 640px) {
  .pay-invoice-row-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .pay-inv-actions {
    width: 100%;
  }

  .pay-btn-pay {
    width: 100%;
    justify-content: center;
  }
}

.pay-inv-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pay-inv-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-inv-number {
  font-size: 13px;
  font-weight: 600;
  color: #1a0a12;
  letter-spacing: 0.01em;
}

.pay-inv-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
}

.pay-inv-status--sent {
  background: #eff6ff;
  color: #1d4ed8;
}

.pay-inv-status--overdue {
  background: #fef2f2;
  color: #b91c1c;
}

.pay-inv-status--pending {
  background: #fef3e2;
  color: #92600a;
}

.pay-inv-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pay-inv-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #610536;
}

.pay-inv-due {
  font-size: 12px;
  color: #9c7d8c;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pay-inv-due--soon {
  color: #92600a;
  font-weight: 500;
}

.pay-inv-due--past {
  color: #b91c1c;
  font-weight: 500;
}

.pay-inv-for {
  font-size: 12px;
  color: #5c4455;
}

.pay-inv-print-wrap {
  font-size: 12px;
}

.pay-inv-print-link {
  color: #610536;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(97, 5, 54, 0.25);
}

.pay-inv-print-link:hover {
  border-bottom-color: #610536;
}

.pay-inv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pay-btn-pay {
  background: #610536;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.pay-btn-pay:hover {
  background: #4a0328;
  box-shadow: 0 3px 10px rgba(97, 5, 54, 0.25);
}

.pay-awaiting-note {
  font-size: 12px;
  color: #92600a;
  font-weight: 500;
}

.pay-transfer-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5c4455;
  cursor: pointer;
  padding: 0 20px 14px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.15s;
}

.pay-transfer-toggle:hover {
  color: #610536;
}

.pay-transfer-toggle svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.pay-transfer-toggle.is-open svg {
  transform: rotate(90deg);
}

.pay-transfer-panel {
  display: none;
  background: #f5f3f0;
  border-top: 1px solid #ede9e4;
  padding: 16px 20px;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.pay-transfer-panel:not([hidden]) {
  display: grid;
}

@media (max-width: 720px) {
  .pay-transfer-panel:not([hidden]) {
    grid-template-columns: 1fr;
  }
}

.pay-transfer-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9c7d8c;
  margin-bottom: 8px;
}

.pay-transfer-fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pay-transfer-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  gap: 10px;
}

.pay-tf-key {
  color: #9c7d8c;
}

.pay-tf-val {
  font-weight: 600;
  color: #1a0a12;
  text-align: right;
  word-break: break-word;
}

.pay-transfer-ref {
  background: rgba(97, 5, 54, 0.05);
  border: 1px solid rgba(97, 5, 54, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #5c4455;
  line-height: 1.6;
}

.pay-ref-code {
  font-weight: 700;
  color: #610536;
  background: rgba(97, 5, 54, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.pay-form-hint {
  font-size: 12px;
  color: #9c7d8c;
  margin: 10px 0 6px;
}

.pay-form-file input {
  font-size: 12px;
}

.pay-upload-proof-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #610536;
  border: 1.5px solid #610536;
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-top: 8px;
  background: none;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
}

.pay-upload-proof-btn:hover {
  background: #610536;
  color: #fff;
}

.pay-bank-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}

.pay-bank-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid #ede9e4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-bank-card-icon {
  width: 34px;
  height: 34px;
  background: rgba(97, 5, 54, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #610536;
  flex-shrink: 0;
}

.pay-bank-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0;
}

.pay-bank-card-body {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .pay-bank-card-body {
    grid-template-columns: 1fr;
  }
}

.pay-bank-detail-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9c7d8c;
  margin-bottom: 10px;
}

.pay-bank-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-bank-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #f5f3f0;
  border-radius: 8px;
}

.pay-bdr-key {
  font-size: 12px;
  color: #9c7d8c;
}

.pay-bdr-val {
  font-size: 13px;
  font-weight: 600;
  color: #1a0a12;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.pay-bdr-text {
  word-break: break-word;
}

.pay-copy-btn {
  width: 22px;
  height: 22px;
  border: none;
  background: #ede9e4;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9c7d8c;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.pay-copy-btn:hover {
  background: #610536;
  color: #fff;
}

.pay-copy-btn.pay-copy-done {
  background: #1a7a4a;
  color: #fff;
}

.pay-bank-instructions {
  background: rgba(97, 5, 54, 0.04);
  border: 1px solid rgba(97, 5, 54, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: #5c4455;
  line-height: 1.7;
}

.pay-bank-instructions ol {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pay-history-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  overflow: hidden;
}

.pay-history-header {
  padding: 16px 22px;
  border-bottom: 1px solid #ede9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pay-history-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0;
}

.pay-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e0d8d0;
  background: #fff;
  color: #5c4455;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
}

.pay-filter-chip.is-active {
  background: #610536;
  color: #fff;
  border-color: #610536;
}

.pay-filter-chip:hover:not(.is-active) {
  border-color: #610536;
  color: #610536;
}

.pay-history-table-wrap {
  overflow-x: auto;
}

.pay-history-table {
  width: 100%;
  border-collapse: collapse;
}

.pay-history-table th {
  text-align: left;
  padding: 10px 22px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9c7d8c;
  border-bottom: 1px solid #ede9e4;
  background: #faf9f7;
}

.pay-history-table td {
  padding: 13px 22px;
  font-size: 13px;
  color: #5c4455;
  border-bottom: 1px solid #ede9e4;
}

.pay-history-table tr:last-child td {
  border-bottom: none;
}

.pay-history-table tbody tr:hover td {
  background: #faf9f7;
}

.pay-td-inv {
  font-weight: 500;
  color: #1a0a12;
  font-size: 12px;
}

.pay-td-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a0a12;
}

.pay-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
}

.pay-method-pill--paystack {
  background: #eff6ff;
  color: #1d4ed8;
}

.pay-method-pill--manual,
.pay-method-pill--bank {
  background: #ede9e4;
  color: #5c4455;
}

.pay-sp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: capitalize;
}

.pay-sp--completed {
  background: #e8f5ee;
  color: #1a7a4a;
}

.pay-sp--pending {
  background: #fef3e2;
  color: #92600a;
}

.pay-sp--failed {
  background: #fef2f2;
  color: #b91c1c;
}

.pay-td-receipt {
  color: #9c7d8c;
  font-size: 12px;
}

.pay-receipt-link {
  font-size: 12px;
  font-weight: 600;
  color: #610536;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-history-empty {
  padding: 24px 22px;
  margin: 0;
  font-size: 13px;
  color: #9c7d8c;
}

/* ── My room bookings ─────────────────────────────────────────── */
.portal-page--mrb {
  padding-top: 8px;
}

.mrb-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .mrb-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .mrb-summary-strip {
    grid-template-columns: 1fr;
  }
}

.mrb-stat-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mrb-stat-card--alert {
  border-color: rgba(97, 5, 54, 0.2);
}

.mrb-stat-card--alert .mrb-stat-value {
  color: #610536;
}

.mrb-stat-label {
  font-size: 11px;
  color: #9c7d8c;
}

.mrb-stat-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a0a12;
  line-height: 1.1;
}

.mrb-stat-sub {
  font-size: 11px;
  color: #9c7d8c;
}

.mrb-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.mrb-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mrb-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid #e0d8d0;
  background: #fff;
  color: #5c4455;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
}

.mrb-chip:hover {
  border-color: #610536;
  color: #610536;
}

.mrb-chip.is-active {
  background: #610536;
  color: #fff;
  border-color: #610536;
}

.mrb-sort-select {
  border: 1px solid #e0d8d0;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 12px;
  color: #5c4455;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.mrb-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mrb-booking-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.mrb-booking-card:hover {
  box-shadow: 0 4px 20px rgba(97, 5, 54, 0.07);
}

.mrb-booking-card--pending {
  border-left: 3px solid #92600a;
}

.mrb-booking-card--confirmed {
  border-left: 3px solid #1a7a4a;
}

.mrb-booking-card--cancelled {
  border-left: 3px solid #e0d8d0;
  opacity: 0.92;
}

.mrb-booking-inner {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
}

@media (max-width: 960px) {
  .mrb-booking-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
  }

  .mrb-room-icon {
    flex-shrink: 0;
  }

  .mrb-booking-info {
    flex: 1 1 200px;
    min-width: 0;
  }

  .mrb-booking-status {
    margin-left: auto;
  }

  .mrb-booking-right {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .mrb-room-icon {
    display: none;
  }

  .mrb-booking-status {
    margin-left: 0;
    width: 100%;
  }

  .mrb-booking-right {
    flex-direction: column;
    align-items: stretch;
  }

  .mrb-booking-actions {
    justify-content: flex-start;
  }
}

.mrb-room-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mrb-room-icon--pending {
  background: #fef3e2;
  color: #92600a;
}

.mrb-room-icon--confirmed {
  background: #e8f5ee;
  color: #1a7a4a;
}

.mrb-room-icon--cancelled {
  background: #f5f3f0;
  color: #9c7d8c;
}

.mrb-booking-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.mrb-booking-room {
  font-size: 14px;
  font-weight: 600;
  color: #1a0a12;
}

.mrb-booking-time {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #5c4455;
}

.mrb-time-sep {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9c7d8c;
  font-size: 11px;
}

.mrb-booking-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mrb-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9c7d8c;
  background: #f5f3f0;
  padding: 3px 8px;
  border-radius: 6px;
}

.mrb-meta-tag--ref {
  color: #92600a;
  background: #fef3e2;
}

.mrb-booking-status {
  display: flex;
  justify-content: flex-end;
}

.mrb-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.mrb-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.mrb-status-badge--pending {
  background: #fef3e2;
  color: #92600a;
  border: 1px solid rgba(146, 96, 10, 0.18);
}

.mrb-status-badge--confirmed {
  background: #e8f5ee;
  color: #1a7a4a;
  border: 1px solid rgba(26, 122, 74, 0.18);
}

.mrb-status-badge--cancelled {
  background: #f5f3f0;
  color: #9c7d8c;
  border: 1px solid #e0d8d0;
}

.mrb-booking-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mrb-booking-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a0a12;
}

.mrb-booking-amount.is-muted {
  color: #9c7d8c;
}

.mrb-booking-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mrb-cancel-form {
  display: inline;
  margin: 0;
}

.mrb-btn-action {
  padding: 7px 14px;
  border-radius: 7px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  background: none;
}

.mrb-btn-pay {
  background: #610536;
  color: #fff !important;
}

.mrb-btn-pay:hover {
  background: #4a0328;
  box-shadow: 0 3px 10px rgba(97, 5, 54, 0.25);
  color: #fff !important;
}

.mrb-btn-outline {
  background: transparent;
  color: #5c4455 !important;
  border: 1px solid #e0d8d0;
}

.mrb-btn-outline:hover {
  border-color: #610536;
  color: #610536 !important;
}

.mrb-btn-danger {
  background: transparent;
  color: #b91c1c !important;
  border: 1px solid rgba(185, 28, 28, 0.18);
}

.mrb-btn-danger:hover {
  background: #fef2f2;
}

.mrb-countdown-bar {
  background: #fef3e2;
  border-top: 1px solid rgba(146, 96, 10, 0.18);
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #92600a;
}

.mrb-countdown-time {
  font-weight: 700;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
}

.mrb-empty-state {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 24px;
}

.mrb-empty-icon {
  width: 52px;
  height: 52px;
  background: #ede9e4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9c7d8c;
}

.mrb-empty-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  color: #1a0a12;
  font-weight: 600;
}

.mrb-empty-sub {
  font-size: 13px;
  color: #9c7d8c;
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
}

.mrb-empty-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 8px;
  background: #610536;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mrb-empty-cta:hover {
  background: #4a0328;
  color: #fff !important;
}

.mrb-bottom-links {
  padding-top: 8px;
}

.portal-bank-line {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.portal-quote-line {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1a0a12;
}

.portal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #610536;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  margin-top: 4px;
}

.portal-btn-primary:hover {
  background: #4a0328;
  box-shadow: 0 4px 16px rgba(97, 5, 54, 0.28);
}

.portal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #610536 !important;
  border: 1.5px solid #610536;
  border-radius: 10px;
  padding: 9px 18px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.portal-btn-secondary:hover {
  background: #610536;
  color: #fff !important;
}

.portal-details {
  margin-top: 14px;
}

.portal-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #610536;
}

.portal-manual-form {
  margin-top: 12px;
}

.portal-form-hint {
  font-size: 13px;
  color: #5c4455;
  margin: 0 0 8px;
}

.portal-table-wrap {
  overflow-x: auto;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  background: #fff;
}

.portal-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.portal-data-table th,
.portal-data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ede9e4;
}

.portal-data-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9c7d8c;
  background: #faf9f7;
}

.portal-data-table tr:last-child td {
  border-bottom: none;
}

.portal-data-table tbody tr:hover td {
  background: #fdf8fb;
}

/* Services */
.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.portal-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid #e0d8d0;
  background: #fff;
  color: #5c4455;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.portal-tab:hover {
  border-color: #610536;
  color: #610536;
}

.portal-tab.is-active {
  background: #610536;
  border-color: #610536;
  color: #fff !important;
}

/* Services page — tab row + request catalogue (design template) */
.portal-page--services .svc-tab-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.portal-page--services .svc-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid #e0d8d0;
  background: #fff;
  color: #5c4455;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.portal-page--services .svc-tab:hover {
  border-color: #610536;
  color: #610536;
}

.portal-page--services .svc-tab.is-active {
  background: #610536;
  border-color: #610536;
  color: #fff;
}

.portal-page--services .svc-catalog-empty {
  max-width: 520px;
}

.portal-page--services .svc-catalog-empty a {
  font-weight: 600;
}

.portal-page--services .svc-category-section {
  margin-bottom: 36px;
}

.portal-page--services .svc-cat-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.portal-page--services .svc-cat-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0;
}

.portal-page--services .svc-cat-count {
  font-size: 11px;
  color: #9c7d8c;
  background: #ede9e4;
  padding: 2px 7px;
  border-radius: 10px;
}

.portal-page--services .svc-cat-tagline {
  font-size: 12.5px;
  color: #5c4455;
  margin: 0 0 14px;
  line-height: 1.5;
}

.portal-page--services .svc-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.portal-page--services .svc-service-grid > * {
  min-width: 0;
}

.portal-page--services .svc-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  position: relative;
  overflow: hidden;
}

.portal-page--services .svc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #610536;
  opacity: 0;
  transition: opacity 0.15s;
}

.portal-page--services .svc-card:hover {
  border-color: #610536;
  box-shadow: 0 4px 20px rgba(97, 5, 54, 0.08);
  transform: translateY(-1px);
}

.portal-page--services .svc-card:hover::before {
  opacity: 1;
}

.portal-page--services .svc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.portal-page--services .svc-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(97, 5, 54, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #610536;
}

.portal-page--services .svc-price-badge {
  font-size: 10px;
  font-weight: 600;
  color: #9c7d8c;
  background: #f5f3f0;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid #ede9e4;
  white-space: nowrap;
  flex-shrink: 0;
}

.portal-page--services .svc-price-badge--quote {
  color: #7a0642;
  background: rgba(97, 5, 54, 0.05);
  border-color: rgba(97, 5, 54, 0.12);
}

.portal-page--services .svc-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a0a12;
  line-height: 1.3;
  margin: 0;
}

.portal-page--services .svc-card-desc {
  font-size: 12px;
  color: #5c4455;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.portal-page--services .svc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #ede9e4;
  margin-top: auto;
}

.portal-page--services .svc-card-tag {
  font-size: 10px;
  font-weight: 500;
  color: #9c7d8c;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.portal-page--services .svc-card-tag svg {
  flex-shrink: 0;
}

.portal-page--services .svc-card-tag-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-page--services .svc-btn-request {
  background: #610536;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.portal-page--services .svc-btn-request:hover {
  background: #4a0328;
  box-shadow: 0 3px 10px rgba(97, 5, 54, 0.25);
  color: #fff;
}

.portal-page--services .svc-section-divider {
  height: 1px;
  background: #e0d8d0;
  margin-bottom: 28px;
}

.portal-service-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 14px;
}

.portal-service-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.portal-service-link:hover .portal-service-card {
  border-color: #610536;
  box-shadow: 0 6px 24px rgba(97, 5, 54, 0.08);
  transform: translateY(-1px);
}

.portal-service-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.portal-service-name {
  font-size: 15px;
  font-weight: 600;
}

.portal-service-meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: #5c4455;
}

.portal-request-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.portal-request-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.portal-request-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a0a12;
}

.portal-price-tag {
  font-size: 13px;
  font-weight: 700;
  color: #610536;
  background: rgba(97, 5, 54, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.portal-request-desc {
  font-size: 14px;
  color: #5c4455;
  line-height: 1.55;
  margin: 0 0 16px;
}

.portal-request-hero {
  margin-bottom: 20px;
}

.portal-request-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0 0 6px;
}

.portal-request-hero-sub {
  font-size: 13px;
  color: #5c4455;
  margin: 0;
}

.portal-themed-form .form-row label {
  font-size: 12px;
  color: #5c4455;
  font-weight: 500;
}

.portal-themed-form textarea,
.portal-themed-form input[type="file"] {
  border-radius: 10px;
  border: 1px solid #e0d8d0;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 14px;
}

.portal-themed-form textarea {
  padding: 12px 14px;
  min-height: 100px;
  resize: vertical;
}

/* Meeting rooms listing */
.portal-empty-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  color: #5c4455;
  font-size: 14px;
  line-height: 1.55;
}

.mr-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.mr-filter-label {
  font-size: 12px;
  color: #9c7d8c;
  margin-right: 4px;
}

.mr-filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #e0d8d0;
  background: #fff;
  color: #5c4455;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.mr-filter-chip:hover {
  border-color: #610536;
  color: #610536;
}

.mr-filter-chip.active {
  background: #610536;
  color: #fff;
  border-color: #610536;
}

.mr-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.mr-rooms-grid > * {
  min-width: 0;
}

.mr-room-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mr-room-card:hover {
  border-color: #610536;
  box-shadow: 0 6px 28px rgba(97, 5, 54, 0.1);
  transform: translateY(-2px);
}

.mr-room-band {
  height: 6px;
  width: 100%;
  flex-shrink: 0;
}

.mr-room-band.band-main {
  background: linear-gradient(90deg, #610536, #8b1a52);
}

.mr-room-band.band-conf {
  background: linear-gradient(90deg, #7a0642, #a02060);
}

.mr-room-band.band-training {
  background: linear-gradient(90deg, #4a0328, #6b0040);
}

.mr-room-band.band-video {
  background: linear-gradient(90deg, #380220, #5a003a);
}

.mr-room-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mr-room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mr-room-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(97, 5, 54, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #610536;
}

.mr-room-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.mr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.mr-badge-capacity {
  background: #ede9e4;
  color: #5c4455;
  border: 1px solid #ede9e4;
}

.mr-badge-credits {
  background: rgba(255, 246, 5, 0.15);
  color: #610536;
  border: 1px solid rgba(97, 5, 54, 0.15);
}

.mr-room-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a0a12;
  line-height: 1.3;
  margin: 0;
}

.mr-room-desc {
  font-size: 12.5px;
  color: #5c4455;
  line-height: 1.6;
}

.mr-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.mr-amenity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.25;
  color: #5c4455;
  background: #f5f3f0;
  border-radius: 6px;
  padding: 4px 8px;
  max-width: 100%;
}

/* Inline check SVG must stay small or it grows like a block and crowds/clips labels */
.portal-page--rooms .mr-amenity svg {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  flex-shrink: 0;
  display: block;
}

.mr-pricing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  border-top: 1px solid #ede9e4;
  margin-top: auto;
}

.mr-price-option {
  flex: 1;
  min-width: 0;
}

.mr-price-option--second {
  padding-left: 12px;
}

.mr-price-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9c7d8c;
  margin-bottom: 2px;
}

.mr-price-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #610536;
  line-height: 1.1;
}

.mr-price-period {
  font-size: 11px;
  color: #9c7d8c;
}

.mr-price-divider {
  width: 1px;
  height: 32px;
  background: #ede9e4;
  flex-shrink: 0;
}

.mr-room-cta {
  padding: 0 20px 20px;
}

.mr-btn-book {
  width: 100%;
  background: #610536;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.mr-btn-book:hover {
  background: #4a0328;
  box-shadow: 0 4px 16px rgba(97, 5, 54, 0.3);
}

.mr-btn-book:active {
  transform: scale(0.99);
}

.portal-bottom-links {
  padding: 24px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #e0d8d0;
  margin-top: 28px;
}

.portal-bottom-link {
  font-size: 13px;
  color: #610536;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.portal-bottom-link:hover {
  opacity: 0.75;
}

.portal-bottom-sep {
  color: #9c7d8c;
  font-size: 13px;
}

@media (max-width: 700px) {
  .mr-rooms-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Service request detail (/services/:id) ───────────────── */
.member-body--sr-detail {
  padding-top: 0;
}

.sr-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sr-detail-header .page-header-mini {
  display: none;
}

.sr-breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sr-breadcrumb-back {
  width: 30px;
  height: 30px;
  border: 1px solid #e0d8d0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c4455;
  flex-shrink: 0;
  transition: background 0.15s;
}

.sr-breadcrumb-back:hover {
  background: #f5f3f0;
}

.sr-breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.sr-breadcrumb-link {
  font-size: 13px;
  color: #9c7d8c;
  text-decoration: none;
}

.sr-breadcrumb-link:hover {
  color: #610536;
}

.sr-breadcrumb-sep {
  color: #9c7d8c;
  font-size: 12px;
}

.sr-breadcrumb-current {
  font-size: 13px;
  font-weight: 500;
  color: #1a0a12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42vw;
}

.sr-detail-page {
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 14px;
  color: #1a0a12;
}

.sr-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding: 28px 0 48px;
  max-width: 1200px;
}

.sr-left-col,
.sr-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sr-right-col {
  position: sticky;
  top: 80px;
}

.sr-flash {
  margin-bottom: 0;
}

.sr-service-hero {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  overflow: hidden;
}

.sr-hero-band {
  height: 5px;
  background: linear-gradient(90deg, #610536, #7a0642);
}

.sr-hero-body {
  padding: 22px;
}

.sr-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sr-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.sr-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(97, 5, 54, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #610536;
}

.sr-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a0a12;
  line-height: 1.2;
  margin: 0;
}

.sr-hero-category {
  font-size: 11px;
  font-weight: 500;
  color: #9c7d8c;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.sr-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.sr-status-warn {
  background: #fef3e2;
  color: #92600a;
  border: 1px solid rgba(146, 96, 10, 0.2);
}

.sr-status-success {
  background: #e8f5ee;
  color: #1a7a4a;
  border: 1px solid rgba(26, 122, 74, 0.2);
}

.sr-status-default {
  background: #ede9e4;
  color: #5c4455;
  border: 1px solid #e0d8d0;
}

.sr-access-notice {
  background: rgba(97, 5, 54, 0.04);
  border: 1px solid rgba(97, 5, 54, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5c4455;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sr-access-notice svg {
  color: #610536;
  flex-shrink: 0;
  margin-top: 1px;
}

.sr-credits-strip {
  font-size: 13px;
  color: #5c4455;
  margin-top: 12px;
  line-height: 1.5;
}

.sr-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid #ede9e4;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sr-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sr-meta-label {
  font-size: 10px;
  font-weight: 500;
  color: #9c7d8c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sr-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: #1a0a12;
}

.sr-card {
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 14px;
  overflow: hidden;
}

.sr-card-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #ede9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sr-card-header--split {
  gap: 12px;
}

.sr-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a0a12;
  margin: 0;
}

.sr-card-body {
  padding: 18px 22px;
}

.sr-card-body--flush {
  padding: 0;
}

.sr-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #610536;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.sr-btn-upload:hover {
  background: #4a0328;
}

.sr-timeline {
  display: flex;
  flex-direction: column;
}

.sr-timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}

.sr-timeline-item:last-child {
  padding-bottom: 0;
}

.sr-timeline-item:last-child .sr-tl-line {
  display: none;
}

.sr-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
}

.sr-tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.sr-tl-dot.done {
  background: #e8f5ee;
  color: #1a7a4a;
  border: 1.5px solid rgba(26, 122, 74, 0.2);
}

.sr-tl-dot.pending {
  background: #fef3e2;
  color: #92600a;
  border: 1.5px solid rgba(146, 96, 10, 0.2);
}

.sr-tl-dot.future {
  background: #ede9e4;
  color: #9c7d8c;
  border: 1.5px solid #e0d8d0;
}

.sr-tl-line {
  width: 1.5px;
  flex: 1;
  min-height: 12px;
  background: #ede9e4;
  margin-top: 4px;
}

.sr-tl-content {
  padding-top: 4px;
}

.sr-tl-event {
  font-size: 13px;
  font-weight: 500;
  color: #1a0a12;
}

.sr-tl-event.is-muted {
  color: #9c7d8c;
}

.sr-tl-time {
  font-size: 11px;
  color: #9c7d8c;
  margin-top: 2px;
}

.sr-tl-note {
  font-size: 12px;
  color: #5c4455;
  margin-top: 4px;
  line-height: 1.5;
}

.sr-updates {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sr-update-item {
  border-left: 2.5px solid #ede9e4;
  padding-left: 14px;
  position: relative;
}

.sr-update-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0d8d0;
}

.sr-update-time {
  font-size: 11px;
  color: #9c7d8c;
  margin-bottom: 3px;
}

.sr-update-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
}

.sr-update-tag.tag-booked {
  background: #e8f5ee;
  color: #1a7a4a;
}

.sr-update-tag.tag-invoice {
  background: rgba(97, 5, 54, 0.08);
  color: #610536;
}

.sr-update-text {
  font-size: 12.5px;
  color: #5c4455;
  line-height: 1.6;
}

.sr-doc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 8px;
  color: #9c7d8c;
}

.sr-doc-empty svg {
  opacity: 0.3;
}

.sr-doc-list {
  list-style: none;
  margin: 0;
  padding: 16px 22px;
  font-size: 13px;
  line-height: 1.6;
}

.sr-doc-list li {
  margin-bottom: 8px;
}

.sr-msg-bubble {
  background: #f5f3f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.sr-msg-meta {
  color: #9c7d8c;
  font-size: 11px;
}

.sr-msg-body {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1a0a12;
}

.sr-message-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-form-label {
  font-size: 11px;
  font-weight: 600;
  color: #9c7d8c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sr-form-textarea {
  width: 100%;
  border: 1.5px solid #e0d8d0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  color: #1a0a12;
  resize: vertical;
  min-height: 90px;
  outline: none;
}

.sr-form-textarea:focus {
  border-color: #610536;
}

.sr-btn-send {
  align-self: flex-start;
  background: #610536;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sr-btn-send:hover {
  background: #4a0328;
}

.sr-invoice-card {
  background: #fff;
  border: 1.5px solid #610536;
  border-radius: 14px;
  overflow: hidden;
}

.sr-invoice-header {
  background: linear-gradient(135deg, #610536 0%, #7a0642 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sr-invoice-number {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 232, 238, 0.75);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.sr-invoice-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.sr-invoice-badge {
  background: rgba(255, 246, 5, 0.15);
  border: 1px solid rgba(255, 246, 5, 0.3);
  color: #fff605;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sr-invoice-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sr-invoice-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.sr-invoice-line-label {
  color: #5c4455;
}

.sr-invoice-line-value {
  font-weight: 600;
  color: #1a0a12;
  text-align: right;
}

.sr-invoice-divider {
  height: 1px;
  background: #ede9e4;
}

.sr-invoice-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sr-total-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a0a12;
}

.sr-total-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #610536;
}

.sr-invoice-due {
  font-size: 11px;
  color: #9c7d8c;
  text-align: right;
  margin-top: -4px;
}

.sr-invoice-due.is-soon {
  color: #92600a;
}

.sr-btn-pay {
  width: 100%;
  background: #610536;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, box-shadow 0.15s;
}

.sr-btn-pay:hover {
  background: #4a0328;
  box-shadow: 0 4px 16px rgba(97, 5, 54, 0.3);
}

.sr-pay-note {
  font-size: 11px;
  color: #9c7d8c;
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.45;
}

.sr-pay-note a {
  color: #610536;
  font-weight: 600;
}

.sr-multi-inv-note {
  font-size: 12px;
  color: #5c4455;
  margin: 0;
  line-height: 1.5;
}

.sr-bank-section {
  background: #f5f3f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.sr-bank-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9c7d8c;
  margin-bottom: 10px;
}

.sr-bank-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sr-bank-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sr-bank-key {
  font-size: 12px;
  color: #9c7d8c;
}

.sr-bank-val {
  font-size: 13px;
  font-weight: 600;
  color: #1a0a12;
  text-align: right;
}

.sr-bank-ref {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e0d8d0;
  font-size: 11.5px;
  color: #5c4455;
  line-height: 1.5;
}

.sr-ref-highlight {
  font-weight: 700;
  color: #610536;
  background: rgba(97, 5, 54, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.sr-print-link {
  font-size: 12px;
  color: #9c7d8c;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-print-link:hover {
  color: #610536;
}

@media (max-width: 960px) {
  .sr-page-layout {
    grid-template-columns: 1fr;
  }

  .sr-right-col {
    position: static;
  }
}

/* ── Member auth (login / register) — matches portal burgundy + card ─ */
body.member-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(245, 200, 0, 0.08), transparent),
    linear-gradient(165deg, #2a1a30 0%, #1a0f1e 45%, #251428 100%);
  font-family: var(--font);
  color: var(--text);
}

.member-auth-layout {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.member-auth-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.member-auth-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--brand);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.member-auth-brand-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.member-auth-brand-emerge {
  color: #fff;
}

.member-auth-brand-hub {
  color: var(--accent);
}

.member-auth-brand-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-auth-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px 24px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.member-auth-h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #1a0a12;
  margin: 0 0 8px;
  line-height: 1.2;
}

.member-auth-lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.member-auth-alert {
  margin-bottom: 16px;
}

.member-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-auth-label {
  font-size: 12px;
  font-weight: 600;
  color: #4a3542;
}

.member-auth-optional {
  font-weight: 500;
  color: var(--text-muted);
}

.member-auth-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.member-auth-input::placeholder {
  color: #b0a8b5;
}

.member-auth-input:hover {
  border-color: #c4bcc8;
}

.member-auth-input:focus {
  outline: none;
  border-color: #610536;
  box-shadow: 0 0 0 3px rgba(97, 5, 54, 0.12);
}

.member-auth-submit {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.member-auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.member-auth-links a {
  color: #610536;
  font-weight: 500;
  text-decoration: none;
}

.member-auth-links a:hover {
  text-decoration: underline;
}

.member-auth-links-sep {
  margin: 0 8px;
  color: var(--text-muted);
}

.member-auth-foot {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 400px) {
  .member-auth-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .member-auth-card {
    padding: 22px 18px 20px;
  }
}

/* ── Member settings (portal theme) ─ */
.settings-page {
  font-family: "DM Sans", var(--font), system-ui, sans-serif;
  max-width: 720px;
  padding-top: 8px;
  padding-bottom: 48px;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #5c4455;
  background: #fff;
  border: 1px solid #e0d8d0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.settings-tab:hover {
  border-color: #c9b8c4;
  color: #41062d;
}

.settings-tab.is-active {
  background: #610536;
  color: #fff !important;
  border-color: #610536;
}

.settings-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e0d8d0;
  padding: 24px 22px 28px;
  box-shadow: 0 4px 24px rgba(26, 10, 18, 0.06);
}

.settings-lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b5460;
  line-height: 1.55;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a0a12;
  margin: 22px 0 14px;
  padding-top: 18px;
  border-top: 1px solid #ece4df;
}

.settings-section-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.settings-optional {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.settings-grid {
  display: grid;
  gap: 14px 18px;
  margin-bottom: 8px;
}

.settings-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid--1 {
  grid-template-columns: 1fr;
}

.settings-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .settings-grid--2 {
    grid-template-columns: 1fr;
  }
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-label {
  font-size: 12px;
  font-weight: 600;
  color: #4a3542;
}

.settings-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-family: var(--font);
  font-size: 14px;
}

.settings-input:focus {
  outline: none;
  border-color: #610536;
  box-shadow: 0 0 0 3px rgba(97, 5, 54, 0.1);
}

.settings-input--file {
  padding: 8px;
  font-size: 13px;
}

.settings-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.settings-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.settings-save {
  margin-top: 20px;
  align-self: flex-start;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
}

.settings-checklist {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.settings-check-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0ebe8;
}

.settings-check-item:last-child {
  border-bottom: none;
}

.settings-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1a0a12;
  cursor: pointer;
}

.settings-check-label input {
  width: 18px;
  height: 18px;
  accent-color: #610536;
}

.settings-session-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-session-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ebe8;
  font-size: 13px;
}

.settings-session-meta {
  color: #5c4455;
}

.settings-session-ip {
  font-weight: 600;
}

.settings-session-sep {
  margin: 0 6px;
  color: var(--text-muted);
}

.settings-session-time {
  color: var(--text-secondary);
}

.settings-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #610536;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.settings-link-btn:hover {
  color: #4a0328;
}
