/* ExecInk Portal — design tokens match landing page exactly */
:root {
  --bg: #0c0f14;
  --bg-elevated: #141820;
  --bg-card: #1a1f2a;
  --fg: #e8e6e1;
  --fg-muted: #8a8780;
  --accent: #c9a84c;
  --accent-soft: rgba(201, 168, 76, 0.12);
  --accent-hover: #d4b460;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(201, 168, 76, 0.3);
  --error: #e05c5c;
  --error-soft: rgba(224, 92, 92, 0.1);
  --success: #5caa78;
  --success-soft: rgba(92, 170, 120, 0.1);
  --warn: #d4a030;
  --warn-soft: rgba(212, 160, 48, 0.1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ========== HEADER ========== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #0c0f14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
}

.header-client {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.client-name {
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
}

.header-back,
.header-logout {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.header-back:hover, .header-logout:hover { color: var(--accent); }

/* ========== ADMIN NAV ========== */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--fg); background: rgba(255,255,255,0.07); }

.nav-cta {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
}
.nav-cta:hover { background: rgba(201, 168, 76, 0.18); color: var(--accent-hover); }
.nav-cta.active { color: var(--accent-hover); }

/* ========== MAIN CONTENT ========== */
.portal-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ========== PAGE HEADER ========== */
.page-header {
  margin-bottom: 40px;
}

.page-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 10px;
}

.page-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
}

.breadcrumb {
  display: inline-block;
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.breadcrumb:hover { color: var(--accent); }

/* ========== STATS BAR ========== */
.stats-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 500;
}

.stat-n {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}
.stat-pending .stat-n { color: var(--accent); }
.stat-approved .stat-n { color: var(--success); }
.stat-revision .stat-n { color: var(--error); }
.stat-published .stat-n { color: var(--fg-muted); }

/* ========== DRAFT SECTIONS ========== */
.draft-section {
  margin-bottom: 48px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-pending { background: var(--accent); }
.dot-approved { background: var(--success); }
.dot-revision { background: var(--error); }
.dot-published { background: var(--fg-muted); }

.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ========== DRAFT CARD ========== */
.draft-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.draft-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.draft-card.status-pending-review {
  border-left: 3px solid var(--accent);
}
.draft-card.status-needs-revision {
  border-left: 3px solid var(--error);
}
.draft-card.status-approved {
  border-left: 3px solid var(--success);
}

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

.draft-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
}

.draft-card-preview {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.draft-card-footer {
  margin-top: auto;
}

.draft-card-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-display);
}

.draft-date {
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-display);
}

/* ========== STATUS BADGES ========== */
.draft-status-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.status-badge-pending-review {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.status-badge-approved {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(92, 170, 120, 0.3);
}
.status-badge-needs-revision {
  background: var(--error-soft);
  color: var(--error);
  border: 1px solid rgba(224, 92, 92, 0.3);
}
.status-badge-scheduled {
  background: rgba(92, 120, 200, 0.1);
  color: #7090d4;
  border: 1px solid rgba(92, 120, 200, 0.25);
}
.status-badge-published {
  background: rgba(138, 135, 128, 0.1);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* ========== DRAFT VIEW ========== */
.portal-draft-view {}

.draft-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.draft-schedule-info {
  font-size: 14px;
  color: var(--fg-muted);
}

.draft-view-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

.draft-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .draft-layout { grid-template-columns: 1fr; }
}

.content-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

/* LinkedIn-style post preview */
.post-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}

.linkedin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.linkedin-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.linkedin-meta strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}

.linkedin-meta span {
  font-size: 12px;
  color: var(--fg-muted);
}

.post-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg);
  white-space: pre-wrap;
}

.post-char-count {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  text-align: right;
}

/* ========== ACTION SECTION ========== */
.action-section {
  margin-top: 8px;
}

.action-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-approve {
  flex: 1;
  min-width: 160px;
  padding: 14px 20px;
  background: var(--success-soft);
  border: 1px solid rgba(92, 170, 120, 0.4);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-approve:hover {
  background: rgba(92, 170, 120, 0.2);
  border-color: var(--success);
  transform: translateY(-1px);
}

.btn-request-edits {
  flex: 1;
  min-width: 160px;
  padding: 14px 20px;
  background: rgba(138, 135, 128, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-request-edits:hover {
  border-color: var(--error);
  color: var(--error);
  background: var(--error-soft);
}

.approved-banner {
  padding: 16px 20px;
  background: var(--success-soft);
  border: 1px solid rgba(92, 170, 120, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.published-banner {
  padding: 16px 20px;
  background: rgba(138, 135, 128, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== SIDEBAR ========== */
.draft-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feedback-empty {
  font-size: 14px;
  color: var(--fg-muted);
  font-style: italic;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-item {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.feedback-item.feedback-approve {
  border-left: 3px solid var(--success);
}
.feedback-item.feedback-request_edits {
  border-left: 3px solid var(--error);
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-action-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.feedback-badge-approve { color: var(--success); }
.feedback-badge-request_edits { color: var(--error); }

.feedback-time {
  font-size: 11px;
  color: var(--fg-muted);
}

.feedback-notes {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-style: italic;
}

/* ========== FEEDBACK ALERT (admin) ========== */
.feedback-alert {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 520px;
  position: relative;
  animation: modalIn 0.18s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--accent);
  color: #0c0f14;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-approve-confirm {
  background: var(--success);
  color: #fff;
}
.btn-approve-confirm:hover { background: #6dbb8a; }

.btn-edits-confirm {
  background: var(--error);
  color: #fff;
}
.btn-edits-confirm:hover { background: #e87070; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--accent-soft); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.15); color: var(--fg); }

/* ========== FORMS ========== */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.field-group label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field-group input,
.field-group textarea,
.field-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(138, 135, 128, 0.5);
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-group textarea {
  resize: vertical;
  min-height: 100px;
}

.field-help {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--fg-muted);
}

.label-required {
  color: var(--error);
}

.char-counter {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: right;
  font-family: var(--font-display);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ========== FORM CARD ========== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}

.form-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

@media (max-width: 800px) {
  .inline-form { grid-template-columns: 1fr; }
}

.draft-form { max-width: 760px; }

/* ========== ADMIN TABLE ========== */
.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.admin-table th {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

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

.admin-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.td-client {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg);
}

.td-title {
  color: var(--fg);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-muted { color: var(--fg-muted); }

.table-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.table-link:hover { color: var(--accent-hover); }

/* ========== CLIENT CARDS ========== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.client-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.client-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.client-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.client-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.client-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.client-info strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.client-info span {
  font-size: 13px;
  color: var(--fg-muted);
}

.client-company {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

.client-arrow {
  color: var(--accent);
  font-size: 16px;
}

/* ========== PORTAL LINK BOX ========== */
.portal-link-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.token-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.token-display code {
  flex: 1;
  font-size: 13px;
  color: var(--accent);
  font-family: 'Space Mono', monospace, var(--font-body);
  word-break: break-all;
}

.btn-copy {
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-copy:hover { background: rgba(201, 168, 76, 0.2); }

.token-help {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ========== AUTH PAGE ========== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 60%), var(--bg);
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.auth-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.auth-error {
  background: var(--error-soft);
  border: 1px solid rgba(224, 92, 92, 0.3);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.auth-help {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ========== ALERT BANNER ========== */
.alert-banner {
  background: var(--error-soft);
  border: 1px solid rgba(224, 92, 92, 0.25);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 14px;
  padding: 14px 20px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.alert-banner strong { color: var(--error); }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--fg-muted);
}

.empty-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.empty-state p { font-size: 14px; }

.link-accent {
  color: var(--accent);
  text-decoration: none;
}
.link-accent:hover { text-decoration: underline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .portal-main { padding: 32px 20px 60px; }
  .header-inner { padding: 14px 20px; }
  .action-buttons { flex-direction: column; }
}
