:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #97a0b3;
  --accent: #6ee7b7;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --glass-2: rgba(255, 255, 255, 0.02);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
  color: #e6eef6;
  background: linear-gradient(180deg, var(--bg), #071021 120%);
  min-height: 100vh;
}
.wrap {
  max-width: 1100px;
  margin: 48px auto;
  padding: 28px;
}

header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #06202a;
}
h1 {
  font-size: 22px;
  margin: 0;
}
p.lead {
  margin: 0;
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 200px;
}
input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass);
  background: transparent;
  color: inherit;
  outline: none;
}
.filter {
  display: flex;
  gap: 8px;
}
select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--glass);
  background: transparent;
  color: inherit;
}
select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--glass);
  background: #0b1220;   
  color: #e6eef6;        
  appearance: none;      
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

select option {
  background: #0b1220;   
  color: #e6eef6;        
  padding: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, var(--card), #06121b);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
  border: 1px solid var(--glass-2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.8);
}
.thumb {
  height: 140px;
  border-radius: 10px;
  background: #06202b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta {
  padding-top: 10px;
}
.title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}
.sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 6, 14, 0.6),
    rgba(2, 6, 23, 0.85)
  );
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 60;
}
.overlay.open {
  display: flex;
}
.sheet {
  background: linear-gradient(180deg, #081424, #05101a);
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.8);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
.cert-view {
  background: #071422;
  border-radius: 12px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 18px;
  min-height: 420px;
}
.cert-view img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.6);
}
.side {
  padding: 8px;
}
.side h2 {
  margin: 2px 0 6px;
}
.side p {
  color: var(--muted);
  margin: 6px 0;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #052024;
  font-weight: 700;
  text-decoration: none;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .sheet {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }
  .side {
    order: 2;
  }
}
footer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 22px;
}
