:root {
  --blue: #184f9e;
  --blue-dark: #0d2f68;
  --orange: #ff710a;
  --orange-dark: #cf5200;
  --mint: #bff7f2;
  --paper: #f7fbff;
  --ink: #10223f;
  --muted: #61708a;
  --line: rgba(16, 34, 63, 0.12);
  --shadow: 0 22px 55px rgba(11, 33, 75, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 251, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 54px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid white;
  box-shadow: 0 8px 20px rgba(24, 79, 158, 0.22);
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { color: var(--muted); }
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-dark);
  font-weight: 700;
}
.nav form { margin: 0; }
.link-button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 700;
}
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}
.nav-cta, .button-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 14px 28px rgba(255, 113, 10, 0.22);
}
.button-secondary {
  background: white;
  color: var(--blue-dark);
  border: 1px solid var(--line);
}

.flash {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
}
.flash-success { background: #e7f9ec; color: #14633a; }
.flash-warning { background: #fff4d6; color: #7b5600; }
.flash-danger { background: #ffe6e6; color: #8a1d1d; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 40px;
  background:
    linear-gradient(135deg, rgba(24, 79, 158, 0.98), rgba(13, 47, 104, 0.96)),
    url("/assets/logo-radio-syariah.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}
.hero h1 {
  max-width: 760px;
  margin: 12px 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}
.hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 1.08rem;
  line-height: 1.7;
}
.eyebrow {
  display: inline-flex;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}
.hero .eyebrow { color: var(--mint); }
.hero-actions, .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-stats span {
  min-width: 120px;
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--mint); }
.hero-card {
  padding: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.player {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.player audio { width: 100%; }
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff0e6;
  color: var(--orange-dark);
  font-weight: 900;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 18px 0;
}
.section-head h2, .page-head h1, .auth-panel h1 {
  margin: 8px 0 18px;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.feature-grid, .cards, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article, .card, .panel, .metric, .auth-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 34, 63, 0.08);
}
.feature-grid article, .card, .panel, .metric { padding: 18px; }
.feature-grid strong, .card h3 { color: var(--blue-dark); }
.feature-grid p, .card p, .list-item p, .muted { color: var(--muted); line-height: 1.55; }
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.list { display: grid; gap: 12px; }
.list-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.list-item.compact { padding: 12px; }
.list-item span, .card span {
  display: block;
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 800;
}
.list-item strong { display: block; margin: 4px 0; }

.auth-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  background: linear-gradient(145deg, rgba(24,79,158,0.08), rgba(255,113,10,0.08));
}
.auth-panel {
  width: min(520px, 100%);
  padding: 28px;
}
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 7px; font-weight: 800; color: var(--blue-dark); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
}
textarea { resize: vertical; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 18px 48px;
}
.sidebar {
  align-self: start;
  display: grid;
  gap: 8px;
  position: sticky;
  top: 86px;
  padding: 14px;
  border-radius: 8px;
  background: var(--blue-dark);
  color: white;
}
.sidebar a {
  padding: 11px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
}
.admin-side { background: #16253f; }
.content { min-width: 0; }
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.dashboard-grid {
  grid-template-columns: 2fr repeat(4, 1fr);
  margin-bottom: 18px;
}
.dashboard-grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member-card {
  display: grid;
  grid-template-columns: 78px 1fr 104px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: var(--shadow);
}
.member-card h2 { margin: 4px 0; }
.member-card p { margin: 0 0 8px; color: rgba(255,255,255,0.78); }
.member-photo, .verify-photo {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid rgba(255,255,255,0.7);
}
.qr {
  width: 104px;
  height: 104px;
  border-radius: 6px;
  background: white;
  padding: 5px;
}
.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  color: var(--blue-dark);
}
.metric span { color: var(--muted); font-weight: 800; }
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inline-form input, .inline-form select { width: auto; min-width: 120px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: #eff6ff; color: var(--blue-dark); }
td span { color: var(--muted); font-size: 0.9rem; }
.table-wrap { overflow-x: auto; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 64px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--blue-dark);
  color: white;
}
.footer p { margin: 6px 0 0; color: rgba(255,255,255,0.72); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 800; }

@media (max-width: 980px) {
  .hero, .two-col, .app-shell { grid-template-columns: 1fr; }
  .feature-grid, .cards, .dashboard-grid, .dashboard-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .member-card { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero { padding-top: 32px; }
  .feature-grid, .cards, .dashboard-grid, .dashboard-grid.small, .form-grid { grid-template-columns: 1fr; }
  .member-card { grid-template-columns: 64px 1fr; }
  .member-card .qr { grid-column: 1 / -1; }
  .page-head, .footer { flex-direction: column; align-items: flex-start; }
}
