.card {
  width: 100%;
  max-width: 54rem;
  max-height: 94vh;
  background-color: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  overflow-y: auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: var(--card-header);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-box {
  padding: 0.5rem;
  background-color: rgba(99, 102, 241, 0.2);
  border-radius: 0.75rem;
  color: #818cf8;
  display: flex;
}

.title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Stats Ribbon */
.stats-ribbon {
  display: flex;
  justify-content: space-around;
  background-color: rgba(15, 23, 42, 0.3);
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-val {
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: rgba(30, 41, 59, 0.8);
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center; /* Center the footer content */
  font-size: 0.75rem;
  font-weight: 500;
  position: relative; /* For absolute positioning of skip button */
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center; /* Center elements in footer-left */
  text-align: center;
}

.credit-text {
  color: var(--text-muted);
  opacity: 0.8;
}

.credit-text a {
  color: #ffdd00; /* BMC Orangish-Yellow */
  text-decoration: none;
  font-weight: 700;
  transition:
    color 0.2s,
    text-shadow 0.2s;
}

.credit-text a:hover {
  color: #ffea00;
  text-shadow: 0 0 8px rgba(255, 221, 0, 0.4);
}

.perm-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
}

.btn-skip {
  position: absolute;
  right: 1.25rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
