/* MyBook - Design System & Modern Aesthetics */

:root {
  color-scheme: dark;
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --bg-glass: rgba(15, 23, 42, 0.85);
  
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.3);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.3);
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px var(--accent-amber-glow);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

html, body {
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.06) 0%, transparent 45%);
}

/* Global Dark Theme Select & Option Dropdown Engine */
select, option, optgroup {
  color-scheme: dark !important;
  background-color: #0f172a;
  color: #f8fafc;
}

select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  padding: 8px 12px;
}

/* Global Touch & Click Responsiveness */
button, a, input, select, textarea, .tab-pill, .book-card-item, .media-type-btn, .nav-item, .btn-primary, .btn-secondary, .brand {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* App Container */
.app-layout {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 105px; /* Mobil alt bar ve buton çakışmasını kesin çözer */
  position: relative;
}

/* =====================================================
   TOPBAR
===================================================== */
.topbar {
  width: calc(100% - 24px);
  max-width: 1450px;
  min-height: 84px;
  margin: 12px auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px 12px 36px 12px;
  background: linear-gradient(175deg, rgba(20, 31, 27, 0.96) 0%, rgba(9, 15, 13, 0.98) 100%);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.07),
    inset 0 -10px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 10px;
  z-index: 1000;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease;
  will-change: transform, opacity;
}

/* Sol Marka Alanı */
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.brand-mark {
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  transition: transform .3s ease, filter .3s ease;
  user-select: none;
}

.brand-mark:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.1);
}

.brand-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* Orta Nav: Kitap / Film / Dizi (Organik Yaprak Uyumlu) */
.media-nav {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 24px 8px 24px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.media-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 18px 6px 18px 6px;
  color: #6d7d76;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition: flex 0.42s cubic-bezier(0.34, 1.45, 0.64, 1),
              transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.3s ease,
              background 0.3s ease;
  user-select: none;
  overflow: visible;
}

.media-tab:hover:not(.active) {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}

.tab-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.tab-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

/* Seçilen Medya Türü Butonu (Organik Yaprak Teması) */
.media-tab.active {
  z-index: 5;
  color: #ffffff;
  background: radial-gradient(ellipse at 50% 0%, rgba(134, 239, 172, 0.5) 0%, transparent 65%),
              linear-gradient(175deg, #1f734f 0%, #0d3826 100%);
  border: 1px solid rgba(134, 239, 172, 0.55);
  border-radius: 6px 24px 6px 24px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(34, 197, 94, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.6),
    inset 0 -3px 8px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
  animation: leafBloom 0.38s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.media-tab.active::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 32px;
  height: 2px;
  background: radial-gradient(ellipse at center, #ffffff 30%, transparent 80%);
  border-radius: 50%;
  filter: blur(0.5px);
}

.media-tab.active .tab-icon svg {
  stroke: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transform: scale(1.1);
}

.media-tab.active span:last-child {
  font-weight: 700;
  color: #f2fbf5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Sağ Aksiyonlar */
.actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 17px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Bildirim */
.notification {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.notification:hover {
  background: rgba(134, 239, 172, 0.12);
  transform: scale(1.05);
}

.notification svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s ease;
}

.notification:hover svg {
  stroke: #ffffff;
}

.notification-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

/* Profil Avatarı */
.header-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(134, 239, 172, 0.6);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.header-avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
}

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
  .topbar {
    width: calc(100% - 16px);
    min-height: 80px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 25px;
  }
  .brand-mark {
    height: 48px;
    padding: 0 12px;
    border-radius: 16px;
  }
  .brand-mark-icon {
    width: 22px;
    height: 22px;
  }
  .brand-mark-icon svg {
    width: 22px;
    height: 22px;
  }
  .brand-mark-text {
    font-size: 16px;
  }
  .media-nav {
    height: 56px;
  }
  .media-tab {
    height: 56px;
    padding: 0 9px;
    gap: 5px;
    font-size: 14px;
  }
  .tab-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
  .tab-icon svg {
    width: 20px;
    height: 20px;
  }
  .actions {
    gap: 7px;
    padding-left: 9px;
  }
  .header-avatar-img {
    width: 44px;
    height: 44px;
  }
  .notification {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

/* Mobil (max-width: 600px) */
@media (max-width: 600px) {
  .topbar {
    width: calc(100% - 10px);
    height: 68px;
    min-height: 68px;
    margin: 5px auto;
    padding: 7px 8px;
    gap: 6px;
    border-radius: 21px;
  }
  .brand-mark {
    height: 44px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 14px;
  }
  .brand-mark-icon {
    width: 20px;
    height: 20px;
  }
  .brand-mark-icon svg {
    width: 20px;
    height: 20px;
  }
  .brand-mark-text {
    font-size: 14px;
  }
  .media-nav {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 3px;
    gap: 4px;
    border-radius: 18px 6px 18px 6px;
  }
  .media-tab {
    height: 40px;
    padding: 0 6px;
    gap: 4px;
    font-size: 12px;
    border-radius: 14px 4px 14px 4px;
  }
  .media-tab.active {
    border-radius: 4px 18px 4px 18px;
  }
  .tab-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .tab-icon svg {
    width: 17px;
    height: 17px;
  }
  .actions {
    gap: 3px;
    padding-left: 0;
    border-left: 0;
  }
  .notification {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .notification svg {
    width: 21px;
    height: 21px;
  }
  .notification-dot {
    width: 6px;
    height: 6px;
    top: 2px;
    right: 2px;
  }
  .header-avatar-img {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }
}

/* Küçük Telefon (max-width: 430px) */
@media (max-width: 430px) {
  .topbar {
    gap: 5px;
    padding: 6px 7px;
  }
  .brand-mark {
    height: 40px;
    padding: 0 8px;
    gap: 5px;
    border-radius: 12px;
  }
  .brand-mark-icon {
    width: 18px;
    height: 18px;
  }
  .brand-mark-icon svg {
    width: 18px;
    height: 18px;
  }
  .brand-mark-text {
    font-size: 13px;
  }
  .media-tab {
    padding: 0 3px;
    font-size: 11px;
    gap: 3px;
  }
  .tab-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .tab-icon svg {
    width: 17px;
    height: 17px;
  }
  .header-avatar-img {
    width: 34px;
    height: 34px;
  }
  .notification {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
}

/* Çok Küçük Telefon (max-width: 360px) */
@media (max-width: 360px) {
  .topbar {
    height: 61px;
    min-height: 61px;
    padding: 5px 6px;
    gap: 4px;
    border-radius: 18px;
  }
  .brand-mark {
    height: 36px;
    padding: 0 6px;
    gap: 4px;
    border-radius: 10px;
  }
  .brand-mark-icon {
    width: 16px;
    height: 16px;
  }
  .brand-mark-icon svg {
    width: 16px;
    height: 16px;
  }
  .brand-mark-text {
    font-size: 12px;
  }
  .media-nav {
    height: 45px;
  }
  .media-tab {
    height: 45px;
    padding: 0 2px;
    font-size: 10px;
    gap: 2px;
  }
  .tab-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .tab-icon svg {
    width: 15px;
    height: 15px;
  }
  .header-avatar-img {
    width: 32px;
    height: 32px;
  }
  .notification {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  .notification svg {
    width: 18px;
    height: 18px;
  }
}

/* 320px Altında */
@media (max-width: 320px) {
  .media-tab span:last-child {
    display: none;
  }
  .media-tab {
    padding: 0 5px;
  }
  .tab-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .tab-icon svg {
    width: 19px;
    height: 19px;
  }
}

.btn-icon-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* =========================================
   NAVBAR WRAPPER & ORGANİK YAPRAK TABAN
========================================= */
.nav-wrapper {
  position: fixed !important;
  bottom: 16px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: min(560px, calc(100% - 24px)) !important;
  display: flex !important;
  justify-content: center !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, opacity;
}

/* ========================================================
   🚀 PREMIUM SMOOTH AUTO-HIDE / REVEAL (TOPBAR & NAVBAR)
======================================================== */
body.chrome-bars-hidden .topbar,
.topbar.bars-hidden,
body:has(#shorts-main-modal) .topbar,
body:has(.shorts-container) .topbar,
body:has(#shorts-mount-container:not(:empty)) .topbar {
  transform: translateY(calc(-100% - 32px)) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.chrome-bars-hidden .nav-wrapper,
.nav-wrapper.bars-hidden {
  transform: translateY(calc(100% + 48px)) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Shorts modunda alt navbar daima sabit ve görünür kalır, üst topbar ise tam ekran için gizlidir */
body:has(#shorts-main-modal) .nav-wrapper,
body:has(.shorts-container) .nav-wrapper,
body:has(#shorts-mount-container:not(:empty)) .nav-wrapper {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.bottom-nav {
  position: relative !important;
  width: 100% !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  background: linear-gradient(175deg, rgba(20, 31, 27, 0.96) 0%, rgba(9, 15, 13, 0.98) 100%) !important;
  
  /* 1. Görseldeki Yaprak Dış Hatları: Çapraz asimetrik kavis */
  border-radius: 28px 10px 28px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;

  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.07),
    inset 0 -10px 20px rgba(0, 0, 0, 0.4) !important;

  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  pointer-events: auto !important;
  margin: 0 !important;
}

/* Yaprak üstü damar / ışık çizgisi */
.bottom-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

/* =========================================
   NAV ITEM (ESNEK GENİŞLEME)
========================================= */
.nav-item {
  position: relative !important;
  flex: 1 !important; /* Normalde eşit pay */
  height: 50px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  color: #6d7d76 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  user-select: none !important;
  padding: 0 !important;
  z-index: 2 !important;

  /* Akıcı genişleme ve yükselme */
  transition: flex 0.35s cubic-bezier(0.34, 1.45, 0.64, 1),
              transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.3s ease !important;
}

.nav-item .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
  position: relative;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

.nav-item .label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.1px;
  color: inherit;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

/* =========================================
   SEÇİLEN YAPRAK (Zarif & Kompakt Geometri)
========================================= */
.nav-item.active {
  flex: 1.35 !important; /* Dengeli ve şık genişleme */
  height: 58px !important;
  transform: translateY(-5px) !important; /* Zarif yukarı taşma */
  color: #ffffff !important;
  z-index: 10 !important;
}

/* Asimetrik Yaprak Biçimi */
.nav-item.active::before {
  content: "";
  position: absolute;
  inset: 0;

  /* 🌿 Zarif Yaprak Formu */
  border-radius: 6px 24px 6px 24px;

  background: 
    radial-gradient(ellipse at 50% 0%, rgba(134, 239, 172, 0.45) 0%, transparent 65%),
    linear-gradient(175deg, #1f734f 0%, #0d3826 100%);
  
  border: 1px solid rgba(134, 239, 172, 0.55);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(34, 197, 94, 0.3),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
    inset 0 -3px 8px rgba(0, 0, 0, 0.4);

  z-index: -1;
  animation: leafBloom 0.32s cubic-bezier(0.34, 1.45, 0.64, 1);
}

/* Yaprağın sırtındaki tepe ışıltısı */
.nav-item.active::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 26px;
  height: 2px;
  background: radial-gradient(ellipse at center, #ffffff 30%, transparent 80%);
  border-radius: 50%;
  filter: blur(0.5px);
}

.nav-item.active svg {
  stroke: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  transform: scale(1.06);
}

.nav-item.active .label {
  font-weight: 650;
  color: #f2fbf5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Sohbetler Bildirim Rozeti */
.nav-badge-pill {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #060b09;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

/* Açılma / Dalgalanma Animasyonu */
@keyframes leafBloom {
  0% {
    transform: scale(0.94);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Main Content Area */
.view-container {
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard / Home View */
.coach-alert-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.coach-avatar {
  font-size: 28px;
  background: rgba(245, 158, 11, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coach-content {
  flex: 1;
}

.coach-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 4px;
}

.coach-speech {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

/* Active Book Showcase Card */
.active-book-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.active-book-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.book-cover-wrap {
  width: 110px;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  background: #1e293b;
  position: relative;
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.active-book-card:hover .book-cover-img {
  transform: scale(1.05);
}

.book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  width: fit-content;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.book-author {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.progress-container {
  margin-top: 12px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.08);
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), #ea580c);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--accent-amber-glow);
}

.active-book-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #5ab58a, #7198c1);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(90, 181, 138, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(113, 152, 193, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Quick Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  background-color: var(--bg-card);
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.60) 100%), url('https://images.unsplash.com/photo-1507842229458-5d454659b0d2?auto=format&fit=crop&q=80&w=600');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(245, 158, 11, 0.06);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(4px);
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(245, 158, 11, 0.12);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-amber);
  opacity: 0.9;
  box-shadow: 0 0 10px var(--accent-amber);
}

.stat-box.indigo {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.60) 100%), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=600');
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(99, 102, 241, 0.06);
}
.stat-box.indigo:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(99, 102, 241, 0.12);
}
.stat-box.indigo::before {
  background: var(--accent-indigo);
  box-shadow: 0 0 10px var(--accent-indigo);
}

.stat-box.emerald {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.60) 100%), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&q=80&w=600');
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(16, 185, 129, 0.06);
}
.stat-box.emerald:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(16, 185, 129, 0.12);
}
.stat-box.emerald::before {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.stat-box.rose {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.60) 100%), url('https://images.unsplash.com/photo-1509198397868-475647b2a1e5?auto=format&fit=crop&q=80&w=600');
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(244, 63, 94, 0.06);
}
.stat-box.rose:hover {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(244, 63, 94, 0.12);
}
.stat-box.rose::before {
  background: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose);
}

.stat-title {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.stat-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* ========================================================
   🎬 CINEMATIC STATS GRID & CARDS (DESIGN SYSTEM 2026)
======================================================== */
.stats-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-header-clapper {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

.stats-header-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-header-highlight {
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.stats-header-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #64748b;
  text-transform: uppercase;
}

.stats-header-tagline span {
  color: #475569;
  margin: 0 4px;
}

/* 2x2 Grid Container */
.stats-grid-cinematic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

/* Cinematic Stat Card */
.stat-card-cinematic {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 152px;
  background-color: #060911;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: default;
}

.stat-card-cinematic:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
}

/* Glowing Neon Edge on the left */
.stat-neon-edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 4px 0 0 4px;
  transition: width 0.2s ease, filter 0.2s ease;
}

.stat-card-cinematic:hover .stat-neon-edge {
  width: 6px;
  filter: brightness(1.25);
}

/* Vibrant Artwork on the Right */
.stat-art-bg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  background-size: cover;
  background-position: center right;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.4s ease;
}

.stat-card-cinematic:hover .stat-art-bg {
  transform: scale(1.03);
}

/* Smooth Horizontal Gradient Fade */
.stat-art-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    #060911 0%, 
    #060911 38%, 
    rgba(6, 9, 17, 0.85) 54%, 
    rgba(6, 9, 17, 0.35) 75%, 
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Content Layout (Above the background & gradient) */
.stat-content-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Top Badge Row */
.stat-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #cbd5e1;
  text-transform: uppercase;
}

.stat-badge-icon {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Big Metric Row */
.stat-main-metric {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.05;
  margin: 8px 0 6px 0;
  letter-spacing: -0.5px;
}

.stat-big-num {
  color: #ffffff;
}

.stat-num-underline-amber {
  border-bottom: 3.5px solid #f59e0b;
  padding-bottom: 2px;
}

.stat-num-underline-blue {
  border-bottom: 3.5px solid #3b82f6;
  padding-bottom: 2px;
}

.stat-unit {
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
}

/* Subtitle / Footer Label */
.stat-sub-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

/* Card 4 - Streak Pill Badges Row */
.stat-streak-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 4px 0;
}

.stat-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.stat-streak-pill .pill-ico {
  font-size: 20px;
}

.stat-streak-pill .pill-val {
  color: #ffffff;
}

/* Themes */
/* 1. Amber / Sunset Castle Theme */
.stat-card-cinematic.theme-amber {
  border-color: rgba(245, 158, 11, 0.32);
}
.stat-card-cinematic.theme-amber:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.15);
}
.stat-card-cinematic.theme-amber .stat-neon-edge {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.9);
}
.stat-card-cinematic.theme-amber .stat-art-bg {
  background-image: url('../assets/stats/stat_pace_sunset.jpg');
}

/* 2. Emerald / Misty Castle Theme */
.stat-card-cinematic.theme-emerald {
  border-color: rgba(16, 185, 129, 0.32);
}
.stat-card-cinematic.theme-emerald:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(16, 185, 129, 0.15);
}
.stat-card-cinematic.theme-emerald .stat-neon-edge {
  background: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.9);
}
.stat-card-cinematic.theme-emerald .stat-art-bg {
  background-image: url('../assets/stats/stat_time_castle.png');
}

/* 3. Royal Blue / Earth & Space Theme */
.stat-card-cinematic.theme-blue {
  border-color: rgba(59, 130, 246, 0.32);
}
.stat-card-cinematic.theme-blue:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(59, 130, 246, 0.15);
}
.stat-card-cinematic.theme-blue .stat-neon-edge {
  background: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.9);
}
.stat-card-cinematic.theme-blue .stat-art-bg {
  background-image: url('../assets/stats/stat_estimate_earth.png');
}

/* 4. Rose / Gaming & Cinema Popcorn Theme */
.stat-card-cinematic.theme-rose {
  border-color: rgba(244, 63, 94, 0.32);
  cursor: pointer;
}
.stat-card-cinematic.theme-rose:hover {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(244, 63, 94, 0.15);
}
.stat-card-cinematic.theme-rose .stat-neon-edge {
  background: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.9);
}
.stat-card-cinematic.theme-rose .stat-art-bg {
  background-image: url('../assets/stats/stat_streak_gaming.png');
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-grid-cinematic {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stats-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .stats-header-title {
    font-size: 20px;
  }
  .stats-header-clapper {
    font-size: 22px;
  }
  .stats-header-tagline {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .stat-card-cinematic {
    min-height: 135px;
    padding: 16px 18px;
  }
  .stat-main-metric {
    font-size: 28px;
  }
  .stat-unit {
    font-size: 19px;
  }
  .stat-art-bg {
    width: 60%;
  }
}

/* 📱 300px - 450px Ekstra Kompakt Mobil Optimizasyonu */
@media (max-width: 450px) {
  .stats-section-header {
    margin-bottom: 12px;
    gap: 4px;
  }
  .stats-header-left {
    gap: 7px;
    width: 100%;
  }
  .stats-header-clapper {
    font-size: 19px;
    flex-shrink: 0;
  }
  .stats-header-title {
    font-size: clamp(14px, 4.3vw, 17px);
    letter-spacing: -0.3px;
    line-height: 1.15;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 4px;
  }
  .stats-header-tagline {
    font-size: 8.5px;
    letter-spacing: 1px;
    color: #64748b;
    white-space: nowrap;
  }
  .stats-grid-cinematic {
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat-card-cinematic {
    min-height: 118px;
    padding: 13px 15px;
    border-radius: 16px;
  }
  .stat-neon-edge {
    width: 4px;
  }
  .stat-card-cinematic:hover .stat-neon-edge {
    width: 5px;
  }
  .stat-badge-row {
    font-size: 10px;
    letter-spacing: 0.7px;
    gap: 5px;
  }
  .stat-badge-icon {
    font-size: 12px;
  }
  .stat-main-metric {
    font-size: 24px;
    margin: 4px 0 2px 0;
    gap: 5px;
    line-height: 1.1;
  }
  .stat-unit {
    font-size: 16px;
  }
  .stat-num-underline-amber,
  .stat-num-underline-blue {
    border-bottom-width: 2.5px;
    padding-bottom: 1.5px;
  }
  .stat-sub-label {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.2;
  }
  .stat-streak-row {
    gap: 8px;
    margin: 3px 0 2px 0;
  }
  .stat-streak-pill {
    font-size: 17px;
    gap: 4px;
  }
  .stat-streak-pill .pill-ico {
    font-size: 15px;
  }
  .stat-art-bg {
    width: 53%;
  }
  .stat-art-gradient {
    background: linear-gradient(90deg, 
      #060911 0%, 
      #060911 44%, 
      rgba(6, 9, 17, 0.88) 60%, 
      rgba(6, 9, 17, 0.35) 80%, 
      transparent 100%
    );
  }
}

@media (max-width: 340px) {
  .stats-header-title {
    font-size: 13.5px;
    gap: 3px;
  }
  .stats-header-clapper {
    font-size: 17px;
  }
  .stats-header-tagline {
    font-size: 7.5px;
    letter-spacing: 0.7px;
  }
  .stat-card-cinematic {
    padding: 11px 13px;
    min-height: 110px;
  }
  .stat-main-metric {
    font-size: 21px;
  }
  .stat-unit {
    font-size: 14px;
  }
  .stat-streak-pill {
    font-size: 15px;
  }
}

/* =========================================
   KÜTÜPHANE / TAKİP KOMPAKT ORGANİK BAR
========================================= */
.library-control-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(175deg, rgba(20, 31, 27, 0.96) 0%, rgba(9, 15, 13, 0.98) 100%);
  border-radius: 28px 10px 28px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  margin-bottom: 22px;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.07),
    inset 0 -10px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.library-control-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.4), transparent);
  pointer-events: none;
}

.lib-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.lib-control-row .lib-control-group {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.lib-control-row .lib-select-wrapper {
  width: 100%;
  min-width: 0;
}

.lib-control-row .lib-select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.lib-control-row .lib-search-container {
  width: 100%;
  flex: 1;
}

.lib-control-group {
  display: flex;
  align-items: center;
  position: relative;
}

.lib-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px 6px 18px 6px;
  padding: 0 12px;
  height: 42px;
  transition: all 0.35s cubic-bezier(0.34, 1.45, 0.64, 1);
  cursor: pointer;
}

.lib-select-wrapper:hover,
.lib-select-wrapper:focus-within {
  border-color: rgba(134, 239, 172, 0.6);
  background: radial-gradient(ellipse at 50% 0%, rgba(134, 239, 172, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(34, 197, 94, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.lib-select-icon {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lib-select {
  color-scheme: dark !important;
  background: transparent;
  color: #f2fbf5;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  padding-right: 4px;
}

.lib-select option {
  color-scheme: dark !important;
  background: #09120f;
  color: #f2fbf5;
  font-size: 13px;
  padding: 8px 12px;
}

/* Canlı Arama Input Kapsayıcısı */
.lib-search-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px 6px 18px 6px;
  height: 42px;
  padding: 0 12px;
  flex: 1 1 180px;
  min-width: 140px;
  transition: all 0.35s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.lib-search-container:hover,
.lib-search-container:focus-within,
.lib-search-container.has-query {
  border-color: rgba(134, 239, 172, 0.6);
  background: radial-gradient(ellipse at 50% 0%, rgba(134, 239, 172, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(34, 197, 94, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.lib-search-icon {
  font-size: 14px;
  color: #6d7d76;
  pointer-events: none;
}

.lib-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
}

.lib-search-input::placeholder {
  color: #6d7d76;
  font-weight: 500;
}

.lib-search-clear {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lib-search-clear:hover {
  background: rgba(244, 63, 94, 0.4);
  color: #ffffff;
  transform: scale(1.1);
}

.lib-reset-btn {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  font-size: 12px;
  font-weight: 700;
  border-radius: 14px 4px 14px 4px;
  height: 42px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.34, 1.45, 0.64, 1);
  animation: leafBloom 0.35s ease;
}

/* ================= 🎛️ GELİŞTİRİLMİŞ FİLTRE TEASER & EXPANDABLE CARD ================= */
.discover-filter-collapsed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(175deg, rgba(20, 31, 27, 0.96) 0%, rgba(9, 15, 13, 0.98) 100%);
  border-radius: 20px 8px 20px 8px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 12px 16px;
  cursor: pointer;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.45, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.discover-filter-collapsed-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.5), transparent);
  pointer-events: none;
}

.discover-filter-collapsed-card:hover {
  border-color: rgba(134, 239, 172, 0.7);
  background: radial-gradient(ellipse at 50% 0%, rgba(134, 239, 172, 0.15) 0%, rgba(9, 15, 13, 0.98) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75), 0 0 20px rgba(34, 197, 94, 0.25);
}

.discover-collapsed-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discover-collapsed-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

.discover-collapsed-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discover-collapsed-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.discover-collapsed-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.discover-collapsed-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  transition: all 0.2s ease;
}

.discover-filter-collapsed-card:hover .discover-collapsed-action {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.04);
}

.discover-collapsed-arrow {
  font-size: 13px;
  transition: transform 0.25s ease;
}

.discover-control-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(175deg, rgba(20, 31, 27, 0.96) 0%, rgba(9, 15, 13, 0.98) 100%);
  border-radius: 28px 10px 28px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  margin-bottom: 0px;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.07),
    inset 0 -10px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  animation: filterExpandAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes filterExpandAnim {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.discover-control-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.4), transparent);
  pointer-events: none;
}

.discover-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2px;
}

.discover-control-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #34d399;
}

.btn-discover-collapse {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-discover-collapse:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fda4af;
}

.discover-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.discover-control-row .lib-control-group {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.discover-control-row .lib-select-wrapper {
  width: 100%;
  min-width: 0;
}

.discover-control-row .lib-select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.discover-control-row .lib-search-container {
  width: 100%;
  flex: 1;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

@media (min-width: 600px) {
  .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .books-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .books-grid {
    gap: 10px;
  }
}

.book-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.book-card-item:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-lg);
}

.card-cover {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  background: #1e293b;
  position: relative;
  flex-shrink: 0;
}

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

.card-status-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.card-footer-info {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Kart Üzerinde Kullanıcı Yorumu / Notu */
.card-user-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 5px 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(134, 239, 172, 0.22);
  border-radius: 8px 3px 8px 3px;
  font-size: 11px;
  line-height: 1.35;
  color: #cbd5e1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.card-user-note:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(134, 239, 172, 0.45);
}

.card-user-note .note-icon {
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-user-note .note-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
  color: #a7f3d0;
  font-weight: 500;
}

/* Kart Puan ve Durum Rozetleri */
.card-rating-badge {
  color: #f59e0b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

.card-unrated-badge {
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.card-unrated-badge:hover {
  color: #f2fbf5;
  border-color: rgba(134, 239, 172, 0.5);
  background: rgba(16, 185, 129, 0.15);
}

.card-progress-badge {
  color: #34d399;
  font-weight: 700;
}

/* Modals */
#modal-container {
  position: static;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1500000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch;
}

#user-profile-modal-overlay,
#new-chat-search-modal-overlay,
#friend-item-discover-modal-overlay,
#custom-disc-report-modal-overlay,
#custom-disc-delete-modal-overlay,
#delete-item-modal-overlay,
#delete-account-modal-overlay,
.settings-modal-overlay,
#media-share-sheet-overlay,
#friend-full-profile-screen {
  z-index: 3500000 !important;
}

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 36px 20px;
  position: relative;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

#autocomplete-dropdown {
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px), (max-height: 800px) {
  .modal-overlay {
    align-items: flex-start !important;
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .modal-content {
    max-height: 90vh !important;
    max-height: 90dvh !important;
    padding: 16px 16px 36px 16px;
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 0 3px var(--accent-amber-glow);
}

.form-select {
  color-scheme: dark !important;
}

.form-select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 8px;
  font-size: 24px;
  cursor: pointer;
}

.star-rating .star {
  color: rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease;
}

.star-rating .star.filled {
  color: #fbbf24;
}

.star-rating .star:hover {
  transform: scale(1.2);
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-card.locked {
  opacity: 0.45;
  filter: grayscale(0.8);
}

.badge-icon {
  font-size: 30px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.badge-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999999 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none !important; /* Asla tıklamaları engellemesin */
}

.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ================================================================
   MYBOOK - SPOTIFY WRAPPED / RECAP STORY THEME & ANIMATIONS
   ================================================================ */

@keyframes pulseAura {
  0% { transform: scale(1) rotate(0deg); opacity: 0.5; filter: blur(60px); }
  50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; filter: blur(80px); }
  100% { transform: scale(1) rotate(360deg); opacity: 0.5; filter: blur(60px); }
}

@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(35px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatBook {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes storyBarProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.story-wrapper-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(25px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.story-screen-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 92vh;
  max-height: 840px;
  background: #090d16;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.story-aura-bg {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.35), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.35), transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.3), transparent 60%);
  animation: pulseAura 12s infinite linear;
  pointer-events: none;
  z-index: 1;
}

.story-header-bars {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 16px 18px 8px;
}

.story-bar-item {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
}

.story-bar-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  box-shadow: 0 0 8px #fff;
}

.story-bar-fill.completed {
  width: 100% !important;
}

.story-bar-fill.active {
  animation: storyBarProgress 6s linear forwards;
}

.story-user-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 8px;
}

.story-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-amber);
  object-fit: cover;
}

.story-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.story-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.story-body-content {
  position: relative;
  z-index: 10;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  text-align: center;
  overflow-y: auto;
  scrollbar-width: none;
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.story-body-content::-webkit-scrollbar {
  display: none;
}

.story-tap-overlay {
  position: absolute;
  top: 70px;
  bottom: 80px;
  width: 35%;
  z-index: 25;
  cursor: pointer;
}
.story-tap-left { left: 0; }
.story-tap-right { right: 0; width: 65%; }

.story-bottom-action {
  position: relative;
  z-index: 30;
  padding: 12px 20px 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 75%, transparent);
}

/* ================= AI PREDICTIVE RECOMMENDATIONS & ROULETTE STYLES ================= */
.ai-recommendation-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.1);
}

.ai-recommendation-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ai-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-dna-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.ai-match-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.roulette-btn,
.btn-wrapped-story {
  background: linear-gradient(135deg, #310037, #9436c1) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  width: 100% !important;
  height: 48px !important;
  padding: 12px 20px !important;
  border-radius: var(--radius-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(148, 54, 193, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.roulette-btn:hover,
.btn-wrapped-story:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(148, 54, 193, 0.65) !important;
}

/* Roulette Spinner Modal */
.roulette-card-modal {
  background: #0f172a;
  border: 2px solid var(--accent-amber);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spinPick {
  0% { transform: scale(0.9) rotateY(0deg); filter: blur(4px); opacity: 0.7; }
  50% { transform: scale(1.05) rotateY(180deg); filter: blur(2px); }
  100% { transform: scale(1) rotateY(360deg); filter: blur(0); opacity: 1; }
}

.roulette-animating {
  animation: spinPick 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================= SPOTIFY-STYLE AUTH WIZARD STYLES ================= */
.auth-screen-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #090d16;
  position: relative;
  overflow: hidden;
}

.auth-aura-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(236, 72, 153, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulseAura 8s infinite alternate ease-in-out;
  pointer-events: none;
}

.auth-card-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.auth-brand-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-brand-logo-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-logo-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(236, 72, 153, 0.25) 50%, transparent 70%);
  filter: blur(16px);
  animation: pulseLogoGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseLogoGlow {
  0% { transform: scale(0.92); opacity: 0.65; }
  100% { transform: scale(1.12); opacity: 1; filter: blur(20px); }
}

.auth-brand-logo-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(245, 158, 11, 0.45));
  z-index: 1;
}

.auth-brand-logo {
  font-size: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.4));
}

.auth-brand-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.auth-brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-progress-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.auth-step-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.auth-step-bar.active {
  background: linear-gradient(90deg, var(--accent-amber), #ec4899);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.auth-step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.auth-step-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.3;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 10px;
}

.auth-switch-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-switch-link a {
  color: var(--accent-amber);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch-link a:hover {
  text-decoration: underline;
}

.form-help-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.btn-toggle-password:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.15) !important;
}

.animate-slide-in {
  animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ================= 📱 ULTRA-RESPONSIVE ADAPTIVE DESIGN SYSTEM ================= */

/* Genel Grid & Layout Responsive Kuralları */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.library-grid,
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.alpha-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: 6px;
}

/* Tablet Uyumluluğu (641px - 1024px) */
@media (max-width: 1024px) {
  .app-layout {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .library-grid,
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}

/* 📱 Mobil Uyumluluk (Max 640px) */
@media (max-width: 640px) {
  /* Layout & Spacing */
  .app-layout {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 85px; /* Mobil alt bar mesafesi */
  }

  .view-container {
    padding: 12px 4px;
  }


  /* Medya Switcher (Kitap / Film / Dizi) */
  .media-switcher-pills {
    padding: 3px !important;
    gap: 3px !important;
  }

  .media-type-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }

  /* 4'lü Stat Kartları Mobilde 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }

  .stat-card {
    padding: 12px 14px !important;
  }

  .stat-value {
    font-size: 20px !important;
  }

  .stat-title {
    font-size: 10px !important;
  }

  .stat-desc {
    font-size: 10px !important;
  }

  /* 🎬 Hero Carousel Mobil Optimizasyonu */
  .hero-carousel-slide {
    position: relative;
  }

  /* İnaktif slaytları tamamen gizle - JS inline style ile uyumlu */
  .hero-carousel-slide:not(.active) {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 100% !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .hero-carousel-slide.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }

  .active-book-card {
    padding: 16px 14px !important;
  }

  .active-book-header {
    gap: 12px !important;
    padding-right: 0 !important;
    margin-bottom: 14px !important;
  }

  .book-cover-wrap {
    width: 85px !important;
    height: 125px !important;
    border-radius: 10px !important;
  }

  .book-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .book-author {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  /* Durum Rozeti Mobilde Üst Sağda Kompakt */
  .hero-carousel-slide .active-book-card > div:first-child {
    right: 12px !important;
    top: 12px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
  }

  .hero-carousel-container #btn-hero-prev {
    left: -6px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  .hero-carousel-container #btn-hero-next {
    right: -6px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  /* Kütüphane ve Arama Grid'i Mobilde 2 Sütun */
  .library-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .book-card-item {
    border-radius: 12px !important;
  }

  .book-card-item .book-cover-img {
    height: 200px !important;
  }

  /* Kütüphane Rafları Yatay Kaydırma (Horizontal Scroll) */
  .shelf-tabs-container {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 6px !important;
    gap: 6px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shelf-tabs-container::-webkit-scrollbar {
    display: none;
  }

  .tab-pill {
    padding: 7px 14px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  /* Keşfet Sekmesi Mobilde 7'li Grid Alfabe Matrisi */
  .alpha-grid-container {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
  }

  .alpha-letter-btn {
    height: 36px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  /* Arama Input ve Filtreler */
  .discover-filter-controls {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .discover-search-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Alt Bar (Bottom Nav) Mobilde Katmanlı Organik Yaprak Uyumu */
  .nav-wrapper {
    bottom: 12px !important;
    width: calc(100% - 16px) !important;
  }

  .bottom-nav {
    height: 58px !important;
    padding: 3px 6px !important;
    border-radius: 22px 8px 22px 8px !important;
  }

  .nav-item {
    height: 44px !important;
    gap: 2px !important;
  }

  .nav-item.active {
    flex: 1.35 !important;
    height: 52px !important;
    transform: translateY(-4px) !important;
  }

  .nav-item.active::before {
    border-radius: 5px 18px 5px 18px !important;
  }

  .nav-item .label {
    font-size: 9.5px !important;
  }

  .nav-item svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* 🖼️ Modallar Mobilde Bottom Sheet / Scrollable Dialog */
  .modal-overlay {
    padding: 10px !important;
    align-items: flex-end !important; /* Mobilde aşağıdan yukarı açılsın */
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
  }

  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 20px 16px !important;
  }

  /* Modal İçi İki Sütunlu Formlar Mobilde Tek Sütun */
  .modal-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modal-cover-preview {
    max-width: 100px !important;
    margin: 0 auto 12px auto !important;
  }

  /* Toast Bildirimleri Mobilde Ortada */
  .toast-container {
    left: 12px !important;
    right: 12px !important;
    bottom: 75px !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    pointer-events: none !important;
    z-index: 9999999 !important;
  }

  .toast {
    font-size: 12px !important;
    padding: 10px 14px !important;
    pointer-events: auto !important;
  }
}

/* Küçük Ekranlı Telefonlar (Max 380px) */
@media (max-width: 380px) {
  .library-grid,
  .search-results-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .book-card-item .book-cover-img {
    height: 170px !important;
  }

  .active-book-actions button {
    font-size: 12px !important;
    padding: 10px !important;
  }
}

/* ================= 📱 MOBİL DOKUNMATİK & TIKLAMA İYİLEŞTİRMELERİ ================= */
.media-type-btn,
.roulette-btn,
#btn-start-reading-now,
.btn-primary,
.btn-secondary,
.nav-item,
.tab-pill,
.book-card-item,
.stat-box,
.btn-add-discovered-book,
.btn-open-existing-detail,
.btn-add-rec-item,
.coach-tone-card,
.alpha-letter-btn,
.btn-hero-action-progress,
.btn-hero-cover-click,
.modal-close,
.hero-dot {
  touch-action: manipulation !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.15) !important;
  /* z-index ve position KASITLI OLARAK KALDIRILDI — z-index savaşı önlendi */
}

/* Medya seçici sadece kendi içinde stacking context oluştursun */
.media-type-nav {
  position: relative !important;
  z-index: 2 !important;
}

.media-type-btn {
  min-height: 42px !important;
  min-width: 44px !important;
  padding: 8px 16px !important;
}

.roulette-btn {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-md) !important;
}

#btn-start-reading-now {
  min-height: 46px !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* Tüm tıklanabilir elemanlara minimum dokunma alanı */
.btn-add-discovered-book,
.btn-open-existing-detail {
  min-height: 44px !important;
  min-width: 44px !important;
}

/* Bottom nav her zaman en üstte olmalı */
.bottom-nav {
  z-index: 99999 !important;
}

.modal-overlay {
  z-index: 1500000 !important;
}

/* ❌ Modal Kapatma Çarpı Butonu — Geniş Dokunma Alanı & Kesin Tıklama */
.modal-close {
  position: absolute !important;
  right: 14px !important;
  top: 14px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 120 !important;
  touch-action: manipulation !important;
  pointer-events: auto !important;
  transition: all 0.2s ease !important;
}

.modal-close:hover,
.modal-close:active {
  background: rgba(244, 63, 94, 0.4) !important;
  border-color: #f43f5e !important;
  color: #fff !important;
  transform: scale(1.05) !important;
}

/* ================= 🎬 SHORTS / REELS SOSYAL ÇARK KEŞİF STİLLERİ ================= */
.shorts-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #050811;
  z-index: 90000 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  padding-bottom: 72px; /* Alt navigasyon barı için güvenli alan */
}

.shorts-feed-viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shorts-feed-viewport::-webkit-scrollbar {
  display: none;
}

.shorts-card {
  width: 100%;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #000;
}

/* Fragman Oynatıcı Popup Modal */
.shorts-trailer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 30000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.shorts-trailer-player-box {
  width: 100%;
  max-width: 680px;
  background: #0f172a;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shorts-trailer-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.shorts-trailer-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video & Arka Plan Sahnesi */
.shorts-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: #000;
}

.shorts-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: auto;
}

.shorts-youtube-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 177.78vh; /* 16:9 tam dikey sinematik HD oran */
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  pointer-events: none;
  border: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: contrast(1.05) saturate(1.08) brightness(1.02);
  image-rendering: -webkit-optimize-contrast;
}

.shorts-backdrop-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.04);
  transition: transform 10s ease;
}

.shorts-book-ambient-backdrop {
  filter: blur(36px) brightness(0.32) saturate(1.4);
  transform: scale(1.2);
  opacity: 0.9;
}

/* ================= 📚 SHORTS 3D BOOK SHOWCASE ================= */
.shorts-book-stage {
  position: absolute;
  top: 14%;
  left: 16px;
  right: 68px; /* Sağ etkileşim butonlarına çarpmaması için güvenli alan */
  bottom: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.shorts-book-3d-wrapper {
  perspective: 1400px;
  perspective-origin: 50% 50%;
  margin-bottom: 18px;
  animation: bookShortsFloat 5s ease-in-out infinite alternate;
}

@keyframes bookShortsFloat {
  0% { transform: translateY(0px) rotateY(-8deg) rotateX(4deg); }
  50% { transform: translateY(-7px) rotateY(-2deg) rotateX(1deg); }
  100% { transform: translateY(-13px) rotateY(-10deg) rotateX(5deg); }
}

.shorts-book-3d-volume {
  position: relative;
  width: 168px;
  height: 242px;
  transform-style: preserve-3d;
  filter: drop-shadow(-14px 20px 32px rgba(0, 0, 0, 0.9));
}

/* 1. Arka Sayfa Bloğu (Çok Katmanlı Kağıt Hissiyatı) */
.shorts-book-pages-block {
  position: absolute;
  inset: 0;
  border-radius: 4px 12px 12px 4px;
  background: #f4eee2;
  border-right: 10px solid #e2d7c3;
  border-bottom: 7px solid #d9ccb6;
  box-shadow: 
    inset 0 0 10px rgba(0,0,0,0.15),
    inset 4px 0 8px rgba(0,0,0,0.25),
    -4px 8px 18px rgba(0, 0, 0, 0.7);
  transform: translateZ(-8px);
}

/* Sayfa Çizgileri / Doku efekti */
.shorts-book-pages-block::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 0;
  bottom: 0;
  width: 9px;
  background: repeating-linear-gradient(
    to bottom,
    #ded4be,
    #ded4be 2px,
    #ece3ce 2px,
    #ece3ce 4px
  );
  opacity: 0.85;
}

/* 2. İç Parşömen Sayfa & Kıvrılma Animasyonu */
.shorts-book-inner-page {
  position: absolute;
  inset: 2px 4px 2px 2px;
  border-radius: 3px 10px 10px 3px;
  background: linear-gradient(135deg, #fbf7ee 0%, #f4ecdc 85%, #eae0ce 100%);
  transform-origin: left center;
  transform-style: preserve-3d;
  box-shadow: 
    inset 12px 0 16px rgba(0,0,0,0.18),
    inset -4px 0 8px rgba(0,0,0,0.06),
    2px 4px 10px rgba(0,0,0,0.2);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  animation: pageCurlBreath 5s ease-in-out infinite alternate;
}

@keyframes pageCurlBreath {
  0% {
    transform: rotateY(-6deg) skewY(-1deg);
    box-shadow: inset 12px 0 16px rgba(0,0,0,0.2), 3px 6px 14px rgba(0,0,0,0.25);
  }
  50% {
    transform: rotateY(-14deg) skewY(-2deg);
    box-shadow: inset 16px 0 20px rgba(0,0,0,0.25), 6px 10px 20px rgba(0,0,0,0.32);
  }
  100% {
    transform: rotateY(-8deg) skewY(-1.2deg);
    box-shadow: inset 12px 0 16px rgba(0,0,0,0.2), 4px 7px 16px rgba(0,0,0,0.28);
  }
}

/* İç Sayfa Temsili Metin Çizgileri */
.shorts-inner-text-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.35;
}

.shorts-inner-text-lines span {
  display: block;
  height: 4px;
  background: #64748b;
  border-radius: 2px;
}

.shorts-inner-text-lines span:nth-child(1) { width: 45%; height: 6px; background: #0f172a; margin-bottom: 4px; }
.shorts-inner-text-lines span:nth-child(2) { width: 90%; }
.shorts-inner-text-lines span:nth-child(3) { width: 85%; }
.shorts-inner-text-lines span:nth-child(4) { width: 92%; }
.shorts-inner-text-lines span:nth-child(5) { width: 75%; }
.shorts-inner-text-lines span:nth-child(6) { width: 60%; }

/* Kitap İpek Ayraç Şeridi (Bookmark Ribbon) */
.shorts-book-bookmark-ribbon {
  position: absolute;
  top: -4px;
  right: 28px;
  width: 10px;
  height: calc(100% + 22px);
  background: linear-gradient(to right, #991b1b, #dc2626, #7f1d1d);
  border-radius: 1px 1px 0 0;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.45);
  transform: rotateZ(3deg);
  z-index: 2;
}

.shorts-book-bookmark-ribbon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: 6px solid #f4eee2;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

/* 3. 3D Açılan Sert Ön Kapak */
.shorts-book-front-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px 14px 14px 4px;
  transform-origin: left center;
  transform-style: preserve-3d;
  background: #0f172a;
  box-shadow: 
    -6px 10px 24px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(90, 181, 138, 0.22),
    inset 2px 0 4px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: bookCoverOpenBreath 5s ease-in-out infinite alternate;
}

@keyframes bookCoverOpenBreath {
  0% {
    transform: rotateY(-22deg);
    box-shadow: -6px 10px 24px rgba(0, 0, 0, 0.8), 0 0 35px rgba(90, 181, 138, 0.2);
  }
  50% {
    transform: rotateY(-36deg);
    box-shadow: -10px 14px 32px rgba(0, 0, 0, 0.88), 0 0 48px rgba(90, 181, 138, 0.32);
  }
  100% {
    transform: rotateY(-26deg);
    box-shadow: -8px 12px 26px rgba(0, 0, 0, 0.82), 0 0 38px rgba(90, 181, 138, 0.24);
  }
}

.shorts-book-3d-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shorts-book-3d-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(255,255,255,0.22) 45%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 2;
}

.shorts-book-3d-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  z-index: 3;
}

.shorts-book-quote-card {
  width: 100%;
  max-width: 340px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(254, 240, 138, 0.12);
  text-align: center;
  position: relative;
  pointer-events: auto;
}

.shorts-quote-icon {
  font-size: 22px;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.shorts-quote-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: #fef08a;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 6px;
}

.shorts-quote-author {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.shorts-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.1) 20%, 
    rgba(0, 0, 0, 0.25) 50%, 
    rgba(0, 0, 0, 0.85) 80%, 
    rgba(5, 8, 17, 0.98) 100%
  );
  pointer-events: none;
}

/* Üst Kontrol Barı (Minimalist & Premium: Sol Başlık + Sağ Ses Butonu) */
.shorts-header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  pointer-events: none;
}

.shorts-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.shorts-brand-glow {
  font-size: 16px;
  animation: pulseAura 2s infinite alternate;
}

.shorts-brand-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.shorts-icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.shorts-icon-btn.unmuted {
  background: linear-gradient(135deg, rgba(90, 181, 138, 0.9), rgba(113, 152, 193, 0.9));
  border-color: #5ab58a;
  box-shadow: 0 0 16px rgba(90, 181, 138, 0.6);
}

.shorts-icon-btn:active {
  transform: scale(0.9);
}

/* Pull To Refresh Göstergesi */
.shorts-pull-indicator {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(90, 181, 138, 0.5);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 18px rgba(90, 181, 138, 0.35);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  opacity: 0;
}

.shorts-pull-indicator.pulling {
  opacity: 1;
}

.shorts-pull-indicator.refreshing .shorts-pull-icon {
  animation: spinShortsRefresh 0.8s infinite linear;
}

@keyframes spinShortsRefresh {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.shorts-shuffle-spin {
  animation: spinOnce 0.5s ease;
}

@keyframes spinOnce {
  0% { transform: rotate(0deg) scale(0.85); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Sağ Kenar Instagram Tarzı Etkileşim Barı */
.shorts-right-bar {
  position: absolute;
  right: 12px;
  bottom: 30px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shorts-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.shorts-action-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shorts-action-circle:active {
  transform: scale(0.85);
}

.shorts-action-circle.liked {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(244, 63, 94, 0.25);
}

.shorts-action-circle.saved {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.25);
}

.shorts-share-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.6));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-shorts-share:active .shorts-share-icon-img {
  transform: scale(0.85);
}

.shorts-action-label {
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* Alt Bilgi & Kütüphaneye Ekle Kartı (Glassmorphism) */
.shorts-bottom-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 20;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100% - 70px);
  pointer-events: auto;
}

.shorts-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.shorts-badge-score {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.5));
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shorts-badge-type {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.shorts-title-h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.shorts-creator-sub {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.shorts-summary-p {
  font-size: 11px;
  line-height: 1.4;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.shorts-add-btn-main {
  width: 100%;
  max-width: 280px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #5ab58a 0%, #7198c1 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(90, 181, 138, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shorts-add-btn-main:active {
  transform: scale(0.96);
}

.shorts-add-btn-main.added {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

/* Çift Tık Kalp Patlaması */
.heart-burst-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 80px;
  color: #f43f5e;
  z-index: 40;
  pointer-events: none;
  animation: heartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; filter: drop-shadow(0 0 20px rgba(244, 63, 94, 0.8)); }
  100% { transform: translate(-50%, -50%) scale(1) translateY(-40px); opacity: 0; }
}

/* Bottom Sheet Yorum Çekmecesi */
.shorts-comments-modal {
  position: fixed;
  inset: 0;
  z-index: 1500000 !important;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.shorts-comments-sheet {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px 24px 0 0;
  max-height: 80vh;
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
  animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shorts-sheet-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.shorts-sheet-close-btn:hover,
.shorts-sheet-close-btn:active {
  background: rgba(244, 63, 94, 0.4);
  border-color: #f43f5e;
}

.shorts-comments-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shorts-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shorts-comment-bubble {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.shorts-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.shorts-comment-content {
  flex: 1;
}

.shorts-comment-user {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.shorts-comment-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.shorts-comments-input-bar {
  padding: 14px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #080d1a;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 50;
  pointer-events: auto !important;
}

.shorts-input-text {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  outline: none;
  user-select: text !important;
  -webkit-user-select: text !important;
  pointer-events: auto !important;
  transition: all 0.2s;
}

.shorts-input-text:focus {
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.shorts-send-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s ease;
}

.shorts-send-btn:active {
  transform: scale(0.9);
}

/* ================= 🎮 STEAM & DISCORD RICH PRESENCE LIVE TICKER ================= */
.presence-ticker-wrapper {
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.presence-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.presence-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.presence-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 8px #a855f7); }
}

.presence-friends-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.presence-friends-scroll::-webkit-scrollbar {
  display: none;
}

.presence-friend-card {
  flex-shrink: 0;
  width: 220px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.presence-friend-card:hover,
.presence-friend-card:active {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.25);
}

.presence-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.presence-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.presence-status-icon-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.presence-info-col {
  flex: 1;
  overflow: hidden;
}

.presence-friend-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-status-line {
  font-size: 11px;
  font-weight: 700;
  color: #c084fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-detail-line {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= 💬 INSTAGRAM & WHATSAPP TARZI TAM EKRAN SOHBETLER & MESAJLAŞMA ================= */
.sohbetler-screen-view {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 90px;
  background: #090d16;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

.sohbetler-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sohbetler-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.sohbetler-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sohbetler-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sohbetler-icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

/* Filtre Hapları */
.sohbetler-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sohbetler-filter-bar::-webkit-scrollbar {
  display: none;
}

.sohbetler-filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sohbetler-filter-pill.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* Sohbet Satırları Listesi (Table Hissi & 4px Mavi Çizgi & Minimal Yuvarlak İkon) */
.sohbetler-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 12px;
}

.sohbetler-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid #3b82f6; /* Soldan sağdan kesilmiş mavi 4px çizgi */
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sohbetler-row-item:hover,
.sohbetler-row-item:active {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(59, 130, 246, 0.3);
  border-left-color: #60a5fa;
  transform: translateX(2px);
}

.sohbetler-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sohbetler-avatar-wrap img {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: block;
}

.sohbetler-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #090d16;
  flex-shrink: 0;
}

.sohbetler-content-col {
  flex: 1;
  min-width: 0;
}

.sohbetler-top-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.sohbetler-name {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sohbetler-time {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 8px;
}

.sohbetler-bottom-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sohbetler-last-snippet {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sohbetler-unread-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ================= 📱 TAM EKRAN BİREBİR SOHBET PENCERESİ ================= */
.chat-thread-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #070a12;
  background-image: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.5) 0%, rgba(7, 10, 18, 0.98) 70%);
  z-index: 105000 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.chat-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 30;
}

.chat-thread-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  margin-right: 8px;
}

.chat-thread-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.chat-thread-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #10b981;
}

.chat-thread-user-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.chat-thread-user-status {
  font-size: 11px;
  color: #34d399;
  font-weight: 700;
}

.chat-thread-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.chat-thread-item {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 82%;
}

.chat-thread-item.them {
  align-self: flex-start;
}

.chat-thread-item.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-thread-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.chat-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-bubble.them {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.chat-bubble.me {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-time {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

/* Eser Paylaşım Kartı (Media Card) */
.chat-media-card {
  position: relative;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  max-width: 290px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chat-media-type-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.chat-media-type-badge.book {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.chat-media-type-badge.movie {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.chat-media-type-badge.series {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.chat-media-card:active {
  transform: scale(0.97);
}

.chat-media-card-img {
  width: 60px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.chat-media-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.chat-media-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 70px;
  line-height: 1.25;
}

.chat-media-card-rating {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  margin: 3px 0 2px 0;
}

.chat-media-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.chat-media-card-tag-pill {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.chat-media-card-quote {
  font-size: 10px;
  font-style: italic;
  color: #94a3b8;
  margin-top: 4px;
}

/* Video Teaser Önizleme Kartı */
.chat-video-card {
  position: relative;
  width: 240px;
  height: 135px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.chat-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.chat-video-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Alt Mesaj Yazma Çubuğu */
.chat-thread-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-thread-emoji-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
}

.chat-thread-input-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.chat-thread-input-field:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.12);
}

.chat-thread-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #4f46e5 100%);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-thread-send-btn:active {
  transform: scale(0.90);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.chat-thread-send-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transform: rotate(-10deg) translate(1px, -1px);
  transition: transform 0.2s ease;
}

.chat-thread-send-btn:hover svg {
  transform: rotate(0deg) translate(2px, -2px) scale(1.08);
}

/* 3-Nokta Sohbet Eylem Menüsü */
.chat-action-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110000 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.chat-action-sheet {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-action-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-action-sheet-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.chat-action-sheet-btn:active {
  background: rgba(255, 255, 255, 0.09);
  transform: scale(0.99);
}

.chat-action-sheet-btn.danger {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.2);
  background: rgba(244, 63, 94, 0.06);
}

.chat-action-sheet-btn.danger:active {
  background: rgba(244, 63, 94, 0.14);
}


/* ================= 📖 3D HERO CAROUSEL CARD (REALİSTİK 3 BOYUTLU ESER KARTI) ================= */
.hero-carousel-container {
  position: relative;
  margin-bottom: 24px;
}

.hero-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
  position: relative;
}

.hero-carousel-slide {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-3d-card {
  position: relative;
  width: 100%;
  background: radial-gradient(120% 120% at 20% 10%, #152233 0%, var(--bg-card, #101924) 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.hero-3d-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* 3D Eser / Kitap Bölümü */
.book-3d-wrapper {
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.book-3d {
  width: 112px;
  height: 162px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-26deg) rotateX(10deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-3d-card:hover .book-3d,
.book-3d-wrapper:active .book-3d {
  transform: rotateY(-18deg) rotateX(4deg) translateY(-4px);
}

/* Ön Kapak (Gerçek Eser Posteri + Altın Varak Çerçeve & Işık Yansıması) */
.book-cover-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 3px 6px 6px 3px;
  box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.45);
  z-index: 2;
  background: #1a0f0a;
}

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

.cover-border-3d {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 2px;
  pointer-events: none;
  box-shadow: inset 0 0 4px rgba(212, 175, 55, 0.2);
}

.cover-overlay-shine-3d {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,0.35) 100%),
              linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 14%);
  pointer-events: none;
}

/* Sayfa Kalınlığı (Yan Kenar / Page Edge Texture) */
.book-pages-3d {
  position: absolute;
  height: calc(100% - 6px);
  width: 22px;
  top: 3px;
  right: -13px;
  background: repeating-linear-gradient(
    to right,
    #eee3ca 0px,
    #dcd0b5 1px,
    #eee3ca 2px,
    #baa989 3px
  );
  transform: rotateY(90deg);
  border-radius: 0 2px 2px 0;
  box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.35);
}

/* Deri Arka Kapak */
.book-back-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #1f0b04;
  border-radius: 3px 6px 6px 3px;
  transform: translateZ(-22px);
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Kitabın Altındaki Gerçekçi Zemin Gölgesi */
.book-shadow-3d {
  position: absolute;
  width: 120px;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -15px;
  left: 10px;
  transform: rotateX(85deg) rotateY(-20deg);
  pointer-events: none;
}

/* Sağ Taraf: Bilgi & İlerleme Alanı */
.hero-3d-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-3d-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.hero-3d-category-badge {
  background: #18283d;
  color: #6bb1ff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(107, 177, 255, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.hero-3d-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-3d-book-title {
  font-family: 'Cinzel', serif;
  color: #f1f5f9;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 3px 0 2px;
  letter-spacing: 0.2px;
  line-height: 1.3;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.hero-3d-book-title:hover {
  color: var(--accent-amber);
}

.hero-3d-author-name {
  color: #8e9ca8;
  font-size: 0.82rem;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-3d-progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.hero-3d-progress-percent {
  color: #ff9800;
}

.hero-3d-progress-units {
  color: #8e9ca8;
  font-weight: 500;
}

.hero-3d-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-3d-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9800, #ffb74d);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
  transition: width 0.5s ease;
}

.hero-3d-progress-bar-fill.completed {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.hero-3d-meta-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: #8e9ca8;
}

.hero-3d-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hero-3d-meta-item strong {
  color: #f1f5f9;
}

/* Alt Aksiyon Butonu */
.hero-3d-btn-action {
  margin-top: 15px;
  width: 100%;
  background: linear-gradient(180deg, #44a896 0%, #40a08e 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(64, 160, 142, 0.35);
  transition: all 0.2s ease;
}

.hero-3d-btn-action:hover {
  background: linear-gradient(180deg, #4cb8a5 0%, #48b5a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(64, 160, 142, 0.45);
}

.hero-3d-btn-action:active {
  transform: translateY(0);
}

/* Carousel Gezinme Okları */
.hero-3d-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(13, 22, 33, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #90a4ae;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  z-index: 25;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-3d-nav-arrow:hover {
  background: #1e2c3f;
  color: #fff;
}

.user-search-result-card:hover {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  transform: translateY(-1px);
}

.user-search-result-card:active {
  transform: scale(0.98);
}

.friend-request-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.friend-request-card:hover {
  border-color: rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.approved-friend-row {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.approved-friend-row:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  transform: translateY(-1px);
}

.btn-accept-friend-tab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5) !important;
}

.btn-accept-friend-tab:active {
  transform: scale(0.94);
}

.btn-reject-friend-tab:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: rgba(244, 63, 94, 0.6) !important;
  transform: scale(1.08);
}

.btn-reject-friend-tab:active {
  transform: scale(0.94);
}

.notif-card-item {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notif-card-item:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px);
}

.outgoing-friend-request-card {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.outgoing-friend-request-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  transform: translateY(-1px);
}

.btn-cancel-friend-req:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: rgba(244, 63, 94, 0.6) !important;
  transform: scale(1.04);
}

.btn-cancel-friend-req:active {
  transform: scale(0.96);
}

/* =====================================================
   MODERN DISCOVER VIEW (LIBARY / MYBOOK DARK EMERALD THEME)
===================================================== */
.discover-page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 12px 36px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 2. Search & Filter Bar */
.discover-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.discover-search-input {
  width: 100%;
  height: 48px;
  background: #0d151e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0 46px 0 44px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discover-search-input:focus {
  border-color: #10b981;
  background: #101a24;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discover-search-icon-left {
  position: absolute;
  left: 15px;
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
}

.discover-search-filter-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s;
}

.discover-search-filter-btn:hover {
  color: #10b981;
  transform: scale(1.1);
}

/* Horizontal Filter Scroll Tags */
.discover-filter-scroll-wrapper {
  position: relative;
  width: 100%;
}

.discover-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.discover-filter-scroll::-webkit-scrollbar {
  display: none;
}

.discover-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: #0f1822;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  user-select: none;
}

.discover-filter-tag:hover {
  background: #16222f;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

.discover-filter-tag.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* Floating Filter Dropdown Popups */
.discover-filter-popup-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  max-width: 320px;
  max-height: 280px;
  overflow-y: auto;
  background: #0e1722;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeInDown 0.18s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.discover-filter-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}

.discover-filter-menu-item:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.discover-filter-menu-item.selected {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.6) 0%, rgba(4, 120, 87, 0.6) 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* 2. Search & Filter Bar */
.discover-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.discover-search-input {
  width: 100%;
  height: 48px;
  background: #0d151e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0 46px 0 44px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discover-search-input:focus {
  border-color: #10b981;
  background: #101a24;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discover-search-icon-left {
  position: absolute;
  left: 15px;
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
}

.discover-search-filter-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s;
}

.discover-search-filter-btn:hover {
  color: #10b981;
  transform: scale(1.1);
}

/* Horizontal Filter Scroll Tags */
.discover-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.discover-filter-scroll::-webkit-scrollbar {
  display: none;
}

.discover-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: #0f1822;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.discover-filter-tag:hover {
  background: #16222f;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

.discover-filter-tag.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* 3. Hero FeaturedBanner (Günün Öne Çıkanları) */
.discover-hero-banner {
  position: relative;
  width: 100%;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  background: #0e1720;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
}

.discover-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: blur(1px);
}

.discover-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #091017 0%, rgba(9, 16, 23, 0.85) 45%, rgba(9, 16, 23, 0.3) 100%);
}

.discover-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 28px;
  gap: 20px;
}

.discover-hero-left {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discover-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discover-hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 2px 0 0 0;
}

.discover-hero-author {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

.discover-hero-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.discover-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(6, 78, 59, 0.7);
  border: 1px solid #10b981;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  width: fit-content;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}

.discover-hero-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.6);
}

.discover-hero-pagination {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.discover-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s;
}

.discover-hero-dot.active {
  width: 18px;
  height: 6px;
  border-radius: 4px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.discover-hero-right {
  position: relative;
  flex-shrink: 0;
  perspective: 1000px;
}

.discover-hero-cover-3d {
  width: 120px;
  height: 175px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: -10px 14px 28px rgba(0, 0, 0, 0.8), 0 0 16px rgba(16, 185, 129, 0.25);
  transform: rotateY(-8deg) rotateX(4deg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.discover-hero-cover-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* =========================================
   KEŞFET (DISCOVER) VIEW & HERO SLIDER & SHOWCASE
========================================= */
.discover-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ================= 🚀 HERO SLIDER (3D DECK & 60FPS SWIPE) ================= */
.discover-hero-slider-wrap {
  position: relative;
  width: 100%;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  perspective: 1200px;
  border-radius: 20px;
}

.discover-hero-slider-wrap:active {
  cursor: grabbing;
}

.discover-hero-banner {
  position: relative;
  width: 100%;
  min-height: 230px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.14) 0%, transparent 65%), #080e15;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  will-change: transform, opacity;
}

.discover-hero-banner.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
}

.discover-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1 !important;
  filter: brightness(0.7) saturate(1.2);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.discover-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 14, 21, 0.96) 0%, rgba(8, 14, 21, 0.85) 55%, rgba(8, 14, 21, 0.35) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Üst Kontrol Rozetleri (Sol Badge, Orta Sayaç, Sağ Arşive Ekle) */
.discover-hero-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
}

.discover-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.discover-hero-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  white-space: nowrap;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-hero-archive-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(13, 21, 30, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  user-select: none;
  white-space: nowrap;
}

.btn-hero-archive-trigger:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.btn-hero-archive-trigger.saved {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
  font-weight: 800;
}

/* Hero İçerik Metinleri */
.discover-hero-content {
  position: relative;
  z-index: 5;
  padding: 52px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 110px);
}

.discover-hero-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discover-hero-author {
  font-size: 13px;
  font-weight: 700;
  color: #34d399;
}

.discover-hero-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 2px 0 6px;
}

.discover-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(13, 21, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-hero-action:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

/* Hero Sağdaki 3D Kapak */
.discover-hero-cover-wrap {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 90px;
  height: 132px;
  border-radius: 10px;
  overflow: hidden;
  z-index: 6;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discover-hero-cover-3d {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Slider Pagination Noktaları */
.discover-hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.discover-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 0;
}

.discover-hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.discover-hero-dot.active {
  width: 22px;
  height: 7px;
  border-radius: 4px;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* 📱 Hero Slider Responsive Mobil Uyumluluk (< 450px & < 380px) */
@media (max-width: 450px) {
  .discover-hero-slider-wrap {
    border-radius: 16px;
  }

  .discover-hero-banner {
    min-height: 200px;
    border-radius: 16px;
  }

  .discover-hero-top-badges {
    top: 9px;
    left: 9px;
    right: 9px;
    gap: 4px;
  }

  /* "RECOMMENDED FOR YOU" küçültme ve taşmayı önleme */
  .discover-hero-badge {
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -0.2px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
  }

  .discover-hero-counter-badge {
    padding: 3px 6px;
    font-size: 10px;
    letter-spacing: 0;
    flex-shrink: 0;
  }

  /* "Add to Shelf" her koşulda tam sığar */
  .btn-hero-archive-trigger {
    padding: 3.5px 7px;
    font-size: 10px;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .btn-hero-archive-trigger span:last-child {
    font-size: 10px;
  }

  .discover-hero-content {
    padding: 42px 10px 12px;
    max-width: calc(100% - 86px);
    gap: 3px;
  }

  .discover-hero-title {
    font-size: 16.5px;
    line-height: 1.15;
  }

  .discover-hero-author {
    font-size: 11.5px;
  }

  .discover-hero-desc {
    font-size: 10.5px;
    line-height: 1.35;
    margin: 1px 0 4px;
    -webkit-line-clamp: 2;
  }

  .discover-hero-actions {
    gap: 5px;
  }

  .btn-hero-action {
    padding: 4px 8px;
    font-size: 10px;
    gap: 3px;
  }

  .discover-hero-cover-wrap {
    right: 9px;
    bottom: 12px;
    width: 74px;
    height: 108px;
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .discover-hero-top-badges {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 3px;
  }

  .discover-hero-badge {
    font-size: 8.5px;
    padding: 2.5px 5px;
    max-width: 105px;
  }

  .discover-hero-counter-badge {
    padding: 2.5px 5px;
    font-size: 9px;
  }

  .btn-hero-archive-trigger {
    padding: 2.5px 6px;
    font-size: 9px;
    gap: 2px;
  }

  .btn-hero-archive-trigger span:last-child {
    font-size: 9px;
  }

  .discover-hero-content {
    max-width: calc(100% - 74px);
    padding: 38px 8px 10px;
  }

  .discover-hero-title {
    font-size: 15px;
  }

  .discover-hero-cover-wrap {
    width: 64px;
    height: 96px;
    right: 7px;
    bottom: 10px;
  }
}

/* ================= 📺 KATEGORİK VİTRİN SECTİONLARI ================= */
.discover-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.discover-section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discover-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discover-section-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.btn-section-see-all {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-section-see-all:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

/* Yatay Kayan Vitrin Kartları Sırası */
.discover-cards-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.discover-cards-row::-webkit-scrollbar {
  height: 4px;
}

.discover-cards-row::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 4px;
}

.discover-book-card {
  flex: 0 0 135px;
  width: 135px;
  height: fit-content;
  align-self: flex-start;
  background: #0d151e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.discover-book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 16px rgba(16, 185, 129, 0.2);
}

.discover-card-cover-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #111c26;
  overflow: hidden;
}

.discover-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.discover-book-card:hover .discover-card-cover {
  transform: scale(1.06);
}

.discover-card-rating {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
}

.discover-card-badge-saved {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.discover-card-taste-match {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(6, 182, 212, 0.92));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.discover-personalized-taste-section {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(6, 182, 212, 0.02) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 24px;
}

.discover-card-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discover-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-card-author {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-card-cat {
  font-size: 10px;
  color: #34d399;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= 🔍 ARAMA SONUÇLARI GRİDİ ================= */
.discover-results-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discover-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discover-results-count {
  font-size: 13px;
  color: #94a3b8;
}

.discover-results-count strong {
  color: #34d399;
}

.discover-results-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.discover-result-card {
  background: #0d151e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.discover-result-card:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  background: #111a24 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-2px) !important;
}

.discover-result-cover-wrap {
  position: relative !important;
  width: 78px !important;
  height: 112px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #111c26 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.discover-result-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.discover-result-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  flex: 1 !important;
  min-width: 0 !important;
  justify-content: center !important;
}

.discover-result-title {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.discover-result-author {
  font-size: 12px !important;
  color: #34d399 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.discover-result-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  flex-wrap: wrap !important;
}

.discover-result-actions {
  margin-top: 4px !important;
  display: flex !important;
}

.btn-result-add {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-result-add:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.btn-result-saved {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #cbd5e1 !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* Sayfalama */
.discover-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.btn-pagination {
  padding: 6px 14px;
  background: #111c26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-pagination:not(:disabled):hover {
  border-color: #10b981;
  color: #34d399;
}

.pagination-info {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
}

/* Loading & Empty State */
.discover-loading-state,
.discover-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  background: #0d151e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

.discover-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

.discover-loading-text {
  font-size: 13px;
  color: #94a3b8;
}

.discover-empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.discover-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.discover-empty-desc {
  font-size: 12px;
  color: #64748b;
  max-width: 320px;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   OKUMA & İZLEME KOÇU — ALERT BANNER & KİŞİLİK SEÇİM MODALI
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Coach Alert Banner ─── */
.coach-alert-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.coach-alert-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #f59e0b, #ec4899);
  border-radius: 4px 0 0 4px;
}

.coach-alert-banner:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.18), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.coach-alert-banner:active {
  transform: scale(0.99) translateY(0);
}

.coach-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.25), rgba(30, 41, 59, 0.9));
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
  animation: coachAvatarFloat 4s ease-in-out infinite alternate;
}

@keyframes coachAvatarFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2px) scale(1.04); }
}

.coach-content {
  flex: 1;
  min-width: 0;
}

.coach-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.coach-speech {
  font-size: 13.5px;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.45;
  word-break: break-word;
}

.btn-coach-settings {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-coach-settings:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.btn-coach-settings:active {
  transform: scale(0.95);
}

/* ─── 2. Coach Persona Modal ─── */
.coach-persona-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.coach-persona-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.coach-persona-modal {
  background: linear-gradient(145deg, #131b2e 0%, #0d121f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.1);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coach-persona-overlay.visible .coach-persona-modal {
  transform: translateY(0) scale(1);
}

.coach-persona-header {
  position: relative;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.coach-persona-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coach-persona-subtitle {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}

.coach-persona-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coach-persona-close:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
  transform: rotate(90deg);
}

.coach-persona-grid {
  padding: 18px 20px 22px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 480px) {
  .coach-persona-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.coach-persona-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.coach-persona-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.coach-persona-card.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 0 12px rgba(245, 158, 11, 0.08);
}

.coach-persona-icon {
  font-size: 30px;
  margin-bottom: 8px;
  text-align: center;
}

.coach-persona-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 4px;
}

.coach-persona-desc {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 32px;
}

.coach-persona-example {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.coach-persona-quote {
  color: #f59e0b;
  font-weight: 800;
}

.coach-persona-active-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.coach-persona-select-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.coach-persona-card:hover .coach-persona-select-btn {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* ============================================================================
   🌟 FRIEND / USER DETAILED PROFILE & LIBRARY (Görsel 3 Tasarımı)
============================================================================ */
.friend-profile-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

.fp-header-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.fp-header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.btn-fp-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  height: 34px;
  min-height: 34px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-fp-back:hover,
.btn-fp-back:active {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateX(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-fp-back svg {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.btn-fp-back:hover svg {
  transform: translateX(-2px);
}

.fp-profile-main-body {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.fp-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  min-width: 68px;
  flex-shrink: 0;
}

.fp-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  display: block;
}

.fp-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #090d16;
}

.fp-meta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.fp-username-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-username {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.fp-active-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.fp-joined-date {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

.fp-bio-quote {
  font-size: 12px;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.35;
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  padding-left: 8px;
  margin: 2px 0;
  word-break: break-word;
}

.btn-fp-friend-status {
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.fp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fp-stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.fp-stat-val {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.fp-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
}

/* 2. Filtre Barı */
.fp-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-search-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.fp-search-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  background: rgba(15, 23, 42, 0.85);
}

.fp-search-icon {
  font-size: 15px;
  color: #94a3b8;
}

.fp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
}

.fp-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}

.fp-media-type-panel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.fp-media-type-panel::-webkit-scrollbar {
  display: none;
}

.fp-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fp-type-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.fp-type-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(56, 189, 248, 0.2));
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.fp-type-count {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: 10px;
  color: inherit;
  font-weight: 800;
}

.fp-tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.fp-tabs-row::-webkit-scrollbar {
  display: none;
}

.fp-tab-pill {
  padding: 7px 15px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.fp-tab-pill:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
}

.fp-tab-pill.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* 3. Bölümler ve Kartlar */
.fp-section-block {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fp-section-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-fp-see-all {
  background: none;
  border: none;
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.btn-fp-see-all:hover {
  opacity: 0.8;
}

.fp-cards-scroll-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.fp-cards-scroll-row::-webkit-scrollbar {
  display: none;
}

.fp-media-card {
  width: 142px;
  min-width: 142px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fp-media-card:hover,
.fp-media-card:active {
  transform: translateY(-4px);
}

.fp-card-cover-wrap {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  background: #0f172a;
}

.fp-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-media-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.fp-media-badge.book {
  background: rgba(16, 185, 129, 0.9);
}

.fp-media-badge.movie {
  background: rgba(59, 130, 246, 0.9);
}

.fp-media-badge.series {
  background: rgba(168, 85, 247, 0.9);
}

.fp-card-more-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fp-card-details {
  display: flex;
  flex-direction: column;
}

.fp-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-card-creator {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.fp-card-review-bubble {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  padding: 4px 6px;
  margin: 4px 0 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 10.5px;
  color: #6ee7b7;
  font-style: italic;
  line-height: 1.3;
  overflow: hidden;
  text-align: left;
}

.fp-review-quote-icon {
  font-size: 10px;
  flex-shrink: 0;
}

.fp-review-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fp-card-time-ago {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.fp-card-rating-badge {
  font-size: 11px;
  font-weight: 900;
  color: #fbbf24;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* 4. İlerleme Kartları (Okuma Listesi) */
.progress-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.fp-progress-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fp-progress-card:hover,
.fp-progress-card:active {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(30, 41, 59, 0.85);
}

.fp-progress-cover {
  width: 44px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.fp-progress-info {
  flex: 1;
  overflow: hidden;
}

.fp-progress-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-progress-creator {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.fp-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.fp-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 2px;
}

.fp-progress-percent-text {
  font-size: 9.5px;
  font-weight: 800;
  color: #34d399;
  margin-top: 3px;
  text-align: right;
}

/* 5. Alt İlham Verici Banner */
.fp-inspiration-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.fp-inspiration-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-inspiration-icon {
  font-size: 20px;
}

.fp-inspiration-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
}

.fp-inspiration-decor {
  font-size: 22px;
  opacity: 0.7;
}

/* ==========================================================================
   💬 SOHBETLER YENİ GÖRSEL TASARIMI & NEON MİMARİSİ
   ========================================================================== */

.sohbetler-screen-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 90px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(7, 10, 18, 0) 60%), #070a12;
}

.sohbetler-header {
  padding: 16px 20px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sohbetler-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sohbetler-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.sohbetler-badge-live {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.sohbetler-badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.btn-new-sohbet-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-new-sohbet-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399, #10b981);
}

.btn-new-sohbet-pill:active {
  transform: scale(0.96);
}

/* Arama Çubuğu */
.sohbetler-search-wrap {
  padding: 4px 20px 12px 20px;
}

.sohbetler-search-inner {
  position: relative;
  width: 100%;
}

.sohbetler-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #64748b;
  pointer-events: none;
}

.sohbetler-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 11px 16px 11px 40px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.sohbetler-search-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.sohbetler-search-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

/* Filtre Hapları */
.sohbetler-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 14px 20px;
  scrollbar-width: none;
}

.sohbetler-filter-bar::-webkit-scrollbar {
  display: none;
}

.sohbetler-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sohbetler-filter-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.sohbetler-filter-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 78, 59, 0.4));
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}

/* Liste Başlığı (Son Konuşmalar / Sıralama) */
.sohbetler-section-header {
  padding: 4px 22px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sohbetler-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.sohbetler-section-sort {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Sohbet Kartları (Glow & Glass) */
.sohbetler-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sohbet-card-glow {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sohbet-card-glow:hover {
  background: rgba(22, 36, 58, 0.75);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(16, 185, 129, 0.1);
}

.sohbet-card-glow.has-unread {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.8));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 18px rgba(16, 185, 129, 0.15);
}

/* Avatar ve Canlı Durum Noktası */
.sohbet-avatar-container {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.sohbet-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease;
}

.sohbet-card-glow:hover .sohbet-avatar-img {
  border-color: rgba(16, 185, 129, 0.5);
}

.sohbet-presence-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid #0b1120;
}

.sohbet-presence-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.sohbet-presence-dot.offline {
  background: #64748b;
  border-color: #0b1120;
}

/* Orta Bilgi Kolonu */
.sohbet-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sohbet-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sohbet-username {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sohbet-activity-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1.5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sohbet-preview-text {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sohbet-card-glow.has-unread .sohbet-preview-text {
  color: #f1f5f9;
  font-weight: 600;
}

/* Sağ Bilgi & Rozet Kolonu */
.sohbet-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.sohbet-meta-top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sohbet-media-badge {
  font-size: 11px;
  opacity: 0.85;
}

.sohbet-time-text {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.sohbet-card-glow.has-unread .sohbet-time-text {
  color: #10b981;
  font-weight: 700;
}

.sohbet-unread-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sohbet-read-check {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

/* ==========================================================================
   🔥 ŞİMDİ KONUŞULUYOR VİTRİNİ (TRENDING SHOWCASE)
   ========================================================================== */

.sohbet-trending-wrap {
  margin-top: 24px;
  padding: 0 20px;
}

.sohbet-trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sohbet-trending-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sohbet-trending-see-all {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  cursor: pointer;
}

.sohbet-trending-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.sohbet-trending-scroll::-webkit-scrollbar {
  display: none;
}

.sohbet-trending-card {
  flex: 0 0 170px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.sohbet-trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sohbet-trending-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.15);
}

.sohbet-trending-card:hover::before {
  opacity: 1;
}

.sohbet-trending-thumb-wrap {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.sohbet-trending-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sohbet-trending-card:hover .sohbet-trending-thumb {
  transform: scale(1.05);
}

.sohbet-trending-badge-top {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.sohbet-trending-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sohbet-trending-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sohbet-trending-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sohbet-trending-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sohbet-trending-join-btn {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ==========================================================================
   👥 CANLI ARKADAŞ AKIŞI (FRIENDS LIVE ACTIVITY RAIL) & DETAY MODALI
   ========================================================================== */

.sohbet-activity-rail-wrap {
  margin: 18px 0 20px 0;
  padding: 0 16px;
}

.sohbet-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 6px;
}

.sohbet-activity-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.2px;
}

.sohbet-activity-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 18px rgba(16, 185, 129, 0.6);
  display: inline-block;
  animation: liveActivityPulse 1.8s infinite ease-in-out;
}

@keyframes liveActivityPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px #10b981, 0 0 24px rgba(16, 185, 129, 0.8); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.sohbet-activity-count-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sohbet-activity-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  padding-top: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.sohbet-activity-scroll::-webkit-scrollbar {
  display: none;
}

.sohbet-activity-mini-card {
  flex: 0 0 215px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.sohbet-activity-mini-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sohbet-activity-mini-card:hover,
.sohbet-activity-mini-card:active {
  transform: translateY(-2.5px);
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.15);
}

.sohbet-activity-mini-card:hover::before,
.sohbet-activity-mini-card:active::before {
  opacity: 1;
}

.sohbet-activity-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sohbet-activity-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.sohbet-activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(16, 185, 129, 0.6);
}

.sohbet-activity-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
}

.sohbet-activity-online-dot.online {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.sohbet-activity-online-dot.offline {
  background: #64748b;
  box-shadow: none;
}

.sohbet-activity-user-info {
  flex: 1;
  min-width: 0;
}

.sohbet-activity-username {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.sohbet-activity-time {
  font-size: 9.5px;
  color: #94a3b8;
  display: block;
  margin-top: 0.5px;
}

.sohbet-activity-type-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 5px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.sohbet-activity-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sohbet-activity-item-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

.sohbet-activity-status-verb {
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
}

.sohbet-activity-percent-badge {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
}

.sohbet-activity-card-progress {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.sohbet-activity-progress-track {
  width: 100%;
  height: 3.5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sohbet-activity-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.sohbet-activity-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
}

.sohbet-activity-tap-hint {
  color: #38bdf8;
  font-weight: 800;
}

/* Modal Quick Reactions */
.btn-quick-activity-reaction:hover,
.btn-quick-activity-reaction:active {
  transform: scale(1.04);
  filter: brightness(1.15);
}

/* 🌟 Hero 3D Card Meta Grid & Responsive Mobile Layout */
.hero-3d-meta-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.hero-meta-col {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  min-width: 0;
}

.hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
  gap: 4px;
}

.hero-meta-row.sub-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 3.5px;
}

.hero-meta-lbl {
  color: #94a3b8;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.hero-meta-val {
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-3d-meta-info {
    gap: 5px 8px;
    padding: 8px 10px;
    margin-top: 8px;
  }
  .hero-meta-row {
    font-size: 10.5px;
    gap: 3px;
  }
  .hero-meta-lbl {
    font-size: 10px;
    gap: 2px;
  }
  .hero-meta-val {
    font-size: 10px;
  }
}

/* ==========================================================================
   🚀 YENİ PROFİL SEKMESİ VE OYUNLAŞTIRMA STİLLERİ (FUTURISTIC & GAMIFIED)
   ========================================================================== */

/* 1. Kullanıcı Hero Kartı (Tam Ortalanmış & Dengeli) */
.profile-user-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
  padding: 24px 20px 20px;
  text-align: center;
}

.profile-user-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 15%, rgba(147, 51, 234, 0.25), transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(56, 189, 248, 0.15), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.15), transparent 45%);
  pointer-events: none;
}

.profile-header-centered-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.profile-avatar-container {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.profile-avatar-container:hover {
  transform: scale(1.05);
}

.profile-avatar-glow {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #10b981;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
  background: #1e293b;
}

.profile-online-badge-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #0f172a;
  box-shadow: 0 0 10px #10b981;
}

.profile-username-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 6px;
}

.profile-title-pill {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-quote-text {
  color: #cbd5e1;
  font-size: 13px;
  font-style: italic;
  margin: 0 auto 10px;
  line-height: 1.4;
  max-width: 90%;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.profile-quote-text:hover {
  color: #38bdf8;
  opacity: 0.9;
}

.btn-profile-edit-quote:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  transform: scale(1.08);
}

.btn-profile-edit-quote:active {
  transform: scale(0.95);
}

.profile-tags-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  width: 100%;
}

.profile-tag-item {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-mybook-journey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  margin: 0 auto;
}

.btn-mybook-journey:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.65);
}

.profile-counter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
  padding: 12px 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 2;
}

@media (max-width: 480px) {
  .profile-counter-strip {
    padding: 10px 6px;
    gap: 4px;
  }
  .profile-counter-val {
    font-size: 16px;
  }
  .profile-counter-lbl {
    font-size: 9.5px;
  }
}

.profile-counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-counter-clickable {
  cursor: pointer;
  border-radius: 12px;
  padding: 6px 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.profile-counter-clickable:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.profile-counter-clickable:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12);
}

.profile-counter-val {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.profile-counter-lbl {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

/* 2. Aylık Hedefim Bannerı */
.profile-monthly-goal-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.12);
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-monthly-goal-banner:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.profile-goal-shield-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), rgba(15, 23, 42, 0.8));
  border: 1.5px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

/* 2.b. Aylık Hedef Canlı Düzenleme Kartı (Tam Ortalanmış & Simetrik) */
.profile-goal-calculator-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-goal-calc-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

.profile-goal-calc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.profile-goal-calc-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.btn-goal-stepper {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-goal-stepper:hover {
  background: #f59e0b;
  color: #000;
  transform: scale(1.1);
}

.goal-stepper-val {
  font-size: 18px;
  font-weight: 900;
  color: #f59e0b;
  min-width: 30px;
  text-align: center;
}

.profile-goal-calc-pace-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 6px 16px;
  border-radius: 20px;
}

.profile-goal-calc-pace-badge strong {
  color: #34d399;
  font-weight: 800;
}

/* 3. Okuma Yolculuğu (Milestones Roadmap) */
.profile-milestones-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.milestones-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.milestone-nodes-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scrollbar-width: thin;
}

.milestone-node-card {
  flex: 0 0 86px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.milestone-node-card.completed {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.milestone-node-card.current {
  border-color: #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  transform: translateY(-2px);
}

.milestone-node-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.milestone-node-target {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.milestone-node-title {
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.1;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-node-badge-status {
  margin-top: 4px;
  font-size: 11px;
}

.milestone-node-arrow {
  color: #475569;
  font-size: 14px;
  flex-shrink: 0;
}

/* 4. Takip Edilen Türler (Donut & 2x2 Grid + Atmospheric Photo Backdrops) */
.profile-genre-dna-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.profile-genre-dna-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  margin-top: 14px;
}

.genre-donut-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.genre-donut-circle-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.genre-donut-center-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.genre-legend-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.genre-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.genre-legend-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.genre-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.genre-rich-card {
  position: relative;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 105px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.genre-rich-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.genre-rich-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.25);
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 1;
}

.genre-rich-card:hover .genre-rich-card-bg {
  transform: scale(1.08);
  filter: brightness(0.68) saturate(1.35);
}

.genre-rich-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.28) 100%);
  z-index: 2;
  pointer-events: none;
}

.genre-rich-card-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.genre-rich-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* 5. Kazanılan Rozetler & Başarımlar Rayı */
.profile-achievements-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.profile-ach-mini-card {
  flex: 0 0 200px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-ach-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
}

.profile-ach-mini-card.locked {
  opacity: 0.6;
  border-style: dashed;
}

/* Responsive Düzen */
@media (max-width: 640px) {
  .profile-genre-dna-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   🌟 INSTAGRAM-STYLE DAILY STORIES TRAY & MODAL
========================================================= */

.insta-stories-tray-wrap {
  width: 100%;
  margin-bottom: 16px;
  overflow: hidden;
}

.insta-stories-tray-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.insta-stories-tray-scroll::-webkit-scrollbar {
  display: none;
}

.insta-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  user-select: none;
}

.insta-story-item:active {
  transform: scale(0.94);
}

.insta-avatar-ring {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Instagram / Neon Gradient Rings */
.insta-avatar-ring.active-gradient {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 2px 10px rgba(220, 39, 67, 0.35);
}

.insta-avatar-ring.plus-mode {
  background: rgba(255, 255, 255, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 2px;
}

.insta-avatar-ring.seen-gradient {
  background: rgba(255, 255, 255, 0.18);
}

.insta-story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #06070a;
  box-sizing: border-box;
  background: #1e293b;
}

.insta-story-plus-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #06070a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.insta-story-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* =========================================================
   FULLSCREEN STORY PLAYER & CREATOR MODAL
========================================================= */

.insta-story-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.insta-story-card,
.story {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 932px);
  overflow: hidden;
  background: #080b0c;
  border-radius: 0;
  box-sizing: border-box;
  container-type: inline-size;
}

@media (min-width: 600px) {
  .insta-story-card,
  .story {
    height: min(92vh, 850px);
    border-radius: 22px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
  z-index: 1;
}

.story-blur {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(35px);
  opacity: 0.45;
  transform: scale(1.1);
  z-index: 0;
}

.story::after,
.insta-story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65),
    transparent 22%,
    transparent 65%,
    rgba(0, 0, 0, 0.75)
  );
  z-index: 2;
}

.story-ui {
  position: relative;
  z-index: 5;
  height: 100%;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.story-ui .header,
.story-ui .bottom,
.story-ui button,
.story-ui input,
.story-ui textarea,
.story-ui .caption,
.story-ui .btn-story-owner-stats {
  pointer-events: auto;
}

.story.is-story-holding .story-ui {
  opacity: 0 !important;
  pointer-events: none !important;
}

.story.is-story-holding::after {
  opacity: 0.15;
  transition: opacity 0.22s ease;
}

/* Tap Zones (Left / Right) */
.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.story-tap-left {
  left: 0;
  width: 35%;
}

.story-tap-right {
  right: 0;
  width: 65%;
}

/* Progress Bars */
.progress {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-bottom: 12px;
}

.progress span {
  height: 3px;
  flex: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.progress span .progress-fill {
  height: 100%;
  width: 0%;
  background: white;
  border-radius: 10px;
}

.progress span.completed .progress-fill {
  width: 100% !important;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}

.user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user .avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 7px;
}

.username {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.more {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.more:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.insta-story-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.insta-story-close-btn:hover {
  transform: scale(1.1);
}

/* Bottom & Caption */
.bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.caption {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  max-width: 90%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.reply-area {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.reply {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.reply::placeholder {
  color: rgba(255, 255, 255, 0.65);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.action {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  color: white;
  font-size: 19px;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.action:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

/* 📱 Responsive Story Bottom Bar & Buttons (390px ve altı dar ekranlar için kusursuz sığdırma) */
@media (max-width: 390px) {
  .story-ui {
    padding: 12px 10px 16px;
  }

  .reply-area {
    gap: 6px;
  }

  .reply {
    height: 40px;
    padding: 0 11px;
    font-size: 12px;
    min-width: 0;
  }

  .action {
    width: 37px;
    height: 37px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .more {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .user .avatar {
    width: 33px;
    height: 33px;
  }

  .username {
    font-size: 13px;
  }
}

@media (max-width: 355px) {
  .story-ui {
    padding: 10px 8px 14px;
  }

  .reply-area {
    gap: 5px;
  }

  .reply {
    height: 38px;
    padding: 0 9px;
    font-size: 11px;
    min-width: 0;
  }

  .action {
    width: 33px;
    height: 33px;
    font-size: 14.5px;
    flex-shrink: 0;
  }

  .more {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
  }

  .user .avatar {
    width: 30px;
    height: 30px;
  }

  .username {
    font-size: 12px;
  }
}

@container (max-width: 390px) {
  .story-ui {
    padding: 12px 10px 16px;
  }

  .reply-area {
    gap: 6px;
  }

  .reply {
    height: 40px;
    padding: 0 11px;
    font-size: 12px;
    min-width: 0;
  }

  .action {
    width: 37px;
    height: 37px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .more {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .user .avatar {
    width: 33px;
    height: 33px;
  }

  .username {
    font-size: 13px;
  }
}

@container (max-width: 355px) {
  .story-ui {
    padding: 10px 8px 14px;
  }

  .reply-area {
    gap: 5px;
  }

  .reply {
    height: 38px;
    padding: 0 9px;
    font-size: 11px;
    min-width: 0;
  }

  .action {
    width: 33px;
    height: 33px;
    font-size: 14.5px;
    flex-shrink: 0;
  }

  .more {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
  }

  .user .avatar {
    width: 30px;
    height: 30px;
  }

  .username {
    font-size: 12px;
  }
}

.btn-story-owner-stats {
  width: auto !important;
  min-width: 90px;
  height: 38px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 16px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(16px) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease !important;
}

.btn-story-owner-stats:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.04);
}

/* Empty / Create State */
.empty {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(
      circle at 50% 35%,
      rgba(16, 185, 129, 0.15),
      transparent 45%
    ),
    #050909;
}

.empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.upload {
  margin-top: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: 25px;
  color: #06120d;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upload:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.45);
}

.upload input {
  display: none;
}

/* =========================================================
   STORY 3-DOTS OPTIONS SHEET & EDIT MODAL
========================================================= */

.story-options-backdrop,
.story-edit-backdrop {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

.story-edit-backdrop {
  align-items: center;
  padding: 16px;
}

.story-options-sheet {
  width: 100%;
  background: #0d1217;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-options-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 4px auto;
}

.story-options-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}

.story-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.story-option-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.story-option-item.danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
}

.story-option-item.danger:hover {
  background: rgba(239, 68, 68, 0.14);
}

.story-opt-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.story-opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-opt-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.story-opt-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

.story-options-cancel-btn {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.story-options-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Edit Modal */
.story-edit-modal {
  width: 100%;
  max-width: 340px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

/* Viewers List Modal */
.story-viewers-backdrop {
  position: absolute;
  inset: 0;
  z-index: 105;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

.story-viewers-modal {
  width: 100%;
  background: #0d1217;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 18px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

/* 🌟 HIDE BOTTOM NAVBAR WHILE STORY MODAL IS OPEN */
body.story-active-mode .bottom-nav,
body.story-active-mode #bottom-nav,
body.story-active-mode .mobile-nav-bar,
body.story-active-mode .navbar-mobile,
body.story-active-mode .bottom-navigation,
body.story-active-mode .app-bottom-nav,
body.story-active-mode .bottom-nav-container,
body.story-active-mode nav.bottom-nav {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =====================================================
   BOOK / MEDIA DETAIL MODAL: RESPONSIVE DISCUSSIONS BAR
===================================================== */
.detail-discussions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 16px;
  gap: 8px;
  box-sizing: border-box;
}

.detail-discussions-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
  min-width: 0;
  flex-shrink: 1;
}

.detail-discussions-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.btn-see-community-discussions {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-see-community-discussions:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

@media (max-width: 440px) {
  .detail-discussions-bar {
    padding: 6px 8px;
    gap: 4px;
  }
  .detail-discussions-left {
    font-size: 10.5px;
    gap: 4px;
  }
  .detail-discussions-badge {
    padding: 1.5px 5px;
    font-size: 10px;
  }
  .btn-see-community-discussions {
    font-size: 10px;
    padding: 4px 7px;
    gap: 2px;
  }
}

@media (max-width: 360px) {
  .detail-discussions-bar {
    padding: 5px 6px;
    gap: 3px;
  }
  .detail-discussions-left {
    font-size: 10px;
    gap: 3px;
  }
  .detail-discussions-badge {
    padding: 1px 4px;
    font-size: 9.5px;
  }
  .btn-see-community-discussions {
    font-size: 9.5px;
    padding: 3px 6px;
  }

  /* Achievements Modal Responsive */
  #achievements-modal-overlay .modal-content {
    margin: 10px;
    width: calc(100% - 20px) !important;
  }
  .ach-modal-card {
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  .ach-modal-card > div:first-child {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }

  /* Smart Series/Movie Add Modal Responsive */
  #manual-add-modal-overlay .modal-content {
    padding: 16px 14px !important;
    margin: 10px;
    width: calc(100% - 20px) !important;
  }
  #manual-add-modal-overlay div[style*="display: flex; gap: 10px;"] {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Discussion Detail Room Header */
  #discussion-detail-overlay > div:first-child {
    padding: 8px 10px !important;
  }
  #disc-header-subtitle {
    max-width: 130px !important;
  }
  .discussion-hero-card {
    padding: 10px 12px !important;
  }
}

/* ================================================================
   UNIVERSAL CUSTOM DARK SELECT PICKER (MOBILE & DESKTOP)
   Replaces native OS white select popups with a sleek dark picker
   ================================================================ */
.custom-select-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999999 !important;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.custom-select-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  background: #0b0f19;
  background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.custom-select-backdrop.is-open .custom-select-sheet {
  transform: translateY(0);
}

.custom-select-handle {
  width: 42px;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

.custom-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.custom-select-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 85%;
}

.custom-select-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-select-close:hover,
.custom-select-close:active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.custom-select-list {
  padding: 12px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(82vh - 80px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-select-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.custom-select-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.custom-select-item:active {
  transform: scale(0.985);
}

.custom-select-item.is-selected {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
  font-weight: 700;
}

.custom-select-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-item-badge {
  font-size: 16px;
  font-weight: 900;
  color: #fbbf24;
  margin-left: 10px;
  flex-shrink: 0;
}

.custom-select-item-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  margin-left: 10px;
  flex-shrink: 0;
  display: inline-block;
}

@media (min-width: 641px) {
  .custom-select-backdrop {
    align-items: center;
    padding: 20px;
  }
  .custom-select-sheet {
    border-radius: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: scale(0.92);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .custom-select-backdrop.is-open .custom-select-sheet {
    transform: scale(1);
  }
  .custom-select-handle {
    display: none;
  }
}

/* ===================================================
   Avatar Change Modal (Modern Emerald Glassmorphism)
   =================================================== */
#avatar-modal-overlay {
  background: rgba(4, 9, 16, 0.76) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.avatar-modal-sheet {
  background: linear-gradient(168deg, #131d2d 0%, #0d1624 50%, #09101a 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.32) !important;
  border-radius: 26px !important;
  max-width: 480px !important;
  width: 100% !important;
  padding: 24px 26px 26px !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 50px rgba(16, 185, 129, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
}

.avatar-modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.avatar-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: rotate(90deg);
}

.avatar-modal-preview-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 16px auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-modal-preview-glow {
  position: absolute;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, transparent 70%);
  pointer-events: none;
}

.avatar-modal-preview-shape {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 42px;
  background: rgba(16, 185, 129, 0.14);
  transform: rotate(25deg);
  filter: blur(10px);
  pointer-events: none;
}

.avatar-modal-preview-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 4px;
  background: #0d1624;
  border: 3px solid #10b981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.48);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.avatar-modal-preview-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-modal-pencil-btn {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d1824;
  border: 2px solid #10b981;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-modal-pencil-btn:hover {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.65);
}

.avatar-gallery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
}

.avatar-gallery-row::-webkit-scrollbar {
  display: none;
}

.avatar-select-pill {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.avatar-select-pill:hover {
  transform: translateY(-2px);
}

.avatar-select-pill .pill-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}

.avatar-select-pill.is-selected .pill-ring {
  border: 2.5px solid #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

.avatar-select-pill .check-badge {
  display: none;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #10b981;
  color: #021a14;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.avatar-select-pill.is-selected .check-badge {
  display: flex;
}

.avatar-dashed-plus-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.avatar-dashed-plus-btn:hover {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.avatar-upload-card {
  border: 1px solid rgba(16, 185, 129, 0.26);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.avatar-upload-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.avatar-upload-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
}

.avatar-upload-text {
  min-width: 0;
  text-align: left;
}

.avatar-upload-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
}

.avatar-upload-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}

.avatar-upload-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.avatar-upload-card-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.avatar-save-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-save-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(16, 185, 129, 0.5);
  filter: brightness(1.06);
}

.avatar-save-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Mobile Responsiveness for Avatar Modal */
@media (max-width: 480px) {
  .avatar-modal-sheet {
    padding: 20px 16px 22px !important;
    border-radius: 22px !important;
    max-width: 95vw !important;
  }

  .avatar-modal-preview-wrapper {
    width: 124px;
    height: 124px;
    margin: 12px auto 18px auto;
  }

  .avatar-modal-preview-ring {
    width: 116px;
    height: 116px;
  }

  .avatar-modal-preview-glow {
    width: 145px;
    height: 145px;
  }

  .avatar-modal-preview-shape {
    width: 124px;
    height: 124px;
  }

  .avatar-upload-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    margin-bottom: 18px;
  }

  .avatar-upload-card-info {
    width: 100%;
    gap: 12px;
  }

  .avatar-upload-card-btn {
    width: 100%;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.09);
  }

  .avatar-gallery-row {
    gap: 6px;
    margin-bottom: 18px;
  }

  .avatar-select-pill {
    width: 44px;
    height: 44px;
  }

  .avatar-dashed-plus-btn {
    width: 44px;
    height: 44px;
  }

  .avatar-save-btn {
    padding: 13px 18px;
    font-size: 14.5px;
  }
}











