:root {
  --primary: #128C7E;
  --primary-dark: #075E54;
  --accent: #25D366;
  --bg: #f4f6f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; font-size: 14px; opacity: 0.9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.brand { font-weight: 700; font-size: 18px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
h1 { font-size: 22px; margin-top: 0; }
h2 { font-size: 17px; color: var(--primary-dark); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-student { background: #dbeafe; color: #1e40af; }
.badge-investor { background: #dcfce7; color: #166534; }
.badge-friend { background: #fef3c7; color: #92400e; }
.badge-family { background: #fce7f3; color: #9d174d; }
.badge-other { background: #e5e7eb; color: #374151; }
.btn {
  display: inline-block; background: var(--primary); color: #fff; border: none;
  padding: 9px 16px; border-radius: 6px; cursor: pointer; text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.btn:hover { background: var(--primary-dark); }
.btn-secondary { background: #6b7280; }
.btn-danger { background: var(--danger); }
.btn-wish { background: var(--accent); }
.btn-wish:hover { background: #1ea952; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
input, select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px;
}
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.stat-box .num { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-box .label { font-size: 13px; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.login-wrap { max-width: 380px; margin: 80px auto; }
.upcoming-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.upcoming-item:last-child { border-bottom: none; }
.days-left { font-size: 12px; color: var(--muted); white-space: nowrap; }
.filters { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filters select, .filters input { width: auto; }
.sent-tag { font-size: 12px; color: var(--primary); font-weight: 600; }
