*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #020617 100%);
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('https://cdn.alturahost.com/IJUi.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(70vmin, 520px);
  opacity: 0.08;
  pointer-events: none;
  filter: drop-shadow(0 0 35px rgba(15, 23, 42, 0.9));
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  border-bottom: 1px solid rgba(37, 99, 235, 0.6);
  backdrop-filter: blur(12px);
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.97),
      rgba(15, 23, 42, 0.82),
      transparent
    );
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #1d4ed8, #020617 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.7);
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #eff6ff;
}

.brand-sub {
  font-size: 0.8rem;
  color: #93c5fd;
}

.nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.nav-link {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #e5e7eb;
  transition: all 0.18s ease-out;
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.85);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.user-name {
  font-weight: 600;
  color: #dbeafe;
  font-size: 0.85rem;
}

.user-role {
  font-size: 0.75rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.logout-link {
  color: #fca5a5 !important;
}

.logout-link:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.main {
  flex: 1;
  padding: 2.1rem 0 2.7rem;
}

.page-title {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  color: #f9fafb;
}

.page-subtitle {
  font-size: 0.92rem;
  color: #9ca3af;
  margin-bottom: 1.4rem;
  max-width: 40rem;
}

.section-divider {
  margin-top: 2.4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.card {
  background: radial-gradient(circle at top left, #020617 0, #020617 55%);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem 1.15rem;
  border: 1px solid rgba(30, 64, 175, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.26), transparent 65%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card-highlight {
  border-color: rgba(59, 130, 246, 0.9);
}

.card-title {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.card-question {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
}

.card-answer {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd5f5;
  margin-top: 0.1rem;
}

.card-subheading {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  margin-bottom: 0.35rem;
  color: #f97316;
}

.points-list {
  list-style: none;
  padding-right: 1rem;
  margin-bottom: 0.4rem;
}

.points-list li {
  position: relative;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin-bottom: 0.15rem;
}

.points-list li::before {
  content: '•';
  position: absolute;
  right: -0.75rem;
  color: #38bdf8;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.25rem;
  margin-bottom: 0.4rem;
}

.chip-code {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.9);
  color: #dbeafe;
}

.chip-type {
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #ffedd5;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
  margin-top: 0.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #e5e7eb;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  background: transparent;
  margin-right: 0.4rem;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

.actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.9);
  padding: 0.75rem 0;
  margin-top: auto;
  background: radial-gradient(circle at bottom, rgba(17, 24, 39, 0.95), transparent 70%);
}

.footer-content {
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }
}


