/* account.css — tombol akun, modal login/daftar, & halaman profil, senada tema vintage Lumorie Studio */

.account-bar {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 600;
  display: flex; align-items: center; gap: 10px;
}

/* Selama user lagi di dalam studio/sesi foto (login ATAU belum login), tombol akun disembunyikan total.
   Class 'in-booth-session' di-toggle dari app.js: ditambahin pas enterRoomUI(), dilepas pas leaveRoom(). */
body.in-booth-session .account-bar {
  display: none !important;
}

.account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-dark, #e8dcc4);
  border: 2px solid var(--border-color, #3b3127);
  color: var(--ink, #2c241b);
  font-family: 'Courier Prime', monospace;
  font-weight: bold; font-size: 12px; letter-spacing: 0.5px;
  padding: 9px 16px; border-radius: 4px; cursor: pointer;
  box-shadow: 3px 3px 0px var(--shadow-color, rgba(44,36,27,0.2));
  transition: all 0.15s ease;
}
.account-btn:hover { background: var(--border-color); color: var(--paper); }
.account-btn:active { transform: translateY(2px); box-shadow: none; }

.account-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-dark, #e8dcc4);
  border: 2px solid var(--border-color, #3b3127);
  border-radius: 30px; padding: 5px 14px 5px 5px; cursor: pointer;
  box-shadow: 3px 3px 0px var(--shadow-color, rgba(44,36,27,0.2));
  font-family: 'Courier Prime', monospace; font-weight: bold; font-size: 12px;
  color: var(--ink);
}
.account-chip img, .account-chip .avatar-fallback {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--border-color); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ==== Modal Login / Daftar ==== */
.auth-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 99998;
  background: rgba(20, 15, 10, 0.75);
  align-items: center; justify-content: center; padding: 16px;
}
.auth-modal-overlay.active { display: flex; animation: fadeIn 0.25s ease; }

.auth-modal {
  background: var(--paper-dark, #e8dcc4);
  border: 2px solid var(--border-color, #3b3127);
  border-radius: 6px;
  width: 100%; max-width: 380px;
  box-shadow: 6px 6px 0px var(--shadow-color, rgba(44,36,27,0.2));
  overflow: hidden;
}
.auth-modal .panel-header { display: flex; justify-content: space-between; align-items: center; }
.auth-modal .panel-header .close-x { cursor: pointer; opacity: 0.85; }
.auth-modal .panel-header .close-x:hover { opacity: 1; }
.auth-modal-body { padding: 26px 24px; background: var(--paper); }
.auth-modal-body h2 { font-size: 22px; margin-bottom: 6px; color: var(--ink); }
.auth-modal-body .auth-sub { font-size: 12px; color: var(--ink-light); margin-bottom: 20px; }

.auth-field { margin-bottom: 14px; text-align: left; }
.auth-field label { display: block; font-size: 11px; font-weight: bold; letter-spacing: 1px; color: var(--ink-light); margin-bottom: 6px; }
.auth-field input {
  width: 100%; padding: 12px 14px; border-radius: 4px;
  border: 1px dashed var(--border-color); background: rgba(255,255,255,0.6);
  color: var(--ink); font-family: 'Courier Prime', monospace; font-weight: bold;
  font-size: 14px; letter-spacing: 0.5px; text-align: left; text-transform: none;
  outline: none; transition: all 0.2s;
}
.auth-field input:focus { border: 1px solid var(--border-color); background: #fff; }

.auth-error {
  display: none; font-size: 12px; color: var(--alert, #a83232); font-weight: bold;
  background: rgba(168,50,50,0.08); border: 1px dashed var(--alert, #a83232);
  border-radius: 4px; padding: 8px 10px; margin-bottom: 14px;
}
.auth-error.show { display: block; }

.auth-modal-body .btn-vintage { width: 100%; margin-top: 4px; }

.auth-divider { display: flex; align-items: center; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px dashed var(--border-light); }
.auth-divider span { padding: 0 10px; font-size: 11px; font-weight: bold; letter-spacing: 1px; color: var(--ink-light); }

.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #3c3c3c; border: 2px solid var(--border-color);
  border-radius: 4px; padding: 12px 16px; font-family: 'Courier Prime', monospace;
  font-weight: bold; font-size: 13px; letter-spacing: 0.5px; cursor: pointer;
  box-shadow: 3px 3px 0px var(--shadow-color); transition: all 0.15s ease;
}
.btn-google:hover { background: #f4f4f4; }
.btn-google:active { transform: translateY(2px); box-shadow: none; }
.btn-google svg { width: 18px; height: 18px; }

.auth-switch { text-align: center; font-size: 12px; margin-top: 18px; color: var(--ink-light); }
.auth-switch a { color: var(--ink); font-weight: bold; cursor: pointer; text-decoration: underline; }

/* ==== Halaman Profil ==== */
.profile-wrap { width: 100%; max-width: 560px; }
.profile-hero {
  display: flex; align-items: center; gap: 20px; padding-bottom: 22px;
  border-bottom: 1px dashed var(--border-light); margin-bottom: 22px;
}
.profile-avatar {
  width: 78px; height: 78px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-color); background: var(--border-color);
  color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-family: 'Playfair Display', serif;
}
.profile-hero h2 { font-size: 24px; margin-bottom: 4px; }
.profile-hero .muted { font-size: 13px; color: var(--ink-light); }
.profile-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.profile-badge {
  font-size: 10px; font-weight: bold; letter-spacing: 0.5px; padding: 4px 9px;
  border-radius: 30px; border: 1px solid var(--border-color); color: var(--ink-light);
}
.profile-badge.on { background: var(--border-color); color: var(--paper); border-color: var(--border-color); }

.profile-section { margin-bottom: 24px; }
.profile-section h3 { font-size: 14px; letter-spacing: 1px; margin-bottom: 12px; color: var(--ink); }
