/* ==========================================================================
   Yükleme, dosya, yönetim ve erişim sayfaları — plan / premium bileşenleri
   ========================================================================== */

/* ---------- Plan şeridi (yükleme kartı üstü) ---------- */
.plan-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 12px 14px; border-radius: 16px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
  animation: fade-up .5s var(--ease) both;
}
.plan-strip-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.plan-strip-main > div { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.plan-strip-main strong { font-weight: 600; color: var(--text); }
.plan-strip-main span { color: var(--muted); font-size: 12.5px; }
.plan-strip-main span.inline { display: inline; font-size: inherit; }
.plan-strip-main a { color: #c4b5fd; text-decoration: underline; text-decoration-color: rgba(196, 181, 253, 0.35); text-underline-offset: 3px; }
.plan-strip-main a:hover { color: #ddd6fe; }
.plan-strip-icon {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.3); color: #c4b5fd;
}
.plan-strip-icon svg { width: 18px; height: 18px; }
.plan-strip.is-premium .plan-strip-icon { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); color: var(--amber); }
.plan-strip.is-warn { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.plan-strip.is-warn .plan-strip-icon { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); color: var(--amber); }
.plan-strip.is-guest { padding: 10px 14px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.04)); border-color: rgba(139, 92, 246, 0.22); }
.plan-strip.is-guest .plan-strip-main > div { display: block; }
.plan-strip.is-guest .plan-strip-icon { width: 30px; height: 30px; border-radius: 9px; }
.plan-strip.is-guest .plan-strip-icon svg { width: 15px; height: 15px; }
.plan-strip-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #c4b5fd; white-space: nowrap; }
.plan-strip-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.plan-strip-link:hover { color: #ddd6fe; }
.plan-strip-link:hover svg { transform: translateX(3px); }
.plan-strip-usage { flex: 0 1 280px; min-width: 200px; gap: 6px; }
.plan-strip-usage .usage-head span { display: inline-flex; align-items: center; gap: 6px; }
.plan-strip-usage .usage-head svg { width: 14px; height: 14px; }
.plan-strip-usage .usage-bar { height: 6px; }
.usage-foot { font-size: 12px; color: var(--faint); }
.plan-strip-alert { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fde68a; }
.plan-strip-alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.plan-strip-alert a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Dropzone limit önerisi ---------- */
.dz-teaser { font-size: 12.5px; margin-top: -4px; }
.dz-teaser a {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  color: #fde68a; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25);
  transition: background .2s, border-color .2s;
}
.dz-teaser a:hover { background: rgba(251, 191, 36, 0.16); border-color: rgba(251, 191, 36, 0.45); }
.dz-teaser svg { width: 13px; height: 13px; }

/* ---------- Yükleme kapalı durumu ---------- */
.upload-blocked {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  min-height: 260px; justify-content: center; padding: 40px 24px; border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12), transparent 60%), rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-strong); animation: fade-up .5s var(--ease) both;
}
.upload-blocked h2 { font-size: 21px; font-weight: 600; }
.upload-blocked p { color: var(--muted); max-width: 480px; font-size: 14px; }
.blocked-icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 4px;
  background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.35); color: #c4b5fd;
  animation: float 4s ease-in-out infinite;
}
.blocked-icon svg { width: 30px; height: 30px; }
.blocked-icon.is-amber { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); color: var(--amber); }
.blocked-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Kilitli seçenekler ---------- */
.retention-seg label { flex: 1 0 auto; }
.segmented label.is-locked { opacity: .5; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.segmented label.is-locked:hover, .segmented label.is-locked:focus-visible { opacity: .85; background: rgba(251, 191, 36, 0.07); }
.segmented label.is-locked:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.segmented label .lock-tag { margin-left: 1px; }
.segmented label .lock-tag svg { width: 11px; height: 11px; }

.field-label .lock-tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); }
.field.is-locked .input, .field.is-locked .select, .field.is-locked .input-prefix { opacity: .5; cursor: not-allowed; }
.field.is-locked .input-actions { opacity: .4; }
.field.is-muted .input-prefix { opacity: .55; }

.upsell-inline { flex-wrap: wrap; margin-top: 10px; animation: fade-up .35s var(--ease) both; }
.upsell-inline > span { flex: 1 1 200px; min-width: 0; }
.upsell-inline strong { color: #fff; font-weight: 600; }
.upsell-inline.pop { animation: pop-in .4s var(--spring) both; }
.upsell-sm { gap: 10px; padding: 10px 12px; font-size: 12.5px; border-radius: 12px; }
.upsell-sm svg { width: 16px; height: 16px; }
.upsell-sm .btn { height: 30px; font-size: 12.5px; padding: 0 10px; }

/* ---------- Özel bağlantı alanı ---------- */
.input-prefix { display: flex; align-items: stretch; min-width: 0; }
.input-prefix-text {
  display: block; flex-shrink: 0; align-self: stretch; line-height: 44px; padding: 0 12px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--surface-soft); color: var(--muted); font-family: var(--font-mono); font-size: 13px;
}
.input-prefix .input { flex: 1; border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 0; }
.input-prefix .input[aria-invalid='true'] { border-color: rgba(248, 113, 113, 0.55); }
.slug-status { display: flex; align-items: center; gap: 6px; min-height: 18px; transition: color .2s; }
.slug-status svg { width: 14px; height: 14px; flex-shrink: 0; }
.slug-status .spinner { width: 12px; height: 12px; border-width: 2px; }
.slug-status.is-ok { color: var(--green); }
.slug-status.is-bad { color: var(--red); }
.slug-status.is-checking { color: var(--muted); }
.slug-status.is-idle { color: var(--muted); }

/* ---------- Kuyrukta yükseltme önerisi ---------- */
.qitem.is-upsell { border-color: rgba(251, 191, 36, 0.35); background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(139, 92, 246, 0.06)), rgba(0, 0, 0, 0.3); }
.qupsell { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #fde68a; }
.qupsell svg { width: 13px; height: 13px; flex-shrink: 0; }
.qupsell a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: rgba(253, 230, 138, 0.5); text-underline-offset: 3px; }
.qupsell a:hover { text-decoration-color: currentColor; }

.chip-xs { height: 20px; padding: 0 8px; font-size: 11px; gap: 4px; }
.chip-xs svg { width: 11px; height: 11px; }

/* ---------- Ana sayfa premium bandı ---------- */
.premium-band { margin-top: 90px; }
.premium-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 36px; align-items: center; padding: 34px;
  background: radial-gradient(ellipse at 100% 0%, rgba(251, 191, 36, 0.12), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(139, 92, 246, 0.18), transparent 60%), var(--surface);
  overflow: hidden;
}
.premium-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); }
.premium-copy .eyebrow svg { width: 15px; height: 15px; }
.premium-copy .section-title { margin-top: 10px; }
.premium-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.premium-points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-soft); }
.premium-points li[hidden] { display: none; }
.premium-points svg { width: 18px; height: 18px; color: #c4b5fd; flex-shrink: 0; }
.premium-points strong { color: #fff; font-weight: 600; }
.premium-cta { grid-column: 1 / -1; display: flex; justify-content: flex-start; }

/* ---------- Dosya sayfası ---------- */
.file-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.file-foot .btn { color: var(--muted); }
.file-foot .btn:hover { color: #fecaca; }
.side-note { font-size: 14px; margin: 8px 0 16px; }
.side-actions { display: grid; gap: 10px; }

.report-dialog { max-width: 520px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.report-dialog h2 { display: flex; align-items: center; gap: 10px; }
.report-dialog h2 svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.report-dialog form { display: grid; gap: 16px; margin-top: 18px; }
.report-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.report-reason { position: relative; }
.report-reason input { position: absolute; opacity: 0; pointer-events: none; }
.report-reason label {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--text-soft); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
  transition: border-color .2s, background .2s, color .2s;
}
.report-reason label:hover { border-color: var(--border-strong); color: var(--text); }
.report-reason input:checked + label { color: #fff; border-color: rgba(248, 113, 113, 0.55); background: rgba(248, 113, 113, 0.1); }
.report-reason input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; }
.report-dialog .field-hint b { color: var(--text-soft); font-weight: 600; }

/* ---------- Erişim sayfası ---------- */
.account-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding: 14px 16px; }
.account-banner .feature-icon { margin: 0; width: 40px; height: 40px; }
.account-banner p { flex: 1 1 240px; color: var(--muted); font-size: 14px; }
.account-banner strong { color: var(--text); }

/* ---------- Yönetim sayfası ---------- */
.select option:disabled { color: var(--faint); }
.manage-slug .copy-field { margin-top: 2px; }

@media (max-width: 680px) {
  .plan-strip { padding: 12px; }
  .plan-strip-usage { flex: 1 1 100%; min-width: 0; }
  .premium-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .premium-band { margin-top: 64px; }
  .report-reasons { grid-template-columns: minmax(0, 1fr); }
  .input-prefix-text { max-width: 52%; padding: 0 10px; font-size: 12px; }
  .upload-blocked { min-height: 220px; padding: 30px 16px; }
  .upsell-inline .btn { margin-left: 0; }
}
