.side-menu-back {
  position: fixed;
  inset: 0;
  z-index: 100080;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

body.side-menu-open .side-menu-back {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100100;
  width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--sm-bg, #f4f0e8);
  color: var(--sm-ink, #1c1917);
  box-shadow: -28px 0 70px rgba(15, 23, 42, 0.28);
  transform: translateX(104%);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.side-sheet.is-open {
  transform: translateX(0);
}

.side-sheet[hidden] {
  display: flex !important;
  pointer-events: none !important;
}

.side-sheet__head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px 18px;
  background: var(--sm-head, #1c1917);
  color: var(--sm-head-ink, #fff);
  border-bottom: 5px solid var(--sm-accent, #f97316);
}

.side-sheet__kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sm-kicker, #fdba74);
  font-weight: 700;
}

.side-sheet__title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 800;
}

.side-sheet__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: var(--sm-head-ink, #fff);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.side-sheet__close .menu-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-sheet__scroll {
  flex: 1;
  overflow: auto;
  padding: 8px 14px 12px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 13px 6px;
  border: 0;
  border-bottom: 1px solid var(--sm-line, rgba(28, 25, 23, 0.08));
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.side-link__ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sm-card, #fff);
  color: var(--sm-icon, #c2410c);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.06);
}

.side-link__ico .menu-ico,
.side-link__go .menu-ico,
.side-cta__ico .menu-ico,
.side-cta__go .menu-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-link__text {
  flex: 1;
  min-width: 0;
}

.side-link__go {
  color: var(--sm-muted, #a8a29e);
  display: grid;
  place-items: center;
}

.side-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0 8px;
}

.side-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--sm-card, #fff);
  font-size: 0.92rem;
}

.side-perk strong {
  display: block;
  font-size: 0.92rem;
}

.side-perk span {
  color: var(--sm-muted, #78716c);
  font-size: 0.8rem;
}

.side-perk .menu-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--sm-icon, #c2410c);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-switcher {
  margin-top: 14px;
  padding-top: 8px;
}

.side-switcher__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sm-muted, #78716c);
  font-weight: 700;
}

.side-switcher__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.side-switcher__opts a {
  text-decoration: none;
  color: var(--sm-ink, #1c1917);
  background: var(--sm-card, #fff);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.side-switcher__opts a.is-active {
  background: var(--sm-head, #1c1917);
  color: var(--sm-head-ink, #fff);
}

.side-sheet__foot {
  flex-shrink: 0;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  background: var(--sm-bg, #f4f0e8);
}

.side-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 14px;
  background: linear-gradient(135deg, var(--sm-cta1, #fb923c) 0%, var(--sm-accent, #f97316) 55%, var(--sm-cta2, #ea580c) 100%);
  color: var(--sm-cta-ink, #fff);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--sm-cta-shadow, rgba(234, 88, 12, 0.28));
}

.side-cta strong {
  display: block;
  font-size: 1.02rem;
}

.side-cta span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.92;
}

.side-cta__copy {
  flex: 1;
  min-width: 0;
}

html:has(body.side-menu-open) {
  overflow: hidden;
}

/* Menü açıkken yukarı çık ve diğer yüzen butonlar panelin üstünde kalıp tıklamayı kesmesin. */
html body.side-menu-open.homepage-view .scroll-to-top.is-visible,
html body.side-menu-open .scroll-to-top,
html body.side-menu-open .cf-fab,
html body.side-menu-open .social-buttons,
html body.side-menu-open .fk-live-toast,
html body.side-menu-open .sp-ov,
html body.side-menu-open .osb {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .side-sheet,
  .side-menu-back {
    transition: none;
  }
}
