:root {
  /* Instagram web (koyu) ile uyumlu global tema — düz siyah, #262626 çerçeve, sistem fontu */
  --bg: #000000;
  --bg-deep: #000000;
  --surface: #121212;
  --surface-2: #262626;
  --ink: #c9a227;
  --accent: #0095f6;
  --accent-hover: #47a7ff;
  --mint: #0095f6;
  --ig-like: #ff3040;
  --text: #fafafa;
  --muted: #8e8e8e;
  --text-secondary: rgba(250, 250, 250, 0.92);
  --text-dim: #a8a8a8;
  --text-faint: #737373;
  --line: #262626;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --scroll-track: transparent;
  --scroll-thumb: rgba(255, 255, 255, 0.18);
  --scroll-thumb-hover: rgba(0, 149, 246, 0.45);
  --scroll-thumb-active: rgba(0, 149, 246, 0.55);
  --feed-card-glass: #000000;
  --feed-card-glass-hover: #0a0a0a;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-nav-morph: cubic-bezier(0.33, 1, 0.68, 1);
  --nav-morph-dur: 1.15s;
  --fg: var(--text);
  --canvas: #000000;
  --chrome: #000000;
  --search-bg: #262626;
  --nav-pill-bg: #121212;
  --nav-rail-bg: #000000;
  --story-chrome: #0a0a0a;
  --story-text: #ffffff;
  --story-ui-fg: #ffffff;
  --feed-card-bg: #000000;
  --feed-card-hover-bg: #0a0a0a;
  --feed-card-hover-border: #3a3a3a;
  --media-bg: #000000;
  --dialog-elevated: #000000;
  --thread-bubble-bg: #121212;
  --thread-text: rgba(236, 234, 231, 0.96);
  --thread-actions-fg: rgba(242, 240, 237, 0.88);
  --thread-avatar-fg: #fafafa;
  --thread-child-border: rgba(255, 255, 255, 0.12);
  --nav-item-fg: #737373;
  --nav-item-fg-hover: #a8a8a8;
  --nav-item-fg-active: #ffffff;
  --nav-indicator: #ffffff;
  --story-preview-bg: #111111;
  --grain-opacity: 0.018;
  --composer-bg: #000000;
  --composer-input-bg: rgba(10, 9, 12, 0.65);
  --composer-input-bg-focus: rgba(10, 9, 12, 0.85);
  --composer-input-border: rgba(255, 255, 255, 0.12);
  --nav-item-hover-bg: rgba(255, 255, 255, 0.06);
  --nav-item-active-bg: rgba(255, 255, 255, 0.1);
  --desktop-rail-active-bg: rgba(255, 255, 255, 0.1);
  --desktop-rail-hover-bg: rgba(255, 255, 255, 0.06);
  --booking-backdrop: rgba(0, 0, 0, 0.65);
  --sheet-backdrop: rgba(5, 4, 7, 0.72);
  --coll-cap-gradient: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  --interactive-hover: rgba(255, 255, 255, 0.06);
  --interactive-hover-strong: rgba(255, 255, 255, 0.1);
  --interactive-active: rgba(255, 255, 255, 0.08);
  --avatar-outline: rgba(255, 255, 255, 0.12);
  --kbd-bg: rgba(27, 24, 34, 0.92);
  --kbd-border: rgba(255, 255, 255, 0.14);
  --pin-badge-bg: rgba(10, 9, 12, 0.78);
  --icon-btn-bg: rgba(10, 9, 12, 0.65);
  --demo-modal-backdrop: rgba(5, 4, 7, 0.75);
  --booking-soft-bg: rgba(255, 255, 255, 0.04);
  --booking-soft-bg-mid: rgba(255, 255, 255, 0.05);
  --booking-soft-bg-high: rgba(255, 255, 255, 0.07);
  --booking-soft-bg-hover: rgba(255, 255, 255, 0.06);
  --booking-soft-border: rgba(255, 255, 255, 0.12);
  --booking-soft-border-strong: rgba(255, 255, 255, 0.18);
  --booking-field-bg: rgba(255, 255, 255, 0.04);
  --booking-scrollbar: rgba(255, 255, 255, 0.15);
}

html {
  color-scheme: dark;
  background: var(--canvas);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --bg-deep: #ffffff;
  --surface: #ffffff;
  --surface-2: #efefef;
  --ink: #b8860b;
  --accent: #0095f6;
  --accent-hover: #1877f2;
  --mint: #0095f6;
  --ig-like: #ed4956;
  --text: #121212;
  --muted: #525252;
  --text-secondary: rgba(18, 18, 18, 0.94);
  --text-dim: #5c5c5c;
  --text-faint: #6e6e6e;
  --line: #dbdbdb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  --scroll-thumb: rgba(0, 0, 0, 0.28);
  --scroll-thumb-hover: rgba(0, 149, 246, 0.45);
  --scroll-thumb-active: rgba(0, 149, 246, 0.55);
  --feed-card-glass: #ffffff;
  --feed-card-glass-hover: #fafafa;
  --fg: var(--text);
  --canvas: #fafafa;
  --chrome: #ffffff;
  --search-bg: #efefef;
  --nav-pill-bg: #ffffff;
  --nav-rail-bg: #fafafa;
  --story-chrome: #f0f0f0;
  --story-text: #262626;
  --story-ui-fg: #262626;
  --feed-card-bg: #ffffff;
  --feed-card-hover-bg: #fafafa;
  --feed-card-hover-border: #dbdbdb;
  --media-bg: #000000;
  --dialog-elevated: #ffffff;
  --thread-bubble-bg: #f2f2f2;
  --thread-text: rgba(38, 38, 38, 0.94);
  --thread-actions-fg: rgba(55, 55, 55, 0.88);
  --thread-avatar-fg: #262626;
  --thread-child-border: rgba(0, 0, 0, 0.12);
  --nav-item-fg: #737373;
  --nav-item-fg-hover: #525252;
  --nav-item-fg-active: #262626;
  --nav-indicator: #262626;
  --story-preview-bg: #e8e8e8;
  --grain-opacity: 0.04;
  --composer-bg: #ffffff;
  --composer-input-bg: rgba(255, 255, 255, 0.95);
  --composer-input-bg-focus: #ffffff;
  --composer-input-border: rgba(0, 0, 0, 0.12);
  --nav-item-hover-bg: rgba(0, 0, 0, 0.05);
  --nav-item-active-bg: rgba(0, 0, 0, 0.06);
  --desktop-rail-active-bg: rgba(0, 0, 0, 0.06);
  --desktop-rail-hover-bg: rgba(0, 0, 0, 0.05);
  --booking-backdrop: rgba(0, 0, 0, 0.35);
  --sheet-backdrop: rgba(15, 20, 25, 0.45);
  --coll-cap-gradient: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  --interactive-hover: rgba(0, 0, 0, 0.06);
  --interactive-hover-strong: rgba(0, 0, 0, 0.09);
  --interactive-active: rgba(0, 0, 0, 0.08);
  --avatar-outline: rgba(0, 0, 0, 0.12);
  --kbd-bg: rgba(239, 239, 239, 0.98);
  --kbd-border: rgba(0, 0, 0, 0.12);
  --pin-badge-bg: rgba(0, 0, 0, 0.68);
  --icon-btn-bg: rgba(255, 255, 255, 0.95);
  --demo-modal-backdrop: rgba(15, 20, 25, 0.45);
  --booking-soft-bg: rgba(0, 0, 0, 0.04);
  --booking-soft-bg-mid: rgba(0, 0, 0, 0.05);
  --booking-soft-bg-high: rgba(0, 0, 0, 0.07);
  --booking-soft-bg-hover: rgba(0, 0, 0, 0.06);
  --booking-soft-border: rgba(0, 0, 0, 0.12);
  --booking-soft-border-strong: rgba(0, 0, 0, 0.18);
  --booking-field-bg: rgba(0, 0, 0, 0.04);
  --booking-scrollbar: rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background-color: var(--canvas);
  background-image: none;
  line-height: 1.5;
  transition:
    background-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out);
}

#btn-theme-toggle .theme-icon--moon {
  display: none;
}

html[data-theme="light"] #btn-theme-toggle .theme-icon--sun {
  display: none;
}

html[data-theme="light"] #btn-theme-toggle .theme-icon--moon {
  display: block;
}

.app-body {
  position: relative;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  isolation: isolate;
}

/* Kenar yıkamaları kapatıldı — IG benzeri düz siyah sahne */
.app-body::before,
.app-body::after {
  display: none;
}

/* Grain çok hafif — neredeyse görünmez doku */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 1;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 12, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.brand strong {
  display: block;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent);
}

.pill {
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill.ok {
  border-color: rgba(0, 149, 246, 0.45);
  color: var(--accent);
}

main {
  position: relative;
  z-index: 1;
}

/* —— Sosyal uygulama kabuğu —— */
.app {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
  box-shadow: none;
  background: var(--canvas);
  transition: background-color 0.22s var(--ease-out);
}

@media (min-width: 900px) {
  .app {
    max-width: 640px;
    box-shadow: none;
  }
}

/* Orta sütun: üst bar + kaydırılabilir içerik */
.app-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* —— Masaüstü: Instagram tarzı 3 sütun (sol ikon şeridi · orta akış · sağ öneriler) —— */
@media (min-width: 1024px) {
  .app {
    max-width: min(1320px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3.5vw, 2.75rem);
    display: grid;
    grid-template-columns: 88px minmax(420px, 1fr) minmax(300px, 400px);
    grid-template-rows: 1fr;
    align-items: stretch;
    column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
    box-shadow: none;
    background: var(--canvas);
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
  }

  .app-stage {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    height: 100%;
    max-height: 100dvh;
    border-right: 1px solid var(--line);
  }

  .app-top .app-brand {
    display: none;
  }

  .desktop-aside {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    max-height: 100dvh;
    background: var(--chrome);
    overflow: hidden;
  }

  .desktop-aside-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.75rem 1.25rem 2rem 1.35rem;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
  }

  .desktop-aside-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
  }

  .desktop-aside-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
  }

  .desktop-aside-user-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .desktop-aside-handle {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
  }

  .desktop-aside-switch {
    flex-shrink: 0;
    border: none;
    background: none;
    color: #0095f6;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.25rem;
  }

  .desktop-aside-switch:hover {
    color: #47a7ff;
  }

  .desktop-aside-block {
    margin-bottom: 1.65rem;
  }

  .desktop-aside-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
  }

  .desktop-aside-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
  }

  .desktop-aside-link {
    border: none;
    background: none;
    color: #0095f6;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem;
  }

  .desktop-aside-link:hover {
    color: #47a7ff;
  }

  .desktop-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .desktop-suggest-list li + li {
    margin-top: 0.35rem;
  }

  .desktop-suggest {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.35rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
  }

  .desktop-suggest:hover {
    background: var(--interactive-hover);
  }

  .desktop-suggest-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(0, 149, 246, 0.35), rgba(201, 162, 39, 0.25));
    border: 1px solid var(--line);
  }

  .desktop-suggest-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
  }

  .desktop-suggest-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
  }

  .desktop-suggest-cta {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0095f6;
  }

  .desktop-aside-footer {
    margin: 0;
    line-height: 1.45;
  }

  .desktop-aside-footer a {
    color: var(--text-faint);
    text-decoration: none;
  }

  .desktop-aside-footer a:hover {
    text-decoration: underline;
  }

  /* Sol şerit: ikon menü */
  .bottom-nav.primary-nav {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    grid-column: 1;
    grid-row: 1;
    width: 88px;
    max-width: none;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.45rem;
    padding: 1.15rem 0.45rem 1.5rem;
    margin: 0;
    border: none;
    border-right: 1px solid var(--line);
    box-shadow: none;
    background: var(--nav-rail-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Sol şerit: tüm nav düğmeleri aynı kare boyutta (marka dahil) */
  .bottom-nav.primary-nav .nav-item {
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav .nav-item--rail-brand {
    margin: 0 auto 0.65rem;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    color: var(--accent);
    transition:
      background 0.2s var(--ease-out),
      border-color 0.2s var(--ease-out),
      box-shadow 0.2s var(--ease-out),
      transform 0.18s var(--ease-out);
  }

  .bottom-nav .nav-item--rail-brand:hover {
    background: var(--interactive-hover-strong);
    border-color: rgba(0, 149, 246, 0.28);
    box-shadow: 0 0 0 1px rgba(0, 149, 246, 0.12);
  }

  .bottom-nav .nav-item--rail-brand:active {
    transform: scale(0.96);
  }

  .bottom-nav .nav-item--rail-brand .nav-item-brand-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .bottom-nav .nav-item span:not(.nav-item-brand-mark) {
    display: none;
  }

  .bottom-nav .nav-item:not(.nav-item--rail-brand) {
    border-radius: 14px;
    font-size: 0;
  }

  .bottom-nav.primary-nav .nav-item:not(.nav-item--rail-brand) svg {
    width: 24px;
    height: 24px;
    opacity: 0.85;
  }

  .bottom-nav .nav-item.is-active::after {
    display: none;
  }

  .bottom-nav .nav-item.is-active {
    background: var(--desktop-rail-active-bg);
    color: var(--nav-item-fg-active);
  }

  .bottom-nav .nav-item.is-active svg {
    opacity: 1;
  }

  .bottom-nav .nav-item:hover:not(.is-active):not(.nav-item--rail-brand) {
    background: var(--desktop-rail-hover-bg);
  }

  .app-main {
    padding: 1.35rem clamp(1.25rem, 2.2vw, 2rem) 2rem;
  }

  .app-top {
    padding: 1rem clamp(1.25rem, 2.2vw, 2rem) 0.55rem;
  }

  .app-top-row {
    gap: 0.85rem;
  }

  .api-line {
    display: none;
  }

  .feed-list {
    gap: 1.2rem;
  }

  .feed-card-head {
    padding: 0.85rem 1rem;
  }

  .feed-card-foot {
    padding: 0.65rem 1rem 0.85rem;
  }

  .feed-card-media img {
    max-height: min(78vh, 640px);
  }

  .stories-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
  }

  .stories-head {
    margin-bottom: 0.75rem;
  }

  .stories-scroll {
    gap: 1rem;
    padding: 0.35rem 0 0.65rem;
  }

  .view-title {
    margin-bottom: 1.35rem;
  }

  .discover-toolbar {
    margin-bottom: 0.85rem;
  }

  .pin-grid {
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .studio-grid {
    gap: 1.35rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .profile-hero {
    margin-bottom: 1.5rem;
    gap: 1.25rem;
  }

  .compose-view .compose-form {
    gap: 1.1rem;
  }

  .bottom-nav.is-compact {
    transform: none;
  }
}

@media (max-width: 1023px) {
  .desktop-aside {
    display: none !important;
  }

  .nav-item--rail-brand {
    display: none !important;
  }
}

/* Tablet / geniş telefon: kenarlara biraz daha hava */
@media (min-width: 600px) and (max-width: 1023px) {
  .app-main {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .feed-list {
    gap: 0.85rem;
  }
}

.app-top {
  flex-shrink: 0;
  z-index: 20;
  padding: 0.5rem 0.85rem 0.35rem;
  background: var(--chrome);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}

.app-top-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.app-brand .brand-mark {
  color: var(--ink);
  font-size: 1.25rem;
}

.app-brand-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.app-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: var(--search-bg);
  border: none;
  min-width: 0;
}

.app-search .ico {
  flex-shrink: 0;
  color: var(--muted);
}

.app-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  min-width: 0;
}

.app-search input:focus {
  outline: none;
}

.app-search input::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

.app-top-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.icon-circle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-circle:hover {
  color: var(--accent);
  opacity: 0.95;
}

.icon-circle.has-badge .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e85d6f;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.api-line {
  margin: 0.35rem 0 0;
  padding: 0 0.15rem;
}

.app-main {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0.65rem 0.85rem calc(1rem + 112px + env(safe-area-inset-bottom));
  background: var(--canvas);
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.app-main::-webkit-scrollbar,
.sheet-meta::-webkit-scrollbar {
  width: 6px;
}

.app-main::-webkit-scrollbar-track,
.sheet-meta::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

.app-main::-webkit-scrollbar-thumb,
.sheet-meta::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.app-main::-webkit-scrollbar-thumb:hover,
.sheet-meta::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
  background-clip: padding-box;
}

.app-main::-webkit-scrollbar-thumb:active,
.sheet-meta::-webkit-scrollbar-thumb:active {
  background: var(--scroll-thumb-active);
  background-clip: padding-box;
}

.app-main::-webkit-scrollbar-corner,
.sheet-meta::-webkit-scrollbar-corner {
  background: transparent;
}

.app-view[hidden] {
  display: none !important;
}

/* Sekme değişimi — kısa giriş (reduce-motion’da kapalı) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes viewEnter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .app-view.is-active.view-enter {
    animation: viewEnter 0.32s var(--ease-out) both;
  }
}

body[data-nav-view="explore"] .app-main,
body[data-nav-view="studios"] .app-main,
body[data-nav-view="profile"] .app-main,
body[data-nav-view="compose"] .app-main {
  background: var(--canvas);
}

.view-title {
  margin-bottom: 1rem;
}

.view-title h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

/* Tam sayfa — yeni gönderi */
.compose-view {
  max-width: 100%;
}

.compose-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.compose-back {
  flex-shrink: 0;
  border: none;
  background: var(--interactive-hover);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.compose-back:hover {
  color: var(--text);
  background: var(--interactive-hover-strong);
}

.compose-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.compose-lede {
  margin: 0 0 1rem;
}

.compose-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compose-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.compose-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.compose-file-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compose-input,
.compose-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.compose-textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.compose-input:focus,
.compose-textarea:focus {
  outline: none;
  border-color: rgba(0, 149, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 149, 246, 0.2);
}

.compose-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
}

.small {
  font-size: 0.75rem;
}

.grow {
  flex: 1;
  min-width: 0;
}

.discover-toolbar {
  margin-top: 0;
}

/* Hikâyeler */
.stories-block {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  position: relative;
}

.stories-block::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.stories-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stories-head > span:first-child {
  color: var(--text);
  font-weight: 600;
}

.stories-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scroll-snap-type: x mandatory;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.story {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
  width: 72px;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  font-family: inherit;
  transition: transform 0.2s var(--ease-out);
}

.story:focus-visible {
  outline: 2px solid rgba(0, 149, 246, 0.45);
  outline-offset: 4px;
  border-radius: 12px;
}

.story:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: no-preference) {
  .story:hover {
    transform: translateY(-2px);
  }

  .story:hover .story-ring {
    box-shadow: 0 8px 24px rgba(0, 149, 246, 0.15);
  }
}

.story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  margin: 0 auto 0.35rem;
  transition: box-shadow 0.25s var(--ease-out);
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  display: block;
}

.story-label {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story.add .story-ring {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 2px dashed var(--line);
  color: var(--muted);
  font-size: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .story.story-in {
    animation: storyPillEnter 0.55s var(--ease-out) backwards;
    animation-delay: calc(var(--story-i, 0) * 55ms);
  }
}

@keyframes storyPillEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hikâye tam ekran — IG tarzı: orta kart, yan önizlemeler, oklar */
.story-viewer {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  background: var(--story-chrome);
  color: var(--story-text);
  overflow: hidden;
}

.story-viewer::backdrop {
  background: var(--story-chrome);
}

.story-viewer-close-fab {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 0.5rem);
  right: calc(env(safe-area-inset-right) + 0.65rem);
  z-index: 13001;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--story-ui-fg);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.story-viewer-close-fab:hover {
  background: rgba(255, 255, 255, 0.18);
}

.story-viewer-layout {
  display: grid;
  grid-template-columns: auto 44px minmax(260px, 400px) 44px auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 2.5rem) calc(env(safe-area-inset-right) + 0.35rem)
    calc(env(safe-area-inset-bottom) + 0.75rem) calc(env(safe-area-inset-left) + 0.35rem);
  max-width: 1100px;
  margin: 0 auto;
}

.story-viewer-side--prev {
  grid-column: 1;
}

.story-viewer-arrow--prev {
  grid-column: 2;
}

.story-viewer-arrow--next {
  grid-column: 4;
}

.story-viewer-side--next {
  grid-column: 5;
}

.story-viewer-side {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}

.story-viewer-side:empty {
  width: 0;
  max-width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  visibility: hidden;
  pointer-events: none;
}

.story-viewer-side--next {
  align-items: stretch;
}

.story-preview-card {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--story-preview-bg);
  opacity: 0.55;
  transition:
    opacity 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
  aspect-ratio: 9 / 16;
  max-height: min(38vh, 220px);
  width: 100%;
}

.story-preview-card:hover {
  opacity: 0.85;
}

.story-preview-card.is-focus {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.85);
}

.story-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-preview-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.story-preview-cap .pv-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.story-preview-cap .pv-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.6);
}

.story-preview-cap .pv-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--story-text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-preview-cap .pv-when {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.75);
}

.story-viewer-arrow {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--story-ui-fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: center;
}

.story-viewer-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.story-viewer-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.story-viewer-center {
  grid-column: 3;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-viewer-active {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.story-viewer-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--media-bg);
  aspect-ratio: 9 / 16;
  max-height: min(78vh, 640px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.story-viewer-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-viewer-grad {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.story-viewer-grad--top {
  top: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
}

.story-viewer-grad--btm {
  bottom: 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.story-viewer-overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.65rem 0.75rem 0.5rem;
}

.story-viewer-overlay--top {
  top: 0;
}

.story-viewer-overlay--btm {
  bottom: 0;
  padding-bottom: 0.65rem;
}

.story-viewer-segments {
  display: flex;
  gap: 4px;
  margin-bottom: 0.65rem;
}

.story-seg {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.story-seg.is-done {
  background: rgba(255, 255, 255, 0.92);
}

.story-seg.is-todo {
  background: rgba(255, 255, 255, 0.18);
}

.story-seg-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.85));
}

@keyframes storyViewProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.story-viewer-active.is-paused .story-seg-fill {
  animation-play-state: paused !important;
}

.story-viewer-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.story-viewer-who {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.story-viewer-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  flex-shrink: 0;
}

.story-viewer-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.6);
  display: block;
}

.story-viewer-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.story-viewer-artist {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-viewer-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
}

.story-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.story-viewer-tool {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.story-viewer-tool:hover {
  background: rgba(255, 255, 255, 0.12);
}

.story-viewer-subline {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.story-viewer-subline:empty {
  display: none;
}

.story-viewer-subline::before {
  content: "♪";
  opacity: 0.85;
}

.story-viewer-reply-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.story-viewer-reply {
  flex: 1;
  min-width: 0;
}

.story-viewer-reply input {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  cursor: default;
}

.story-viewer-ico {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.story-viewer-ico:hover {
  transform: scale(1.06);
}

@media (max-width: 820px) {
  .story-viewer-layout {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.35rem 0.25rem;
    padding-top: calc(env(safe-area-inset-top) + 2.5rem);
    max-width: 100%;
  }

  .story-viewer-side--prev,
  .story-viewer-side--next {
    display: none !important;
  }

  .story-viewer-arrow--prev {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .story-viewer-center {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0 0.15rem;
  }

  .story-viewer-arrow--next {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-seg-fill {
    width: 100%;
  }
}

/* Akış kartları — şeffaf zemin, akışla tek parça */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.feed-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--feed-card-bg);
  border: 1px solid var(--line);
  box-shadow: none;
  transition:
    background 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

@supports not (backdrop-filter: blur(1px)) {
  .feed-card {
    background: var(--feed-card-bg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .feed-card:hover {
    background: var(--feed-card-hover-bg);
    border-color: var(--feed-card-hover-border);
  }
}

.feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  gap: 0.5rem;
  background: transparent;
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.feed-user-tap {
  cursor: pointer;
  border-radius: 12px;
  padding: 0.2rem 0.35rem;
  margin: -0.2rem -0.35rem;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.feed-user-tap:hover {
  background: var(--interactive-hover);
}

.feed-user-tap:active {
  transform: scale(0.99);
}

.feed-user-tap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--avatar-outline);
}

.feed-names {
  min-width: 0;
}

.feed-names strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-names span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.feed-more {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.feed-more:hover {
  color: var(--text);
  background: var(--interactive-hover);
}

.feed-more:active {
  transform: scale(0.95);
}

.feed-card-media {
  position: relative;
  margin: 0;
  background: var(--media-bg);
}

.feed-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 14, 0.35) 0%,
    transparent 28%,
    transparent 72%,
    rgba(6, 5, 12, 0.45) 100%
  );
}

.feed-card-media img {
  width: 100%;
  display: block;
  max-height: min(72vh, 520px);
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .feed-card:hover .feed-card-media img {
    transform: scale(1.02);
  }
}

.feed-card-foot {
  padding: 0.5rem 0.75rem 0.65rem;
  background: transparent;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.feed-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.35rem;
  margin: -0.35rem;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.feed-actions button:active {
  background: var(--interactive-active);
  transform: scale(0.92);
}

.feed-actions button:hover {
  color: var(--text);
  background: var(--interactive-hover);
}

.feed-like.is-liked {
  color: var(--ig-like);
}

.feed-like.is-liked svg path {
  fill: var(--ig-like);
  stroke: var(--ig-like);
}

.feed-actions svg {
  vertical-align: middle;
}

.feed-caption {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text);
}

.feed-caption .handle {
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 0.35rem;
}

/* Alt gezinme — daralma GPU scale ile (width sıçraması yok), uzun ease */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(1.65rem + env(safe-area-inset-bottom));
  z-index: 30;
  width: calc(100% - 6rem);
  max-width: calc(520px - 6rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.12rem;
  padding: 0.45rem 0.55rem 0.5rem;
  border-radius: 999px;
  transform: translateX(-50%) scale(1);
  transform-origin: center bottom;
  will-change: transform;
  transition:
    transform var(--nav-morph-dur) var(--ease-nav-morph),
    box-shadow var(--nav-morph-dur) var(--ease-nav-morph),
    border-color var(--nav-morph-dur) var(--ease-nav-morph);
  background: var(--nav-pill-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav {
    transition: none;
  }

  .bottom-nav .nav-item {
    transition:
      color 0.28s var(--ease-out),
      background 0.28s var(--ease-out),
      transform 0.18s var(--ease-out);
  }
}

@media (min-width: 900px) {
  .bottom-nav {
    max-width: calc(640px - 6rem);
  }
}

.bottom-nav.is-compact {
  transform: translateX(-50%) scale(0.9);
  border-color: var(--line);
  box-shadow:
    0 4px 2px rgba(255, 255, 255, 0.03) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 14px 38px -14px rgba(0, 0, 0, 0.48),
    0 5px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

.bottom-nav .nav-item {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.35rem 0.28rem 0.4rem;
  border: none;
  background: transparent;
  color: var(--nav-item-fg);
  font-family: inherit;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 999px;
  transition:
    color 0.28s var(--ease-out),
    background 0.28s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.bottom-nav .nav-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav .nav-item:active {
  transform: scale(0.96);
}

.bottom-nav .nav-item svg {
  opacity: 0.72;
  flex-shrink: 0;
  transition: opacity 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}

.bottom-nav .nav-item:hover:not(.is-active),
.bottom-nav .nav-item:focus-visible {
  color: var(--nav-item-fg-hover);
  outline: none;
  background: var(--nav-item-hover-bg);
  box-shadow: none;
}

.bottom-nav .nav-item:hover:not(.is-active) svg {
  opacity: 0.95;
}

.bottom-nav .nav-item.is-active {
  color: var(--nav-item-fg-active);
  opacity: 1;
  background: transparent;
  box-shadow: none;
}

.bottom-nav .nav-item.is-active svg {
  opacity: 1;
  filter: none;
}

.bottom-nav .nav-item.is-active::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--nav-indicator);
  opacity: 1;
  box-shadow: none;
}

/* Profil */
.profile-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  flex-shrink: 0;
}

.profile-info h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}

.profile-stats {
  display: flex;
  gap: 1rem;
  margin: 0.65rem 0;
  font-size: 0.78rem;
}

.profile-stats strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.profile-stats span {
  color: var(--muted);
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1rem 0 0.5rem;
}

.foot-inline {
  margin: 1.5rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.btn.ghost {
  border-color: var(--line);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  padding: 3.5rem 0 2rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--mint);
}

.lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  background: transparent;
  color: var(--text);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.ghost:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--interactive-hover);
}

.btn.small {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}

.hero-panel {
  position: relative;
  min-height: 280px;
}

.orbit {
  position: absolute;
  inset: 10% 5%;
  border: 1px dashed var(--line);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.5;
}

.orbit span:nth-child(1) {
  top: 12%;
  left: 20%;
}
.orbit span:nth-child(2) {
  bottom: 18%;
  right: 14%;
  background: var(--ink);
}
.orbit span:nth-child(3) {
  top: 40%;
  right: 8%;
}

.hero-card {
  position: relative;
  margin-left: auto;
  max-width: 320px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(2deg);
}

.hero-card p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-card li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text);
}

.hero-card li span.kind {
  color: var(--mint);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 3.2rem;
}

.band {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.moments-wrap {
  margin-top: 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.moments {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.moment {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}

.moment img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.moment figcaption {
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.78rem;
}

.moment .dur {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
}

.discover-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
  align-items: center;
}

.search input {
  width: min(420px, 80vw);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.pin {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.pin:hover {
  box-shadow: var(--shadow);
}

.pin img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.pin .meta {
  padding: 0.65rem 0.75rem 0.85rem;
  color: var(--text);
}

.pin .style-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.pin .saved {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: var(--pin-badge-bg);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.pin.liked::after {
  content: "♥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  font-size: 3rem;
  color: var(--mint);
  text-shadow: 0 0 20px rgba(0, 149, 246, 0.6);
  opacity: 0.85;
  pointer-events: none;
}

.studios-loc {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.studios-loc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.studios-loc-status {
  font-size: 0.78rem;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.studios-loc-detail {
  margin-top: 0.65rem;
  font-size: 0.76rem;
  line-height: 1.45;
  word-break: break-word;
}

.studios-loc-detail strong {
  color: var(--fg);
  font-weight: 600;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.studio {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.studio:hover {
  border-color: rgba(0, 149, 246, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.studio img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.studio .box {
  padding: 0.85rem 1rem 1rem;
}

.studio h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.studio .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.studio-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.studio .studio-book {
  pointer-events: auto;
}

/* Stüdyo — rezervasyon sihirbazı (IG masaüstü: siyah zemin, ferah boşluk, yuvarlak formlar) */
.booking-dialog {
  --booking-ig-blue: #0095f6;
  --booking-ig-blue-hover: #47a7ff;
  border: none;
  padding: 0;
  max-width: min(560px, 94vw);
  width: 100%;
  border-radius: 24px;
  background: var(--dialog-elevated);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.booking-dialog::backdrop {
  background: var(--booking-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.booking-inner {
  padding: 1.5rem 1.65rem 1.35rem;
}

.booking-head {
  position: relative;
  padding-right: 2.75rem;
  margin-bottom: 1rem;
}

.booking-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 600;
}

.booking-head h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.booking-studio-line {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.booking-close {
  position: absolute;
  top: -0.15rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--interactive-hover);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}

.booking-close:hover {
  background: var(--interactive-hover-strong);
}

.booking-close:focus-visible {
  outline: 2px solid var(--booking-ig-blue);
  outline-offset: 2px;
}

/* Adım göstergesi — minimal çizgi + daireler */
.booking-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.booking-step-node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.booking-step-idx {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--booking-soft-border-strong);
  background: var(--booking-soft-bg);
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.booking-step-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.25;
}

.booking-step-node.is-active .booking-step-idx {
  border-color: #0095f6;
  background: rgba(0, 149, 246, 0.15);
  color: #47a7ff;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.2);
}

.booking-step-node.is-active .booking-step-label {
  color: var(--text-dim);
}

.booking-step-node.is-done .booking-step-idx {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
}

.booking-step-node.is-done .booking-step-label {
  color: var(--muted);
}

.booking-step-connector {
  flex: 0 0 16px;
  height: 2px;
  margin-top: 15px;
  background: var(--line);
  border-radius: 99px;
  opacity: 1;
}

.booking-pane-intro {
  margin-bottom: 1.35rem;
}

.booking-pane-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.booking-pane-lede {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.booking-loading,
.booking-error,
.booking-empty {
  font-size: 0.78rem;
  margin: 0.5rem 0 0;
}

.booking-demo-note {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(0, 149, 246, 0.08);
  border: 1px solid rgba(0, 149, 246, 0.2);
  color: var(--text-dim);
}

.booking-error {
  color: #f0a8a8;
}

.booking-artist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 440px) {
  .booking-artist-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-artist-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--booking-soft-border);
  background: var(--booking-soft-bg);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.booking-artist-card:hover {
  border-color: var(--line);
  background: var(--booking-soft-bg-hover);
}

.booking-artist-card:focus-visible {
  outline: 2px solid #0095f6;
  outline-offset: 2px;
}

.booking-artist-card.is-selected {
  border-color: rgba(0, 149, 246, 0.55);
  background: rgba(0, 149, 246, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.booking-artist-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--line);
  background: var(--surface-2);
}

.booking-artist-card.is-selected .booking-artist-avatar {
  box-shadow:
    0 0 0 2px var(--canvas),
    0 0 0 4px #f09433,
    0 0 0 5px #dc2743,
    0 0 0 6px #bc1888;
}

.booking-artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-artist-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.booking-artist-info strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.booking-artist-handle {
  font-size: 0.68rem;
  color: #0095f6;
  opacity: 0.95;
}

.booking-artist-styles {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.booking-artist-meta {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.booking-artist-pick {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0095f6;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  align-self: center;
}

.booking-artist-card.is-selected .booking-artist-pick {
  color: #fff;
  background: #0095f6;
}

@media (prefers-reduced-motion: reduce) {
  .booking-artist-card {
    transition: none;
  }
}

.booking-body {
  max-height: min(68vh, 540px);
  overflow-y: auto;
  padding: 0.25rem 0.35rem 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--booking-scrollbar) transparent;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.booking-field span:first-child {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.booking-field input,
.booking-field textarea {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--booking-soft-border);
  background: var(--booking-field-bg);
  color: var(--text);
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
  color: var(--text-faint);
}

.booking-field input:focus,
.booking-field textarea:focus {
  outline: none;
  border-color: rgba(0, 149, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 149, 246, 0.25);
}

.booking-field textarea {
  resize: vertical;
  min-height: 4rem;
}

.booking-datetime-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-field-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}

.booking-date-block {
  margin: 0;
}

.booking-date-strip-outer {
  position: relative;
  margin: 0 -0.15rem;
  padding: 0.2rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.booking-date-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.35rem 0.35rem 0.65rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.booking-date-strip::-webkit-scrollbar {
  display: none;
}

.booking-day-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 4rem;
  padding: 0.65rem 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  border: 1px solid var(--booking-soft-border);
  border-radius: 18px;
  background: var(--booking-soft-bg-mid);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.15s var(--ease-out);
}

.booking-day-chip:hover {
  border-color: var(--line);
  background: var(--booking-soft-bg-high);
}

.booking-day-chip:focus-visible {
  outline: 2px solid #0095f6;
  outline-offset: 2px;
}

.booking-day-chip.is-selected {
  border-color: rgba(0, 149, 246, 0.55);
  background: rgba(0, 149, 246, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.booking-day-chip-wd {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.booking-day-chip.is-selected .booking-day-chip-wd {
  color: #47a7ff;
}

.booking-day-chip-num {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.booking-day-chip-mon {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: capitalize;
}

.booking-time-fieldset {
  padding: 1rem 1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--booking-soft-border);
  background: var(--booking-soft-bg);
}

.booking-time-hint {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.booking-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.booking-legend {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  padding: 0;
}

.booking-time-fieldset .booking-legend {
  margin-bottom: 0.2rem;
}

.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.65rem;
}

@media (max-width: 380px) {
  .booking-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.booking-slot {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 3.55rem;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--booking-soft-border);
  cursor: pointer;
  background: var(--booking-field-bg);
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.booking-slot:hover {
  border-color: var(--line);
  background: var(--booking-soft-bg-hover);
}

.booking-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.4rem;
  pointer-events: none;
}

.booking-slot-time {
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text);
}

.booking-slot-sub {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.booking-slot input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.booking-slot:has(input:checked) {
  border-color: rgba(0, 149, 246, 0.65);
  background: rgba(0, 149, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 149, 246, 0.2);
}

.booking-slot:has(input:checked) .booking-slot-time {
  color: #47a7ff;
}

.booking-slot:has(input:checked) .booking-slot-sub {
  color: rgba(71, 167, 255, 0.85);
}

.booking-slot:focus-within {
  outline: 2px solid rgba(0, 149, 246, 0.45);
  outline-offset: 2px;
}

.booking-summary {
  margin: 0;
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--booking-soft-border);
  background: var(--booking-soft-bg);
}

.booking-summary dt {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.75rem;
}

.booking-summary dt:first-child {
  margin-top: 0;
}

.booking-summary dd {
  margin: 0.25rem 0 0;
  color: var(--text);
}

.booking-hint {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.booking-pane--ok {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
}

.booking-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #47a7ff, #0095f6);
  border: none;
  box-shadow: 0 12px 36px rgba(0, 149, 246, 0.35);
}

.booking-ok-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.booking-ref {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.booking-ok-sub {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.booking-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.booking-dialog .btn.small {
  padding: 0.55rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.booking-dialog .btn.ghost {
  border-color: var(--booking-soft-border-strong);
  color: var(--text);
  background: var(--interactive-hover);
}

.booking-dialog .btn.ghost:hover {
  border-color: var(--line);
  background: var(--interactive-hover-strong);
  color: var(--text);
}

.booking-dialog .btn.primary {
  background: #0095f6;
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 149, 246, 0.35);
}

.booking-dialog .btn.primary:hover {
  background: #47a7ff;
}

/* [hidden] ile aynı özgüllükte display:flex kazanmasın — Tamam yalnızca son adımda görünsün */
.booking-foot[hidden] {
  display: none !important;
}

.booking-foot--single {
  justify-content: flex-end;
}

.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 720px;
}

@media (max-width: 600px) {
  .collage {
    grid-template-columns: 1fr 1fr;
  }
}

.coll {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

button.coll-tap {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  text-align: left;
}

button.coll-tap:hover {
  border-color: rgba(0, 149, 246, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

button.coll-tap:focus-visible {
  outline: 2px solid rgba(0, 149, 246, 0.45);
  outline-offset: 3px;
}

.coll img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coll .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.65rem;
  background: var(--coll-cap-gradient);
  font-size: 0.78rem;
}

.foot {
  padding: 2rem 4vw 3rem;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}

.sheet {
  border: none;
  padding: 0;
  max-width: none;
  width: min(1080px, 96vw);
  background: transparent;
}

.sheet::backdrop {
  background: var(--sheet-backdrop);
  backdrop-filter: blur(6px);
}

.sheet-inner {
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 0;
  max-height: min(88vh, 900px);
}

@media (max-width: 820px) {
  .sheet-body {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

.sheet-fig {
  margin: 0;
  position: relative;
  background: var(--media-bg);
}

.sheet-fig img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.double-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0;
}

.sheet-fig:hover .double-hint {
  opacity: 1;
}

.sheet-meta {
  padding: 1.25rem 1.35rem 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  max-height: min(88vh, 900px);
  -webkit-overflow-scrolling: touch;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* Gönderi başlığı: tarayıcı / serif varsayılan siyah rengini ezer */
.sheet-meta > h3#detail-title {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sheet-meta > p#detail-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sheet-meta > p.muted#detail-artist {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.muted {
  color: var(--muted);
}

.desktop-suggest-sub.muted {
  color: var(--text-dim);
}

.likes {
  font-size: 0.85rem;
  color: var(--mint);
}

/* —— Yorumlar: Reddit oyları + temiz okuma (Instagram/TikTok sadeği) —— */
.comments-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
  margin-top: 0.35rem;
  border-radius: 14px;
}

.comments-panel.is-highlight {
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.35);
}

.comments-toolbar-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comments-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.comments-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--text);
  font-weight: 600;
}

.comments-count {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 149, 246, 0.12);
  color: var(--mint);
}

.comments-lede {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.comments-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.45rem 0;
}

.sort-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* Özel sıralama menüsü — native <option> stillenemez; cam panel + hap tetikleyici */
.tg-select {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.tg-select-trigger {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(100%, 18rem);
}

.tg-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.tg-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(0, 149, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.12);
}

.tg-select.is-open .tg-select-trigger {
  border-color: rgba(0, 149, 246, 0.42);
  background: rgba(27, 24, 34, 0.98);
}

.tg-select-chevron {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.22s var(--ease-out);
}

.tg-select.is-open .tg-select-chevron {
  transform: rotate(180deg);
}

/* fixed: sheet-inner overflow — kesilmesin */
.tg-select-menu {
  position: fixed;
  z-index: 12000;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  display: none;
  border-radius: 16px;
  border: 1px solid rgba(0, 149, 246, 0.22);
  background: linear-gradient(
    165deg,
    rgba(22, 20, 32, 0.94) 0%,
    rgba(10, 9, 14, 0.97) 100%
  );
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  box-shadow:
    0 4px 2px rgba(255, 255, 255, 0.04) inset,
    0 20px 50px -12px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.tg-select-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.tg-select-option {
  margin: 0;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
  transition:
    background 0.18s var(--ease-out),
    color 0.18s var(--ease-out);
}

.tg-select-option:hover,
.tg-select-option:focus-visible {
  outline: none;
  background: var(--interactive-hover);
  color: var(--text);
}

.tg-select-option.is-selected,
.tg-select-option[aria-selected="true"] {
  background: rgba(0, 149, 246, 0.12);
  color: var(--mint);
  box-shadow: 0 0 0 1px rgba(0, 149, 246, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .tg-select-chevron {
    transition: none;
  }
}

.link-btn {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--mint);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--accent-hover);
}

.thread-root {
  flex: 1;
  overflow-y: auto;
  max-height: min(44vh, 400px);
  padding: 0.35rem 0.35rem 0.5rem 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.thread-root:focus-visible {
  outline: 2px solid rgba(0, 149, 246, 0.35);
  outline-offset: 2px;
}

.thread-root::-webkit-scrollbar {
  width: 6px;
}

.thread-root::-webkit-scrollbar-track {
  background: transparent;
}

.thread-root::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 99px;
}

.thread-node {
  margin-bottom: 0.15rem;
}

.thread-comment {
  display: flex;
  gap: 0.55rem;
  padding: 0.6rem 0.45rem;
  border-radius: 12px;
}

.thread-comment:hover {
  background: var(--interactive-hover);
}

.thread-votes {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding-top: 0.1rem;
  width: 30px;
}

.vote-btn {
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.12rem;
  line-height: 1;
  border-radius: 4px;
}

.vote-btn:hover {
  color: var(--mint);
  background: rgba(0, 149, 246, 0.1);
}

.vote-btn.down:hover {
  color: #f0a8b4;
  background: rgba(240, 168, 180, 0.12);
}

.vote-btn svg {
  display: block;
}

.thread-score {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-height: 1.1rem;
  line-height: 1.1rem;
}

.thread-main-row {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.thread-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--thread-avatar-fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.thread-body {
  flex: 1;
  min-width: 0;
}

.thread-bubble {
  padding: 0.45rem 0.55rem 0.55rem;
  border-radius: 12px;
  background: var(--thread-bubble-bg);
  border: 1px solid var(--line);
}

.thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
}

.thread-author {
  font-weight: 600;
  color: var(--text);
}

.thread-badge {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: var(--interactive-hover);
  color: var(--muted);
  border: 1px solid var(--line);
}

.thread-badge.op {
  background: rgba(0, 149, 246, 0.12);
  border-color: rgba(0, 149, 246, 0.35);
  color: var(--mint);
}

.thread-time {
  color: var(--text-dim);
}

.thread-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--thread-text);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.thread-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expand-btn {
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--mint);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.expand-btn:hover {
  text-decoration: underline;
}

.thread-actions {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.65rem;
}

.thread-actions button {
  border: none;
  background: none;
  color: var(--thread-actions-fg);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem 0;
}

.thread-actions button:hover {
  color: var(--mint);
}

.thread-children {
  margin-left: 0;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(0, 149, 246, 0.22);
  margin-top: 0.2rem;
}

.thread-children[data-depth="2"],
.thread-children[data-depth="3"] {
  border-left-color: var(--thread-child-border);
}

.composer-sticky {
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding: 0.85rem 0.65rem 0.65rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--composer-bg);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.composer-lead {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.composer-sticky.is-reply {
  border-color: rgba(0, 149, 246, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 149, 246, 0.12);
}

.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: rgba(0, 149, 246, 0.08);
  border: 1px solid rgba(0, 149, 246, 0.25);
  font-size: 0.78rem;
  color: var(--mint);
}

.reply-banner-dismiss {
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.reply-banner-dismiss:hover {
  color: var(--text);
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.composer-form input,
.composer-form textarea {
  font-family: inherit;
  border-radius: 12px;
  border: 1px solid var(--composer-input-border);
  background: var(--composer-input-bg);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
}

.composer-form input::placeholder,
.composer-form textarea::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.composer-form textarea {
  resize: vertical;
  min-height: 72px;
}

.composer-form textarea:focus,
.composer-form input:focus {
  outline: none;
  border-color: rgba(0, 149, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.08);
  background: var(--composer-input-bg-focus);
}

.composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.composer-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.composer-hint kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--kbd-border);
  background: var(--kbd-bg);
  color: var(--text-dim);
}

.composer-actions {
  display: flex;
  justify-content: flex-end;
}

.icon-btn.close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--icon-btn-bg);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Marka — buton */
.app-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.25rem 0.35rem;
  margin: -0.25rem;
  border-radius: 10px;
}

.app-brand:hover {
  background: var(--interactive-hover);
}

.pill-btn {
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
}

.pill-btn:hover {
  border-color: rgba(0, 149, 246, 0.35);
}

.profile-stat-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
}

.profile-stat-btn:hover {
  background: var(--interactive-hover);
}

.profile-stat-btn strong {
  font-size: 1rem;
}

.profile-stat-btn span {
  font-size: 0.72rem;
  color: var(--muted);
}

.likes[role="button"] {
  cursor: pointer;
  border-radius: 8px;
  padding: 0.2rem 0.35rem;
  margin: -0.2rem -0.35rem;
  width: fit-content;
}

.likes[role="button"]:hover {
  background: rgba(0, 149, 246, 0.08);
}

.likes[role="button"]:focus-visible {
  outline: 2px solid rgba(0, 149, 246, 0.45);
  outline-offset: 2px;
}

/* Demo modallar */
.demo-modal {
  border: none;
  padding: 0;
  max-width: calc(100vw - 2rem);
  width: 400px;
  background: transparent;
}

.demo-modal::backdrop {
  background: var(--demo-modal-backdrop);
  backdrop-filter: blur(4px);
}

.demo-modal-box {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.demo-modal-box h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--text);
}

.demo-modal-body {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-line;
}

.demo-modal-textarea {
  width: 100%;
  margin: 0.5rem 0 1rem;
  font-family: inherit;
  font-size: 0.86rem;
  border-radius: 12px;
  border: 1px solid var(--composer-input-border);
  background: var(--composer-input-bg);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  resize: vertical;
  min-height: 72px;
}

.demo-modal-textarea::placeholder {
  color: var(--text-faint);
}

.demo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

html[data-theme="light"] .tg-select-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
