:root {
  --bg-deep: #0b0a0e;
  --bg-surface: rgba(22, 20, 28, 0.82);
  --bg-surface-solid: #16141c;
  --bg-surface-hover: rgba(32, 29, 41, 0.9);
  --bg-input: rgba(12, 11, 16, 0.85);
  --border-subtle: rgba(226, 194, 134, 0.14);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(226, 194, 134, 0.45);
  --gold-primary: #e2c286;
  --gold-light: #f3dfb6;
  --gold-deep: #c59f59;
  --gold-glow: rgba(226, 194, 134, 0.16);
  --text-ivory: #faf7f2;
  --text-muted: #a6a0b2;
  --text-dim: #6e687a;
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.14);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

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

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(226, 194, 134, 0.13), transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(197, 159, 89, 0.07), transparent 60%);
  background-attachment: fixed;
  color: var(--text-ivory);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.serif-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.hidden {
  display: none !important;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  background: #1b1824;
  border: 1px solid var(--border-gold);
  color: var(--text-ivory);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.toast-msg.toast-error {
  border-color: rgba(251, 113, 133, 0.55);
  color: #fecdd3;
}

.toast-msg.toast-success {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* 1. Passcode Lock Screen */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 42px 34px 36px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  position: relative;
}

.crest-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(226, 194, 134, 0.18), rgba(226, 194, 134, 0.04));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-primary);
  box-shadow: 0 0 28px rgba(226, 194, 134, 0.15);
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.auth-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-ivory);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-ivory);
  padding: 12px 15px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-field::placeholder {
  color: var(--text-dim);
}

.input-field:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Make calendar picker icon visible on dark background */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(0.3) saturate(1.5) hue-rotate(5deg);
  cursor: pointer;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
}

.remember-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ead19c 0%, #c8a25a 100%);
  color: #14110b;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 6px 20px rgba(200, 162, 90, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(200, 162, 90, 0.34);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-secondary:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: rgba(226, 194, 134, 0.07);
}

.error-msg {
  color: #fecdd3;
  background: var(--rose-soft);
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.83rem;
}

/* 2. Authenticated App Container */
.app-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 22px 80px;
}

/* Hero Top Header */
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-monogram {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(226, 194, 134, 0.2), rgba(226, 194, 134, 0.04));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-ivory);
}

.brand-subtitle-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Summary & Progress Strip */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Add Goal Form Card */
.add-goal-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  margin-bottom: 26px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-section-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-goal-grid {
  display: grid;
  grid-template-columns: 2.1fr 1.15fr 1.45fr auto;
  gap: 12px;
  align-items: end;
}

/* Filter & Sort Bar */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.filter-tab {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-tab:hover {
  color: var(--text-ivory);
}

.filter-tab.active {
  background: var(--gold-glow);
  color: var(--gold-light);
  border: 1px solid rgba(226, 194, 134, 0.28);
}

.sort-indicator {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sort-indicator i {
  color: var(--gold-primary);
}

/* Goals Table Card */
.goals-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.goals-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.goals-table th {
  padding: 15px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-card);
}

.goals-table td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

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

.goals-table tbody tr {
  transition: background-color 0.15s ease;
}

.goals-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

.goals-table tbody tr.row-completed {
  opacity: 0.55;
}

.col-check {
  width: 56px;
  text-align: center;
}

.col-date {
  width: 225px;
}

.col-actions {
  width: 148px;
  text-align: right;
}

/* Custom Circular Gold Checkbox */
.check-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(226, 194, 134, 0.4);
  background: rgba(12, 11, 16, 0.7);
  color: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.check-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
  transform: scale(1.06);
}

.check-btn.checked {
  background: linear-gradient(135deg, #ead19c 0%, #c8a25a 100%);
  border-color: var(--gold-light);
  color: #14110b;
}

.goal-title-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-ivory);
  word-break: break-word;
}

.row-completed .goal-title-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.goal-notes-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 4px;
  word-break: break-word;
}

/* Date Cell & Badges */
.date-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date-formatted {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
}

.date-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-upcoming {
  background: rgba(226, 194, 134, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(226, 194, 134, 0.22);
}

.badge-soon {
  background: var(--amber-soft);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-overdue {
  background: var(--rose-soft);
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.badge-done {
  background: var(--emerald-soft);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Row Actions */
.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: rgba(226, 194, 134, 0.08);
}

.action-btn.btn-danger:hover {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.5);
  background: var(--rose-soft);
}

.action-btn.btn-confirm-del {
  background: #e11d48;
  border-color: #fb7185;
  color: #ffffff;
}

/* Inline Edit Inputs */
.edit-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Empty State */
.empty-state {
  padding: 58px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--border-subtle);
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.empty-state-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-ivory);
  margin-bottom: 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 8, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 150;
}

.modal-card {
  width: 100%;
  max-width: 410px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

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

.modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-body-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-callout {
  background: rgba(226, 194, 134, 0.08);
  border: 1px solid rgba(226, 194, 134, 0.28);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--gold-light);
  line-height: 1.5;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-step-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--text-ivory);
}

.step-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
}

.status-dot.dot-on {
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
}

.status-dot.dot-off {
  background: var(--text-dim);
}

/* Responsive Mobile Layout */
@media (max-width: 760px) {
  .summary-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .add-goal-grid {
    grid-template-columns: 1fr;
  }

  .goals-table thead {
    display: none;
  }

  .goals-table,
  .goals-table tbody,
  .goals-table tr,
  .goals-table td {
    display: block;
    width: 100%;
  }

  .goals-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
  }

  .goals-table td {
    padding: 4px 0;
    border: none;
  }

  .col-check {
    width: auto;
    text-align: left;
    display: inline-block !important;
    vertical-align: top;
    margin-right: 10px;
  }

  .col-date,
  .col-actions {
    width: 100%;
    text-align: left;
  }

  .date-cell-wrap {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
  }

  .row-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }
}

/* ==========================================================================
   FrogAnon Private Portal & Protected Sub-Pages
   ========================================================================== */

.btn-link {
  text-decoration: none;
}

.portal-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 22px 84px;
}

.portal-hero {
  margin-bottom: 30px;
}

.portal-hero-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 6px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(226, 194, 134, 0.11), transparent 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  background: var(--bg-surface-hover);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(226, 194, 134, 0.14);
}

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

.portal-card:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(226, 194, 134, 0.18), rgba(226, 194, 134, 0.04));
  border: 1px solid rgba(226, 194, 134, 0.32);
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(226, 194, 134, 0.1);
  color: var(--gold-light);
  border: 1px solid rgba(226, 194, 134, 0.24);
}

.portal-badge.badge-live {
  background: var(--emerald-soft);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.32);
}

.portal-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-ivory);
  margin-bottom: 6px;
}

.portal-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.portal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.portal-card-meta {
  color: var(--text-dim);
  font-weight: 500;
}

.portal-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease;
}

.portal-card:hover .portal-card-arrow {
  transform: translateX(3px);
}

/* Sub-page Top Navigation Bar */
.subpage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 4px;
}

.nav-pill {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-pill:hover {
  color: var(--text-ivory);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pill.active {
  background: var(--gold-glow);
  color: var(--gold-light);
  border: 1px solid rgba(226, 194, 134, 0.28);
}

/* Protected Sub-page Workspace Card */
.workspace-card {
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  text-align: center;
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.workspace-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(226, 194, 134, 0.2), rgba(226, 194, 134, 0.04));
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 0 32px rgba(226, 194, 134, 0.14);
}

.workspace-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text-ivory);
  margin-bottom: 10px;
}

.workspace-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
}

.workspace-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}

.modal-close-btn {
  padding: 4px 10px;
}

.btn-full-width {
  width: 100%;
}

.btn-center-pad {
  justify-content: center;
  padding: 11px 16px;
}

.eyebrow-tight {
  margin-bottom: 2px;
}

.stat-number-compact {
  font-size: 1.55rem;
}

.sort-caret-gold {
  margin-left: 4px;
  color: #e2c286;
}

@media (max-width: 760px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .workspace-card {
    padding: 32px 20px;
  }
}
