/* CoreMineCapital main styles (restored) */

/* Utility layouts, buttons, cards, grids, tables for the dashboard and admin */
.cm-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

/* Spacing helpers used across dashboard sections */
.cmx-dash {
  margin-top: 12px;
  margin-bottom: 24px;
}

.cmx-strong {
  font-weight: 800;
  color: var(--color-emerald-300, #86efac);
}

/* Header strip with actions */
.cmx-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #0f1512 0%, #0b0f0d 100%);
  border: 1px solid #163227;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}
.cmx-strip__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmx-strip__hello {
  font-size: 1rem;
  font-weight: 700;
  color: #e5f3ec;
}
.cmx-strip__muted {
  font-size: 12px;
  color: #94a3b8;
}
.cmx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  color: #b0f2de;
  background: #0b0f0d;
  font-size: 11px;
  font-weight: 700;
}
.cmx-strip__right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.cmx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.cmx-btn--primary {
  background: var(--color-emerald-600, #10b981);
  color: #071410;
  border-color: var(--color-emerald-600, #10b981);
}
.cmx-btn--primary:hover {
  background: #059669;
  transform: translateY(-1px);
}
.cmx-btn--outline {
  background: transparent;
  color: #d1fae5;
  border-color: #264a3a;
}
.cmx-btn--ghost {
  background: transparent;
  color: #b0f2de;
  border-color: #163227;
}
.cmx-btn--ghost:hover {
  background: #102019;
  border-color: #163227;
  color: #f0fdf4;
}

/* Sections and headings */
.cmx-section {
  margin-top: 18px;
}
.cmx-heading {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
  color: #d1fae5;
  border-left: 4px solid #10b981;
  padding-left: 10px;
  margin-bottom: 12px;
}
.cmx-heading--center {
  text-align: center;
  border-left: 0;
  padding-left: 0;
}

/* Grids */
.cmx-grid {
  display: grid;
  gap: 12px;
}
.cmx-grid--mini {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.cmx-grid--cta {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 10px;
}
.cmx-grid--duo {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .cmx-grid--mini {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cmx-grid--cta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cmx-grid--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cards */
.cmx-card {
  background: linear-gradient(180deg, #0f1512 0%, #0b0f0d 100%);
  border: 1px solid #163227;
  border-radius: 12px;
  padding: 14px;
  color: #e6f3ec;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.cmx-card--mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}
.cmx-card--cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmx-card--wide {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmx-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0b0f0d;
  border: 1px solid #1f2937;
  color: #b0f2de;
  font-size: 18px;
  font-weight: 800;
}
.cmx-card__label {
  font-size: 12px;
  color: #94a3b8;
}
.cmx-card__value {
  font-size: 20px;
  font-weight: 900;
  color: #d1fae5;
}
.cmx-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmx-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Chart frame */
.cmx-chart {
  background: #0b0f0d;
  border: 1px solid #163227;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.cmx-chart__inner {
  height: 480px;
}

/* Tables */
.cmx-table {
  display: block; /* allow horizontal scrolling within */
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #0f1512;
  border: 1px solid #163227;
  border-radius: 12px;
  color: #e6f3ec;
}
.cmx-table thead th {
  background: #0b0f0d;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #163227;
}
.cmx-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #163227;
}
.cmx-table tbody tr:last-child td {
  border-bottom: none;
}
.cmx-table th,
.cmx-table td {
  word-break: break-word;
}
.cmx-table .text-right {
  text-align: right;
}
.cmx-table .capitalize {
  text-transform: capitalize;
}
.cmx-empty {
  color: #94a3b8;
  text-align: center;
  padding: 12px;
}

/* Footer quick-links pill style (and shared “footer-card”) */
.footer-card {
  background: linear-gradient(180deg, #0f1512 0%, #0b0f0d 100%);
  border: 1px solid #163227;
  border-radius: 12px;
  padding: 12px;
  color: #e6f3ec;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #264a3a;
  border-radius: 10px;
  text-decoration: none;
  color: #d1fae5;
  background: #0b0f0d;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.footer-link:hover {
  background: #102019;
  border-color: #163227;
  transform: translateY(-1px);
}
.footer-link .chev {
  opacity: 0.7;
}

/* Support CTA styles (appended safely) */
.support-section {
  max-width: 920px;
}
.support-cta-wrap {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.support-cta {
  --emerald-300: #86efac;
  --emerald-400: #4ade80;
  --emerald-500: #22c55e;
  --emerald-600: #16a34a;
  --surface-1: rgba(16, 185, 129, 0.1);
  --surface-2: rgba(16, 185, 129, 0.06);

  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--emerald-500);
  border-radius: 12px;
  color: var(--emerald-300);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: radial-gradient(120% 120% at 0% 0%, var(--surface-1) 0%, var(--surface-2) 55%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset, 0 8px 28px rgba(34, 197, 94, 0.1);
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 160ms ease, color 160ms ease, background 240ms
    ease;
}
.support-cta:hover {
  transform: translateY(-1px);
  border-color: var(--emerald-600);
  color: #d1fae5;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.35) inset, 0 14px 40px rgba(22, 163, 74, 0.18);
}
.support-cta:active {
  transform: translateY(0);
}
.support-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25), 0 0 0 1px rgba(22, 163, 74, 0.45) inset, 0 10px 34px
    rgba(22, 163, 74, 0.16);
}
.support-cta .icon-mail {
  width: 20px;
  height: 20px;
  color: var(--emerald-500);
  flex: 0 0 auto;
}
.support-cta-text {
  display: grid;
  line-height: 1.15;
}
.support-cta-title {
  font-size: 0.9rem;
  color: #d1fae5;
}
.support-cta-email {
  font-size: 0.95rem;
  color: var(--emerald-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.small {
  font-size: 0.9rem;
  color: #9ca3af;
}
