/* ============================================================
   TADATADA — Shared Nav Menu (header icons + drawer + auth modal)
   ============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid #f1ecf3;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
}
.h-icon-btn:hover {
  border-color: #c4b5fd;
  transform: translateY(-1px);
}
.h-icon-btn svg {
  width: 20px;
  height: 20px;
  color: #1f1d2b;
}
.h-icon-btn .ham {
  width: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.h-icon-btn .ham span {
  display: block;
  height: 2.5px;
  background: #1f1d2b;
  border-radius: 999px;
}
.h-icon-btn .ham .l1 { width: 100%; }
.h-icon-btn .ham .l2 { width: 70%; }
.h-icon-btn .ham .l3 { width: 85%; }
.h-icon-btn[aria-expanded="true"] {
  background: #ede9fe;
  border-color: #c4b5fd;
}
.h-icon-btn.account::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f9a8d4;
  border: 2px solid #fff;
}

/* ===== BACKDROP ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 43, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ===== DRAWER ===== */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 340px;
  max-width: 86vw;
  background: #ffffff;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -16px 0 40px -16px rgba(120, 80, 140, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer .drawer-deco {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, #fbcfe8, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.nav-drawer .drawer-deco-2 {
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, #a7f3d0, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px dashed #f1ecf3;
  position: relative;
  z-index: 1;
}
.drawer-title {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: #1f1d2b;
  letter-spacing: 0.04em;
}
.drawer-title::before {
  content: "✦ ";
  color: #fcd34d;
}
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #f1ecf3;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  color: #6b6779;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
.drawer-close:hover {
  border-color: #f9a8d4;
  color: #ec4899;
}

.drawer-nav {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #1f1d2b;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.18s ease;
}
.drawer-link:hover { background: #fafafa; }
.drawer-link.active {
  background: #fdf2f8;
  color: #ec4899;
}
.drawer-link .dl-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.dl-icon.mint { background: #d1fae5; }
.dl-icon.lav  { background: #ede9fe; }
.dl-icon.pink { background: #fce7f3; }
.dl-icon.yel  { background: #fef9c3; }
.drawer-link .dl-soon {
  margin-left: auto;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: #8b5cf6;
}

/* ===== COLLAPSIBLE GROUPS ===== */
.drawer-group {
  display: flex;
  flex-direction: column;
}
.drawer-group-head {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.drawer-group-head .drawer-link {
  flex: 1;
  min-width: 0;
}
.drawer-toggle {
  width: 36px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9a96a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
  padding: 0;
}
.drawer-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-toggle:hover {
  background: #fafafa;
  color: #1f1d2b;
}
.drawer-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.drawer-toggle[aria-expanded="true"] {
  color: #8b5cf6;
}
.drawer-children {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-group.open .drawer-children {
  grid-template-rows: 1fr;
}
.drawer-children-inner {
  min-height: 0;
  overflow: hidden;
  padding-left: 56px;
  transition: padding 0.32s ease;
}
.drawer-group.open .drawer-children-inner {
  padding-top: 4px;
  padding-bottom: 8px;
}
.drawer-sub {
  display: block;
  text-decoration: none;
  color: #6b6779;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 10px;
  transition: all 0.18s ease;
  position: relative;
}
.drawer-sub::before {
  content: "·";
  margin-right: 8px;
  color: #c4b5fd;
  font-weight: 900;
}
.drawer-sub:hover {
  background: #fafafa;
  color: #1f1d2b;
}
.drawer-sub.soon {
  color: #9a96a8;
}
.drawer-sub.soon::after {
  content: "SOON";
  display: inline-block;
  margin-left: 8px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #9a96a8;
  background: #f1ecf3;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.drawer-foot {
  padding: 16px 24px 24px;
  border-top: 1px dashed #f1ecf3;
  font-family: "Quicksand", sans-serif;
  font-size: 11px;
  color: #9a96a8;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}
.drawer-foot .heart { color: #f9a8d4; margin: 0 4px; }

/* ===== AUTH MODAL ===== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.auth-card {
  background: #fff;
  border-radius: 28px;
  width: 100%;
  max-width: 380px;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(120, 80, 140, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.auth-modal.open .auth-card { transform: scale(1); }

.auth-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, #fbcfe8, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.auth-card::after {
  content: "";
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, #a7f3d0, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.auth-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #f1ecf3;
  background: #fff;
  cursor: pointer;
  color: #6b6779;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}
.auth-icon {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ddd6fe, #c4b5fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.auth-icon svg { width: 36px; height: 36px; }

.auth-title {
  text-align: center;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #1f1d2b;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.auth-desc {
  text-align: center;
  font-size: 13px;
  color: #6b6779;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.auth-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid #f1ecf3;
  background: #fff;
  cursor: pointer;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #1f1d2b;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-btn:hover { border-color: #c4b5fd; }
.auth-btn.primary {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(125, 211, 252, 0.6);
}
.auth-btn.primary:hover { transform: translateY(-1px); }
.auth-note {
  text-align: center;
  font-size: 11.5px;
  color: #9a96a8;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.auth-note .heart { color: #f9a8d4; }
