:root {
  --bg: #0d0f13;
  --panel: #171b22;
  --text: #f5f6f8;
  --muted: #9ca5b3;
  --accent: #ff2d2d;
  --line: #2a3140;
  --header-h: 60px;
  --mobile-nav-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(circle at top, #1a2230 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Gilroy", "Segoe UI", Tahoma, Arial, sans-serif;
  min-height: 100vh;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 16, 22, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.topbar.topbar-minimal {
  justify-content: flex-start;
  gap: 10px;
}

.brand-block { display: flex; align-items: center; gap: 10px; }

.topbar-endcap {
  margin-left: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topbar-quickmenu {
  margin-left: auto;
  display: none;
}

.topbar-datetime {
  display: none;
  margin-left: 10px;
  min-width: 0;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(74, 108, 152, 0.72);
  border-radius: 12px;
  background: linear-gradient(168deg, rgba(34, 52, 80, 0.9) 0%, rgba(20, 34, 54, 0.92) 100%);
  color: #eaf3ff;
  text-align: right;
  line-height: 1;
  opacity: 1;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.topbar-datetime-text {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.25px;
  color: #f3f8ff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.topbar-weather-text {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding-left: 9px;
  border-left: 1px solid rgba(98, 128, 170, 0.62);
  color: #c8dbf6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-quickmenu-details {
  position: relative;
}

.topbar-quickmenu-details > summary {
  list-style: none;
}

.topbar-quickmenu-details > summary::-webkit-details-marker {
  display: none;
}

.topbar-quickmenu-trigger {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #3a557e;
  background: linear-gradient(180deg, #1b2a41 0%, #152336 100%);
  color: #eef5ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(4, 10, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-quickmenu-caret {
  font-size: 11px;
  opacity: 0.9;
  transition: transform .18s ease;
}

.topbar-quickmenu-details[open] .topbar-quickmenu-caret {
  transform: rotate(180deg);
}

.topbar-quickmenu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  border-radius: 14px;
  border: 1px solid rgba(83, 117, 162, 0.75);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(90, 129, 198, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(21, 33, 50, 0.98) 0%, rgba(14, 24, 37, 0.98) 100%);
  padding: 8px;
  box-shadow: 0 18px 34px rgba(2, 7, 15, 0.42);
  backdrop-filter: blur(12px);
  z-index: 230;
}

.topbar-quickmenu-link {
  width: 100%;
  text-decoration: none;
  color: #dce9fb;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.topbar-quickmenu-link:hover,
.topbar-quickmenu-link:focus-visible {
  color: #ffffff;
  border-color: rgba(84, 125, 186, 0.85);
  background: linear-gradient(180deg, rgba(36, 58, 88, 0.62) 0%, rgba(24, 40, 60, 0.62) 100%);
  outline: none;
}

.topbar-quickmenu-link.is-active {
  color: #ffffff;
  border-color: rgba(102, 158, 255, 0.92);
  background: linear-gradient(180deg, rgba(50, 86, 136, 0.52) 0%, rgba(33, 60, 96, 0.52) 100%);
}

.topbar-quickmenu-link i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #bcd4ff;
}

@media (min-width: 1025px) {
  .topbar-quickmenu { display: block; }
  .topbar-datetime { display: inline-flex; }
}

.hamburger {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #3a4458;
  background: #1a2230;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.logo-wordmark-picture { display: inline-flex; align-items: center; min-width: 0; }

.logo-wordmark {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: min(45vw, 260px);
}

.logo-wordmark-desktop { display: block; }
.logo-wordmark-mobile { display: none; }

.logo-fallback {
  display: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-fallback strong { color: var(--accent); }
.logo-wrap.no-desktop-logo .logo-fallback { display: inline-flex; }

@media (max-width: 768px) {
  .logo-wordmark-desktop { display: none; }
  .logo-wordmark-mobile { display: block; }
  .logo-wrap.no-mobile-logo .logo-fallback { display: inline-flex; }
  .logo-wrap.no-mobile-logo .logo-wordmark-mobile { display: none; }
  .logo-wrap:not(.no-mobile-logo) .logo-fallback { display: none; }
}

.actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.actions a {
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #242c38 0%, #1d2531 100%);
  border: 1px solid #303a4b;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.actions a.active { border-color: var(--accent); }

.install-app-btn {
  border: 1px solid #4f5f7b;
  background: linear-gradient(180deg, #2a3850 0%, #202c3f 100%);
  color: #f3f7ff;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.install-app-btn[hidden] { display: none !important; }
.drawer-install { width: 100%; margin-top: 12px; }

.sl-pwa-prompt {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  pointer-events: none;
}
.sl-pwa-prompt.is-visible { display: block; }
.sl-pwa-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 16, 0.48);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: auto;
}
.sl-pwa-prompt-card {
  position: absolute;
  width: min(540px, calc(100vw - 24px));
  border: 1px solid #3a557e;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2d4a 0%, #12233a 100%);
  box-shadow: 0 20px 42px rgba(2, 8, 18, 0.45);
  color: #e7f0ff;
  padding: 16px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease;
}
.sl-pwa-prompt.is-visible .sl-pwa-prompt-backdrop { opacity: 1; }
.sl-pwa-prompt.is-visible .sl-pwa-prompt-card { opacity: 1; transform: translateY(0); }
.sl-pwa-badge {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #f7fcff;
  border: 1px solid #6fa5ef;
  border-radius: 999px;
  padding: 4px 9px;
  background: linear-gradient(180deg, #2c6ecf 0%, #2156a5 100%);
}
.sl-pwa-prompt-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.sl-pwa-prompt-card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b6c9ea;
}
.sl-pwa-highlights {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #d9e8ff;
  font-size: 12px;
  display: grid;
  gap: 5px;
}
.sl-pwa-shots {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sl-pwa-shots img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #36527a;
  background: #0f1f35;
}
.sl-pwa-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sl-pwa-install,
.sl-pwa-later {
  height: 36px;
  border-radius: 10px;
  border: 1px solid #466a98;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sl-pwa-install {
  color: #f8fbff;
  background: linear-gradient(180deg, #2a6ddd 0%, #1f56ad 100%);
}
.sl-pwa-later {
  color: #cadcf8;
  background: linear-gradient(180deg, #223a5f 0%, #182b47 100%);
}
.sl-pwa-layout-bottom-sheet .sl-pwa-prompt-card {
  left: 50%;
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 12px);
  transform: translate(-50%, 14px);
}
.sl-pwa-prompt.is-visible.sl-pwa-layout-bottom-sheet .sl-pwa-prompt-card { transform: translate(-50%, 0); }
.sl-pwa-layout-floating-bar .sl-pwa-prompt-backdrop { display: none; }
.sl-pwa-layout-floating-bar .sl-pwa-prompt-card {
  right: 12px;
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 12px);
  width: min(420px, calc(100vw - 24px));
}
.sl-pwa-layout-modal-card .sl-pwa-prompt-card {
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 14px));
}
.sl-pwa-prompt.is-visible.sl-pwa-layout-modal-card .sl-pwa-prompt-card { transform: translate(-50%, -50%); }

.notify-btn {
  border: 1px solid #4f5f7b;
  background: linear-gradient(180deg, #2a3850 0%, #202c3f 100%);
  color: #f3f7ff;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.notify-btn svg { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.notify-btn.notify-btn-icon { padding-inline: 11px; }

.notify-btn.is-enabled {
  border-color: #3e8f61;
  background: linear-gradient(180deg, #214d39 0%, #1a3f2f 100%);
}

.notify-btn.is-denied {
  border-color: #8a4a59;
  background: linear-gradient(180deg, #442734 0%, #351f29 100%);
}
.notify-btn[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: #ff2d2d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#slNotifyToast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 650;
  width: min(360px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid var(--sl-toast-accent, #5b82bf);
  background:
    radial-gradient(120% 120% at 100% -10%, rgba(255, 86, 86, 0.2), transparent 45%),
    linear-gradient(180deg, #213a61 0%, #152842 100%);
  box-shadow: 0 16px 34px rgba(4, 10, 19, 0.58), 0 0 0 1px rgba(157, 196, 255, 0.14) inset;
  padding: 12px 12px 12px;
  display: none;
  overflow: hidden;
}

#slNotifyToast.show { display: block; animation: slNotifyPop 320ms ease; }
#slNotifyToast.pulse { animation: slNotifyPop 320ms ease, slNotifyPulse 1.1s ease; }
#slNotifyToast strong {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
  letter-spacing: 0.2px;
  color: #f4f8ff;
}
#slNotifyToast .sl-toast-head { display: flex; align-items: center; gap: 9px; }
#slNotifyToast .sl-toast-icon {
  width: 20px; height: 20px; border-radius: 6px; object-fit: cover;
  border: 1px solid rgba(213, 229, 255, 0.45); background: #142843;
}
#slNotifyToast .sl-toast-body {
  overflow: hidden;
  max-height: 56px;
}
#slNotifyToast p {
  font-size: 12px;
  color: #eff5ff;
  line-height: 1.4;
  word-break: break-word;
}
#slNotifyToast.is-long .sl-toast-body {
  position: relative;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
#slNotifyToast.is-long p {
  display: inline-block;
  padding-right: 44px;
  white-space: nowrap;
  animation: slNotifyMarquee var(--sl-toast-marquee-dur, 14s) linear infinite;
}
#slNotifyToast .sl-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--sl-toast-accent, rgba(255, 94, 94, 0.95)) 0%, rgba(255, 186, 95, 0.95) 100%);
  transform-origin: left center;
  transform: scaleX(0);
}
#slNotifyToast.show .sl-toast-progress {
  animation: slNotifyProgress var(--sl-toast-visible, 8s) linear forwards;
}
#slNotifyToast { cursor: pointer; }

@keyframes slNotifyPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slNotifyPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 84, 84, 0.7), 0 16px 34px rgba(4, 10, 19, 0.58); }
  100% { box-shadow: 0 0 0 14px rgba(255, 84, 84, 0), 0 16px 34px rgba(4, 10, 19, 0.58); }
}
@keyframes slNotifyMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes slNotifyProgress {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

#slNotifyCenter {
  position: relative;
  margin-top: 8px;
  width: min(336px, calc(100vw - 28px));
  max-height: min(66vh, 610px);
  border-radius: 16px;
  border: 1px solid rgba(106, 136, 182, 0.44);
  background: linear-gradient(180deg, #162744 0%, #111e34 100%);
  box-shadow: 0 18px 34px rgba(3, 9, 18, 0.52);
  display: none;
  z-index: 2;
  overflow: hidden;
}
#slNotifyCenter.open { display: flex; flex-direction: column; }
#slNotifyCenter .nc-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 11px 9px;
  border-bottom: 1px solid rgba(93, 124, 170, 0.44);
  background: linear-gradient(180deg, rgba(38, 62, 100, 0.5), rgba(25, 43, 69, 0.3));
}
#slNotifyCenter .nc-live-state {
  margin-left: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12px;
  border: 1px solid rgba(118, 149, 196, 0.6);
  border-radius: 999px;
  padding: 2px 8px;
  color: #d6e7ff;
  background: rgba(42, 64, 97, 0.52);
}
#slNotifyCenter .nc-live-state.ok {
  border-color: rgba(68, 177, 118, 0.78);
  color: #d5ffe7;
  background: rgba(24, 82, 56, 0.58);
}
#slNotifyCenter .nc-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
#slNotifyCenter .nc-head strong {
  font-size: 14px;
  color: #f0f6ff;
  letter-spacing: .12px;
}
#slNotifyCenter .nc-head button {
  border: 1px solid rgba(118, 148, 195, 0.56);
  background: linear-gradient(180deg, rgba(51, 83, 131, 0.78) 0%, rgba(36, 62, 98, 0.78) 100%);
  color: #e8f1ff;
  border-radius: 999px;
  height: 28px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
#slNotifyCenter .nc-filters,
#slNotifyCenter .nc-pref { display: none !important; }
#slNotifyCenter .nc-list {
  padding: 8px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 110px;
  max-height: min(54vh, 500px);
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 155, 199, 0.6) rgba(18, 30, 48, 0.9);
}
#slNotifyCenter .nc-item {
  border: 1px solid rgba(104, 136, 183, 0.4);
  background: linear-gradient(180deg, rgba(35, 57, 90, 0.84) 0%, rgba(25, 43, 68, 0.84) 100%);
  border-radius: 12px;
  padding: 9px;
  position: relative;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  box-shadow: 0 4px 10px rgba(7, 17, 32, 0.24);
}
#slNotifyCenter .nc-item:hover {
  border-color: rgba(141, 175, 227, 0.62);
  box-shadow: 0 7px 14px rgba(8, 18, 35, 0.28);
}
#slNotifyCenter .nc-item.is-unread {
  border-color: rgba(152, 186, 238, 0.62);
  box-shadow: 0 0 0 1px rgba(150, 188, 244, 0.16) inset;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(121, 169, 239, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(42, 68, 106, 0.88) 0%, rgba(30, 52, 82, 0.88) 100%);
}
#slNotifyCenter .nc-item.is-unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #98bbf0 0%, #5a86c7 100%);
}
#slNotifyCenter .nc-item:not(.is-unread) {
  opacity: .98;
}
#slNotifyCenter .nc-item + .nc-item { margin-top: 8px; }
#slNotifyCenter .nc-item-grid {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}
#slNotifyCenter .nc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(123, 156, 210, 0.58);
  background: linear-gradient(180deg, rgba(61, 95, 148, 0.86), rgba(45, 74, 115, 0.86));
  color: #f1f6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
#slNotifyCenter .nc-main {
  min-width: 0;
}
#slNotifyCenter .nc-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
#slNotifyCenter .nc-cat b {
  display: none;
}
#slNotifyCenter .nc-cat i {
  display: none;
}
#slNotifyCenter .nc-cat-badge {
  border: 1px solid rgba(126, 157, 205, 0.68);
  background: rgba(61, 95, 144, 0.3);
  color: #e3eeff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
}
#slNotifyCenter .nc-title {
  font-size: 14px;
  line-height: 1.33;
  color: #f3f8ff;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#slNotifyCenter .nc-body {
  margin-top: 4px;
  color: #c7d8f3;
  font-size: 12px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#slNotifyCenter .nc-meta {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
#slNotifyCenter .nc-time {
  color: #a8bfe2;
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
}
#slNotifyCenter .nc-state {
  margin-left: auto;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid rgba(122, 151, 196, 0.62);
  color: #d7e7ff;
  background: rgba(58, 85, 126, 0.42);
}
#slNotifyCenter .nc-state.is-unread {
  border-color: rgba(152, 186, 238, 0.72);
  color: #eaf2ff;
  background: rgba(79, 115, 169, 0.46);
}
#slNotifyCenter .nc-link {
  color: #e9f2ff;
  font-size: 10px;
  text-decoration: none;
  border: 1px solid rgba(127, 160, 214, 0.6);
  background: linear-gradient(180deg, rgba(62, 97, 151, 0.76) 0%, rgba(45, 75, 121, 0.76) 100%);
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 700;
}
#slNotifyCenter .nc-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#slNotifyCenter .nc-mini {
  color: #d8e8ff;
  font-size: 10px;
  border: 1px solid rgba(120, 152, 204, 0.58);
  background: rgba(39, 64, 101, 0.72);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  font-weight: 700;
}
#slNotifyCenter .nc-mini:hover,
#slNotifyCenter .nc-link:hover {
  filter: brightness(1.08);
}
#slNotifyCenter .nc-empty {
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
  color: #b7c9e5;
  padding: 12px 10px;
}
#slNotifyCenter .nc-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(116, 151, 206, 0.56);
  background: linear-gradient(180deg, rgba(41, 67, 106, 0.86), rgba(30, 50, 80, 0.86));
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 14px rgba(4, 9, 17, 0.3);
  animation: ncEmptyFloat 2.4s ease-in-out infinite;
}
#slNotifyCenter .nc-empty-title {
  font-size: 14px;
  color: #eef5ff;
  font-weight: 700;
}
#slNotifyCenter .nc-empty-text {
  font-size: 12px;
  color: #aec3e2;
}
@keyframes ncEmptyFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
#slNotifyCenter .nc-item[style*="--nc-accent"] .nc-link { border-color: var(--nc-accent); }
#slNotifyCenter .nc-item[style*="--nc-accent"] .nc-mini { border-color: var(--nc-accent); }

#slNotifyOptIn {
  position: fixed; inset: 0; z-index: 680; display: none;
}
#slNotifyOptIn.open { display: block; }
#slNotifyOptIn .sl-optin-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 14, 0.58); }
#slNotifyOptIn .sl-optin-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(430px, calc(100vw - 26px)); border-radius: 16px; border: 1px solid #496a9e;
  background: linear-gradient(180deg, #1b2e4b 0%, #14253d 100%); box-shadow: 0 20px 40px rgba(2, 9, 16, 0.64);
  padding: 16px;
}
#slNotifyOptIn h3 { margin: 0 0 7px; font-size: 20px; color: #f2f7ff; }
#slNotifyOptIn p { margin: 0; color: #c2d7f6; line-height: 1.45; }
#slNotifyOptIn .sl-optin-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
#slNotifyOptIn .sl-optin-actions button {
  border-radius: 10px; border: 1px solid #48699d; background: #173054; color: #d8eaff;
  height: 36px; padding: 0 12px; font-weight: 700; cursor: pointer;
}
#slNotifyOptIn .sl-optin-actions .primary { background: linear-gradient(180deg, #3f76cb, #2f5ea8); border-color: #5e8cd8; }

@media (max-width: 900px) {
  #slNotifyCenter {
    margin-top: 7px;
    width: min(318px, calc(100vw - 24px));
    max-height: min(58vh, 500px);
  }
  #slNotifyToast {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: calc(var(--mobile-nav-h) + 10px);
  }
  #slNotifyCenter .nc-head {
    padding: 10px 10px 9px;
    gap: 6px 8px;
  }
  #slNotifyCenter .nc-head-actions {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }
  #slNotifyCenter .nc-head strong {
    font-size: 13px;
  }
  #slNotifyCenter .nc-head button {
    height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }
  #slNotifyCenter .nc-list {
    padding: 9px;
    min-height: 130px;
  }
  #slNotifyCenter .nc-title {
    font-size: 14px;
  }
  #slNotifyCenter .nc-body {
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .install-app-btn,
  .notify-btn {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .actions a,
  .install-app-btn,
  .notify-btn {
    padding: 7px 9px;
    font-size: 11px;
    border-radius: 9px;
  }
  .notify-btn.notify-btn-icon span {
    display: none;
  }
  .notify-btn.notify-btn-icon {
    width: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 10px;
  }
}

.drawer {
  position: fixed;
  top: 0;
  left: -330px;
  width: 310px;
  height: 100%;
  background: #111722;
  border-right: 1px solid #2f3b4f;
  z-index: 360;
  transition: left 0.24s ease;
  padding: 14px;
  overflow-y: auto;
}

.drawer.open { left: 0; }

.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid #273043;
  font-weight: 700;
}

.drawer-logo-wordmark {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 230px;
}

.drawer-logo-fallback {
  display: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.drawer-search { margin-bottom: 12px; }

.drawer-search input {
  width: 100%;
  border: 1px solid #344057;
  background: #1a2332;
  color: #fff;
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 13px;
  outline: none;
}

.drawer-links { display: flex; flex-direction: column; gap: 8px; }

.drawer-links a {
  text-decoration: none;
  color: #d8deea;
  background: #1a2331;
  border: 1px solid #2e3a4f;
  border-radius: 9px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 320;
  display: none;
}

.overlay.show { display: block; }

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% -10%, #24324a 0%, #0b1018 58%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.app-splash.is-visible {
  opacity: 1;
  visibility: visible;
}

.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.app-splash-card {
  border: 1px solid #334763;
  background: #131e30;
  border-radius: 16px;
  padding: 18px 20px 16px;
  width: min(320px, 86vw);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.app-splash-card img {
  height: 34px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.app-splash-fallback {
  display: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.app-splash-fallback strong { color: var(--accent); }

.app-splash-loader {
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: #253145;
  overflow: hidden;
  position: relative;
}

.app-splash-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(90deg, #ff3d3d 0%, #ff6a6a 100%);
  border-radius: 999px;
  animation: splashBar 1.05s linear infinite;
}

@keyframes splashBar {
  from { transform: translateX(-100%); }
  to { transform: translateX(220%); }
}

.layout {
  max-width: 1450px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 16px) 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
  gap: 18px;
}

.player-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.player-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-js { width: 100%; height: 100%; }
.video-js .vjs-tech { object-fit: contain; }
.page-index .video-js .vjs-big-play-button { display: none !important; }

.meta {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.meta-title h1 { font-size: 20px; margin-bottom: 5px; }
.meta-title p { color: var(--muted); font-size: 13px; }

.live-pill,
.vod-pill {
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.live-pill {
  background: rgba(255, 45, 45, 0.2);
  border: 1px solid rgba(255, 45, 45, 0.6);
}

.vod-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sidebar {
  max-height: calc(100vh - var(--header-h) - 30px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #3a465d transparent;
}

.item-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1f28 0%, #161b24 100%);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 11px;
  padding: 9px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  transition: 0.2s ease;
}

.item-card:hover { border-color: #3f4b60; background: #1c2230; }
.item-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 45, 45, 0.35); }

.player-panel.is-loading .player-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1a2231 20%, #263247 38%, #1a2231 56%);
  background-size: 220% 100%;
  animation: slShimmer 1.25s linear infinite;
}

.player-panel.is-loading .meta-title h1,
.player-panel.is-loading .meta-title p {
  color: transparent !important;
  border-radius: 6px;
  background: linear-gradient(120deg, #1d2636 20%, #2a374d 38%, #1d2636 56%);
  background-size: 220% 100%;
  animation: slShimmer 1.25s linear infinite;
}

.player-panel.is-loading .meta-title h1 {
  min-height: 22px;
}

.player-panel.is-loading .meta-title p {
  min-height: 14px;
}

.player-panel.is-loading .live-pill,
.player-panel.is-loading .vod-pill {
  visibility: hidden;
}

.item-card.skeleton-card {
  pointer-events: none;
}

.item-card.skeleton-card .thumb {
  background: linear-gradient(120deg, #2a3448 20%, #394961 38%, #2a3448 56%);
  background-size: 220% 100%;
  animation: slShimmer 1.25s linear infinite;
}

.item-card.skeleton-card .thumb::after,
.item-card.skeleton-card .badge {
  display: none;
}

.item-card.skeleton-card .info {
  justify-content: center;
  gap: 9px;
}

.item-card.skeleton-card .sk-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #2a3448 20%, #394961 38%, #2a3448 56%);
  background-size: 220% 100%;
  animation: slShimmer 1.25s linear infinite;
}

.item-card.skeleton-card .sk-title {
  width: 74%;
  height: 14px;
}

.item-card.skeleton-card .sk-sub {
  width: 58%;
}

@keyframes slShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.thumb {
  position: relative;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b4556 0%, #242b39 70%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
}

.badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 6px;
  z-index: 2;
}

.badge.live { background: var(--accent); }
.badge.offline {
  background: #5a6476;
  color: #e8edf6;
}
.badge.vod { background: #111; border: 1px solid #b8c2d1; }

.item-card.unavailable {
  border-color: #4a5568;
  opacity: 0.88;
}

.info { display: flex; flex-direction: column; justify-content: center; }
.title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
.sub.sub-line {
  margin-bottom: 4px;
}

.metrics-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid #3e4f6c;
  background: #1a2435;
  color: #d2deef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.status-badge {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.status-popover {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 34px;
  z-index: 4;
  border: 1px solid #576a8c;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 31, 47, 0.96) 0%, rgba(15, 24, 38, 0.98) 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
  padding: 8px;
}

.status-popover strong {
  display: block;
  font-size: 11px;
  color: #f2f6ff;
  margin-bottom: 4px;
}

.status-popover p {
  margin: 0;
  font-size: 11px;
  color: #c2cfe4;
  line-height: 1.35;
}

.comment-target-pulse {
  border-color: rgba(255, 212, 58, 0.9) !important;
  box-shadow: 0 0 0 1px rgba(255, 212, 58, 0.5), 0 12px 24px rgba(16, 21, 30, 0.42) !important;
  animation: slCommentTargetPulse 2.8s ease-out 1;
}

@keyframes slCommentTargetPulse {
  0% {
    background-color: rgba(255, 212, 58, 0.24);
  }
  100% {
    background-color: transparent;
  }
}

.live-warning {
  margin-top: 8px;
  color: #ff8f8f;
  font-size: 11px;
  line-height: 1.35;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #465571 0%, #36445d 100%);
  border-radius: 999px;
}

.site-footer { height: 0; }
.bottom-nav { display: none; }

@media (max-width: 1024px) {
  :root { --header-h: 56px; }
  .actions { display: none; }
  .logo-wordmark { height: 28px; max-width: min(54vw, 220px); }
  .logo-wordmark-desktop { display: none; }
  .logo-wordmark-mobile { display: block; }
  .logo-wrap.no-mobile-logo .logo-fallback { display: inline-flex; }
  .logo-wrap.no-mobile-logo .logo-wordmark-mobile { display: none; }
  .logo-wrap:not(.no-mobile-logo) .logo-fallback { display: none; }
  .drawer-logo-wordmark { height: 26px; max-width: 190px; }
  .layout { display: block; max-width: none; margin: 0; padding: 0; }
  .player-panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 170;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .player-wrap { width: 100vw; aspect-ratio: 16 / 9; }
  .page-index .video-js .vjs-tech,
  .page-kazalar .video-js .vjs-tech { object-fit: cover !important; }
  .meta { display: none; }
  .sidebar { max-height: none; gap: 10px; }
  .item-card { grid-template-columns: 128px 1fr; border-radius: 10px; }
  .drawer { width: 86vw; left: -90vw; }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 3000;
    height: calc(52px + env(safe-area-inset-bottom));
    padding: 4px max(8px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 18, 0.96);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    transform: translate3d(0, 0, 0);
  }

  /* Drawer açıkken mobil bottom-nav menü drawer'ın altında kalmamalı */
  html.drawer-open-lock .bottom-nav,
  body.drawer-open-lock .bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 120%, 0);
  }

  .bottom-link {
    text-decoration: none;
    color: #d7dde8;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: color .16s ease, transform .16s ease;
    min-width: 0;
    padding: 2px 0;
  }

  .bottom-link svg { width: 20px; height: 20px; fill: currentColor; }
  .bottom-link.center svg { width: 20px; height: 20px; }
  .bottom-link.active {
    color: #ffffff;
    transform: translateY(-1px);
  }
  .bottom-link.center { font-weight: 600; }

  .bottom-link span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.05;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0;
    opacity: .92;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* Desktop stabilizer */
@media (min-width: 769px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
    max-width: 1450px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 16px) 16px 16px;
  }

  .player-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .meta { display: flex; }

  .actions { display: none; }

  .bottom-nav { display: none !important; }

  .page-index .sidebar {
    margin-top: 0;
    padding: 8px 0 0;
  }

  .page-kazalar .list-panel {
    margin-top: 0;
  }

  .page-kazalar .filter-bar {
    position: static;
    border-radius: 10px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    margin-bottom: 10px;
    height: auto;
  }
}



/* Hard desktop lock */
body.desktop-mode .layout {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr) !important;
  max-width: 1450px !important;
  margin: 0 auto !important;
  padding: calc(var(--header-h) + 16px) 16px 16px !important;
}

body.desktop-mode .player-panel {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  border-radius: 14px !important;
  border-left: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
}

body.desktop-mode .meta { display: flex !important; }
body.desktop-mode .actions { display: none !important; }
body.desktop-mode .bottom-nav { display: none !important; }
body.desktop-mode .list-panel { margin-top: 0 !important; }
body.desktop-mode .filter-bar {
  position: static !important;
  height: auto !important;
  border-radius: 10px !important;
  border-left: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
  margin-bottom: 10px !important;
}
body.desktop-mode .sidebar {
  margin-top: 0 !important;
  max-height: none !important;
  height: 100% !important;
}

/* Explicit desktop grid mapping */
@media (min-width: 1025px) {
  .layout {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr) !important;
    grid-template-areas: "content sidebar";
    align-items: stretch;
    justify-content: center;
  }

  .layout > .player-panel {
    grid-area: content !important;
    min-width: 0;
  }

  .layout > .sidebar,
  .layout > .list-panel {
    grid-area: sidebar !important;
    min-width: 0;
  }

  .layout > .sidebar {
    max-height: none !important;
    height: 100% !important;
  }
}

.drawer-section {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #2d384d;
  border-radius: 10px;
  background: #161f2c;
}

.drawer-title {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #bfc9d8;
  margin-bottom: 8px;
}

.drawer-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #e6ecf7;
  border: 1px solid #3a465d;
  background: #1d2736;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.drawer-note {
  margin-top: 12px;
  color: #9ca7ba;
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid #263041;
  padding-top: 10px;
}

.sl-live-comment-alert {
  position: fixed;
  right: 12px;
  bottom: calc(var(--mobile-nav-h) + 10px);
  z-index: 410;
  border: 1px solid rgba(255, 206, 58, 0.76);
  background: linear-gradient(180deg, rgba(54, 44, 18, 0.96) 0%, rgba(33, 27, 10, 0.98) 100%);
  color: #fff6cf;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.16s ease, transform 0.18s ease;
  pointer-events: none;
}

.sl-live-comment-alert::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ffd23f;
  box-shadow: 0 0 0 0 rgba(255, 210, 63, 0.75);
  vertical-align: 1px;
}

.sl-live-comment-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-live-comment-alert.is-blink {
  animation: slCommentBlink 0.65s steps(2, start) 5;
}

/* Premium Front Header + Drawer */
.topbar {
  background:
    radial-gradient(620px 220px at 0% -20%, rgba(74, 119, 196, 0.22), transparent 58%),
    radial-gradient(520px 240px at 100% 0%, rgba(198, 75, 116, 0.14), transparent 56%),
    rgba(10, 14, 21, 0.92);
  box-shadow: 0 10px 24px rgba(1, 6, 14, 0.35);
}

body.mobile-mode .actions { display: none !important; }

.hamburger {
  border: 1px solid #3f5a84;
  background: linear-gradient(180deg, #1c2b42 0%, #152336 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.2);
  position: relative;
}

.hamburger.has-unread {
  border-color: #3f5a84;
}

.hamburger[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffd5d5;
  background: linear-gradient(180deg, #ff5e5e 0%, #de3232 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.32);
}

html.drawer-open-lock,
body.drawer-open-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  background: #0b1018;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.logo-emblem {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 999px;
  border: 1px solid #4f6f9a;
  background: #152339;
  box-shadow: 0 8px 20px rgba(2, 8, 16, 0.35);
}

.actions a,
.install-app-btn {
  border-radius: 12px;
  border-color: #334965;
  background: linear-gradient(180deg, #24344d 0%, #1a2739 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.actions a.active {
  border-color: #ff4646;
  box-shadow: inset 0 0 0 1px rgba(255, 70, 70, 0.25);
}

.drawer {
  width: 330px;
  left: -350px;
  border-right: 1px solid #3b5377;
  background:
    radial-gradient(560px 320px at -20% -12%, rgba(88, 136, 216, 0.32), transparent 58%),
    radial-gradient(420px 260px at 110% 14%, rgba(201, 84, 123, 0.2), transparent 62%),
    linear-gradient(180deg, #132036 0%, #0f1a2b 100%);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  padding: 16px 14px 18px;
}

.drawer-head {
  border: 1px solid #39567d;
  border-radius: 13px;
  padding: 10px 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: linear-gradient(180deg, #1a2e4b 0%, #14253d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.drawer-brand-left {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.drawer-brand-top {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.drawer-brand-caption {
  display: block;
  font-size: 11px;
  color: #a7c0e6;
  line-height: 1.35;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-close-link {
  flex: 0 0 auto;
  height: 32px;
  border-radius: 9px;
  border: 1px solid #5279ad;
  background: linear-gradient(180deg, #25456f 0%, #1d365a 100%);
  color: #dceafd;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.drawer-close-link:hover {
  border-color: #6f98ce;
  background: linear-gradient(180deg, #264773 0%, #1c3a62 100%);
  transform: translateY(-1px);
}

.drawer-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3f5a80;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(21, 35, 56, 0.86);
  color: #dce8fa;
  font-size: 12px;
  font-weight: 700;
}

.drawer-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4d9cff;
  box-shadow: 0 0 0 5px rgba(77, 156, 255, 0.2);
}

.drawer-profile {
  margin: 6px 0 12px;
  border: 1px solid #3f5d86;
  border-radius: 13px;
  padding: 11px;
  background: linear-gradient(180deg, #213451 0%, #17283f 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.drawer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #eaf2ff;
  border: 1px solid #4e6fa1;
  background: linear-gradient(180deg, #2d4f82 0%, #23406a 100%);
}

.drawer-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-profile-meta strong {
  font-size: 13px;
  line-height: 1.2;
  color: #eff5ff;
}

.drawer-profile-meta span {
  font-size: 11px;
  color: #9eb6dc;
}

.drawer-search input {
  border-color: #4c6f9d;
  background: #162a45;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-color: #42618c;
  border-radius: 12px;
  background: linear-gradient(180deg, #223551 0%, #1a2a42 100%);
  transform: translateY(0);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.drawer-link-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8fb6f0;
  box-shadow: 0 0 0 4px rgba(143, 182, 240, 0.16);
  flex: 0 0 auto;
}

.drawer-link-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #5c7dac;
  background: #213856;
  color: #e6f0ff;
  flex: 0 0 auto;
}
.drawer-link-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.drawer-links a:hover {
  border-color: #6b93c7;
  color: #f3f8ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.drawer-links a.active {
  border-color: #ff4a4a;
  background: linear-gradient(180deg, #263a58 0%, #1b2d46 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 74, 74, 0.3), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.drawer-links a.active .drawer-link-dot {
  background: #ff4a4a;
  box-shadow: 0 0 0 4px rgba(255, 74, 74, 0.18);
}
.drawer-links a.active .drawer-link-icon {
  border-color: #ff7c7c;
  background: #4a2230;
  color: #ffe9e9;
}

.actions a,
.install-app-btn,
.hamburger {
  transition: transform .15s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.actions a:hover,
.install-app-btn:hover,
.hamburger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.actions a:active,
.install-app-btn:active,
.hamburger:active {
  transform: translateY(0);
}

.drawer-section {
  border-color: #47658f;
  background: linear-gradient(180deg, #20324d 0%, #17273f 100%);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.drawer-chip {
  border-color: #4d709d;
  background: #1d314e;
}

.drawer-note {
  border-top-color: #3a5577;
  color: #adc2e4;
  margin-top: 14px;
  padding-top: 12px;
}

.drawer-cta-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.drawer-install-premium {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #5b81b7;
  background: linear-gradient(180deg, #2a4f84 0%, #1e3b63 100%);
  color: #eff6ff;
  font-weight: 700;
  letter-spacing: .2px;
}

.drawer-notify-premium {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #4f78ad;
  background: linear-gradient(180deg, #243b5e 0%, #1b2e49 100%);
  color: #e4efff;
  font-weight: 700;
  letter-spacing: .15px;
}

/* Drawer v4: radmin sol menü görsel dili */
.drawer {
  width: 332px;
  left: -352px;
  padding: 12px 10px 14px;
  border-right: 1px solid #2f435f;
  background: linear-gradient(180deg, #121e32 0%, #0f1a2c 100%);
  box-shadow: 20px 0 44px rgba(0, 0, 0, 0.42);
}

.drawer-head {
  border: 1px solid #324761;
  border-radius: 12px;
  padding: 9px 9px;
  margin-bottom: 10px;
  background: #1a2a42;
  box-shadow: none;
}

.drawer-brand-left {
  gap: 2px;
}

.drawer-brand-caption {
  display: none;
}

.drawer-close-link {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #436bb2;
  background: linear-gradient(180deg, #2f5a97 0%, #224674 100%);
  color: #f3f8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 16px rgba(7, 18, 33, 0.28);
}

.drawer-close-link:hover {
  border-color: #5e88d1;
  background: linear-gradient(180deg, #3765a8 0%, #295282 100%);
}

.drawer-close-link svg {
  width: 16px;
  height: 16px;
}

.drawer-profile {
  margin: 0 0 10px;
  border: 1px solid #32415a;
  border-radius: 12px;
  padding: 10px;
  background: #1a2a42;
}

.drawer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #425a80;
  background: #24364f;
  font-size: 11px;
}

.drawer-profile-meta strong {
  font-size: 13px;
  color: #edf4ff;
}

.drawer-profile-meta span {
  font-size: 11px;
  color: #a1b8db;
}

.drawer-search {
  margin: 0 0 10px;
}

.drawer-search input {
  height: 42px;
  border-radius: 11px;
  border: 1px solid #3a5377;
  background: #162841;
  color: #e8f2ff;
}

.drawer-nav-title {
  color: #c3d0e6;
  font-size: 11px;
  letter-spacing: .45px;
  text-transform: uppercase;
  margin: 10px 6px 7px;
  font-weight: 700;
}

.drawer-section {
  border: 1px solid #324761;
  border-radius: 12px;
  background: linear-gradient(180deg, #1c2f4a 0%, #17283f 100%);
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.drawer-title {
  color: #dce8fb;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.drawer-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.drawer-chip {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid #3f5b83;
  background: linear-gradient(180deg, #244066 0%, #1c3150 100%);
  color: #e7f1ff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.drawer-chip:hover {
  background: linear-gradient(180deg, #2d4a74 0%, #223a5e 100%);
  border-color: #5d84be;
  transform: translateY(-1px);
}

.drawer-links {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid #355075;
  background: linear-gradient(180deg, #223551 0%, #1a2a42 100%);
  color: #e2ecfb;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.drawer-links a:hover {
  background: linear-gradient(180deg, #294062 0%, #213753 100%);
  border-color: #5a81b9;
  color: #f3f8ff;
  transform: translateY(-1px);
}

.drawer-links a.active {
  background: linear-gradient(180deg, #2e4870 0%, #273f64 100%);
  border-color: #5f88c7;
  color: #f2f7ff;
  box-shadow: inset 0 0 0 1px rgba(95, 136, 199, 0.3), 0 10px 18px rgba(6, 14, 26, 0.28);
}

.drawer-link-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #5d82b7;
  background: linear-gradient(180deg, #345584 0%, #284367 100%);
  color: #f2f7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.drawer-links a.active .drawer-link-icon {
  border-color: #8fb4f1;
  background: linear-gradient(180deg, #3e6396 0%, #2f4f7a 100%);
  color: #ffffff;
}

.drawer-link-icon svg {
  width: 18px;
  height: 18px;
  transition: transform .15s ease;
}

.drawer-links a:hover .drawer-link-icon svg {
  transform: translateX(1px);
}

.drawer-link-dot {
  display: none;
}

.drawer-link-rail {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #5f86c4 0%, #4169b5 100%);
  opacity: 0;
  transition: opacity .15s ease;
}

.drawer-links a.active .drawer-link-rail {
  opacity: 1;
}

.drawer-link-hint {
  margin-left: auto;
  font-size: 11px;
  color: #9bb4d8;
  font-weight: 600;
}

.drawer-link-badge {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #4f78b3;
  background: linear-gradient(180deg, #2f548a 0%, #24446f 100%);
  color: #ebf4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.drawer-note {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: #9fb6d8;
  font-size: 12px;
}

.drawer-actions-card {
  border: 1px solid #324761;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a2a42 0%, #152439 100%);
  padding: 10px;
}

.drawer-cta-row {
  gap: 8px;
  margin-top: 8px;
}

.drawer-install-premium,
.drawer-notify-premium {
  min-height: 42px;
  border-radius: 11px;
  font-size: 14px;
  letter-spacing: 0;
}

.drawer-install-premium {
  border: 1px solid #4d77ba;
  background: linear-gradient(180deg, #315e9c 0%, #234a7c 100%);
  box-shadow: 0 8px 16px rgba(13, 29, 54, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.drawer-notify-premium {
  border: 1px solid #3b5d8d;
  background: linear-gradient(180deg, #223a5c 0%, #1a2e48 100%);
  color: #cfe0fa;
}

.drawer-notify-premium svg {
  opacity: .9;
}

@media (max-width: 900px) {
  .drawer {
    width: min(90vw, 332px);
  }
  .drawer-head {
    gap: 8px;
  }
  .drawer-brand-caption {
    max-width: 145px;
  }
  .drawer-close-link {
    width: 32px;
    height: 32px;
    padding: 0;
  }
  .logo-emblem {
    width: 24px;
    height: 24px;
  }
  .drawer-chip-row {
    grid-template-columns: 1fr;
  }
  .drawer-link-hint {
    display: none;
  }
}

/* Drawer vNext: editorial + premium */
.drawer.drawer-vnext {
  overflow: hidden;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-vnext .drawer-head {
  margin-bottom: 0;
}

.drawer-vnext .drawer-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.drawer-vnext .drawer-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.drawer-vnext .drawer-nav-title {
  margin: 10px 6px 8px;
  color: #b9cae6;
  letter-spacing: .5px;
}

.drawer-vnext .drawer-section {
  padding: 9px;
  border-color: #344b6b;
}

.drawer-vnext .drawer-title {
  font-size: 12px;
  font-weight: 700;
  color: #9fb6db;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.drawer-vnext .drawer-chip-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.drawer-vnext .drawer-chip {
  justify-content: flex-start;
  gap: 8px;
  padding: 0 11px;
  min-height: 42px;
  border-radius: 12px;
  border-color: #3f5e8c;
  background: linear-gradient(180deg, #27456f 0%, #1f385c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.drawer-vnext .drawer-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9bc5ff;
  box-shadow: 0 0 0 4px rgba(131, 176, 245, 0.2);
  flex: 0 0 auto;
}

.drawer-vnext .drawer-links {
  gap: 8px;
  margin-bottom: 4px;
}

.drawer-vnext .drawer-links a {
  min-height: 46px;
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
  border-color: #3a577f;
  background: linear-gradient(180deg, #223754 0%, #1b2d46 100%);
  gap: 11px;
}

.drawer-vnext .drawer-links a:hover {
  border-color: #6792cf;
  background: linear-gradient(180deg, #2a456a 0%, #223a5c 100%);
  box-shadow: 0 10px 18px rgba(7, 20, 38, 0.28);
}

.drawer-vnext .drawer-links a.active {
  border-color: #7ca7ea;
  background: linear-gradient(180deg, #314f7a 0%, #264267 100%);
}

.drawer-vnext .drawer-link-rail {
  left: -1px;
  width: 4px;
  top: 7px;
  bottom: 7px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #9cc2ff 0%, #5f89d1 100%);
}

.drawer-vnext .drawer-link-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border-color: #6a93d0;
  background: linear-gradient(180deg, #3b6194 0%, #2b4971 100%);
}

.drawer-vnext .drawer-link-icon svg {
  width: 18px;
  height: 18px;
}

.drawer-vnext .drawer-link-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 3px 8px;
  border-color: #7aa4e4;
  background: linear-gradient(180deg, #4167a0 0%, #315584 100%);
}

.drawer-vnext .drawer-link-chevron {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: #8eaed9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

.drawer-vnext .drawer-link-chevron svg {
  width: 16px;
  height: 16px;
  display: block;
}

.drawer-vnext .drawer-links a:hover .drawer-link-chevron,
.drawer-vnext .drawer-links a.active .drawer-link-chevron {
  color: #d2e4ff;
}

.drawer-vnext .drawer-actions-sticky {
  margin-top: auto;
  border-color: #3a5881;
  background: linear-gradient(180deg, #1d314e 0%, #182a42 100%);
  box-shadow: 0 -12px 22px rgba(7, 15, 28, 0.24);
}

.drawer-vnext .drawer-note {
  color: #b0c4e4;
  line-height: 1.45;
}

.drawer-vnext .drawer-install-premium {
  min-height: 44px;
  border-radius: 12px;
}

.drawer-vnext .drawer-notify-premium {
  min-height: 44px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .drawer.drawer-vnext {
    padding: 10px 8px 8px;
  }
  .drawer-vnext .drawer-chip-row {
    grid-template-columns: 1fr;
  }
  .drawer-vnext .drawer-links a {
    min-height: 44px;
  }
}

/* Drawer vNext Radmin Sync: radmin sol menü 1:1 görsel dili */
.drawer.drawer-vnext {
  padding: 12px;
  background: linear-gradient(180deg, #162234, #131b28);
  border-right: 1px solid #2f4059;
  box-shadow: 0 20px 44px rgba(7, 13, 22, 0.46);
  gap: 12px;
}

.drawer-vnext .drawer-head {
  background: #1a2434;
  border: 1px solid #32415a;
  border-radius: 12px;
  padding: 10px;
  margin: 0;
  box-shadow: none;
}

.drawer-vnext .drawer-close-link {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #40597c;
  background: #243147;
  color: #dbe7fa;
  box-shadow: none;
}

.drawer-vnext .drawer-close-link:hover {
  background: #2a3c57;
  border-color: #5c80bd;
}

.drawer-vnext .drawer-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a2434;
  border: 1px solid #32415a;
  border-radius: 12px;
  padding: 10px;
  margin: 0 0 12px;
}

.drawer-vnext .drawer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a4861, #2b374c);
  border: 0;
  color: #dbe6f8;
  font-size: 12px;
  font-weight: 700;
}

.drawer-vnext .drawer-profile-meta strong {
  display: block;
  line-height: 1.25;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #eef5ff;
}

.drawer-vnext .drawer-profile-meta span {
  color: #9fb0ca;
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.3;
}

.drawer-vnext .drawer-search {
  margin: 0 0 12px;
}

.drawer-vnext .drawer-search input {
  height: 41px;
  border-radius: 11px;
  border: 1px solid #344057;
  background: #1a2332;
  color: #eef5ff;
}

.drawer-vnext .drawer-nav-title,
.drawer-vnext .drawer-title {
  color: #c3d0e6;
  font-size: 12px;
  letter-spacing: .45px;
  text-transform: uppercase;
  margin: 14px 6px 8px;
  font-weight: 600;
}

.drawer-vnext .drawer-section {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 2px;
  box-shadow: none;
}

.drawer-vnext .drawer-title {
  margin-top: 0;
}

.drawer-vnext .drawer-chip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.drawer-vnext .drawer-chip,
.drawer-vnext .drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid transparent;
  color: #d6e2f6;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.drawer-vnext .drawer-chip::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #243147;
  border: 1px solid #354966;
  box-shadow: none;
  flex: 0 0 auto;
}

.drawer-vnext .drawer-chip:hover,
.drawer-vnext .drawer-links a:hover {
  background: #1a2434;
  border-color: #33445f;
  transform: none;
}

.drawer-vnext .drawer-links a.active {
  background: rgba(65, 105, 181, 0.22);
  border-color: #4169b5;
  color: #f2f7ff;
  box-shadow: none;
}

.drawer-vnext .drawer-link-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #243147;
  border: 0;
  color: #b7c7e6;
  box-shadow: none;
}

.drawer-vnext .drawer-link-icon svg {
  width: 16px;
  height: 16px;
}

.drawer-vnext .drawer-links a.active .drawer-link-icon {
  background: #2d4263;
  color: #dcebff;
  border: 0;
}

.drawer-vnext .drawer-link-rail,
.drawer-vnext .drawer-link-dot,
.drawer-vnext .drawer-link-hint,
.drawer-vnext .drawer-link-badge,
.drawer-vnext .drawer-link-chevron,
.drawer-vnext .drawer-brand-caption {
  display: none !important;
}

.drawer-vnext .drawer-actions-sticky {
  margin-top: auto;
  border: 1px solid #32415a;
  background: #1a2434;
  border-radius: 12px;
  box-shadow: none;
}

.drawer-vnext .drawer-note {
  color: #9fb0ca;
  font-size: 12px;
  border: 0;
  padding: 0;
  margin: 0;
}

.drawer-vnext .drawer-cta-row {
  margin-top: 10px;
  gap: 8px;
}

.drawer-vnext .drawer-install-premium,
.drawer-vnext .drawer-notify-premium {
  min-height: 42px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.drawer-vnext .drawer-install-premium {
  background: linear-gradient(180deg, #2f6fe0, #2a5fc7);
  border: 1px solid #3a74d6;
  color: #ffffff;
}

.drawer-vnext .drawer-notify-premium {
  background: linear-gradient(180deg, #24426c, #1e3555);
  border: 1px solid #365170;
  color: #d6e2f6;
}

/* Drawer Front polish */
.drawer-front .drawer-head {
  margin-bottom: 10px;
  position: relative;
}

.drawer-front .drawer-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drawer-front .drawer-head-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #436bb2;
  background: linear-gradient(180deg, #2f5a97 0%, #224674 100%);
  color: #f3f8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(7, 18, 33, 0.28);
}

.drawer-front .drawer-head-action:hover {
  border-color: #5e88d1;
  background: linear-gradient(180deg, #3765a8 0%, #295282 100%);
}

.drawer-front .drawer-notify-top svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  color: currentColor;
  transition: color .18s ease;
}

.drawer-front .drawer-notify-top svg path {
  fill: currentColor;
}

.drawer-front .drawer-notify-top.has-unread {
  color: #f7c84d;
}

.drawer-front .drawer-notify-top:not(.has-unread) {
  color: #f3f8ff;
}

.drawer-front .drawer-notify-top[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  padding: 0 4px;
  background: #e53935;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-front .drawer-close-link svg {
  width: 16px;
  height: 16px;
}

.drawer-front #slNotifyCenter {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  margin-top: 0;
  width: min(336px, calc(100vw - 24px));
  max-height: min(64vh, 600px);
  z-index: 32;
}

@media (max-width: 600px) {
  .drawer-front #slNotifyCenter {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(318px, calc(100vw - 20px));
    max-height: min(60vh, 500px);
  }
}

/* Notification panel v3: compact list popover (facebook-like) */
.drawer-front #slNotifyCenter {
  width: min(320px, calc(100vw - 18px));
  max-height: min(70vh, 620px);
  border-radius: 14px;
  border: 1px solid rgba(122, 148, 190, 0.38);
  background: linear-gradient(180deg, rgba(15, 28, 48, 0.98) 0%, rgba(11, 21, 36, 0.98) 100%);
  box-shadow: 0 20px 34px rgba(3, 8, 16, 0.56);
}

#slNotifyCenter .nc-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 9px;
  border-bottom: 1px solid rgba(98, 126, 171, 0.42);
  background: linear-gradient(180deg, rgba(26, 45, 74, 0.92), rgba(19, 34, 56, 0.92));
  backdrop-filter: blur(8px);
}

#slNotifyCenter .nc-head strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14px;
}

#slNotifyCenter .nc-live-state {
  margin-left: auto;
  font-size: 9px;
  padding: 2px 7px;
}

#slNotifyCenter .nc-head-actions {
  margin-left: 0;
  gap: 5px;
}

#slNotifyCenter .nc-head button {
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10px;
  border: 1px solid rgba(120, 152, 203, 0.48);
  background: linear-gradient(180deg, rgba(47, 77, 122, 0.72), rgba(33, 58, 94, 0.72));
}

#slNotifyCenter .nc-list {
  padding: 6px;
  min-height: 120px;
  max-height: min(58vh, 520px);
}

#slNotifyCenter .nc-item {
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 7px;
  box-shadow: none;
}

#slNotifyCenter .nc-item + .nc-item {
  margin-top: 2px;
}

#slNotifyCenter .nc-item:hover {
  background: rgba(54, 84, 128, 0.22);
  transform: none;
  box-shadow: none;
}

#slNotifyCenter .nc-item.is-unread {
  background: rgba(64, 98, 149, 0.26);
  border: 1px solid rgba(126, 162, 221, 0.42);
}

#slNotifyCenter .nc-item.is-unread::before {
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
}

#slNotifyCenter .nc-item-grid {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
}

#slNotifyCenter .nc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(122, 153, 205, 0.62);
  background: linear-gradient(180deg, rgba(61, 96, 150, 0.92), rgba(45, 75, 118, 0.92));
  font-size: 12px;
}

#slNotifyCenter .nc-top {
  margin-bottom: 4px;
  gap: 4px;
}

#slNotifyCenter .nc-cat-badge {
  font-size: 9px;
  padding: 1px 7px;
}

#slNotifyCenter .nc-time {
  font-size: 9px;
  opacity: .92;
}

#slNotifyCenter .nc-state {
  font-size: 8px;
  padding: 1px 6px;
}

#slNotifyCenter .nc-title {
  font-size: 13px;
  line-height: 1.28;
}

#slNotifyCenter .nc-body {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

#slNotifyCenter .nc-meta {
  margin-top: 6px;
  justify-content: flex-start;
}

#slNotifyCenter .nc-meta-actions {
  margin-left: auto;
  gap: 5px;
}

#slNotifyCenter .nc-mini,
#slNotifyCenter .nc-link {
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 999px;
}

#slNotifyCenter .nc-empty {
  min-height: 170px;
  padding: 10px;
  gap: 7px;
}

#slNotifyCenter .nc-empty-icon {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

#slNotifyCenter .nc-empty-title {
  font-size: 13px;
}

#slNotifyCenter .nc-empty-text {
  font-size: 11px;
  opacity: .9;
}

@media (max-width: 600px) {
  .drawer-front #slNotifyCenter {
    width: min(304px, calc(100vw - 14px));
    right: 0;
  }
  #slNotifyCenter .nc-head-actions {
    gap: 4px;
  }
  #slNotifyCenter .nc-head button {
    height: 25px;
    padding: 0 8px;
    font-size: 9px;
  }
}

/* Notification panel v4: compact + consistent */
.drawer-front #slNotifyCenter {
  width: min(352px, calc(100vw - 16px));
  max-height: min(72vh, 640px);
  border-radius: 14px;
  border: 1px solid rgba(100, 128, 170, 0.48);
  background: linear-gradient(180deg, #13243b 0%, #0e1b2f 100%);
  box-shadow: 0 18px 36px rgba(4, 10, 19, 0.56);
}

#slNotifyCenter .nc-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(95, 124, 167, 0.46);
  background: linear-gradient(180deg, rgba(34, 56, 90, 0.6), rgba(21, 38, 62, 0.45));
}

#slNotifyCenter .nc-head-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#slNotifyCenter .nc-head strong {
  font-size: 13px;
  font-weight: 800;
}

#slNotifyCenter .nc-live-state {
  margin-left: 0;
  font-size: 9px;
  padding: 2px 7px;
}

#slNotifyCenter .nc-head-actions {
  margin-left: 0;
  justify-content: flex-end;
  gap: 5px;
}

#slNotifyCenter .nc-head button {
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 9px;
  border: 1px solid rgba(115, 147, 198, 0.52);
  background: linear-gradient(180deg, rgba(47, 78, 124, 0.78), rgba(34, 59, 94, 0.78));
}

#slNotifyCenter .nc-list {
  padding: 6px;
  max-height: min(60vh, 560px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#slNotifyCenter .nc-list::-webkit-scrollbar { display: none; }

#slNotifyCenter .nc-item {
  border: 1px solid rgba(96, 127, 174, 0.36);
  background: linear-gradient(180deg, rgba(34, 56, 89, 0.7), rgba(24, 42, 67, 0.72));
  border-radius: 10px;
  padding: 8px;
}

#slNotifyCenter .nc-item + .nc-item {
  margin-top: 6px;
}

#slNotifyCenter .nc-item-grid {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

#slNotifyCenter .nc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

#slNotifyCenter .nc-main {
  min-width: 0;
}

#slNotifyCenter .nc-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

#slNotifyCenter .nc-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#slNotifyCenter .nc-body {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#slNotifyCenter .nc-foot {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#slNotifyCenter .nc-cat-badge {
  font-size: 9px;
  padding: 1px 7px;
}

#slNotifyCenter .nc-time {
  margin-left: 0;
  font-size: 9px;
}

#slNotifyCenter .nc-state {
  margin-left: auto;
  font-size: 8px;
  padding: 1px 6px;
}

#slNotifyCenter .nc-meta {
  margin-top: 6px;
  justify-content: flex-end;
}

#slNotifyCenter .nc-mini,
#slNotifyCenter .nc-link {
  font-size: 9px;
  padding: 4px 8px;
}

#slNotifyCenter .nc-empty {
  min-height: 160px;
  padding: 10px;
}

#slNotifyCenter .nc-empty-icon {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

#slNotifyCenter .nc-empty-title {
  font-size: 13px;
}

#slNotifyCenter .nc-empty-text {
  font-size: 11px;
}

#slNotifyCenter .nc-feed-item { display: none; }

#slNotifyCenter .nc-footer {
  border-top: 1px solid rgba(95, 124, 167, 0.38);
  padding: 8px;
  background: linear-gradient(180deg, rgba(21, 37, 61, 0.56), rgba(15, 28, 47, 0.56));
}

#slNotifyCenter .nc-footer-btn {
  width: 100%;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(123, 155, 206, 0.56);
  background: linear-gradient(180deg, rgba(56, 90, 141, 0.86), rgba(40, 68, 108, 0.86));
  color: #e8f1ff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 600px) {
  .drawer-front #slNotifyCenter {
    width: min(312px, calc(100vw - 12px));
    right: 0;
  }

  #slNotifyCenter .nc-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #slNotifyCenter .nc-head-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Feed mode preview (compact single-line feed) */
#slNotifyCenter.is-layout-feed .nc-list {
  padding: 6px;
}

#slNotifyCenter.is-layout-feed .nc-item {
  display: none;
}

#slNotifyCenter.is-layout-feed .nc-feed-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(103, 133, 178, 0.34);
  background: linear-gradient(180deg, rgba(30, 50, 80, 0.64), rgba(22, 39, 62, 0.64));
  border-radius: 10px;
  padding: 7px;
}

#slNotifyCenter.is-layout-feed .nc-feed-item + .nc-feed-item {
  margin-top: 6px;
}

#slNotifyCenter.is-layout-feed .nc-feed-item.is-unread {
  border-color: rgba(133, 171, 228, 0.62);
  background: linear-gradient(180deg, rgba(42, 67, 103, 0.78), rgba(29, 50, 79, 0.78));
}

#slNotifyCenter.is-layout-feed .nc-feed-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(120, 154, 208, 0.62);
  background: linear-gradient(180deg, rgba(60, 94, 147, 0.92), rgba(45, 74, 117, 0.92));
  color: #eef6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

#slNotifyCenter.is-layout-feed .nc-feed-main {
  min-width: 0;
}

#slNotifyCenter.is-layout-feed .nc-feed-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

#slNotifyCenter.is-layout-feed .nc-feed-title {
  font-size: 12px;
  font-weight: 700;
  color: #f2f7ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#slNotifyCenter.is-layout-feed .nc-feed-time {
  margin-left: auto;
  font-size: 9px;
  color: #a9bfdf;
  white-space: nowrap;
}

#slNotifyCenter.is-layout-feed .nc-feed-body {
  margin-top: 2px;
  font-size: 10px;
  color: #c5d7f3;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#slNotifyCenter.is-layout-feed .nc-feed-foot {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#slNotifyCenter.is-layout-feed .nc-feed-cat,
#slNotifyCenter.is-layout-feed .nc-feed-state {
  font-size: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  border: 1px solid rgba(120, 152, 204, 0.62);
  color: #deebff;
  background: rgba(58, 87, 130, 0.42);
}

#slNotifyCenter.is-layout-feed .nc-feed-state.is-unread {
  border-color: rgba(151, 188, 241, 0.76);
  background: rgba(75, 114, 169, 0.5);
}

#slNotifyCenter.is-layout-feed .nc-feed-actions {
  display: grid;
  gap: 4px;
}

#slNotifyCenter.is-layout-feed .nc-feed-actions .nc-mini,
#slNotifyCenter.is-layout-feed .nc-feed-actions .nc-link {
  min-width: 52px;
  text-align: center;
  font-size: 9px;
  padding: 3px 7px;
}

/* Notification panel v5: card-only, clickable items, yellow unread glow */
#slNotifyCenter .nc-feed-item,
#slNotifyCenter .nc-avatar,
#slNotifyCenter .nc-item-grid,
#slNotifyCenter .nc-meta,
#slNotifyCenter .nc-meta-actions,
#slNotifyCenter .nc-mini,
#slNotifyCenter .nc-link {
  display: none !important;
}

#slNotifyCenter .nc-item {
  cursor: pointer;
  border: 1px solid rgba(101, 128, 166, 0.38);
  border-radius: 12px;
  padding: 10px 11px;
  background: linear-gradient(180deg, rgba(31, 52, 81, 0.72), rgba(24, 41, 65, 0.72));
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

#slNotifyCenter .nc-item:hover {
  border-color: rgba(129, 160, 205, 0.56);
  box-shadow: 0 8px 16px rgba(4, 10, 19, 0.32);
}

#slNotifyCenter .nc-item:focus-visible {
  outline: none;
  border-color: rgba(163, 190, 230, 0.82);
  box-shadow: 0 0 0 2px rgba(140, 178, 235, 0.3);
}

#slNotifyCenter .nc-main {
  min-width: 0;
}

#slNotifyCenter .nc-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

#slNotifyCenter .nc-title-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#slNotifyCenter .nc-new-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 97, 0.9);
  background: rgba(61, 46, 11, 0.42);
  position: relative;
  flex: 0 0 11px;
}

#slNotifyCenter .nc-new-dot::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ffd96b;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#slNotifyCenter .nc-line-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
}

#slNotifyCenter .nc-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#slNotifyCenter .nc-body {
  margin-top: 5px;
  font-size: 12px;
  color: #cadbf4;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#slNotifyCenter .nc-item.is-expanded .nc-body {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

#slNotifyCenter .nc-expand-toggle {
  display: none;
  width: 100%;
  margin-top: 7px;
  padding: 4px 0 0;
  border: 0;
  border-top: 1px solid rgba(106, 138, 184, 0.42);
  background: transparent;
  color: #a9c0e4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
}

#slNotifyCenter .nc-expand-toggle:hover {
  color: #d7e7ff;
  border-top-color: rgba(144, 180, 233, 0.68);
}

#slNotifyCenter .nc-item.is-expanded .nc-expand-toggle {
  color: #d7e7ff;
}

#slNotifyCenter .nc-item.is-unread .nc-body {
  font-weight: 700;
}

#slNotifyCenter .nc-item:not(.is-unread) .nc-body {
  font-weight: 400;
}

#slNotifyCenter .nc-foot {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#slNotifyCenter .nc-cat-badge {
  font-size: 9px;
  padding: 1px 7px;
}

#slNotifyCenter .nc-tags {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#slNotifyCenter .nc-time {
  font-size: 9px;
}

#slNotifyCenter .nc-state {
  margin-left: auto;
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 999px;
}

#slNotifyCenter .nc-state.is-unread {
  border-color: rgba(255, 212, 102, 0.9);
  color: #ffeec1;
  background: rgba(130, 101, 18, 0.35);
}

#slNotifyCenter .nc-item.is-unread {
  border-color: rgba(255, 211, 96, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 214, 106, 0.14) inset;
  background: linear-gradient(180deg, rgba(70, 61, 32, 0.46), rgba(37, 38, 28, 0.52));
}

#slNotifyCenter .nc-item.is-unread:hover {
  border-color: rgba(255, 219, 118, 0.86);
  box-shadow:
    0 0 0 1px rgba(255, 214, 106, 0.18) inset,
    0 8px 16px rgba(4, 10, 19, 0.32);
}

#slNotifyCenter .nc-item.is-unread::before {
  display: none !important;
}

#slNotifyCenter.flash-unread .nc-item.newest-unread {
  animation: ncUnreadGlow 1.7s ease;
}

@keyframes ncUnreadGlow {
  0% {
    box-shadow:
      0 0 0 1px rgba(255, 214, 106, 0.22) inset,
      0 0 0 0 rgba(255, 217, 111, 0.95);
  }
  40% {
    box-shadow:
      0 0 0 1px rgba(255, 214, 106, 0.35) inset,
      0 0 0 6px rgba(255, 217, 111, 0.35),
      0 0 18px rgba(255, 214, 106, 0.42);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 214, 106, 0.22) inset,
      0 0 0 0 rgba(255, 217, 111, 0);
  }
}

/* Final clamp: keep notify panel strictly inside drawer frame */
.drawer-front .drawer-head {
  overflow: visible !important;
}

.drawer-front #slNotifyCenter {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

#slNotifyCenter .nc-head,
#slNotifyCenter .nc-list,
#slNotifyCenter .nc-item {
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .drawer-front #slNotifyCenter {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }
}

@media (min-width: 901px) {
  #slNotifyCenter .nc-item[data-expandable="1"] .nc-expand-toggle {
    display: block;
  }
}

.drawer-front .drawer-hub-trigger {
  width: 100%;
  border: 1px solid #3b5273;
  border-radius: 14px;
  background: linear-gradient(180deg, #1d2c43 0%, #182436 100%);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  color: #dbe7fa;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(4, 12, 22, 0.28);
}

.drawer-front .drawer-hub-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #5072a2;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #314766 0%, #24344c 70%);
}

.drawer-front .drawer-hub-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-front .drawer-hub-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #e7f0ff;
}

.drawer-front .drawer-hub-meta {
  min-width: 0;
  text-align: left;
  display: grid;
  gap: 2px;
}

.drawer-front .drawer-hub-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .35px;
  text-transform: uppercase;
  color: #b8c9e6;
  border: 1px solid #4f678d;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(44, 62, 90, .55);
}

.drawer-front .drawer-hub-meta strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-front .drawer-hub-meta small {
  display: block;
  font-size: 11px;
  color: #9fb0ca;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-front .drawer-hub-caret {
  color: #8ea6ca;
}

.drawer-front .drawer-hub-caret svg {
  width: 16px;
  height: 16px;
  display: block;
}

.drawer-front .drawer-hub-menu {
  margin-top: 8px;
  border: 1px solid #3a5275;
  border-radius: 12px;
  background: linear-gradient(180deg, #1c2a3f, #162236);
  padding: 0 9px;
  display: grid;
  gap: 7px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height .24s ease, opacity .2s ease, transform .2s ease, padding .2s ease;
}

.drawer-front .drawer-hub-menu.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 9px;
  padding-bottom: 9px;
  pointer-events: auto;
}

.drawer-front .drawer-hub-item {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #1a2434;
  color: #d6e2f6;
  text-decoration: none;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.drawer-front .drawer-hub-item:hover {
  background: #22324a;
  border-color: #3f5d87;
  color: #f0f6ff;
}

.drawer-front .drawer-hub-note {
  margin: 7px 2px 0;
  color: #9bb2d8;
  font-size: 11px;
  line-height: 1.35;
}

.drawer-front .hub-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #2b3d59;
  color: #b7c7e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-front .hub-item-icon svg {
  width: 15px;
  height: 15px;
}

.drawer-front .drawer-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawer-front .drawer-quick-item {
  min-height: 40px;
  border: 1px solid #3a5275;
  border-radius: 12px;
  background: linear-gradient(180deg, #1b2a40 0%, #172337 100%);
  color: #d6e2f6;
  text-decoration: none;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
}

.drawer-front .drawer-quick-item:hover {
  border-color: #4e6d9c;
  background: #22324a;
  color: #f0f6ff;
}

.drawer-front .drawer-quick-item.active {
  border-color: #74a7ef;
  background: linear-gradient(180deg, #274369 0%, #203754 100%);
  color: #f4f8ff;
  box-shadow: 0 0 0 1px rgba(116, 167, 239, 0.3), inset 0 0 0 1px rgba(190, 220, 255, 0.08);
}

.drawer-front .quick-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #314865 0%, #273a54 100%);
  border: 1px solid #4c6b96;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #e3eeff;
  flex: 0 0 auto;
}

.drawer-front .quick-item-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.drawer-front .quick-item-icon[data-kind="canli"] { color: #35c3ff; }
.drawer-front .quick-item-icon[data-kind="kaza"] { color: #ff5f74; }
.drawer-front .quick-item-icon[data-kind="mac"] { color: #7ad98f; }
.drawer-front .quick-item-icon[data-kind="admin"] { color: #ffcf6a; }

.drawer-front .drawer-nav-title {
  margin-top: 12px;
}

.drawer-front .drawer-links a {
  min-height: 42px;
  padding: 9px 10px;
  border-color: #3a5275;
  border-radius: 12px;
}

.drawer-front .drawer-link-icon {
  width: 22px;
  height: 22px;
  border-radius: 9px;
  background: linear-gradient(180deg, #314865 0%, #273a54 100%);
  color: #e3eeff;
  border: 1px solid #4c6b96;
}

.drawer-front .drawer-link-icon svg {
  width: 14px;
  height: 14px;
}

.drawer-front .drawer-bottom-sticky {
  margin-top: auto;
  border-top: 1px solid #314867;
  padding-top: 12px;
  display: grid;
  gap: 11px;
  background: linear-gradient(180deg, rgba(16, 24, 37, 0), rgba(16, 24, 37, 0.98) 28%);
  box-shadow: 0 -12px 26px rgba(5, 11, 20, 0.34);
}

.drawer-front .drawer-promo-card {
  display: block;
  width: 100%;
  border: 1px solid #466488;
  border-radius: 13px;
  overflow: hidden;
  background: #1a2434;
  box-shadow: 0 10px 20px rgba(5, 11, 20, 0.24);
}

.drawer-front .drawer-promo-card.ratio-wide { aspect-ratio: 16 / 9; }
.drawer-front .drawer-promo-card.ratio-square { aspect-ratio: 1 / 1; }

.drawer-front .drawer-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-front .drawer-cta-sticky {
  margin-top: 0;
}

.drawer-front .drawer-main-title + .drawer-nav-title {
  display: none;
}

.drawer-front .drawer-utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawer-front .drawer-utility-note {
  margin: -3px 2px 8px;
  color: #9bb2d8;
  font-size: 11px;
  line-height: 1.35;
}

.drawer-front .drawer-utility-card {
  min-height: 68px;
  border-radius: 12px;
  border: 1px solid #3d567a;
  background: linear-gradient(180deg, #1d2d44 0%, #17253a 100%);
  padding: 9px 10px;
  text-decoration: none;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 8px;
  row-gap: 3px;
  align-content: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.drawer-front .drawer-utility-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(128, 170, 230, 0.45);
  background: rgba(25, 43, 69, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  color: #8fb5e8;
}

.drawer-front .drawer-utility-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.drawer-front .drawer-utility-card strong {
  font-size: 12px;
  line-height: 1.25;
  color: #eef4ff;
}

.drawer-front .drawer-utility-card small {
  font-size: 11px;
  line-height: 1.25;
  color: #9eb6da;
}

.drawer-front .drawer-utility-card:hover {
  border-color: #5e84bc;
  background: linear-gradient(180deg, #223754 0%, #1b2f49 100%);
  transform: translateY(-1px);
}

.drawer-front .drawer-utility-card.active {
  border-color: #74a7ef;
  background: linear-gradient(180deg, #274369 0%, #203754 100%);
  box-shadow: 0 0 0 1px rgba(116, 167, 239, 0.3), inset 0 0 0 1px rgba(190, 220, 255, 0.08);
}

.drawer-front .drawer-links a.active {
  border-color: #74a7ef;
  background: linear-gradient(180deg, #274369 0%, #203754 100%);
  color: #f4f8ff;
  box-shadow: 0 0 0 1px rgba(116, 167, 239, 0.3), inset 0 0 0 1px rgba(190, 220, 255, 0.08);
}

.drawer-front .drawer-utility-card.kind-canli { border-color: #3e6da1; }
.drawer-front .drawer-utility-card.kind-kaza { border-color: #7a4f66; }
.drawer-front .drawer-utility-card.kind-mac { border-color: #4a7c65; }
.drawer-front .drawer-utility-card.kind-admin { border-color: #7a6a4a; }

@media (max-width: 900px) {
  .drawer-front .drawer-quick-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slCommentBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (min-width: 769px) {
  .sl-live-comment-alert {
    right: 16px;
    bottom: 16px;
  }
}

.comment-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #465a79;
  background: radial-gradient(circle at 30% 20%, #3a4c67 0%, #1e2c43 72%);
  color: #e8f0ff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.comment-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-author {
  font-size: 12px;
  font-weight: 700;
  color: #eef3ff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-text {
  font-size: 12px;
  color: #c8d1df;
  line-height: 1.35;
  word-break: break-word;
  margin: 0;
}

.comment-item.is-system .comment-avatar {
  border-color: #51627d;
  background: radial-gradient(circle at 30% 20%, #334257 0%, #1a2537 74%);
  color: #d7e2f5;
}

.comment-item.is-new {
  border-color: rgba(255, 212, 58, 0.88) !important;
  box-shadow: 0 0 0 1px rgba(255, 212, 58, 0.4), 0 12px 24px rgba(16, 21, 30, 0.45);
  animation: slNewCommentPulse 2.8s ease-out 1;
}

@keyframes slNewCommentPulse {
  0% {
    background-color: rgba(255, 212, 58, 0.32);
    transform: translateY(-1px);
  }
  35% {
    background-color: rgba(255, 212, 58, 0.16);
  }
  100% {
    background-color: transparent;
    transform: translateY(0);
  }
}

/* Drawer dynamic menu blocks */
.drawer-accordion-block {
  border: 1px solid #335c8d;
  border-radius: 12px;
  background: #102746;
  margin-bottom: 10px;
  overflow: hidden;
}
.drawer-accordion-summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #e8f1ff;
  padding: 10px 12px;
}
.drawer-accordion-summary::-webkit-details-marker { display: none; }
.drawer-accordion-block .drawer-links { padding: 0 8px 8px; }

/* Drawer icon border toggle (settings: show_icon_border) */
.drawer-front.drawer-no-icon-border .quick-item-icon,
.drawer-front.drawer-no-icon-border .drawer-link-icon,
.drawer-front.drawer-no-icon-border .drawer-utility-icon {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Per-item icon border controls from Drawer/Menu builder */
.drawer-front .quick-item-icon.no-icon-border,
.drawer-front .drawer-link-icon.no-icon-border,
.drawer-front .drawer-utility-icon.no-icon-border {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.drawer-front .quick-item-icon.force-icon-border,
.drawer-front .drawer-link-icon.force-icon-border,
.drawer-front .drawer-utility-icon.force-icon-border {
  border-width: 1px !important;
  border-style: solid !important;
}
/* 2026-04-08 drawer/mobile refinements */
@media (max-width: 768px) {
  .drawer-front .drawer-promo-card {
    width: min(164px, 52vw);
    margin-inline: 0 auto;
  }
}
