/* bitiglab — landing CTA ile aynı sade buton (ölçek: --size-*) */
.btn {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: var(--space-sm) var(--space-md);
  min-height: var(--size-input-min-h);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  opacity: 0.95;
}

.btn:disabled,
.btn[disabled],
.btn-secondary:disabled,
.btn-outline:disabled,
.btn-icon:disabled,
.btn-primary:disabled,
.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Küçük buton ölçeği — profil, editor, sosyal, depo satır aksiyonları */
.btn-sm {
  min-height: var(--size-btn-sm-h);
  padding: 0.35rem 0.7rem;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn-danger {
  background: var(--error);
  color: var(--text-primary);
  border: none;
}
.btn-danger:hover {
  filter: brightness(1.1);
}

/* Düşük vurgu buton (iptal/kapat gibi) */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
  border-color: var(--border-strong, var(--border));
}

/* Birincil aksiyon (landing CTA, form gönder, vb.) — .btn ile aynı görünüm */
.btn-primary {
  background: var(--accent);
  color: var(--black);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* İkincil / çerçeve buton (Lab, Depo, rapor modal) */
.btn-outline {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  min-height: var(--size-btn-sm-h);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-hover);
}

/* Sadece ikon (yenile, kapat vb.) */
.btn-icon {
  width: var(--size-avatar-md);
  height: var(--size-avatar-md);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-icon .material-icons,
.btn-icon i {
  font-size: var(--size-icon-sm);
}

.input {
  width: 100%;
  min-height: var(--size-input-min-h);
  background: var(--surface2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  transition: all 0.25s var(--ease);
  outline: none;
}

.input::placeholder {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.input:focus {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
  outline: none;
}

/* Auth Specific UI refinements */
.auth-form .input {
  margin-bottom: 0.5rem;
}

.auth-form .btn {
  margin-top: 1rem;
  padding: 1rem;
}

/* Modals & Overlays — genel kimlik (bitiglab premium dark, glassmorphism) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-bg, rgba(4, 7, 12, 0.9));
  backdrop-filter: var(--modal-overlay-blur, blur(16px));
  -webkit-backdrop-filter: var(--modal-overlay-blur, blur(16px));
  z-index: var(--modal-z, 99999);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--modal-border, var(--border-glass));
  box-shadow: var(--modal-shadow, 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06));
  border-radius: var(--modal-radius, var(--radius-lg));
  animation: modalSlideIn 0.22s var(--ease) forwards;
  max-height: 90vh;
  overflow-y: auto;
}

/* Premium glass (doğrulama, SaaS, öne çıkan diyaloglar) */
.modal-box--glass {
  background: var(--modal-glass-bg, rgba(10, 12, 18, 0.88));
  border: 1px solid var(--modal-border-glass, rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--modal-radius-xl, 20px);
  box-shadow: var(--modal-shadow);
}

/* Genel amaçlı modal kutusu (error, confirm, prompt, saas) */
.modal-box--dialog {
  width: min(480px, calc(100vw - 2rem));
  padding: 2rem 2rem 1.75rem;
}

.modal-box--dialog .modal-title {
  margin: 0 0 0.75rem 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.modal-box--dialog .modal-message {
  margin: 0 0 1.75rem 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

.modal-box--dialog .modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* SaaS modal - Planlari Incele donusum kismi */
.saas-modal-box {
  width: min(760px, calc(100vw - 2rem));
}

.saas-plan-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem 0;
}

.saas-modal-loading,
.saas-modal-empty {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.saas-plan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.saas-plan-card.current {
  border-color: rgba(20, 184, 166, 0.6);
}

.saas-plan-card.recommended {
  border-color: rgba(var(--accent-rgb), 0.55);
}

.saas-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.saas-plan-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.saas-plan-badge {
  font-size: var(--text-xs);
  color: var(--accent);
  border: 1px solid rgba(20, 184, 166, 0.45);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.saas-plan-price {
  font-size: var(--text-sm);
  color: var(--text);
  margin-bottom: 0.25rem;
}

.saas-plan-limits {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.saas-plan-features {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.35;
}

@media (max-width: 780px) {
  .saas-plan-compare {
    grid-template-columns: 1fr;
  }
}

.modal-box--dialog .input {
  width: 100%;
  margin-bottom: 1.75rem;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.15s var(--ease);
}

.modal-box--dialog .input:focus {
  border-color: var(--accent);
  outline: none;
}

/* Form modalları (Bounty vb.) — genel kimlik */
.modal-box--form .modal-title {
  margin-bottom: var(--space-md);
}
.modal-box--form .modal-message {
  margin-bottom: var(--space-md);
}
.modal-form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.modal-box--form .modal-form-label + .input,
.modal-box--form .modal-form-label + textarea.input {
  width: 100%;
  margin-bottom: var(--space-md);
}
.modal-box--form .modal-actions {
  margin-top: var(--space-md);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 500px) {
  .modal-box--dialog {
    width: calc(100vw - 1.5rem);
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

.modal-header {
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: none;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* SaaS Badges */
.badge-tier {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-credits {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Paylaşılan durum blokları (Marketplace, PDF Studio, Editör, Profil, Harici analiz, …) */
.borsa-loader {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.borsa-error {
  color: var(--error);
  padding: 1rem;
  text-align: center;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.borsa-error-hint {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin: 0.5rem auto 0;
  max-width: 28rem;
  line-height: 1.45;
}

/* Depo / dönüştürücü — kısa bilgi bandı (hash link yok) */
.depo-service-why,
.converter-service-why {
  padding: 0.65rem 1rem;
  margin: 0 0 1rem 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.45;
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.editor-page-tagline {
  margin: 0.25rem 0 0 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 36rem;
  line-height: 1.4;
}

/* =====================================================
   TOAST BİLDİRİM SİSTEMİ
   ===================================================== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 2rem));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: all;
  opacity: 0;
  transform: translateX(calc(100% + 1.5rem));
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  min-width: 260px;
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--hiding {
  opacity: 0;
  transform: translateX(calc(100% + 1.5rem));
}

.toast--success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.toast--success .toast-icon { color: var(--success); }

.toast--warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
.toast--warning .toast-icon { color: var(--warning); }

.toast--error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}
.toast--error .toast-icon { color: var(--error); }

.toast--info {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
}
.toast--info .toast-icon { color: var(--accent); }

.toast-icon {
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
  font-weight: 700;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.toast-msg {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 0.2rem;
  line-height: 1.5;
  word-break: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
  margin-top: 0.1rem;
}
.toast-close:hover { opacity: 1; }

@media (max-width: 480px) {
  #toast-container {
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
  .toast {
    min-width: 0;
  }
}

/* =====================================================
   SKELETON EKRANLAR
   ===================================================== */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line {
  height: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-xs);
}
.skeleton-line--sm { height: 0.65rem; width: 60%; }
.skeleton-line--lg { height: 1rem; }
.skeleton-line--xl { height: 1.25rem; width: 40%; }

.skeleton-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.skeleton-avatar {
  width: var(--size-avatar-md);
  height: var(--size-avatar-md);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* =====================================================
   FOCUS ERİŞİLEBİLİRLİK
   ===================================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible,
.btn-icon:focus-visible,
.btn-primary:focus-visible,
.btn-danger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

/* =====================================================
   INLINE FORM VALİDASYON & KARAKTER SAYACI
   ===================================================== */
.char-counter {
  display: block;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.2rem;
  transition: color 0.2s;
}
.char-counter.near-limit { color: var(--warning); }
.char-counter.at-limit   { color: var(--error); font-weight: 600; }

.field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: 0.25rem;
  min-height: 1rem;
}

.input.input--error   { border-color: var(--error); }
.input.input--success { border-color: var(--success); }

/* =====================================================
   BAĞLAMSAL YARDIM TOOLTIP SİSTEMİ
   ===================================================== */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
  margin-left: 0.3rem;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}
.info-icon:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
}

/* Tooltip balonu */
.tip-balloon {
  position: fixed;
  z-index: 999997;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 0.65rem 0.85rem;
  max-width: 280px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.55;
  pointer-events: none;
  animation: tip-in 0.15s var(--ease) forwards;
}

@keyframes tip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tip-balloon strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Klavye kısayolları overlay */
.kbd-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(28, 28, 28, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: modalSlideIn 0.2s var(--ease) forwards;
}

.kbd-overlay-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--modal-shadow);
}

.kbd-overlay-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}

.kbd-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.kbd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.kbd-item kbd {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.45rem;
  font-size: var(--text-xs);
  font-family: inherit;
  color: var(--text-primary);
  white-space: nowrap;
}

.kbd-overlay-close {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* ── Bulut depo gezgini (modal, openStorageExplorer) ─────────────────────── */
.storage-explorer {
  width: min(880px, calc(100vw - 2rem));
  max-height: min(640px, 88vh);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.35rem;
  overflow: hidden;
}

.storage-explorer--busy {
  pointer-events: none;
  opacity: 0.88;
}

.storage-explorer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.storage-explorer__head-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.storage-explorer__icon {
  display: inline-flex;
  color: var(--accent, #2dd4bf);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.storage-explorer__titles {
  min-width: 0;
}

.storage-explorer__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text, #fff);
  line-height: 1.25;
}

.storage-explorer__subtitle {
  margin: 0.4rem 0 0;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.5;
  color: var(--text-muted, rgba(255, 255, 255, 0.62));
  max-width: 46rem;
}

.storage-explorer__close {
  flex-shrink: 0;
  font-size: 1.5rem !important;
  line-height: 1;
  padding: 0.15rem 0.45rem !important;
}

.storage-explorer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.storage-explorer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
}

.storage-explorer__quota {
  flex: 0 0 auto;
  min-width: 11.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 10px);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.storage-explorer__quota-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  margin-bottom: 0.25rem;
}

.storage-explorer__quota-numbers {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #fff);
  font-variant-numeric: tabular-nums;
}

.storage-explorer__quota-sep {
  margin: 0 0.2rem;
  opacity: 0.45;
}

.storage-explorer__quota-unit {
  margin-left: 0.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.65;
}

.storage-explorer__quota-track {
  margin-top: 0.45rem;
  height: 6px;
  border-radius: 999px;
  background: var(--surface2, rgba(255, 255, 255, 0.08));
  overflow: hidden;
}

.storage-explorer__quota-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #2dd4bf), var(--blue-500, #3b82f6));
  transition: width 0.35s ease;
}

.storage-explorer__toolbar {
  flex: 1;
  min-width: min(100%, 18rem);
}

.storage-explorer__toolbar-row--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.storage-explorer__btn-icon {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.storage-explorer__btn-icon--narrow .storage-explorer__btn-text-sm {
  font-size: var(--text-sm, 0.875rem);
}

.storage-explorer__toolbar-hint {
  margin: 0.45rem 0 0;
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  line-height: 1.4;
}

.storage-explorer__bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.storage-explorer__bulk-label {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: var(--text-secondary, rgba(255, 255, 255, 0.75));
  margin-right: 0.25rem;
}

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

.storage-explorer__list {
  flex: 1;
  min-height: 12rem;
  max-height: 42vh;
  overflow-y: auto;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-md, 10px);
  background: var(--surface2, rgba(0, 0, 0, 0.2));
  padding: 0.65rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.storage-explorer__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 14rem;
  padding: 1.5rem 1rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}

.storage-explorer__state--loading svg:first-child {
  opacity: 0.85;
}

.storage-explorer__state p {
  margin: 0;
  font-size: var(--text-sm, 0.875rem);
}

.storage-explorer__state-title {
  font-weight: 700 !important;
  color: var(--text, #fff) !important;
  font-size: var(--text-ui, 0.95rem) !important;
}

.storage-explorer__state-text {
  max-width: 26rem;
  line-height: 1.5 !important;
}

.storage-explorer__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.storage-explorer__spinner {
  animation: storageExplorerSpin 0.9s linear infinite;
}

@keyframes storageExplorerSpin {
  to { transform: rotate(360deg); }
}

.storage-file-list-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.storage-file-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface, rgba(255, 255, 255, 0.03));
  transition: border-color 0.15s ease, background 0.15s ease;
}

.storage-file-card:hover {
  border-color: rgba(var(--accent-rgb, 45, 212, 191), 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.storage-file-card__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.storage-file-card__check input {
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
}

.storage-file-card__icon {
  flex-shrink: 0;
  display: flex;
  color: var(--accent, #2dd4bf);
  opacity: 0.9;
}

.storage-file-card__body {
  flex: 1;
  min-width: 0;
}

.storage-file-card__name {
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  color: var(--text, #fff);
  word-break: break-word;
  line-height: 1.35;
}

.storage-file-card__meta {
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.storage-file-card__actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.storage-file-card__btn-danger {
  color: var(--red-400, #f87171) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}

.storage-file-card__btn-danger:hover {
  background: rgba(248, 113, 113, 0.12) !important;
}

@media (max-width: 560px) {
  .storage-file-card {
    flex-wrap: wrap;
  }
  .storage-file-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ── Renk yardımcı sınıfları ──────────────────────────────────────────────── */
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
