/* =====================================================================
   hm-theme.css — Hotmoan design system (Nov 2026 redesign)
   Loaded AFTER nicekin.css + Bootstrap. Re-skins every page via tokens,
   then defines the new chrome (header, rail, footer) and page components.
   Direction: "late-night studio" — ink-plum chrome, warm paper content,
   a single rose accent, editorial serif headlines, waveform motif.
   ===================================================================== */

:root {
  /* Ink (chrome) */
  --ink:          #140F18;
  --ink-2:        #1E1724;
  --ink-3:        #2A2131;
  --ink-line:     rgba(255,255,255,.09);
  --ink-text:     #F4EEF2;
  --ink-muted:    #A99DAE;

  /* Paper (content) */
  --paper:        #F6F2EE;
  --surface:      #FFFFFF;
  --surface-2:    #FBF8F5;
  --line:         #E9E2DB;
  --text:         #1A141D;
  --muted:        #6D6370;
  --faint:        #A39AA5;

  /* Accent */
  --rose:         #E5375F;
  --rose-600:     #C9264D;
  --rose-50:      #FDEEF2;
  --amber:        #F2994A;
  --grad:         linear-gradient(120deg, #E5375F 0%, #F06A4F 60%, #F2994A 100%);
  --verified:     #6C63FF;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui:      'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Shape & depth */
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(26,20,29,.06), 0 1px 1px rgba(26,20,29,.04);
  --sh-2: 0 6px 18px -6px rgba(26,20,29,.18), 0 2px 4px rgba(26,20,29,.05);
  --sh-3: 0 22px 48px -18px rgba(26,20,29,.35);
  --ease: cubic-bezier(.22,1,.36,1);

  --header-h: 64px;

  /* ---- Map legacy nicekin / page tokens onto the new system ---- */
  --primary:        var(--rose);
  --primary-hover:  var(--rose-600);
  --primary-light:  var(--rose-50);
  --primary-glow:   rgba(229,55,95,.18);
  --primary-color:  var(--rose);
  --bg:             var(--paper);
  --border:         var(--line);
  --text-primary:   var(--text);
  --text-secondary: var(--muted);
  --text-muted:     var(--faint);
  --font:           var(--font-ui);
  --radius:         var(--r);
  --radius-lg:      var(--r-lg);
  --shadow-sm:      var(--sh-1);
  --shadow:         var(--sh-2);
  --shadow-lg:      var(--sh-3);
  --danger-color:   var(--rose);
  --bs-primary:     #E5375F;
  --bs-primary-rgb: 229,55,95;
  --bs-link-color:  #C9264D;
  --bs-body-font-family: var(--font-ui);
}

/* ---------------------------------------------------------------- base */
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body.hm {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 0;
  text-rendering: optimizeLegibility;
}
body.hm h1, body.hm h2, body.hm h3, body.hm h4 { color: var(--text); letter-spacing: -.01em; }
body.hm a { color: inherit; }
body.hm a:hover { color: var(--rose-600); }
body.hm ::selection { background: var(--rose); color: #fff; }
body.hm :focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
.hm-skip { position: absolute; left: -999px; top: 8px; z-index: 3000; background: #fff; color: var(--text); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.hm-skip:focus { left: 12px; }
main#main { display: block; min-height: 50vh; }

.hm-serif { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.hm-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1rem; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.hm-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hm-container-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.hm-section { padding: 64px 0; }
.hm-section-tight { padding: 36px 0; }

/* ------------------------------------------------------------- buttons */
.hm-btn, body.hm .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 700; letter-spacing: .005em;
  border-radius: var(--r-full); border: 1px solid transparent;
  padding: .66rem 1.25rem; font-size: .92rem; line-height: 1.2;
  transition: background .18s var(--ease), color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.hm-btn:active, body.hm .btn:active { transform: translateY(1px); }
.hm-btn-sm, body.hm .btn-sm { padding: .45rem .95rem; font-size: .84rem; }
.hm-btn-lg, body.hm .btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.hm-btn-primary, body.hm .btn-primary {
  background: var(--rose) !important; border-color: var(--rose) !important; color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(229,55,95,.6);
}
.hm-btn-primary:hover, body.hm .btn-primary:hover { background: var(--rose-600) !important; border-color: var(--rose-600) !important; color: #fff !important; }
.hm-btn-ghost { background: transparent; color: var(--ink-text); border-color: var(--ink-line); }
.hm-btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.hm-btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.hm-btn-light:hover { border-color: var(--text); color: var(--text) !important; }
.hm-btn-dark, body.hm .btn-dark { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
body.hm .btn-outline-secondary, body.hm .btn-secondary { background: #fff !important; color: var(--text) !important; border-color: var(--line) !important; }
body.hm .btn-outline-secondary:hover, body.hm .btn-secondary:hover { border-color: var(--text) !important; }
body.hm .btn-outline-primary { color: var(--rose) !important; border-color: var(--rose) !important; background: transparent !important; }
body.hm .btn-outline-primary:hover { background: var(--rose) !important; color: #fff !important; }
body.hm .btn-link { color: var(--rose-600) !important; }

/* --------------------------------------------------------------- forms */
body.hm .form-control, body.hm .form-select {
  border: 1px solid var(--line); border-radius: var(--r-sm); background-color: #fff;
  font-family: var(--font-ui); font-size: .95rem; padding: .7rem .9rem; color: var(--text);
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
body.hm .form-control:focus, body.hm .form-select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--primary-glow); }
body.hm .form-label { font-weight: 700; font-size: .84rem; color: var(--text); margin-bottom: .35rem; }
body.hm .form-check-input:checked { background-color: var(--rose); border-color: var(--rose); }

/* ------------------------------------------------------- bootstrap bits */
body.hm .dropdown-menu { border: 1px solid var(--line) !important; border-radius: var(--r) !important; box-shadow: var(--sh-3) !important; padding: 6px !important; }
body.hm .dropdown-item { border-radius: 8px !important; font-weight: 600; font-size: .9rem; padding: .55rem .8rem !important; display: flex; align-items: center; gap: 10px; }
body.hm .dropdown-item i { color: var(--muted); width: 16px; }
body.hm .dropdown-item:hover { background: var(--paper) !important; color: var(--text) !important; }
body.hm .modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
body.hm .modal-header { border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
body.hm .modal-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
body.hm .card { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
body.hm .card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 800; }
body.hm .alert { border-radius: var(--r); border: 1px solid transparent; }
body.hm .badge.bg-primary, body.hm .bg-primary { background-color: var(--rose) !important; }
body.hm .text-primary { color: var(--rose) !important; }
body.hm .notification-count { background: var(--rose); border-color: var(--ink); top: 2px; right: 2px; font-size: .62rem; min-width: 16px; padding: 0 .3rem; line-height: 16px; }

/* ================================================================ HEADER */
.hm-header { position: sticky; top: 0; z-index: 1030; background: var(--ink); color: var(--ink-text); box-shadow: 0 1px 0 var(--ink-line); }
.hm-nav { display: flex; align-items: center; gap: 18px; height: var(--header-h); padding: 0 20px; max-width: 1480px; margin: 0 auto; }
.hm-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none !important; color: #fff !important; flex-shrink: 0; }
.hm-logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(229,55,95,.8); }
.hm-logo-wave { width: 20px; height: 18px; fill: #fff; }
.hm-logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; letter-spacing: -.035em; line-height: 1; }
.hm-nav-links { gap: 2px; }
.hm-nav-links a { color: var(--ink-muted) !important; font-weight: 700; font-size: .9rem; padding: .45rem .8rem; border-radius: var(--r-full); text-decoration: none; transition: color .15s, background .15s; }
.hm-nav-links a:hover, .hm-nav-links a.is-active { color: #fff !important; background: rgba(255,255,255,.07); }
.hm-search { flex: 1; max-width: 520px; margin-left: auto; position: relative; display: flex; align-items: center; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-full); padding: 0 16px; transition: border-color .15s, background .15s; }
.hm-search:focus-within { border-color: rgba(229,55,95,.7); background: var(--ink-3); }
.hm-search i { color: var(--ink-muted); font-size: .9rem; margin-right: 10px; }
.hm-search input { flex: 1; background: transparent; border: 0; outline: none; color: #fff; font: 600 .9rem var(--font-ui); padding: .62rem 0; min-width: 0; }
.hm-search input::placeholder { color: var(--ink-muted); }
.hm-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.hm-nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 4px; }
.hm-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-text) !important; background: transparent; border: 0; position: relative; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: background .15s; }
.hm-icon-btn:hover { background: rgba(255,255,255,.08); }
.hm-avatar-btn { border: 0; background: transparent; padding: 2px; border-radius: 50%; margin-left: 4px; }
.hm-avatar-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.18); display: block; }
.hm-avatar-btn:hover img { border-color: var(--rose); }
.hm-menu { min-width: 250px; }
.hm-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text) !important; }
.hm-menu-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hm-menu-head span { display: flex; flex-direction: column; min-width: 0; }
.hm-menu-head strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-menu-head small { color: var(--muted); font-weight: 600; }
.hm-menu-verified, .hm-menu-verified i { color: var(--verified) !important; font-weight: 800 !important; }
.hm-pill-count { margin-left: auto; background: var(--rose); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
#mobile-search-bar { padding: 0 14px 12px; }
#mobile-search-bar .hm-search { max-width: none; margin: 0; }

/* Category rail */
.hm-rail { border-top: 1px solid var(--ink-line); background: var(--ink); }
.hm-rail-inner { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 9px 20px; max-width: 1480px; margin: 0 auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.hm-rail-inner::-webkit-scrollbar { display: none; }
.hm-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: .38rem .85rem; border-radius: var(--r-full); font-size: .83rem; font-weight: 700; color: var(--ink-muted) !important; text-decoration: none !important; border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s; white-space: nowrap; }
.hm-chip:hover { color: #fff !important; background: rgba(255,255,255,.06); }
.hm-chip.is-active { color: var(--ink) !important; background: #fff; }
.hm-chip-more { border-color: var(--ink-line); }
.hm-chip-more i { font-size: .7rem; }
.hm-rail-sep { width: 1px; height: 18px; background: var(--ink-line); flex-shrink: 0; margin: 0 6px; }

/* Hide legacy chrome if any page still prints it */
.top-post-banner, #tg-banner, .category-nav, .mobile-profile-links { display: none !important; }

/* PWA prompt */
.hm-pwa { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 2000; display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); max-width: 400px; background: var(--ink); color: var(--ink-text); border-radius: var(--r-lg); padding: 12px 12px 12px 14px; box-shadow: var(--sh-3); }
.hm-pwa[hidden] { display: none; }
.hm-pwa-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; }
.hm-pwa-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.hm-pwa-text strong { font-size: .9rem; }
.hm-pwa-text span { font-size: .78rem; color: var(--ink-muted); }

/* ================================================================ HERO */
.hm-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-text); isolation: isolate; }
.hm-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(229,55,95,.35), transparent 70%); z-index: -1; }
.hm-hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px; background: radial-gradient(closest-side, rgba(242,153,74,.16), transparent 70%); z-index: -1; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 72px 20px 80px; max-width: 1240px; margin: 0 auto; }
body.hm .hm-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; color: #fff; margin: 18px 0 20px; }
body.hm .hm-hero h1 em { font-style: italic; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hm-hero-lede { font-size: 1.12rem; color: #D9CFDC; max-width: 34rem; margin-bottom: 28px; }
.hm-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hm-hero .hm-eyebrow { color: #FF8BA4; }
.hm-hero-stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.hm-hero-stats div { display: flex; flex-direction: column; }
.hm-hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1.1; letter-spacing: -.02em; }
.hm-hero-stats span { font-size: .78rem; color: var(--ink-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hm-hero-wave { display: flex; align-items: center; gap: 4px; height: 64px; margin-bottom: 4px; }
.hm-hero-wave i { display: block; width: 4px; border-radius: 4px; background: var(--grad); opacity: .9; animation: hmWave 1.6s var(--ease) infinite alternate; }
@keyframes hmWave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hm-hero-wave i { animation: none; } }

/* Join card */
.hm-join { background: #fff; color: var(--text); border-radius: var(--r-xl); padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); position: relative; }
.hm-join h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -.02em; margin: 0 0 4px; }
.hm-join > p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.hm-join .form-control { background: var(--surface-2); }
.hm-join-fine { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; }
.hm-join-fine a { color: var(--rose-600) !important; font-weight: 700; }
.hm-badge-18 { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: .7rem; font-weight: 800; background: var(--rose); color: #fff; letter-spacing: .02em; }

/* Logged-in welcome strip */
.hm-welcome { background: var(--ink-2); color: var(--ink-text); }
.hm-welcome .hm-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
body.hm .hm-welcome h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: #fff; margin: 0; letter-spacing: -.02em; }
.hm-welcome p { margin: 0; color: var(--ink-muted); font-size: .88rem; }

/* ===================================================== CATEGORY TILES */
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 991.98px) { .hm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; color: var(--text) !important; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.hm-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.hm-tile-glyph { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-50); color: var(--rose); font-size: 1rem; }
.hm-tile strong { font-size: 1.02rem; font-weight: 800; display: block; margin-top: 18px; }
.hm-tile span { font-size: .8rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }
.hm-tile-feature { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.hm-tile-feature span { color: var(--ink-muted); }
.hm-tile-feature .hm-tile-glyph { color: #fff; background: var(--grad); }
.hm-tile-feature::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(229,55,95,.5), transparent); }
.hm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hm-section-head .hm-h2 { margin: 0; }
.hm-section-head p { margin: 4px 0 0; color: var(--muted); }
.hm-link-arrow { font-weight: 800; font-size: .9rem; color: var(--rose-600) !important; text-decoration: none; white-space: nowrap; }
.hm-link-arrow:hover { text-decoration: underline; }

/* ============================================================ FEED / CARDS */
.hm-feed { padding: 28px 0 56px; }
.hm-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hm-feed-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 0; letter-spacing: -.02em; }
.hm-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); padding: 4px; }
.hm-tabs a { padding: .4rem .95rem; border-radius: var(--r-full); font-weight: 700; font-size: .84rem; color: var(--muted) !important; text-decoration: none; }
.hm-tabs a.is-active { background: var(--ink); color: #fff !important; }

body.hm .pin-container { gap: 16px; }
body.hm .pin-col { gap: 16px; }
@media (max-width: 480px) { body.hm .pin-container, body.hm .pin-col { gap: 10px; } }
body.hm .pin-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: none; overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s; }
body.hm .pin-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
body.hm .pin-img-wrapper { border-radius: 0; background: var(--ink-2); min-height: 160px; }
body.hm .pin-image { display: block; width: 100%; }
body.hm .pin-info { padding: 12px 14px 14px !important; }
body.hm .pin-title { font-weight: 800; font-size: .92rem; line-height: 1.35; color: var(--text); margin: 0 0 8px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.hm .pin-title a { color: inherit !important; }
body.hm .pin-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
body.hm .pin-author-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 0; }
body.hm .pin-author-name { font-size: .8rem; font-weight: 700; color: var(--muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.hm .pin-author-name:hover { color: var(--text) !important; }
body.hm .pin-hover-overlay { background: linear-gradient(180deg, rgba(20,15,24,0) 40%, rgba(20,15,24,.55)); }
body.hm .btn-pin-visit { background: #fff; color: var(--text) !important; border-radius: var(--r-full); font-weight: 800; font-size: .76rem; padding: .35rem .8rem; }

/* New card internals (index feed) */
.hm-card-play { position: absolute; left: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); transition: transform .25s var(--ease), background .2s; z-index: 13; pointer-events: none; }
.hm-card-play i { font-size: .85rem; margin-left: 2px; }
body.hm .pin-card:hover .hm-card-play { transform: scale(1.08); background: var(--rose); color: #fff; }
.hm-card-badge { position: absolute; top: 10px; left: 10px; z-index: 13; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-full); background: rgba(20,15,24,.72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.hm-card-badge.is-gold { background: linear-gradient(120deg, #F7C948, #F2994A); color: #3A2400; }
.hm-card-badge.is-hot { background: var(--grad); }
.hm-card-badge.is-new { background: #16A37B; }
.hm-card-verified { position: absolute; top: 10px; right: 10px; z-index: 13; width: 24px; height: 24px; border-radius: 50%; background: var(--verified); color: #fff; display: grid; place-items: center; font-size: .66rem; box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.hm-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hm-card-stats { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.hm-card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.hm-card-stats i { font-size: .72rem; }
body.hm .btn-card-like { color: var(--faint) !important; background: none; border: 0; padding: 0 !important; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .78rem; cursor: pointer; }
body.hm .btn-card-like:hover { color: var(--rose) !important; }
body.hm .btn-card-like.liked { color: var(--rose) !important; }
.hm-card-save, body.hm .pin-info .pin-button { background: var(--paper) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: var(--r-full) !important; padding: .3rem .75rem !important; font-size: .74rem !important; font-weight: 800 !important; display: inline-flex !important; align-items: center; gap: 5px; text-decoration: none !important; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hm-card-save:hover, body.hm .pin-info .pin-button:hover { background: var(--rose) !important; border-color: var(--rose) !important; color: #fff !important; }
.hm-card-comment { margin-top: 10px; font-size: .78rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-card-comment::before { content: "“"; font-family: var(--font-display); color: var(--rose); font-size: 1.1rem; line-height: 0; margin-right: 2px; }

/* Skeletons */
body.hm .skeleton-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
body.hm .skeleton-img { background: linear-gradient(90deg, #EFE9E3 0%, #F7F3EF 50%, #EFE9E3 100%); background-size: 200% 100%; }
body.hm .no-more-pins { color: var(--muted); font-weight: 700; text-align: center; padding: 32px 0; }

/* ============================================================== PROSE / SEO */
.hm-prose { font-size: 1.02rem; line-height: 1.75; color: #3B333E; }
.hm-prose p { margin: 0 0 1.1em; }
.hm-prose a { color: var(--rose-600) !important; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(201,38,77,.3); text-underline-offset: 3px; }
.hm-prose a:hover { text-decoration-color: currentColor; }
.hm-prose strong { color: var(--text); }
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.hm-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; }
.hm-step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--rose); line-height: 1; display: block; margin-bottom: 14px; }
.hm-step h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; }
.hm-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.hm-trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.hm-trust div { padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--ink-text); }
.hm-trust i { color: #FF8BA4; font-size: 1.1rem; }
body.hm .hm-trust h3 { color: #fff; font-size: 1rem; font-weight: 800; margin: 10px 0 4px; }
.hm-trust p { margin: 0; color: var(--ink-muted); font-size: .88rem; }

/* FAQ */
.hm-faq { margin-top: 8px; }
.hm-faq-item { border-bottom: 1px solid var(--line); }
.hm-faq-item:first-of-type { border-top: 1px solid var(--line); }
.hm-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 800; font-size: 1rem; color: var(--text); }
.hm-faq-item summary::-webkit-details-marker { display: none; }
.hm-faq-icon { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: transform .25s var(--ease), background .2s; }
.hm-faq-icon::before, .hm-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--text); transform: translate(-50%,-50%); }
.hm-faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); transition: opacity .2s; }
.hm-faq-item[open] .hm-faq-icon { background: var(--ink); border-color: var(--ink); }
.hm-faq-item[open] .hm-faq-icon::before { background: #fff; }
.hm-faq-item[open] .hm-faq-icon::after { opacity: 0; }
.hm-faq-item p { margin: 0 0 18px; color: #4A414D; line-height: 1.7; max-width: 62ch; }

/* ======================================================= CATEGORY LANDING */
.hm-cat-hero { background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; isolation: isolate; }
.hm-cat-hero::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(229,55,95,.28), transparent 70%); z-index: -1; }
.hm-cat-hero .hm-container { padding-top: 44px; padding-bottom: 40px; }
.hm-crumbs { display: flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-muted); margin-bottom: 14px; flex-wrap: wrap; }
.hm-crumbs a { color: var(--ink-muted) !important; text-decoration: none; }
.hm-crumbs a:hover { color: #fff !important; }
body.hm .hm-cat-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; color: #fff; margin: 0 0 12px; }
.hm-cat-hero p.hm-cat-lede { color: #D9CFDC; font-size: 1.08rem; max-width: 46rem; margin: 0 0 20px; }
.hm-cat-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hm-cat-meta .hm-stat { font-size: .8rem; font-weight: 800; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--ink-line); padding: 5px 12px; border-radius: var(--r-full); }
.hm-related { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-related a { padding: .45rem .95rem; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--text) !important; text-decoration: none; }
.hm-related a:hover { border-color: var(--text); }
.hm-cat-hero .hm-related a { background: rgba(255,255,255,.06); border-color: var(--ink-line); color: var(--ink-text) !important; }
.hm-cat-hero .hm-related a:hover { background: #fff; color: var(--ink) !important; }
.hm-browse-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.hm-browse-tabs a { padding: 12px 16px; font-weight: 800; font-size: .9rem; color: var(--muted) !important; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.hm-browse-tabs a.active { color: var(--text) !important; border-bottom-color: var(--rose); }
.hm-empty { text-align: center; padding: 56px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.hm-empty h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 6px; }
.hm-empty p { color: var(--muted); margin-bottom: 18px; }
.hm-seo-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); margin-top: 48px; }
.hm-seo-block .hm-split { gap: 48px; }
.hm-hash { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-hash a { font-size: .82rem; font-weight: 700; padding: 5px 11px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); color: var(--muted) !important; text-decoration: none; }
.hm-hash a:hover { color: var(--rose-600) !important; border-color: var(--rose); }
.hm-hash sup { opacity: .55; margin-left: 2px; }

/* Member cards (browse) */
body.hm .member-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
body.hm .member-card:hover { box-shadow: var(--sh-2); border-color: transparent; }
body.hm .member-avatar { border: 0; }
body.hm .active-badge { background: #E7F7F0; color: #0E7A55; }

/* Legacy page heroes re-skinned to the ink palette */
body.hm .browse-hero, body.hm .hero-section { background: var(--ink) !important; color: var(--ink-text); }
body.hm .legal-wrap h1 { font-family: var(--font-display); font-weight: 600; color: var(--text) !important; letter-spacing: -.02em; }
body.hm .legal-banner { background: var(--rose-50); border-color: #F6C5D1; color: #7A1D35; }
body.hm .section-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }

/* ================================================================ FOOTER */
.hm-footer { background: var(--ink); color: var(--ink-muted); margin-top: 0; }
.hm-footer-inner { max-width: 1240px; margin: 0 auto; padding: 56px 20px 32px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.hm-footer-brand p { font-size: .88rem; line-height: 1.65; margin: 16px 0 0; max-width: 30rem; }
.hm-footer-18 { display: flex; align-items: center; gap: 10px; color: var(--ink-text); font-weight: 600; }
.hm-footer-col { display: flex; flex-direction: column; gap: 7px; }
body.hm .hm-footer-col h2 { font-family: var(--font-ui); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.hm-footer-col a { color: var(--ink-muted) !important; text-decoration: none; font-size: .9rem; font-weight: 600; }
.hm-footer-col a:hover { color: #fff !important; }
.hm-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid var(--ink-line); display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; font-size: .8rem; }
.hm-footer-bottom a { color: var(--ink-text) !important; }
.site-footer { display: none !important; }

/* Bottom app bar: phones/tablets only */
body.hm .fixed-footer-nav { background: rgba(20,15,24,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--ink-line); box-shadow: none; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
body.hm .footer-nav-item { color: var(--ink-muted) !important; font-weight: 700; font-size: .7rem; }
body.hm .footer-nav-item i { font-size: 1.15rem; }
body.hm .footer-nav-item:hover { color: #fff !important; }
body.hm .footer-nav-primary { color: #fff !important; }
body.hm .upload-button-circle { background: var(--grad); width: 46px; height: 46px; box-shadow: 0 8px 18px -6px rgba(229,55,95,.8); margin-top: -18px; border: 3px solid var(--ink); }
@media (min-width: 992px) {
  body.hm .fixed-footer-nav { display: none !important; }
  body.hm { padding-bottom: 0 !important; }
}
@media (max-width: 991.98px) {
  body.hm { padding-bottom: 72px !important; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1100px) {
  .hm-footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .hm-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  .hm-hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 20px 56px; }
  .hm-split { grid-template-columns: 1fr; gap: 32px; }
  .hm-steps, .hm-trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .hm-nav { gap: 10px; padding: 0 14px; }
  .hm-logo-word { font-size: 1.25rem; }
  .hm-rail-inner { padding: 8px 14px; }
  .hm-container, .hm-container-narrow { padding: 0 16px; }
  .hm-section { padding: 44px 0; }
  .hm-hero h1 { font-size: 2.35rem; }
  .hm-hero-lede { font-size: 1rem; }
  .hm-hero-stats { gap: 22px; }
  .hm-hero-stats strong { font-size: 1.5rem; }
  .hm-join { padding: 22px; border-radius: var(--r-lg); }
  .hm-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hm-tile { min-height: 116px; padding: 14px; }
  .hm-tile div span { display: none; }
  .hm-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 40px; }
  body.hm .pin-info { padding: 10px 10px 12px !important; }
  .hm-card-stats { gap: 8px; }
  .hm-card-save .hm-save-txt { display: none; }
  .hm-nav-actions .hm-btn-ghost { display: none; }
}
