:root{
  --bg: #0f1724;
  --panel: rgba(255,255,255,0.03);
  --glass: rgba(15,23,42,0.75);
  --text: #e6eef8;
  --muted: #9aa6bb;
  --accent: #4f46e5;
  --online: #10b981;
  --offline: #ef4444;
  --checking: #f59e0b;
  --card-radius: 12px;
  --gap: 24px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg,#061025 0%, #071025 100%);
  color:var(--text);
  padding:20px;
}

/* Header - glassmorphism */
.site-header{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  border-radius:12px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-width:1200px;
  margin:0 auto 18px;
}
.brand{display:flex;flex-direction:column}
.site-title{margin:0;font-size:1.05rem;font-weight:700}
.site-subtitle{font-size:.8rem;color:var(--muted)}

/* center search */
.header-center{flex:1;display:flex;justify-content:center}
.search{width:100%;max-width:520px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,0.04);background:rgba(255,255,255,0.02);color:var(--text)}

/* Grid wrapper (centered, compact) */
.main-content{max-width:1200px;margin:0 auto;padding:6px}
.services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:24px;
  align-items:start;
  justify-items:center;
  margin-top:6px;
  padding:10px;
}

/* category header */
.category-section{width:100%}
.category-title{font-size:.95rem;margin:8px 0;color:var(--muted)}

/* Launcher card */
.launcher-card{
  width:100%;
  max-width:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.launcher-card a{ text-decoration:none; color:inherit; width:100%; }

/* Round icon container */
.icon-wrap{
  position:relative;
  width:64px;
  height:64px;
  border-radius:50%;
  background: rgba(255,255,255,0.03);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  margin:0 auto 8px;
  box-shadow: 0 2px 10px rgba(2,6,23,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.icon-wrap img{
  width:36px;
  height:36px;
  object-fit:contain;
  border-radius:6px;
}

/* status badge top-right of icon */
.status-badge {
  position:absolute;
  top:-6px;
  right:-6px;
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,0.35);
  box-shadow:0 1px 4px rgba(0,0,0,0.4);
}
.status-online{ background: var(--online); }
.status-offline{ background: var(--offline); }
.status-checking{
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 30%), var(--checking);
  animation: pulse 1.6s infinite;
  box-shadow:0 0 8px rgba(245,158,11,0.25);
}
@keyframes pulse { 0%{transform:scale(1)}50%{transform:scale(1.18)}100%{transform:scale(1)} }

/* app name */
.app-name{ font-size:0.9rem; margin-top:6px; word-break:break-word; max-width:120px; }

/* hover */
.launcher-card:hover{ transform: translateY(-6px); }
.icon-wrap:hover{ box-shadow:0 10px 24px rgba(79,70,229,0.12); border:1px solid rgba(255,255,255,0.03); }

/* fallback letter */
.icon-letter{
  width:36px;height:36px;border-radius:6px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg, rgba(0,0,0,0.12), rgba(255,255,255,0.02));
  color:var(--text); font-weight:700;
}

/* responsive tweaks */
@media (max-width:640px){
  .services-grid{ grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap:14px; }
  .site-header{padding:12px}
}
