* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg,#1260cc,#0a5fa8);
  color: #fff;
}

/* NAVBAR */
.navbar {
  background: #0274ff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
}

.navbar input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

/* SECTION */
.section {
  padding: 22px 16px;
}

.section h2 {
  margin-bottom: 14px;
  font-size: 20px;
}
/* =========================
   APP HEADER
   ========================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  background: linear-gradient(180deg,#0274ff,#0b5fd7);
  color: #fff;
}

/* tombol close */
.btn-back {
  background: rgba(255,255,255,.2);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;

  font-size: 18px;
  font-weight: 800;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* judul */
.app-title {
  font-size: 17px;
  font-weight: 800;
}
.page {
  padding-top: 12px;
}
/* NAVBAR PAGE (NON INDEX) */
.navbar-page {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* tombol close */
.nav-close {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 10000; /* 🔥 DI ATAS MODAL */
  height: 56px;
  background: linear-gradient(135deg,#2563eb,#2c55dd);
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.btn-close-page {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.app-title {
  flex: 1;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-right: 22px; /* biar center */
}
.navbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-box {
  margin-left: auto;
}

.bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.bubble-text {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  position: relative;
  max-width: 260px;
}

.bubble-text::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent rgba(255,255,255,.15) transparent transparent;
}

.bubble-text span {
  color: #38bdf8;
  font-weight: 600;
  cursor: pointer;
}
.user-box {
  position: relative;
  margin-left: auto;
}

/* bubble */
.nav-bubble {
  position: absolute;
  top: 42px;
  right: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 10px;
  max-width: 180px;
  line-height: 1.3;
  z-index: 999;
}

/* ekor bubble */
.nav-bubble::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,.35) transparent;
}

/* bubble bisa diklik */
.nav-bubble {
  cursor: pointer;
}
.user-btn {
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-wrapper {
  padding: 10px 14px;
  background: linear-gradient(180deg,#0d6efd,#0b5ed7);
}

.search-wrapper input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  font-size: 14px;
  outline: none;
}
#adminBtn {
  position: fixed;
  bottom: 14px;
  left: 14px;
  background: rgba(11, 60, 138, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

#adminBtn:hover {
  background: #2563eb;
}
/* =========================
   GLOBAL ADMIN
   ========================= */
body {
  background: #1d63c5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

/* =========================
   HEADER
   ========================= */
.navbar {
  background: #1258b9;
  color: #fff;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.navbar .brand {
  flex: 1;
  font-weight: bold;
}

/* =========================
   LIST CONTAINER
   ========================= */
.container {
  padding: 12px;
  padding-bottom: 90px; /* biar ga ketutup nav bawah */
}

/* =========================
   CARD ORDER
   ========================= */
.admin-card {
  background: #0b3c8a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.admin-card b {
  font-size: 15px;
}

.admin-card small {
  opacity: .85;
}

/* =========================
   STATUS BADGE
   ========================= */
.admin-card .status {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.status.pending {
  background: #facc15;
  color: #000;
}

.status.success {
  background: #22c55e;
  color: #000;
}

.status.rejected {
  background: #ef4444;
  color: #fff;
}

/* =========================
   BUTTON
   ========================= */
.btn {
  margin-top: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn.ok {
  background: #22c55e;
  color: #000;
}

.btn.no {
  background: #ef4444;
  color: #fff;
}

/* =========================
   NAV BAWAH (ACC / TOLAK)
   ========================= */
#adminNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0b3a7e;
  display: flex;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  z-index: 999;
}

#adminNav button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#adminNav .acc {
  background: #22c55e;
  color: #000;
}

#adminNav .reject {
  background: #ef4444;
  color: #fff;
}
/* =========================
   ACTION BUTTON DI CARD
   ========================= */
.admin-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-card .actions button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-weight: bold;
}
.admin-header {
  background: #0b3a7e;
  padding: 12px;
  color: #fff;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title {
  font-weight: 700;
  font-size: 16px;
}

.admin-actions button {
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.25s ease;
}

/* WARNA DASAR */
.tab.pending { background: #64748b; }
.tab.acc     { background: #22c55e; }
.tab.reject  { background: #ef4444; }

/* TAB AKTIF */
body.page-pending .tab.pending,
body.page-acc .tab.acc,
body.page-reject .tab.reject {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  pointer-events: none;        /* gak bisa diklik */
  filter: brightness(1.15);
}

/* TAB TIDAK AKTIF (hover dikit) */
.admin-tabs .tab:not([style]):hover {
  opacity: 0.85;
  transform: scale(0.98);
}

/* ===== PROFILE DROPDOWN ===== */

.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
  font-weight: 600;
}

.profile-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
}

.profile-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  width: 190px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.profile-menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: 0.2s;
}

.profile-menu a:hover {
  background: #f1f5f9;
}

.profile-menu .divider {
  height: 1px;
  background: #eee;
}

.logout-btn {
  color: red;
  font-weight: 600;
}

.profile-menu.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-back {
  display: inline-block;
  padding: 8px 14px;
  background: #ffffff;
  color: #0b3c8a;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-back:hover {
  opacity: 0.8;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* chip user di navbar */
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(15,23,42,0.9);
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1f2937;
  flex-shrink: 0;
  object-fit: cover;
}

.user-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 13px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.1;
}

.user-email {
  font-size: 10px;
  color: #9ca3af;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-links {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.user-links a {
  font-size: 10px;
  color: #bfdbfe;
  text-decoration: none;
}

.user-links a:hover {
  text-decoration: underline;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* tombol kecil di navbar */
.profile-menu {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.9);
  cursor: pointer;
  color: #e5e7eb;
  font-size: 13px;
}

.profile-trigger:hover {
  background: rgba(30,64,175,0.9);
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1f2937;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #1f2937;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.profile-firstname {
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.profile-caret {
  font-size: 10px;
  opacity: 0.8;
}

/* dropdown */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: 115%;
  min-width: 230px;
  background: #0f172a;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border: 1px solid rgba(148,163,184,0.5);
  padding: 8px 0;
  display: none;
  z-index: 999;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.profile-header-text {
  overflow: hidden;
}

.profile-header-name {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 14px;
}

.profile-header-email {
  font-size: 11px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
}

.profile-item:hover {
  background: rgba(148,163,184,0.15);
}

.profile-item--danger {
  color: #fecaca;
}
/* ===== FOOTER / LICENSE ===== */
/* ===== FOOTER ZYNN STORE ===== */
.zy-footer {
  margin-top: 32px;
  padding: 20px 16px 12px;
  background: #020617; /* sangat gelap, biar beda dari konten */
  color: #e5e7eb;
  font-size: 12px;
}

.zy-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.zy-footer-col {
  flex: 1 1 120px;
  min-width: 120px;
}

.zy-footer-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.zy-footer-text {
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
}

/* Contact & Community headers */
.zy-footer-heading {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.zy-footer-line {
  margin: 2px 0;
  color: #d1d5db;
}

.zy-footer-line a {
  color: #38bdf8;
  text-decoration: none;
}

.zy-footer-line a:hover {
  text-decoration: underline;
}

/* Social icons row */
.zy-footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.social-circle-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #020b3f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.social-circle-icon i {
  font-size: 14px;
  color: #e5e7eb;
}

/* Garis pemisah */
.zy-footer-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
  margin: 18px 0 10px;
}

/* Copyright & text kecil */
.zy-footer-bottom {
  text-align: center;
  margin-bottom: 8px;
}

.zy-footer-copy {
  font-size: 11px;
  color: #9ca3af;
}

.zy-footer-small {
  font-size: 10px;
  color: #6b7280;
}

/* Bar paling bawah */
.zy-footer-bar {
  display: flex;
  justify-content: center;   /* <<< ganti ini */
  align-items: center;
  font-size: 10px;
}

.footer-admin-btn {
  background: #1d4ed8;
  color: #e5e7eb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
  font-weight: 600;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}