/* ====================================
   Global Variables, Shell & Sidebar
   Creator: Artualist
==================================== */

:root {
  --lx-font-ui: "Clash Display", 'ClashDisplay-Variable', 'ClashDisplay-Regular', 'ClashDisplay-Medium', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --lx-font-display: "Clash Display", 'ClashDisplay-Variable', 'ClashDisplay-Semibold', 'ClashDisplay-Bold', system-ui, sans-serif;
  --lx-topbar-h: 108px;
  --lx-sidebar-w: 98px;
  --lx-bg: #121212;
  --lx-panel: #121212;
  --lx-border: rgba(255, 255, 255, 0.08);
  --lx-text: #FFFFFF;
  --lx-muted: rgba(255, 255, 255, 0.62);
  --lx-bg0: #121212;
  --lx-bg1: #121212;
  --lx-surface: rgba(255, 255, 255, 0.035);
  --lx-surface2: rgba(255, 255, 255, 0.055);
  --lx-chip: rgba(255, 255, 255, 0.06);
  --lx-radius-xl: 26px;
  --lx-radius-lg: 20px;
  --lx-radius-md: 14px;
  --lx-primary: #BB86FC;
  --lx-primary-variant: #3700B3;
  --lx-secondary: #03DAC6;
  --lx-error: #CF6679;
  --lx-on-primary: #000000;
  --lx-on-secondary: #000000;
  --lx-on-error: #000000;
}

/* ====================================
   Global Reset
   Creator: Artualist
==================================== */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--lx-bg) !important;
  width: 100%;
}

.lx-app form,
.lx-app button,
.lx-app input,
.lx-app .lx-search,
.lx-app .lx-search__input {
  margin: 0 !important;
}

.lx-topbar * {
  margin-bottom: 0 !important;
}

.lx-app {
  min-height: 100vh;
  background: var(--lx-bg);
  color: var(--lx-text);
  font-family: var(--lx-font-ui);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--lx-font-display);
}

/* ====================================
   Topbar & Navigation Slots
   Creator: Artualist
==================================== */

.lx-topbar {
  height: var(--lx-topbar-h);
  display: grid;
  grid-template-columns: var(--lx-sidebar-w) minmax(320px, 35%) minmax(520px, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 40px;
  background: none;
  border: 0;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 999;
}

.lx-topbar__slot {
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
  box-sizing: border-box;
}

.lx-topbar__slot--brand {
  width: 98px;
  height: 98px;
  justify-content: center;
}

.lx-topbar__slot--tools {
  justify-content: flex-start;
  margin-left: -32px;
  min-width: 0;
}

.lx-topbar__slot--profile {
  justify-content: flex-end;
}

.lx-topbar__slot--title {
  justify-content: flex-start;
  margin-left: -20px;
  overflow: visible;
}

.lx-topTools {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lx-brandSquare {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lx-brandSquare__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.lx-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====================================
   Search, Pills & Identity
   Creator: Artualist
==================================== */

.lx-searchPill {
  max-width: 360px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  border: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex: 1 1 420px;
  min-width: 260px;
}

.lx-searchPill__icon {
  color: rgba(255, 255, 255, 0.55);
  font-size: 24px;
}

.lx-searchPill__input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  /* --- EKLENEN KISIMLAR --- */
  font-family: var(--lx-font-ui);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lx-searchPill__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--lx-font-ui);
  font-weight: 400;
}

.lx-switchPill--premium {
  gap: 12px;
  padding: 0 16px 0 14px;
  height: 42px;
  background: linear-gradient(180deg, rgba(187, 134, 252, 0.18), rgba(187, 134, 252, 0.08));
  box-shadow: inset 0 0 0 1px rgba(187, 134, 252, 0.35), 0 6px 18px rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.95);
}

.lx-switchPill--premium:hover {
  background: linear-gradient(180deg, rgba(187, 134, 252, 0.26), rgba(187, 134, 252, 0.12));
}

.lx-premiumIcon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
  filter: drop-shadow(0 2px 6px rgba(187, 134, 252, 0.45));
}

.lx-switchPill--premium .lx-switchPill__txt {
  font-family: var(--lx-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 13px;
}

.lx-topProfile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.lx-miniCaret {
  font-size: 26px;
  width: 12px;
  height: 12px;
  padding: 0px;
  border-radius: 999px;
  border: 0;
  background: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.lx-miniCaret:hover {
  background: rgba(255, 255, 255, 0.075);
}

.lx-avatarPancake {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 44px;
}

.lx-avatarPancake__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====================================
   Dynamic Dropdown Menu
   Creator: Artualist
==================================== */

.lx-titleDrop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 30px;
  min-width: 0;
}

.lx-titleDrop__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--lx-font-display);
}

.lx-caret {
  font-size: 26px;
}

.lx-titleDrop__label {
  font-family: var(--lx-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lx-titleDrop__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  height: 42px;
  border-radius: 14px;
}

.lx-titleDrop__btn:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.lx-titleDrop__btn:active {
  transform: translateY(1px);
}

.lx-titleDrop__menu {
  position: absolute;
  top: calc(100%);
  left: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  min-width: 240px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(14, 14, 14, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2000;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.lx-titleDrop:hover .lx-titleDrop__menu,
.lx-titleDrop:focus-within .lx-titleDrop__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lx-titleDrop__menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 22px;
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(14, 14, 14, 0.92));
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.lx-titleDrop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  font-family: var(--lx-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: background .14s ease, box-shadow .14s ease, color .14s ease;
}

.lx-titleDrop__item:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.lx-titleDrop__item[aria-current="page"] {
  background: rgba(0, 255, 209, 0.10);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 209, 0.25);
  color: rgba(255, 255, 255, 0.98);
}

.lx-topbar input[type="search"],
.lx-topbar input[type="text"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.lx-topbar input:-webkit-autofill,
.lx-topbar input:-webkit-autofill:hover,
.lx-topbar input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.06) inset !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
  caret-color: rgba(255, 255, 255, 0.92) !important;
  border: 0 !important;
}

/* ====================================
   Body & Sidebar (Pancake Style)
   Creator: Artualist
==================================== */

.lx-body {
  display: grid;
  grid-template-columns: var(--lx-sidebar-w) 1fr;
  min-height: calc(100vh - var(--lx-topbar-h));
}
.lx-sidebar {
  border: 0 !important;
  background: transparent !important;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  
  position: sticky; 
  top: var(--lx-topbar-h);
  height: calc(100vh - var(--lx-topbar-h));
  box-sizing: border-box;
}

.lx-sideNav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lx-iconBtn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--lx-text);
  border: 0 !important;
  background: rgba(255, 255, 255, 0.05);
}

.lx-iconBtn:hover {
  background: rgba(255, 255, 255, 0.075);
}

.lx-sidebar--pancake .lx-ico {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.lx-sidebar--pancake .lx-home {
  margin-bottom: 24px !important;
}

.lx-sidebar--pancake .lx-sideSingle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  text-decoration: none;
}

.lx-sidebar--pancake .lx-sideSingle:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  opacity: 1;
}

.lx-sidebar--pancake .lx-sideSingle:hover .lx-ico {
  color: rgba(255, 255, 255, 0.90);
}

.lx-sidebar--pancake .lx-pill {
  width: 46px;
  padding: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none !important;
  border: 0 !important;
  display: flex;
  flex-direction: column; align-items: center;
  gap: 6px;
  position: relative;
}

.lx-sidebar--pancake .lx-pill::before {
  content: none !important;
}

.lx-sidebar--pancake .lx-pill--pink {
  background: rgba(3, 218, 198, 0.14) !important;
}

.lx-sidebar--pancake .lx-pill--purple {
  background: rgba(102, 46, 143, 0.45) !important;
}

.lx-sidebar--pancake .lx-pillBtn {
  width: 28px;
  height: 28px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 2px 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lx-sidebar--pancake .lx-pillBtn svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.4 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.lx-sidebar--pancake .lx-pillBtn:hover {
  background: transparent !important;
}

.lx-sidebar--pancake .lx-pillBtn:hover svg {
  color: rgba(255, 255, 255, 0.9) !important;
}

.lx-sidebar--pancake .lx-pillBtn:first-child {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  opacity: 1 !important;
}

.lx-sidebar--pancake .lx-pill--pink .lx-pillBtn:first-child {
  background: var(--lx-secondary) !important;
}

.lx-sidebar--pancake .lx-pill--purple .lx-pillBtn:first-child {
  background: #bb86fc !important;
}

.lx-sidebar--pancake .lx-pill--pink .lx-pillBtn:first-child .lx-ico,
.lx-sidebar--pancake .lx-pill--pink .lx-pillBtn:first-child svg,
.lx-sidebar--pancake .lx-pill--pink .lx-pillBtn:first-child svg path {
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
}

.lx-sidebar--pancake .lx-pill--purple .lx-pillBtn:first-child .lx-ico,
.lx-sidebar--pancake .lx-pill--purple .lx-pillBtn:first-child svg,
.lx-sidebar--pancake .lx-pill--purple .lx-pillBtn:first-child svg path {
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
}

.lx-sidebar--pancake .lx-pillBtn:not(:first-child) {
  opacity: 0.8;
}

.lx-sidebar--pancake .lx-sideSingles {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lx-sidebar--pancake .lx-sidebar-bottom {
  margin-top: 10px !important;
}

.lx-sidebar--pancake .lx-themeToggle {
  margin-top: auto !important;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.78;
}

.lx-sidebar--pancake .lx-themeToggle .lx-ico {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  display: block !important;
}

.lx-sidebar--pancake .lx-themeToggle:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  opacity: 1;
}

.lx-sidebar--pancake .lx-themeToggle:hover .lx-ico {
  color: rgba(255, 255, 255, 0.95) !important;
}

.lx-themeToggle .lx-ico path {
  fill: var(--lx-primary) !important;
}

/* ====================================
   Active States & Animations
   Creator: Artualist
==================================== */

.lx-sidebar--pancake .lx-pillBtn.is-active {
  background: transparent !important;
  box-shadow: none !important;
}

.lx-sidebar--pancake .lx-pillBtn.is-active .lx-ico,
.lx-sidebar--pancake .lx-pillBtn.is-active svg,
.lx-sidebar--pancake .lx-pillBtn.is-active svg path {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
  opacity: 1 !important;
}

.lx-sidebar--pancake .lx-pillBtn:not(.is-active) .lx-ico,
.lx-sidebar--pancake .lx-pillBtn:not(.is-active) svg,
.lx-sidebar--pancake .lx-pillBtn:not(.is-active) svg path {
  color: rgba(255, 255, 255, 0.65) !important;
  stroke: rgba(255, 255, 255, 0.65) !important;
  fill: none !important;
}

.lx-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--lx-border);
  background: rgba(255, 255, 255, 0.10);
  color: var(--lx-text);
  cursor: pointer;
  font-family: var(--lx-font-ui);
  letter-spacing: 0.08em;
}

.lx-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

@keyframes lxShimmer {
  to { transform: translateX(100%); }
}

/* ====================================
   Mobile UI Overrides
   Creator: Artualist
==================================== */

@media (max-width: 900px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box !important;
  }

  html,
  body {
    background: #121212 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  img,
  svg,
  video,
  canvas,
  iframe {
    max-width: 100% !important;
    height: auto;
  }

  .lx-app {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .lx-topbar__slot--tools,
  .lx-searchPill,
  .lx-switchPill {
    display: none !important;
  }

  .lx-topbar {
    height: 70px !important;
    grid-template-columns: 52px 1fr auto !important;
    column-gap: 10px !important;
    padding: 10px 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
  }

  .lx-topbar__slot--title {
    min-width: 0 !important;
  }

  .lx-titleDrop__label,
  .lx-titleDrop__title {
    font-size: 16px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 62vw;
  }

  .lx-topbar__slot--brand {
    max-height: 55px;
    max-width: 55px;
  }

  .lx-body {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .lx-sidebar {
    display: none !important;
  }

  .lx-avatarPancake {
    max-width: 36px;
    max-height: 36px;
  }

  .lx-topProfile {
    max-width: 58px;
  }

  .lx-miniCaret {
    display: none !important;
  }
}

.lx-switchPill--premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px 0 14px;
    height: 42px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(187, 134, 252, 0.18), rgba(187, 134, 252, 0.08));
    box-shadow: inset 0 0 0 1px rgba(187, 134, 252, 0.35), 0 6px 18px rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.95);
}