/*
 * BYJMT UI Framework v1.0.0
 * Core visual identity for By JMT ecosystem.
 */

:root {
  --byjmt-bg: #080b12;
  --byjmt-bg-soft: #101522;
  --byjmt-card: rgba(18, 24, 38, 0.92);
  --byjmt-card-light: #ffffff;
  --byjmt-text: #f4f0e8;
  --byjmt-text-muted: #aeb6c8;
  --byjmt-gold: #d8aa3d;
  --byjmt-gold-soft: rgba(216, 170, 61, 0.18);
  --byjmt-border: rgba(216, 170, 61, 0.28);
  --byjmt-success: #27c46b;
  --byjmt-warning: #ffb020;
  --byjmt-danger: #ff4d4f;
  --byjmt-radius: 18px;
  --byjmt-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  --byjmt-glow: 0 0 28px rgba(216, 170, 61, 0.25);
}

.byjmt-wrap {
  margin: 22px 22px 22px 0;
  color: var(--byjmt-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.byjmt-shell {
  background:
    radial-gradient(circle at top right, rgba(216,170,61,.16), transparent 35%),
    linear-gradient(135deg, #070a11 0%, #111827 100%);
  border: 1px solid var(--byjmt-border);
  border-radius: 24px;
  box-shadow: var(--byjmt-shadow);
  overflow: hidden;
}

.byjmt-header {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(216,170,61,.16);
}

.byjmt-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.byjmt-version {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--byjmt-gold-soft);
  color: var(--byjmt-gold);
  border: 1px solid var(--byjmt-border);
  font-size: 12px;
  font-weight: 700;
}

.byjmt-kyra-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2a2138, #d8aa3d);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: var(--byjmt-glow);
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
}

.byjmt-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 22px 0;
}

.byjmt-tab {
  border: 1px solid rgba(216,170,61,.24);
  background: rgba(255,255,255,.055);
  color: var(--byjmt-text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.byjmt-tab:hover,
.byjmt-tab-active {
  background: linear-gradient(135deg, rgba(216,170,61,.28), rgba(216,170,61,.08));
  box-shadow: var(--byjmt-glow);
  transform: translateY(-1px);
  color: #fff;
}

.byjmt-content {
  padding: 22px;
}

.byjmt-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.byjmt-card {
  grid-column: span 4;
  background: var(--byjmt-card);
  border: 1px solid rgba(216,170,61,.18);
  border-radius: var(--byjmt-radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.byjmt-card-wide {
  grid-column: span 8;
}

.byjmt-card-full {
  grid-column: 1 / -1;
}

.byjmt-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #fff;
}

.byjmt-card p {
  color: var(--byjmt-text-muted);
  margin: 0;
  line-height: 1.55;
}

.byjmt-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.byjmt-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.byjmt-status::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.byjmt-status-ok::before {
  background: var(--byjmt-success);
  box-shadow: 0 0 13px rgba(39,196,107,.8);
}

.byjmt-status-warning::before {
  background: var(--byjmt-warning);
  box-shadow: 0 0 13px rgba(255,176,32,.8);
}

.byjmt-status-danger::before {
  background: var(--byjmt-danger);
  box-shadow: 0 0 13px rgba(255,77,79,.8);
}

.byjmt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #e4bf62, #9d741e);
  color: #111;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 24px rgba(216,170,61,.24);
}

.byjmt-footer {
  margin-top: 22px;
  padding: 20px 22px;
  border-top: 1px solid rgba(216,170,61,.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--byjmt-text-muted);
  flex-wrap: wrap;
}

.byjmt-footer strong {
  color: var(--byjmt-gold);
}

.byjmt-light .byjmt-shell {
  background: linear-gradient(135deg, #fffaf0 0%, #f5f7fb 100%);
  color: #151923;
}

.byjmt-light .byjmt-title,
.byjmt-light .byjmt-card h3 {
  color: #141922;
}

.byjmt-light .byjmt-card {
  background: rgba(255,255,255,.92);
  color: #1c2331;
  border-color: rgba(170,125,25,.22);
}

.byjmt-light .byjmt-card p,
.byjmt-light .byjmt-footer {
  color: #5f6878;
}

.byjmt-light .byjmt-tab {
  color: #1c2331;
  background: rgba(255,255,255,.75);
}

@media (max-width: 960px) {
  .byjmt-wrap {
    margin: 12px;
  }

  .byjmt-header {
    align-items: flex-start;
  }

  .byjmt-card,
  .byjmt-card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .byjmt-header {
    flex-direction: column;
  }

  .byjmt-title {
    font-size: 22px;
  }

  .byjmt-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .byjmt-tab {
    white-space: nowrap;
  }
}
