:root {
  --br-orange: #ff6b00;
  --br-orange-dark: #e05e00;
  --br-black: #000000;
  --br-dark: #333333;
  --br-gray: #737373;
  --br-light-gray: #bababa;
  --br-border: #e2e2e2;
  --br-bg: #f6f6f6;
  --br-white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Circular", Arial, Helvetica, sans-serif;
  color: var(--br-dark);
  background: var(--br-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  background: #fff3eb;
  color: var(--br-orange-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Header */
.site-header {
  background: var(--br-white);
  border-bottom: 1px solid var(--br-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.banregio-logo img {
  height: 40px;
  display: block;
}

.main-nav .nav-item {
  font-weight: 700;
  color: var(--br-dark);
  padding: 24px 0;
  border-bottom: 3px solid transparent;
}

.main-nav .nav-item.active {
  color: var(--br-orange);
  border-bottom-color: var(--br-orange);
}

/* Hero */
.hero {
  background: var(--br-orange);
  color: var(--br-white);
  padding: 48px 0 40px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.hero p {
  margin: 0;
  font-size: 1.15rem;
}

/* Content */
.content {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 48px;
}

.card {
  background: var(--br-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
  overflow: hidden;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--br-border);
}

.card-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--br-black);
}

.header-name {
  color: var(--br-gray);
  font-size: 0.9rem;
}

.card-body {
  padding: 24px 28px;
}

.card-body h3 {
  font-size: 1.1rem;
  color: var(--br-orange);
  margin: 24px 0 12px;
}

.empty-message {
  margin: 0;
  color: var(--br-gray);
  font-size: 1.05rem;
}

/* Alerts and status */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.alert-warning {
  background: #fff3eb;
  border-left: 4px solid var(--br-orange);
}

.alert-error {
  background: #fdecec;
  border-left: 4px solid #d93025;
  color: #8a1c14;
}

.status {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.status-valid { background: #e7f6ec; color: #1e7b3c; }
.status-expired { background: #fdecec; color: #b3261e; }
.status-pending { background: #fff7e0; color: #8a6100; }
.status-unknown { background: #eeeeee; color: var(--br-dark); }

/* Tables */
.claims {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.claims th {
  text-align: left;
  background: var(--br-bg);
  color: var(--br-gray);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid var(--br-border);
}

.claims td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--br-border);
  vertical-align: top;
}

.claim-key {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--br-black);
  white-space: nowrap;
}

.claim-label {
  color: var(--br-gray);
  white-space: nowrap;
}

.claim-value {
  word-break: break-all;
}

pre {
  margin: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Details */
details {
  margin-top: 20px;
  border: 1px solid var(--br-border);
  border-radius: 12px;
  padding: 12px 16px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--br-orange);
}

.json-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-top: 12px;
}

.json-grid h4 {
  margin: 0 0 8px;
  color: var(--br-gray);
}

.json-grid pre,
.raw-token {
  background: #1e1e1e;
  color: #f5f5f5;
  padding: 14px;
  border-radius: 8px;
}

.raw-token { margin-top: 12px; }

.note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--br-gray);
}

/* Footer */
.site-footer {
  background: var(--br-orange);
  color: var(--br-white);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo { flex: 0 0 auto; padding-top: 24px; }

.footer-logo img { display: block; width: 180px; height: auto; }

.footer-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
}

.social {
  display: flex;
  gap: 14px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--br-white);
  color: var(--br-orange);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.social a:hover { transform: translateY(-2px); opacity: 0.9; }

.social svg { width: 22px; height: 22px; }

.footer-text {
  text-align: right;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--br-white);
}

.footer-text p { margin: 0 0 20px; }
.footer-text p:last-child { margin-bottom: 0; }

.footer-text a {
  color: var(--br-white);
  text-decoration: none;
}

.footer-text a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .json-grid { grid-template-columns: 1fr; }
  .claim-label { display: none; }
  .claims th:nth-child(2) { display: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-logo { padding-top: 0; }
  .footer-right { align-items: center; }
  .footer-text { text-align: center; }
}
