:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --border: #e5e7eb;
  --populer: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Header Profil */
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.avatar {
  font-size: 64px;
  flex-shrink: 0;
}

.profile-text h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

.sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.desc {
  font-size: 13px;
  color: var(--muted);
}

.contact {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  font-size: 12.5px;
  color: var(--text);
  background: #fff;
}

.chip:hover { background: #f3f4f6; }

/* Actions */
.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-outline {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover { background: #f3f4f6; }

/* Section */
.section { margin-bottom: 24px; }

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.1s, box-shadow 0.2s;
  position: relative;
}

.card:active { transform: scale(0.98); }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--primary); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card .ikon {
  font-size: 24px;
  flex-shrink: 0;
}

.badge-populer {
  font-size: 11px;
  font-weight: 700;
  color: var(--populer);
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text);
}

.card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-count {
  font-size: 12px;
  color: var(--muted);
}

.card-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
  color: var(--muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 0;
  color: var(--muted);
  font-size: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 200;
}

.toast.show { opacity: 1; }

@media (max-width: 600px) {
  body { padding: 12px; }
  .profile { flex-direction: column; align-items: stretch; text-align: center; }
  .contact { margin-left: 0; margin-top: 16px; justify-content: center; flex-direction: row; }
  .actions { flex-direction: column; }
  .btn-outline { width: 100%; text-align: center; }
}
