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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 20px 40px;
  position: relative;
}

/* Background decoration */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  opacity: 0.08;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 50%;
  opacity: 0.08;
  z-index: -1;
}

.header {
  text-align: center;
  margin-bottom: 50px;
}

.header h1 {
  color: #1a202c;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.header p {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 400;
}

.apps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  width: 100%;
  padding: 10px;
}

.app-card {
  background: #ffffff;
  border-radius: 20px;
  width: 200px;
  height: 200px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.18);
}

.app-card:hover::before {
  opacity: 1;
}

.app-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  transition: transform 0.3s ease;
}

.app-card:hover .app-logo {
  transform: scale(1.08);
}

.app-name {
  color: #334155;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

.app-card:hover .app-name {
  color: #667eea;
}

.footer {
  position: absolute;
  bottom: 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Loading state */
.loading {
  color: #64748b;
  font-size: 1.1rem;
  padding: 60px;
  text-align: center;
}

/* Empty state */
.empty-state {
  color: #64748b;
  font-size: 1.1rem;
  text-align: center;
  padding: 60px;
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 40px 16px 30px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .apps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .app-card {
    width: 160px;
    height: 160px;
    padding: 16px;
    border-radius: 16px;
  }

  .app-logo {
    width: 56px;
    height: 56px;
  }

  .app-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .apps-container {
    grid-template-columns: 1fr;
  }
}
