/* ── Mobile Drawer ─────────────────────────────────────────────────────────── */
.ycc-mobile-overlay {
  display:    none;
  position:   fixed;
  inset:      0;
  z-index:    99990;
  background: rgba(15,23,42,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
  opacity:    0;
}
.ycc-mobile-overlay.ycc-overlay-active { display: block; opacity: 1; }

.ycc-mobile-drawer {
  display:        none;
  position:       fixed;
  top:            0;
  left:           0;
  right:          0;
  width:          100%;
  max-width:      100vw;
  height:         100vh;
  height:         100dvh;
  max-height:     100dvh;
  background:     var(--ycc-surface, #ffffff);
  border:         none;
  box-shadow:     var(--ycc-shadow-2xl);
  z-index:        99999;
  transform:      translateY(-100%);
  opacity:        0;
  transition:     transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  flex-direction: column;
  overflow:       hidden;
  box-sizing:     border-box;
}
html.dark .ycc-mobile-drawer { background: #030712; }
.ycc-mobile-drawer.ycc-drawer-open {
  display:   flex;
  transform: translateY(0);
  opacity:   1;
}
body.ycc-nav-open {
  overflow: hidden !important;
}
@media (min-width: 1024px) {
  .ycc-mobile-drawer,
  .ycc-mobile-overlay,
  .ycc-hamburger { display: none !important; }
}
.ycc-mobile-drawer-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          var(--ycc-navbar-h, 64px);
  padding:         0 16px;
  border-bottom:   1px solid var(--ycc-border);
  flex-shrink:     0;
  background:      inherit;
  box-sizing:      border-box;
}
html.dark .ycc-mobile-drawer-header {
  border-color: var(--ycc-border-dark, rgba(255,255,255,0.08));
}
.ycc-mobile-drawer-close {
  padding:         8px;
  border-radius:   var(--ycc-radius-full);
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      transparent !important;
  border:          none !important;
  color:           var(--ycc-slate-600) !important;
  cursor:          pointer;
  transition:      background 0.15s, color 0.15s;
}
.ycc-mobile-drawer-close:hover {
  background: var(--ycc-slate-100) !important;
  color:      var(--ycc-blue-600) !important;
}
html.dark .ycc-mobile-drawer-close {
  color: var(--ycc-slate-300) !important;
}
html.dark .ycc-mobile-drawer-close:hover {
  background: var(--ycc-slate-800) !important;
  color:      #fff !important;
}
.ycc-mobile-drawer-inner {
  padding:      20px 16px 36px;
  flex:         1;
  overflow-y:   auto;
  -webkit-overflow-scrolling: touch;
  box-sizing:   border-box;
}
#ycc-mobile-drawer .ycc-mobile-user-row,
#ycc-mobile-drawer .ycc-mobile-actions-row {
  display:               grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap:                   10px !important;
}
#ycc-mobile-drawer .ycc-mobile-user-row {
  margin-bottom:         20px !important;
}
#ycc-mobile-drawer .ycc-mobile-actions-row {
  padding-top:           8px !important;
}

#ycc-mobile-drawer .ycc-mobile-section-title {
  font-size:      12px !important;
  font-weight:    700 !important;
  color:          var(--ycc-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin:         0 0 12px 4px !important;
}

#ycc-mobile-drawer .ycc-mobile-nav-grid {
  display:               grid !important;
  grid-template-columns: 1fr !important;
  gap:                   8px !important;
  margin-bottom:         20px !important;
}

#ycc-mobile-drawer .ycc-mobile-nav-item {
  display:         flex !important;
  align-items:     center !important;
  justify-content: flex-start !important;
  text-align:      left !important;
  gap:             10px !important;
  padding:         12px 16px !important;
  border-radius:   var(--ycc-radius-xl, 12px) !important;
  background:      var(--ycc-slate-50, #f8fafc) !important;
  border:          1px solid var(--ycc-slate-100, #f1f5f9) !important;
  color:           var(--ycc-slate-700, #334155) !important;
  font-size:       14px !important;
  font-weight:     600 !important;
  text-decoration: none !important;
  box-shadow:      var(--ycc-shadow-sm) !important;
  transition:      background 0.15s, color 0.15s, border-color 0.15s !important;
  white-space:     nowrap !important;
  overflow:        hidden !important;
  text-overflow:   ellipsis !important;
  box-sizing:      border-box !important;
  width:           100% !important;
}
#ycc-mobile-drawer .ycc-mobile-nav-item svg {
  flex-shrink:     0 !important;
  color:           var(--ycc-slate-500, #64748b) !important;
  transition:      color 0.15s !important;
}
#ycc-mobile-drawer .ycc-mobile-nav-item .ycc-mobile-nav-text,
#ycc-mobile-drawer .ycc-mobile-nav-item > span:not([aria-hidden="true"]) {
  white-space:     nowrap !important;
  overflow:        hidden !important;
  text-overflow:   ellipsis !important;
}
#ycc-mobile-drawer .ycc-mobile-nav-item:hover {
  background:      var(--ycc-blue-50, #eff6ff) !important;
  border-color:    var(--ycc-blue-100, #dbeafe) !important;
  color:           var(--ycc-blue-600, #2563eb) !important;
}
#ycc-mobile-drawer .ycc-mobile-nav-item:hover svg {
  color:           var(--ycc-blue-600, #2563eb) !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-nav-item {
  background:      var(--ycc-slate-800, #1e293b) !important;
  border-color:    var(--ycc-slate-700, #334155) !important;
  color:           var(--ycc-slate-300, #cbd5e1) !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-nav-item svg {
  color:           var(--ycc-slate-400, #94a3b8) !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-nav-item:hover {
  background:      rgba(37,99,235,0.15) !important;
  border-color:    rgba(37,99,235,0.3) !important;
  color:           var(--ycc-blue-400, #60a5fa) !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-nav-item:hover svg {
  color:           var(--ycc-blue-400, #60a5fa) !important;
}

#ycc-mobile-drawer .ycc-mobile-action-btn,
#ycc-mobile-drawer button.ycc-mobile-action-btn,
#ycc-mobile-drawer a.ycc-mobile-action-btn {
  display:         flex !important;
  flex-direction:  row !important;
  align-items:     center !important;
  justify-content: center !important;
  gap:             8px !important;
  height:          46px !important;
  min-height:      46px !important;
  padding:         0 12px !important;
  border-radius:   var(--ycc-radius-xl, 12px) !important;
  background:      var(--ycc-surface, #ffffff) !important;
  border:          1px solid var(--ycc-border, #e2e8f0) !important;
  color:           var(--ycc-slate-600, #475569) !important;
  font-size:       13px !important;
  font-weight:     500 !important;
  font-family:     inherit !important;
  line-height:     1 !important;
  text-decoration: none !important;
  cursor:          pointer !important;
  transition:      background 0.15s, color 0.15s, border-color 0.15s !important;
  box-shadow:      none !important;
  white-space:     nowrap !important;
  overflow:        hidden !important;
  text-overflow:   ellipsis !important;
  box-sizing:      border-box !important;
  width:           100% !important;
  margin:          0 !important;
}
#ycc-mobile-drawer .ycc-mobile-action-btn svg,
#ycc-mobile-drawer button.ycc-mobile-action-btn svg {
  flex-shrink:     0 !important;
  display:         block !important;
}
#ycc-mobile-drawer .ycc-mobile-action-btn > span:not([aria-hidden="true"]) {
  white-space:     nowrap !important;
  overflow:        hidden !important;
  text-overflow:   ellipsis !important;
  line-height:     1 !important;
}
#ycc-mobile-drawer .ycc-mobile-action-btn .ycc-icon-sun,
#ycc-mobile-drawer .ycc-mobile-action-btn .ycc-icon-moon {
  align-items:     center !important;
  justify-content: center !important;
  flex-shrink:     0 !important;
}
html:not(.dark) #ycc-mobile-drawer .ycc-mobile-action-btn .ycc-icon-sun {
  display:         none !important;
}
html:not(.dark) #ycc-mobile-drawer .ycc-mobile-action-btn .ycc-icon-moon {
  display:         inline-flex !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-action-btn .ycc-icon-sun {
  display:         inline-flex !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-action-btn .ycc-icon-moon {
  display:         none !important;
}

#ycc-mobile-drawer .ycc-mobile-action-btn:hover,
#ycc-mobile-drawer button.ycc-mobile-action-btn:hover {
  background:      var(--ycc-slate-50, #f8fafc) !important;
  color:           var(--ycc-slate-900, #0f172a) !important;
  border-color:    var(--ycc-slate-300, #cbd5e1) !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-action-btn,
html.dark #ycc-mobile-drawer button.ycc-mobile-action-btn,
html.dark #ycc-mobile-drawer a.ycc-mobile-action-btn {
  background:      var(--ycc-surface-dark, #0f172a) !important;
  border-color:    var(--ycc-border-dark, rgba(255,255,255,0.08)) !important;
  color:           var(--ycc-slate-300, #cbd5e1) !important;
}
html.dark #ycc-mobile-drawer .ycc-mobile-action-btn:hover,
html.dark #ycc-mobile-drawer button.ycc-mobile-action-btn:hover {
  background:      var(--ycc-slate-800, #1e293b) !important;
  border-color:    rgba(255,255,255,0.15) !important;
  color:           #ffffff !important;
}
