* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
  background: #f4f7fc;
  color: #1e293b;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(145deg, #0b63e5, #2b8aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  -webkit-text-fill-color: #0b63e5;
  font-size: 30px;
}

.search-box {
  display: flex;
  background: white;
  border-radius: 60px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
  transition: 0.2s;
}
.search-box:focus-within {
  border-color: #2b8aff;
  box-shadow: 0 4px 14px rgba(43, 138, 255, 0.15);
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  min-width: 220px;
  color: #1e293b;
}
.search-box button {
  background: #0b63e5;
  border: none;
  color: white;
  padding: 10px 22px;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-box button:hover {
  background: #1a4fbf;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: white;
  padding: 14px 24px;
  border-radius: 48px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  border: 1px solid #edf2f7;
}

.category-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-btn i {
  font-size: 16px;
  color: #64748b;
}
.category-btn:hover {
  background: #f1f5f9;
  color: #0b63e5;
}
.category-btn.active {
  background: #0b63e5;
  color: white;
  box-shadow: 0 4px 10px rgba(11, 99, 229, 0.25);
}
.category-btn.active i {
  color: white;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.card {
  background: white;
  border-radius: 28px;
  padding: 22px 22px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  border: 1px solid #eef2f6;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  border-color: #d0e0ff;
  box-shadow: 0 18px 36px -12px rgba(11, 99, 229, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.custom-icon {
  width: 64px;
  height: 64px;
  background: #eef6ff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #0b63e5;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.3);
}
.custom-icon i {
  filter: drop-shadow(0 2px 4px rgba(11,99,229,0.1));
}

.card-title {
  flex: 1;
}
.card-title h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.card-title .size-badge {
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 12px;
  border-radius: 40px;
  display: inline-block;
  font-weight: 500;
}

.card-desc {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-download {
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b63e5;
  color: white;
  box-shadow: 0 2px 6px rgba(11, 99, 229, 0.25);
}
.btn-download:hover {
  background: #1a4fbf;
  transform: scale(0.96);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: white;
  max-width: 520px;
  width: 100%;
  border-radius: 40px;
  padding: 32px 32px 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
  animation: fadeUp 0.25s ease;
  position: relative;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 40px;
  font-size: 20px;
  cursor: pointer;
  color: #334155;
  transition: 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #e2e8f0;
}
.modal-icon {
  font-size: 56px;
  color: #0b63e5;
  background: #eef6ff;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 28px;
  margin: 16px 0;
  font-size: 14px;
  color: #334155;
}
.modal-meta span i {
  margin-right: 6px;
  color: #0b63e5;
  width: 20px;
}
.modal-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin: 16px 0 24px;
}
.modal-download-btn {
  background: #0b63e5;
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 14px rgba(11, 99, 229, 0.3);
  width: 100%;
  justify-content: center;
}
.modal-download-btn:hover {
  background: #1a4fbf;
  transform: scale(0.97);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.footer {
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 28px;
}

@media (max-width: 600px) {
  .header { flex-direction: column; align-items: stretch; }
  .search-box input { min-width: 140px; }
  .category-nav { border-radius: 28px; padding: 12px 16px; justify-content: center; }
  .modal-box { padding: 24px 20px; }
}