.cloud-auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.cloud-auth-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(0, 114, 255, 0.18));
  border: 1px solid rgba(0, 242, 255, 0.18);
  color: var(--ink, #fff);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cloud-auth-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cloud-auth-title {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink, #fff);
  font-size: 13px;
  font-weight: 700;
}

.cloud-auth-badge {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink, #fff);
}

.cloud-auth-badge.admin {
  border-color: rgba(0, 242, 255, 0.28);
  background: rgba(0, 242, 255, 0.12);
  color: #dffcff;
}

.cloud-auth-badge.viewer {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong, #c0c7d4);
}

.cloud-auth-badge.guest {
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe3a5;
}

.cloud-auth-meta {
  color: rgba(235, 242, 255, 0.82);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.cloud-auth-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink, #fff);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.cloud-auth-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.cloud-viewer-locked {
  position: relative;
}

.cloud-viewer-locked .upload-zone,
.cloud-viewer-locked .upload-zone * {
  pointer-events: none;
}

.cloud-viewer-locked .upload-zone {
  opacity: 0.42;
  filter: grayscale(0.12);
}

.cloud-lock-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(14, 165, 233, 0.28);
  background: rgba(14, 165, 233, 0.08);
  color: var(--muted-strong, #b0b0ba);
  font-size: 13px;
  line-height: 1.5;
}

html[data-theme="light"] .cloud-auth-badge.admin {
  color: #0b2238;
}

html[data-theme="light"] .cloud-auth-meta {
  color: #607089;
}

html[data-theme="light"] .cloud-auth-btn {
  color: #142238;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(196, 210, 223, 0.95);
}

html[data-theme="light"] .cloud-auth-slot {
  border-color: rgba(196, 210, 223, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 253, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(96, 125, 158, 0.12);
}

html[data-theme="light"] .cloud-auth-btn:hover {
  background: #ffffff;
}

@media (max-width: 760px) {
  .cloud-auth-slot {
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .cloud-auth-meta {
    display: none;
  }

  .cloud-auth-title {
    max-width: 120px;
  }

  .cloud-auth-slot::-webkit-scrollbar {
    display: none;
  }

  .cloud-auth-badge {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .cloud-auth-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .cloud-auth-slot {
    gap: 6px;
  }

  .cloud-auth-meta {
    display: none;
  }

  .cloud-auth-badge {
    display: none;
  }

  .cloud-auth-title {
    display: none;
  }

  .cloud-auth-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ─────────────────────────────────────────
   Mobile Bottom Navigation
   ───────────────────────────────────────── */
.mobile-bottom-nav {
  display: none !important;
}

/* İkon boyutu her zaman sabit — media query dışında da geçerli */
.mobile-bottom-nav__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-bottom-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56px;
  text-align: center;
}

@media (max-width: 760px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 13, 20, 0.92);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.36);
  }

  .mobile-bottom-nav__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 2px 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.38);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    transition: color 0.18s ease, background 0.18s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    min-height: 50px;
  }

  .mobile-bottom-nav__item:active {
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-bottom-nav__item.active {
    color: #fff;
  }

  .mobile-bottom-nav__item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: #38bdf8;
  }

  .mobile-bottom-nav__icon {
    transition: transform 0.18s ease;
  }

  .mobile-bottom-nav__item.active .mobile-bottom-nav__icon {
    transform: scale(1.08);
  }
}

@media (max-width: 760px) {
  html[data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: rgba(203, 213, 225, 0.72);
    box-shadow: 0 -4px 24px rgba(148, 163, 184, 0.18);
  }

  html[data-theme="light"] .mobile-bottom-nav__item {
    color: rgba(20, 34, 56, 0.38);
  }

  html[data-theme="light"] .mobile-bottom-nav__item.active {
    color: #0ea5e9;
  }

  html[data-theme="light"] .mobile-bottom-nav__item.active::before {
    background: #0ea5e9;
  }
}
