/* Topluluk — site paleti: #fff, linear-gradient(135deg, #222 0%, #292929 100%) */
:root {
  --tl-bg: #f5f5f5;
  --tl-card: #fff;
  --tl-border: rgba(0, 0, 0, 0.06);
  --tl-text: #1a1a1a;
  --tl-muted: #6b6b6b;
  --tl-gradient: linear-gradient(135deg, #222 0%, #292929 100%);
}

.topluluk-body {
  background: var(--tl-bg);
  min-height: 100vh;
}

.topluluk-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.topluluk-profil-page {
  max-width: 640px;
}

/* Genel kartlar */
.topluluk-card {
  background: var(--tl-card);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--tl-border);
  padding: 28px;
  margin-bottom: 24px;
}

.topluluk-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--tl-text);
}

.topluluk-card .lead {
  color: var(--tl-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.topluluk-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
}

.topluluk-form .form-control {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
}

/* Birincil buton — site gradyanı */
.topluluk-btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--tl-gradient);
  border: none;
  color: #fff !important;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.topluluk-btn:hover,
.topluluk-btn:focus {
  color: #fff !important;
  opacity: 0.94;
}

.topluluk-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.topluluk-btn--ghost {
  background: #fff;
  color: #292929 !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.topluluk-btn--ghost:hover,
.topluluk-btn--ghost:focus {
  background: #fafafa;
  color: #111 !important;
  opacity: 1;
}

.topluluk-alert {
  border-radius: 12px;
}

.topluluk-alert-msg {
  border-radius: 10px;
  border: none;
  margin-bottom: 12px;
}

/* ——— Profil sayfası ——— */
.topluluk-profil-card {
  background: var(--tl-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--tl-border);
}

.topluluk-profil-cover {
  height: 120px;
  background: var(--tl-gradient);
  position: relative;
}

.topluluk-profil-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.topluluk-profil-card__body {
  padding: 0 24px 28px;
}

.topluluk-profil-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-top: -52px;
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.topluluk-profil-avatar-wrap {
  flex-shrink: 0;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.topluluk-profil-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}

.topluluk-profil-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #e2e8f0 100%);
  color: #64748b;
}

.topluluk-profil-avatar--placeholder .fa {
  font-size: 42px;
}

.topluluk-profil-avatar-wrap--editable {
  position: relative;
  cursor: pointer;
}

.topluluk-profil-avatar__edit {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.topluluk-profil-avatar__edit-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.topluluk-profil-avatar__edit-inner .fa {
  font-size: 22px;
  opacity: 0.95;
}

@media (hover: hover) and (pointer: fine) {
  .topluluk-profil-avatar-wrap--editable .topluluk-profil-avatar__edit {
    opacity: 0;
  }
  .topluluk-profil-avatar-wrap--editable:hover .topluluk-profil-avatar__edit {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .topluluk-profil-avatar-wrap--editable .topluluk-profil-avatar__edit {
    opacity: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58) 100%);
    align-items: flex-end;
    padding-bottom: 12px;
  }
}

.topluluk-profil-flash {
  margin: -8px 0 20px;
}

.topluluk-profil-flash .topluluk-alert-msg:last-child {
  margin-bottom: 0;
}

/* Alt sayfa: profil fotoğrafı (Instagram benzeri) */
body.topluluk-avatar-sheet-open {
  overflow: hidden;
}

/* Bootstrap [hidden]{display:none} aynı özgüllükte display:flex ile eziliyordu; sheet sayfa yükünde görünüyordu */
.topluluk-avatar-sheet[hidden] {
  display: none !important;
}

.topluluk-avatar-sheet:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: auto;
  box-sizing: border-box;
}

.topluluk-avatar-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.topluluk-avatar-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 100%);
  margin: 0;
  overflow: auto;
  padding: 8px 16px 16px;
  background: var(--tl-card, #fff);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--tl-border, #e8e8e8);
  animation: topluluk-avatar-modal-in 0.22s ease-out;
}

@keyframes topluluk-avatar-modal-in {
  from {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.topluluk-avatar-sheet__title {
  margin: 12px 4px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tl-muted, #666);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topluluk-avatar-sheet__form {
  margin: 0 0 8px;
}

.topluluk-avatar-sheet__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 0;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tl-text, #111);
  background: #f4f4f4;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.topluluk-avatar-sheet__btn:hover {
  background: #eaeaea;
}

.topluluk-avatar-sheet__btn:active {
  transform: scale(0.98);
}

.topluluk-avatar-sheet__btn .fa {
  opacity: 0.85;
}

.topluluk-avatar-sheet__btn--danger {
  color: #b00020;
  background: rgba(176, 0, 32, 0.08);
}

.topluluk-avatar-sheet__btn--danger:hover {
  background: rgba(176, 0, 32, 0.14);
}

.topluluk-avatar-sheet__cancel {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--tl-muted, #666);
  cursor: pointer;
}

.topluluk-avatar-sheet__cancel:hover {
  color: var(--tl-text, #111);
}

.topluluk-profil-meta {
  flex: 1;
  min-width: 200px;
  padding-top: 58px;
}

@media (max-width: 520px) {
  .topluluk-profil-meta {
    padding-top: 8px;
    width: 100%;
  }
  .topluluk-profil-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .topluluk-profil-meta {
    text-align: center;
  }
  .topluluk-profil-actions {
    justify-content: center;
  }
}

.topluluk-profil-handle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tl-text);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.topluluk-profil-handle__row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.topluluk-profil-pending {
  font-size: 0.88rem;
  color: var(--tl-muted, #666);
  margin-top: 10px;
  max-width: 340px;
  line-height: 1.45;
}

.topluluk-post__userlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 700;
}

.topluluk-profil-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tl-text);
  margin: 0 0 8px;
  line-height: 1.25;
}

.topluluk-profil-joined {
  font-size: 0.85rem;
  color: var(--tl-muted);
  margin: 0 0 14px;
}

.topluluk-profil-joined .fa {
  margin-right: 6px;
  opacity: 0.85;
}

.topluluk-profil-stats {
  margin-bottom: 16px;
}

.topluluk-profil-stat {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.9rem;
  color: #333;
}

.topluluk-profil-stat strong {
  font-weight: 800;
  margin-right: 6px;
  color: #111;
}

.topluluk-profil-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topluluk-profil-upload {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #eee;
}

.topluluk-profil-upload__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  margin-bottom: 10px;
}

.topluluk-profil-upload__label .fa {
  margin-right: 8px;
  opacity: 0.85;
}

.topluluk-profil-upload__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Gizli file input + stilize label (profil, paylaşım-yeni) */
.topluluk-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  flex: 1;
  min-width: 0;
}

.topluluk-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: linear-gradient(145deg, #3a3a3a 0%, #1f1f1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.topluluk-file-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.topluluk-file-btn .fa {
  opacity: 0.9;
  font-size: 14px;
}

.topluluk-file-input:focus + .topluluk-file-btn {
  outline: 2px solid rgba(102, 175, 233, 0.95);
  outline-offset: 2px;
}

.topluluk-file-name {
  font-size: 12px;
  color: #666;
  flex: 1;
  min-width: 120px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topluluk-profil-posts__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tl-text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
  display: inline-block;
}

.topluluk-profil-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--tl-muted);
  font-size: 0.95rem;
  background: #fafafa;
  border-radius: 12px;
  border: 1px dashed #ddd;
}

/* Izgara — profil */
.topluluk-grid--profil {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (max-width: 480px) {
  .topluluk-grid--profil {
    grid-template-columns: 1fr;
  }
}

.topluluk-grid__cell {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

button.topluluk-grid__cell.topluluk-grid__cell--btn {
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

button.topluluk-grid__cell.topluluk-grid__cell--btn:focus {
  outline: 2px solid rgba(29, 155, 240, 0.45);
  outline-offset: 2px;
}

button.topluluk-grid__cell.topluluk-grid__cell--btn:focus:not(:focus-visible) {
  outline: none;
}

.topluluk-grid__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.topluluk-grid__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.topluluk-grid__cell:hover img {
  transform: scale(1.06);
}

.topluluk-grid__cell:hover .topluluk-grid__hover {
  opacity: 1;
}

/* Eski sınıflar (feed, gonderi, paylasim-yeni) */
.topluluk-profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.topluluk-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: #e5e7eb;
}

.topluluk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 480px) {
  .topluluk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topluluk-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.topluluk-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.topluluk-grid a:hover img {
  transform: scale(1.05);
}

.topluluk-feed {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.topluluk-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.topluluk-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.topluluk-post__head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.topluluk-post__head a {
  font-weight: 700;
  color: #111;
}

.topluluk-post__img {
  width: 100%;
  display: block;
  vertical-align: middle;
}

.topluluk-post__cap {
  padding: 12px 14px 16px;
  font-size: 0.95rem;
  color: #374151;
}

/* Gönderi — sahip: açıklama + aksiyonlar */
.topluluk-post__owner {
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.topluluk-post__owner-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.topluluk-post__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1f2937;
  resize: vertical;
  min-height: 104px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.topluluk-post__textarea::placeholder {
  color: #9ca3af;
}

.topluluk-post__textarea:hover {
  border-color: #d1d5db;
}

.topluluk-post__textarea:focus {
  outline: none;
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.topluluk-post__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.topluluk-post__btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.topluluk-post__btn-save i {
  font-size: 0.9rem;
  opacity: 0.95;
}

.topluluk-post__btn-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.22);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.topluluk-post__btn-del:hover {
  background: rgba(254, 226, 226, 0.55);
  border-color: rgba(220, 38, 38, 0.38);
  color: #991b1b;
}

.topluluk-post__btn-del:active {
  transform: scale(0.98);
}

.topluluk-post__btn-del i {
  font-size: 1rem;
}

.topluluk-post__owner-msg {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.topluluk-post__owner-msg.is-ok {
  color: #059669;
}

.topluluk-post__owner-msg.is-err {
  color: #dc2626;
}

/* Paylaşım — Fabric düzenleyici (IG tarzı dock + sol boyut) */
.topluluk-paylasim-page .topluluk-card--paylasim {
  overflow: visible;
}

.tp-fabric-wrap {
  margin: 0 -8px 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 400px) {
  .tp-fabric-wrap {
    margin-left: 0;
    margin-right: 0;
  }
}

.tp-fabric-stage {
  position: relative;
  background: #000;
  width: 100%;
}

/* [hidden] + display:flex çakışmasını kesin gizle */
.tp-fabric-size-rail[hidden] {
  display: none !important;
}

/* Sol dikey boyut (hikâye tarzı) */
.tp-fabric-size-rail {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(22, 22, 22, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.tp-size-rail__tick {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  user-select: none;
}

.tp-size-rail__tick--lg {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.tp-size-rail__track {
  width: 40px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tp-size-rail__input {
  width: 128px;
  height: 40px;
  margin: 0;
  transform: rotate(-90deg);
  transform-origin: center center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.tp-size-rail__input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.tp-size-rail__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.tp-size-rail__input::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.tp-size-rail__input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* 4:5 kutu; gerçek piksel yüksekliği JS (cssOnly) ile verilir — fazla siyah boşluk olmasın */
/* Yatay görsel: arka plan rengi (IG tarzı) */
.tp-bg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  background: rgba(12, 12, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-bg-row[hidden] {
  display: none !important;
}

.tp-bg-row__label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.tp-bg-swatches {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-bg-swatches::-webkit-scrollbar {
  display: none;
}

.tp-bg-swatch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(40, 40, 40, 0.9);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.tp-bg-swatch:hover {
  transform: scale(1.04);
}

.tp-bg-swatch.is-active {
  box-shadow: 0 0 0 2px #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.tp-bg-swatch--dot {
  min-width: 40px;
  width: 40px;
  padding: 0;
  border-radius: 50%;
}

.tp-fabric-viewport {
  background: #000;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  border-radius: 14px 14px 0 0;
}

.tp-fabric-viewport .canvas-container {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  max-height: min(78vh, 620px);
  position: relative;
  /* İki parmak pinch tarayıcı sayfa zoom’una gitmesin; jest bizde kalsın */
  touch-action: none;
}

/* Mobil: Fabric gizli textarea — odak / klavye (iOS 16px, üst katman) */
.tp-fabric-viewport .canvas-container textarea {
  font-size: 16px !important;
  z-index: 500000 !important;
}

/* Alt dock: cam panel + araçlar */
.tp-fabric-dock {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0e0e0e 0%, #050505 100%);
}

.tp-fabric-style {
  padding: 14px 12px 10px;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-style-scroll {
  margin-bottom: 8px;
}

.tp-style-scroll:last-child {
  margin-bottom: 0;
}

.tp-style-scroll--colors .tp-fabric-colors {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-style-scroll--colors .tp-fabric-colors::-webkit-scrollbar {
  display: none;
}

.tp-swatch {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tp-swatch:hover {
  transform: scale(1.06);
}

.tp-swatch.is-active {
  box-shadow:
    0 0 0 2px #fff,
    inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform: scale(1.08);
}

.tp-style-scroll--fonts .tp-fabric-fonts {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-style-scroll--fonts .tp-fabric-fonts::-webkit-scrollbar {
  display: none;
}

.tp-style-scroll--brush {
  margin-bottom: 0;
  padding-top: 2px;
}

.tp-brush-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 2px;
}

.tp-brush-inline__label {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.tp-brush-inline__range {
  flex: 1;
  min-width: 0;
  height: 5px;
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
}

.tp-brush-inline__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.tp-brush-inline__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
}

.tp-font-chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 52px;
  height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.tp-font-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tp-font-chip.is-active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.tp-font-preview {
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}

.tp-fabric-tools {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 18px 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-fab-tool {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition:
    background 0.18s ease,
    transform 0.14s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tp-fab-tool:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.tp-fab-tool:active {
  transform: translateY(0);
}

.tp-fab-tool.is-active {
  background: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.tp-fab-tool--danger {
  background: rgba(255, 255, 255, 0.06);
}

.tp-fab-tool--danger:hover {
  background: rgba(239, 68, 68, 0.45);
}

.tp-fab-aa {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

/* Cloudflare Turnstile (giriş / kayıt formları) */
.topluluk-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
