/* Gold Admin — inherits Pro Manage tokens */

/* ── Tabs ─────────────────────────────────────────────────── */
.gold-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ink-700);
  background: var(--ink-950);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 56px;
  z-index: 40;
}
.gold-tabs::-webkit-scrollbar { display: none; }

.gold-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-300);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  font-family: var(--font-sans);
}
.gold-tab:hover { color: var(--ink-100); }
.gold-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.gold-tab .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

/* ── Content area ─────────────────────────────────────────── */
.gold-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Page title ───────────────────────────────────────────── */
.gold-page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-050);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gold-page-title .material-symbols-outlined {
  color: var(--gold);
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ── Site launchers ──────────────────────────────────────── */
.site-launchers {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.site-launcher {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  text-decoration: none;
  text-align: center;
  transition: background .15s, border-color .15s, transform .12s;
}
.site-launcher:hover {
  background: var(--ink-700);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.site-launcher:active { transform: translateY(0); }

.site-launcher-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,.18) 0%, rgba(201,168,76,.06) 100%);
  border: 1px solid rgba(201,168,76,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-launcher-icon .material-symbols-outlined {
  font-size: 26px;
  color: var(--gold);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.site-launcher-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-100);
}
.site-launcher-url {
  font-size: 11px;
  color: var(--ink-400);
}

@media (max-width: 480px) {
  .site-launchers { flex-direction: row; }
  .site-launcher { padding: 16px 10px; }
  .site-launcher-icon { width: 44px; height: 44px; border-radius: 12px; }
  .site-launcher-icon .material-symbols-outlined { font-size: 22px; }
}

/* ── Site cards (dashboard) ───────────────────────────────── */
.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.site-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  padding: 20px;
}

.site-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.site-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-050);
}

.site-url {
  font-size: 11px;
  color: var(--ink-300);
  margin-top: 2px;
}

.site-url a {
  color: var(--gold);
  text-decoration: none;
}
.site-url a:hover { text-decoration: underline; }

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 99px;
  font-weight: 500;
}
.site-badge.live { background: var(--emerald-soft); color: var(--emerald); }
.site-badge.unknown { background: var(--ink-700); color: var(--ink-300); }

.site-card-meta {
  font-size: 12px;
  color: var(--ink-300);
  margin-bottom: 14px;
  line-height: 1.6;
}

.site-card-meta strong { color: var(--ink-100); }

.site-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  background: var(--gold);
  color: #0d1220;
}
.btn-gold:hover { opacity: .88; }
.btn-gold:active { transform: scale(.97); }
.btn-gold:disabled { opacity: .4; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ink-600);
  color: var(--ink-200);
  transition: background .15s, border-color .15s;
}
.btn-outline:hover { background: var(--ink-700); border-color: var(--ink-500); }
.btn-outline .material-symbols-outlined { font-size: 15px; }
.btn-gold .material-symbols-outlined { font-size: 15px; }

/* ── Section labels ───────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 12px;
}

/* ── Prediction cards ─────────────────────────────────────── */
.pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.pred-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  padding: 16px;
}

.pred-card.is-editing {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.pred-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.pred-field {
  margin-bottom: 10px;
}

.pred-field label {
  display: block;
  font-size: 10px;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}

.pred-field input,
.pred-field select,
.pred-field textarea {
  width: 100%;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-100);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s;
}
.pred-field input:focus,
.pred-field select:focus,
.pred-field textarea:focus {
  border-color: var(--gold);
}
.pred-field textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.5;
}
.pred-field select option { background: var(--ink-800); }

.pred-range {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

/* ── Analysts table ───────────────────────────────────────── */
.analysts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
.analysts-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink-700);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-400);
  font-weight: 600;
}
.analysts-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink-800);
}
.analysts-table tr:hover td { background: var(--ink-800); }
.analysts-table input, .analysts-table select {
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--ink-100);
  width: 100%;
  font-family: var(--font-sans);
  outline: none;
}
.analysts-table input:focus, .analysts-table select:focus {
  border-color: var(--gold);
}

.add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gold);
  background: none;
  border: 1px dashed var(--ink-600);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s, border-color .15s;
}
.add-row-btn:hover { background: var(--gold-soft); border-color: var(--gold); }

.del-row-btn {
  background: none;
  border: none;
  color: var(--ink-400);
  cursor: pointer;
  padding: 2px;
  display: flex;
  border-radius: 4px;
}
.del-row-btn:hover { color: #f87171; background: rgba(248,113,113,.1); }
.del-row-btn .material-symbols-outlined { font-size: 15px; }

/* ── Guides list ──────────────────────────────────────────── */
.guides-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.guide-row {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
  align-items: start;
}
@media (max-width: 640px) { .guide-row { grid-template-columns: 1fr; } }

.guide-row input, .guide-row textarea, .guide-row select {
  width: 100%;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-100);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s;
}
.guide-row input:focus, .guide-row textarea:focus, .guide-row select:focus {
  border-color: var(--gold);
}
.guide-row textarea { resize: vertical; min-height: 52px; }

/* ── Monitor links ────────────────────────────────────────── */
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.monitor-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink-200);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.monitor-link:hover {
  background: var(--ink-700);
  border-color: var(--gold);
  color: var(--ink-050);
}
.monitor-link .material-symbols-outlined {
  font-size: 20px;
  color: var(--gold);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0;
}
.monitor-link-sub {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 1px;
}

/* ── Settings form ────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.settings-field label {
  display: block;
  font-size: 11px;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 5px;
  font-weight: 600;
}
.settings-field input {
  width: 100%;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-100);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s;
}
.settings-field input:focus { border-color: var(--gold); }
.settings-field input::placeholder { color: var(--ink-500); }
.settings-field-hint {
  font-size: 10px;
  color: var(--ink-500);
  margin-top: 4px;
}

/* ── Toast ────────────────────────────────────────────────── */
.gold-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  color: var(--ink-100);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  pointer-events: none;
  transition: transform .25s, opacity .25s;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gold-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.gold-toast.success { border-color: var(--emerald); color: var(--emerald); }
.gold-toast.error   { border-color: #f87171; color: #f87171; }

/* ── Save bar ─────────────────────────────────────────────── */
.save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-700);
  margin-top: 20px;
  flex-wrap: wrap;
}

.save-status {
  font-size: 12px;
  color: var(--ink-400);
  flex: 1;
}

/* ── Spinner ──────────────────────────────────────────────── */
.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
