:root {
  --cream: #fdf6ec;
  --cream-border: #f0e4d0;
  --text-dark: #2b2b33;
  --text-muted: #5a5a66;
  --shadow: 0 10px 25px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Sarabun', 'Kanit', -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #eef3fb 0%, #f7f5ff 100%);
  color: var(--text-dark);
  min-height: 100vh;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.site-header .logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.site-header h1 {
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
}

.site-header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.container {
  max-width: 1200px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

.panel {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 32px;
  color: #1b1b22;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 20px;
}

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; } }
@media (max-width: 480px)  { .grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
}

.service-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 24px rgba(0,0,0,0.18);
}

.service-label {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #2f3b52;
}

.service-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

footer.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-link {
  margin-left: auto;
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  border: 1px solid #d9d9ff;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.15s;
  white-space: nowrap;
}

.admin-link:hover { background: #667eea; color: #fff; }
