/* ============================================================
   AUTH ADDITIONS — tambahkan ke assets/css/style.css
   ============================================================ */

/* ---------- USER DROPDOWN (navbar) ---------- */
.user-dropdown {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 40px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  color: var(--text-primary, #e8e0d0);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  transition: background .2s, border-color .2s;
}
.user-btn:hover {
  background: rgba(201,168,76,.15);
  border-color: rgba(201,168,76,.5);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #7b4ea0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.user-name-nav {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  font-size: 10px;
  opacity: .6;
  transition: transform .2s;
}
.user-dropdown.open .user-caret { transform: rotate(180deg); }

.user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #13111f;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px;
  min-width: 200px;
  padding: 8px 0;
  z-index: 999;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.user-dropdown.open .user-menu { display: block; }

.user-menu-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-menu-info strong {
  color: #e8e0d0;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
}
.user-menu-info small {
  color: rgba(232,224,208,.45);
  font-size: 12px;
  font-family: 'DM Mono', monospace;
}

.user-menu-divider {
  border: none;
  border-top: 1px solid rgba(201,168,76,.12);
  margin: 4px 0;
}

.user-menu-item {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(232,224,208,.75);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.user-menu-item:hover {
  background: rgba(201,168,76,.08);
  color: #c9a84c;
}

/* ---------- MOBILE USER INFO ---------- */
.mobile-user-info {
  color: rgba(232,224,208,.7);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  padding: 8px 0;
}
.mobile-user-info strong { color: #c9a84c; }

/* ---------- GATE OVERLAY (halaman terkunci) ---------- */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,7,14,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.gate-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.gate-icon  { font-size: 56px; }
.gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4vw, 34px);
  color: #e8e0d0;
  font-weight: 300;
}
.gate-title em { color: #c9a84c; font-style: italic; }
.gate-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: rgba(232,224,208,.55);
  max-width: 360px;
  line-height: 1.6;
}
.gate-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.gate-btns .btn-primary { padding: 12px 28px; font-size: 14px; }
.gate-btns .btn-ghost   { padding: 12px 28px; font-size: 14px; }

/* ---------- TOAST NOTIFIKASI ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1728;
  border: 1px solid rgba(201,168,76,.3);
  color: #e8e0d0;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 40px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(52,211,153,.4); }
.toast.error   { border-color: rgba(239,68,68,.4);  color: #fca5a5; }

/* ---------- FORM ERROR / LOADING ---------- */
.form-error {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #fca5a5;
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }

.modal-submit.loading {
  opacity: .6;
  cursor: not-allowed;
}