/* Jol Kona account experience — shared by all pages */
.auth-nav-control { display:flex; align-items:center; }
.auth-avatar { width:30px; height:30px; border-radius:50%; overflow:hidden; background:var(--rose-gold); color:#fff; display:flex; align-items:center; justify-content:center; font-size:0.72rem; font-weight:600; transition:transform .2s ease; border:1px solid var(--border-light); }
.auth-user-btn:hover .auth-avatar { transform:scale(1.08); border-color:var(--rose-gold); }
.auth-avatar img { width:100%; height:100%; object-fit:cover; }
.auth-modal { position:fixed; inset:0; z-index:11000; padding:24px; display:grid; place-items:center; background:rgba(45,41,38,.34); backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px); opacity:0; visibility:hidden; transition:opacity .3s ease,visibility .3s ease; }
.auth-modal.is-open { opacity:1; visibility:visible; }
.auth-panel { position:relative; width:min(100%,460px); max-height:calc(100vh - 48px); overflow:auto; background:linear-gradient(145deg,rgba(255,254,249,.98),rgba(254,240,232,.96)); border:1px solid rgba(255,255,255,.8); border-radius:24px; padding:38px; box-shadow:0 24px 70px rgba(45,41,38,.22); transform:translateY(15px) scale(.98); transition:transform .35s cubic-bezier(.16,1,.3,1); }
.auth-modal.is-open .auth-panel { transform:translateY(0) scale(1); }
.auth-close { position:absolute; top:14px; right:16px; color:var(--text-secondary); font-size:27px; line-height:1; padding:5px 9px; }
.auth-kicker { color:var(--rose-gold); font-family:var(--font-script); font-size:1.3rem; margin-bottom:2px; }
.auth-panel h2 { font-size:2rem; margin-bottom:6px; }
.auth-subtitle { font-size:.9rem; line-height:1.55; }
.auth-message { min-height:0; margin:0; font-size:.84rem; line-height:1.45; transition:all .2s; }
.auth-message:not(:empty) { margin:16px 0 0; padding:9px 12px; border-radius:9px; }
.auth-message.error { color:#9d3d38; background:#fae7e4; }
.auth-message.success { color:#496d4b; background:#e7f1e7; }
.auth-google { width:100%; min-height:48px; border-radius:999px; font-family:var(--font-modern,var(--font-body)); font-size:.85rem; letter-spacing:.04em; transition:transform .2s ease,box-shadow .2s ease,opacity .2s; margin-top:22px; background:#fff; color:var(--text-primary); border:1px solid var(--border-medium); box-shadow:var(--shadow-soft); }
.auth-google span { font:bold 1rem Arial; color:#4285f4; margin-right:9px; }
.auth-google:hover { transform:translateY(-2px); box-shadow:var(--shadow-medium); }
.auth-google:disabled { opacity:.65; cursor:wait; transform:none; }
.auth-modal-open { overflow:hidden!important; }
.account-page { min-height:100vh; padding:150px 24px 80px; background:var(--cream); }.account-card { max-width:640px; margin:auto; padding:44px; background:var(--ivory); border:1px solid var(--border-light); border-radius:var(--radius-lg); box-shadow:var(--shadow-medium); text-align:center; }.account-avatar { width:80px; height:80px; border-radius:50%; margin:0 auto 17px; display:grid; place-items:center; overflow:hidden; background:var(--rose-gold); color:#fff; font:600 1.3rem var(--font-modern); }.account-avatar img { width:100%; height:100%; object-fit:cover; }.account-email { margin:3px 0 22px; }.account-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }

/* ─── Account Dropdown (logged-in users) ─── */
.account-menu {
  position:fixed;
  z-index:10500;
  width:280px;
  max-width:calc(100vw - 24px);
  padding:8px;
  background:linear-gradient(160deg,rgba(255,254,249,.98),rgba(254,240,232,.96));
  border:1px solid var(--border-light);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(45,41,38,.22);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  opacity:0;
  transform:translateY(-6px) scale(.98);
  transform-origin:top right;
  transition:opacity .2s ease,transform .24s cubic-bezier(.16,1,.3,1);
}
.account-menu.is-open { opacity:1; transform:translateY(0) scale(1); }
.account-menu[hidden] { display:none; }
.account-menu-header {
  display:flex; align-items:center; gap:12px;
  padding:10px 10px 12px;
  border-bottom:1px solid var(--border-light);
  margin-bottom:6px;
}
.account-menu-avatar { width:42px; height:42px; flex-shrink:0; border-radius:50%; overflow:hidden; background:var(--rose-gold); color:#fff; display:grid; place-items:center; font:600 .85rem var(--font-modern,var(--font-body)); }
.account-menu-avatar img { width:100%; height:100%; object-fit:cover; }
.account-menu-identity { min-width:0; flex:1; }
.account-menu-name {
  font-family:var(--font-modern,var(--font-body));
  font-size:.92rem;
  color:var(--text-primary);
  font-weight:600;
  letter-spacing:.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.account-menu-email {
  font-size:.74rem;
  color:var(--text-secondary);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-top:1px;
}
.account-menu-list { list-style:none; margin:0; padding:0; }
.account-menu-divider { height:1px; background:var(--border-light); margin:6px 4px; }
.account-menu-item {
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:9px 10px;
  border-radius:10px;
  font-family:var(--font-modern,var(--font-body));
  font-size:.84rem;
  color:var(--text-primary);
  background:transparent;
  border:0;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.account-menu-item:hover, .account-menu-item:focus-visible { background:var(--soft-pink); color:var(--rose-gold-dark); outline:none; }
.account-menu-item--danger { color:#9d3d38; }
.account-menu-item--danger:hover, .account-menu-item--danger:focus-visible { background:#fae7e4; color:#7e2f2a; }
.account-menu-icon { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; color:var(--rose-gold); flex-shrink:0; }
.account-menu-item--danger .account-menu-icon { color:#9d3d38; }
.account-menu-label { flex:1; }
.account-menu-action:disabled { opacity:.6; cursor:wait; }

/* ─── Dark mode ───
   The panel, Google button and account menu use hardcoded light surfaces,
   while text colours follow the dark theme variables — producing light text
   on light surfaces. Re-skin the surfaces so everything stays readable. */
[data-theme="dark"] .auth-modal { background:rgba(10,8,7,.55); }
[data-theme="dark"] .auth-panel {
  background:linear-gradient(145deg,rgba(45,37,32,.98),rgba(30,28,26,.97));
  border-color:rgba(255,255,255,.12);
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}
[data-theme="dark"] .auth-kicker { color:var(--rose-gold-light); }
[data-theme="dark"] .auth-google {
  background:#1E1C1A;
  color:var(--text-primary);
  border-color:var(--border-medium);
  box-shadow:0 4px 18px rgba(0,0,0,.35);
}
[data-theme="dark"] .auth-google:hover { background:#2D2520; border-color:var(--rose-gold); box-shadow:0 8px 28px rgba(0,0,0,.45); }
[data-theme="dark"] .auth-message.error { color:#F0A9A0; background:rgba(157,61,56,.32); }
[data-theme="dark"] .auth-message.success { color:#A9CFA9; background:rgba(73,109,75,.34); }
[data-theme="dark"] .account-menu {
  background:linear-gradient(160deg,rgba(45,37,32,.98),rgba(30,28,26,.97));
  border-color:rgba(255,255,255,.12);
  box-shadow:0 18px 50px rgba(0,0,0,.55);
}
[data-theme="dark"] .account-menu-item:hover,
[data-theme="dark"] .account-menu-item:focus-visible { background:var(--lotus-pink); color:var(--rose-gold-light); outline:none; }
[data-theme="dark"] .account-menu-item--danger { color:#F0A9A0; }
[data-theme="dark"] .account-menu-item--danger .account-menu-icon { color:#F0A9A0; }
[data-theme="dark"] .account-menu-item--danger:hover,
[data-theme="dark"] .account-menu-item--danger:focus-visible { background:rgba(157,61,56,.32); color:#F7C6BE; }

/* Mobile: the nav collapses to the redesigned drawer (css/mobile-nav.css). */
@media(max-width:1024px){
  .nav .nav-inner { flex-wrap:nowrap; justify-content:space-between; padding:0 16px; }
  .nav .nav-brand { width:auto; }
  .nav .nav-brand-logo { height:38px; }
  .nav .nav-actions { width:auto; margin:0; gap:8px; }
  .nav .nav-actions > .nav-action-btn, .nav .auth-nav-control { display:none; }
}
@media(max-width:520px){.auth-modal{padding:14px}.auth-panel{padding:31px 23px;border-radius:18px}.account-page{padding:120px 16px 50px}.account-card{padding:32px 20px}}
