/* Sosyal hub — dikey video, ilgi filtreleri, bildirimler, takvim */

.home-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.home-feed-head-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.home-feed-head-text .section-title {
  margin-bottom: 0.125rem;
}

.home-feed-sub {
  margin: 0;
  line-height: 1.35;
  text-align: left;
}

.home-feed-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.home-interest-pills { margin-bottom: 1rem; }

.home-interests-wrap {
  position: relative;
  flex-shrink: 0;
}

#home-interests-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

#home-interests-edit .home-interests-caret {
  font-size: 1.05rem;
  transition: transform 0.15s ease;
}

#home-interests-edit[aria-expanded="true"] .home-interests-caret {
  transform: rotate(180deg);
}

.home-interest-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 40;
  min-width: min(16.5rem, calc(100vw - 2rem));
  max-width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border, #e8e4f0);
  background: var(--bg-card, #fff);
  box-shadow: 0 12px 28px rgba(30, 27, 46, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.home-interest-dropdown[hidden] {
  display: none !important;
}

.home-interest-dropdown .pill {
  margin: 0;
}

.home-interest-dropdown-foot {
  flex: 1 0 100%;
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border, #e8e4f0);
}

.home-interest-customize {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--violet, #752FEE);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.home-interest-customize:hover {
  background: rgba(var(--accent-rgb, 117, 47, 238), 0.08);
}

@media (max-width: 36rem) {
  .home-interest-dropdown {
    right: 0;
    left: auto;
  }
}

.notif-dot {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-card);
}

.live-notif-toast {
  position: fixed;
  top: calc(var(--nav-h, 3.5rem) + env(safe-area-inset-top, 0px) + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 400;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  background: var(--bg-card, #fff);
  color: var(--text, #1e1b2e);
  border: 1px solid var(--border, #e8e4f0);
  border-radius: 0.85rem;
  box-shadow: 0 12px 32px rgba(30, 27, 46, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.live-notif-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.live-notif-toast strong {
  font-size: 0.875rem;
}

.live-notif-toast span {
  font-size: 0.75rem;
  color: var(--text-muted, #6b6580);
  line-height: 1.35;
}

.icon-btn { position: relative; }

.notif-panel {
  position: fixed;
  top: var(--floating-panel-top, calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 0.65rem));
  right: 1rem;
  left: auto;
  z-index: 1180;
  width: min(18.5rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1rem);
  max-height: min(62vh, 22rem);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  box-shadow: var(--shadow);
  padding: 0.45rem 0.55rem;
  box-sizing: border-box;
  overflow: hidden;
  transform: none;
  will-change: auto;
}

.notif-panel[hidden] {
  display: none !important;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  flex-shrink: 0;
  gap: 0.35rem;
}

.notif-panel-head strong {
  font-size: 0.875rem;
  min-width: 0;
}

.notif-panel-head .icon-btn {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  flex-shrink: 0;
}

.notif-list {
  max-height: min(36vh, 12.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin-bottom: 0.3rem;
  min-height: 2.5rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.notif-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.4rem 0.35rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0.35rem;
  text-align: left;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s ease;
}

.notif-item:last-child { border-bottom: none; }

.notif-item.is-unread strong { color: var(--violet); }

.notif-item strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notif-item p,
.notif-item time {
  margin: 0.1rem 0 0;
  display: block;
  font-size: 0.68rem !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notif-item.is-bounce {
  animation: notif-item-flash 0.45s ease;
}

.social-feed-post.is-notif-highlight,
.profile-wall-post.is-notif-highlight,
.home-feed-card.is-notif-highlight {
  outline: 2px solid rgba(117, 47, 238, 0.55);
  outline-offset: 2px;
  transition: outline-color 0.3s ease;
}

@keyframes notif-item-flash {
  0%, 100% { background: transparent; }
  40% { background: rgba(var(--accent-rgb, 117, 47, 238), 0.14); }
}

.notif-push-toggle,
.notif-push-toggle[hidden],
label.notif-push-toggle {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.notif-push-toggle input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.08rem;
  flex-shrink: 0;
}

.notif-push-toggle span {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  font-size: 0.72rem;
}

.global-search-panel {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding:
    calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 0.75rem)
    1rem
    calc(1rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  margin: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.global-search-panel:not([hidden]) {
  pointer-events: auto;
}

.global-search-panel[hidden] {
  display: none !important;
}

.global-search-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(30, 20, 48, 0.22), transparent 70%),
    rgba(12, 10, 22, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.global-search-sheet {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: min(78dvh, 36rem);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 92%, #f3eefc) 0%, var(--bg-card) 28%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1.25rem;
  box-shadow:
    0 24px 64px rgba(20, 12, 40, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
  overflow: hidden;
  animation: global-search-in 0.22s ease;
}

@keyframes global-search-in {
  from { opacity: 0; transform: translateY(-0.6rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .global-search-sheet { animation: none; }
}

.global-search-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  flex-shrink: 0;
}

.global-search-head-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: rgb(var(--accent-rgb));
  background: rgba(var(--accent-rgb), 0.1);
}

.global-search-head-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.global-search-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.global-search-head input,
.global-search-head-fields input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 560;
  line-height: 1.3;
  color: var(--text);
  outline: none;
  padding: 0;
  margin: 0;
}

.global-search-head input::placeholder {
  color: var(--text-muted);
  font-weight: 450;
}

.global-search-close {
  flex-shrink: 0;
}

.global-search-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.55rem 0.55rem 0.85rem;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

.search-hint,
.search-empty,
.global-search-results > .muted.small {
  margin: 1.4rem 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.search-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.65rem 0.55rem 0.35rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  margin: 0 0 0.2rem;
  border: none;
  background: transparent;
  border-radius: 0.9rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: background 0.15s ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: rgba(var(--accent-rgb), 0.08);
  outline: none;
}

.search-result-avatar {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f3eefc, #fce7f3);
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.15rem;
}

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

.search-result-item > .material-symbols-outlined {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(var(--accent-rgb), 0.08);
  color: rgb(var(--accent-rgb));
  font-size: 1.25rem;
}

.search-result-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.search-result-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-action {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: rgb(var(--accent-rgb));
  background: rgba(var(--accent-rgb), 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  line-height: 1;
}

.search-result-post {
  padding: 0.7rem 0.75rem;
  margin: 0 0 0.25rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--bg-muted, #f5f3f8) 70%, transparent);
  font-size: 0.875rem;
}

.search-result-post strong {
  display: block;
  margin-bottom: 0.2rem;
}

.search-result-post p {
  margin: 0 0 0.35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.global-search-open {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  touch-action: none;
}

body.global-search-open #global-search-panel {
  touch-action: auto;
}

html.dark .global-search-sheet,
body.dark .global-search-sheet,
[data-theme="dark"] .global-search-sheet {
  background: linear-gradient(180deg, #1a1820 0%, #141416 32%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

html.dark .global-search-head-icon,
body.dark .global-search-head-icon,
[data-theme="dark"] .global-search-head-icon {
  background: rgba(167, 139, 250, 0.16);
  color: #CDABF5;
}

html.dark .search-result-avatar,
body.dark .search-result-avatar,
[data-theme="dark"] .search-result-avatar {
  background: linear-gradient(145deg, #2a2438, #3a2438);
}

.discover-feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.feed-toolbar-pro {
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(117, 47, 238, 0.06), rgba(217, 70, 239, 0.04));
  box-shadow: 0 4px 24px rgba(117, 47, 238, 0.06);
}

.feed-toolbar-pro-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.feed-toolbar-pro-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--violet), var(--fuchsia));
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.feed-toolbar-menu {
  position: relative;
  flex-shrink: 0;
}

.feed-toolbar-menu-btn[aria-expanded="true"] {
  outline: 2px solid color-mix(in srgb, var(--violet) 55%, #fff);
  outline-offset: 2px;
}

.feed-toolbar-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 40;
  min-width: 10.5rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-card, #fff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feed-toolbar-menu-panel[hidden] {
  display: none !important;
}

.feed-toolbar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: none;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.feed-toolbar-menu-item:hover {
  background: color-mix(in srgb, var(--text) 6%, var(--bg-card, #fff));
}

.feed-toolbar-menu-item .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.feed-toolbar-menu-item.feed-upload-btn {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  transform: none;
}

.feed-toolbar-menu-item.feed-upload-btn:hover {
  transform: none;
  opacity: 1;
  background: color-mix(in srgb, var(--text) 6%, var(--bg-card, #fff));
}

.feed-toolbar-menu-item.feed-upload-btn[hidden] {
  display: none !important;
}

.feed-toolbar-pro-title {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.feed-toolbar-pro-sub {
  display: block;
  margin-top: 0.125rem;
}

.feed-toolbar-pro-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.feed-view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.feed-view-toggle-btn:hover {
  border-color: var(--violet);
  background: rgba(117, 47, 238, 0.06);
}

.feed-view-toggle-btn .material-symbols-outlined {
  font-size: 1.125rem;
}

.feed-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.feed-upload-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  box-shadow: none;
}

.feed-upload-btn .material-symbols-outlined {
  font-size: 1.125rem;
}

.discover-feed-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.story-rings-row {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.85rem;
  margin-bottom: 0.25rem;
  scrollbar-width: none;
}
.story-rings-row::-webkit-scrollbar { display: none; }

.feed-top-chrome {
  display: block;
}

.feed-mobile-upload-fab {
  display: none !important;
}

.story-ring {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 4.25rem;
  position: relative;
}
.story-ring-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0;
}

.story-ring-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--violet), var(--fuchsia), #f59e0b) border-box;
  box-shadow: 0 2px 8px rgba(117, 47, 238, 0.15);
  overflow: hidden;
  position: relative;
}
.story-ring-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.story-ring.is-seen .story-ring-avatar {
  background: var(--bg-card);
  border: 3px solid var(--border);
  box-shadow: none;
  opacity: 0.8;
}

.story-ring-add .story-ring-avatar {
  background: var(--bg-card);
  border: 2px dashed var(--violet);
  color: var(--violet);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: none;
}

.story-ring.is-self {
  position: relative;
}
.story-ring.is-self .story-ring-avatar {
  position: relative;
}
.story-ring.is-self.has-story .story-ring-avatar {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  padding: 2px;
  border: none;
  box-shadow: none;
}
.story-ring.is-self.has-story .story-ring-avatar > img,
.story-ring.is-self.has-story .story-ring-avatar > span.story-ring-avatar-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 2px solid var(--bg-card, #fff);
}
.story-ring-badge-add {
  position: absolute;
  right: 0.2rem;
  bottom: 1.15rem;
  top: auto;
  width: 0.85rem;
  height: 0.85rem;
  min-width: 0.85rem;
  min-height: 0.85rem;
  max-width: 0.85rem;
  max-height: 0.85rem;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card, #fff);
  background: #0095f6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 700;
  z-index: 3;
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  overflow: hidden;
  flex: none;
}
.story-ring-badge-add .material-symbols-outlined {
  font-size: 0.62rem !important;
  line-height: 1 !important;
  width: 0.62rem;
  height: 0.62rem;
  display: block;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}
.story-ring.is-self.story-ring-add .story-ring-badge-add {
  background: #0095f6;
}

.modal-story-media-pick .story-media-pick-sheet {
  width: min(420px, 94vw);
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 1.1rem;
}
.story-media-pick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.story-media-pick-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.story-media-pick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.story-media-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.story-media-pick-btn:hover {
  border-color: rgba(117, 47, 238, 0.35);
  background: rgba(117, 47, 238, 0.04);
}
.story-media-pick-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: rgba(245, 133, 41, 0.12);
  color: #e1306c;
  flex-shrink: 0;
}
.story-media-pick-icon.is-video {
  background: rgba(0, 149, 246, 0.12);
  color: #0095f6;
}
.story-media-pick-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.story-media-pick-copy strong {
  font-size: 0.95rem;
}

.story-ring-name { font-size: 0.625rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.vertical-video-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 22rem;
  margin: 0 auto 1.5rem;
}

.vertical-video-feed.is-mobile-snap {
  max-width: none;
  width: 100%;
  height: calc(100dvh - var(--nav-h, 3.5rem) - var(--bottom-nav-h, 4rem) - 6rem);
  max-height: calc(100dvh - 8rem);
  gap: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 0;
}

.vertical-video-feed.is-mobile-snap .vertical-video-card {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  flex: 0 0 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.vertical-video-feed.is-mobile-snap .vertical-video-poster {
  aspect-ratio: auto;
  max-height: none;
  height: 100%;
  min-height: 100%;
}

/* Dikey akış açıkken sayfa gövdesi kaymasın — kaydırma feed içinde */
#page-feed.is-feed-snap-active {
  overflow: hidden;
}
#page-feed.is-feed-snap-active .page-wrap.feed-hub {
  max-width: min(28rem, 100%);
  /* Mobil app’te üst nav gizli — yalnızca alt nav düşülür (çift nav boşluğu yok) */
  height: calc(100dvh - var(--bottom-nav-h, 4.25rem));
  max-height: calc(100dvh - var(--bottom-nav-h, 4.25rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
#page-feed.is-feed-snap-active .feed-page-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#page-feed.is-feed-snap-active .story-rings-row {
  flex: 0 0 auto;
  max-height: 4.25rem;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
#page-feed.is-feed-snap-active .feed-toolbar-pro {
  flex: 0 0 auto;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.4rem;
}
#page-feed.is-feed-snap-active .vertical-video-feed.is-mobile-snap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}

/* Mobil: story üstte sabit şerit — video kalan alana ölçeklenir (üst üste binmez) */
@media (max-width: 900px) {
  #page-feed.is-feed-snap-active .page-wrap.feed-hub {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    height: calc(100dvh - var(--bottom-nav-h, 4.25rem));
    max-height: calc(100dvh - var(--bottom-nav-h, 4.25rem));
  }
  #page-feed.is-feed-snap-active .feed-page-panel,
  #page-feed.is-feed-snap-active #discover-panel-feed {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #page-feed.is-feed-snap-active .feed-top-chrome {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 5;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem 0.45rem;
    margin: 0;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    pointer-events: auto;
  }
  #page-feed.is-feed-snap-active .feed-top-chrome .story-rings-row {
    pointer-events: auto;
  }
  #page-feed.is-feed-snap-active .story-rings-row {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 0.1rem 0.25rem 0.15rem 0;
  }
  #page-feed.is-feed-snap-active .story-ring-name {
    color: var(--text, #14121a);
    text-shadow: none;
  }
  #page-feed.is-feed-snap-active .story-ring-add .story-ring-avatar {
    background: var(--bg-card, #fff);
    border-color: var(--violet, #752FEE);
    color: var(--violet, #752FEE);
  }
  #page-feed.is-feed-snap-active .feed-mobile-upload-fab,
  #page-feed.is-feed-snap-active .feed-mobile-upload-fab .material-symbols-outlined,
  #page-feed.is-feed-snap-active .feed-mobile-upload-fab[hidden] {
    display: none !important;
  }
  #page-feed.is-feed-snap-active .feed-toolbar-pro {
    display: none !important;
  }
  .vertical-video-feed.is-tiktok-feed,
  .vertical-video-feed.is-mobile-snap {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #000;
  }
  #page-feed.is-feed-snap-active .vertical-video-feed.is-mobile-snap,
  #page-feed.is-feed-snap-active .vertical-video-feed.is-tiktok-feed {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }
  .vertical-video-feed.is-mobile-snap {
    height: 100% !important;
    max-height: none !important;
    flex: 1 1 auto;
  }
  .vertical-video-feed.is-mobile-snap .vertical-video-card,
  .vertical-video-feed.is-tiktok-feed .vertical-video-card {
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    background: #000;
  }
  .vertical-video-feed.is-mobile-snap .vertical-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    background-color: #000;
    background-size: cover;
    background-position: center;
  }
  .vertical-video-feed.is-mobile-snap .vertical-video-card {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    min-height: 100%;
  }
  .vertical-video-feed.is-mobile-snap .vertical-inline-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* Bağımsız Akış sayfası — sistem rengi, sade modern */
#page-feed.app-page,
#page-feed.app-page.active,
body.logged-in #page-feed.active {
  background: var(--bg);
  color: var(--text);
}
#page-feed .feed-hub {
  max-width: min(28rem, 100%);
  padding-top: 0.5rem;
  color: var(--text);
}
#page-feed .feed-page-panel {
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
#page-feed .discover-tabs {
  display: none !important;
}
#page-feed .feed-toolbar-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-card);
}
#page-feed .feed-toolbar-pro-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
#page-feed .feed-toolbar-pro-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
  color: var(--text);
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
}
#page-feed .feed-toolbar-menu-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--text) 12%, var(--bg));
  outline: none;
}
#page-feed .feed-toolbar-pro-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
#page-feed .feed-toolbar-pro-sub {
  color: var(--text-muted);
}
@media (max-width: 48rem) {
  #page-feed .page-wrap.feed-hub {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
    max-width: 100%;
  }
}

#discover-panel-feed.is-tiktok-mode {
  padding-bottom: 0;
}
#discover-panel-feed.is-tiktok-mode .story-rings-row {
  margin-bottom: 0.35rem;
  padding-inline: 0.15rem;
}
.vertical-video-feed.is-tiktok-feed {
  max-width: min(26rem, 100%);
  margin-inline: auto;
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
}
.vertical-video-feed.is-tiktok-feed::-webkit-scrollbar { display: none; }
/* Snap yoksa (eski kullanım) yükseklik sınırı */
.vertical-video-feed.is-tiktok-feed:not(.is-mobile-snap) {
  height: min(78dvh, 42rem);
  max-height: calc(100dvh - 9rem);
}
.tiktok-feed-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}
.tiktok-reel-card {
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
}
.tiktok-reel-rail {
  position: absolute;
  right: 0.55rem;
  bottom: 5.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  pointer-events: auto;
}
.tiktok-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  padding: 0;
}
.tiktok-rail-btn .material-symbols-outlined {
  font-size: 1.85rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.tiktok-rail-btn.liked .material-symbols-outlined {
  color: #ff2d55;
  font-variation-settings: "FILL" 1;
}
.tiktok-reel-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 2px solid #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #996BF1, #ec4899);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.tiktok-reel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tiktok-reel-stage {
  position: relative;
  width: 100%;
  min-height: min(72dvh, 36rem);
  background: #000;
  overflow: hidden;
  border-radius: 1rem;
}
.tiktok-reel-media {
  position: absolute;
  inset: 0;
}
.tiktok-reel-media video,
.tiktok-reel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tiktok-reel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
  z-index: 1;
}
.tiktok-reel-meta {
  position: absolute;
  left: 0.85rem;
  right: 4.25rem;
  bottom: 1rem;
  z-index: 4;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.tiktok-reel-meta p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tiktok-social-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tiktok-social-feed .is-social-reel {
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  border: none;
}

/* Yorum paneli — siyah reel üzerinde krem/beyaz zemin */
.tiktok-social-feed .is-social-reel .wall-comments-wrap,
.is-social-reel .wall-comments-wrap {
  background: #faf7f2;
  color: #1c1917;
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  border-top: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 0 0 1rem 1rem;
}
.tiktok-social-feed .is-social-reel .wall-comment-author,
.tiktok-social-feed .is-social-reel .wall-comment-author-static,
.tiktok-social-feed .is-social-reel .wall-comment-text,
.is-social-reel .wall-comment-author,
.is-social-reel .wall-comment-author-static,
.is-social-reel .wall-comment-text {
  color: #1c1917;
}
.tiktok-social-feed .is-social-reel .wall-comment-action,
.tiktok-social-feed .is-social-reel .muted,
.is-social-reel .wall-comment-action,
.is-social-reel .wall-comments-wrap .muted {
  color: #78716c;
}
.tiktok-social-feed .is-social-reel .wall-comment-form input,
.is-social-reel .wall-comment-form input {
  background: #fff;
  color: #1c1917;
  border: 1px solid rgba(28, 25, 23, 0.12);
}
.tiktok-social-feed .is-social-reel .wall-comment-empty,
.is-social-reel .wall-comment-empty {
  color: #78716c;
}
.vertical-video-feed.is-tiktok-feed .vertical-video-overlay {
  right: 4rem;
  bottom: 1.1rem;
  z-index: 4;
}
.vertical-video-feed.is-tiktok-feed .vertical-play-fab {
  opacity: 0.35;
}
.vertical-video-feed.is-tiktok-feed .vertical-video-card.is-playing .vertical-play-fab {
  opacity: 0;
}
.vertical-video-card.is-unmuted .vertical-play-fab {
  opacity: 0 !important;
}
.tiktok-mute-chip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
  pointer-events: none;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.vertical-video-card.is-sound-flash .tiktok-mute-chip {
  opacity: 1;
}
.tiktok-mute-chip .material-symbols-outlined {
  font-size: 1rem;
}
@media (max-width: 900px) {
  .vertical-video-feed.is-tiktok-feed {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  /* 100vw + negatif margin yatay kaymayı tetikliyordu — kaldırıldı */
  #page-feed.is-feed-snap-active .page-wrap.feed-hub {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
  #page-feed.is-feed-snap-active .feed-toolbar-pro {
    margin-inline: 0.75rem;
  }
  #page-feed.is-feed-snap-active .story-rings-row {
    padding-inline: 0.25rem;
  }
}

.vertical-inline-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 0;
}

.vertical-play-fab {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.vertical-video-card.is-playing .vertical-play-fab { opacity: 0; }

.vertical-video-card {
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.vertical-video-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--text) 18%, var(--border));
  box-shadow: none;
}

.vertical-video-poster {
  aspect-ratio: 9 / 16;
  max-height: 32rem;
  background: linear-gradient(145deg, #CE8FF2, #752FEE);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vertical-video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.vertical-play-icon {
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 0.5rem;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.vertical-video-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem;
  color: #fff;
  pointer-events: none;
}

.vertical-video-cat {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  margin-bottom: 0.375rem;
}

.vertical-video-overlay h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vertical-video-author {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  opacity: 0.9;
}

.vertical-video-meta { display: none; }

.modal-daily-poll-box { text-align: center; }

.daily-poll-badge {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--violet);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.daily-poll-options { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }

.daily-poll-opt {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
  cursor: pointer;
  font: inherit;
}

.daily-poll-opt.is-voted { border-color: var(--violet); }

.interest-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.interest-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  cursor: pointer;
}

.interest-pick.active { border-color: var(--violet); background: rgba(var(--accent-rgb), 0.06); }

.interest-pick input { accent-color: var(--violet); }

.community-local-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.local-group-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0d9488;
}

.bff-intent-section { margin: 0.35rem 0 0.25rem; text-align: left; width: 100%; }
.bff-intent-section > .small {
  font-size: 0.72rem;
  margin: 0;
  line-height: 1.3;
}

.buddy-match-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
}

.bff-intent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.bff-intent-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.7rem;
  min-height: 1.75rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg-card, #fff);
  pointer-events: auto;
  touch-action: manipulation;
}

.bff-intent-pick.active {
  border-color: var(--violet, #752FEE);
  background: rgba(var(--accent-rgb, 117, 47, 238), 0.12);
  color: var(--violet, #752FEE);
  font-weight: 600;
}

.bff-intent-pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.cycle-smart-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.7rem 0.7rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.cycle-cal-head h2 {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}
.cycle-cal-head h2 .material-symbols-outlined {
  font-size: 1.05rem;
}
.cycle-cal-head .muted.small,
.cycle-cal-head p {
  font-size: 0.68rem !important;
  line-height: 1.3;
  margin: 0;
}

.cycle-log-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.4rem 0.5rem;
  align-items: end;
  margin: 0.55rem 0 0.5rem;
}
.cycle-log-form label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
}
.cycle-log-form input {
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.78rem;
  min-height: 1.85rem;
}
.cycle-log-form .btn {
  min-height: 1.85rem !important;
  padding: 0.3rem 0.55rem !important;
  font-size: 0.7rem !important;
  border-radius: 0.45rem !important;
  white-space: nowrap;
}

.cycle-phase-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(var(--accent-rgb), 0.06);
  margin-bottom: 0.45rem;
}
.cycle-phase-card strong {
  font-size: 0.8rem;
}
.cycle-phase-card .muted.small {
  font-size: 0.68rem !important;
  margin: 0.1rem 0 0;
  line-height: 1.3;
}

.cycle-phase-emoji { font-size: 1.25rem; line-height: 1; }

.cycle-forum-suggestions {
  margin-top: 0.35rem;
}
.cycle-forum-suggestions .small {
  font-size: 0.7rem;
  margin: 0 0 0.25rem;
}
.cycle-forum-chips { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.25rem; }
.cycle-forum-chips .btn,
.cycle-forum-chips button {
  min-height: 1.65rem !important;
  padding: 0.2rem 0.45rem !important;
  font-size: 0.65rem !important;
  border-radius: 999px !important;
}

/* Hub mini uygulamalar */
.hub-mini-app { margin-top: 0; }
.hub-app-form select,
.hub-app-skin-label select {
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.78rem;
  background: var(--bg-card, #fff);
  min-height: 1.85rem;
}
.hub-app-moods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.28rem;
  margin: 0.45rem 0;
}
.hub-mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  padding: 0.3rem 0.15rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg, #fafafa);
  cursor: pointer;
  font: inherit;
}
.hub-mood-btn.active {
  border-color: var(--violet, #752FEE);
  background: rgba(var(--accent-rgb, 117, 47, 238), 0.1);
}
.hub-mood-emoji { font-size: 1.05rem; line-height: 1; }
.hub-mood-label { font-size: 0.55rem; font-weight: 600; color: var(--text-muted); }
.hub-app-water { margin-bottom: 0.4rem; }
.hub-water-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}
.hub-water-meta strong { font-size: 0.75rem; }
.hub-water-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 117, 47, 238), 0.12);
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.hub-water-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  border-radius: inherit;
  transition: width 0.25s ease;
}
.hub-app-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.hub-app-actions .btn {
  min-height: 1.75rem !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.68rem !important;
  border-radius: 0.45rem !important;
}
.hub-water-remind-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--muted, #64748b);
  cursor: pointer;
  line-height: 1.35;
}
.hub-water-remind-toggle input {
  margin-top: 0.12rem;
  flex-shrink: 0;
}
.hub-outfit-list {
  margin: 0.25rem 0 0.35rem;
  padding-left: 1rem;
  font-size: 0.78rem;
}
.hub-outfit-list li { margin: 0.1rem 0; }

@media (max-width: 36rem) {
  .cycle-log-form {
    grid-template-columns: 1fr 1fr;
  }
  .cycle-log-form .btn {
    grid-column: 1 / -1;
  }
  .hub-app-moods {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.22rem;
  }
}

/* Stil Asistanı — StylePuzzle AI uygulama */
#hub-app-fashion.hub-mini-app,
#hub-app-fashion.cycle-smart-calendar {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

.style-ai-app {
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border, #e5e5e5);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.style-ai-app.style-ai-compact {
  max-height: min(70vh, 34rem);
  display: flex;
  flex-direction: column;
}

.style-ai-app.style-ai-compact .style-ai-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.85rem 1rem;
  flex: 1;
  min-height: 0;
}

/* Sonuç ekranı: 4 foto + butonlar kaydırmadan sığsın */
.style-ai-app.style-ai-compact.is-result {
  max-height: none;
}

.style-ai-app.style-ai-compact.is-result .style-ai-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.65rem 0.7rem;
  gap: 0.35rem;
}

.style-ai-app.style-ai-compact.is-result .style-ai-occ-badge {
  margin: 0;
  align-self: flex-start;
}

.style-ai-app.style-ai-compact.is-result .style-ai-title {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.25;
}

.style-ai-app.style-ai-compact.is-result .style-ai-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.35rem;
  margin: 0;
  min-height: 0;
  height: min(42vw, 11.5rem);
  max-height: 11.5rem;
}

.style-ai-app.style-ai-compact.is-result .style-ai-piece {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0.65rem;
  overflow: hidden;
  border: none;
  padding: 0;
  background: #f4f4f5;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
}

.style-ai-app.style-ai-compact.is-result .style-ai-piece-photo {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.style-ai-app.style-ai-compact.is-result .style-ai-piece-photo img,
.style-ai-app.style-ai-compact.is-result .style-ai-piece-skel {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
}

.style-ai-app.style-ai-compact.is-result .style-ai-piece-label {
  font-size: 0.55rem;
  padding: 0.2rem 0.3rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.style-ai-app.style-ai-compact.is-result .style-ai-tip {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.style-ai-app.style-ai-compact.is-result .style-ai-actions {
  margin: 0;
  gap: 0.35rem;
}

.style-ai-app.style-ai-compact.is-result .style-ai-btn {
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
}

.style-ai-app.style-ai-compact.is-result .style-ai-link {
  margin: 0;
  font-size: 0.68rem;
  padding: 0.15rem 0;
}

.style-ai-app.style-ai-compact .style-ai-title {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.style-ai-app.style-ai-compact .style-ai-grid {
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.style-ai-app.style-ai-compact .style-ai-piece {
  min-height: 5.5rem;
}

.style-ai-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.style-ai-cta-row .style-ai-wardrobe-cta {
  margin: 0;
  margin-bottom: 0;
  padding: 0.55rem 0.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  border-radius: 1.35rem;
}

.style-ai-cta-row .style-ai-chevron { display: none; }

.style-ai-piece-loading .style-ai-piece-skel {
  display: block;
  width: 100%;
  height: 4.5rem;
  background: linear-gradient(90deg, #f4f4f5, #e4e4e7, #f4f4f5);
  background-size: 200% 100%;
  animation: style-skel 1.1s ease infinite;
  border-radius: 0.5rem 0.5rem 0 0;
}

@keyframes style-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.style-ai-full-hero {
  border-radius: 0.85rem;
  overflow: hidden;
  margin: 0.5rem 0 0.65rem;
  max-height: 12rem;
  background: #f4f4f5;
}

.style-ai-full-hero img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

.style-ai-swatch-row {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.style-ai-swatch-row span {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e4e4e7;
}

.style-ai-advice {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #3f3f46;
}

.style-ai-advice li { margin: 0.3rem 0; }

.style-ai-full-hist {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.style-ai-full-thumb {
  border: none;
  padding: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.55rem;
  overflow: hidden;
  cursor: pointer;
}

.style-ai-full-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 520px) {
  .style-ai-cta-row { grid-template-columns: 1fr; }
  .style-ai-app.style-ai-compact.is-result .style-ai-grid {
    height: min(48vw, 10.5rem);
    max-height: 10.5rem;
  }
}

.style-ai-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c 52%, #8a7380));
  color: #fff;
}

.style-ai-menu { font-size: 1.25rem; opacity: 0.9; }
.style-ai-back {
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  padding: 0;
  cursor: pointer;
}

.style-ai-brand {
  flex: 1;
  text-align: center;
  font-family: "Segoe Script", "Comic Sans MS", cursive;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.style-ai-ai-pill {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
}

.style-ai-body { padding: 1.15rem 1rem 1.25rem; }

.style-ai-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.style-ai-sub { margin: 0 0 1rem; }

.style-ai-occasion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5e5e5;
}

.style-ai-occasion-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.15rem;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.style-ai-occasion-row:active { background: #fafafa; }

.style-ai-occ-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: var(--mood-soft, rgba(106, 61, 138, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
  flex-shrink: 0;
}

.style-ai-occ-ico .material-symbols-outlined { font-size: 1.35rem; }

.style-ai-occ-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.style-ai-occ-text strong { font-size: 0.95rem; }
.style-ai-chevron { color: #a1a1aa; font-size: 1.25rem; }
.style-ai-season { margin: 1rem 0 0; }

.style-ai-occ-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #f4f4f5;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #52525b;
}

.style-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 1rem 0 0.85rem;
}

.style-ai-piece {
  aspect-ratio: 1;
  border-radius: 0.65rem;
  border: 1px solid #e5e5e5;
  background: linear-gradient(180deg, #fff 0%, var(--swatch, #f4f4f5) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem;
}

.style-ai-piece-emoji { font-size: 2.25rem; line-height: 1; }
.style-ai-piece-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #3f3f46;
  text-align: center;
  line-height: 1.2;
}

.style-ai-tip {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #52525b;
  line-height: 1.45;
}

.style-ai-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.style-ai-btn {
  border: none;
  border-radius: 0.65rem;
  padding: 0.8rem 0.75rem;
  font-weight: 800;
  font-size: 0.8125rem;
  cursor: pointer;
}

.style-ai-btn:disabled { opacity: 0.45; cursor: default; }

.style-ai-btn-no {
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
}

.style-ai-btn-yes {
  background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c));
  color: #fff;
  box-shadow: var(--mood-glow, 0 8px 20px rgba(106, 61, 138, 0.22));
}

.style-ai-link {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  border: none;
  background: transparent;
  color: #71717a;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem;
}

.style-ai-wardrobe-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  margin-bottom: 1.15rem;
  border: 1.5px dashed color-mix(in srgb, var(--kozamia-shell-purple, #6a3d8a) 32%, #a1a1aa);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--mood-soft, rgba(106, 61, 138, 0.12)) 55%, #fafafa);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}

.style-ai-wardrobe-cta-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: #18181b;
  color: var(--mood-heading, var(--kozamia-shell-purple, #CE8FF2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.style-ai-wardrobe-cta-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.style-ai-wardrobe-cta-text strong { font-size: 0.875rem; }
.style-ai-wardrobe-cta-text .muted,
.style-ai-sub.muted,
.style-ai-sub {
  color: color-mix(in srgb, var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a)) 72%, #71717a);
}

.style-ai-upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.style-ai-upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed color-mix(in srgb, var(--kozamia-shell-purple, #6a3d8a) 28%, #d4d4d8);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--mood-soft, rgba(106, 61, 138, 0.1)) 50%, #fafafa);
  cursor: pointer;
  text-align: center;
}

.style-ai-upload-drop .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
}

.style-ai-upload-preview {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  max-height: 10rem;
}

.style-ai-upload-preview img {
  display: block;
  width: 100%;
  max-height: 10rem;
  object-fit: cover;
}

.style-ai-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #52525b;
}

.style-ai-field select,
.style-ai-field input {
  border: 1px solid #e4e4e7;
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 500;
  color: #18181b;
  background: #fff;
}

.style-ai-ward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.style-ai-ward-card {
  position: relative;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.style-ai-ward-card-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.style-ai-ward-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4f4f5;
}

.style-ai-ward-meta {
  padding: 0.45rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.style-ai-ward-meta strong {
  font-size: 0.6875rem;
  line-height: 1.25;
}

.style-ai-ward-del {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.style-ai-ward-del .material-symbols-outlined { font-size: 1rem; }

.style-ai-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem;
}

.style-ai-piece-photo {
  padding: 0;
  overflow: hidden;
  background: #f4f4f5 !important;
}

.style-ai-piece-photo img {
  width: 100%;
  flex: 1;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.style-ai-piece-photo .style-ai-piece-label {
  width: 100%;
  padding: 0.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.625rem;
}

/* Fotoğraf büyütme */
.style-ai-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.style-ai-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.style-ai-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.style-ai-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 28rem);
  max-height: 85vh;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.style-ai-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #0f172a;
}

.style-ai-lightbox-cap {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f3f46;
}

.style-ai-lightbox-x {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #18181b;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.hub-app-skin-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0.75rem 0;
}
.hub-routine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.hub-routine-col h3 {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.hub-check-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0.3rem 0;
  cursor: pointer;
}
.hub-app-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.25rem;
}
.hub-app-disclaimer { margin-top: 0.65rem; }
@media (max-width: 520px) {
  .hub-app-moods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-routine-grid { grid-template-columns: 1fr; }
}

/* CiltAsistanı */
#hub-app-beauty.hub-mini-app,
#hub-app-motherhood.hub-mini-app {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.skin-ai-app,
.mom-ai-app {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border, #e5e5e5);
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  max-height: min(52vh, 26rem);
  display: flex;
  flex-direction: column;
}

.skin-ai-app {
  max-height: min(44vh, 21rem);
  margin-bottom: 0.45rem;
}

.mom-ai-app {
  border-radius: 1.25rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  max-height: min(50vh, 24rem);
}

.skin-ai-bar,
.mom-ai-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  color: #fff;
}
.skin-ai-bar {
  padding: 0.28rem 0.5rem;
  gap: 0.22rem;
}
.skin-ai-bar .material-symbols-outlined { font-size: 0.95rem; }

.skin-ai-bar { background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c 52%, #8a7380)); }
.mom-ai-bar { background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c 52%, #8a7380)); }

.skin-ai-brand,
.mom-ai-brand { font-size: 0.8rem; font-weight: 700; }
.skin-ai-brand { font-size: 0.72rem; }

.skin-ai-pill,
.mom-ai-pill {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.skin-ai-pill { display: none; }

.skin-ai-pct {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.95;
  margin-left: auto;
}

.mom-ai-back {
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  padding: 0;
  cursor: pointer;
}

.skin-ai-body,
.mom-ai-body {
  padding: 0.5rem 0.55rem 0.6rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.skin-ai-body {
  padding: 0.35rem 0.45rem 0.4rem;
}

.skin-ai-streak {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.28rem;
  font-size: 0.65rem;
}
.skin-ai-streak strong { font-size: 0.65rem; }

.skin-ai-week { display: flex; gap: 0.12rem; }

.skin-ai-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #f4f4f5;
  font-size: 0.42rem;
  display: grid;
  place-items: center;
  color: #a1a1aa;
  font-weight: 700;
}

.skin-ai-dot.is-done { background: var(--kozamia-shell-purple, #6a3d8a); color: #fff; }
.skin-ai-dot.is-half { background: var(--mood-soft, #ebe2f7); color: var(--mood-heading, #5c3d6e); }

.skin-ai-label {
  margin: 0.1rem 0 0.12rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.skin-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  margin-bottom: 0.22rem;
}

.skin-ai-suggest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  margin: 0.05rem 0 0.3rem;
  padding: 0.28rem 0.5rem;
  border: none;
  border-radius: 0.85rem;
  background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--mood-glow, 0 1px 5px rgba(106, 61, 138, 0.18));
}

.skin-ai-suggest .material-symbols-outlined { font-size: 0.9rem; }

.skin-ai-suggest:active { transform: scale(0.98); }

.skin-ai-advice-head {
  margin: 0 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
}

.skin-ai-advice {
  margin: 0;
  padding-left: 0.85rem;
  font-size: 0.65rem;
  line-height: 1.3;
  color: #3f3f46;
}

.skin-ai-advice li { margin-bottom: 0.1rem; }

.skin-ai-tip-empty {
  margin: 0;
  font-size: 0.65rem;
  color: #71717a;
  line-height: 1.3;
}

.skin-ai-chip {
  border: 1px solid #e4e4e7;
  background: #fafafa;
  border-radius: 999px;
  padding: 0.14rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  cursor: pointer;
  color: #3f3f46;
}

.skin-ai-chip .material-symbols-outlined { font-size: 0.78rem; }
.skin-ai-chip-sm { padding: 0.12rem 0.32rem; font-size: 0.58rem; }
.skin-ai-chip.is-active {
  background: var(--mood-chip, rgba(106, 61, 138, 0.18));
  border-color: var(--kozamia-shell-purple, #6a3d8a);
  color: var(--mood-heading, #5c3d6e);
}

.skin-ai-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  margin: 0.1rem 0 0.28rem;
}

.skin-ai-tab {
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.22rem 0.28rem;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
}
.skin-ai-tab .material-symbols-outlined { font-size: 0.85rem; }

.skin-ai-tab.is-active {
  background: var(--mood-soft, rgba(106, 61, 138, 0.14));
  border-color: var(--kozamia-shell-purple, #6a3d8a);
  color: var(--mood-heading, #5c3d6e);
}

.skin-ai-steps {
  list-style: none;
  margin: 0 0 0.28rem;
  padding: 0;
  width: 100%;
}

.skin-ai-steps > li {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.skin-ai-step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.22rem 0.35rem;
  border-radius: 0.4rem;
  margin: 0.1rem 0;
  background: #fafafa;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.skin-ai-step.is-on { background: var(--mood-soft, rgba(106, 61, 138, 0.12)); }

.skin-ai-step input[type="checkbox"] {
  width: 0.85rem;
  height: 0.85rem;
  min-width: 0.85rem;
  max-width: 0.85rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--kozamia-shell-purple, #6a3d8a);
}

.skin-ai-step .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
}

.skin-ai-step > span:not(.material-symbols-outlined) {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.skin-ai-x {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
  padding: 0 0.15rem;
}

.skin-ai-add {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
  width: 100%;
}

.skin-ai-add input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: 1px solid #e4e4e7;
  border-radius: 0.4rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.65rem;
}

.skin-ai-add-btn {
  border: none;
  background: var(--kozamia-shell-purple, #6a3d8a);
  color: #fff;
  border-radius: 0.65rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.skin-ai-add-btn .material-symbols-outlined { font-size: 0.95rem; }

.skin-ai-tip-card,
.mom-ai-tip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
}
.skin-ai-tip-card {
  border-radius: 0.45rem;
  padding: 0.32rem 0.4rem;
  margin-bottom: 0.2rem;
}

.skin-ai-tip-head,
.mom-ai-tip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}
.skin-ai-tip-head { font-size: 0.62rem; margin-bottom: 0.12rem; }

.skin-ai-link,
.mom-ai-link {
  border: none;
  background: transparent;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}
.skin-ai-link { font-size: 0.58rem; }

.skin-ai-note {
  margin: 0;
  font-size: 0.65rem !important;
  line-height: 1.3;
}
.skin-ai-note { font-size: 0.55rem !important; opacity: 0.85; }

.mom-ai-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  color: #fff;
  background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c 52%, #8a7380));
}
.mom-ai-bar .material-symbols-outlined { font-size: 1.05rem; }
.mom-ai-brand { font-size: 0.8rem; font-weight: 700; }
.mom-ai-pill {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.mom-ai-body {
  padding: 0.5rem 0.55rem 0.6rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.mom-ai-tip-card {
  background: color-mix(in srgb, var(--mood-soft, rgba(106, 61, 138, 0.12)) 40%, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.85rem;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
}
.mom-ai-tip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}
.mom-ai-link {
  border: none;
  background: transparent;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.mom-ai-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem;
  margin-bottom: 0.4rem;
}

.mom-ai-mode {
  border: 1px solid color-mix(in srgb, var(--kozamia-shell-purple, #6a3d8a) 28%, #e4e4e7);
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.35rem;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  color: var(--mood-heading, #5c3d6e);
  min-height: 1.75rem;
}

.mom-ai-mode.is-active {
  background: var(--mood-soft, rgba(106, 61, 138, 0.16));
  border-color: var(--kozamia-shell-purple, #6a3d8a);
}

.mom-ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: end;
  margin-bottom: 0.35rem;
}
.mom-ai-form label {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0;
}

.mom-ai-form input {
  border: 1px solid #e4e4e7;
  border-radius: 0.65rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.75rem;
  min-height: 1.75rem;
}

.mom-ai-submit {
  border: none;
  background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c));
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.3rem 0.55rem;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  width: auto;
  min-height: 1.75rem;
  white-space: nowrap;
  box-shadow: var(--mood-glow, 0 6px 16px rgba(106, 61, 138, 0.2));
}

.mom-ai-progress-card {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0.35rem 0;
  padding: 0.4rem 0.5rem;
  background: var(--mood-soft, rgba(106, 61, 138, 0.14));
  border-radius: 0.85rem;
}
.mom-ai-progress-card strong { font-size: 0.75rem; }
.mom-ai-progress-card .muted.small {
  font-size: 0.65rem !important;
  margin: 0.05rem 0 0;
  line-height: 1.25;
}

.mom-ai-ring {
  --p: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: conic-gradient(var(--kozamia-shell-purple, #6a3d8a) calc(var(--p) * 1%), var(--mood-soft, #ebe2f7) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mom-ai-ring span {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--mood-heading, #5c3d6e);
}

.mom-ai-section {
  margin: 0.25rem 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #71717a;
}

.mom-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.mom-ai-chip {
  border: 1px solid color-mix(in srgb, var(--kozamia-shell-purple, #6a3d8a) 28%, #e4e4e7);
  background: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  color: var(--mood-heading, #5c3d6e);
  min-height: 1.55rem;
}

.mom-ai-chip .material-symbols-outlined { font-size: 0.85rem; }

.mom-ai-chip.is-active {
  background: var(--mood-chip, rgba(106, 61, 138, 0.18));
  border-color: var(--kozamia-shell-purple, #6a3d8a);
  color: var(--mood-heading, #5c3d6e);
}

.mom-ai-suggest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  margin: 0.1rem 0 0.4rem;
  padding: 0.4rem 0.65rem;
  border: none;
  border-radius: 0.85rem;
  background: var(--mood-gradient, linear-gradient(135deg, #5c3d6e, #7d5a8c));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--mood-glow, 0 2px 8px rgba(106, 61, 138, 0.22));
  min-height: 1.85rem;
}

.mom-ai-suggest .material-symbols-outlined { font-size: 0.95rem; }

.mom-ai-suggest:active { transform: scale(0.98); }

.mom-ai-advice-head {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
}

.mom-ai-advice {
  margin: 0 0 0.35rem;
  padding-left: 0.95rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #3f3f46;
}

.mom-ai-advice li { margin-bottom: 0.2rem; }

.mom-ai-tip-empty {
  margin: 0;
  font-size: 0.7rem;
  color: #71717a;
  line-height: 1.35;
}

.mom-ai-topics {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}

.mom-ai-topic {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--kozamia-shell-purple, #6a3d8a) 24%, #e4e4e7);
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.4rem 0.5rem;
  margin: 0.2rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  color: #3f3f46;
  text-align: left;
}

.mom-ai-topic-ico {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.55rem;
  background: var(--mood-soft, rgba(106, 61, 138, 0.16));
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
  display: grid;
  place-items: center;
}
.mom-ai-topic-ico .material-symbols-outlined { font-size: 0.95rem; }

.mom-ai-topic .material-symbols-outlined:last-child {
  margin-left: auto;
  color: #a1a1aa;
  font-size: 1rem;
}

.mom-ai-badge {
  display: inline-block;
  background: var(--mood-chip, rgba(106, 61, 138, 0.18));
  color: var(--mood-heading, #5c3d6e);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  margin: 0 0 0.3rem;
}

.mom-ai-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}

.mom-ai-checks {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}

.mom-ai-check {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  padding: 0.3rem 0.4rem;
  border-radius: 0.65rem;
  background: #fafafa;
  margin: 0.15rem 0;
  font-size: 0.7rem;
  cursor: pointer;
  line-height: 1.3;
}

.mom-ai-check.is-on { background: var(--mood-soft, rgba(106, 61, 138, 0.12)); }
.mom-ai-check input { accent-color: var(--kozamia-shell-purple, #6a3d8a); margin-top: 0.1rem; }

.mom-ai-save {
  margin-top: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--kozamia-shell-purple, #6a3d8a) 28%, #e4e4e7);
  background: #fff;
  color: var(--mood-heading, var(--kozamia-shell-purple, #6a3d8a));
  border-radius: 0.65rem;
  padding: 0.28rem 0.55rem;
  font-weight: 700;
  font-size: 0.68rem;
  cursor: pointer;
  min-height: 1.7rem;
}

#discover-panel-motherhood .hub-panel-intro {
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
}
#discover-panel-motherhood .hub-panel-intro h2 { font-size: 0.9rem; }
#discover-panel-motherhood .hub-panel-intro .muted.small { font-size: 0.68rem !important; }
#discover-panel-beauty .hub-panel-intro,
#discover-panel-beauty .hub-panel-intro-compact {
  margin-bottom: 0.3rem;
  padding-bottom: 0.2rem;
}
#discover-panel-beauty .hub-panel-intro h2 {
  font-size: 0.82rem;
  gap: 0.25rem;
}
#discover-panel-beauty .hub-panel-intro h2 .material-symbols-outlined { font-size: 1rem; }
#discover-panel-beauty .hub-panel-intro .muted.small { font-size: 0.62rem !important; margin: 0.1rem 0 0; }
#discover-panel-beauty #hub-app-beauty {
  margin-bottom: 0.4rem;
}
#discover-panel-beauty .page-toolbar {
  margin: 0.15rem 0 0.3rem;
}
#discover-panel-beauty .category-pills .pill {
  min-height: 1.45rem !important;
  padding: 0.15rem 0.42rem !important;
  font-size: 0.62rem !important;
}
#discover-panel-motherhood #hub-app-motherhood {
  margin-bottom: 0.55rem;
}
#discover-panel-motherhood .page-toolbar {
  margin: 0.25rem 0 0.4rem;
}
#discover-panel-motherhood .category-pills .pill {
  min-height: 1.55rem !important;
  padding: 0.2rem 0.5rem !important;
  font-size: 0.65rem !important;
}
#discover-panel-motherhood .content-grid {
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}
#discover-panel-motherhood .content-card,
#discover-panel-motherhood .content-card-btn {
  padding: 0.55rem 0.6rem !important;
  border-radius: 0.6rem !important;
}
#discover-panel-motherhood .content-card h3,
#discover-panel-motherhood .content-card-btn h3 {
  font-size: 0.78rem !important;
}
#discover-panel-motherhood .content-card p,
#discover-panel-motherhood .content-card-btn p {
  font-size: 0.68rem !important;
}
#discover-panel-motherhood .content-card-thumb {
  margin-bottom: 0.3rem;
  border-radius: 0.45rem;
}
#discover-panel-motherhood .mom-ai-body > .muted.small {
  font-size: 0.62rem !important;
  margin: 0.15rem 0 0;
  line-height: 1.3;
}

.selfie-camera-wrap {
  margin: 1rem 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #111;
  aspect-ratio: 3 / 4;
  max-height: 16rem;
}

.selfie-video, .selfie-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selfie-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* Akış yükle seçici — Story / Video */
.modal-feed-upload-pick .modal-backdrop {
  backdrop-filter: blur(6px);
}

.feed-upload-pick-sheet {
  width: min(22rem, calc(100vw - 1.5rem));
  max-width: 22rem;
  padding: 0;
  border-radius: 1.15rem;
  overflow: hidden;
}

.feed-upload-pick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(135deg, rgba(117, 47, 238, 0.1), rgba(236, 72, 153, 0.06));
  border-bottom: 1px solid var(--border);
}

.feed-upload-pick-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.feed-upload-pick-head p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
}

.feed-upload-pick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem;
}

.feed-upload-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--bg-card, #fff);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.feed-upload-pick-btn:hover {
  border-color: color-mix(in srgb, var(--violet, #752FEE) 40%, var(--border));
  background: color-mix(in srgb, var(--violet, #752FEE) 6%, var(--bg-card, #fff));
  transform: translateY(-1px);
}

.feed-upload-pick-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(117, 47, 238, 0.12));
  color: var(--violet, #752FEE);
}

.feed-upload-pick-icon.is-video {
  background: linear-gradient(135deg, rgba(117, 47, 238, 0.18), rgba(217, 70, 239, 0.14));
}

.feed-upload-pick-icon .material-symbols-outlined {
  font-size: 1.35rem;
}

.feed-upload-pick-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.feed-upload-pick-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.feed-upload-pick-copy .small {
  font-size: 0.7rem;
  line-height: 1.3;
}

.feed-upload-pick-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.video-upload-sheet {
  max-width: 26rem;
  padding: 0;
  overflow-x: clip;
  overflow-y: auto;
  max-height: min(92dvh, 92vh);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 1.25rem;
}

.modal-video-upload .modal-backdrop {
  backdrop-filter: blur(6px);
}

.video-upload-hero {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  padding: 0.55rem 0.65rem 0.15rem;
  background: transparent;
  border-bottom: none;
  pointer-events: none;
}

.video-upload-hero-badge {
  display: none;
}

.video-upload-hero h2,
.video-upload-hero-text {
  display: none !important;
}

.video-upload-close {
  position: relative;
  top: auto;
  right: auto;
  pointer-events: auto;
  z-index: 6;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
}

.video-upload-form {
  padding: 0.35rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.video-upload-dest {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}
.video-upload-dest .video-upload-label {
  margin-bottom: 0.45rem;
}
.video-upload-dest-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.video-upload-dest-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  border: 1.5px solid var(--border, #e4e4e7);
  background: var(--bg-card, #fff);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.video-upload-dest-btn .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--text-muted, #71717a);
}
.video-upload-dest-btn strong {
  font-size: 0.9rem;
  font-weight: 700;
}
.video-upload-dest-btn .small {
  font-size: 0.7rem;
  line-height: 1.25;
}
.video-upload-dest-btn.is-active {
  border-color: rgba(117, 47, 238, 0.55);
  background: rgba(117, 47, 238, 0.08);
  box-shadow: 0 0 0 1px rgba(117, 47, 238, 0.2);
}
.video-upload-dest-btn.is-active .material-symbols-outlined {
  color: #752FEE;
}
.video-upload-dest[hidden],
.video-upload-edit-dest[hidden] {
  display: none !important;
}

/* Önizleme karesi içinde kompakt pencere */
.video-upload-dest--pip {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  z-index: 6;
  width: auto;
  max-width: calc(100% - 1rem);
  margin: 0;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.video-upload-dest--pip .video-upload-dest-row {
  display: flex;
  gap: 0.15rem;
  grid-template-columns: none;
}
.video-upload-dest--pip .video-upload-dest-btn {
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 4.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(248, 250, 252, 0.88);
  box-shadow: none;
}
.video-upload-dest--pip .video-upload-dest-btn .material-symbols-outlined {
  font-size: 0.95rem;
  color: inherit;
}
.video-upload-dest--pip .video-upload-dest-btn strong {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.video-upload-dest--pip .video-upload-dest-btn .small {
  display: none;
}
.video-upload-dest--pip .video-upload-dest-btn.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: #6B25D9;
  border-color: transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.video-upload-dest--pip .video-upload-dest-btn.is-active .material-symbols-outlined {
  color: #752FEE;
}

/* Düzenleme panelinin üstündeki ince yayın seçici */
.video-upload-edit-dest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border, #e4e4e7);
  background: color-mix(in srgb, var(--bg-card, #fff) 92%, #752FEE 8%);
}
.video-upload-edit-dest-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.video-upload-edit-dest-row {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}
.video-upload-edit-dest-btn {
  border: none;
  background: transparent;
  color: var(--text-muted, #71717a);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.video-upload-edit-dest-btn.is-active {
  background: #fff;
  color: #6B25D9;
  box-shadow: 0 1px 4px rgba(88, 28, 135, 0.12);
}

.video-upload-categories-field[hidden] {
  display: none !important;
}

.video-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.video-upload-categories-field {
  margin-bottom: 1.25rem;
}

.video-upload-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.video-upload-label,
.video-upload-categories-field legend {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: left;
}

.video-upload-char {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.video-upload-form input[type="text"] {
  font: inherit;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.video-upload-form input[type="text"]:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(117, 47, 238, 0.12);
}

.video-upload-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.video-upload-cat {
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.video-upload-cat:hover {
  border-color: var(--violet);
}

.video-upload-cat.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--fuchsia));
  color: #fff;
}

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

.video-upload-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 14rem;
  margin: 0 auto 0.75rem;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-upload-aspect-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.video-upload-clear {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-upload-clear .material-symbols-outlined {
  font-size: 1rem;
}

.video-upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 7.5rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 2px dashed var(--border);
  border-radius: 1rem;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.video-upload-drop.is-hidden {
  display: none;
}

.video-upload-drop.is-dragover {
  border-color: var(--violet);
  background: rgba(117, 47, 238, 0.08);
}

.video-upload-drop-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(117, 47, 238, 0.1);
  color: var(--violet);
}

.video-upload-drop-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.video-upload-drop-title {
  font-size: 0.9375rem;
  font-weight: 700;
}

.video-upload-drop-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 14rem;
}

.video-upload-filename {
  margin: -0.5rem 0 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
}

.video-upload-drop.has-file {
  min-height: auto;
  padding: 0.75rem;
  border-style: solid;
  border-color: rgba(117, 47, 238, 0.3);
  background: rgba(117, 47, 238, 0.04);
}

.video-upload-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  font-weight: 700;
  border-radius: 0.875rem;
}

.video-upload-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 639px) {
  .modal-video-upload .video-upload-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: min(92dvh, 92vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.video-upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #000;
}

/* Feed owner actions */
.video-card-wrap {
  position: relative;
}

.video-card-wrap.is-mine .video-card,
.vertical-video-card.is-mine {
  position: relative;
}

  .vertical-video-card .feed-owner-actions {
  top: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  pointer-events: auto;
}
.feed-owner-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 8;
  display: flex;
  gap: 0.35rem;
  pointer-events: auto;
}

.feed-owner-btn {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.feed-owner-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

.feed-owner-btn-danger {
  background: rgba(220, 38, 38, 0.75);
}

.feed-type-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
}

.feed-protected-media {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

/* —— Keşfet medya düzenleyici —— */
.video-upload-preview-wrap {
  position: relative;
  overflow: hidden;
}

.feed-edit-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.feed-edit-sticker {
  position: absolute;
  top: 12%;
  right: 10%;
  font-size: 2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.feed-edit-vignette,
.feed-media-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.82) 100%);
}

.feed-edit-caption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(6px);
}

.feed-edit-caption.is-top { top: 12%; }
.feed-edit-caption.is-center { top: 50%; transform: translateY(-50%); }
.feed-edit-caption.is-bottom { bottom: 12%; }

.feed-edit-caption.is-style-bubble {
  background: rgba(255, 255, 255, 0.92);
  color: #1f1630 !important;
  border-radius: 1.1rem;
  padding: 0.45rem 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.feed-edit-caption.is-style-title3d {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 0 #CDABF5,
    0 2px 0 #CE8FF2,
    0 3px 0 #752FEE,
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.feed-edit-caption.is-style-typewriter {
  font-family: "Courier New", ui-monospace, monospace;
  letter-spacing: 0.04em;
  border-right: 2px solid currentColor;
  animation: feed-typewriter 1.2s steps(2) infinite;
}
@keyframes feed-typewriter {
  50% { border-color: transparent; }
}

.feed-edit-auto-caption,
.feed-media-auto-caption {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  z-index: 4;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 0.55rem;
  padding: 0.4rem 0.55rem;
}

.feed-edit-caption-area {
  min-height: 4rem;
  resize: vertical;
}

.is-capcut-preview.is-bg-remove .video-upload-preview,
.is-capcut-preview.is-bg-remove .share-studio-preview,
.is-capcut-preview.is-bg-remove img {
  filter: contrast(1.15) saturate(1.05) !important;
  mix-blend-mode: multiply;
  background: transparent;
}
.is-capcut-preview.is-chroma-key .video-upload-preview,
.is-capcut-preview.is-chroma-key .share-studio-preview,
.is-capcut-preview.is-chroma-key img {
  filter: contrast(1.35) saturate(1.4) hue-rotate(70deg) !important;
}

.is-capcut-preview.is-transition-fade { animation: feed-trans-fade 1.1s ease both; }
.is-capcut-preview.is-transition-dissolve { animation: feed-trans-dissolve 1.2s ease both; }
.is-capcut-preview.is-transition-wipe { animation: feed-trans-wipe 1s ease both; }
.is-capcut-preview.is-transition-slide { animation: feed-trans-slide 0.9s ease both; }
.is-capcut-preview.is-transition-zoom { animation: feed-trans-zoom 1s ease both; }
.is-capcut-preview.is-transition-flash { animation: feed-trans-flash 0.7s ease both; }
.is-capcut-preview.is-transition-glitch { animation: feed-trans-glitch 0.85s steps(2) both; }

@keyframes feed-trans-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes feed-trans-dissolve { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes feed-trans-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes feed-trans-slide { from { transform: translateX(18%); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes feed-trans-zoom { from { transform: scale(1.18); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }
@keyframes feed-trans-flash { 0% { filter: brightness(2.2); } 100% { filter: none; } }
@keyframes feed-trans-glitch {
  0% { transform: translate(2px, -1px); filter: hue-rotate(90deg); }
  50% { transform: translate(-2px, 1px); filter: hue-rotate(-40deg); }
  100% { transform: none; filter: none; }
}

.feed-edit-caption.is-kf-rise,
.feed-media-caption.is-kf-rise { animation: feed-kf-rise 2.4s ease-in-out infinite alternate; }
.feed-edit-caption.is-kf-pop,
.feed-media-caption.is-kf-pop { animation: feed-kf-pop 1.6s ease-in-out infinite; }
.feed-edit-caption.is-kf-drift,
.feed-media-caption.is-kf-drift { animation: feed-kf-drift 3s ease-in-out infinite alternate; }
.feed-edit-caption.is-kf-pulse,
.feed-media-caption.is-kf-pulse { animation: feed-kf-pulse 1.4s ease-in-out infinite; }
.feed-edit-caption.is-kf-spin,
.feed-media-caption.is-kf-spin { animation: feed-kf-spin 4s linear infinite; }

@keyframes feed-kf-rise { from { transform: translateY(18px); opacity: 0.55; } to { transform: translateY(-8px); opacity: 1; } }
@keyframes feed-kf-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes feed-kf-drift { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes feed-kf-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes feed-kf-spin { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

.feed-edit-panel {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(117, 47, 238, 0.2);
  background: linear-gradient(160deg, rgba(117, 47, 238, 0.08), rgba(236, 72, 153, 0.05));
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.feed-edit-panel--story {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
}
.feed-edit-panel--story .feed-edit-tab {
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
}
.feed-edit-panel--story .feed-edit-swipe-hint {
  margin: -0.15rem 0 0.55rem;
  font-size: 0.72rem;
}
body.theme-dark .feed-edit-panel--story,
#page-connect.is-dark .feed-edit-panel--story {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.feed-edit-hscroll,
.feed-edit-tabs,
.feed-edit-filters,
.feed-edit-stickers,
.feed-edit-tools {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.15rem 0.15rem 0.55rem;
  margin-bottom: 0.45rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 47, 238, 0.45) transparent;
  cursor: grab;
  /* Sağda daha fazla özellik olduğunu gösteren fade */
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.75rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.75rem), transparent 100%);
}

.feed-edit-hscroll.is-at-end,
.feed-edit-tabs.is-at-end,
.feed-edit-filters.is-at-end,
.feed-edit-stickers.is-at-end,
.feed-edit-tools.is-at-end {
  mask-image: none;
  -webkit-mask-image: none;
}

.feed-edit-hscroll.is-dragging,
.feed-edit-tabs.is-dragging,
.feed-edit-filters.is-dragging,
.feed-edit-stickers.is-dragging,
.feed-edit-tools.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.feed-edit-hscroll::-webkit-scrollbar,
.feed-edit-tabs::-webkit-scrollbar,
.feed-edit-filters::-webkit-scrollbar,
.feed-edit-stickers::-webkit-scrollbar,
.feed-edit-tools::-webkit-scrollbar {
  height: 4px;
}

.feed-edit-hscroll::-webkit-scrollbar-thumb,
.feed-edit-tabs::-webkit-scrollbar-thumb,
.feed-edit-filters::-webkit-scrollbar-thumb,
.feed-edit-stickers::-webkit-scrollbar-thumb,
.feed-edit-tools::-webkit-scrollbar-thumb {
  background: rgba(117, 47, 238, 0.4);
  border-radius: 999px;
}

.feed-edit-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.feed-edit-swipe-hint {
  margin: -0.25rem 0 0.55rem;
  font-size: 0.68rem !important;
  text-align: center;
  opacity: 0.8;
}

.feed-edit-tab.is-active {
  border-color: rgba(117, 47, 238, 0.5);
  background: rgba(117, 47, 238, 0.15);
  color: var(--violet, #752FEE);
}

.feed-edit-filters,
.feed-edit-stickers,
.feed-edit-tools {
  gap: 0.5rem;
}

.feed-edit-filter {
  flex: 0 0 auto;
  width: 4.25rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 0.75rem;
  padding: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
}

.feed-edit-filter-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.55rem;
  margin-bottom: 0.25rem;
  background:
    linear-gradient(135deg, #f9a8d4, #CE8FF2 45%, #60a5fa);
}

.feed-edit-filter.is-active {
  border-color: var(--violet, #752FEE);
  background: rgba(117, 47, 238, 0.1);
}

.feed-edit-slider {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.feed-edit-slider input[type="range"] {
  width: 100%;
  accent-color: var(--violet, #752FEE);
}

.feed-edit-tool,
.feed-edit-sticker-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-card, rgba(255, 255, 255, 0.06));
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.feed-edit-sticker-btn { font-size: 1.25rem; }

.feed-edit-tool.is-active,
.feed-edit-sticker-btn.is-active {
  border-color: rgba(117, 47, 238, 0.55);
  background: rgba(117, 47, 238, 0.14);
}

.feed-edit-text-input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: inherit;
  font: inherit;
}

#feed-edit-reset { margin-top: 0.5rem; }

.feed-edit-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.feed-edit-music-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  background: rgba(168, 85, 247, 0.18);
  color: #CDABF5;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-edit-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}
.feed-edit-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  cursor: pointer;
}
.feed-edit-color-row input[type="color"] {
  width: 2.5rem;
  height: 1.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.feed-edit-caption.is-style-bold { font-weight: 900; font-size: 0.95rem; }
.feed-edit-caption.is-style-outline,
.feed-media-caption.is-style-outline {
  -webkit-text-stroke: 1px rgba(0,0,0,0.75);
  text-shadow: 0 2px 0 #000;
  background: transparent;
}
.feed-edit-caption.is-style-neon,
.feed-media-caption.is-style-neon {
  text-shadow: 0 0 8px currentColor, 0 0 18px currentColor;
  background: rgba(0,0,0,0.25);
}
.feed-edit-caption.is-style-sticker,
.feed-media-caption.is-style-sticker {
  background: #fff;
  color: #111 !important;
  border-radius: 0.35rem;
  transform: rotate(-2deg);
}
.feed-media-caption.is-style-bold { font-weight: 900; }

.video-upload-preview-wrap.is-aspect-1x1 { aspect-ratio: 1 / 1; width: min(100%, 16rem); }
.video-upload-preview-wrap.is-aspect-4x5 { aspect-ratio: 4 / 5; width: min(100%, 17rem); }
.video-upload-preview-wrap.is-aspect-16x9 { aspect-ratio: 16 / 9; width: min(100%, 22rem); max-height: 14rem; }
.video-upload-preview-wrap.is-aspect-9x16 { aspect-ratio: 9 / 16; }

.feed-media-fx,
.feed-edit-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.feed-media-fx i,
.feed-edit-fx i {
  position: absolute;
  left: calc(8% + (var(--i) * 11%));
  top: -10%;
  font-style: normal;
  font-size: 1.1rem;
  animation: feedFxFall 4.5s linear infinite;
  animation-delay: calc(var(--i) * -0.45s);
  opacity: 0.85;
}
.feed-media-fx.is-grain,
.feed-edit-fx.is-grain,
#video-fs-stage.is-fx-grain::after,
.video-upload-preview-wrap.is-fx-grain::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: none;
}
.feed-media-fx.is-vhs,
.feed-edit-fx.is-vhs {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.12) 2px,
    rgba(0,0,0,0.12) 3px
  );
  mix-blend-mode: multiply;
}
.feed-media-fx.is-flash,
.feed-edit-fx.is-flash {
  background: rgba(255,255,255,0.15);
  animation: feedFxFlash 1.2s ease-in-out infinite;
}
.video-upload-preview-wrap.is-fade-in { animation: feedFadeIn 0.8s ease; }
@keyframes feedFxFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(40deg); opacity: 0; }
}
@keyframes feedFxFlash {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.35; }
}
@keyframes feedFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.feed-edit-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  animation: feed-live-pulse 1.4s ease-in-out infinite;
}
@keyframes feed-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.video-upload-preview-wrap.is-capcut-preview {
  aspect-ratio: 9 / 16;
  max-height: min(48dvh, 24rem);
  margin: 0.25rem auto 0.55rem;
  width: min(100%, 17rem);
  background: #0a0a0a;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
#feed-edit-mount .feed-edit-panel {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.video-upload-preview-wrap.is-capcut-preview .video-upload-preview,
.video-upload-preview-wrap.is-capcut-preview .video-upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.feed-media-overlay,
.feed-media-overlay-fs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.feed-media-sticker {
  position: absolute;
  top: 10%;
  right: 8%;
  font-size: 1.75rem;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.feed-media-caption {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.feed-media-caption.is-top { top: 10%; }
.feed-media-caption.is-center { top: 45%; }
.feed-media-caption.is-bottom { bottom: 14%; }

.video-thumb,
.vertical-video-poster {
  position: relative;
  overflow: hidden;
}

.feed-media-overlay-fs {
  z-index: 4;
}

.video-upload-preview-wrap.is-frame-soft,
.video-thumb.is-frame-soft,
.vertical-video-poster.is-frame-soft,
#video-fs-stage.is-frame-soft {
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35);
}

.video-upload-preview-wrap.is-frame-bold,
.video-thumb.is-frame-bold,
.vertical-video-poster.is-frame-bold,
#video-fs-stage.is-frame-bold {
  box-shadow: inset 0 0 0 5px #111, inset 0 0 0 8px #fff;
}

.video-upload-preview-wrap.is-frame-gold,
.video-thumb.is-frame-gold,
.vertical-video-poster.is-frame-gold,
#video-fs-stage.is-frame-gold {
  box-shadow: inset 0 0 0 5px #f59e0b, inset 0 0 0 8px rgba(253, 230, 138, 0.7);
}

.video-upload-preview-wrap.is-frame-violet,
.video-thumb.is-frame-violet,
.vertical-video-poster.is-frame-violet,
#video-fs-stage.is-frame-violet {
  box-shadow: inset 0 0 0 5px #752FEE, inset 0 0 0 9px rgba(196, 181, 253, 0.55);
}

.video-upload-preview-wrap.is-frame-polaroid,
.video-thumb.is-frame-polaroid,
.vertical-video-poster.is-frame-polaroid,
#video-fs-stage.is-frame-polaroid {
  box-shadow: inset 0 0 0 10px #fff, inset 0 -22px 0 10px #fff;
}

/* Story viewer — edge-to-edge tam ekran, medya sığdırılır */
.modal-story-viewer {
  z-index: 1400;
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}
.modal-story-viewer.is-open,
.modal-story-viewer:not([hidden]) {
  display: flex;
}
.modal-story-viewer .modal-backdrop {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.story-viewer-shell {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100dvh;
  height: 100svh;
  min-height: 100%;
  margin: 0;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  z-index: 1;
}
@media (min-width: 900px) {
  .modal-story-viewer {
    padding: 0 !important;
  }
  .story-viewer-shell {
    width: min(28rem, 100%);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}
.story-viewer-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 12px 0;
}
.story-viewer-bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}
.story-viewer-bar.is-done { background: #fff; }
.story-viewer-bar.is-active {
  background: linear-gradient(90deg, #fff 0%, #fff 100%);
  animation: storyBar 5s linear forwards;
}
@keyframes storyBar {
  from { box-shadow: inset 0 0 0 0 rgba(255,255,255,0.35); }
  to { background: #fff; }
}
.story-viewer-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(max(10px, env(safe-area-inset-top, 0px)) + 0.85rem) 1rem 0.75rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.story-viewer-head > * {
  pointer-events: auto;
}
.story-viewer-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.story-viewer-author-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}
.story-viewer-author-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-viewer-time {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
}
.story-viewer-time[hidden] { display: none !important; }
.story-viewer-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
}
.story-viewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-viewer-close,
.story-viewer-more,
.story-viewer-delete {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0.15rem;
  display: grid;
  place-items: center;
}
.story-viewer-delete {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.72);
}
.story-viewer-more[hidden],
.story-viewer-delete[hidden] { display: none !important; }
.story-viewer-more .material-symbols-outlined,
.story-viewer-close .material-symbols-outlined,
.story-viewer-delete .material-symbols-outlined {
  font-size: 1.45rem;
}
.story-viewer-delete .material-symbols-outlined {
  font-size: 1.2rem;
}
.story-viewer-media {
  position: absolute;
  inset: 0;
  height: auto;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 0;
}
.story-viewer-media img,
.story-viewer-media video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}
.story-viewer-text-only {
  padding: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.45;
  text-align: center;
}
.story-viewer-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5.5rem;
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  z-index: 2;
  pointer-events: none;
}
.story-viewer-engage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0.55rem 0.75rem max(0.65rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.35) 70%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.story-viewer-shell.is-own-story .story-viewer-actions {
  display: none !important;
}
.story-viewer-seen {
  display: none;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.15rem 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.story-viewer-shell.is-own-story .story-viewer-seen:not([hidden]) {
  display: inline-flex;
}
.story-viewer-shell.is-own-story .story-viewer-engage {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem 0.6rem;
}
.story-viewer-shell.is-own-story .story-viewer-react-summary,
.story-viewer-shell.is-own-story .story-viewer-react-bar,
.story-viewer-shell.is-own-story .story-viewer-comments {
  flex: 1 1 100%;
}
.story-viewer-seen-avatars {
  display: flex;
  align-items: center;
  direction: ltr;
}
.story-viewer-seen-avatars span {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: #2a2a2a;
  border: 2px solid #111;
  margin-left: -0.45rem;
}
.story-viewer-seen-avatars span:first-child {
  margin-left: 0;
}
.story-viewer-seen-avatars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-viewer-seen-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 650;
}
.story-viewer-seen-label .material-symbols-outlined {
  font-size: 1.05rem;
}
.story-viewers-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  max-height: min(78%, 34rem);
  display: flex;
  flex-direction: column;
  background: #f7f7f8;
  color: #1a1a1a;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
  padding: 0.35rem 0 max(0.5rem, env(safe-area-inset-bottom));
}
.story-viewers-sheet[hidden] {
  display: none !important;
}
.story-viewers-sheet-handle {
  width: 2.25rem;
  height: 0.28rem;
  border-radius: 99px;
  background: rgba(0,0,0,0.18);
  margin: 0.35rem auto 0.5rem;
}
.story-insights-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.15rem 0.85rem 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-insights-thumbs::-webkit-scrollbar { display: none; }
.story-insights-thumb {
  position: relative;
  flex: 0 0 3.4rem;
  width: 3.4rem;
  height: 5.6rem;
  border: 2px solid transparent;
  border-radius: 0.45rem;
  overflow: hidden;
  padding: 0;
  background: #ddd;
  cursor: pointer;
  color: #333;
}
.story-insights-thumb.is-active {
  border-color: #1a1a1a;
}
.story-insights-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-insights-thumb > span:not(.story-insights-thumb-views) {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
  background: #e8e8ea;
}
.story-insights-thumb-views {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.story-insights-thumb-views .material-symbols-outlined {
  font-size: 0.7rem;
}
.story-insights-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.story-insights-views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: auto;
}
.story-insights-views .material-symbols-outlined {
  font-size: 1.15rem;
  color: #555;
}
.story-insights-likes-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.55rem;
  font-weight: 650;
  color: #555;
}
.story-insights-likes-wrap .material-symbols-outlined {
  font-size: 1rem;
}
.story-insights-btns {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.story-insights-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
}
.story-insights-btn .material-symbols-outlined {
  font-size: 1.25rem;
}
.story-insights-btn.is-danger {
  color: #c62828;
}
.story-viewers-sheet-close {
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  padding: 0.2rem;
  flex-shrink: 0;
}
.story-viewers-sheet-title {
  margin: 0;
  padding: 0.55rem 0.85rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.story-viewers-list {
  list-style: none;
  margin: 0;
  padding: 0 0.35rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.story-viewers-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.65rem;
}
.story-viewers-list .story-viewer-row-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e8e8ea;
  font-size: 1rem;
}
.story-viewers-list .story-viewer-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-viewers-list .story-viewer-row-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.story-viewers-list .story-viewer-row-meta strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-viewers-list .story-viewer-row-meta span {
  font-size: 0.7rem;
  color: #6b6b73;
}
.story-viewers-list .story-viewer-row-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 1rem;
}
.story-viewers-list .story-viewer-row-badges .is-liked {
  color: #e11d48;
  font-variation-settings: "FILL" 1;
  font-size: 1.15rem;
}
.story-viewer-row-dm {
  border: 0;
  background: #eee;
  color: #222;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.story-viewer-row-dm .material-symbols-outlined {
  font-size: 1.15rem;
}
.story-viewers-empty {
  padding: 1.25rem 0.85rem;
  text-align: center;
  color: #6b6b73;
  font-size: 0.85rem;
}
.story-more-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.story-more-sheet[hidden] {
  display: none !important;
}
.story-more-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
}
.story-more-sheet-panel {
  position: relative;
  z-index: 1;
  width: calc(100% - 1.5rem);
  max-width: 22rem;
  margin: 0 auto max(1rem, env(safe-area-inset-bottom));
  background: #fff;
  color: #1a1a1a;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}
.story-more-item {
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  color: #1a1a1a;
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
  text-align: center;
}
.story-more-item:last-child {
  border-bottom: 0;
}
.story-more-item.is-danger {
  color: #c62828;
  font-weight: 650;
}
.story-more-item.is-cancel {
  color: #555;
  font-weight: 500;
}
.story-viewer-shell.is-more-open .story-viewer-nav,
.story-viewer-shell.is-viewers-open .story-viewer-nav {
  pointer-events: none;
  opacity: 0.35;
}
.story-viewer-react-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}
.story-viewer-react-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.story-viewer-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.story-viewer-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.story-viewer-action .material-symbols-outlined { font-size: 1.2rem; }
.story-viewer-action.is-liked {
  background: rgba(244, 63, 94, 0.28);
  color: #fda4af;
}
.story-viewer-action.is-liked .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}
.story-viewer-action.is-pop {
  animation: storyLikePop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.35);
}
@keyframes storyLikePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.story-viewer-comment-list li.is-pending {
  opacity: 0.72;
}
.story-viewer-action.is-react-open {
  background: rgba(168, 85, 247, 0.35);
}
.story-viewer-react-bar {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-top: 0.45rem;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}
.story-viewer-react-bar[hidden] {
  display: none !important;
}
.story-viewer-react-bar::-webkit-scrollbar { display: none; }
.story-react-emoji {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 1.15rem;
  cursor: pointer;
}
.story-react-emoji.is-mine {
  background: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}
.story-viewer-comments {
  margin-top: 0.5rem;
  max-height: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.story-viewer-comments[hidden] {
  display: none !important;
}
.story-viewer-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 7.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.story-viewer-comment-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.35;
}
.story-viewer-comment-list strong {
  display: block;
  font-size: 0.72rem;
}
.story-viewer-comment-list p {
  margin: 0.1rem 0 0;
  opacity: 0.92;
}
.story-viewer-comment-del {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0.1rem;
}
.story-viewer-comment-form {
  display: flex;
  gap: 0.4rem;
}
.story-viewer-comment-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
}
.story-viewer-comment-form input::placeholder { color: rgba(255,255,255,0.45); }
.story-viewer-shell.is-comments-open .story-viewer-text {
  bottom: 12rem;
}
.story-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.story-viewer-prev { left: 0.5rem; }
.story-viewer-next { right: 0.5rem; }

/* Story fotoğraf editörü */
.modal-story-upload {
  z-index: 1210;
}
.modal-story-upload.is-open {
  display: flex;
}
.story-upload-sheet {
  width: min(420px, 100%);
  max-height: min(92dvh, 860px);
  margin: auto;
  padding: 0 0 1rem;
  overflow: auto;
  border-radius: 1.15rem;
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(244, 114, 182, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #16131c 0%, #0c0b10 100%);
  color: #f7f4f8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(8, 6, 14, 0.55);
  animation: storySheetIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes storySheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.story-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
}
.story-upload-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f9a8d4;
  font-weight: 600;
}
.story-upload-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}
.story-upload-sheet .modal-close {
  color: rgba(255, 255, 255, 0.75);
}
.story-edit-input-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.story-edit-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.35rem 1rem 0.75rem;
  min-height: 12rem;
  border-radius: 1rem;
  border: 1.5px dashed rgba(249, 168, 212, 0.45);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.015) 10px,
      rgba(255, 255, 255, 0.015) 11px
    );
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
/* display:flex [hidden]'ı ezer — seçim sonrası "Fotoğraf seç" kalıyordu */
.story-edit-drop[hidden] {
  display: none !important;
}
.story-edit-drop:hover,
.story-edit-drop.is-dragover {
  border-color: #f9a8d4;
  background: rgba(244, 114, 182, 0.1);
  transform: translateY(-1px);
}
.story-edit-drop-visual {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fb7185, #e11d48 55%, #be185d);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
  animation: storyCamPulse 2.4s ease-in-out infinite;
}
@keyframes storyCamPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.story-edit-drop-visual .material-symbols-outlined {
  font-size: 1.55rem;
  color: #fff;
}
.story-edit-drop-title {
  font-weight: 650;
  font-size: 1rem;
  color: #fff;
}
.story-edit-drop-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 16rem;
  line-height: 1.35;
}
.story-edit-stage {
  position: relative;
  margin: 0.15rem auto 0.35rem;
  aspect-ratio: 9 / 16;
  max-height: min(42dvh, 360px);
  width: min(100% - 2rem, 220px);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #000;
  touch-action: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-edit-stage.is-ready,
.story-edit-stage:not([hidden]) {
  opacity: 1;
  transform: none;
}
.story-edit-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: grab;
}
.story-edit-canvas:active { cursor: grabbing; }
.story-edit-aspect {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}
.story-edit-clear {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.story-edit-clear .material-symbols-outlined { font-size: 1.1rem; }
.story-edit-drag-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  margin: 0;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  animation: storyHintFade 3s ease forwards;
}
@keyframes storyHintFade {
  0%, 60% { opacity: 1; }
  100% { opacity: 0; }
}
.story-edit-tools {
  margin: 0 0.75rem 0.65rem;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: storyToolsUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes storyToolsUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.story-edit-tool-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 0.55rem;
}
.story-edit-tool-tabs::-webkit-scrollbar { display: none; }
.story-edit-tool {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.story-edit-tool .material-symbols-outlined { font-size: 1rem; }
.story-edit-tool.is-active {
  background: rgba(251, 113, 133, 0.2);
  color: #fecdd3;
}
.story-edit-panels { min-height: 4.5rem; }
.story-edit-panel {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
}
.story-edit-panel.is-open,
.story-edit-panel:not([hidden]) {
  display: flex;
}
.story-edit-panel[hidden] {
  display: none !important;
}
.story-edit-slider {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}
.story-edit-slider input[type="range"] {
  width: 100%;
  accent-color: #fb7185;
}
.story-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.story-edit-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.story-edit-action .material-symbols-outlined { font-size: 1rem; }
.story-edit-action.is-active {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.18);
  color: #fecdd3;
}
.story-filter-strip,
.story-sticker-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}
.story-filter-chip {
  flex: 0 0 auto;
  width: 4.1rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.story-filter-swatch {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.25rem;
  border-radius: 0.65rem;
  border: 2px solid transparent;
  background:
    linear-gradient(145deg, #fda4af, #fb7185 40%, #9f1239),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='16' r='8' fill='%23ffe4e6'/%3E%3Crect x='8' y='24' width='24' height='10' rx='5' fill='%23fecdd3'/%3E%3C/svg%3E")
    center / cover;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.story-filter-chip.is-active .story-filter-swatch {
  border-color: #fb7185;
  transform: scale(1.06);
}
.story-filter-chip.is-active { color: #fecdd3; }
.story-filter-swatch[data-filter-id="none"] { filter: none; background: linear-gradient(145deg, #e2e8f0, #94a3b8); }
.story-filter-swatch[data-filter-id="clarendon"] { filter: contrast(1.2) saturate(1.25); }
.story-filter-swatch[data-filter-id="gingham"] { filter: brightness(1.1) saturate(0.85); }
.story-filter-swatch[data-filter-id="lark"] { filter: brightness(1.15) sepia(0.1); }
.story-filter-swatch[data-filter-id="reyes"] { filter: brightness(1.1) saturate(0.7) sepia(0.15); }
.story-filter-swatch[data-filter-id="juno"] { filter: saturate(1.4) sepia(0.2); }
.story-filter-swatch[data-filter-id="aden"] { filter: hue-rotate(-12deg) saturate(0.85); }
.story-filter-swatch[data-filter-id="moon"] { filter: grayscale(1) contrast(1.15); }
.story-filter-swatch[data-filter-id="inkwell"] { filter: grayscale(1) contrast(1.3); }
.story-filter-swatch[data-filter-id="nashville"] { filter: sepia(0.25) saturate(1.2) hue-rotate(-8deg); }
.story-filter-swatch[data-filter-id="rise"] { filter: brightness(1.12) sepia(0.3); }
.story-filter-swatch[data-filter-id="willow"] { filter: grayscale(0.8) sepia(0.15); }
.story-filter-swatch[data-filter-id="rose"] { filter: hue-rotate(-18deg) saturate(1.3); }
.story-filter-swatch[data-filter-id="azure"] { filter: hue-rotate(168deg) saturate(1.15); }
.story-sticker-chip {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.35rem;
  cursor: pointer;
}
.story-sticker-chip.is-active {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.2);
  transform: scale(1.08);
}
.story-edit-text-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}
.story-edit-text-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.story-edit-caption-row {
  margin: 0 1rem 0.75rem;
}
.story-edit-caption-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}
.story-edit-caption-label span {
  font-weight: 450;
  color: rgba(255, 255, 255, 0.4);
}
#story-edit-caption {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
}
#story-edit-caption::placeholder { color: rgba(255, 255, 255, 0.35); }
.story-edit-publish {
  margin: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #fb7185, #e11d48 55%, #be185d) !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}
.story-edit-publish:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.story-edit-publish.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

/* ========== Masaüstü web tarayıcı: Video Akışı = mobil düzen ==========
   (Mobil max-width:900 kurallarına dokunulmaz — yalnızca geniş ekran) */
@media (min-width: 901px) {
  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .page-wrap.feed-hub {
    max-width: min(26rem, 100%);
    width: 100%;
    margin-inline: auto;
    height: calc(100dvh - var(--nav-h, 3.5rem) - var(--bottom-nav-h, 4.25rem));
    max-height: calc(100dvh - var(--nav-h, 3.5rem) - var(--bottom-nav-h, 4.25rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }

  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .feed-page-panel,
  body:not(.is-mobile-app) #page-feed.is-feed-snap-active #discover-panel-feed {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  /* Story şeridi görünür kalsın */
  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .feed-top-chrome {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem 0.5rem;
    margin: 0;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    z-index: 5;
  }

  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .story-rings-row {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 0.1rem 0;
  }

  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .feed-toolbar-pro {
    display: none !important;
  }

  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .feed-mobile-upload-fab {
    display: none !important;
  }

  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .vertical-video-feed.is-mobile-snap,
  body:not(.is-mobile-app) #page-feed.is-feed-snap-active .vertical-video-feed.is-tiktok-feed {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 0 1rem 1rem;
    background: #000 !important;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
  }

  body:not(.is-mobile-app) .vertical-video-feed.is-mobile-snap .vertical-video-card,
  body:not(.is-mobile-app) .vertical-video-feed.is-tiktok-feed .vertical-video-card,
  body:not(.is-mobile-app) .vertical-video-feed.is-mobile-snap .tiktok-reel-card {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
  }

  /* Poster kartı doldursun — altta boş gri alan kalmasın */
  body:not(.is-mobile-app) .vertical-video-feed.is-mobile-snap .vertical-video-poster {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    background-color: #000 !important;
    background-size: cover !important;
    background-position: center !important;
    display: block !important;
  }

  body:not(.is-mobile-app) .vertical-video-feed.is-mobile-snap .vertical-inline-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #000 !important;
  }

  body:not(.is-mobile-app) .vertical-video-feed.is-mobile-snap .tiktok-reel-rail {
    bottom: 4.5rem;
    right: 0.65rem;
  }

  body:not(.is-mobile-app) .vertical-video-feed.is-mobile-snap .vertical-video-overlay {
    z-index: 4;
  }
}

/* Paylaşım paneli — WhatsApp / Telegram / kopyala vb. */
.kozamia-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 52000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.kozamia-share-sheet[hidden] {
  display: none !important;
}

.kozamia-share-sheet.is-open {
  pointer-events: auto;
}

.kozamia-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 28, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kozamia-share-sheet.is-open .kozamia-share-backdrop {
  opacity: 1;
}

.kozamia-share-panel {
  position: relative;
  width: min(28rem, 100%);
  background: #fff;
  border-radius: 1.15rem 1.15rem 0 0;
  box-shadow: 0 -12px 40px rgba(20, 12, 40, 0.18);
  padding: 0.55rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform 0.22s ease;
}

.kozamia-share-sheet.is-open .kozamia-share-panel {
  transform: translateY(0);
}

.kozamia-share-handle {
  width: 2.4rem;
  height: 0.28rem;
  border-radius: 99px;
  background: rgba(30, 27, 46, 0.14);
  margin: 0.15rem auto 0.55rem;
}

.kozamia-share-head {
  text-align: center;
  margin-bottom: 0.75rem;
}

.kozamia-share-head strong {
  display: block;
  font-size: 1.05rem;
}

.kozamia-share-head p {
  margin: 0.25rem 0 0;
  padding: 0 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kozamia-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.35rem;
  margin-bottom: 0.55rem;
}

.kozamia-share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  padding: 0.35rem 0.2rem;
  font: inherit;
  color: #1e1b2e;
  cursor: pointer;
  border-radius: 0.75rem;
}

.kozamia-share-item:hover,
.kozamia-share-item:focus-visible {
  background: rgba(117, 47, 238, 0.06);
  outline: none;
}

.kozamia-share-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3f0ff;
  color: #6B25D9;
}

.kozamia-share-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.kozamia-share-icon .material-symbols-outlined {
  font-size: 1.35rem;
  font-family: "Material Symbols Outlined", sans-serif;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.kozamia-share-item.tone-wa .kozamia-share-icon { background: #25d366; color: #fff; }
.kozamia-share-item.tone-tg .kozamia-share-icon { background: #2aabee; color: #fff; }
.kozamia-share-item.tone-ig .kozamia-share-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
  color: #fff;
}
.kozamia-share-item.tone-x .kozamia-share-icon { background: #0f172a; color: #fff; }
.kozamia-share-item.tone-fb .kozamia-share-icon { background: #1877f2; color: #fff; }
.kozamia-share-item.tone-sms .kozamia-share-icon { background: #10b981; color: #fff; }
.kozamia-share-item.tone-mail .kozamia-share-icon { background: #f59e0b; color: #fff; }
.kozamia-share-item.tone-copy .kozamia-share-icon { background: #752FEE; color: #fff; }
.kozamia-share-item.tone-sys .kozamia-share-icon { background: #64748b; color: #fff; }

.kozamia-share-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.kozamia-share-cancel {
  width: 100%;
  border: none;
  border-radius: 0.85rem;
  padding: 0.85rem;
  margin-top: 0.15rem;
  font: inherit;
  font-weight: 600;
  background: rgba(30, 27, 46, 0.06);
  color: #1e1b2e;
  cursor: pointer;
}

@media (min-width: 768px) {
  .kozamia-share-sheet {
    align-items: center;
    padding: 1rem;
  }

  .kozamia-share-panel {
    border-radius: 1rem;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .kozamia-share-sheet.is-open .kozamia-share-panel {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kozamia-share-backdrop,
  .kozamia-share-panel {
    transition: none;
  }
}


