/* ============================================================
   THE DEVIL'S HOUR — COMPONENTS CSS
   Header, Footer, Profile Cards, Browse, Dashboard, Modals
   ============================================================ */

/* ── PARTICLE CANVAS ── */
#dh-particle-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.35;
}

/* ── HEADER ── */
.dh-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,3,10,0.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--dh-border);
}
.dh-header__inner {
  max-width: 1380px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 2rem; height: 68px; gap: 1rem;
}
.dh-logo {
  display: block; text-decoration: none; flex: 0 0 auto;
}
.dh-logo__main {
  display: block;
  font-family: var(--dh-font-display); font-size: 1.05rem; letter-spacing: 0.04em;
  background: linear-gradient(135deg,#e74c3c 0%,#c0392b 40%,#a855f7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dh-logo__sub {
  display: block; font-family: var(--dh-font-title);
  font-size: 0.52rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--dh-text3); -webkit-text-fill-color: var(--dh-text3); margin-top: 1px;
}

/* Nav */
.dh-nav { flex: 1; }
.dh-nav__menu { list-style: none; display: flex; margin: 0; padding: 0; }
.dh-nav__link {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0 1rem; height: 68px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dh-text3); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--dh-transition);
  font-family: var(--dh-font-title);
  text-decoration: none;
}
.dh-nav__link:hover  { color: var(--dh-text2); }
.dh-nav__link.is-active { color: var(--dh-red3); border-bottom-color: var(--dh-red2); }
.dh-nav__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 100px; background: var(--dh-red2);
  font-size: 0.6rem; color: #fff; font-weight: 700;
}
.dh-nav__badge--purple { background: var(--dh-purple2); }
.dh-nav__submenu {
  position: absolute; top: 68px; left: 0;
  background: var(--dh-bg2); border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-sm); min-width: 180px;
  list-style: none; padding: 0.5rem 0; z-index: 200; display: none;
}
.menu-item-has-children { position: relative; }
.menu-item-has-children:hover .dh-nav__submenu { display: block; }
.dh-nav__sub-link {
  display: block; padding: 0.55rem 1.1rem;
  font-size: 0.8rem; color: var(--dh-text2); text-decoration: none;
}
.dh-nav__sub-link:hover { color: var(--dh-text); background: var(--dh-bg3); }
.dh-nav__sub-toggle { display: none; }

/* Header Right */
.dh-header__right { display: flex; align-items: center; gap: 0.65rem; margin-left: auto; }
.dh-notif-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: var(--dh-bg3); border: 1px solid var(--dh-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: var(--dh-transition); color: var(--dh-text2);
}
.dh-notif-btn:hover { border-color: var(--dh-border2); }
.dh-notif-btn__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 100px; background: var(--dh-red2);
  font-size: 0.6rem; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dh-bg);
}
.dh-user-avatar {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dh-red), var(--dh-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; color: #fff;
  cursor: pointer; overflow: hidden; text-decoration: none; flex-shrink: 0;
  border: 2px solid var(--dh-border);
}
.dh-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dh-user-avatar__crown {
  position: absolute; bottom: -2px; right: -2px;
  font-size: 0.6rem; background: var(--dh-bg); border-radius: 50%;
  width: 14px; height: 14px; display: flex; align-items: center; justify-content: center;
}

/* Hamburger */
.dh-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.dh-hamburger span {
  display: block; height: 2px; background: var(--dh-text2);
  border-radius: 2px; transition: var(--dh-transition);
}
.dh-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.dh-hamburger.is-open span:nth-child(2) { opacity: 0; }
.dh-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.dh-mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--dh-bg2); z-index: 99;
  padding: 1.5rem 2rem; overflow-y: auto;
}
.dh-mobile-menu.is-open { display: flex; }
.dh-mobile-menu__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.dh-mobile-menu__list a {
  display: block; padding: 1rem 0;
  font-family: var(--dh-font-title); font-size: 1.1rem;
  color: var(--dh-text2); text-decoration: none;
  border-bottom: 1px solid var(--dh-border);
}
.dh-mobile-menu__auth { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Notifications Dropdown */
.dh-notif-dropdown {
  position: fixed; top: 76px; right: 1.5rem;
  width: 340px; background: var(--dh-bg2);
  border: 1px solid var(--dh-border); border-radius: var(--dh-radius);
  z-index: 200; display: none; box-shadow: var(--dh-shadow);
}
.dh-notif-dropdown.is-open { display: block; }
.dh-notif-dropdown__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--dh-border);
}
.dh-notif-dropdown__title { font-family: var(--dh-font-title); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dh-text); }
.dh-notif-dropdown__clear { background: none; border: none; color: var(--dh-text3); font-size: 0.72rem; cursor: pointer; font-family: var(--dh-font-body); }
.dh-notif-dropdown__clear:hover { color: var(--dh-red3); }
.dh-notif-dropdown__list { max-height: 380px; overflow-y: auto; }
.dh-notif-item {
  display: flex; gap: 0.85rem; padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--dh-border); transition: background 0.2s;
}
.dh-notif-item:hover { background: var(--dh-bg3); }
.dh-notif-item.is-unread { background: rgba(139,26,26,0.08); }
.dh-notif-item__icon { font-size: 1.1rem; flex-shrink: 0; }
.dh-notif-item__text { font-size: 0.82rem; color: var(--dh-text2); line-height: 1.45; }
.dh-notif-item__time { font-size: 0.68rem; color: var(--dh-text3); margin-top: 0.2rem; }
.dh-notif-dropdown__loading { padding: 1.5rem; text-align: center; color: var(--dh-text3); font-size: 0.85rem; }

/* Toast */
.dh-toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dh-bg3); border: 1px solid var(--dh-border2);
  border-radius: 100px; padding: 0.6rem 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.84rem; color: var(--dh-text);
  z-index: 9999; transition: transform 0.3s ease;
  white-space: nowrap; box-shadow: var(--dh-shadow);
}
.dh-toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ── HERO ── */
.dh-hero { padding: 5rem 2rem 4rem; text-align: center; position: relative; z-index: 1; }
.dh-hero__inner { max-width: 780px; margin: 0 auto; }
.dh-hero__sigil { font-size: 3.5rem; margin-bottom: 1.5rem; opacity: 0.8; animation: dhReveal 0.6s ease; }
.dh-hero__eyebrow { font-family: var(--dh-font-title); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dh-red3); margin-bottom: 1rem; }
.dh-hero__title {
  font-family: var(--dh-font-display);
  font-size: clamp(2rem,5vw,3.5rem); letter-spacing: 0.04em;
  background: linear-gradient(135deg,#e8e0f0 0%,#c0392b 45%,#a855f7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1; margin-bottom: 0.75rem;
}
.dh-hero__sub-title { font-family: var(--dh-font-title); font-size: 1rem; letter-spacing: 0.1em; color: var(--dh-text2); margin-bottom: 0.75rem; }
.dh-hero__desc { font-size: 0.92rem; color: var(--dh-text3); margin-bottom: 2rem; }

/* Category pills */
.dh-hero__cats, .dh-filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.75rem; }
.dh-cat-pill, .dh-fpill {
  padding: 0.32rem 1rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--dh-bg3); border: 1px solid var(--dh-border);
  color: var(--dh-text3); cursor: pointer; text-decoration: none;
  transition: var(--dh-transition); font-family: var(--dh-font-title);
}
.dh-cat-pill:hover, .dh-fpill:hover { border-color: var(--dh-border2); color: var(--dh-text2); }
.dh-cat-pill.is-active, .dh-fpill.is-active { background: var(--dh-red-dim); border-color: var(--dh-border2); color: var(--dh-red3); }

/* Search bar */
.dh-search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--dh-bg3); border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-sm); padding: 0.35rem 0.5rem; margin-bottom: 1.75rem;
}
.dh-search-bar svg { flex-shrink: 0; color: var(--dh-text3); }
.dh-search-bar__input { flex: 1; background: none; border: none; outline: none; color: var(--dh-text); font-size: 0.88rem; font-family: var(--dh-font-body); padding: 0.25rem 0; min-width: 0; }
.dh-search-bar__input::placeholder { color: var(--dh-text3); }
.dh-search-bar__distance { background: var(--dh-bg4); border: 1px solid var(--dh-border); border-radius: 4px; padding: 0.3rem 0.5rem; color: var(--dh-text2); font-size: 0.75rem; flex-shrink: 0; }
.dh-loc-btn {
  display: flex; align-items: center; gap: 0.35rem;
  background: none; border: 1px solid var(--dh-border);
  border-radius: 4px; padding: 0.3rem 0.7rem;
  color: var(--dh-text3); font-size: 0.72rem; cursor: pointer;
  white-space: nowrap; transition: var(--dh-transition);
}
.dh-loc-btn:hover { color: var(--dh-text2); border-color: var(--dh-border2); }

/* Hero stats */
.dh-hero__cta { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.dh-hero__stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.dh-stat { text-align: center; }
.dh-stat__num { font-family: var(--dh-font-title); font-size: 1.5rem; font-weight: 600; color: var(--dh-red3); }
.dh-stat__label { font-size: 0.7rem; color: var(--dh-text3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }

/* How it works */
.dh-how__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.dh-how__step { text-align: center; padding: 2rem 1.5rem; background: var(--dh-bg2); border: 1px solid var(--dh-border); border-radius: var(--dh-radius); }
.dh-how__step-num { font-family: var(--dh-font-display); font-size: 0.8rem; color: var(--dh-red3); margin-bottom: 1rem; letter-spacing: 0.2em; }
.dh-how__step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.dh-how__step-title { font-family: var(--dh-font-title); font-size: 1rem; color: var(--dh-text); margin-bottom: 0.65rem; }
.dh-how__step-desc { font-size: 0.85rem; color: var(--dh-text3); line-height: 1.65; }

/* ── PROFILE GRID ── */
.dh-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; position: relative; z-index: 1;
}
.dh-profile-grid--strip { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
.dh-profile-grid--sm   { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }

/* Profile Card */
.dh-profile-card {
  background: var(--dh-bg2); border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius); overflow: hidden;
  transition: var(--dh-transition); cursor: pointer;
}
.dh-profile-card:hover { border-color: var(--dh-border2); box-shadow: 0 24px 50px rgba(0,0,0,0.4), 0 0 25px var(--dh-red-dim); transform: translateY(-3px); }
.dh-profile-card__photo { position: relative; aspect-ratio: 3/4; background: var(--dh-bg4); overflow: hidden; }
.dh-profile-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.dh-profile-card:hover .dh-profile-card__photo img { transform: scale(1.04); }
.dh-profile-card__emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.dh-profile-card__online { position: absolute; top: 0.65rem; left: 0.65rem; }
.dh-profile-card__cat { position: absolute; top: 0.65rem; right: 0.65rem; }
.dh-profile-card__overlay {
  position: absolute; inset: 0; background: rgba(6,3,10,0.75);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.65rem;
  opacity: 0; transition: opacity 0.25s;
}
.dh-profile-card:hover .dh-profile-card__overlay { opacity: 1; }
.dh-profile-card__body { padding: 0.85rem 0.95rem 0.5rem; }
.dh-profile-card__name a { font-family: var(--dh-font-title); font-size: 0.92rem; color: var(--dh-text); text-decoration: none; }
.dh-profile-card__meta { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--dh-text3); margin-top: 0.3rem; }
.dh-profile-card__status.is-online { color: #4ade80; }
.dh-profile-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.dh-tag { font-size: 0.65rem; padding: 0.18rem 0.55rem; border-radius: 3px; background: var(--dh-bg4); border: 1px solid var(--dh-border); color: var(--dh-text3); font-family: var(--dh-font-title); }
.dh-profile-card__actions {
  display: flex; border-top: 1px solid var(--dh-border);
  padding: 0.5rem 0.75rem; gap: 0.5rem; justify-content: center;
}
.dh-iBtn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--dh-bg3); border: 1px solid var(--dh-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; cursor: pointer; transition: var(--dh-transition);
  text-decoration: none;
}
.dh-iBtn:hover { border-color: var(--dh-border2); background: var(--dh-red-dim); }

/* Location banner */
.dh-loc-banner { background: var(--dh-purple-dim); border-bottom: 1px solid var(--dh-border-p); padding: 0.55rem 2rem; font-size: 0.82rem; color: var(--dh-purple3); text-align: center; }
.dh-loc-banner a { color: var(--dh-red3); }

/* Browse page */
.dh-page-head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0 1rem; flex-wrap: wrap; gap: 1rem; }
.dh-page-ttl { font-family: var(--dh-font-display); font-size: 1.4rem; background: linear-gradient(135deg,#e74c3c,#a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dh-filter-row { justify-content: flex-start; margin-bottom: 1rem; }
.dh-filter-row__sort select { background: var(--dh-bg3); border: 1px solid var(--dh-border); border-radius: 4px; padding: 0.28rem 0.75rem; color: var(--dh-text2); font-size: 0.75rem; cursor: pointer; }
.dh-results-count { font-size: 0.78rem; color: var(--dh-text3); margin-bottom: 1rem; }
.dh-results-count strong { color: var(--dh-text2); }

/* Pagination */
.dh-pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 3rem; }
.dh-pagination .page-numbers { width: 36px; height: 36px; border-radius: 4px; background: var(--dh-bg3); border: 1px solid var(--dh-border); display: flex; align-items: center; justify-content: center; color: var(--dh-text2); text-decoration: none; font-size: 0.82rem; transition: var(--dh-transition); }
.dh-pagination .page-numbers.current, .dh-pagination .page-numbers:hover { background: var(--dh-red-dim); border-color: var(--dh-border2); color: var(--dh-red3); }

/* ── DASHBOARD ── */
.dh-dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 68px); position: relative; z-index: 1; }
.dh-dash-sidebar { background: var(--dh-bg2); border-right: 1px solid var(--dh-border); padding: 1.5rem 0; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; }
.dh-dash-avatar-wrap { padding: 0 1.25rem 1.5rem; text-align: center; border-bottom: 1px solid var(--dh-border); margin-bottom: 0.75rem; }
.dh-dash-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 0.75rem; overflow: hidden; background: linear-gradient(135deg,var(--dh-red),var(--dh-purple)); display: flex; align-items: center; justify-content: center; font-size: 2rem; position: relative; border: 2px solid var(--dh-border2); }
.dh-dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dh-dash-avatar__crown { position: absolute; bottom: -2px; right: -2px; font-size: 0.75rem; }
.dh-dash-avatar__name { font-family: var(--dh-font-title); font-size: 0.9rem; font-weight: 600; color: var(--dh-text); }
.dh-dash-avatar__meta { font-size: 0.72rem; color: var(--dh-text3); margin-top: 0.2rem; }
.dh-dash-avatar__plan { margin-top: 0.5rem; }
.dh-dash-completion { margin-top: 0.85rem; }
.dh-dash-completion__label { display: flex; justify-content: space-between; font-size: 0.68rem; letter-spacing: 0.06em; margin-bottom: 0.4rem; font-family: var(--dh-font-title); color: var(--dh-text3); }
.dh-dash-menu { list-style: none; padding: 0; margin: 0; }
.dh-dash-menu__item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem; font-size: 0.82rem;
  color: var(--dh-text3); text-decoration: none;
  transition: var(--dh-transition); font-family: var(--dh-font-title);
  letter-spacing: 0.05em; cursor: pointer;
}
.dh-dash-menu__item:hover { color: var(--dh-text2); background: rgba(139,26,26,0.08); }
.dh-dash-menu__item.is-active { color: var(--dh-red3); background: var(--dh-red-dim); border-right: 2px solid var(--dh-red2); }
.dh-dash-menu__icon { width: 20px; text-align: center; }
.dh-dash-menu__sep { height: 1px; background: var(--dh-border); margin: 0.5rem 1.5rem; }
.dh-dash-menu__item--signout:hover { color: var(--dh-red3); }
.dh-dash-content { padding: 2rem; overflow: hidden; }
.dh-dash-section { max-width: 860px; }
.dh-dash-section__title { font-family: var(--dh-font-display); font-size: 1.2rem; background: linear-gradient(135deg,#e74c3c,#a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1.5rem; }

/* Stats Cards */
.dh-stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.dh-stat-card { background: var(--dh-bg2); border: 1px solid var(--dh-border); border-radius: var(--dh-radius-sm); padding: 1.25rem; text-align: center; }
.dh-stat-card__num { font-family: var(--dh-font-title); font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.dh-stat-card__num--red    { color: var(--dh-red3); }
.dh-stat-card__num--purple { color: var(--dh-purple3); }
.dh-stat-card__num--gold   { color: var(--dh-gold2); }
.dh-stat-card__num--green  { color: #4ade80; }
.dh-stat-card__label { font-size: 0.72rem; color: var(--dh-text3); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--dh-font-title); }

/* Boost Banner */
.dh-boost-banner { display: flex; align-items: center; gap: 1rem; background: var(--dh-gold-dim); border: 1px solid rgba(201,162,62,0.35); border-radius: var(--dh-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.dh-boost-banner__icon { font-size: 1.5rem; }
.dh-boost-banner__text { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.dh-boost-banner__text strong { font-family: var(--dh-font-title); font-size: 0.88rem; color: var(--dh-gold2); }
.dh-boost-banner__text span { font-size: 0.78rem; color: var(--dh-text3); }

/* Activity Feed */
.dh-activity-feed { display: flex; flex-direction: column; gap: 0; }
.dh-activity-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--dh-border); }
.dh-activity-item__icon { font-size: 1.1rem; width: 28px; text-align: center; flex-shrink: 0; }
.dh-activity-item__body { flex: 1; min-width: 0; }
.dh-activity-item__text { font-size: 0.85rem; color: var(--dh-text2); }
.dh-activity-item__time { font-size: 0.68rem; color: var(--dh-text3); margin-top: 0.15rem; }

/* Edit Profile */
.dh-edit-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
.dh-edit-avatar { width: 160px; height: 160px; border-radius: var(--dh-radius); background: linear-gradient(135deg,var(--dh-red),var(--dh-purple)); display: flex; align-items: center; justify-content: center; font-size: 4rem; overflow: hidden; position: relative; cursor: pointer; border: 2px solid var(--dh-border); }
.dh-edit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dh-edit-avatar__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: #fff; font-family: var(--dh-font-title); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transition: 0.2s; }
.dh-edit-avatar:hover .dh-edit-avatar__overlay { opacity: 1; }
.dh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dh-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.dh-form-hint { font-size: 0.72rem; color: var(--dh-text3); margin-top: 0.4rem; }
.dh-interest-selector { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dh-interest-chip { padding: 0.3rem 0.75rem; border-radius: 3px; font-size: 0.75rem; background: var(--dh-bg3); border: 1px solid var(--dh-border); color: var(--dh-text3); cursor: pointer; transition: all 0.2s; font-family: var(--dh-font-title); user-select: none; }
.dh-interest-chip.is-selected, .dh-interest-chip:hover { border-color: var(--dh-border2); color: #f0c0c0; background: var(--dh-red-dim); }
.dh-char-count { font-size: 0.68rem; color: var(--dh-text3); }

/* Photos */
.dh-photos-grid-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.dh-photos-block { }
.dh-photos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.65rem; margin-top: 1rem; }
.dh-photo-slot { aspect-ratio: 3/4; border-radius: var(--dh-radius-sm); overflow: hidden; position: relative; cursor: pointer; }
.dh-photo-slot--empty { background: var(--dh-bg3); border: 2px dashed var(--dh-border); display: flex; align-items: center; justify-content: center; transition: var(--dh-transition); }
.dh-photo-slot--empty:hover { border-color: var(--dh-border2); }
.dh-photo-slot__plus { font-size: 1.5rem; color: var(--dh-text3); }
.dh-photo-slot--filled img { width: 100%; height: 100%; object-fit: cover; }
.dh-photo-slot__actions { position: absolute; top: 0; right: 0; display: none; flex-direction: column; gap: 0.3rem; padding: 0.4rem; }
.dh-photo-slot--filled:hover .dh-photo-slot__actions { display: flex; }
.dh-photo-set-avatar, .dh-photo-delete { width: 28px; height: 28px; border-radius: 4px; background: rgba(0,0,0,0.75); border: none; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }

/* Plans */
.dh-plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 1rem; }
.dh-plan-card { background: var(--dh-bg2); border: 1px solid var(--dh-border); border-radius: var(--dh-radius); padding: 1.75rem 1.5rem; position: relative; transition: var(--dh-transition); }
.dh-plan-card--active { border-color: var(--dh-border2); box-shadow: 0 0 30px var(--dh-red-dim); }
.dh-plan-card--coven { border-color: rgba(201,162,62,0.4); }
.dh-plan-card__badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--dh-red2); color: #fff; font-size: 0.62rem; padding: 0.2rem 0.75rem; border-radius: 100px; font-family: var(--dh-font-title); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.dh-plan-card__name { font-family: var(--dh-font-title); font-size: 1rem; color: var(--dh-text); margin-bottom: 0.35rem; }
.dh-plan-card__price { font-family: var(--dh-font-display); font-size: 1.8rem; color: var(--dh-red3); margin-bottom: 1.25rem; }
.dh-plan-card--coven .dh-plan-card__price { color: var(--dh-gold2); }
.dh-plan-card__features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dh-plan-card__features li { font-size: 0.82rem; color: var(--dh-text2); }
.dh-plan-card__downgrade { font-size: 0.72rem; color: var(--dh-text3); }

/* Settings */
.dh-settings-list { display: flex; flex-direction: column; gap: 0; }
.dh-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--dh-border); }
.dh-settings-row__label { font-family: var(--dh-font-title); font-size: 0.88rem; color: var(--dh-text); }
.dh-settings-row__desc { font-size: 0.78rem; color: var(--dh-text3); margin-top: 0.2rem; }
.dh-toggle { position: relative; display: inline-flex; cursor: pointer; }
.dh-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.dh-toggle__track { width: 44px; height: 24px; background: var(--dh-bg4); border: 1px solid var(--dh-border); border-radius: 100px; transition: var(--dh-transition); position: relative; }
.dh-toggle__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--dh-text3); transition: var(--dh-transition); }
.dh-toggle input:checked ~ .dh-toggle__track { background: var(--dh-red-dim); border-color: var(--dh-border2); }
.dh-toggle input:checked ~ .dh-toggle__track::after { transform: translateX(20px); background: var(--dh-red3); }
.dh-toggle.is-locked { opacity: 0.5; cursor: not-allowed; }

/* Advanced Search Modal */
.dh-adv-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6,3,10,0.85); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.dh-adv-modal__inner {
  background: var(--dh-bg2); border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius); padding: 2rem;
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; position: relative;
}
.dh-adv-modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--dh-text3); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.dh-adv-modal__title { font-family: var(--dh-font-title); font-size: 1rem; color: var(--dh-text); margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.dh-chip-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dh-chip { padding: 0.28rem 0.75rem; border-radius: 3px; font-size: 0.75rem; background: var(--dh-bg3); border: 1px solid var(--dh-border); color: var(--dh-text3); cursor: pointer; font-family: var(--dh-font-title); user-select: none; transition: all 0.2s; }
.dh-chip:has(input:checked) { border-color: var(--dh-border2); color: #f0c0c0; background: var(--dh-red-dim); }
.dh-range-slider { width: 100%; accent-color: var(--dh-red2); }
.dh-range-value { font-size: 0.78rem; color: var(--dh-text3); text-align: right; margin-top: 0.25rem; }

/* Upgrade Banner */
.dh-upgrade-banner { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.dh-upgrade-banner__icon { font-size: 1.2rem; }
.dh-upgrade-banner__text { flex: 1; font-size: 0.85rem; }

/* Auth Gate */
.dh-auth-gate { position: absolute; inset: 0; background: rgba(6,3,10,0.8); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 10; }
.dh-auth-gate__inner { text-align: center; padding: 2rem; }
.dh-auth-gate__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.dh-auth-gate__msg { font-size: 0.9rem; color: var(--dh-text2); margin-bottom: 1.5rem; }

/* ── FOOTER ── */
.dh-footer { background: var(--dh-bg2); border-top: 1px solid var(--dh-border); padding: 3.5rem 0 2rem; position: relative; z-index: 1; }
.dh-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.dh-footer__logo { font-family: var(--dh-font-display); font-size: 1rem; background: linear-gradient(135deg,#e74c3c,#a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.75rem; }
.dh-footer__tagline { font-family: var(--dh-font-title); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dh-red3); margin-bottom: 0.6rem; }
.dh-footer__desc { font-size: 0.82rem; color: var(--dh-text3); line-height: 1.7; max-width: 260px; }
.dh-footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.dh-footer__social-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--dh-bg3); border: 1px solid var(--dh-border); display: flex; align-items: center; justify-content: center; color: var(--dh-text3); text-decoration: none; font-size: 0.9rem; transition: var(--dh-transition); }
.dh-footer__social-icon:hover { border-color: var(--dh-border2); color: var(--dh-text2); }
.dh-footer__col-title { font-family: var(--dh-font-title); font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dh-red3); margin-bottom: 1rem; }
.dh-footer__col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.dh-footer__col-links a { font-size: 0.82rem; color: var(--dh-text3); text-decoration: none; transition: color 0.2s; }
.dh-footer__col-links a:hover { color: var(--dh-text2); }
.dh-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--dh-border); }
.dh-footer__copy { font-size: 0.75rem; color: var(--dh-text3); }
.dh-footer__trust { font-size: 0.75rem; color: var(--dh-text3); display: flex; gap: 1.25rem; }

/* Messaging */
.dh-inbox { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 140px); border: 1px solid var(--dh-border); border-radius: var(--dh-radius); overflow: hidden; }
.dh-inbox__list { border-right: 1px solid var(--dh-border); overflow-y: auto; background: var(--dh-bg2); }
.dh-conv-item { display: flex; gap: 0.75rem; padding: 0.9rem 1rem; cursor: pointer; border-bottom: 1px solid var(--dh-border); transition: background 0.2s; }
.dh-conv-item:hover, .dh-conv-item.is-active { background: var(--dh-bg3); }
.dh-conv-item.has-unread .dh-conv-preview { font-weight: 600; color: var(--dh-text); }
.dh-conv-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--dh-red),var(--dh-purple)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; overflow: hidden; }
.dh-conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dh-conv-body { flex: 1; min-width: 0; }
.dh-conv-name { font-family: var(--dh-font-title); font-size: 0.85rem; color: var(--dh-text); margin-bottom: 0.15rem; }
.dh-conv-preview { font-size: 0.78rem; color: var(--dh-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-conv-time { font-size: 0.65rem; color: var(--dh-text3); }
.dh-conv-unread { min-width: 18px; height: 18px; border-radius: 100px; background: var(--dh-red2); font-size: 0.65rem; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; }
.dh-chat { display: flex; flex-direction: column; background: var(--dh-bg); }
.dh-chat-head { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--dh-border); background: var(--dh-bg2); }
.dh-chat-head__name { font-family: var(--dh-font-title); font-size: 0.92rem; color: var(--dh-text); }
.dh-chat-head__status { font-size: 0.72rem; color: var(--dh-text3); }
.dh-chat-head__status.is-online { color: #4ade80; }
.dh-chat-msgs { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.dh-msg { max-width: 70%; padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; word-break: break-word; }
.dh-msg--me { align-self: flex-end; background: var(--dh-red-dim); border: 1px solid var(--dh-border2); border-bottom-right-radius: 3px; }
.dh-msg--them { align-self: flex-start; background: var(--dh-bg3); border: 1px solid var(--dh-border); border-bottom-left-radius: 3px; }
.dh-msg--reaction { background: transparent !important; border: none !important; font-size: 1.8rem !important; padding: 0.2rem 0.4rem !important; }
.dh-msg__time { font-size: 0.62rem; color: var(--dh-text3); margin-top: 0.2rem; }
.dh-msg__receipt { font-size: 0.62rem; color: var(--dh-purple3); text-align: right; }
.dh-chat-input { padding: 0.75rem 1.25rem; border-top: 1px solid var(--dh-border); background: var(--dh-bg2); }
.dh-chat-reactions { display: flex; align-items: center; gap: 0.4rem; padding: 0 0 0.5rem; }
.dh-chat-reactions span { cursor: pointer; font-size: 1.1rem; transition: transform 0.15s; display: inline-block; }
.dh-chat-reactions span:hover { transform: scale(1.3); }
.dh-chat-reactions__label { font-size: 0.68rem; color: var(--dh-text3); font-family: var(--dh-font-title); letter-spacing: 0.1em; text-transform: uppercase; }
.dh-cinput-row { display: flex; gap: 0.6rem; }
.dh-cinput { flex: 1; background: var(--dh-bg3); border: 1px solid var(--dh-border); border-radius: 4px; padding: 0.55rem 0.85rem; color: var(--dh-text); font-size: 0.88rem; font-family: var(--dh-font-body); outline: none; }
.dh-cinput:focus { border-color: var(--dh-border2); }
.dh-send-btn { width: 38px; height: 38px; border-radius: 4px; background: var(--dh-red2); border: none; cursor: pointer; color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: filter 0.2s; }
.dh-send-btn:hover { filter: brightness(1.15); }

/* Notif list (dashboard section) */
.dh-notif-list { display: flex; flex-direction: column; gap: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .dh-stat-cards { grid-template-columns: repeat(2,1fr); }
  .dh-footer__grid { grid-template-columns: 1fr 1fr; }
  .dh-plans-grid { grid-template-columns: 1fr; max-width: 360px; }
}
@media (max-width: 900px) {
  .dh-dashboard { grid-template-columns: 1fr; }
  .dh-dash-sidebar { position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid var(--dh-border); }
  .dh-how__grid { grid-template-columns: 1fr; }
  .dh-edit-grid { grid-template-columns: 1fr; }
  .dh-photos-grid-wrap { grid-template-columns: 1fr; }
  .dh-form-row, .dh-form-row--3 { grid-template-columns: 1fr; }
  .dh-inbox { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .dh-nav, .dh-header__right .btn { display: none; }
  .dh-hamburger { display: flex; }
  .dh-header__right .dh-notif-btn, .dh-header__right .dh-user-avatar { display: flex; }
  .dh-hero { padding: 3rem 1rem 2.5rem; }
  .dh-stat-cards { grid-template-columns: repeat(2,1fr); }
  .dh-footer__grid { grid-template-columns: 1fr; }
  .dh-footer__trust { flex-wrap: wrap; gap: 0.6rem; }
  .dh-profile-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .dh-profile-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .dh-hero__cta { flex-direction: column; align-items: center; }
  .dh-search-bar { flex-wrap: wrap; }
  .dh-search-bar__distance, .dh-loc-btn { display: none; }
  .dh-stat-cards { grid-template-columns: 1fr 1fr; }
}
