/*
Theme Name: StylishName
Theme URI: http://stylishname.org/
Author: Admin
Author URI: http://stylishname.org/
Description: A simple custom stylish name WordPress theme
Version: 4.0 (redesign: "Pulse" — mobile-first, fast-loading,
duotone mint/pink accent on a clean base. Same class names/IDs
as before, so it drops straight into your existing PHP/JS with
zero markup changes.)
License: GPL v2 or later
Text Domain: stylishname
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ---- Light theme: "Pulse Daylight" ---- */
  --bg-main: #fff;
  --bg-body: #f3f5f9;
  --bg-card: #ffffff;
  --bg-card-alt: #eef1f8;
  --bg-input: #ffffff;
  --bg-menu: #f3f5f9;
  --bg-scroll-btn: #eef1f8;
  --bg-nav-btn: #ffffff;
  --bg-nav-btn-hover: #e3e8f4;
  --bg-nav-btn-active: #06c9a3;
  --bg-footer: #0d1420;
  --bg-dialog: #ffffff;
  --bg-comment: #ffffff;
  --bg-comment-textarea: #f5f7fb;
  --bg-overlay: rgba(13, 20, 32, 0.55);

  --border-color: #dfe4ef;
  --border-hover: #b7c2dc;
  --border-active: #06c9a3;
  --border-input: #dfe4ef;
  --border-dark: #ccd4e6;

  --text-primary: #101826;
  --text-secondary: #2b3548;
  --text-muted: #64708a;
  --text-light: #8892a8;
  --text-placeholder: #a7afc4;
  --text-footer: #f3f5f9;
  --text-footer-light: #a9b3c9;

  --accent: #667eea;
  --accent-hover: #764ba2;
  --accent-light: #6fe3cc;
  --accent-gradient: var(--accent);
  --accent-gradient-soft: rgba(6, 201, 163, 0.12);
  --danger: #e8385f;
  --success: #16b876;

  --shadow-card: 0 1px 6px rgba(16, 24, 38, 0.06);
  --shadow-btn: 0 3px 10px rgba(6, 201, 163, 0.28);
  --shadow-dialog: 0 10px 26px rgba(13, 20, 32, 0.16);
  --shadow-comment: 0 1px 8px rgba(16, 24, 38, 0.06);
  --shadow-comment-hover: 0 3px 12px rgba(16, 24, 38, 0.09);
  --shadow-emboss: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 0 3px rgba(6, 201, 163, 0.16);

  --radius: 12px;
  --radius-full: 30px;
  --notch: 10px;

  --scrollbar-track: #eef1f8;
  --scrollbar-thumb: #ccd4e6;
  --scrollbar-thumb-hover: #b7c2dc;

  --nav-link-color: #101826;
  --nav-link-hover: #06c9a3;
  --hamburger-color: #101826;

  --t: 0.15s;
  --ease: ease-out;
  --font-mono: 'Courier New', monospace;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Dark theme: "Pulse After Dark" ---- */
.dark {
  --bg-main: #000;
  --bg-body: #0a0e15;
  --bg-card: #131924;
  --bg-card-alt: #1a2130;
  --bg-input: #131924;
  --bg-menu: #0a0e15;
  --bg-scroll-btn: #1a2130;
  --bg-nav-btn: #131924;
  --bg-nav-btn-hover: #212a3c;
  --bg-nav-btn-active: #2de6c4;
  --bg-footer: #05070c;
  --bg-dialog: #131924;
  --bg-comment: #131924;
  --bg-comment-textarea: #1a2130;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --border-color: #232c3f;
  --border-hover: #37455e;
  --border-active: #2de6c4;
  --border-input: #232c3f;
  --border-dark: #2c3650;

  --text-primary: #eef2f8;
  --text-secondary: #c4cddc;
  --text-muted: #8b96ac;
  --text-light: #6f7a90;
  --text-placeholder: #4a5468;
  --text-footer: #eef2f8;
  --text-footer-light: #8b96ac;

  --accent: #2de6c4;
  --accent-hover: #59ecd1;
  --accent-light: #8ff0dc;
  --accent-gradient: var(--accent);
  --accent-gradient-soft: rgba(45, 230, 196, 0.16);
  --danger: #ff6b87;
  --success: #4fd99a;

  --shadow-card: 0 1px 6px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 3px 12px rgba(45, 230, 196, 0.3);
  --shadow-dialog: 0 10px 26px rgba(0, 0, 0, 0.55);
  --shadow-comment: 0 1px 8px rgba(0, 0, 0, 0.35);
  --shadow-comment-hover: 0 3px 12px rgba(0, 0, 0, 0.45);
  --shadow-emboss: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 0 3px rgba(45, 230, 196, 0.22);

  --scrollbar-track: #131924;
  --scrollbar-thumb: #2c3650;
  --scrollbar-thumb-hover: #37455e;

  --nav-link-color: #eef2f8;
  --nav-link-hover: #2de6c4;
  --hamburger-color: #eef2f8;
}

/* Respect reduced-motion preference everywhere */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== BASE (mobile-first) ===== */
html {
  transition: background var(--t) var(--ease);
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 15px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.post-meta {
  display: none;
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

h1 { font-size: 1.8rem; text-align: center;}
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }

h1, h2, h3,
.nav-btn, .bottomMenu .nav-btn, .main-nav .nav-menu li a,
.cat-name h2, .site-branding a {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Main wrapper — single column on phone by default */
.wrapper,.container {
  display: block;
  max-width: 1300px;
  margin: 0 10px;
}

.content-area {
  flex: 1;
  min-width: 0;
  order: 1;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
  margin-top: 10px;
}

.widget-area {
  width: 100%;
  order: 2;
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}
/* ===== INPUT SECTION ===== */
.input-main-sec {
  padding: 10px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-body);
}

.input-sec {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-input);
  border-radius: 14px 14px 0 0;
  transition: border-color var(--t), box-shadow var(--t);
}

.input:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

#inputText {
  flex: 1;
  border: none;
  background: transparent;
  padding: 17px;
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
  resize: none;
  min-height: 48px;
  font-family: inherit;
  text-align: center;
}

#inputText::placeholder {
  color: var(--text-placeholder);
}

#clearInput {
  position: absolute;
  right: 5px;
  top: 2px;
  background: transparent;
  border: none;
  color: var(--text-placeholder);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  font-weight: 700;
  display: none;
}

#clearInput:hover {
  color: var(--accent);
}

#inputCount {
  position: absolute;
  right: 12px;
  bottom: 5px;
  font-size: 11px;
  color: var(--text-placeholder);
  white-space: nowrap;
}

/* ===== MENU ===== */
.menu-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.scroll-btn {
  background: var(--bg-scroll-btn);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  min-height: 40px;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.scroll-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.scroll-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.topMenu {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.topMenu::-webkit-scrollbar { height: 0; display: none; }

.nav-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: 5px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t);
  flex-shrink: 0;
  min-height: 35px;
  touch-action: manipulation;
}

.nav-btn:hover {
  background: var(--bg-nav-btn-hover);
  border-color: var(--border-hover);
}

/* Signature moment #1: the active pill is one of only three
   places the solid accent fill appears on the whole site. */
.nav-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.nav-btn i {
  font-style: normal;
  margin-right: 4px;
}

/* ===== SHARE ===== */
.share {
  display: flex;
  justify-content: space-between;
}

/* ===== SHARE URL ===== */
.share-url {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.share-url label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.share-url input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px 0 0 8px;
  font-size: 13px;
  height: 40px;
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-mono);
  transition: border-color var(--t);
}

.share-url input:focus {
  border-color: var(--accent);
}

.share-url button {
  padding: 10px 14px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 0 15px 15px 0;
  cursor: pointer;
  font-size: 13px;
  height: 40px;
  font-weight: 600;
  transition: filter var(--t), transform 0.1s;
  white-space: nowrap;
}

.share-url button:hover { filter: brightness(1.08); }
.share-url button:active { transform: scale(0.97); }

/* ===== GRIDS — single column on phone, the highest-traffic view ===== */
#fontslist,
.items-container,
#decoGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.font {
  display: flex;
  transition: border-color var(--t), box-shadow var(--t);
  position: relative;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.font:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.font div {
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding: 10px 0 8px;
  background: var(--bg-main);
}
.font div p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.font span,.item span i {
  font-size: 10px;
  opacity: 0.75;
  user-select: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0 2px;
  justify-content: center;
}

.alert {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-card);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 1rem !important;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.font button {
  background: transparent;
  border: none;
  height: 100%;
  padding: 8px 5px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  line-height: 1.2;
  text-align: center;
  user-select: none;
  border-radius: 10px;
}

.font button:hover {
  background: var(--accent-gradient);
  color: #fff;
}

/* ===== LOAD MORE ===== */
.load-more-trigger {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CATEGORY NAME ===== */
.cat-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.cat-name h2 { margin: 0; color: var(--text-secondary); }
.cat-name span { color: var(--text-muted); font-size: 12px; }

/* ===== BOTTOM MENU ===== */
.bottomMenu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0;
}

.bottomMenu .nav-btn {
  background: var(--bg-scroll-btn);
  border: 1px solid var(--border-color);
  min-height: 40px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}

.bottomMenu .nav-btn:hover {
  background: var(--bg-nav-btn-hover);
  border-color: var(--border-hover);
}

.bottomMenu .nav-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ===== HEADINGS ===== */
h2 {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 26px 0 14px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }

/* ===== OTHER TOOLS ===== */
.otools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.otools a {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.otools a:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ===== TOP POINTS ===== */
.top-point ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 14px 0;
}

.top-point ul li {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  transition: border-color var(--t), box-shadow var(--t);
}

.top-point ul li:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

/* ===== REGEN BUTTON ===== */
.regen {
  position: fixed;
  bottom: 20px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

/* ===== DECO DIALOG ===== */
.deco-dialog {
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dialog);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-dialog);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.deco-dialog > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  background: var(--bg-card-alt);
  border-bottom: 2px solid var(--border-color);
  flex-shrink: 0;
}

.deco-dialog > div:first-child strong {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 700;
}

#decoDialogClose {
  background: transparent;
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  color: var(--accent);
  transition: background 0.2s;
}

#decoDialogClose:hover { background: var(--accent-gradient-soft); }

.deco-layout-row {
    display: flex;
    flex-direction: row;
    min-height: 0px;
    position: relative;
    flex: 1 1 0%;
}

.deco-dialog .deco-layout-row { padding: 0 8px; }

.deco-main { flex: 1; min-width: 0; overflow-y: visible; }

#dialogList.deco-main {
  overflow-y: auto;
  padding-right: 4px;
}

#dialogList .font { display: block; margin-bottom: 5px; padding: 0; }
#dialogList .font div { clip-path: none; border-radius: var(--radius-full); }

#dialogList .deco-cards-container {
    scrollbar-width: none;
    overflow: scroll;
}
.deco-loadmore-wrap {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
.deco-loadmore-btn {
  background: var(--bg-scroll-btn);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 12px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 24px;
  min-height: 44px;
  touch-action: manipulation;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.deco-loadmore-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ===== VERTICAL MENU (moods) ===== */
.vmenu {
    max-width: 70px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(-200px + 90vh);
    z-index: 5;
    flex: 0 0 auto;
    padding: 6px 4px;
    background: transparent;
}

.mood-scroll-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  padding: 8px 0;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 32px;
  touch-action: manipulation;
  transition: background 0.2s;
}

.mood-scroll-btn:hover:not(:disabled) { background: var(--bg-nav-btn-hover); }
.mood-scroll-btn:disabled { opacity: 0.2; cursor: default; }

.deco-mood-bar {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0;
}

.deco-mood-chip {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 2px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.deco-mood-chip:hover {
  background: var(--bg-nav-btn-hover);
  border-color: var(--border-hover);
}

.deco-mood-chip.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
}

/* ===== HEADER =====
   Signature moment #2: the header carries the solid accent color
   so the whole site reads as one clean brand moment, then
   everything below stays quiet, light, and fast. */
.site-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 5px 0;
  box-shadow: var(--shadow-btn);
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-branding a { display: block; }

.site-branding img {
  max-height: 38px;
  width: auto;
  border-radius: 8px;
}
.site-branding { display: flex; align-items: center; gap: 5px; }

#themeToggle {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  height: 36px;
  min-width: 36px;
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.nav-menu { list-style: none; display: flex; gap: 20px; }

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background 0.2s;
  font-size: 15px;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  background: rgba(255, 255, 255, 0.22);
}

/* ===== HEADER ACTIONS & HAMBURGER ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: flex;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  border-radius: 10px;
  height: 36px;
  min-width: 36px;
  padding: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hamburger:active {
  transform: scale(0.95);
}

.hamburger svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

/* ===== MAIN NAV ===== */
.main-nav { position: relative; display: flex; align-items: center; justify-content: flex-end; padding: 8px 0; }

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1000;
  width: 44px;
  height: 44px;
}

.menu-toggle .hamburger {
  display: block;
  position: relative;
  width: 25px;
  height: 2px;
  background: var(--hamburger-color);
  border: none;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--hamburger-color);
  transition: transform 0.25s ease;
  left: 0;
}
.menu-toggle .hamburger::before { top: -8px; }
.menu-toggle .hamburger::after { bottom: -8px; }

.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg) translate(5px, -5px); }

.main-nav .nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-card);
  padding: 76px 26px 26px;
  box-shadow: var(--shadow-dialog);
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 999;
  gap: 0;
}

.main-nav .nav-menu.active { display: flex; right: 0; }

.main-nav .nav-menu li { padding: 15px 0; border-bottom: 1px solid var(--border-color); width: 100%; }
.main-nav .nav-menu li:last-child { border-bottom: none; }

.main-nav .nav-menu li a {
  text-decoration: none;
  color: var(--text-primary);
  padding: 5px 0;
  display: block;
  font-size: 17px;
}

.main-nav .nav-menu li a:hover { color: var(--nav-link-hover); }

.menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-overlay);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.menu-overlay.active { display: block; opacity: 1; }

/* ===== POST / ARTICLE ===== */
.post {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-top: 24px;
}

.post-header { margin-bottom: 20px; }

.post-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

article img { max-width: 100%; height: auto; }

/* ===== BACK TO TOP ===== */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.to-top:hover { transform: translateY(-2px); }

.to-top img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* ===== COMMENT BOX ===== */
.comment-respond {
  background: var(--bg-comment);
  border-radius: var(--radius);
  padding: 22px 20px 26px;
  box-shadow: var(--shadow-comment);
  margin: 24px 0;
  max-width: 100%;
  transition: box-shadow 0.2s;
}

.comment-respond:hover { box-shadow: var(--shadow-comment-hover); }

.comment-reply-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.comment-reply-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 50px; height: 2px;
  background: var(--accent-gradient);
}

.comment-reply-title small {
  font-size: 13px;
  font-weight: 400;
  margin-left: 12px;
  color: var(--text-muted);
}

#cancel-comment-reply-link {
  color: var(--danger);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
#cancel-comment-reply-link:hover { background: var(--bg-card-alt); }

.logged-in-as {
  background: var(--bg-card-alt);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  border-left: 4px solid var(--accent);
}

.logged-in-as a { color: var(--accent); text-decoration: none; font-weight: 500; }
.logged-in-as a:hover { text-decoration: underline; }

.required-field-message { display: block; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.required { color: var(--danger); font-weight: 600; }

.comment-form-comment { margin-bottom: 18px; }

.comment-form-comment label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 14px;
}

.comment-form-comment textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  background: var(--bg-comment-textarea);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 110px;
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.comment-form-comment textarea::placeholder { color: var(--text-placeholder); }

.form-submit { margin-top: 5px; }

/* Signature moment #3: the primary submit/vote button, solid accent fill. */
#submit {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  min-height: 46px;
  transition: box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-btn);
  width: 100%;
}

#submit:active { transform: scale(0.98); }

#comment_post_ID, #comment_parent, #_wp_unfiltered_html_comment_disabled { display: none; }

/* Sidebar Widget Container */
.sidebar-widget { padding: 0; border-radius: var(--radius); margin: 10px 0; }
.sidebar-widget ul { padding: 5px; }
.sidebar-widget h3 {
  text-align: left;
  padding: 10px;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
      border-bottom: 1px solid var(--accent);
}

/* Recent Posts List */
.recent-posts-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.recent-posts-list li { margin: 0; padding: 0; display: inline-block; }

.recent-posts-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  margin: 2px;
}

.recent-posts-list a:hover { background: var(--accent-gradient); color: #ffffff; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  margin-top: 40px;
}

.site-footer .wrapper { padding-top: 32px; padding-bottom: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 5px;
  text-align: center;
  font-size: 13px;
  color: var(--text-footer-light);
}
.footer-bottom a { color: #fff; text-decoration: none; font-size: 1rem; }

/* ============================================
   NLV (NAME LIST / VOTE) FRONTEND STYLES
   ============================================ */
.nlv-frontend { margin-bottom: 15px; }
.nlv-header { display: flex; justify-content: space-between; align-items: center; }

.nlv-title { font-size: 15px; color: var(--text-primary); font-weight: 600; }
.nlv-title small { font-weight: 400; font-size: 11px; color: var(--text-muted); }

.nlv-add-front {
  background: var(--bg-scroll-btn);
  color: var(--text-primary);
  border: none;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
	    touch-action: manipulation;
}
#ajaxsearchlite1 .probox, div.asl_w .probox{
	border-color:var(--accent) !important;
}
.nlv-add-front:hover { background: var(--accent-gradient); color: #fff; }
div.asl_w .probox .promagnifier .innericon svg{fill:var(--accent) !important}

.nlv-add-form {
  display: none;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--bg-card-alt);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.nlv-add-form-inner { display: flex; gap: 8px; flex-wrap: wrap; }

.nlv-add-input {
  flex: 1;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
}
.nlv-add-input::placeholder { color: var(--text-placeholder); }
.nlv-add-input:focus { outline: none; border-color: var(--accent); }

.nlv-add-submit {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s;
}
.nlv-add-submit:hover { filter: brightness(1.08); }

.nlv-add-cancel {
  background: var(--bg-scroll-btn);
  color: var(--text-primary);
  border: none;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 6px;
  cursor: pointer;
}
.nlv-add-cancel:hover { background: var(--bg-nav-btn-hover); }

.nlv-add-msg { margin-top: 6px; font-size: 12px; display: none; }
.item {
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s, box-shadow 0.2s;
  flex: 1 1 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.item:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }

.item b {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
  width: 100%;
  display: block;
  padding: 8px 0 0 0;
  cursor: pointer;
  background: var(--bg-main);
}
.item div { position: relative; width: 100%; text-align: center; }

.item span { display: inline-flex; align-items: center; gap: 3px; user-select: none;margin-bottom:3px; }
.item button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: transform 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 12px;
}
/* Upvote - Green - Use :first-of-type instead of :first-child */
.item > span button:first-of-type {
    color: #155724;
}

.item > span button:first-of-type:hover:not(:disabled) {
    background: #b7dfc9;
    transform: scale(1.05);
}

/* Downvote - Red - Use :last-of-type (this one was actually working) */
.item > span button:last-of-type {
    color: #721c24;
}

.item > span button:last-of-type:hover:not(:disabled) {
    background: #f5c6cb;
    transform: scale(1.05);
}

/* Disabled state */
.item > span button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Active/Pressed state */
.item > span button:active:not(:disabled) {
    transform: scale(0.95);
}

/* Pagination */
.nlv-pagination { display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap;margin: 10px 0; }

.nlv-page-btn {
  padding: 9px 14px;
  min-height: 40px;
  background: var(--bg-scroll-btn);
  color: var(--text-primary);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.nlv-page-btn:hover { background: var(--accent-gradient); color: #fff; }
.nlv-page-btn.nlv-page-num.nlv-page-current { background: var(--accent-gradient); color: #fff; }

.nlv-page-info { color: var(--text-muted); font-size: 12px; }

.nlv-empty { text-align: center; padding: 36px 16px; color: var(--text-muted); }

/* Toast Notification */
.nlv-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 8px;
  z-index: 9999;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  max-width: 90vw;
}
.nlv-toast.success { border-color: var(--success); background: rgba(22, 184, 118, 0.12); }
.nlv-toast.error { border-color: var(--danger); background: rgba(232, 56, 95, 0.12); }
.nlv-toast.info { border-color: var(--accent); background: var(--accent-gradient-soft); }

/* Pagination buttons */
.nlv-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  min-height: 40px;
  min-width: 40px;
  background: var(--bg-nav-btn);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
  text-decoration: none;
  gap: 6px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display, inherit);
}

.nlv-pager-btn:hover:not(:disabled) {
  background: var(--bg-nav-btn-hover);
  border-color: var(--border-hover);
  color: var(--accent);
}
.nlv-pager-btn:active:not(:disabled) { transform: scale(0.97); box-shadow: var(--shadow-emboss); }
.nlv-pager-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.nlv-page-nav { font-weight: 600; letter-spacing: 0.3px; }
.nlv-page-nav::before { content: ''; display: inline-block; margin-right: 4px; }
.nlv-page-nav[data-p]:first-child::before { content: '‹'; font-size: 18px; font-weight: 700; }
.nlv-page-nav[data-p]:last-child::after { content: '›'; font-size: 18px; font-weight: 700; margin-left: 4px; }

.nlv-pager-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  min-height: 36px;
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  order: 3;
  width: 100%;
  justify-content: center;
}
.nlv-pager-count span { color: var(--accent); font-weight: 700; }

.nlv-page-current {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.nlv-page-current:hover:not(:disabled) { background: var(--accent-gradient); color: #fff; }

.nlv-page-num { min-width: 38px; padding: 8px 10px; font-weight: 500; }
.nlv-page-num.nlv-page-current { background: var(--accent-gradient); color: #fff; border-color: transparent; font-weight: 700; }

.nlv-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  user-select: none;
}

.nlv-page-nav[data-p]:first-child { order: 1; }
.nlv-page-nav[data-p]:last-child { order: 2; }

.nlv-pager-btn.loading { opacity: 0.6; cursor: wait; pointer-events: none; position: relative; }
.nlv-pager-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: nlvSpin 0.8s linear infinite;
}
@keyframes nlvSpin { to { transform: rotate(360deg); } }

.nlv-pager-btn[disabled] { position: relative; }
.nlv-pager-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nlv-pagination-numbered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  flex-wrap: wrap;
}
.nlv-pagination-numbered .nlv-pager-btn { min-width: 38px; padding: 8px 10px; }
.nlv-pagination-numbered .nlv-page-current { background: var(--accent-gradient); color: #fff; border-color: transparent; }

.foot-link {
    text-align: center;
    padding: 10px;
}
.foot-link a {
    background: #333;
    display: inline-block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
}
/* Dark theme adjustments */
.dark .nlv-pagination { background: var(--bg-card); border-color: var(--border-color); }
.dark .nlv-pager-btn { background: var(--bg-nav-btn); color: var(--text-primary); border-color: var(--border-color); }
.dark .nlv-pager-btn:hover:not(:disabled) { background: var(--bg-nav-btn-hover); border-color: var(--border-hover); color: var(--accent); }
.dark .nlv-pager-count { background: var(--bg-card-alt); color: var(--text-secondary); border-color: var(--border-color); }
.dark .nlv-pager-count span { color: var(--accent); }
.dark .nlv-page-current { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.dark .nlv-page-ellipsis { color: var(--text-muted); }
.asl_w_container.asl_w_container_1 {
    margin-top: 10px;
}
   .gen-btn-wrapper {
            text-align: center;
            margin: 10px 0;
        }

        .gen-btn {
            display: inline-block;
            padding: 12px 28px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            border: none;
            cursor: pointer;
        }

        .gen-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
        }

        .gen-btn:active {
            transform: scale(0.95);
        }

        .gen-btn .highlight {
            color: #ffe066;
            font-weight: 700;
        }

        @media (max-width: 480px) {
            .gen-btn {
                padding: 10px 20px;
                font-size: 14px;
                width: 100%;
                text-align: center;
            }
        }

#ajax-search-wrapper {
        position: relative;
    padding: 10px;
    max-width: 1300px;
    margin: 0 auto;
}

#ajax-search-form {
    display: flex;
}

#ajax-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#ajax-search-input:focus {
    border-color: #007bff;
}

#ajax-search-form button {
    padding: 10px 15px 10px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#ajax-search-form button:hover {
    background: #0056b3;
}

/* Search Results Container */
#search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
    z-index: 999;
}

/* Search Results List - SAME for both */
.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Search Result Item - SAME for both */
.search-result-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover:not(.no-result-message):not(.suggestion-label-item) {
    background: #f8f9fa;
}

/* Result Link - SAME for both */
.result-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

/* Result Title - SAME for both */
.result-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #007bff;
}

/* Result Type - SAME for both */
.result-type {
    display: inline-block;
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 4px;
}

/* No Result Message - Special styling but same structure */
.no-result-message .result-title {
    color: #666;
    font-weight: normal;
}

/* Suggestion Label Item - Same structure */
.suggestion-label-item {
    background: #f8f9fa;
}

.suggestion-label-item .result-title {
    color: #888;
    font-weight: normal;
    font-size: 13px;
}

/* Example Items - Same structure as search results */
.example-item {
    transition: all 0.3s ease;
}

.example-item:hover {
    background: linear-gradient(135deg, #fff5f5, #fff);
    transform: scale(1.01);
}

/* Stylish Link - Same structure but special styling */
.stylish-link {
    text-align: center;
}

.stylish-name {
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(45deg, #ff6b6b, #ffa502);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.example-item:hover .stylish-name {
    -webkit-text-fill-color: #ff6b6b;
    transform: scale(1.02);
}

/* Error Link */
.error-link {
    color: #dc3545 !important;
}

.error-link .result-title {
    color: #dc3545 !important;
    font-weight: normal;
}

/* Scrollbar Styling */
#search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#search-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Responsive */
@media (max-width: 480px) {
    .result-link {
        padding: 10px 15px;
    }
    
    .result-title {
        font-size: 14px;
    }
    
    .stylish-name {
        font-size: 14px;
    }
    
    .result-type {
        font-size: 10px;
    }
}

/* Animations */
#search-results {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    animation: slideIn 0.25s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation for items */
.search-result-item:nth-child(1) { animation-delay: 0.05s; }
.search-result-item:nth-child(2) { animation-delay: 0.1s; }
.search-result-item:nth-child(3) { animation-delay: 0.15s; }
.search-result-item:nth-child(4) { animation-delay: 0.2s; }
.search-result-item:nth-child(5) { animation-delay: 0.25s; }

/* ===== LARGE TABLET (min-width: 769px) ===== */
@media (min-width: 769px) {
  .wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: 10px;
  }
	#ajax-search-wrapper{
		    max-width: 1300px;
    margin: 0 auto;
	}
  .nlv-item-name,
  .font div p{
    font-size: 1.25rem;
  }

  .content-area { margin-top: 10px; }
  .widget-area { width: 300px; flex: 0 0 300px; }

  .info-div { flex-direction: row; align-items: flex-start; }
  .info-div .image-box { flex: 0 0 auto; width: auto; }

  .site-branding img { max-height: 46px; }

  #fontResize { width: 100px; }

  .deco-dialog { width: 500px; }

  .vmenu {
    min-width: 90px;
    max-width: 130px;
    padding: 6px 4px;
  }
  .deco-mood-chip { font-size: 12px; padding: 9px 0; }

  .footer-widgets { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ===== DESKTOP (min-width: 1081px) ===== */
@media (min-width: 1081px) {
  #fontslist,
	.items-container,
  #decoGrid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== MODERN MOBILE-FIRST NAVIGATION & DRAWER ===== */

/* Prevent background scroll when drawer is active */
body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Translucent Backdrop Overlay - Optimized for GPU */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 21, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.15s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Off-Canvas Mobile Drawer - Hardware Accelerated */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 290px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card, #ffffff);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  will-change: transform;
  contain: layout paint;
  transition: transform 0.18s cubic-bezier(0, 0, 0.2, 1);
  border-left: 1px solid var(--border-color, #dfe4ef);
  box-sizing: border-box;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

/* Drawer Header with Branding Title & Close Button */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, #dfe4ef);
  background: var(--bg-card-alt, #eef1f8);
}

.drawer-branding {
  display: flex;
  align-items: center;
}

.drawer-title {
  font-family: var(--font-display, inherit);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #101826);
  letter-spacing: -0.01em;
}

.drawer-close {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #dfe4ef);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  color: var(--text-muted, #64708a);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.drawer-close:hover {
  color: var(--text-primary, #101826);
  border-color: var(--border-hover, #b7c2dc);
  background: var(--bg-card-alt, #eef1f8);
}

/* Drawer Content & Menu List */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  overscroll-behavior: contain;
}

.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-primary, #101826);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.12s ease, color 0.12s ease;
  border: 1px solid transparent;
}

.drawer-link:hover,
.drawer-link:active {
  background: var(--bg-card-alt, #eef1f8);
  color: var(--accent, #667eea);
}

.drawer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card-alt, #eef1f8);
  color: var(--accent, #667eea);
  flex-shrink: 0;
}

.drawer-link:hover .drawer-icon {
  background: var(--accent, #667eea);
  color: #ffffff;
}

.drawer-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #06c9a3, #16b876);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.drawer-link.highlight-link {
  background: var(--accent-gradient-soft, rgba(6, 201, 163, 0.12));
  border-color: rgba(6, 201, 163, 0.25);
}

/* Drawer Footer */
.drawer-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color, #dfe4ef);
  font-size: 0.75rem;
  color: var(--text-muted, #64708a);
  text-align: center;
  background: var(--bg-card-alt, #eef1f8);
}

/* Desktop Navigation */
.desktop-navigation {
  display: none;
}

@media (min-width: 860px) {
  .hamburger,
  .mobile-drawer,
  .nav-backdrop {
    display: none !important;
  }

  .desktop-navigation {
    display: block;
  }

  .desktop-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  .desktop-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 16px;
    border-radius: 20px;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .desktop-menu a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
  }
}
