:root {
  --bg-dark: #07090e;
  --bg-sidebar: #0d121d;
  --bg-panel: #111726;
  --bg-card: #151d30;
  --bg-input: #0a0e17;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --text-primary: #f0f6fc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.member-header {
  height: 64px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: #07090e;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-info h1 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.portal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 5px 12px 5px 6px;
  border-radius: 30px;
  border: 1px solid var(--border);
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: #07090e;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.member-user-text {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.member-email {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-portal-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-studio {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  color: #a7f3d0;
  border: 1px solid var(--accent-green);
}

.btn-studio:hover {
  background: var(--accent-green);
  color: #07090e;
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.btn-logout {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Main Layout */
.member-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Overview Metrics */
.overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.metric-card:hover {
  border-color: var(--border-light);
}

.card-glow-green {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(17, 23, 38, 0.95));
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.metric-icon {
  font-size: 1rem;
}

.metric-value-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.metric-big-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
}

.metric-unit {
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  transition: width 0.3s ease;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Tabs */
.portal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-panel);
}

.tab-btn.active {
  background: var(--bg-card);
  color: #ffffff;
  border-color: var(--border-light);
}

.tab-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-pane.active {
  display: block;
}

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

/* Pane Toolbar */
.pane-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  flex: 1;
  max-width: 400px;
  color: var(--text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-filter {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.btn-new-chat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green);
  color: #07090e;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-new-chat-link:hover {
  box-shadow: 0 0 12px var(--accent-green-glow);
}

/* Chats Grid */
.chats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 14px;
}

.chat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.chat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.chat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.chat-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-model-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  white-space: nowrap;
}

.chat-model-badge.temco {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.chat-card-preview {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: var(--bg-card);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.chat-meta-info {
  line-height: 1.4;
}

.chat-actions {
  display: flex;
  gap: 6px;
}

.btn-card-action {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-card-action:hover {
  color: #ffffff;
  border-color: var(--border-light);
}

.btn-card-action.primary {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.35);
}

.btn-card-action.primary:hover {
  background: var(--accent-green);
  color: #07090e;
}

.btn-card-action.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Topup Layout */
.topup-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
}

.card-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.panel-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.amount-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.amount-chip:hover {
  border-color: var(--border-light);
  color: #ffffff;
}

.amount-chip.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green-glow);
}

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

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

.field-wrap label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-wrap input,
.field-wrap textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
}

.field-wrap input:focus,
.field-wrap textarea:focus {
  border-color: var(--accent-green);
}

/* Calculation Preview Box */
.calc-preview {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.calc-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin: 4px 0;
}

.calc-row.total {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-submit-topup {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: #07090e;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-submit-topup:hover {
  box-shadow: 0 0 15px var(--accent-green-glow);
}

.form-feedback {
  font-size: 0.82rem;
  min-height: 18px;
  text-align: center;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.portal-table th {
  text-align: left;
  padding: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.portal-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-badge.approved { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* API Key Box */
.api-key-box {
  display: flex;
  gap: 8px;
}

.api-key-box input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 0.82rem;
  outline: none;
}

.btn-key-icon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-copy-key {
  background: var(--accent-green);
  color: #07090e;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.field-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.integration-sample {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
}

.sample-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sample-code {
  background: var(--bg-input);
  padding: 10px;
  border-radius: 4px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a7f3d0;
  overflow-x: auto;
  white-space: pre;
}

.btn-copy-mini {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
}

/* Account Info List */
.account-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.info-label { color: var(--text-muted); }
.info-val { color: #ffffff; }

/* Modal Reader with Syntax Highlighting */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
  animation: fadeIn 0.2s ease;
}

.modal-dialog-large {
  width: 95vw;
  max-width: 820px;
  height: 85vh;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.modal-dialog-head {
  padding: 14px 18px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-title-group h3 {
  font-size: 1rem;
  color: #ffffff;
}

.dialog-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dialog-export {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dialog-export:hover {
  color: #ffffff;
  border-color: var(--border-light);
}

.btn-dialog-studio {
  background: var(--accent-green);
  color: #07090e;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-dialog-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-dialog-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reader-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 88%;
}

.reader-msg.user {
  align-self: flex-end;
}

.reader-msg.assistant {
  align-self: flex-start;
}

.reader-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
}

.reader-role-tag {
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.reader-role-tag.user-role {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.reader-role-tag.ai-role {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

.reader-time-tag {
  color: var(--text-muted);
}

.reader-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.6;
}

.reader-bubble.user-bubble {
  background: var(--accent-green);
  color: #07090e;
  font-weight: 500;
  border-radius: 12px 12px 2px 12px;
}

.reader-bubble.ai-bubble {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 12px 12px 12px 2px;
}

.reader-bubble.ai-bubble pre {
  background: #07090e;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  margin: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.reader-bubble.ai-bubble code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.reader-bubble.ai-bubble p {
  margin-bottom: 8px;
}

.reader-bubble.ai-bubble p:last-child {
  margin-bottom: 0;
}

/* In-Page Auth Modal Overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: none;
  place-items: center;
  padding: 20px;
}

.auth-overlay.open {
  display: grid;
  animation: fadeIn 0.2s ease;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-brand h2 {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 800;
}

.auth-tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-tabs-pill {
  display: flex;
  gap: 6px;
  background: var(--bg-panel);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.auth-pill-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.auth-pill-btn.active {
  background: var(--accent-green);
  color: #07090e;
}

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

.auth-form.active {
  display: flex;
}

.free-tokens-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #a7f3d0;
}

.btn-auth-submit {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: #07090e;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-auth-submit:hover {
  box-shadow: 0 0 15px var(--accent-green-glow);
}

.auth-footer-links {
  text-align: center;
  margin-top: 6px;
}

.return-studio-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.return-studio-link:hover {
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 900px) {
  .overview-metrics { grid-template-columns: repeat(2, 1fr); }
  .topup-layout { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .overview-metrics { grid-template-columns: 1fr; }
  .member-header { padding: 0 14px; height: 56px; }
  .member-user-text { display: none; }
  .chats-grid { grid-template-columns: 1fr; }
  .btn-portal-action span { display: none; }

  .chat-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .chat-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn-card-action {
    flex: 1;
    text-align: center;
    padding: 7px 6px;
    font-size: 0.75rem;
    min-height: 34px;
  }
}
