:root {
  --gold: #d4a85f;
  --gold-soft: #f4c97c;
  --maroon: #6a162b;

  --bg: #05070b;
  --bg-soft: #05070b;
  --card: #0b0f1a;
  --ink: #eaf0ff;
  --muted: #9db0c4;
  --ring: #202a3c;
  --accent: #141b29;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.65);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --topbar-h: 64px;
  --bottomnav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Inter, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #10172a 0, #020617 40%, #000 100%);
  color: var(--ink);
}

.page-root {
  max-width: 1080px;
  margin: calc(var(--topbar-h) + 12px) auto
    calc(var(--bottomnav-h) + 16px);
  padding: 0 16px 40px;
}

.card {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.92)
  );
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow);
  color: #e5e7eb;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 880px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-root {
    padding-inline: 12px;
  }
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.h1 {
  font-size: 26px;
  margin: 8px 0 6px;
  font-weight: 700;
}

.h2 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  border-radius: 999px;
  border: 1px solid var(--gold);
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.45);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.6);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(156, 163, 175, 0.8);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.btn.small {
  font-size: 12px;
  padding: 6px 10px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  font-size: 11px;
  color: #e5e7eb;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.15), transparent);
  margin-right: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.table th {
  color: var(--muted);
  text-align: left;
  font-weight: 600;
}

.app-footer {
  position: fixed;
  inset-inline: 0;
  inset-block-end: var(--bottomnav-h);
  padding: 6px 16px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(15, 23, 42, 0.92)
  );
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  z-index: 30;
}

.app-footer a {
  color: inherit;
  text-decoration: none;
}

.app-footer .mini-links {
  display: flex;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.clock-mini {
  font-size: 11px;
  margin-top: 2px;
}

/* Modal backdrop */
.apuh-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Kotak modal */
.apuh-modal {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  padding: 18px 18px 14px;
  color: #e5e7eb;
}

.auth-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.auth-header .sub {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}
.auth-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: #e5e7eb;
  font-size: 13px;
  padding: 6px 0;
  cursor: pointer;
}
.auth-tab.active {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #111827;
  border-color: transparent;
  font-weight: 600;
}

.auth-panel {
  margin-bottom: 8px;
}
.auth-label {
  display: block;
  font-size: 12px;
  margin: 6px 0 2px;
  color: #9ca3af;
}
.auth-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 13px;
  box-sizing: border-box;
}
.auth-input:focus {
  outline: none;
  border-color: #facc15;
}

.auth-btn {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  border: none;
  padding: 7px 0;
  background: linear-gradient(135deg, #fbbf24, #facc15);
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(180, 83, 9, 0.6);
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}
.auth-status {
  font-size: 11px;
  color: #a5b4fc;
}
.auth-link {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  text-decoration: underline;
}

.icon-btn.auth-logged {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.account-avatar-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.account-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(250, 204, 21, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #1f2937, #020617);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 32px;
}
.account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-avatar-fallback span {
  transform: translateY(1px);
}
.account-avatar-actions {
  font-size: 12px;
}
.btn-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  cursor: pointer;
  gap: 6px;
  font-size: 12px;
  color: #e5e7eb;
  background: transparent;
}
.btn-file:hover {
  border-color: #facc15;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-card {
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.4);
  padding: 10px 12px;
  background: radial-gradient(circle at top left, #020617, #020617);
}

.social-card-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.social-author {
  font-weight: 600;
  font-size: 14px;
}

.social-meta {
  font-size: 11px;
  color: #9ca3af;
}

.social-body {
  margin: 6px 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.social-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.btn-like,
.btn-comment {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.4);
  background: transparent;
  padding: 3px 10px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  color: #e5e7eb;
  font-size: 12px;
}
.btn-like.liked {
  border-color: #facc15;
  background: rgba(250,204,21,.08);
}

.social-comments {
  border-top: 1px solid rgba(31,41,55,.7);
  margin-top: 8px;
  padding-top: 8px;
}

.comment-item {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.comment-main {
  font-size: 12px;
}

.comment-header {
  display:flex;
  gap:4px;
  align-items:baseline;
}

.comment-author {
  font-weight:600;
}

.comment-meta {
  font-size:11px;
  color:#9ca3af;
}

.comment-body {
  margin-top:2px;
}

.comment-form {
  display:flex;
  gap:4px;
  margin-top:6px;
}

.comment-form input[type="text"] {
  flex:1;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.5);
  background:rgba(15,23,42,.9);
  color:#e5e7eb;
}

.comment-form button {
  font-size:12px;
  border-radius:999px;
  border:0;
  padding:4px 10px;
  cursor:pointer;
  background:linear-gradient(135deg,#facc15,#eab308);
  color:#111827;
}

.composer {
  display:flex;
  gap:8px;
}

.composer-main { flex:1; }

.composer-name {
  font-size:13px;
  font-weight:600;
  margin-bottom:4px;
}

.composer-form textarea {
  width:100%;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.6);
  background:rgba(15,23,42,.95);
  color:#e5e7eb;
  font-size:13px;
  padding:6px 8px;
  resize:vertical;
}

.composer-actions {
  margin-top:6px;
  display:flex;
  justify-content:flex-end;
}

.pengurus-link {
  color: #facc15;
  font-weight: 500;
  text-decoration: none;
}
.pengurus-link:hover {
  text-decoration: underline;
}

/* ------- Lingkar Kerabat di halaman Akun ------- */

.kerabat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.kerabat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.06);
  background: radial-gradient(circle at top, #020617, #020617);
}

.kerabat-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kerabat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #facc15;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.35);
}

.kerabat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kerabat-name {
  font-size: 14px;
  font-weight: 600;
}

.kerabat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fde68a;
}

.kerabat-email {
  font-size: 11px;
  color: var(--muted, #9ca3af);
}

.kerabat-actions .btn-book {
  padding-inline: 14px;
}
