:root {
  --bg: #f4efe6;
  --surface: rgba(255, 250, 243, 0.88);
  --surface-strong: #fffaf3;
  --surface-dark: #1d2d2a;
  --text: #1a1f1d;
  --muted: #5f685f;
  --line: rgba(34, 54, 47, 0.1);
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #f59e0b;
  --danger: #dc2626;
  --success: #15803d;
  --shadow: 0 24px 60px rgba(17, 33, 29, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --container: 1180px;
  --heading-font: "Space Grotesk", "Segoe UI", sans-serif;
  --body-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(16, 185, 129, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(245, 158, 11, 0.16),
      transparent 28%
    ),
    linear-gradient(180deg, #f7f0e6 0%, #f4efe6 52%, #efe7da 100%);
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.site-shell {
  padding-bottom: 48px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244, 239, 230, 0.78);
  border-bottom: 1px solid rgba(29, 45, 42, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: white;
  box-shadow: var(--shadow);
}
.nav-links,
.nav-actions,
.tag-row,
.info-row,
.card-meta,
.user-line,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-strong);
}
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(17, 33, 29, 0.08);
  color: var(--muted);
}
.tag {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 600;
}
.tag.urgent {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}
.tag.success {
  background: rgba(21, 128, 61, 0.1);
  color: var(--success);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 100%);
  color: white;
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.22);
}
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid rgba(17, 33, 29, 0.08);
}
.hero {
  padding: 60px 0 34px;
}
.hero-grid,
.two-col,
.dashboard-grid,
.detail-grid,
.profile-grid,
.admin-grid,
.leader-grid,
.feed-grid {
  display: grid;
  gap: 24px;
}
.hero-grid,
.two-col,
.dashboard-grid,
.detail-grid,
.profile-grid,
.admin-grid {
  grid-template-columns: 1.2fr 0.8fr;
}
.leader-grid {
  grid-template-columns: 1fr 1fr;
}
.feed-grid {
  grid-template-columns: 0.84fr 1.16fr;
}
.glass-card,
.panel,
.stat-card,
.feature-card,
.request-card,
.timeline-item,
.badge-card,
.auth-card,
.form-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-copy,
.hero-panel,
.panel,
.auth-card,
.form-card {
  border-radius: var(--radius-xl);
  padding: 28px;
}
.hero-copy {
  background: linear-gradient(
    160deg,
    rgba(255, 250, 243, 0.9) 0%,
    rgba(246, 240, 230, 0.85) 100%
  );
}
.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--primary-strong);
  font-weight: 800;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}
h3 {
  font-size: 1.28rem;
}
p {
  color: var(--muted);
  line-height: 1.7;
}
.hero-actions,
.stats-grid,
.card-grid,
.mini-grid,
.stack,
.form-grid,
.auth-grid,
.profile-form,
.notif-list,
.rank-list,
.helper-list,
.message-list {
  display: grid;
  gap: 16px;
}
.hero-actions {
  margin-top: 24px;
  grid-template-columns: repeat(2, max-content);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #173430 0%, #102926 100%);
  color: white;
}
.hero-panel p,
.page-hero .panel p,
.auth-side p,
.auth-side li {
  color: rgba(255, 255, 255, 0.75);
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -32% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.45),
    transparent 65%
  );
}
.orb {
  position: absolute;
  inset: 24px 24px auto auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b);
  opacity: 0.85;
}
.stats-grid {
  margin-top: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.card-grid {
  grid-template-columns: repeat(3, 1fr);
}
.mini-grid {
  grid-template-columns: repeat(4, 1fr);
}
.stat-card,
.feature-card,
.request-card,
.timeline-item,
.badge-card {
  border-radius: 24px;
  padding: 22px;
}
.stat-value {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
}
.section {
  padding: 24px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.page-hero {
  padding: 36px 0 18px;
}
.page-hero .panel {
  background: linear-gradient(
    140deg,
    rgba(20, 29, 32, 0.93),
    rgba(16, 26, 29, 0.88)
  );
  color: white;
}
.panel,
.auth-card,
.form-card {
  border: 1px solid rgba(255, 255, 255, 0.66);
}
.metric,
.list-item,
.rank-item,
.helper-item,
.notif-item,
.message-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child,
.metric:last-child {
  border-bottom: 0;
}
.rank-item,
.helper-item,
.notif-item,
.message-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 33, 29, 0.06);
}
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 33, 29, 0.08);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}
.form-grid,
.auth-grid,
.profile-form {
  grid-template-columns: repeat(2, 1fr);
}
.field,
.field-full {
  display: grid;
  gap: 8px;
}
.field-full {
  grid-column: 1 / -1;
}
label {
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 33, 29, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 16px;
  outline: none;
}
textarea {
  min-height: 148px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}
.auth-layout {
  min-height: calc(100vh - 79px);
  display: grid;
  place-items: center;
  padding: 32px 0 48px;
}
.auth-wrap {
  width: min(1120px, 100%);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}
.auth-card,
.auth-side {
  padding: 30px;
}
.auth-side {
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #173430, #102926);
  color: white;
  position: relative;
  overflow: hidden;
}
.auth-side ul {
  padding-left: 20px;
  line-height: 1.8;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #fb7185);
  color: #1d1d1d;
  font-family: var(--heading-font);
  font-weight: 800;
}
.avatar.teal {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: white;
}
.avatar.dark {
  background: linear-gradient(135deg, #2c3e50, #1f2937);
  color: white;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  color: var(--muted);
  font-weight: 700;
}
.footer {
  padding: 26px 0 42px;
  color: var(--muted);
}
.center {
  text-align: center;
}
.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  gap: 10px;
}
.toast {
  min-width: 260px;
  max-width: 320px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #173430;
  color: white;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.65s ease forwards;
}
.fade-in:nth-child(2) {
  animation-delay: 0.08s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.16s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .dashboard-grid,
  .detail-grid,
  .profile-grid,
  .feed-grid,
  .leader-grid,
  .admin-grid,
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .mini-grid,
  .stats-grid,
  .form-grid,
  .auth-grid,
  .profile-form {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .card-grid,
  .mini-grid,
  .stats-grid,
  .form-grid,
  .auth-grid,
  .profile-form {
    grid-template-columns: 1fr;
  }
  .container {
    width: min(var(--container), calc(100% - 20px));
  }
  .hero-copy,
  .hero-panel,
  .panel,
  .auth-card,
  .auth-side,
  .form-card,
  .stat-card,
  .feature-card,
  .request-card {
    padding: 22px;
  }
  h1 {
    font-size: 2.6rem;
  }
}
