:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --accent: #7c3aed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: var(--text);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.logo {
  height: 40px;
}

/* TOOLBAR */
.toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.input,
.select {
  background: #020617;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.input::placeholder {
  color: #6b7280;
}

.input:focus,
.select:focus {
  border-color: var(--accent);
  outline: none;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* IMAGE */
.image-wrap {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NO IMAGE */
.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 13px;
  color: var(--muted);
}

/* CONTENT */
.content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* TITLE */
.title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* META */
.meta {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.3;
}

.meta div:first-child {
  font-weight: 600;
  color: #e5e7eb;
}

/* LABEL */
.label {
  color: #64748b;
  margin-right: 4px;
  font-weight: 500;
}

/* INFO BOX */
.info-box {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #c7d2fe;
}

.info-box a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
}

.info-box a:hover {
  text-decoration: underline;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* VARIANTS */
.variant {
  padding: 12px;
  border: 1px solid #1f2937;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #020617;
  transition: 0.2s;
}

.variant:hover {
  border-color: var(--accent);
}

.variant-title {
  font-weight: 600;
  font-size: 14px;
}

.variant-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* BUTTON */
.close-btn {
  margin-top: 16px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
}