* { box-sizing: border-box; margin: 0; padding: 0 }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: #0d0d14;
  color: #fff;
  min-height: 100vh
}

/* ── Header ────────────────────────────── */
.hdr {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  background: rgba(13,13,20,0.95);
  backdrop-filter: blur(12px);
  z-index: 100
}

.brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px
}

.brand-pill {
  background: linear-gradient(135deg, #059669, #047857);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.72rem;
  letter-spacing: .08em;
  text-transform: uppercase
}

/* ── Auth Bar ──────────────────────────── */
#auth-section {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem
}

#auth-section a {
  color: #60a5fa;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(96,165,250,0.3);
  border-radius: 6px;
  transition: all 0.2s
}

#auth-section a:hover {
  background: rgba(96,165,250,0.1);
  border-color: #60a5fa
}

#auth-section button {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s
}

#auth-section button:hover {
  border-color: #dc2626;
  color: #f87171
}

/* ── Hero ──────────────────────────────── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  text-align: center
}

.hero-badge {
  display: inline-block;
  background: rgba(5,150,105,0.15);
  border: 1px solid rgba(5,150,105,0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  margin-bottom: 20px;
  letter-spacing: .04em
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px
}

.hero h1 span {
  background: linear-gradient(135deg, #34d399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 36px;
  line-height: 1.7
}

/* ── Tabs ──────────────────────────────── */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  transition: all 0.2s
}

.tab-btn.active {
  background: rgba(5,150,105,0.2);
  border-color: #059669;
  color: #fff
}

.tab-btn:hover {
  border-color: rgba(5,150,105,0.4);
  color: #fff
}

/* ── Tab Content ──────────────────────── */
.tab-content { display: none }
.tab-content.active { display: block }

/* ── Test Cards Grid ─────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  text-align: left
}

.exam-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s
}

.exam-card:hover {
  border-color: rgba(5,150,105,0.4);
  transform: translateY(-3px)
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34d399);
  opacity: 0.7
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px
}

.card-num {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px
}

.card-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
  line-height: 1.4
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(5,150,105,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(5,150,105,0.3);
  margin-bottom: 14px
}

.tag.locked {
  background: rgba(220,38,38,0.15);
  color: #f87171;
  border-color: rgba(220,38,38,0.3)
}

.card-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  transition: all 0.2s
}

.card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5,150,105,0.35)
}

/* ── Responsive ────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem }
  .hero { padding: 32px 14px 40px }
  .hdr { padding: 0 14px }
  .cards { grid-template-columns: 1fr }
}
