/* ============================================================
   MZWORLD — MAIN STYLESHEET  v2026
   Design: Light-first · Minimal · Accessible · Clean
   tokens.css is loaded separately in HTML
   ============================================================ */

/* ─── 1. RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
  font-family: var(--font-sans), 'Pretendard', -apple-system, sans-serif;
  font-size: var(--text-md, 15px);
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Accessibility: Focus visible ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ─── Skip link for screen readers ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
img, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
h1,h2,h3,h4,h5,h6 { font-weight: 800; letter-spacing: -0.03em; }

/* ─── 2. SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(123,63,255,0.35);
  border-radius: 9999px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: rgba(123,63,255,0.6); }
* { scrollbar-width: thin; scrollbar-color: rgba(123,63,255,0.35) transparent; }

/* ─── SELECTION ─── */
::selection { background: rgba(123,63,255,0.4); color: var(--text-primary); }

/* ─── APP SHELL ─── */
#app { display: flex; flex-direction: column; min-height: 100vh; position: relative; }

/* ─── 3. ANIMATED BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(123,63,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255,43,101,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(0,221,255,0.07) 0%, transparent 50%),
    var(--bg-base, #07070F);
  animation: bgShift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
  opacity: 0.022;
  pointer-events: none;
}

/* floating orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123,63,255,0.22), transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,43,101,0.15), transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -7s;
  animation-duration: 25s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,221,255,0.1), transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -12s;
  animation-duration: 30s;
}

/* ─── 4. TOP NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height, 60px);
  background: rgba(7,7,15,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-6, 24px);
  gap: var(--sp-4, 16px);
}
[data-theme="light"] .nav {
  background: rgba(245,245,255,0.82);
  border-bottom-color: rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2, 8px);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--brand-gradient-main, linear-gradient(135deg,#7B3FFF,#FF2B65));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px rgba(123,63,255,0.5);
  animation: pulse-glow 3s ease-in-out infinite;
}
.nav-logo-text {
  background: var(--brand-gradient-main, linear-gradient(135deg,#7B3FFF,#FF2B65));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-tabs {
  display: flex;
  gap: 2px;
  margin-left: var(--sp-4, 16px);
  flex: 1;
  overflow: hidden;
}
.nav-tab {
  position: relative;
  height: 36px;
  padding: 0 var(--sp-4, 16px);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(242,242,255,0.55);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.nav-tab:hover { color: var(--text-primary, #F2F2FF); background: rgba(255,255,255,0.05); }
.nav-tab.active {
  color: var(--text-primary, #F2F2FF);
  background: rgba(255,255,255,0.07);
  font-weight: 700;
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--brand-gradient-main, linear-gradient(135deg,#7B3FFF,#FF2B65));
  border-radius: 9999px;
  animation: scaleIn 0.25s ease;
}
.nav-tab i { font-size: 15px; margin-right: 4px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Search bar in nav */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2, 8px);
  height: 36px;
  padding: 0 var(--sp-3, 12px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  transition: all 0.25s ease;
  min-width: 200px;
}
.search-bar:focus-within {
  border-color: var(--brand-violet, #7B3FFF);
  background: rgba(123,63,255,0.08);
  box-shadow: 0 0 0 3px rgba(123,63,255,0.14), 0 0 20px rgba(123,63,255,0.1);
  min-width: 260px;
}
.search-bar input { flex: 1; font-size: 13px; color: var(--text-primary, #F2F2FF); background: none; }
.search-bar input::placeholder { color: rgba(144,144,184,0.7); }
.search-icon { color: rgba(144,144,184,0.7); font-size: 15px; flex-shrink: 0; }
[data-theme="light"] .search-bar { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }

/* Icon button */
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: rgba(144,144,184,0.8);
  transition: all 0.18s ease;
  font-size: 18px;
  position: relative;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.07); color: var(--text-primary, #F2F2FF); }

/* ─── 5. BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2, 8px);
  height: 40px;
  padding: 0 var(--sp-5, 20px);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}
.btn:hover::after { background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.97); }
.btn:active::after { background: rgba(0,0,0,0.08); }

.btn-primary {
  background: var(--brand-gradient-main, linear-gradient(135deg,#7B3FFF,#FF2B65));
  color: white;
  box-shadow: 0 4px 18px rgba(123,63,255,0.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(123,63,255,0.55), 0 0 0 1px rgba(123,63,255,0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary, #F2F2FF);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.btn-ghost {
  color: rgba(144,144,184,0.9);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-primary,#F2F2FF); }

.btn-outline {
  background: transparent;
  color: var(--brand-violet,#7B3FFF);
  border: 1.5px solid var(--brand-violet,#7B3FFF);
}
.btn-outline:hover { background: rgba(123,63,255,0.1); box-shadow: 0 0 12px rgba(123,63,255,0.2); }

.btn-sm { height: 32px; padding: 0 var(--sp-4,16px); font-size: 12px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 var(--sp-8,32px); font-size: 16px; border-radius: 16px; }
.btn-xl { height: 58px; padding: 0 40px; font-size: 17px; border-radius: 18px; }
.btn-full { width: 100%; }

/* ─── CATEGORY DISCOVERY BAR ─── */
.cat-bar {
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7,7,15,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: var(--nav-height, 60px);
  z-index: 190;
  margin-top: var(--nav-height, 60px);
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: var(--r-full, 9999px);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cat-pill:hover {
  border-color: var(--brand-violet);
  color: var(--brand-violet);
  background: rgba(123,63,255,0.06);
}
.cat-pill.active {
  background: var(--brand-gradient-main);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(123,63,255,0.4);
}

/* ─── 6. MAIN LAYOUT ─── */
.main-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
  align-items: start;
}

.content-area {
  flex: 1;
  min-width: 0;
}

.sidebar-right {
  width: 280px;
  flex-shrink: 0;
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.sidebar-right::-webkit-scrollbar { width: 0; }

/* ─── 7. SIDEBAR NAV ─── */
.sidebar-nav-section {
  margin-bottom: 8px;
}
.sidebar-nav-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(144,144,184,0.5);
  padding: 4px 12px;
  margin-bottom: 2px;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(144,144,184,0.85);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.055);
  color: var(--text-primary,#F2F2FF);
}
.sidebar-nav-item.active {
  background: rgba(123,63,255,0.14);
  color: #B08FFF;
}
.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  border-radius: 9999px;
}
.sidebar-nav-item .nav-icon { font-size: 18px; flex-shrink: 0; }
.sidebar-nav-item .nav-label { flex: 1; }
.sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  min-width: 20px;
  text-align: center;
}
[data-theme="light"] .sidebar-nav-item { color: rgba(30,30,60,0.65); }
[data-theme="light"] .sidebar-nav-item:hover { background: rgba(0,0,0,0.05); color: #1e1e3c; }
[data-theme="light"] .sidebar-nav-item.active { background: rgba(123,63,255,0.1); color: var(--brand-violet,#7B3FFF); }

/* ─── 8. CARDS & WIDGETS ─── */
.card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.22s ease;
}
.card:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(123,63,255,0.08);
}
.card-sm { padding: 14px; border-radius: 14px; }
.card-lg { padding: 28px; border-radius: 24px; }
.card-glow:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(123,63,255,0.15); }

.widget {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s;
}
.widget:hover { border-color: rgba(255,255,255,0.1); }
/* Hide empty widgets to prevent layout gaps */
.widget:empty { display: none !important; }
.widget-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary,#F2F2FF);
}
.widget-title i { color: var(--brand-violet,#7B3FFF); font-size: 16px; }
[data-theme="light"] .card,
[data-theme="light"] .widget {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.08);
}

/* ─── 9. DIVIDER ─── */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 16px 0;
  border: none;
}
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,63,255,0.4), rgba(255,43,101,0.3), transparent);
  margin: 16px 0;
  border: none;
}

/* ─── 10. VIEWS ─── */
.view { display: none; }
.view.active {
  display: block;
  animation: fadeIn 0.32s ease forwards;
}

/* ─── UTILITY ─── */
.hidden { display: none !important; }
.active-class { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.text-secondary { color: rgba(144,144,184,0.9); }
.text-tertiary  { color: rgba(144,144,184,0.55); }
.font-bold { font-weight: 700; } .font-black { font-weight: 900; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gradient-text {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── SECTION HEADER ─── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.section-title {
  font-size: 20px; font-weight: 800; letter-spacing: -0.03em;
}
.section-title .accent {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ─── AVATAR ─── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.avatar-sm { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
.avatar-lg { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
.avatar-xl { width: 80px; height: 80px; font-size: 40px; border-radius: 20px; }
.avatar-round { border-radius: 9999px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ─── TAGS / BADGES ─── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: rgba(144,144,184,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.18s; cursor: pointer; white-space: nowrap;
}
.tag:hover { border-color: rgba(255,255,255,0.16); color: var(--text-primary,#F2F2FF); }
.tag-violet { background: rgba(123,63,255,0.14); color: #B08FFF; border-color: rgba(123,63,255,0.22); }
.tag-pink   { background: rgba(255,43,101,0.12);  color: #FF7AAA; border-color: rgba(255,43,101,0.2); }
.tag-cyan   { background: rgba(0,221,255,0.1);    color: #66EEFF; border-color: rgba(0,221,255,0.2); }
.tag-lime   { background: rgba(195,255,0,0.1);    color: #C3FF00; border-color: rgba(195,255,0,0.18); }
.tag-orange { background: rgba(255,123,30,0.1);   color: #FF9F5E; border-color: rgba(255,123,30,0.2); }

.hot-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 9999px;
  font-size: 10px; font-weight: 800;
  background: linear-gradient(135deg,#FF6B35,#FF2B65);
  color: white; letter-spacing: 0.02em;
}

/* ─── 11. HOME VIEW ─── */
.home-hero {
  margin-bottom: 36px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  background: rgba(123,63,255,0.1);
  border: 1px solid rgba(123,63,255,0.28);
  border-radius: 9999px;
  font-size: 12px; font-weight: 700; color: #B08FFF;
  margin-bottom: 16px;
  animation: slideUp 0.5s ease forwards;
}
.hero-heading {
  font-size: clamp(28px,5vw,52px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: slideUp 0.55s ease 0.05s both;
}
.hero-sub {
  color: rgba(144,144,184,0.9);
  font-size: clamp(14px,1.8vw,17px);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 24px;
  animation: slideUp 0.6s ease 0.1s both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: slideUp 0.65s ease 0.15s both;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: default;
  backdrop-filter: blur(16px);
}
.stat-card:hover {
  border-color: rgba(123,63,255,0.25);
  background: rgba(123,63,255,0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.stat-num {
  font-size: clamp(20px,2.5vw,28px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block;
}
.stat-label { font-size: 11px; font-weight: 600; color: rgba(144,144,184,0.7); margin-top: 3px; }

/* Category quick buttons */
.category-quick {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.category-quick-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border-radius: 9999px;
  font-size: 13px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(144,144,184,0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.category-quick-btn:hover {
  background: rgba(123,63,255,0.1);
  border-color: rgba(123,63,255,0.3);
  color: #B08FFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123,63,255,0.2);
}
.category-quick-btn.active {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  border-color: transparent; color: white;
  box-shadow: 0 4px 16px rgba(123,63,255,0.35);
}

/* Hot posts section */
.hot-posts-section { margin-bottom: 32px; }

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.bento-cell {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.22s ease;
  cursor: pointer;
}
.bento-cell:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.bento-cell-wide { grid-column: span 2; }
.bento-cell-tall { grid-row: span 2; }
.bento-cell-featured {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  border-color: transparent;
}
.bento-cell-featured:hover { border-color: transparent; box-shadow: 0 12px 36px rgba(123,63,255,0.35); }
.bento-inner {
  padding: 20px; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.bento-eyebrow { font-size: 11px; font-weight: 700; color: rgba(144,144,184,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.bento-cell-featured .bento-eyebrow { color: rgba(255,255,255,0.6); }
.bento-title { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.bento-cell-featured .bento-title { color: white; }
.bento-desc { font-size: 13px; color: rgba(144,144,184,0.85); line-height: 1.55; }
.bento-cell-featured .bento-desc { color: rgba(255,255,255,0.75); }
.bento-footer { display: flex; align-items: center; gap: 7px; margin-top: auto; font-size: 11px; color: rgba(144,144,184,0.55); }
.bento-emoji { font-size: 32px; }

/* ─── 12. POST CARDS ─── */
.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 18px;
  transition: all 0.22s ease;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}
.post-card:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(123,63,255,0.2);
  box-shadow: 0 6px 28px rgba(0,0,0,0.25), 0 0 0 1px rgba(123,63,255,0.08);
  transform: translateY(-2px);
}
.post-card-header {
  display: flex; align-items: flex-start;
  gap: 12px; margin-bottom: 10px;
}
.post-card-meta { flex: 1; min-width: 0; }
.post-card-author {
  display: flex; align-items: center;
  gap: 7px; margin-bottom: 6px;
}
.author-name { font-size: 13px; font-weight: 700; color: var(--text-primary,#F2F2FF); }
.author-badge {
  padding: 1px 7px; border-radius: 9999px;
  font-size: 10px; font-weight: 800;
  background: rgba(123,63,255,0.16); color: #B08FFF;
}
.post-time { font-size: 11px; color: rgba(144,144,184,0.5); margin-left: auto; flex-shrink: 0; }

.post-category-tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 9999px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.post-card-title {
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 6px; line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-content {
  font-size: 13px; color: rgba(144,144,184,0.85);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.post-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.post-card-image {
  width: 100%; border-radius: 12px;
  max-height: 220px; object-fit: cover;
  margin: 6px 0 10px;
}
.post-card-stats {
  display: flex; align-items: center; gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.stat-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(144,144,184,0.6);
}
.stat-item i { font-size: 13px; }
.stat-like { color: #FF6B95; }
.post-card-pinned {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; color: #C3FF00;
  background: rgba(195,255,0,0.1); border-radius: 9999px; padding: 2px 8px;
}

/* Reaction bar on post cards */
.reaction-bar {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 10px;
  position: relative;
}
.reaction-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  font-size: 13px; cursor: pointer;
  transition: all 0.18s; font-weight: 600;
  color: rgba(144,144,184,0.8);
}
.reaction-btn:hover { transform: scale(1.1); border-color: var(--brand-violet,#7B3FFF); background: rgba(123,63,255,0.09); }
.reaction-btn.reacted { background: rgba(123,63,255,0.14); border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; }
.reaction-btn .cnt { font-size: 11px; }
.reaction-add-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1.5px dashed rgba(255,255,255,0.1);
  font-size: 16px; cursor: pointer; transition: all 0.18s;
  color: rgba(144,144,184,0.55);
}
.reaction-add-btn:hover { border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; background: rgba(123,63,255,0.08); }
.reaction-picker {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 0;
  background: rgba(15,15,30,0.95); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 8px; gap: 3px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 50; width: 216px;
  backdrop-filter: blur(20px);
}
.reaction-picker.open { display: flex; animation: scaleIn 0.18s ease; }
.reaction-picker-item {
  font-size: 22px; cursor: pointer; padding: 4px; border-radius: 8px;
  transition: all 0.15s; line-height: 1;
}
.reaction-picker-item:hover { background: rgba(123,63,255,0.14); transform: scale(1.3); }

/* ─── 13. CATEGORY TABS ─── */
.category-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; margin-bottom: 20px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex-shrink: 0; height: 36px; padding: 0 16px;
  border-radius: 9999px; font-size: 13px; font-weight: 700;
  color: rgba(144,144,184,0.8);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.07);
  transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
}
.category-tab:hover { color: var(--text-primary,#F2F2FF); border-color: rgba(255,255,255,0.14); }
.category-tab.active {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  color: white; border-color: transparent;
  box-shadow: 0 4px 16px rgba(123,63,255,0.3);
}

/* ─── 14. COMMUNITY VIEW ─── */
.community-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 9999px; padding: 0 16px; height: 46px;
  transition: border-color 0.2s; margin-bottom: 12px;
}
.community-search:focus-within {
  border-color: var(--brand-violet,#7B3FFF);
  box-shadow: 0 0 0 3px rgba(123,63,255,0.12);
}
.community-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 14px; color: var(--text-primary,#F2F2FF);
}
.community-search input::placeholder { color: rgba(144,144,184,0.5); }
.community-search i { font-size: 17px; color: rgba(144,144,184,0.5); }

.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-pill {
  height: 32px; padding: 0 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(144,144,184,0.8); cursor: pointer; transition: all 0.18s;
}
.filter-pill:hover { border-color: rgba(255,255,255,0.14); color: var(--text-primary,#F2F2FF); }
.filter-pill.active {
  background: rgba(123,63,255,0.15); color: #B08FFF;
  border-color: rgba(123,63,255,0.3);
}

.write-prompt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.032);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 18px; margin-bottom: 16px;
  cursor: pointer; transition: all 0.2s;
}
.write-prompt:hover {
  border-color: var(--brand-violet,#7B3FFF);
  background: rgba(123,63,255,0.06);
  box-shadow: 0 0 0 3px rgba(123,63,255,0.1);
}
.write-prompt-text { flex: 1; font-size: 14px; color: rgba(144,144,184,0.5); font-weight: 500; }
.write-prompt-actions { display: flex; gap: 6px; }

/* Sort bar */
.sort-bar { display: flex; align-items: center; gap: 6px; padding: 4px 0 12px; flex-wrap: wrap; }
.sort-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 13px; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  color: rgba(144,144,184,0.8); cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.sort-pill:hover { border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; }
.sort-pill.active { background: var(--brand-violet,#7B3FFF); color: white; border-color: var(--brand-violet,#7B3FFF); box-shadow: 0 4px 12px rgba(123,63,255,0.35); }

/* ─── 15. DICTIONARY VIEW ─── */
.dict-search-wrap { position: relative; margin-bottom: 20px; }
.dict-search {
  width: 100%; height: 54px; padding: 0 20px 0 52px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 18px; font-size: 17px; color: var(--text-primary,#F2F2FF);
  transition: all 0.22s;
}
.dict-search:focus {
  border-color: var(--brand-violet,#7B3FFF);
  background: rgba(123,63,255,0.06);
  box-shadow: 0 0 0 4px rgba(123,63,255,0.12), 0 0 30px rgba(123,63,255,0.08);
}
.dict-search::placeholder { color: rgba(144,144,184,0.45); }
.dict-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: rgba(144,144,184,0.5); pointer-events: none;
}

.dict-categories {
  display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px;
}

.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 12px;
}

.dict-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 20px;
  transition: all 0.22s; display: flex; flex-direction: column; gap: 10px;
  backdrop-filter: blur(16px); cursor: pointer;
}
.dict-card:hover {
  background: rgba(255,255,255,0.058);
  border-color: rgba(123,63,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.3), 0 0 16px rgba(123,63,255,0.1);
}
.dict-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(123,63,255,0.12), rgba(255,43,101,0.08));
  border-color: rgba(123,63,255,0.22);
}

.dict-term {
  font-size: clamp(22px,3vw,34px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dict-pronunciation {
  font-size: 12px; color: rgba(144,144,184,0.55); margin-top: -4px;
}
.dict-pronunciation-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 9999px;
  font-size: 11px; font-weight: 700;
  background: rgba(0,221,255,0.1); color: #66EEFF;
  border: 1px solid rgba(0,221,255,0.2);
}
.dict-category-label {
  display: inline-flex; padding: 2px 8px; border-radius: 9999px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
}
.dict-definition {
  font-size: 13px; color: rgba(144,144,184,0.88); line-height: 1.6;
}
.dict-example {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px; border-left: 2px solid var(--brand-violet,#7B3FFF);
  font-size: 12px; color: rgba(144,144,184,0.75); line-height: 1.55; font-style: italic;
}
.dict-example::before { content: '"'; }
.dict-example::after  { content: '"'; }
.dict-card-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.dict-year { font-size: 11px; color: rgba(144,144,184,0.45); margin-left: auto; }
.dict-vote-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  color: rgba(144,144,184,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: all 0.18s; cursor: pointer;
}
.dict-vote-btn:hover { background: rgba(255,43,101,0.1); color: #FF6B95; border-color: rgba(255,43,101,0.28); }
.dict-vote-btn.voted { background: rgba(255,43,101,0.14); color: #FF6B95; border-color: rgba(255,43,101,0.32); }

/* ─── 16. TRENDING VIEW ─── */
.trending-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 12px;
}
.trending-keyword-list {
  display: flex; flex-direction: column; gap: 0;
}
.trend-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  transition: all 0.18s; cursor: pointer;
}
.trend-item:hover { background: rgba(255,255,255,0.05); }
.trend-rank {
  font-size: 17px; font-weight: 900; color: rgba(144,144,184,0.45);
  width: 28px; text-align: center; flex-shrink: 0;
}
.trend-rank.top3 {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.trend-keyword { flex: 1; font-size: 14px; font-weight: 700; }
.trend-chart {
  display: flex; align-items: flex-end; gap: 2px; height: 20px;
}
.trend-bar {
  width: 4px; border-radius: 2px;
  background: var(--brand-violet,#7B3FFF); opacity: 0.6;
  transition: height 0.3s ease;
}
.trend-change {
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 9999px;
}
.change-up   { background: rgba(32,221,138,0.14); color: #20DD8A; }
.change-down { background: rgba(255,64,80,0.12);  color: #FF4050; }
.change-new  { background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; }
.change-same { background: rgba(144,144,184,0.1);  color: rgba(144,144,184,0.6); }

/* ─── WORD OF DAY WIDGET ─── */
.wotd-card {
  background: linear-gradient(135deg, rgba(123,63,255,0.16), rgba(255,43,101,0.1));
  border: 1px solid rgba(123,63,255,0.25);
  border-radius: 18px; padding: 18px;
  position: relative; overflow: hidden;
}
.wotd-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,63,255,0.2), transparent 70%);
  pointer-events: none;
}
.wotd-eyebrow {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: #B08FFF; margin-bottom: 8px;
}
.wotd-term {
  font-size: 28px; font-weight: 900; letter-spacing: -0.04em;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.wotd-meaning {
  font-size: 13px; color: rgba(144,144,184,0.85); line-height: 1.6; margin-bottom: 12px;
}

/* ─── 17. MBTI VIEW ─── */
.mbti-hero {
  text-align: center;
  padding: 48px 24px 36px;
  position: relative;
}
.mbti-hero-icon {
  font-size: 64px; margin-bottom: 16px;
  animation: float 4s ease-in-out infinite;
  display: inline-block;
}
.mbti-hero-title {
  font-size: clamp(26px,4vw,44px); font-weight: 900; letter-spacing: -0.05em;
  margin-bottom: 12px;
}
.mbti-hero-sub {
  font-size: 15px; color: rgba(144,144,184,0.85); max-width: 400px; margin: 0 auto 24px;
  line-height: 1.6;
}

.mbti-progress {
  height: 5px; border-radius: 9999px;
  background: rgba(255,255,255,0.07); margin-bottom: 28px; overflow: hidden;
}
.mbti-progress-fill {
  height: 100%; border-radius: 9999px;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.mbti-question-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 32px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
  animation: slideUp 0.4s ease;
}
.mbti-question-num {
  font-size: 12px; font-weight: 800; color: #B08FFF;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.mbti-question-text {
  font-size: clamp(17px,2.2vw,22px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.35; margin-bottom: 24px;
}

.mbti-options { display: flex; flex-direction: column; gap: 10px; }
.mbti-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all 0.22s ease;
}
.mbti-option:hover {
  border-color: rgba(123,63,255,0.4);
  background: rgba(123,63,255,0.08);
  transform: translateX(4px);
}
.mbti-option.selected {
  border-color: var(--brand-violet,#7B3FFF);
  background: rgba(123,63,255,0.14);
  color: #B08FFF;
  box-shadow: 0 4px 16px rgba(123,63,255,0.25);
}
.mbti-option-letter {
  width: 32px; height: 32px; border-radius: 9999px;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; flex-shrink: 0;
  transition: all 0.2s;
}
.mbti-option.selected .mbti-option-letter {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  border-color: transparent; color: white;
}
.mbti-option-text { flex: 1; }

.mbti-result-card {
  border-radius: 28px; overflow: hidden; margin-bottom: 24px;
  animation: scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.mbti-result-header {
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  padding: 36px 28px; text-align: center; position: relative; overflow: hidden;
}
.mbti-type-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 20px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  font-size: 28px; font-weight: 900; color: white;
  margin-bottom: 14px; position: relative; z-index: 1;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.mbti-result-type {
  font-size: 42px; font-weight: 900; color: white; letter-spacing: -0.04em;
  position: relative; z-index: 1; margin-bottom: 6px;
}
.mbti-result-name {
  font-size: 16px; color: rgba(255,255,255,0.8); font-weight: 600;
  position: relative; z-index: 1;
}
.mbti-result-body {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none; padding: 24px; border-radius: 0 0 28px 28px;
}
.mbti-profile-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px;
}
.mbti-profile-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px;
}
.mbti-profile-label { font-size: 11px; font-weight: 700; color: rgba(144,144,184,0.6); margin-bottom: 5px; }
.mbti-profile-value { font-size: 14px; font-weight: 700; }
.mbti-compat { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mbti-compat-badge {
  padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 800;
  background: rgba(123,63,255,0.15); color: #B08FFF; border: 1px solid rgba(123,63,255,0.25);
}
.mbti-compat-badge.enemy { background: rgba(255,43,101,0.12); color: #FF7AAA; border-color: rgba(255,43,101,0.25); }

/* ─── 18. MODALS ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: rgba(12,12,24,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px; width: 100%; max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(123,63,255,0.12);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden; backdrop-filter: blur(24px);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
[data-theme="light"] .modal { background: rgba(250,250,255,0.97); border-color: rgba(0,0,0,0.1); }
.modal-header { padding: 24px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-title { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.modal-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; color: rgba(144,144,184,0.7); font-size: 20px;
  transition: all 0.18s; flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary,#F2F2FF); }
.modal-body { padding: 18px 24px 24px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 8px; justify-content: flex-end; }

/* ─── 19. AUTH FORMS ─── */
.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 4px; margin-bottom: 22px;
}
.auth-tab { flex: 1; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 700; color: rgba(144,144,184,0.8); transition: all 0.2s; cursor: pointer; }
.auth-tab.active { background: rgba(255,255,255,0.1); color: var(--text-primary,#F2F2FF); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: rgba(144,144,184,0.8); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
  width: 100%; height: 48px; padding: 0 16px;
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 12px; font-size: 15px; color: var(--text-primary,#F2F2FF); transition: all 0.22s;
}
.form-input:focus { border-color: var(--brand-violet,#7B3FFF); background: rgba(123,63,255,0.07); box-shadow: 0 0 0 3px rgba(123,63,255,0.12); }
.form-input::placeholder { color: rgba(144,144,184,0.4); }
.form-input.error { border-color: #FF4050; }
.form-error { font-size: 11px; color: #FF6B7A; margin-top: 6px; }
.form-hint  { font-size: 11px; color: rgba(144,144,184,0.55); margin-top: 6px; }
[data-theme="light"] .form-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #1e1e3c; }

.sns-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: rgba(144,144,184,0.5); font-size: 12px; }
.sns-divider::before, .sns-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07); }
.sns-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.sns-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-size: 13px; font-weight: 700; transition: all 0.2s; border: 1px solid transparent; cursor: pointer; }
.sns-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.sns-btn:active { transform: translateY(0); }
.sns-btn-kakao { background: #FEE500; color: #191919; }
.sns-btn-naver { background: #03C75A; color: white; }
.sns-btn-google { background: white; color: #3c4043; border-color: #dadce0; }
.sns-btn-apple  { background: #000; color: white; }
.sns-icon { width: 20px; height: 20px; font-size: 16px; font-weight: 900; flex-shrink: 0; }

.signup-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.signup-step { flex: 1; height: 4px; background: rgba(255,255,255,0.07); border-radius: 9999px; overflow: hidden; }
.signup-step-fill { height: 100%; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); border-radius: 9999px; transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1); }

.nickname-suggest { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.nickname-chip { padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); color: rgba(144,144,184,0.8); cursor: pointer; transition: all 0.18s; }
.nickname-chip:hover { background: rgba(123,63,255,0.1); border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; }

/* ─── 20. LEADERBOARD ─── */
.leaderboard-list { display: flex; flex-direction: column; gap: 7px; }
.leaderboard-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); transition: all 0.18s; cursor: pointer; }
.leaderboard-item:hover { background: rgba(123,63,255,0.06); border-color: rgba(123,63,255,0.18); }
.leaderboard-item.rank-1 { background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,180,0,0.06)); border-color: rgba(255,215,0,0.22); }
.leaderboard-item.rank-2 { background: linear-gradient(135deg, rgba(192,192,192,0.08), rgba(160,160,160,0.04)); border-color: rgba(192,192,192,0.18); }
.leaderboard-item.rank-3 { background: linear-gradient(135deg, rgba(205,127,50,0.1), rgba(180,110,40,0.05)); border-color: rgba(205,127,50,0.2); }
.rank-badge,
.leaderboard-rank { font-size: 14px; font-weight: 900; width: 24px; text-align: center; flex-shrink: 0; color: rgba(144,144,184,0.5); }
.rank-badge.gold, .leaderboard-rank.gold     { color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,0.6); }
.rank-badge.silver, .leaderboard-rank.silver { color: #C0C0C0; }
.rank-badge.bronze, .leaderboard-rank.bronze { color: #CD7F32; }
.leaderboard-avatar { font-size: 22px; flex-shrink: 0; }
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-xp   { font-size: 11px; color: rgba(144,144,184,0.55); }
.leaderboard-score { font-size: 12px; font-weight: 800; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ─── 21. BOTTOM NAV ─── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
  background: rgba(7,7,15,0.9);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.07); z-index: 100;
  padding: 0 24px; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[data-theme="light"] .bottom-nav { background: rgba(248,248,255,0.92); border-top-color: rgba(0,0,0,0.08); }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 10px; color: rgba(144,144,184,0.55); font-size: 10px; font-weight: 700; transition: all 0.2s; cursor: pointer; border-radius: 12px; flex: 1; max-width: 64px; }
.bottom-nav-item i { font-size: 22px; }
.bottom-nav-item.active { color: var(--brand-violet,#7B3FFF); }
.bottom-nav-item.active i { filter: drop-shadow(0 0 6px rgba(123,63,255,0.7)); }
.bottom-nav-item:hover { color: var(--text-primary,#F2F2FF); }

/* ─── 22. FAB ─── */
.fab {
  position: fixed; bottom: calc(64px + 18px); right: 20px;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65));
  color: white; font-size: 22px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(123,63,255,0.5), 0 0 0 1px rgba(123,63,255,0.3);
  z-index: 90; transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 10px 32px rgba(123,63,255,0.6); }
.fab:active { transform: scale(0.95); }

/* ─── 23. TOAST ─── */
.toast-container {
  position: fixed; bottom: calc(64px + 16px); left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  background: rgba(18,18,32,0.95); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45); white-space: nowrap; pointer-events: auto;
  backdrop-filter: blur(20px);
  animation: toast-in 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.toast.out { animation: toast-out 0.25s ease forwards; }
.toast i { font-size: 16px; }
.toast-success i { color: #20DD8A; }
.toast-error   i { color: #FF6B7A; }
.toast-info    i { color: #66EEFF; }
[data-theme="light"] .toast { background: rgba(250,250,255,0.97); border-color: rgba(0,0,0,0.1); color: #1e1e3c; }

/* ─── 24. LOADER ─── */
.loader { display: flex; justify-content: center; align-items: center; padding: 36px; gap: 6px; }
.loader-dot { width: 8px; height: 8px; border-radius: 50%; animation: loaderBounce 1.2s infinite ease-in-out; }
.loader-dot:nth-child(1) { background: var(--brand-violet,#7B3FFF); animation-delay: 0s; }
.loader-dot:nth-child(2) { background: #BF6FFF; animation-delay: 0.15s; }
.loader-dot:nth-child(3) { background: var(--brand-pink,#FF2B65); animation-delay: 0.3s; }

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 600px 100%; animation: shimmer 1.6s infinite linear; border-radius: 8px;
}
.skeleton-card { padding: 16px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line   { height: 13px; }
.skeleton-avatar { width: 36px; height: 36px; border-radius: 50%; }
.skeleton-title  { height: 18px; width: 72%; }
.skeleton-body   { height: 11px; }
.skeleton-body-short { height: 11px; width: 52%; }

/* ─── 25. PROFILE VIEW ─── */
.profile-header {
  background: linear-gradient(135deg, rgba(123,63,255,0.15), rgba(255,43,101,0.1));
  border: 1px solid rgba(123,63,255,0.22); border-radius: 24px; padding: 28px;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.profile-header::before { content: ''; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(123,63,255,0.18), transparent 70%); pointer-events: none; }
.profile-info { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; position: relative; z-index: 1; }
.profile-avatar { width: 80px; height: 80px; border-radius: 22px; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; overflow: hidden; box-shadow: 0 8px 28px rgba(123,63,255,0.4); border: 2px solid rgba(255,255,255,0.15); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 4px; }
.profile-handle { font-size: 13px; color: rgba(144,144,184,0.65); margin-bottom: 8px; }
.profile-bio { font-size: 13px; color: rgba(144,144,184,0.8); line-height: 1.55; max-width: 360px; }
.profile-stats { display: flex; gap: 28px; position: relative; z-index: 1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.07); }
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; display: block; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.profile-stat-label { font-size: 11px; color: rgba(144,144,184,0.6); margin-top: 2px; }

.xp-bar-wrap { display: flex; flex-direction: column; gap: 7px; }
.xp-bar-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.xp-total { color: rgba(144,144,184,0.6); font-size: 12px; }
.xp-bar-track { height: 8px; background: rgba(255,255,255,0.07); border-radius: 9999px; overflow: hidden; }
.xp-bar-fill { height: 100%; border-radius: 9999px; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1); position: relative; overflow: hidden; }
.xp-bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.3) 55%, transparent 70%); animation: shimmer 2s infinite linear; background-size: 200% 100%; }
.xp-bar-footer { display: flex; justify-content: space-between; font-size: 11px; color: rgba(144,144,184,0.5); }
.level-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 800; border: 1px solid; line-height: 1.4; }

/* ─── 26. COMMENT SECTION ─── */
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.comment-item { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.comment-author { font-size: 12px; font-weight: 700; }
.comment-time   { font-size: 10px; color: rgba(144,144,184,0.5); }
.comment-text { font-size: 13px; color: rgba(144,144,184,0.88); line-height: 1.55; word-break: break-word; }
.comment-delete-btn { font-size: 11px; color: rgba(144,144,184,0.4); margin-left: auto; padding: 2px 6px; border-radius: 6px; transition: all 0.18s; cursor: pointer; }
.comment-delete-btn:hover { background: rgba(255,64,80,0.1); color: #FF6B7A; }

.comment-input-wrap { display: flex; gap: 10px; align-items: flex-end; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(7,7,15,0.8); backdrop-filter: blur(16px); flex-shrink: 0; }
.comment-input { flex: 1; min-height: 40px; max-height: 120px; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.08); border-radius: 16px; font-size: 13px; color: var(--text-primary,#F2F2FF); resize: none; overflow-y: auto; line-height: 1.5; transition: border-color 0.2s; }
.comment-input:focus { border-color: var(--brand-violet,#7B3FFF); background: rgba(123,63,255,0.06); outline: none; }
.comment-input::placeholder { color: rgba(144,144,184,0.4); }
.comment-submit-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; border-radius: 12px; font-size: 16px; flex-shrink: 0; transition: all 0.2s; box-shadow: 0 4px 14px rgba(123,63,255,0.4); cursor: pointer; }
.comment-submit-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(123,63,255,0.5); }

/* ─── 27. POST DETAIL ─── */
.post-detail-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 200; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.post-detail-overlay.open { opacity: 1; pointer-events: auto; }
.post-detail-panel { background: rgba(10,10,22,0.97); border-radius: 28px 28px 0 0; width: 100%; max-width: 720px; max-height: 93vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 -12px 60px rgba(0,0,0,0.4); backdrop-filter: blur(24px); }
.post-detail-overlay.open .post-detail-panel { transform: translateY(0); }
[data-theme="light"] .post-detail-panel { background: rgba(252,252,255,0.98); }
.post-detail-drag { width: 40px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 9999px; margin: 12px auto 4px; flex-shrink: 0; }
.post-detail-header { display: flex; align-items: center; gap: 10px; padding: 10px 18px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.post-detail-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(255,255,255,0.07); color: rgba(144,144,184,0.7); font-size: 18px; transition: all 0.18s; flex-shrink: 0; cursor: pointer; }
.post-detail-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary,#F2F2FF); }
.post-detail-scroll { overflow-y: auto; flex: 1; padding: 18px; -webkit-overflow-scrolling: touch; }
.post-detail-title { font-size: clamp(18px,2.5vw,26px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.25; margin-bottom: 16px; }
.comments-section-title { font-size: 14px; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; letter-spacing: -0.02em; }
.post-detail-author { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 18px; }
.post-detail-author-name { font-size: 13px; font-weight: 700; }
.post-detail-meta { font-size: 11px; color: rgba(144,144,184,0.5); margin-top: 2px; }
.post-detail-body { font-size: 15px; line-height: 1.7; color: rgba(144,144,184,0.9); margin-bottom: 18px; white-space: pre-wrap; word-break: break-word; }
.post-detail-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; }
.post-detail-actions { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 22px; }
.post-action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9999px; border: 1.5px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); font-size: 13px; font-weight: 700; color: rgba(144,144,184,0.8); cursor: pointer; transition: all 0.2s; }
.post-action-btn:hover { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.07); color: var(--text-primary,#F2F2FF); }
.post-action-btn.liked { background: rgba(255,43,101,0.12); color: #FF7AAA; border-color: rgba(255,43,101,0.3); }
.post-action-btn i { font-size: 16px; }
.post-detail-views { margin-left: auto; font-size: 11px; color: rgba(144,144,184,0.5); display: flex; align-items: center; gap: 4px; }

.post-action-menu { position: absolute; top: calc(100% + 4px); right: 0; background: rgba(14,14,28,0.97); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 50; min-width: 148px; overflow: hidden; backdrop-filter: blur(20px); animation: scaleIn 0.18s ease; }
.post-action-menu-item { display: flex; align-items: center; gap: 9px; padding: 11px 16px; font-size: 13px; font-weight: 700; color: rgba(144,144,184,0.85); cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.post-action-menu-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary,#F2F2FF); }
.post-action-menu-item.danger { color: #FF6B7A; }
.post-action-menu-item.danger:hover { background: rgba(255,64,80,0.07); }

.bookmark-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 9999px; background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.08); color: rgba(144,144,184,0.6); font-size: 14px; cursor: pointer; transition: all 0.18s; }
.bookmark-btn:hover { border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; }
.bookmark-btn.bookmarked { background: rgba(123,63,255,0.14); border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; }

.load-more-btn { width: 100%; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1.5px dashed rgba(255,255,255,0.09); color: rgba(144,144,184,0.7); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.load-more-btn:hover { border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; background: rgba(123,63,255,0.04); }
.load-more-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Share modal */
.share-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.share-modal-overlay.open { opacity: 1; pointer-events: all; }
.share-modal { background: rgba(12,12,24,0.97); border-radius: 24px 24px 0 0; padding: 24px; width: 100%; max-width: 480px; transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); border: 1px solid rgba(255,255,255,0.09); border-bottom: none; backdrop-filter: blur(24px); }
.share-modal-overlay.open .share-modal { transform: translateY(0); }
.share-modal-title { font-size: 17px; font-weight: 900; margin-bottom: 16px; text-align: center; letter-spacing: -0.03em; }
.share-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; padding: 10px 6px; border-radius: 16px; transition: background 0.18s; }
.share-item:hover { background: rgba(255,255,255,0.06); }
.share-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; transition: transform 0.18s; }
.share-item:hover .share-icon { transform: scale(1.1); }
.share-label { font-size: 11px; font-weight: 700; color: rgba(144,144,184,0.7); }
.share-link-wrap { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 10px 14px; }
.share-link-text { flex: 1; font-size: 12px; color: rgba(144,144,184,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-copy-btn { flex-shrink: 0; padding: 6px 14px; border-radius: 9px; background: var(--brand-violet,#7B3FFF); color: white; font-size: 12px; font-weight: 700; cursor: pointer; transition: opacity 0.18s; }
.share-copy-btn:hover { opacity: 0.85; }

/* ─── MISC ─── */
.hot-topic-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.hot-topic-item:last-child { border-bottom: none; padding-bottom: 0; }
.hot-topic-title { font-size: 13px; font-weight: 600; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-topic-item:hover .hot-topic-title { color: #B08FFF; }
.hot-topic-meta { display: flex; align-items: center; gap: 7px; font-size: 10px; color: rgba(144,144,184,0.5); margin-top: 4px; }

.poll-wrap { background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 16px; margin: 12px 0; }
.poll-label { font-size: 10px; font-weight: 900; color: #B08FFF; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 7px; }
.poll-question { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.poll-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); margin-bottom: 7px; cursor: pointer; position: relative; overflow: hidden; transition: all 0.2s; font-size: 13px; font-weight: 600; }
.poll-option:hover:not(.voted) { border-color: var(--brand-violet,#7B3FFF); }
.poll-option.voted { border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; }
.poll-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(123,63,255,0.1); border-radius: 12px; pointer-events: none; transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1); }
.poll-option-text { position: relative; z-index: 1; flex: 1; }
.poll-pct { position: relative; z-index: 1; font-size: 11px; color: rgba(144,144,184,0.6); font-weight: 700; }
.poll-total { font-size: 11px; color: rgba(144,144,184,0.45); text-align: right; margin-top: 4px; }

.checkin-widget { background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); border-radius: 18px; padding: 16px; color: white; }
.checkin-days { display: flex; gap: 5px; margin: 12px 0; }
.checkin-day { flex: 1; height: 5px; border-radius: 9999px; background: rgba(255,255,255,0.25); }
.checkin-day.done { background: white; }

.announce-bar { background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 700; position: relative; z-index: 101; }
.announce-bar a { color: white; text-decoration: underline; }
.announce-bar-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: white; opacity: 0.8; font-size: 16px; cursor: pointer; }

.notif-btn { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: rgba(144,144,184,0.8); font-size: 20px; transition: all 0.18s; cursor: pointer; }
.notif-btn:hover { background: rgba(255,255,255,0.07); color: var(--text-primary,#F2F2FF); }
.notif-badge { position: absolute; top: 5px; right: 5px; min-width: 15px; height: 15px; background: var(--brand-pink,#FF2B65); border-radius: 9999px; font-size: 9px; font-weight: 800; color: white; display: flex; align-items: center; justify-content: center; padding: 0 3px; box-shadow: 0 0 8px rgba(255,43,101,0.5); }
.notif-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; background: rgba(12,12,24,0.97); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; box-shadow: 0 16px 50px rgba(0,0,0,0.5); z-index: 150; overflow: hidden; backdrop-filter: blur(24px); animation: scaleIn 0.2s ease; }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; font-weight: 800; }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s; cursor: pointer; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread { background: rgba(123,63,255,0.05); }
.notif-icon { width: 34px; height: 34px; border-radius: 9999px; background: rgba(123,63,255,0.14); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-text { font-size: 12px; line-height: 1.5; }
.notif-time { font-size: 10px; color: rgba(144,144,184,0.45); margin-top: 2px; }

.hashtag { color: #B08FFF; font-weight: 700; cursor: pointer; transition: opacity 0.18s; }
.hashtag:hover { opacity: 0.75; text-decoration: underline; }
.mention { color: #66EEFF; font-weight: 700; cursor: pointer; }

.back-to-top { position: fixed; bottom: 82px; right: 18px; width: 44px; height: 44px; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 18px rgba(123,63,255,0.45); z-index: 90; opacity: 0; pointer-events: none; transform: translateY(12px) scale(0.9); transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); cursor: pointer; }
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.back-to-top:hover { transform: scale(1.12) translateY(-2px); }
@media (min-width: 800px) { .back-to-top { bottom: 28px; right: 28px; } }

.level-up-toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%) scale(0.9); background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; padding: 14px 24px; border-radius: 20px; font-size: 17px; font-weight: 900; letter-spacing: -0.03em; z-index: 300; text-align: center; box-shadow: 0 8px 32px rgba(123,63,255,0.5); transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); opacity: 0; pointer-events: none; }
.level-up-toast.show { opacity: 1; transform: translateX(-50%) scale(1); }

.report-option { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); cursor: pointer; font-size: 13px; font-weight: 700; color: rgba(144,144,184,0.85); transition: all 0.18s; margin-bottom: 7px; }
.report-option:hover, .report-option.selected { border-color: #FF6B7A; color: #FF6B7A; background: rgba(255,77,79,0.06); }
.report-option-icon { font-size: 20px; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 32px; text-align: center; gap: 14px; }
.empty-emoji { font-size: 56px; animation: float 4s ease-in-out infinite; display: inline-block; }
.empty-title { font-size: 20px; font-weight: 900; letter-spacing: -0.04em; }
.empty-desc  { font-size: 13px; color: rgba(144,144,184,0.75); line-height: 1.6; max-width: 300px; }

.post-modal { max-width: 560px; }
.form-textarea { width: 100%; min-height: 120px; padding: 14px 16px; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.09); border-radius: 14px; font-size: 15px; color: var(--text-primary,#F2F2FF); resize: vertical; transition: all 0.22s; line-height: 1.6; }
.form-textarea:focus { border-color: var(--brand-violet,#7B3FFF); background: rgba(123,63,255,0.05); box-shadow: 0 0 0 3px rgba(123,63,255,0.1); outline: none; }
.post-category-select { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.post-cat-btn { padding: 5px 12px; border-radius: 9999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(144,144,184,0.8); transition: all 0.18s; cursor: pointer; }
.post-cat-btn.selected { background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; border-color: transparent; }

.trending-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.trending-tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 9999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); font-size: 12px; font-weight: 700; color: rgba(144,144,184,0.8); cursor: pointer; transition: all 0.18s; }
.trending-tag-chip:hover { border-color: var(--brand-violet,#7B3FFF); color: #B08FFF; background: rgba(123,63,255,0.07); }

.announcement-bar { background: linear-gradient(135deg, rgba(123,63,255,0.12), rgba(255,43,101,0.07)); border: 1px solid rgba(123,63,255,0.22); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; animation: fadeIn 0.5s; }
.announcement-icon { font-size: 20px; flex-shrink: 0; }
.announcement-text { flex: 1; font-weight: 700; }
.announcement-close { color: rgba(144,144,184,0.5); cursor: pointer; font-size: 18px; flex-shrink: 0; transition: opacity 0.18s; }
.announcement-close:hover { opacity: 1; color: var(--text-primary,#F2F2FF); }

.ad-slot { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot-header { margin-bottom: 16px; }
.ad-slot-sidebar { margin: 14px 0; }

.community-header { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.community-header::-webkit-scrollbar { display: none; }
.category-pill { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 9999px; font-size: 13px; font-weight: 700; color: rgba(144,144,184,0.8); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); transition: all 0.2s; cursor: pointer; white-space: nowrap; }
.category-pill:hover { color: var(--text-primary,#F2F2FF); border-color: rgba(255,255,255,0.14); }
.category-pill.active { background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; border-color: transparent; box-shadow: 0 4px 16px rgba(123,63,255,0.3); }

/* Light mode */
[data-theme="light"] .card,[data-theme="light"] .widget,[data-theme="light"] .post-card,[data-theme="light"] .dict-card,[data-theme="light"] .bento-cell { background: rgba(255,255,255,0.82); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .post-card:hover { border-color: rgba(123,63,255,0.3); background: rgba(255,255,255,0.95); }
[data-theme="light"] .nav-tab { color: rgba(30,30,60,0.55); }
[data-theme="light"] .nav-tab.active,[data-theme="light"] .nav-tab:hover { color: #1e1e3c; background: rgba(0,0,0,0.06); }
[data-theme="light"] .search-bar { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .search-bar input { color: #1e1e3c; }

/* FAQ */
.faq-item { background: rgba(255,255,255,0.032); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; margin-bottom: 7px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: rgba(123,63,255,0.3); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-size: 13px; font-weight: 700; transition: background 0.18s; }
.faq-question:hover { background: rgba(255,255,255,0.04); }
.faq-chevron { flex-shrink: 0; font-size: 18px; color: rgba(144,144,184,0.5); transition: transform 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #B08FFF; }
.faq-answer { display: none; padding: 0 18px 14px; font-size: 13px; color: rgba(144,144,184,0.8); line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }
.faq-item.open .faq-answer { display: block; }

/* AI Chat */
.ai-chat-wrap { background: rgba(255,255,255,0.032); border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: 420px; }
.ai-chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); background: linear-gradient(135deg, rgba(123,63,255,0.1), rgba(255,43,101,0.06)); }
.ai-chat-avatar { width: 36px; height: 36px; border-radius: 9999px; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ai-chat-title { font-size: 13px; font-weight: 800; }
.ai-chat-subtitle { font-size: 11px; color: rgba(144,144,184,0.65); }
.ai-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #20DD8A; box-shadow: 0 0 6px #20DD8A; margin-left: auto; }
.ai-chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.55; animation: fadeIn 0.2s ease; }
.ai-msg-bot { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg-user { background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-chat-footer { display: flex; gap: 7px; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.ai-chat-input { flex: 1; height: 38px; padding: 0 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 9999px; font-size: 13px; color: var(--text-primary,#F2F2FF); transition: border-color 0.2s; }
.ai-chat-input:focus { border-color: var(--brand-violet,#7B3FFF); }
.ai-chat-send { width: 38px; height: 38px; border-radius: 9999px; background: var(--brand-gradient-main,linear-gradient(135deg,#7B3FFF,#FF2B65)); color: white; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.18s; cursor: pointer; }
.ai-chat-send:hover { transform: scale(1.1); }
.ai-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; background: rgba(255,255,255,0.06); border-radius: 16px; width: fit-content; border-bottom-left-radius: 4px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(144,144,184,0.5); animation: loaderBounce 1.2s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }

/* Popup */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.68); backdrop-filter: blur(10px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.popup-box { background: rgba(10,10,22,0.97); border: 1px solid rgba(255,255,255,0.1); border-radius: 28px; max-width: 420px; width: 100%; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.6); animation: scaleIn 0.35s cubic-bezier(0.34,1.56,0.64,1); backdrop-filter: blur(24px); }
.popup-img { width: 100%; display: block; max-height: 240px; object-fit: cover; }
.popup-content { padding: 20px 24px 24px; }
.popup-title { font-size: 20px; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 8px; }
.popup-desc { font-size: 13px; color: rgba(144,144,184,0.85); line-height: 1.6; }
.popup-actions { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.popup-skip { font-size: 12px; color: rgba(144,144,184,0.5); margin-left: auto; cursor: pointer; text-decoration: underline; }

/* ─── 28. RESPONSIVE ─── */
@media (max-width: 1024px) {
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar-right { display: none; }
  .content-area { padding: 0; }
}
@media (max-width: 768px) {
  .nav-tabs { display: none; }
  .nav { padding: 0 16px; gap: 8px; }
  .nav-actions { gap: 4px; }
  .content-area { padding: 0; }
  .bottom-nav { display: flex; }
  .fab { display: flex; }
  .cat-bar { padding: 8px 12px; gap: 6px; }
  .cat-pill { padding: 6px 12px; font-size: 12px; }
  .main-wrap { padding: 12px 12px calc(64px + 16px); }
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bento-cell-wide { grid-column: span 2; }
  .dict-grid { grid-template-columns: 1fr; }
  .dict-card-featured { grid-column: span 1; }
  .trending-grid { grid-template-columns: 1fr; }
  .search-bar { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .mbti-profile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .main-wrap { padding-left: 12px; padding-right: 12px; }
  .modal { max-width: 100%; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 24px 24px 0 0; max-height: 93vh; overflow-y: auto; }
  .bento-grid { grid-template-columns: 1fr; gap: 8px; }
  .bento-cell-wide { grid-column: span 1; }
  .hero-actions { gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .post-detail-panel { max-height: 96vh; }
  .category-quick { gap: 6px; }
  .category-quick-btn { height: 34px; padding: 0 12px; font-size: 12px; }
  .sort-bar { gap: 4px; }
  .sort-pill { padding: 4px 10px; font-size: 11px; }
  .mbti-profile-grid { grid-template-columns: 1fr; }
  .share-icon { width: 44px; height: 44px; font-size: 18px; }
}

/* ─── 29-30. KEYFRAMES & ANIMATION HELPERS ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes bgShift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
  100% { background-position: 30% 20%, 70% 80%, 80% 20%; }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 16px rgba(123,63,255,0.5); }
  50%      { box-shadow: 0 0 28px rgba(255,43,101,0.55); }
}
@keyframes loaderBounce {
  0%,80%,100% { transform: scale(0.6) translateY(0); opacity: 0.35; }
  40%          { transform: scale(1) translateY(-6px); opacity: 1; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.96); }
}

.animate-in { animation: fadeIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.animate-up { animation: slideUp 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* ═══════════════════════════════════════════════════════════
   PROFILE V2 — MBTI + STREAK CARDS
   ═══════════════════════════════════════════════════════════ */
.profile-mbti-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1.5px solid rgba(123,63,255,0.3);
  background: linear-gradient(135deg, rgba(123,63,255,0.1), rgba(0,221,255,0.06));
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform 0.15s, border-color 0.15s;
}
.profile-mbti-card:hover { transform: translateY(-2px); border-color: var(--brand-violet); }
.profile-mbti-empty { border-color: var(--border-subtle); background: var(--bg-card); }
.pmc-left { display: flex; flex-direction: column; gap: 2px; }
.pmc-label { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.pmc-type { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; background: var(--brand-gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pmc-desc { font-size: 12px; color: var(--text-tertiary); }

.profile-streak-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,123,30,0.1), rgba(255,43,101,0.06));
  border: 1px solid rgba(255,123,30,0.2);
  margin-bottom: 12px;
}
.psc-flame { font-size: 28px; }
.psc-info { flex: 1; }
.psc-title { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.psc-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.psc-badge { font-size: 22px; }

/* ── method-btn CSS class (replaces inline style) ── */
.method-btn {
  flex: 1;
  height: 48px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.method-btn.active,
.method-btn[data-active="true"] {
  border-color: var(--brand-violet);
  background: rgba(123,63,255,0.1);
  color: var(--brand-violet);
}
.method-btn:hover { border-color: var(--brand-violet); color: var(--brand-violet); }
.method-btn .method-icon { font-size: 18px; }

/* ── pw-visibility-toggle CSS class ── */
.pw-visibility-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.pw-visibility-toggle:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   HOME V2 — NEW LAYOUT COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* ── Hero V2 ── */
.home-hero-v2 {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 56px 48px 52px;
  background: radial-gradient(ellipse 90% 80% at 50% -10%, rgba(123,63,255,0.22) 0%, transparent 60%),
              var(--bg-elevated, #0D0D1A);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.hhv2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hhv2-orb-1 {
  width: 320px; height: 320px;
  background: rgba(123,63,255,0.18);
  top: -80px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.hhv2-orb-2 {
  width: 200px; height: 200px;
  background: rgba(255,43,101,0.12);
  bottom: -60px; left: 60px;
  animation: float 10s ease-in-out infinite reverse;
}
.hhv2-content { position: relative; z-index: 1; max-width: 580px; }
.hhv2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-lime);
  background: rgba(195,255,0,0.1);
  border: 1px solid rgba(195,255,0,0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--brand-lime);
  border-radius: 50%;
  animation: pulse-glow 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.hhv2-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.hhv2-gradient {
  background: linear-gradient(135deg, #7B3FFF 0%, #FF2B65 50%, #00DDFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hhv2-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hhv2-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.hhv2-stat { display: flex; flex-direction: column; gap: 2px; }
.hhv2-stat-num { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); }
.hhv2-stat-lbl { font-size: 11px; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hhv2-stat-sep { width: 1px; height: 32px; background: var(--border-subtle); }
.hhv2-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Discover Grid ── */
.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 20px;
}
.dc {
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.dc:hover {
  transform: translateY(-3px);
  border-color: var(--border-default);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.dc-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.dc-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.3; margin-bottom: 10px; }
.dc-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.dc-tag-chip {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(123,63,255,0.15);
  color: var(--brand-violet);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.dc-arrow {
  position: absolute;
  bottom: 18px; right: 20px;
  font-size: 18px;
  color: var(--text-tertiary);
  transition: transform 0.15s, color 0.15s;
}
.dc:hover .dc-arrow { transform: translateX(4px); color: var(--brand-violet); }
.dc-hot {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255,123,30,0.08), rgba(255,43,101,0.06));
  border-color: rgba(255,123,30,0.2);
}
.dc-mbti {
  background: linear-gradient(135deg, rgba(123,63,255,0.12), rgba(0,221,255,0.08));
  border-color: rgba(123,63,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dc-mbti-emoji { font-size: 36px; margin-bottom: 8px; }
.dc-pill {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(123,63,255,0.15);
  color: var(--brand-violet);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}
.dc-dict { background: linear-gradient(135deg, rgba(0,221,255,0.08), rgba(123,63,255,0.06)); border-color: rgba(0,221,255,0.15); }
.dc-big-word {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--brand-gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.dc-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.dc-trend { background: linear-gradient(135deg, rgba(195,255,0,0.06), rgba(0,221,255,0.06)); border-color: rgba(195,255,0,0.15); }
.dc-trends { display: flex; flex-direction: column; gap: 8px; }
.dc-trend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.dc-rank { font-size: 13px; font-weight: 900; width: 20px; }
.dc-rank-1 { color: #FFD700; }
.dc-rank-2 { color: #C0C0C0; }
.dc-rank-3 { color: #CD7F32; }

/* ── Home Section Header ── */
.home-sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 24px 0 12px;
  gap: 8px;
}
.home-sec-hdr span { display: flex; align-items: center; gap: 6px; }

/* ── Home Terms Row ── */
.home-terms-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.home-term-card {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 16px;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.home-term-card:hover { transform: translateY(-2px); border-color: var(--brand-cyan); }
.htc-term { font-size: 18px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 6px; }
.htc-meaning { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.htc-votes { font-size: 11px; color: var(--text-tertiary); font-weight: 600; }

/* ── Responsive overrides for new home ── */
@media (max-width: 768px) {
  .home-hero-v2 { padding: 36px 24px 32px; border-radius: 20px; }
  .hhv2-title { font-size: clamp(24px, 6vw, 32px); }
  .hhv2-cta { flex-direction: column; }
  .hhv2-cta .btn { width: 100%; justify-content: center; }
  .discover-grid { grid-template-columns: 1fr; }
  .dc-hot { grid-column: span 1; }
  .home-terms-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .home-hero-v2 { padding: 28px 20px 24px; }
  .hhv2-stats { gap: 14px; }
  .hhv2-stat-num { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════
   TRENDING PAGE — 2026 EDITION
   ═══════════════════════════════════════════════════════════ */

.trending-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.trending-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(32,221,138,0.1);
  border: 1px solid rgba(32,221,138,0.3);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  color: #20DD8A;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  animation: pulse-glow-green 2.4s ease-in-out infinite;
}
@keyframes pulse-glow-green {
  0%,100% { box-shadow: 0 0 8px rgba(32,221,138,0.2); }
  50%      { box-shadow: 0 0 18px rgba(32,221,138,0.4); }
}

.trending-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.trending-stat-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.18s, border-color 0.18s;
}
.trending-stat-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.trending-stat-live { border-color: rgba(32,221,138,0.22); background: rgba(32,221,138,0.04); }
.tsc-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--brand-gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.tsc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trending-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
}
.trending-section {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(12px);
  margin-bottom: 14px;
}
.trending-section:last-child { margin-bottom: 0; }
.trending-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  gap: 8px;
}
.trending-section-title span { display: flex; align-items: center; gap: 6px; }

.trending-post-list { display: flex; flex-direction: column; gap: 2px; }
.trending-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.trending-post-item:hover { background: rgba(255,255,255,0.04); }
.tpi-rank {
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--text-tertiary);
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.tpi-rank-top {
  background: var(--brand-gradient-main);
  color: white;
  box-shadow: 0 2px 8px rgba(123,63,255,0.4);
}
.tpi-body { flex: 1; min-width: 0; }
.tpi-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.tpi-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.tpi-stats {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.tpi-medal { font-size: 20px; flex-shrink: 0; }

.trending-aside { display: flex; flex-direction: column; gap: 0; }

.trending-tags-cloud-lg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tth-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.tth-item:hover {
  background: rgba(123,63,255,0.1);
  border-color: rgba(123,63,255,0.3);
  color: #B08FFF;
}
.tth-item sup { font-size: 9px; color: var(--text-tertiary); }

.trending-skeleton { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.skeleton-bar {
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
}

@media (max-width: 900px) {
  .trending-main-grid { grid-template-columns: 1fr; }
  .trending-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trending-stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trending-page-header { flex-direction: column; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   PROFILE — user-profile-header alias + 2026 improvements
   ═══════════════════════════════════════════════════════════ */
.user-profile-header {
  background: linear-gradient(135deg, rgba(123,63,255,0.15), rgba(255,43,101,0.1));
  border: 1px solid rgba(123,63,255,0.22);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.user-profile-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,63,255,0.18), transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   DICTIONARY — dict-meaning alias + improvements
   ═══════════════════════════════════════════════════════════ */
.dict-meaning {
  font-size: 13px;
  color: rgba(144,144,184,0.88);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   2026 DESIGN ENHANCEMENT — AURORA EFFECTS & MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════ */

/* ── Aurora post card accent ── */
.post-card {
  position: relative;
}
.post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-gradient-main);
  opacity: 0;
  transition: opacity 0.22s;
}
.post-card:hover::before { opacity: 0.7; }

/* ── Dict card aurora shimmer on hover ── */
.dict-card {
  position: relative;
  overflow: hidden;
}
.dict-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,63,255,0) 0%, rgba(123,63,255,0.04) 50%, rgba(0,221,255,0.03) 100%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  border-radius: inherit;
}
.dict-card:hover::after { opacity: 1; }

/* ── Trending item rank pulse ── */
.tpi-rank-top {
  animation: rankPulse 2.4s ease-in-out infinite;
}
@keyframes rankPulse {
  0%,100% { box-shadow: 0 2px 8px rgba(123,63,255,0.4); }
  50%      { box-shadow: 0 2px 16px rgba(255,43,101,0.5); }
}

/* ── 2026 nav tab — active underline gradient animation ── */
.nav-tab.active::after {
  background: var(--brand-gradient-main);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

/* ── Sort pill active — neon glow ── */
.sort-pill.active {
  box-shadow: 0 4px 12px rgba(123,63,255,0.35), 0 0 0 1px rgba(123,63,255,0.3);
}

/* ── Category pill active — glow ── */
.category-pill.active {
  box-shadow: 0 4px 14px rgba(123,63,255,0.35);
}

/* ── Profile stats — gradient numbers ── */
.profile-stat-num {
  background: var(--brand-gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Leaderboard 2026 — cleaner item style ── */
.leaderboard-item {
  position: relative;
  overflow: hidden;
}
.leaderboard-item.rank-1::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #FFD700, #FFA500);
  border-radius: 0 3px 3px 0;
}

/* ── Neon border glow on hover for widgets ── */
.widget {
  transition: border-color 0.22s, box-shadow 0.22s;
}
.widget:hover {
  border-color: rgba(123,63,255,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 0 1px rgba(123,63,255,0.06);
}

/* ── Community write-prompt improved ── */
.write-prompt {
  position: relative;
  overflow: hidden;
}
.write-prompt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,63,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.write-prompt:hover::before { opacity: 1; }

/* ── MBTI option — improved feedback ── */
.mbti-option:hover { box-shadow: 0 2px 12px rgba(123,63,255,0.15); }
.mbti-option.selected { box-shadow: 0 4px 20px rgba(123,63,255,0.3); }

/* ── Home section transitions ── */
.discover-grid .dc,
.home-terms-row .home-term-card {
  animation: fadeIn 0.35s ease both;
}
.discover-grid .dc:nth-child(1) { animation-delay: 0.05s; }
.discover-grid .dc:nth-child(2) { animation-delay: 0.10s; }
.discover-grid .dc:nth-child(3) { animation-delay: 0.15s; }
.discover-grid .dc:nth-child(4) { animation-delay: 0.20s; }

/* ── Dict grid stagger ── */
.dict-grid .dict-card:nth-child(1) { animation: fadeIn 0.3s ease 0.0s both; }
.dict-grid .dict-card:nth-child(2) { animation: fadeIn 0.3s ease 0.05s both; }
.dict-grid .dict-card:nth-child(3) { animation: fadeIn 0.3s ease 0.10s both; }
.dict-grid .dict-card:nth-child(4) { animation: fadeIn 0.3s ease 0.15s both; }

/* ── Trending post item stagger ── */
.trending-post-item:nth-child(1)  { animation: slideUp 0.3s ease 0.00s both; }
.trending-post-item:nth-child(2)  { animation: slideUp 0.3s ease 0.04s both; }
.trending-post-item:nth-child(3)  { animation: slideUp 0.3s ease 0.08s both; }
.trending-post-item:nth-child(4)  { animation: slideUp 0.3s ease 0.12s both; }
.trending-post-item:nth-child(5)  { animation: slideUp 0.3s ease 0.16s both; }

/* ── 2026 gradient border cards ── */
.card-aurora {
  position: relative;
  background: rgba(255,255,255,0.032);
  border-radius: 20px;
  overflow: hidden;
}
.card-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(123,63,255,0.5), rgba(255,43,101,0.4), rgba(0,221,255,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Scroll reveal helper ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 2026 Glass input focus ring ── */
.form-input:focus,
.community-search:focus-within,
.dict-search:focus {
  outline: none;
}

/* ── Community view improvements ── */
.community-header {
  position: relative;
}
.community-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,63,255,0.3), rgba(255,43,101,0.2), transparent);
}

/* ── Stats count-up animation helper ── */
.count-up {
  display: inline-block;
  animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ── Profile quick grid cards ── */
.profile-quick-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.profile-quick-card:hover {
  border-color: rgba(123,63,255,0.25);
  background: rgba(123,63,255,0.06);
  transform: translateY(-2px);
}

/* ── 2026 Light mode enhancements ── */
[data-theme="light"] .community-header::after {
  background: linear-gradient(90deg, transparent, rgba(123,63,255,0.2), rgba(255,43,101,0.15), transparent);
}
[data-theme="light"] .trending-stat-card { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .trending-section   { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .trending-post-item:hover { background: rgba(0,0,0,0.03); }
[data-theme="light"] .user-profile-header { background: linear-gradient(135deg, rgba(123,63,255,0.08), rgba(255,43,101,0.06)); border-color: rgba(123,63,255,0.15); }
[data-theme="light"] .tpi-rank { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.4); }

/* ═══════════════════════════════════════════════════════════
   ★ 2026 MINIMAL OVERRIDE — Light-first, Accessible, Clean
   Replaces heavy gradients with solid brand color
   Higher specificity than earlier rules
   ═══════════════════════════════════════════════════════════ */

/* ─── Background: no more body orbs, clean surface ─── */
body::before,
body::after { display: none !important; }
.orb { display: none !important; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
}

/* ─── Scrollbar: subtle in both themes ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 9999px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
* { scrollbar-width: thin; scrollbar-color: var(--border-default) transparent; }
::selection { background: var(--brand-primary-soft); color: var(--text-primary); }

/* ─── Top Nav: clean white surface ─── */
.nav {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .nav { background: var(--bg-elevated); }

/* Logo: solid color, no gradient on icon */
.nav-logo-icon {
  background: var(--brand-primary);
  box-shadow: none;
  animation: none;
  color: white;
}
.nav-logo-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--text-primary);
}

/* Nav tabs: cleaner active state */
.nav-tab { color: var(--text-secondary); font-weight: 600; }
.nav-tab:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-tab.active { color: var(--brand-primary); background: var(--brand-primary-light); font-weight: 700; }
.nav-tab.active::after {
  background: var(--brand-primary);
  animation: none;
  background-size: 100% 100%;
}

/* Icon button + Search bar: clean borders */
.icon-btn { color: var(--text-secondary); }
.icon-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.search-bar {
  background: var(--bg-input);
  border-color: var(--border-subtle);
}
.search-bar:focus-within {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-focus);
  min-width: 260px;
}
.search-bar input { color: var(--text-primary); }
.search-bar input::placeholder { color: var(--text-tertiary); }

/* ─── BUTTONS: Solid primary, no gradient ─── */
.btn {
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary::after { display: none; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.btn-outline:hover {
  background: var(--brand-primary-light);
  box-shadow: none;
}

/* ─── Category bar: clean ─── */
.cat-bar {
  background: var(--bg-elevated);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.cat-pill {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.cat-pill:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.cat-pill.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

/* ─── Cards & Widgets: clean white surface ─── */
.card,
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.widget:hover { border-color: var(--border-default); box-shadow: var(--shadow-md); }

.widget-title { color: var(--text-primary); font-weight: 700; }
.widget-title i { color: var(--brand-primary); }

/* ─── Section titles: solid color, no gradient ─── */
.section-title { color: var(--text-primary); }
.section-title .accent {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
}
.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
}

/* ─── Avatars: solid brand color ─── */
.avatar {
  background: var(--brand-primary);
  color: white;
}

/* ─── Tags: subtle, accessible ─── */
.tag {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
  font-weight: 600;
}
.tag:hover { color: var(--text-primary); border-color: var(--border-default); }
.tag-violet { background: var(--brand-primary-light); color: var(--brand-primary); border-color: transparent; }
.tag-pink   { background: rgba(255,77,126,0.1); color: #C13560; border-color: transparent; }
.tag-cyan   { background: rgba(0,184,217,0.1); color: #0085A0; border-color: transparent; }
.tag-lime   { background: rgba(0,168,90,0.1); color: var(--status-success); border-color: transparent; }
.tag-orange { background: rgba(255,122,26,0.1); color: var(--brand-orange); border-color: transparent; }

[data-theme="dark"] .tag-pink   { color: #FF8FAB; }
[data-theme="dark"] .tag-cyan   { color: #66D9EA; }
[data-theme="dark"] .tag-lime   { color: #4DCB87; }
[data-theme="dark"] .tag-orange { color: #FFA56B; }

/* HOT badge: solid orange */
.hot-badge {
  background: var(--brand-orange);
  color: white;
  font-weight: 700;
  box-shadow: none;
}

/* ─── HOME HERO V2: Cleaner with subtle background ─── */
.home-hero-v2 {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 48px 40px;
}
.hhv2-orb { display: none; }
.hhv2-badge {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: transparent;
  font-weight: 700;
}
.live-dot { background: var(--status-success); animation: livePulse 2s infinite; }
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,168,90,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(0,168,90,0); }
}
.hhv2-title {
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.hhv2-gradient {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
}
.hhv2-desc { color: var(--text-secondary); font-size: 16px; }
.hhv2-stat-num { color: var(--text-primary); }
.hhv2-stat-lbl { color: var(--text-tertiary); }

/* ─── Discover Grid: cleaner cards ─── */
.dc {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.dc:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}
.dc-eyebrow { color: var(--text-tertiary); font-weight: 700; }
.dc-title { color: var(--text-primary); }
.dc-meta { color: var(--text-secondary); }
.dc-tag-chip { background: var(--brand-primary-light); color: var(--brand-primary); }
.dc-arrow { color: var(--text-tertiary); }
.dc:hover .dc-arrow { color: var(--brand-primary); }

.dc-hot {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}
.dc-mbti { background: var(--brand-primary-light); border-color: var(--brand-primary-soft); }
.dc-dict { background: rgba(0,184,217,0.05); border-color: rgba(0,184,217,0.15); }
.dc-trend { background: rgba(0,168,90,0.05); border-color: rgba(0,168,90,0.15); }

.dc-big-word {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
}
.dc-pill { background: var(--brand-primary); color: white; }
.dc-trend-row { color: var(--text-primary); }

/* ─── Stats grid (home) ─── */
.stat-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.stat-num {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
  font-weight: 800;
}
.stat-label { color: var(--text-tertiary); }

/* ─── Home terms row ─── */
.home-term-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.home-term-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
}
.htc-term { color: var(--text-primary); }
.htc-meaning { color: var(--text-secondary); }
.htc-votes { color: var(--text-tertiary); }

/* ─── POST CARDS: clean & readable ─── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: none;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.post-card::before {
  background: var(--brand-primary);
}
.author-name { color: var(--text-primary); }
.author-badge { background: var(--brand-primary-light); color: var(--brand-primary); }
.post-time { color: var(--text-tertiary); }
.post-card-title { color: var(--text-primary); }
.post-card-content { color: var(--text-secondary); }
.stat-item { color: var(--text-tertiary); font-weight: 600; }
.stat-like { color: var(--brand-accent); }
.post-card-pinned { background: var(--brand-primary-light); color: var(--brand-primary); }

/* ─── Community: cleaner controls ─── */
.community-search {
  background: var(--bg-input);
  border-color: var(--border-subtle);
}
.community-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-focus);
}
.community-search input { color: var(--text-primary); font-size: 15px; }
.community-search input::placeholder { color: var(--text-tertiary); }

.write-prompt {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.write-prompt:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.write-prompt-text { color: var(--text-secondary); }
.write-prompt::before { display: none; }

.sort-pill {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.sort-pill:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.sort-pill.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: none;
}
.category-pill {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.category-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.category-pill.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

/* ─── DICTIONARY: clean cards, solid term color ─── */
.dict-search-wrap input,
.dict-search {
  background: var(--bg-input);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.dict-search:focus {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-focus);
}
.dict-search::placeholder { color: var(--text-tertiary); }
.dict-search-icon { color: var(--text-tertiary); }

.dict-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.dict-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.dict-card::after { display: none; }
.dict-card-featured {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary-soft);
}
.dict-term {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
  font-weight: 800;
}
.dict-pronunciation { color: var(--text-tertiary); }
.dict-meaning { color: var(--text-primary); font-size: 14px; line-height: 1.6; }
.dict-example {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border-left-color: var(--brand-primary);
}
.dict-year { color: var(--text-tertiary); }
.dict-vote-btn {
  background: var(--bg-card);
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.dict-vote-btn:hover {
  background: rgba(214,49,70,0.08);
  color: var(--status-error);
  border-color: rgba(214,49,70,0.3);
}
.dict-vote-btn.voted {
  background: rgba(214,49,70,0.1);
  color: var(--status-error);
  border-color: rgba(214,49,70,0.3);
}

/* ─── TRENDING: cleaner stats ─── */
.trending-stat-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.trending-stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-default); }
.trending-stat-live { border-color: rgba(0,168,90,0.25); background: rgba(0,168,90,0.04); }
.tsc-num {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
  font-weight: 800;
}
.tsc-label { color: var(--text-tertiary); }

.trending-live-badge {
  background: rgba(0,168,90,0.1);
  color: var(--status-success);
  border-color: rgba(0,168,90,0.3);
  animation: none;
}
.trending-section {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.trending-section-title { color: var(--text-primary); }
.tpi-rank {
  background: var(--bg-muted);
  color: var(--text-tertiary);
}
.tpi-rank-top {
  background: var(--brand-primary);
  color: white;
  box-shadow: none;
  animation: none;
}
.tpi-title { color: var(--text-primary); }
.tpi-category { color: var(--text-tertiary); }
.tpi-stats { color: var(--text-tertiary); }
.tpi-medal { filter: grayscale(0); }

.tth-item {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.tth-item:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.tth-item sup { color: var(--text-tertiary); }

/* Trending bar fills */
.trending-bar-fill { background: var(--brand-primary) !important; }

/* ─── WORD OF THE DAY: clean card ─── */
.wotd-card {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary-soft);
}
.wotd-card::before { display: none; }
.wotd-term {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
  font-weight: 800;
}
.wotd-meaning { color: var(--text-primary); }

/* ─── LEVEL BADGE / XP BAR ─── */
.xp-bar-fill {
  background: var(--brand-primary);
}
.xp-bar-fill::after { display: none; }
.xp-bar-track { background: var(--bg-muted); }

/* ─── PROFILE ─── */
.user-profile-header,
.profile-header {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.user-profile-header::before,
.profile-header::before { display: none; }
.profile-name { color: var(--text-primary); }
.profile-handle { color: var(--text-secondary); }
.profile-bio { color: var(--text-secondary); }
.profile-stat-num {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
  font-weight: 800;
}
.profile-stat-label { color: var(--text-tertiary); }
.profile-mbti-card {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary-soft);
}
.profile-mbti-card:hover { border-color: var(--brand-primary); transform: translateY(-1px); }
.pmc-type {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
  font-weight: 800;
}
.pmc-label { color: var(--text-tertiary); }
.pmc-desc { color: var(--text-secondary); }
.profile-streak-card {
  background: rgba(255,122,26,0.08);
  border-color: rgba(255,122,26,0.2);
}
.psc-title { color: var(--text-primary); }
.psc-sub { color: var(--text-secondary); }

/* ─── LEADERBOARD ─── */
.leaderboard-item {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}
.leaderboard-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-default);
}
.leaderboard-item.rank-1 { background: rgba(255,193,7,0.05); border-color: rgba(255,193,7,0.2); }
.leaderboard-item.rank-2 { background: var(--bg-muted); border-color: var(--border-default); }
.leaderboard-item.rank-3 { background: rgba(205,127,50,0.05); border-color: rgba(205,127,50,0.18); }
.leaderboard-name { color: var(--text-primary); }
.leaderboard-xp { color: var(--text-tertiary); }
.leaderboard-score {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--brand-primary);
  font-weight: 800;
}

/* ─── MBTI: clean look ─── */
.mbti-hero-title { color: var(--text-primary); }
.mbti-hero-sub { color: var(--text-secondary); }
.mbti-question-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.mbti-question-num { color: var(--brand-primary); }
.mbti-question-text { color: var(--text-primary); }
.mbti-option {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.mbti-option:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.mbti-option.selected {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.mbti-option-letter {
  background: var(--bg-muted);
  border-color: var(--border-default);
}
.mbti-option.selected .mbti-option-letter {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}
.mbti-progress-fill { background: var(--brand-primary); }

/* MBTI Result header — keep one subtle gradient for the special moment */
.mbti-result-header {
  background: var(--brand-gradient-main);
}
.mbti-result-body {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}
.mbti-compat-badge {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: transparent;
}
.mbti-compat-badge.enemy {
  background: rgba(255,77,126,0.1);
  color: #C13560;
  border-color: transparent;
}

/* ─── Form inputs ─── */
.form-input {
  background: var(--bg-input);
  border-color: var(--border-default);
  color: var(--text-primary);
  font-size: 15px;
}
.form-input:focus {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-focus);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-label { color: var(--text-secondary); font-weight: 600; }
.form-input.error { border-color: var(--status-error); }
.form-error { color: var(--status-error); }
.form-hint  { color: var(--text-tertiary); }
.form-textarea {
  background: var(--bg-input);
  border-color: var(--border-default);
  color: var(--text-primary);
}
.form-textarea:focus {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-focus);
}

/* ─── Auth tabs ─── */
.auth-tabs { background: var(--bg-muted); }
.auth-tab { color: var(--text-secondary); }
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* signup steps */
.signup-step-fill { background: var(--brand-primary); }

/* ─── Modals ─── */
.modal {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xl);
  backdrop-filter: none;
}
.modal-title { color: var(--text-primary); }
.modal-close { color: var(--text-secondary); }
.modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.modal-overlay { background: rgba(15,15,35,0.5); backdrop-filter: blur(6px); }
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.7); }

/* ─── Toast ─── */
.toast {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  backdrop-filter: none;
}

/* ─── Bottom nav (mobile) ─── */
.bottom-nav {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 -2px 8px rgba(15,15,35,0.06);
}
.bottom-nav-item { color: var(--text-tertiary); font-weight: 600; }
.bottom-nav-item.active { color: var(--brand-primary); }
.bottom-nav-item.active i { filter: none; }
.bottom-nav-item:hover { color: var(--text-primary); }

/* ─── FAB: solid color ─── */
.fab {
  background: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(109,67,240,0.35);
}
.fab:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 6px 20px rgba(109,67,240,0.45);
  transform: scale(1.06);
}

/* ─── Back to top: solid ─── */
.back-to-top {
  background: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(109,67,240,0.3);
}

/* ─── Post detail panel ─── */
.post-detail-panel {
  background: var(--bg-elevated);
  backdrop-filter: none;
}
.post-detail-title { color: var(--text-primary); }
.post-detail-body { color: var(--text-primary); font-size: 15px; line-height: 1.75; }
.post-detail-author-name { color: var(--text-primary); }
.post-detail-meta { color: var(--text-tertiary); }
.post-detail-views { color: var(--text-tertiary); }
.post-action-btn {
  background: var(--bg-card);
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.post-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.post-action-btn.liked {
  background: rgba(214,49,70,0.08);
  color: var(--status-error);
  border-color: rgba(214,49,70,0.3);
}
.comment-author { color: var(--text-primary); }
.comment-time { color: var(--text-tertiary); }
.comment-text { color: var(--text-primary); }
.comments-section-title { color: var(--text-primary); }
.comment-input {
  background: var(--bg-input);
  border-color: var(--border-default);
  color: var(--text-primary);
}
.comment-input:focus {
  border-color: var(--brand-primary);
  background: var(--bg-card);
}
.comment-input-wrap {
  background: var(--bg-elevated);
  border-top-color: var(--border-subtle);
  backdrop-filter: none;
}
.comment-submit-btn {
  background: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.comment-submit-btn:hover {
  background: var(--brand-primary-hover);
  box-shadow: var(--shadow-md);
}

/* ─── Notification dropdown ─── */
.notif-dropdown {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg);
  backdrop-filter: none;
}
.notif-header { color: var(--text-primary); }
.notif-item { border-bottom-color: var(--border-subtle); }
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: var(--brand-primary-light); }
.notif-icon { background: var(--brand-primary-light); }
.notif-text { color: var(--text-primary); }
.notif-time { color: var(--text-tertiary); }
.notif-badge {
  background: var(--brand-accent);
  box-shadow: 0 0 0 2px var(--bg-elevated);
}

/* ─── Hot topic ─── */
.hot-topic-item { border-bottom-color: var(--border-subtle); }
.hot-topic-title { color: var(--text-primary); font-weight: 600; }
.hot-topic-item:hover .hot-topic-title { color: var(--brand-primary); }
.hot-topic-meta { color: var(--text-tertiary); }

/* ─── Empty state ─── */
.empty-state { padding: 60px 32px; }
.empty-title { color: var(--text-primary); }
.empty-desc { color: var(--text-secondary); }

/* ─── Mobile responsive font tweaks ─── */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .hhv2-title { line-height: 1.2; }
  .home-hero-v2 { padding: 32px 20px; }
  .nav { padding: 0 16px; }
  .main-wrap { padding: 16px 12px calc(72px + 16px); }
  .hhv2-stats { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   ★ 2026 BOTTOM NAV V2 — Instagram-style with center FAB
   - Thumb-zone optimized
   - 44x44px minimum touch targets (WCAG)
   - 5 slots: 홈 · 커뮤니티 · [+ 글쓰기] · MZ사전 · 내 정보
   ═══════════════════════════════════════════════════════════ */
.bottom-nav {
  height: 72px;
  padding: 0;
  display: none;
  align-items: stretch;
  justify-content: space-around;
}
.bottom-nav-item {
  flex: 1;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  min-height: 56px;
  min-width: 56px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 150ms;
  border-radius: 0;
  position: relative;
}
.bottom-nav-item:hover { color: var(--text-primary); background: none; }
.bottom-nav-item.active { color: var(--brand-primary); }
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 0 0 3px 3px;
}
.bottom-nav-item i { font-size: 24px; line-height: 1; }
.bottom-nav-item:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -4px;
}

/* Center FAB (글쓰기) - Instagram style */
.bottom-nav-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 8px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 18px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(109, 67, 240, 0.35);
  transition: transform 150ms, box-shadow 150ms, background 150ms;
  flex-shrink: 0;
}
.bottom-nav-fab:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 6px 20px rgba(109, 67, 240, 0.45);
  transform: scale(1.05);
}
.bottom-nav-fab:active {
  transform: scale(0.95);
}
.bottom-nav-fab:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════
   ★ ADAPTIVE LAYOUT — Mobile / Tablet / Desktop
   Mobile-first approach (default: mobile)
   ═══════════════════════════════════════════════════════════ */

/* ─── MOBILE (< 768px) — Bottom nav, single column, FAB ─── */
@media (max-width: 767px) {
  /* Show bottom nav, hide desktop fab and right sidebar */
  .bottom-nav { display: flex; }
  .fab { display: none !important; }
  .sidebar-right { display: none; }
  .main-wrap {
    grid-template-columns: 1fr;
    padding: 12px 16px calc(72px + 16px);
    gap: 16px;
  }

  /* Mobile nav simplification */
  .nav { padding: 0 16px; gap: 8px; height: 56px; }
  .nav-tabs { display: none; }
  .search-bar { display: none; }
  .nav-logo-icon { width: 28px; height: 28px; font-size: 14px; }
  .nav-logo-text { font-size: 18px; }

  /* Add mobile-only search icon button to nav-actions */
  #nav-login-btn { padding: 0 12px; font-size: 12px; height: 36px; }

  /* Hide cat-bar on mobile (use bottom-nav instead) */
  .cat-bar {
    top: 56px;
    padding: 8px 0;
  }
  .cat-bar-inner { padding: 0 16px; gap: 6px; }
  .cat-pill {
    padding: 6px 14px;
    font-size: 13px;
    min-height: 36px;
  }

  /* Home header: compact */
  .hm-header { padding: 20px 0 12px; }
  .hm-greeting { font-size: 22px; }
  .hm-subgreeting { font-size: 14px; }

  /* Quick cats: 3 column grid on mobile */
  .hm-quick-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
  .hm-quick-cat { padding: 14px 8px; min-height: 76px; }
  .hm-qc-icon { font-size: 24px; }
  .hm-qc-label { font-size: 12px; }

  /* Feed list mobile */
  .hm-feed-item { padding: 14px 16px; min-height: 56px; }
  .hm-feed-rank { width: 20px; font-size: 14px; }
  .hm-feed-title { font-size: 14px; line-height: 1.4; }
  .hm-feed-meta { font-size: 11px; gap: 6px; flex-wrap: wrap; }
  .hm-feed-time { width: 100%; margin: 4px 0 0; }

  /* Info cards stack */
  .hm-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .hm-info-card { padding: 20px; min-height: auto; }
  .hm-info-title { font-size: 20px; }
  .hm-info-desc { font-size: 14px; }

  /* Join CTA stack */
  .hm-join-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    text-align: center;
    gap: 16px;
  }
  .hm-join-cta .btn-primary { width: 100%; height: 48px; }

  /* Post cards: bigger touch targets */
  .post-card { padding: 18px 16px; }
  .post-card-title { font-size: 15px; }

  /* Modal: bottom sheet on mobile */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
  }

  /* Touch target minimum 44x44 */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .icon-btn { min-width: 40px; min-height: 40px; }

  /* Section titles slightly smaller */
  .hm-sec-title { font-size: 18px; }
  .hm-sec-more { padding: 8px 10px; font-size: 12px; min-height: 36px; }
}

/* ─── TABLET (768px - 1023px) — Single column, no right sidebar, bottom nav ─── */
@media (min-width: 768px) and (max-width: 1023px) {
  .bottom-nav { display: flex; }
  .fab { display: none !important; }
  .sidebar-right { display: none; }
  .main-wrap {
    grid-template-columns: 1fr;
    max-width: 720px;
    padding: 24px;
    gap: 24px;
    padding-bottom: calc(72px + 24px);
  }

  /* Tablet: keep nav-tabs visible but compact */
  .nav-tab { padding: 0 12px; font-size: 13px; }

  /* Quick cats: 6 columns (full row) */
  .hm-quick-cats { grid-template-columns: repeat(6, 1fr); gap: 10px; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .bottom-nav-item { min-height: 56px; }
}

/* ─── DESKTOP (>= 1024px) — Two columns + sidebar + top fab ─── */
@media (min-width: 1024px) {
  .bottom-nav { display: none !important; }
  .fab { display: flex; }
  .sidebar-right { display: flex; }
  .main-wrap {
    grid-template-columns: 1fr 300px;
    max-width: 1200px;
    padding: 24px;
    gap: 32px;
  }
}

/* ─── LARGE DESKTOP (>= 1440px) — More breathing room ─── */
@media (min-width: 1440px) {
  .main-wrap {
    grid-template-columns: 1fr 340px;
    max-width: 1320px;
    padding: 32px;
    gap: 40px;
  }
  .hm-header { padding: 56px 0 32px; }
  .hm-greeting { font-size: 32px; }
}

/* ═══════════════════════════════════════════════════════════
   ★ ACCESSIBILITY: WCAG-compliant Touch Targets & Contrast
   ═══════════════════════════════════════════════════════════ */
button,
a,
[role="button"],
.cat-pill,
.tag,
.bottom-nav-item,
.hm-feed-item,
.hm-quick-cat,
.hm-info-card {
  min-height: 36px;
}

/* All interactive cards/buttons on mobile must be 44x44 */
@media (max-width: 767px) {
  button,
  a,
  [role="button"],
  .cat-pill,
  .bottom-nav-item,
  .hm-feed-item,
  .hm-quick-cat,
  .hm-info-card,
  .post-card,
  .dict-card {
    min-height: 44px;
  }
}

/* ═══════════════════════════════════════════════════════════
   ★ MOBILE NAV — Add search icon for prominence
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .nav-search-mobile {
    display: flex !important;
  }
}
.nav-search-mobile { display: none; }

/* ═══════════════════════════════════════════════════════════
   ★ 2026 DESKTOP REFRESH — Visible polish
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Sticky nav with subtle shadow on scroll */
  .nav {
    box-shadow: 0 1px 0 var(--border-subtle);
  }

  /* Larger, more confident headings on desktop */
  .hm-header {
    padding: 48px 0 36px;
  }
  .hm-greeting {
    font-size: 32px;
    line-height: 1.2;
  }
  .hm-subgreeting {
    font-size: 17px;
  }

  /* Quick cats: hover lift effect */
  .hm-quick-cat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  .hm-quick-cat {
    padding: 20px 8px;
    min-height: 96px;
  }
  .hm-qc-icon {
    font-size: 32px;
  }
  .hm-qc-label {
    font-size: 14px;
    font-weight: 700;
  }

  /* Feed item: bigger, more readable */
  .hm-feed-item {
    padding: 20px 24px;
  }
  .hm-feed-rank {
    width: 28px;
    font-size: 16px;
  }
  .hm-feed-title {
    font-size: 16px;
    font-weight: 700;
  }
  .hm-feed-meta {
    font-size: 13px;
    gap: 10px;
  }

  /* Section titles bigger */
  .hm-sec-title {
    font-size: 22px;
  }

  /* Info cards more spacious */
  .hm-info-card {
    padding: 28px;
    min-height: 180px;
  }
  .hm-info-title {
    font-size: 26px;
  }

  /* Join CTA more prominent */
  .hm-join-cta {
    padding: 36px;
    margin: 24px 0 48px;
  }
  .hm-join-title { font-size: 22px; }
  .hm-join-sub { font-size: 15px; }

  /* Cat-bar: cleaner with subtle background */
  .cat-bar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 0 var(--border-subtle);
  }
  .cat-pill {
    padding: 9px 18px;
    font-size: 14px;
    transition: all 150ms;
  }
  .cat-pill:not(.active):hover {
    background: var(--bg-card);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
  }

  /* Sidebar widgets: cleaner spacing */
  .widget {
    padding: 22px;
  }
  .widget-title {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
  }

  /* FAB more visible */
  .fab {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(109, 67, 240, 0.4);
  }
  .fab:hover {
    box-shadow: 0 8px 28px rgba(109, 67, 240, 0.5);
    transform: scale(1.08) translateY(-2px);
  }
}

/* Larger desktop: even more breathing room */
@media (min-width: 1440px) {
  .hm-quick-cats { gap: 12px; }
  .hm-quick-cat { padding: 24px 8px; min-height: 108px; }
  .hm-qc-icon { font-size: 36px; }
  .hm-greeting { font-size: 36px; }
  .hm-info-title { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   ★★★ TRUE ADAPTIVE LAYOUT V2 — Viewport-aware design ★★★
   - Left Nav Rail (sidebar) for 1200px+
   - Bigger main content area
   - Better information density per device
   ═══════════════════════════════════════════════════════════ */

/* ─── LEFT NAVIGATION RAIL (hidden by default) ─── */
.sidebar-rail {
  display: none;
  flex-direction: column;
  gap: 24px;
  width: 220px;
  position: sticky;
  top: calc(var(--nav-height, 60px) + 80px);
  align-self: start;
  max-height: calc(100vh - var(--nav-height, 60px) - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-rail::-webkit-scrollbar { width: 0; }

.rail-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px 4px;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  text-align: left;
  font-family: inherit;
  min-height: 40px;
}
.rail-item i {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.rail-item .rail-emoji {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.rail-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.rail-item.active {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-weight: 700;
}
.rail-item:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
}
.rail-cat {
  font-weight: 600;
}

.rail-write-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 150ms, transform 100ms;
  font-family: inherit;
}
.rail-write-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}
.rail-write-btn:active { transform: translateY(0); }
.rail-write-btn i { font-size: 18px; }

/* ─── DESKTOP 3-COLUMN (>= 1200px) ─── */
@media (min-width: 1200px) {
  .main-wrap {
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    max-width: 1440px;
    gap: 32px;
    padding: 24px 32px;
  }
  .sidebar-rail { display: flex; }
  .content-area {
    max-width: none !important;
    width: 100%;
  }

  /* Hide cat-bar on desktop (replaced by left rail) */
  .cat-bar { display: none; }

  /* Hide FAB on desktop (replaced by rail-write-btn) */
  .fab { display: none !important; }

  /* Bigger content typography */
  .hm-greeting { font-size: 36px; }
  .hm-subgreeting { font-size: 17px; }

  /* Quick cats hidden on desktop (rail has them) */
  nav.hm-quick-cats { display: none !important; }
  .hm-header { padding: 32px 0 24px; }

  /* Right sidebar: flow naturally (NOT sticky) - prevents widget clipping */
  .sidebar-right {
    width: 100%;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    height: auto;
  }
}

/* ─── LARGE DESKTOP (>= 1440px) ─── */
@media (min-width: 1440px) {
  .main-wrap {
    grid-template-columns: 240px minmax(0, 1fr) 340px;
    max-width: 1560px;
    gap: 40px;
    padding: 32px 40px;
  }
  .sidebar-rail { width: 240px; }
  .hm-greeting { font-size: 38px; }
}

/* ─── ULTRA WIDE (>= 1680px) ─── */
@media (min-width: 1680px) {
  .main-wrap {
    grid-template-columns: 260px minmax(0, 1fr) 360px;
    max-width: 1680px;
  }
}

/* ═══════════════════════════════════════════════════════════
   ★ FEED GRID 2-COL ON LARGE — More info density
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  /* Show 10 items, 2 columns */
  .hm-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: transparent;
    border: none;
    gap: 8px;
  }
  .hm-feed-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 20px;
  }
  .hm-feed-item:hover {
    border-color: var(--brand-primary);
  }
  /* Center-divider in 2-col layout */
  .hm-feed-item:nth-child(odd):not(:last-child) {
    border-right: 1px solid var(--border-subtle);
  }
}

/* ═══════════════════════════════════════════════════════════
   ★ TABLET LAYOUT IMPROVED (768-1023px) — Sidebar visible
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-wrap {
    grid-template-columns: minmax(0, 1fr) 280px;
    max-width: 980px;
    gap: 20px;
    padding: 20px;
    padding-bottom: calc(72px + 20px);
  }
  .sidebar-right { display: flex !important; }
  .sidebar-rail { display: none; }

  /* Tablet: smaller widget padding */
  .widget { padding: 16px; }
  .widget-title { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   ★ MOBILE: Big Search Hero (Daangn style)
   ═══════════════════════════════════════════════════════════ */
.mobile-search-hero {
  display: none;
}
@media (max-width: 767px) {
  /* Reset main padding so hero is full width */
  .content-area { padding: 0; }

  .mobile-search-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 16px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 150ms, background 150ms;
    min-height: 48px;
  }
  .mobile-search-hero:hover {
    border-color: var(--brand-primary);
    background: var(--bg-card-hover);
  }
  .mobile-search-hero i {
    font-size: 20px;
    color: var(--text-tertiary);
  }
  .mobile-search-hero-text {
    flex: 1;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
  }
  .mobile-search-hero-shortcut {
    font-size: 11px;
    color: var(--text-tertiary);
    background: var(--bg-muted);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
  }

  /* Mobile: compact header */
  .hm-header { padding: 12px 0 8px; }
  .hm-greeting { font-size: 20px; }
  .hm-subgreeting { font-size: 13px; }

  /* Mobile: more info density on home */
  .hm-feed { background: var(--bg-card); }
  .hm-section { margin-bottom: 24px; }

  /* Hide right sidebar on mobile — info is in widgets section below feed */
  .sidebar-right { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ★ Theme toggle visible on mobile too
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  #theme-toggle { display: flex !important; }
}

/* ═══════════════════════════════════════════════════════════
   ★ DARK MODE LEFT RAIL adjustments
   ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .rail-item.active {
  background: var(--brand-primary-soft);
}

/* ─── Disable distracting animations for accessibility ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .live-dot, .pulse-glow, .tpi-rank-top { animation: none !important; }
}

/* ─── High contrast mode support ─── */
@media (prefers-contrast: more) {
  :root {
    --border-subtle: rgba(15,15,35,0.15);
    --border-default: rgba(15,15,35,0.3);
    --text-secondary: #2A2A48;
    --text-tertiary:  #4D4D6B;
  }
  [data-theme="dark"] {
    --border-subtle: rgba(255,255,255,0.18);
    --border-default: rgba(255,255,255,0.32);
    --text-secondary: #D8D8E8;
    --text-tertiary:  #A8A8C0;
  }
}

/* ═══════════════════════════════════════════════════════════
   ★ HOME LAYOUT V3 — Toss/Daangn/Blind inspired
   8pt grid · Visual hierarchy · Minimal CTAs
   ═══════════════════════════════════════════════════════════ */

/* 메인 콘텐츠 영역: 최대 너비 강제 (Reading Width Law) */
.content-area {
  max-width: 720px;
  width: 100%;
}

/* ── 헤더 (토스피드 스타일) ── */
.hm-header {
  padding: 40px 0 32px;
  margin-bottom: 8px;
}
.hm-greeting {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 8px;
}
.hm-subgreeting {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── 빠른 카테고리 (당근마켓 스타일) ── */
.hm-quick-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 40px;
}
.hm-quick-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 180ms;
  font-family: inherit;
  text-align: center;
}
.hm-quick-cat:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
.hm-qc-icon {
  font-size: 28px;
  line-height: 1;
}
.hm-qc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── 섹션 (Visual Hierarchy) ── */
.hm-section { margin-bottom: 40px; }
.hm-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0;
}
.hm-sec-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.hm-sec-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 180ms, color 180ms;
}
.hm-sec-more:hover {
  background: var(--bg-card-hover);
  color: var(--brand-primary);
}

/* ── 피드 리스트 (블라인드 스타일 컴팩트) ── */
.hm-feed {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}
.hm-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 150ms;
}
.hm-feed-item:last-child { border-bottom: none; }
.hm-feed-item:hover { background: var(--bg-card-hover); }
.hm-feed-item:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
  background: var(--bg-card-hover);
}
.hm-feed-rank {
  flex-shrink: 0;
  width: 24px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: center;
}
.hm-feed-item:nth-child(-n+3) .hm-feed-rank { color: var(--brand-primary); }
.hm-feed-body { flex: 1; min-width: 0; }
.hm-feed-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.hm-feed-cat {
  font-weight: 600;
  color: var(--brand-primary);
}
.hm-feed-dot { color: var(--text-tertiary); }
.hm-feed-time { margin-left: auto; flex-shrink: 0; }
.hm-feed-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ── 2단 정보 카드 (Miller's Law) ── */
.hm-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hm-info-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 180ms;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hm-info-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
.hm-info-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hm-info-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 4px 0;
}
.hm-info-dict .hm-info-title { color: var(--brand-primary); }
.hm-info-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 8px;
  flex: 1;
}
.hm-info-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: auto;
}

/* ── 가입 CTA 섹션 (1개의 Primary CTA) ── */
.hm-join-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin: 16px 0 40px;
  border-radius: 16px;
  background: var(--brand-primary);
  color: white;
}
.hm-join-text { flex: 1; min-width: 0; }
.hm-join-title {
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 4px;
}
.hm-join-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}
.hm-join-cta .btn-primary {
  background: white;
  color: var(--brand-primary);
  font-weight: 700;
  flex-shrink: 0;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}
.hm-join-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* ── Cat-bar: text only, no icons (Hick's Law) ── */
.cat-pill {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}
.cat-pill i { display: none; }

/* ═══════════════════════════════════════════════════════════
   ★ COMMUNITY POST CARDS V3 — Blind style compact list
   ═══════════════════════════════════════════════════════════ */
.post-card {
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 0;
  transition: background 150ms, border-color 150ms;
}
.post-list {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  gap: 0;
}
.post-list .post-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: none;
  margin: 0;
}
.post-list .post-card:last-child { border-bottom: none; }
.post-list .post-card:hover {
  background: var(--bg-card-hover);
  transform: none;
  box-shadow: none;
  border-color: var(--border-subtle);
}
.post-list .post-card::before { display: none; }

.post-card-header {
  margin-bottom: 8px;
  gap: 8px;
}
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  -webkit-line-clamp: 1;
}
.post-card-content {
  font-size: 14px;
  -webkit-line-clamp: 2;
  margin-bottom: 12px;
}
.post-card-stats {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════
   ★ TYPOGRAPHY SYSTEM — Visual hierarchy enforcement
   ═══════════════════════════════════════════════════════════ */
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════
   ★ 8PT GRID SPACING ENFORCEMENT
   모든 spacing은 8의 배수: 8, 16, 24, 32, 40, 48, 64
   ═══════════════════════════════════════════════════════════ */
.main-wrap {
  padding: 24px;
  gap: 32px;
}
.sidebar-right { gap: 16px; }

/* ═══════════════════════════════════════════════════════════
   ★ Responsive (Mobile-first ergonomics)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hm-header { padding: 24px 0 16px; }
  .hm-greeting { font-size: 22px; }
  .hm-subgreeting { font-size: 14px; }
  .hm-quick-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hm-qc-icon { font-size: 24px; }
  .hm-qc-label { font-size: 12px; }
  .hm-sec-title { font-size: 18px; }
  .hm-info-grid { grid-template-columns: 1fr; }
  .hm-info-card { padding: 20px; }
  .hm-info-title { font-size: 20px; }
  .hm-join-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    text-align: center;
  }
  .hm-join-cta .btn-primary { width: 100%; }
  .hm-feed-item { padding: 14px 16px; }
  .hm-feed-rank { width: 20px; font-size: 14px; }
  .hm-feed-title { font-size: 14px; }
  .post-card { padding: 16px 18px; }
}
@media (max-width: 480px) {
  .hm-quick-cats { grid-template-columns: repeat(3, 1fr); }
  .main-wrap { padding: 16px 12px calc(64px + 16px); }
}
