/* =========================================================
   MODAL (AIVO) — SAFE
   - Reusable modal
   - High z-index above player
   ========================================================= */

.aivo-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  transform: translateZ(0);
}

.aivo-modal[aria-hidden="false"]{
  display: block;
}

.aivo-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.aivo-modal__panel{
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12, 14, 22, .92);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
  overflow: hidden;
}

.aivo-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.aivo-modal__title{
  font-size: 15px;
  font-weight: 800;
}

.aivo-modal__sub{
  font-size: 12.5px;
  opacity: .78;
  margin-top: 2px;
}

.aivo-modal__x{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.aivo-modal__body{
  padding: 14px 16px 6px;
}

.aivo-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-bottom: 12px;
}

.aivo-label{
  font-size: 12px;
  opacity: .82;
}

.aivo-input{
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8, 10, 16, .55);
  color: rgba(255,255,255,.92);
  outline: none;
}

.aivo-row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aivo-hint{
  font-size: 12px;
  opacity: .74;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin-bottom: 8px;
}

.aivo-modal__foot{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 680px){
  .aivo-row2{ grid-template-columns: 1fr; }
  .aivo-modal__panel{ top: 52%; }
}
/* =========================================================
   SETTINGS POLISH — Sticky Save + Active Chip + Microcopy + Tip Card
   Scope: .page-settings
   ========================================================= */

/* 1) Üst Kaydet aksiyonu: sticky bar hissi */
.page-settings .aivo-settings-head{
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10,10,16,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Buton “primary” daha canlı + hover glow */
.page-settings .aivo-settings-head .chip-btn--primary{
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.page-settings .aivo-settings-head .chip-btn--primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
}
.page-settings .aivo-settings-head .chip-btn--primary:active{
  transform: translateY(0px);
}

/* 2) Sol aktif chip daha belirgin */
.page-settings .preset-chip-row.aivo-settings-tabs .preset-chip.is-active{
  border-color: rgba(160, 120, 255, 0.95);
  background: rgba(160, 120, 255, 0.18);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.35),
    0 0 0 1px rgba(160, 120, 255, 0.20) inset;
}

/* 3) Tarayıcı bildirimleri microcopy */
.page-settings .aivo-settings-micro{
  margin-top: 4px;
  font-size: 12px;
  opacity: .65;
}

/* 4) Sağ “İpucu” kartına callout hissi */
.page-settings .aivo-settings-right{
  position: relative;
  overflow: hidden;
}
.page-settings .aivo-settings-right:before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background: radial-gradient(800px 320px at 40% 10%, rgba(160,120,255,0.20), transparent 60%);
  opacity: .9;
}

/* İpucu metnini biraz daha okunur yap */
.page-settings .aivo-settings-tip-text{
  font-size: 13px;
  opacity: .88;
}

/* 5) (Opsiyonel) Ayarlar sayfasında player biraz sakin */
.page-settings ~ .global-player,
.page-settings .global-player{
  opacity: .88;
}

/* ================= DASHBOARD: SON İŞLER (MVP) ================= */
.aivo-recent-list{ display:flex; flex-direction:column; gap:10px; }
.aivo-recent-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  opacity: 1;
  transform: none;
}
.aivo-recent-ico{
  width:34px; height:34px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size:16px;
}
.aivo-recent-title{ font-weight:700; font-size:13.5px; line-height:1.2; }
.aivo-recent-meta{ display:flex; gap:10px; align-items:center; margin-top:6px; opacity:.85; font-size:12px; }

.aivo-badge{
  padding:4px 8px; border-radius:999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:700; font-size:11.5px;
}
.aivo-badge--done{ background: rgba(120,255,180,.10); border-color: rgba(120,255,180,.20); }
.aivo-badge--err { background: rgba(255,120,120,.10); border-color: rgba(255,120,120,.20); }
.aivo-badge--wait{ background: rgba(255,220,120,.10); border-color: rgba(255,220,120,.20); }
.aivo-badge--run { background: rgba(180,160,255,.10); border-color: rgba(180,160,255,.20); }

/* mini animasyon */
.aivo-recent-item[data-ani="new"]{ opacity:0; transform: translateY(4px); }
.aivo-recent-item.is-in{
  opacity:1; transform: translateY(0);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
/* ================= DASHBOARD: RECENT JOBS POLISH (scoped) ================= */
.page-dashboard .aivo-dash-activity {
  min-height: 220px; /* empty state bile dengeli kalsın */
}

.page-dashboard .aivo-recent {
  display: grid;
  gap: 10px;
}

.page-dashboard .aivo-recent-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.page-dashboard .aivo-recent-item:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
}

.page-dashboard .aivo-recent-title {
  font-weight: 600;
  line-height: 1.2;
}

.page-dashboard .aivo-recent-meta {
  margin-top: 2px;
  font-size: 12px;
  opacity: .72;
}

.page-dashboard .aivo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  white-space: nowrap;
}

.page-dashboard .aivo-actions {
  display: inline-flex;
  gap: 8px;
  opacity: .65;
  transition: opacity .18s ease;
}

.page-dashboard .aivo-recent-item:hover .aivo-actions {
  opacity: 1;
}

/* Skeleton */
.page-dashboard .aivo-skel {
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
.page-dashboard .aivo-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-60%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: aivoShimmer 1.2s ease-in-out infinite;
}
@keyframes aivoShimmer {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(160%); }
}

/* New item micro enter */
.page-dashboard .aivo-enter {
  animation: aivoEnter .22s ease-out both;
}
@keyframes aivoEnter {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= DASHBOARD: SON İŞLER (RECENT JOBS) POLISH ================= */
.page-dashboard .aivo-dash-activity-card,
[data-page="dashboard"] .aivo-dash-activity-card{
  padding: 14px;
}

/* list container */
.page-dashboard .aivo-recent-list,
[data-page="dashboard"] .aivo-recent-list{
  display: grid;
  gap: 10px;
}

/* row */
.page-dashboard .aivo-recent-item,
[data-page="dashboard"] .aivo-recent-item{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease, background .22s ease;
}

.page-dashboard .aivo-recent-item.is-in,
[data-page="dashboard"] .aivo-recent-item.is-in{
  transform: translateY(0);
  opacity: 1;
}

.page-dashboard .aivo-recent-item:hover,
[data-page="dashboard"] .aivo-recent-item:hover{
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
}

/* icon */
.page-dashboard .aivo-recent-ico,
[data-page="dashboard"] .aivo-recent-ico{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 16px;
}

/* text */
.page-dashboard .aivo-recent-title,
[data-page="dashboard"] .aivo-recent-title{
  font-weight: 650;
  line-height: 1.2;
}

.page-dashboard .aivo-recent-meta,
[data-page="dashboard"] .aivo-recent-meta{
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: .78;
}

.page-dashboard .aivo-recent-time,
[data-page="dashboard"] .aivo-recent-time{
  opacity: .85;
}

/* badges */
.page-dashboard .aivo-badge,
[data-page="dashboard"] .aivo-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  white-space: nowrap;
}

.page-dashboard .aivo-badge--done,
[data-page="dashboard"] .aivo-badge--done{
  border-color: rgba(120,255,190,.18);
  background: rgba(120,255,190,.08);
}
.page-dashboard .aivo-badge--err,
[data-page="dashboard"] .aivo-badge--err{
  border-color: rgba(255,120,140,.18);
  background: rgba(255,120,140,.08);
}
.page-dashboard .aivo-badge--wait,
[data-page="dashboard"] .aivo-badge--wait{
  border-color: rgba(255,210,120,.18);
  background: rgba(255,210,120,.08);
}
.page-dashboard .aivo-badge--run,
[data-page="dashboard"] .aivo-badge--run{
  border-color: rgba(170,140,255,.18);
  background: rgba(170,140,255,.08);
}
/* ================= DASHBOARD: SON İŞLER (aivo-recent-*) ================= */
[data-dashboard-recent-jobs] .aivo-recent-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-dashboard-recent-jobs] .aivo-recent-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

[data-dashboard-recent-jobs] .aivo-recent-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}

[data-dashboard-recent-jobs] .aivo-recent-mid{
  min-width: 0;
  flex: 1 1 auto;
}

[data-dashboard-recent-jobs] .aivo-recent-title{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-dashboard-recent-jobs] .aivo-recent-meta{
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: .9;
  font-size: 12px;
}

[data-dashboard-recent-jobs] .aivo-badge{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

[data-dashboard-recent-jobs] .aivo-badge--done{ opacity: .95; }
[data-dashboard-recent-jobs] .aivo-badge--run { opacity: .95; }
[data-dashboard-recent-jobs] .aivo-badge--wait{ opacity: .95; }
[data-dashboard-recent-jobs] .aivo-badge--err { opacity: .95; }
/* ================= /DASHBOARD: SON İŞLER ================= */
/* ===============================
   SETTINGS PANE FORCE VISIBILITY
   =============================== */
.page-settings .aivo-settings-pane {
  display: none;
}

.page-settings .aivo-settings-pane.is-active {
  display: block !important;
}
/* =========================================================
   SETTINGS – CATEGORY TOP NAV (REVIZE / FINAL)
   ========================================================= */

/* Kutu genel görünüm */
.aivo-settings-topnav {
  margin: 28px 0 34px;
  padding: 36px 28px 34px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.015)
  );
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* Başlık alanı */
.aivo-settings-topnav-head {
  margin-bottom: 22px;
}

/* Ana başlık */
.aivo-settings-topnav-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

/* Alt açıklama */
.aivo-settings-topnav-sub {
  margin-top: 8px;
  font-size: clamp(14px, 1.7vw, 16px);
  color: rgba(255,255,255,0.65);
}

/* Chip satırı */
.aivo-settings-topnav-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* Chip – normal */
.aivo-settings-topnav-chips .preset-chip {
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* Hover */
.aivo-settings-topnav-chips .preset-chip:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

/* Aktif chip */
.aivo-settings-topnav-chips .preset-chip.is-active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(
    180deg,
    rgba(138,92,255,0.35),
    rgba(138,92,255,0.18)
  );
  border-color: rgba(138,92,255,0.6);
  box-shadow:
    0 0 0 1px rgba(138,92,255,0.55),
    0 8px 22px rgba(138,92,255,0.25);
}

/* Mobil ufak sıkılaştırma */
@media (max-width: 640px) {
  .aivo-settings-topnav {
    padding: 28px 18px 26px;
  }

  .aivo-settings-topnav-chips {
    gap: 10px;
  }

  .aivo-settings-topnav-chips .preset-chip {
    padding: 10px 16px;
    font-size: 14px;
  }
}
/* =========================================================
   SETTINGS — TOP CATEGORY BOX (KÜÇÜLTÜLMÜŞ) + SAVE CTA (PULSE)
   Önceki bloğun yerine BUNU koy.
   ========================================================= */

/* --- ÜST KATEGORİ KUTUSU --- */
.aivo-settings-topnav{
  margin: 14px 0 18px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(820px 200px at 50% 0%, rgba(149,110,255,.12), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(18,18,28,.58), rgba(10,10,18,.36));
  box-shadow:
    0 14px 46px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.aivo-settings-topnav-head{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin-bottom: 10px;
}

/* BAŞLIK — bir tık küçültüldü */
.aivo-settings-topnav-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 36px; /* ↓ 44 → 36 */
  line-height: 1.08;
  color: rgba(255,255,255,.95);
  text-shadow: 0 8px 32px rgba(0,0,0,.45);
}

/* ALT AÇIKLAMA — daha kompakt */
.aivo-settings-topnav-sub{
  margin-top: 8px;
  font-size: 17px; /* ↓ 20 → 17 */
  line-height: 1.35;
  color: rgba(255,255,255,.70);
}

.aivo-settings-topnav-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px; /* ↓ */
  justify-content:center;
  padding-top: 6px;
}

/* CHIP’LER — seçenek gibi ama daha sakin */
.aivo-settings-topnav-chips .preset-chip{
  font-size: 15px; /* ↓ 17 → 15 */
  font-weight: 650;
  padding: 10px 16px; /* ↓ */
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 24px rgba(0,0,0,.26);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.aivo-settings-topnav-chips .preset-chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.14);
}

.aivo-settings-topnav-chips .preset-chip.is-active{
  color: rgba(255,255,255,.94);
  background: linear-gradient(180deg, rgba(155,120,255,.22), rgba(120,90,220,.14));
  border-color: rgba(168,130,255,.50);
  box-shadow:
    0 0 0 1px rgba(168,130,255,.22),
    0 12px 34px rgba(130,90,255,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}

/* --- AYARLARI KAYDET BUTONU (DAHA SAKİN NABIZ) --- */
.aivo-settings-head-actions .chip-btn--primary{
  position: relative;
  border-radius: 999px;
  padding: 10px 16px; /* ↓ */
  font-weight: 750;
  font-size: 14px;

  color: rgba(255,255,255,.92);
  background:
    radial-gradient(140% 120% at 20% 10%, rgba(160,125,255,.34), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(58,44,108,.85), rgba(32,26,64,.82));
  border: 1px solid rgba(170,140,255,.42);

  box-shadow:
    0 10px 30px rgba(0,0,0,.34),
    0 0 0 1px rgba(160,125,255,.14),
    inset 0 1px 0 rgba(255,255,255,.10);

  animation: aivoSavePulseSoft 1.9s ease-in-out infinite;
}

/* HALO — daha yumuşak */
.aivo-settings-head-actions .chip-btn--primary::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: inherit;
  border: 1px solid rgba(170,140,255,.18);
  opacity: 0;
  animation: aivoSaveRingSoft 1.9s ease-in-out infinite;
  pointer-events:none;
}

@keyframes aivoSavePulseSoft{
  0%   { transform: scale(1); }
  45%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes aivoSaveRingSoft{
  0%   { opacity: 0;   transform: scale(.98); }
  40%  { opacity: .55; transform: scale(1.04); }
  100% { opacity: 0;   transform: scale(1.10); }
}

/* MOBİL / DAR EKRAN */
@media (max-width: 980px){
  .aivo-settings-topnav-title{ font-size: 30px; }
  .aivo-settings-topnav-sub{ font-size: 16px; }
  .aivo-settings-topnav{ padding: 18px 16px; }
}
/* =========================================================
   SETTINGS > BİLDİRİM AYARLARI — TAP / PRESS MICRO-INTERACTION
   Scope: sadece notifications pane
   ========================================================= */

.page-settings [data-settings-pane="notifications"] .aivo-settings-card{
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  will-change: transform;
}

/* hover (desktop) */
.page-settings [data-settings-pane="notifications"] .aivo-settings-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* press / tap */
.page-settings [data-settings-pane="notifications"] .aivo-settings-card:active{
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* Kart içindeki satırlar (toggle satırları) tıklanınca hafif kayma */
.page-settings [data-settings-pane="notifications"] .aivo-settings-card > *{
  transition: transform .16s ease, background-color .16s ease;
}

/* satır basılınca */
.page-settings [data-settings-pane="notifications"] .aivo-settings-card > *:active{
  transform: translateX(2px);
}

/* iOS/Safari için daha net "dokunma" hissi */
.page-settings [data-settings-pane="notifications"] .aivo-settings-card,
.page-settings [data-settings-pane="notifications"] .aivo-settings-card *{
  -webkit-tap-highlight-color: transparent;
}

/* (Opsiyonel) satır hover: çok hafif parıltı */
.page-settings [data-settings-pane="notifications"] .aivo-settings-card > *:hover{
  background-color: rgba(255,255,255,0.02);
  border-radius: 12px;
}
/* =========================================================
   FIX: globalPlayer click yutmasın (Jobs/Çıktılar ve menü)
   - player ekranda kalsın
   - menü ve sayfa üstü tıklamalar engellenmesin
   ========================================================= */

/* 1) Player alt katmanda kalsın */
#globalPlayer,
.global-player{
  z-index: 10 !important;
}

/* 2) Sol sidebar + üst alanlar player’ın üstünde olsun */
.sidebar,
.sidebar *{
  position: relative;
  z-index: 60;
}

/* 3) Ana sayfa içeriği de player’ın üstünde kalsın (formlar tıklansın) */
.main-panel,
.panel-header,
.page,
.layout{
  position: relative;
  z-index: 40;
}

/* 4) Eğer player tam ekran bir layer ise: sadece kendi içindeki kontroller click alsın */
#globalPlayer{
  pointer-events: none;
}
#globalPlayer .player,
#globalPlayer .player *{
  pointer-events: auto;
}
:root { --AIVO_PLAYER_FIX_V1: demonstrate; }
/* =========================================================
   DASHBOARD — RECENT JOBS (layout fix)
   - Hedef: [data-dashboard-recent-jobs] içindeki listeyi
     düzgün satır (row) formatına sokmak
   ========================================================= */

[data-dashboard-recent-jobs] .aivo-dash-activity-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  text-align:left;
}

[data-dashboard-recent-jobs] .aivo-recent-row{
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:12px;

  padding:10px 12px;
  border-radius:14px;

  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

[data-dashboard-recent-jobs] .aivo-recent-row > *{
  min-width:0;
}

/* Sol ikon kutusu (varsa) */
[data-dashboard-recent-jobs] .aivo-recent-ico,
[data-dashboard-recent-jobs] .aivo-recent-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}

/* Orta metin alanı */
[data-dashboard-recent-jobs] .aivo-recent-main{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

[data-dashboard-recent-jobs] .aivo-recent-title{
  font-weight:800;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

[data-dashboard-recent-jobs] .aivo-recent-sub{
  opacity:.75;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Sağ durum pill (varsa) */
[data-dashboard-recent-jobs] .aivo-recent-status,
[data-dashboard-recent-jobs] .aivo-recent-pill,
[data-dashboard-recent-jobs] .aivo-status{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

/* Eski “chip gibi tek başına ortada” elementler kaldıysa:
   onları da satır gibi hizala */
[data-dashboard-recent-jobs] .chip,
[data-dashboard-recent-jobs] .chip-btn,
[data-dashboard-recent-jobs] .pill{
  align-self:flex-start;
}
/* =========================================================
   DASHBOARD — RECENT JOBS layout fix (row/list görünümü)
   Sadece dashboard "Son İşler" alanını etkiler.
========================================================= */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
}

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-left{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-width:0 !important; /* taşmayı engeller */
  flex:1 1 auto !important;
}

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-title{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:100% !important;
}

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-status{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

/* Mobilde yine alt alta kalsın istersen (opsiyonel) */
@media (max-width: 720px){
  .page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row{
    flex-direction:column !important;
    align-items:flex-start !important;
  }
  .page-dashboard [data-dashboard-recent-jobs] .aivo-recent-status{
    margin-left:0 !important;
  }
}
/* DASHBOARD — Recent jobs row: compact + left aligned */
[data-dashboard-recent-jobs] .aivo-recent-row{
  display: grid !important;
  grid-template-columns: 44px 1fr auto;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  min-height: 64px !important;
}

[data-dashboard-recent-jobs] .aivo-recent-left{
  display:flex !important;
  align-items:center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

[data-dashboard-recent-jobs] .aivo-recent-title{
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* status pill (queued/done) sağda kalsın */
[data-dashboard-recent-jobs] .aivo-recent-status{
  justify-self: end !important;
}

/* row hover: liste hissi */
[data-dashboard-recent-jobs] .aivo-recent-row:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}
/* =========================================================
   DASHBOARD – RECENT JOBS (FINAL ALIGN FIX)
   Owner: studio.pages.css
========================================================= */

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* SOL BLOK */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-left {
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 ÖNEMLİ */
  gap: 14px;
  flex: 1;
}

/* ICON */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-icon {
  flex: 0 0 auto;
}

/* TITLE WRAPPER */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-left > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* TITLE */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-title {
  text-align: center !important;
  width: 100%;
  margin: 0 auto;
  justify-self: center !important;
}

/* SAĞ STATUS */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-right {
  flex: 0 0 auto;
}
/* =========================================================
   DASHBOARD – RECENT JOBS (EFFECTS HARDENED / SAFARI SAFE)
   Owner: studio.pages.css
========================================================= */

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row{
  position: relative;
  overflow: visible;              /* gölge kesilmesin */
  transform: translateZ(0);       /* Safari compositing */
  backface-visibility: hidden;
  transition: transform .18s ease;
  will-change: transform;
}

/* Hover lift */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row:hover{
  transform: translateY(-1px) translateZ(0);
}

/* Görünür glow katmanı (border + soft glow) */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 10px 26px rgba(0,0,0,.40);
}

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row:hover::after{
  opacity: 1;
}

/* Sol highlight (gözle görünen) */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row::before{
  content:"";
  position:absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.16);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row:hover::before{
  opacity: 1;
}

/* Icon shine biraz güçlendir */
.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-icon{
  transition: transform .18s ease, filter .18s ease;
}

.page-dashboard [data-dashboard-recent-jobs] .aivo-recent-row:hover .aivo-recent-icon{
  transform: translateY(-1px);
  filter: drop-shadow(0 8px 18px rgba(255,255,255,.14));
}

/* Status queued – pulse (görünür) */
@keyframes aivoPulse2 {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.14); }
  50%     { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

.page-dashboard [data-dashboard-recent-jobs] .status.queued{
  animation: aivoPulse2 1.8s ease-in-out infinite;
}
/* =========================================================
   FINAL OVERRIDE (STUDIO) — Avatar letter + Plan row fix
   Place at VERY BOTTOM of /studio.pages.css
   ========================================================= */

/* 0) Eğer products.dropdown.css içinde pseudo overlay varsa iptal et */
#btnUserMenuTop .user-ava::before,
#btnUserMenuTop .user-ava::after,
#userMenuPanel .um-ava::before,
#userMenuPanel .um-ava::after{
  content: none !important;
}

/* 1) ORB (arka plan) kalsın */
#btnUserMenuTop .user-ava,
#userMenuPanel .um-ava{
  display: grid !important;
  place-items: center !important;

  /* orb boyutu */
  width: 34px !important;
  height: 34px !important;
  border-radius: 14px !important;

  background:
    radial-gradient(18px 18px at 35% 30%, rgba(255,255,255,.65), transparent 55%),
    radial-gradient(70px 70px at 55% 55%, rgba(200,175,255,.85), rgba(98,72,255,.70)) !important;

  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 10px 26px rgba(98,72,255,.28) !important;

  /* Harfi öldüren eski kuralları ez */
  font-size: 14px !important;
  color: rgba(255,255,255,.98) !important;
}

/* 2) HARF (premium glow) — hem topbar hem panel */
#btnUserMenuTop #topUserInitial.user-ava,
#userMenuPanel #umAvatar.um-ava{
  display: grid !important;
  place-items: center !important;

  font-family: ui-rounded, system-ui, -apple-system, "SF Pro Display", "Inter", "Segoe UI", Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;

  font-size: 14px !important;
  line-height: 1 !important;

  color: rgba(255,255,255,.98) !important;

  text-shadow:
    0 0 6px rgba(255,255,255,.45),
    0 0 14px rgba(160,120,255,.70),
    0 0 26px rgba(90,190,255,.50),
    0 0 38px rgba(140,110,255,.35) !important;

  filter: saturate(1.25) brightness(1.10) !important;

  opacity: 1 !important;
  visibility: visible !important;
}

/* 3) PLAN ROW FIX — “Basic/Premium” görünür olsun */
#userMenuPanel .um-plan{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 44px !important;
  height: auto !important;
  padding: 10px 14px !important;
  margin: 10px 0 14px !important;

  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;

  /* parent’tan gelen font-size:0 gibi durumları ez */
  font-size: 16px !important;
  line-height: 1 !important;

  position: relative !important;
  z-index: 5 !important;
}

#userMenuPanel #umPlan{
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;

  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,.96) !important;

  opacity: 1 !important;
  visibility: visible !important;

  position: relative !important;
  z-index: 6 !important;
}
/* =========================================================
   STUDIO — ONLY USER MENU PANEL AVATAR FIX
   (Topbar H untouched)
   ========================================================= */

.is-studio #userMenuPanel .um-ava,
.is-studio #userMenuPanel #umAvatar{
  width: 48px !important;
  height: 48px !important;
  font-size: 20px !important;
  line-height: 1 !important;
}
/* ===============================
   PAGE VISIBILITY – FINAL FIX
   =============================== */

.page {
  display: none;
}

.page.active {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}
:root{
  --player-h: 86px; /* player bar'ın gerçek yüksekliği neyse onu yaz */
}

/* Sayfanın kaydıran ana alanı hangisiyse ona uygula */
.studio-content,
.studio-main,
.studio-layout,
.studio-shell {
  padding-bottom: calc(var(--player-h) + 16px) !important;
}

/* Eğer sol/sağ kolon ayrı ayrı scroll alansa */
.left-rail,
.right-rail,
.sidebar,
.outputs-panel {
  padding-bottom: calc(var(--player-h) + 16px) !important;
}
:root{
  --topbar-h: 72px;   /* senin header yüksekliği (gerekirse 64/76 değiştir) */
  --player-h: 86px;   /* global player yüksekliği */
}

/* Sağ kolon player'ın üstünde bitsin */
body.has-global-player .right-panel{
  max-height: calc(100vh - var(--topbar-h) - var(--player-h));
  overflow: hidden;     /* dışarı taşmayı kes */
  min-height: 0;        /* FLEX/GIRD taşma fix */
}

/* Kart sağ panelin içinde kalsın, içerik scroll etsin */
body.has-global-player .right-panel .right-card{
  height: 100%;
  max-height: 100%;
  overflow: auto;
  min-height: 0;        /* kritik */
}
:root{
  --player-h: 96px;     /* player gerçek yüksekliği */
  --player-gap: 12px;   /* küçük güvenlik payı */
}

/* SAĞ PANEL: aşağı kaymasın, sadece player'a göre kısalsın */
body.has-global-player .right-panel{
  position: relative !important;   /* sticky kapat */
  top: auto !important;

  max-height: calc(100dvh - var(--player-h) - var(--player-gap)) !important;
  overflow: hidden !important;
  min-height: 0 !important;

  align-self: start !important;    /* grid/flex'te aşağı kaymayı keser */
}

/* Kart panel içinde kalsın, içerik kart içinde scroll etsin */
body.has-global-player .right-panel .right-card{
  height: 100% !important;
  max-height: 100% !important;
  overflow: auto !important;
  min-height: 0 !important;
}
:root{
  --player-h: 96px;   /* gerekirse 104 / 110 */
  --player-gap: 12px;
}

/* 1) ANA LAYOUT: player için güvenli alan aç (EN KRİTİK HAMLE) */
body.has-global-player .layout,
body.has-global-player .page,
body.has-global-player .page-studio{
  padding-bottom: calc(var(--player-h) + var(--player-gap) + env(safe-area-inset-bottom, 0px)) !important;
}

/* 2) SAĞ PANEL: bulunduğu grid/flex hücresine tam otursun */
body.has-global-player .right-panel{
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  min-height: 0 !important;      /* flex/grid taşma fix */
  align-self: stretch !important; /* gridte düzgün otursun */
}

/* 3) KART: panel içinde kalsın, içerik kart içinde scroll */
body.has-global-player .right-panel .right-card{
  height: 100% !important;
  max-height: 100% !important;
  overflow: auto !important;
  min-height: 0 !important;
}
/* 1) Kart: blur'ı karttan kaldır */
.ipucu-card{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2) Blur/Glass efektini arkaya pseudo ile ver */
.ipucu-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 26, 0.55); /* sende neyse */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 0;
}

/* 3) Metin: üstte ve “tek katman” render */
.ipucu-card *{
  position: relative;
  z-index: 1;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  -webkit-font-smoothing: antialiased;
}
:root{
  --player-h: 96px;   /* gerekirse 110 */
  --player-gap: 12px;
}

/* 0) Global player varken: tüm sayfa alanı player'a göre kısalsın */
body.has-global-player .layout{
  padding-bottom: calc(var(--player-h) + var(--player-gap) + env(safe-area-inset-bottom, 0px)) !important;
  min-height: 0 !important; /* kritik */
}

/* 1) Layout içindeki tüm kolonlar taşmasın (Dashboard dahil) */
body.has-global-player .layout > aside,
body.has-global-player .layout > section{
  min-height: 0 !important; /* kritik: flex/grid taşma fix */
}

/* 2) Sağ panel her sayfada aynı davranış: panel kendi alanına oturur */
body.has-global-player .layout .right-panel{
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

/* 3) Sağ kart panel içinde scroll eder (Müziklerim/Hızlı Kısayollar vs hepsi) */
body.has-global-player .layout .right-panel .right-card{
  height: 100% !important;
  max-height: 100% !important;
  overflow: auto !important;
  min-height: 0 !important;
}
:root{
  --sidebar-pad-bottom: 18px;
}

/* Sidebar: ipucu ezilmesin -> sidebar kendi içinde scroll edebilsin */
body.is-studio .sidebar{
  overflow: auto !important;          /* eskiden visible idi, artık auto */
  padding-bottom: var(--sidebar-pad-bottom) !important;
  overscroll-behavior: contain;
}

/* Sidebar içindeki kartlar kesilmesin */
body.is-studio .sidebar .card,
body.is-studio .sidebar .panel,
body.is-studio .sidebar .ipucu,
body.is-studio .sidebar .ipucu-card{
  min-height: 0 !important;
}

/* İPUCU bloğu en altta biraz nefes alsın */
body.is-studio .sidebar .ipucu,
body.is-studio .sidebar .ipucu-card{
  margin-bottom: 18px !important;
}
/* PAGE HEAD — ortak başlık kutusu */
.page-head{
  margin: 10px 0 14px;
}

.page-head__box{
  border-radius: 18px;
  padding: 14px 18px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(120deg,
    rgba(120, 90, 255, 0.18) 0%,
    rgba(179, 98, 255, 0.10) 40%,
    rgba(255, 120, 200, 0.08) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.page-head__title{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.page-head__sub{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.85;
}

/* mobilde daha sıkı */
@media (max-width: 720px){
  .page-head__box{ padding: 12px 14px; border-radius: 16px; }
  .page-head__title{ font-size: 16px; }
  .page-head__sub{ font-size: 12.5px; }
}
/* PAGE HEAD — final: daha kompakt, daha premium */
.page-head{
  margin: 6px 0 12px;
}

.page-head__box{
  padding: 10px 14px;              /* daha kısa */
  border-radius: 16px;
  text-align: center;
  width: 100%;
}

/* Başlık biraz daha küçük, net */
.page-head__title{
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

/* Alt metin daha ince ve kısa satır */
.page-head__sub{
  font-size: 12.5px;
  line-height: 1.3;
  opacity: .82;
  margin: 4px 0 0;
  max-width: 620px;                /* satır uzamasını keser */
  margin-left: auto;
  margin-right: auto;
}
/* PAGE HEAD — GLOBAL STANDARD (tüm paneller) */
.page-head{
  margin: 6px 0 12px;
}

.page-head__box{
  border-radius: 16px;
  padding: 10px 14px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(120deg,
    rgba(120, 90, 255, 0.18) 0%,
    rgba(179, 98, 255, 0.10) 40%,
    rgba(255, 120, 200, 0.08) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.page-head__title{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.page-head__sub{
  margin: 4px auto 0;
  font-size: 12.5px;
  line-height: 1.3;
  opacity: 0.82;
  max-width: 620px; /* satır uzamasını kontrol eder */
}

/* mobil */
@media (max-width: 720px){
  .page-head__box{ padding: 10px 12px; border-radius: 14px; }
  .page-head__title{ font-size: 15px; }
  .page-head__sub{ font-size: 12.2px; }
}
/* ===== Library Empty State (Premium) ===== */
.library-empty{
  padding: 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 40px rgba(0,0,0,.25) inset;
}

.library-empty__icon{
  font-size: 18px;
  opacity: .95;
  margin-bottom: 10px;
}

.library-empty__text{
  max-width: 560px;
}

.library-empty__title{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.library-empty__sub{
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}

/* butonlar düzensiz dağılmasın: grid */
.library-empty__actions{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

/* dar ekranda 2 + 1 gibi güzel düşsün */
@media (max-width: 680px){
  .library-empty__actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* butonların hepsi aynı yükseklik/premium */
.library-empty__actions .chip-btn{
  width: 100%;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  font-weight: 700;
}
/* ===============================
   STUDIO: TOP GAP KILL (FINAL)
   en altta kalsın
   =============================== */

/* tarayıcı default margin'i kes */
html, body { margin: 0 !important; padding: 0 !important; }

/* Studio sayfasında body'ye kimse padding-top basamasın */
body.is-studio { padding-top: 0 !important; }

/* Eğer layout/top-shell gibi bir wrapper varsa onun da üst boşluğunu kes */
.is-studio .top-shell,
.is-studio .layout,
.is-studio .page { margin-top: 0 !important; padding-top: 0 !important; }

/* Topbar sticky ise sayfayı aşağı itmez; fixed ise main-panel’e offset verilir */
.is-studio .aivo-topbar{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

/* main-panel üzerinde “topbar boşluğu” yazan eski kurallar varsa sıfırla */
.is-studio .main-panel{ margin-top: 0 !important; padding-top: 0 !important; }
/* STUDIO: old left user pill OFF (keeps topbar menu only) */
.is-studio .studio-user-pill,
.is-studio .studio-user,
.is-studio .studio-top-user,
.is-studio .top-left-user,
.is-studio .left-user-pill{
  display:none !important;
}
.page-atmosphere .atm-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}
.page-atmosphere .atm-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px;margin-bottom:12px}
.page-atmosphere .atm-card-title{font-weight:700;margin-bottom:10px}
.page-atmosphere .atm-scenes,.page-atmosphere .atm-effects{display:flex;flex-wrap:wrap;gap:8px}
.page-atmosphere .atm-scene,.page-atmosphere .atm-eff{border-radius:999px;padding:8px 10px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);color:#fff;cursor:pointer}
.page-atmosphere .is-active{outline:2px solid rgba(180,120,255,.65)}
.page-atmosphere .is-disabled{opacity:.4;cursor:not-allowed}
.page-atmosphere .atm-row{display:flex;gap:10px}
.page-atmosphere .atm-row-tight{gap:8px;align-items:center;margin-top:8px}
.page-atmosphere .atm-field{flex:1}
.page-atmosphere .atm-label{display:block;opacity:.85;margin-bottom:6px}
.page-atmosphere .atm-select{width:100%;border-radius:12px;padding:10px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.10);color:#fff}
.page-atmosphere .atm-upload{display:inline-flex;gap:8px;align-items:center;border:1px dashed rgba(255,255,255,.18);border-radius:12px;padding:10px;cursor:pointer}
.page-atmosphere .atm-muted{opacity:.75;font-size:12px;margin-top:8px}
.page-atmosphere .atm-warn{margin-top:10px;background:rgba(255,120,120,.12);border:1px solid rgba(255,120,120,.25);border-radius:12px;padding:10px;font-size:13px}
.page-atmosphere .atm-preview{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:14px;min-height:360px}
.page-atmosphere .atm-preview-inner{border-radius:16px;height:332px;background:radial-gradient(circle at 20% 20%, rgba(180,120,255,.35), transparent 55%), radial-gradient(circle at 80% 70%, rgba(80,200,255,.25), transparent 60%), rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center}
.page-atmosphere .atm-preview-placeholder{text-align:center;opacity:.9}
.page-atmosphere .atm-cta{margin-top:8px}
.page-atmosphere .atm-generate{width:100%;border-radius:18px;padding:14px 16px;font-weight:800}
.page-atmosphere .nav-badge{margin-left:8px;font-size:11px;padding:2px 8px;border-radius:999px;background:rgba(180,120,255,.25);border:1px solid rgba(180,120,255,.35)}
/* ==============================
   ATMOSFER MODE SWITCH
   ============================== */

.mode-switch {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.mode-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.mode-tab.is-active {
  border-color: rgba(164,120,255,.55);
  background: rgba(164,120,255,.12);
}

.mode-panel {
  display: none;
}

.mode-panel.is-active {
  display: block;
}
/* ===============================
   ATMOSPHERE — MODE SWITCH
   =============================== */

/* Panel toggle */
.mode-panel {
  display: none;
}
.mode-panel.is-active {
  display: block;
}

/* Güvenlik: hidden attribute */
.mode-panel[hidden] {
  display: none !important;
}

/* Switch container */
.mode-switch {
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
}

/* Switch buttons */
.mode-tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  opacity: .7;
}

.mode-tab:hover {
  opacity: .9;
}

/* Active state */
.mode-tab.is-active {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(160,120,255,.35),
    rgba(120,90,255,.25)
  );
  border-color: rgba(160,120,255,.55);
  box-shadow: 0 0 0 1px rgba(160,120,255,.35),
              0 6px 20px rgba(120,90,255,.25);
}
/* =========================================================
   ATMOSPHERE — make cards match other Studio pages
   (scope: only data-page="atmosphere")
   ========================================================= */

[data-page="atmosphere"] .main-panel{
  /* Kapak/Sosyal gibi kartların daha “toplu” görünmesi */
  padding-bottom: 18px;
}

/* --- Cards: daha premium / daha derin --- */
[data-page="atmosphere"] .card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(1200px 500px at 15% 0%,
      rgba(140,120,255,.10),
      rgba(0,0,0,0) 55%),
    rgba(10,12,24,.62);
  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    0 0 0 1px rgba(120,90,255,.06) inset;
  padding: 16px;
}

[data-page="atmosphere"] .card + .card{
  margin-top: 14px;
}

/* Header typography */
[data-page="atmosphere"] .card-header{
  margin-bottom: 12px;
}
[data-page="atmosphere"] .card-title{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}
[data-page="atmosphere"] .card-subtitle{
  font-size: 13px;
  opacity: .78;
  margin-top: 4px;
}

/* --- Scene choices (smpack-choice) --- */
[data-page="atmosphere"] .smpack-grid--themes{
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

@media (max-width: 1200px){
  [data-page="atmosphere"] .smpack-grid--themes{
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

[data-page="atmosphere"] .smpack-choice{
  text-align: left;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
  opacity: .92;
}

[data-page="atmosphere"] .smpack-choice:hover{
  transform: translateY(-1px);
  border-color: rgba(160,120,255,.45);
  background: rgba(160,120,255,.08);
  opacity: 1;
}

[data-page="atmosphere"] .smpack-choice.is-active{
  border-color: rgba(160,120,255,.65);
  background:
    linear-gradient(135deg, rgba(160,120,255,.18), rgba(120,90,255,.10));
  box-shadow:
    0 0 0 1px rgba(160,120,255,.22) inset,
    0 10px 26px rgba(120,90,255,.22);
}

[data-page="atmosphere"] .smpack-choice__title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
[data-page="atmosphere"] .smpack-choice__desc{
  font-size: 12.5px;
  opacity: .78;
  line-height: 1.25;
}

/* --- Effect pills (max 2) --- */
[data-page="atmosphere"] .smpack-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-page="atmosphere"] .smpack-pill{
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  font-size: 13px;
  line-height: 1;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
  opacity: .9;
}

[data-page="atmosphere"] .smpack-pill:hover{
  transform: translateY(-1px);
  opacity: 1;
  border-color: rgba(160,120,255,.35);
}

[data-page="atmosphere"] .smpack-pill.is-active{
  border-color: rgba(160,120,255,.65);
  background: rgba(160,120,255,.12);
  box-shadow: 0 0 0 1px rgba(160,120,255,.18) inset;
  opacity: 1;
}

/* --- Inputs/selects look like other pages --- */
[data-page="atmosphere"] .input,
[data-page="atmosphere"] select,
[data-page="atmosphere"] input[type="text"]{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(120,90,255,.05) inset;
}

[data-page="atmosphere"] .form-row{
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
}

[data-page="atmosphere"] .form-label{
  opacity: .85;
  font-size: 13px;
  font-weight: 600;
}

/* --- CTA card a bit more like Premium (optional) --- */
[data-page="atmosphere"] .smpack-card--cta{
  padding: 16px;
  border-color: rgba(160,120,255,.22);
  background:
    radial-gradient(800px 260px at 20% 0%,
      rgba(160,120,255,.18),
      rgba(0,0,0,0) 55%),
    rgba(10,12,24,.55);
}

[data-page="atmosphere"] #atmGenerateBtn{
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
}
/* =========================================================
   ATMOSPHERE — FIX: text too dark + hover light stuck
   (append at VERY bottom)
   ========================================================= */

[data-page="atmosphere"] .smpack-choice,
[data-page="atmosphere"] .smpack-pill{
  color: rgba(255,255,255,.92);
}

/* Text readability */
[data-page="atmosphere"] .smpack-choice__title{
  color: rgba(255,255,255,.95);
  opacity: 1 !important;
}
[data-page="atmosphere"] .smpack-choice__desc{
  color: rgba(255,255,255,.72);
  opacity: 1 !important;
}
[data-page="atmosphere"] .card-title,
[data-page="atmosphere"] .card-subtitle,
[data-page="atmosphere"] .form-label{
  color: rgba(255,255,255,.92);
}

/* Make non-active cards not too dark */
[data-page="atmosphere"] .smpack-choice{
  position: relative;
  overflow: hidden;                 /* sheen inside */
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.22) !important;
  transform: translateY(0);         /* prevent “stuck” visual */
}

/* Sheen (moving light) — applies to ALL cards */
[data-page="atmosphere"] .smpack-choice::before{
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(170,140,255,.18) 35%,
    rgba(255,255,255,.10) 50%,
    rgba(170,140,255,.16) 65%,
    transparent 100%
  );
  transform: translateX(-60%) rotate(12deg);
  opacity: 0;
  transition: transform .55s ease, opacity .25s ease;
  pointer-events: none;
}

/* Hover: light moves on the hovered card (not stuck on first) */
[data-page="atmosphere"] .smpack-choice:hover::before{
  opacity: 1;
  transform: translateX(60%) rotate(12deg);
}

/* Hover glow (works on every card) */
[data-page="atmosphere"] .smpack-choice:hover{
  border-color: rgba(160,120,255,.55) !important;
  background: rgba(160,120,255,.08) !important;
  box-shadow:
    0 0 0 1px rgba(160,120,255,.18) inset,
    0 12px 28px rgba(120,90,255,.20) !important;
  transform: translateY(-1px);
}

/* Active card: keep selected, but DON'T overpower hover on others */
[data-page="atmosphere"] .smpack-choice.is-active{
  border-color: rgba(160,120,255,.55) !important;
  background: rgba(160,120,255,.10) !important;
  box-shadow:
    0 0 0 1px rgba(160,120,255,.16) inset,
    0 10px 24px rgba(120,90,255,.16) !important;
}

/* Pills readability + hover */
[data-page="atmosphere"] .smpack-pill{
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.12) !important;
}
[data-page="atmosphere"] .smpack-pill:hover{
  border-color: rgba(160,120,255,.40) !important;
  background: rgba(160,120,255,.08) !important;
}
[data-page="atmosphere"] .smpack-pill.is-active{
  border-color: rgba(160,120,255,.65) !important;
  background: rgba(160,120,255,.14) !important;
  box-shadow: 0 0 0 1px rgba(160,120,255,.18) inset;
}
/* =========================================================
   ATMOSPHERE — FIX: sheen/light gets stuck in one box
   ========================================================= */

/* Base: always reset sheen instantly when NOT hovering */
[data-page="atmosphere"] .smpack-choice{
  position: relative;
  overflow: hidden;
}

[data-page="atmosphere"] .smpack-choice::before{
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(170,140,255,.18) 35%,
    rgba(255,255,255,.12) 50%,
    rgba(170,140,255,.16) 65%,
    transparent 100%
  );

  /* 🔥 reset state (so it can't stay inside) */
  transform: translateX(-75%) rotate(12deg);
  opacity: 0;

  /* IMPORTANT: no transition in base state -> no "stuck" */
  transition: none;
  pointer-events: none;

  /* keep it under text */
  z-index: 0;
}

[data-page="atmosphere"] .smpack-choice *{
  position: relative;
  z-index: 1;
}

/* Hover: enable animation only while hovering */
[data-page="atmosphere"] .smpack-choice:hover::before{
  opacity: 1;
  transform: translateX(75%) rotate(12deg);
  transition: transform .55s ease, opacity .18s ease;
}

/* Active card should NOT keep sheen; only border/glow */
[data-page="atmosphere"] .smpack-choice.is-active::before{
  opacity: 0 !important;
  transform: translateX(-75%) rotate(12deg) !important;
  transition: none !important;
}

/* Small improvement: avoid hover being visually blocked by active glow */
[data-page="atmosphere"] .smpack-choice.is-active{
  box-shadow: 0 0 0 1px rgba(160,120,255,.16) inset,
              0 10px 22px rgba(120,90,255,.12) !important;
}
/* =========================================================
   ATMOSPHERE — Sheen only on :hover (no JS needed)
   Put at the VERY bottom to override everything above
   ========================================================= */

[data-page="atmosphere"] .smpack-choice{
  position: relative;
  overflow: hidden;
}

/* Always OFF by default */
[data-page="atmosphere"] .smpack-choice::before{
  content:"";
  position:absolute;
  inset:-45%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(170,140,255,.18) 35%,
    rgba(255,255,255,.12) 50%,
    rgba(170,140,255,.16) 65%,
    transparent 100%
  );
  transform: translateX(-80%) rotate(12deg);
  opacity: 0;
  transition: none;
  pointer-events: none;
  z-index: 0;
}

[data-page="atmosphere"] .smpack-choice *{
  position: relative;
  z-index: 1;
}

/* ON only while hovering THAT card */
[data-page="atmosphere"] .smpack-choice:hover::before{
  opacity: 1;
  transform: translateX(80%) rotate(12deg);
  transition: transform .55s ease, opacity .18s ease;
}

/* Don't let "active" override hover sheen */
[data-page="atmosphere"] .smpack-choice.is-active::before{
  opacity: 0 !important;
  transform: translateX(-80%) rotate(12deg) !important;
  transition: none !important;
}
/* ===============================
   ATMOSPHERE — Hover light moves card-to-card (no stuck)
   =============================== */

[data-page="atmosphere"] .smpack-choice{
  /* ışık efekti kartın kendi bg'sinde */
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03)) padding-box,
    linear-gradient(90deg,
      rgba(160,120,255,0) 0%,
      rgba(160,120,255,.18) 40%,
      rgba(255,255,255,.10) 50%,
      rgba(160,120,255,.16) 60%,
      rgba(160,120,255,0) 100%) border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, -120% 0;
  transition: background-position .55s ease, transform .18s ease, border-color .18s ease;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}

[data-page="atmosphere"] .smpack-choice:hover{
  background-position: 0 0, 120% 0; /* ışık GEÇER */
  transform: translateY(-1px);
  border-color: rgba(160,120,255,.55);
}

/* Eski pseudo sheen varsa kapat (takılma buradan gelmesin) */
[data-page="atmosphere"] .smpack-choice::before{
  content: none !important;
}
/* ===============================
   ATMOSPHERE — Upload buttons look premium (dropzone)
   =============================== */

/* Atmosfer kişiselleştirme kartı içindeki upload label'ları büyüt */
[data-page="atmosphere"] #atmLogoFile,
[data-page="atmosphere"] #atmAudioFile{
  display:none;
}

[data-page="atmosphere"] label.btn:has(#atmLogoFile),
[data-page="atmosphere"] label.btn:has(#atmAudioFile){
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  width: 100%;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.92);
  gap: 10px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

[data-page="atmosphere"] label.btn:has(#atmLogoFile)::before{
  content: "⬆️";
  opacity: .9;
}
[data-page="atmosphere"] label.btn:has(#atmAudioFile)::before{
  content: "🎵";
  opacity: .9;
}

[data-page="atmosphere"] label.btn:has(#atmLogoFile):hover,
[data-page="atmosphere"] label.btn:has(#atmAudioFile):hover{
  border-color: rgba(160,120,255,.55);
  background: rgba(160,120,255,.08);
  transform: translateY(-1px);
}
/* ===============================
   ATMOSPHERE — Bigger pills, better fit
   =============================== */

[data-page="atmosphere"] #atmEffects{
  gap: 10px;
}

[data-page="atmosphere"] #atmEffects .smpack-pill{
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  white-space: nowrap; /* pill içi tek satır */
}

/* ikonlar biraz daha büyük görünsün */
[data-page="atmosphere"] #atmEffects .smpack-pill{
  letter-spacing: .1px;
}

/* kart içinde daha iyi hizalansın */
[data-page="atmosphere"] .smpack-row{
  align-items: center;
}
/* RIGHT PANEL / PLAYER overlay taşmasını kes */
.right-panel,
.right-panel * {
  position: relative;
}

.right-panel {
  isolation: isolate;
  overflow: hidden;      /* taşanı kırp */
}

/* Video / player UI geniş bir layer ise bunu daralt */
.right-panel video,
.right-panel .player,
.right-panel .video,
.right-panel [class*="player"],
.right-panel [class*="video"] {
  max-width: 100%;
}

/* En kritik: sağ panelin orta alana “tık çalmasını” engelle */
.right-panel {
  pointer-events: auto;
}
.main-panel {
  position: relative;
  isolation: isolate;
  pointer-events: auto;
}
/* Atmosfer pills — smpack'ten tamamen izole */
#atmEffects .atm-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:38px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:rgba(245,245,255,.92);
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  pointer-events:auto;
}

#atmEffects .atm-pill:hover{
  background:rgba(255,255,255,.09);
}

#atmEffects .atm-pill.is-active{
  border-color: rgba(160,120,255,.65) !important;
  background: rgba(160,120,255,.14) !important;
  box-shadow: 0 0 0 1px rgba(160,120,255,.18) inset;
}
/* label pill + checkbox */
.atm-pill { cursor:pointer; user-select:none; }
.atm-pill.is-active { outline: 2px solid rgba(170,120,255,.9); }
/* Atmosfer CTA — full width (hard override) */
[data-page="atmosphere"] #atmGenerateBtn{
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}
/* ATMOSFER: header'ı ortala (space-between'i öldür) */
[data-page="atmosphere"] #atmCard .card-header{
  display:flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
}

/* Başlık/subtitle spacing düzelt */
[data-page="atmosphere"] #atmCard .card-title,
[data-page="atmosphere"] #atmCard .card-subtitle{
  margin: 0 !important;
  width: 100%;
  text-align: center !important;
}

/* Pill'leri kutunun içine tam ortala */
[data-page="atmosphere"] #atmEffects{
  display:flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}
/* ATMOSFER PILL — daha büyük, daha tok */
[data-page="atmosphere"] #atmEffects .pill,
[data-page="atmosphere"] #atmEffects button,
[data-page="atmosphere"] #atmEffects [role="button"]{
  padding: 14px 22px !important;   /* iç boşluk ↑ */
  font-size: 15px !important;      /* yazı biraz büyür */
  border-radius: 999px !important; /* daha yuvarlak */
}

/* İkonlar biraz nefes alsın */
[data-page="atmosphere"] #atmEffects .pill i,
[data-page="atmosphere"] #atmEffects .pill svg{
  margin-right: 8px;
  font-size: 16px;
}
[data-page="atmosphere"] #atmEffects .pill:hover{
  transform: translateY(-1px);
}
/* Super Scene */
[data-page="atmosphere"] #atmSuperSceneCard .atm-super-scene{
  display:flex;
  flex-direction:column;
  gap:12px;
}

[data-page="atmosphere"] #atmSuperSceneCard .atm-super-mode{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

[data-page="atmosphere"] #atmSuperSceneCard .atm-super-field{
  width:100%;
}

[data-page="atmosphere"] #atmSuperSceneCard .atm-label{
  display:block;
  opacity:.9;
  margin-bottom:6px;
  font-weight:700;
}

[data-page="atmosphere"] #atmSuperSceneCard .atm-textarea{
  width:100%;
  resize:vertical;
  min-height:84px;
}

[data-page="atmosphere"] #atmSuperSceneCard .atm-help{
  margin-top:6px;
  opacity:.75;
  font-size:13px;
}

[data-page="atmosphere"] #atmSuperSceneCard .atm-super-badges{
  display:flex;
  justify-content:center;
  margin-top:4px;
}

[data-page="atmosphere"] #atmSuperSceneCard .is-hidden{ display:none !important; }
/* 4. görsel gibi: kartlar uzamasın (boş alanı doldurmasın) */
body.has-global-player .sidebar .sidebar-section.hint-card{
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 140px !important;
  overflow: hidden !important;
}

/* Sağ panel Çıktılar kartı da uzamasın */
body.has-global-player .right-panel .right-card{
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 160px !important;
  overflow: hidden !important;
}

/* Sağ panelin kendisi “stretch” yapıyorsa engelle */
body.has-global-player .right-panel{
  align-self: flex-start !important;
}

/* RIGHT PANEL: content kadar olsun, sayfa boyuna uzamasın */
body.has-global-player .right-panel{
  align-self: flex-start !important;
  height: auto !important;
  max-height: none !important;
}

body.has-global-player .right-panel .right-card{
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}/* === STUDIO ATMOSPHERE: PANEL YÜKSEKLİK SABİTLEME === */
body.has-global-player .layout{
  height: calc(100vh - var(--topbar-h, 64px)) !important;
  min-height: calc(100vh - var(--topbar-h, 64px)) !important;
  overflow: hidden !important;
}

/* SOL PANEL (sidebar) */
body.has-global-player .layout > .sidebar{
  height: 100% !important;
  overflow-y: auto !important;
  flex: 0 0 260px; /* senin sidebar genişliğin */
}

/* SAĞ PANEL (çıktılar) */
body.has-global-player .layout > .right-panel{
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  align-self: stretch !important;
}

/* ORTA PANEL (asıl içerik) */
body.has-global-player .layout > .main-panel{
  height: 100% !important;
  overflow-y: auto !important;
  min-width: 0;
}
/* =========================================================
   AIVO — MUSIC CARD (Eita-like)
   Target: .media-item.music-item içinde yeni markup
========================================================= */

.media-item.music-item{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
}

.media-item.music-item:hover{
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.12);
}

.media-item.music-item .mleft{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.media-item.music-item [data-role="play"]{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-size: 18px;
  line-height: 1;
  background: rgba(140, 110, 255, .18);
  border: 1px solid rgba(140, 110, 255, .35);
  color: rgba(255,255,255,.95);
  flex: 0 0 auto;
}

.media-item.music-item.is-playing [data-role="play"]{
  background: rgba(120, 220, 255, .18);
  border-color: rgba(120, 220, 255, .35);
}

.media-item.music-item .minfo{
  min-width: 0;
}

.media-item.music-item .mtitle{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-item.music-item .msub{
  margin-top: 2px;
  font-size: 12px;
  opacity: .80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-item.music-item .mmeta{
  margin-top: 6px;
  display:flex;
  gap: 8px;
  align-items:center;
  font-size: 11px;
  opacity: .70;
}

.media-item.music-item .mdot{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}

.media-item.music-item .mactions{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 0 0 auto;
}

.media-item.music-item .mico{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}

.media-item.music-item .mico:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
}

.media-item.music-item .mico.danger{
  background: rgba(255, 90, 120, .10);
  border-color: rgba(255, 90, 120, .25);
}

.media-item.music-item .mico.danger:hover{
  background: rgba(255, 90, 120, .16);
  border-color: rgba(255, 90, 120, .35);
}

/* status looks */
.media-item.music-item[data-status="pending"]{
  opacity: .92;
}

.media-item.music-item[data-status="pending"] .msub{
  opacity: .85;
}

.media-item.music-item[data-status="error"]{
  border-color: rgba(255, 90, 120, .25);
  background: rgba(255, 90, 120, .06);
}

.media-item.music-item[data-status="error"] .msub{
  opacity: .9;
}
/* 3 kolon layout'u SADECE sidebar+right-panel gerçekten varsa uygula */
body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel){
  display: grid !important;
  grid-template-columns: 320px minmax(760px, 1fr) 380px !important;
  gap: 16px !important;
  align-items: start !important;
}

/* Grid çocukları taşmasın */
body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel) > *{
  min-width: 0 !important;
}

/* Sol panel */
body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel) > aside.sidebar{
  width: 320px !important;
  align-self: start !important;
}

/* Orta */
body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel) > section.main-panel,
body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel) > .main-panel,
body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel) > main{
  max-width: none !important;
  width: auto !important;
  align-self: start !important;
}

/* Sağ */
body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel) > aside.right-panel{
  width: 380px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  align-self: start !important;
  max-height: calc(100vh - 120px) !important;
  overflow: auto !important;
}

body.is-studio .page .layout:has(> aside.sidebar):has(> aside.right-panel) > aside.right-panel > *{
  margin-top: 0 !important;
}
/* ===== MINI VIDEO GRID (Right Panel) ===== */
.out-videos{ margin-top:10px; }
.out-videos-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

.vcard{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease;

  /* FIX: thumbnail oranı karttan gelsin */
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.vcard:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.16); }

.vcard video{
  width:100%;
  display:block;
  object-fit:cover;

  /* FIX: Safari/WebKit’te height:100% çökmesini engelle */
  height:auto !important;
  background:#000;
}

.vcard .vbadge{
  position:absolute;
  top:8px; left:8px;
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}

.vcard .vplay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition: opacity .15s ease;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.25), rgba(0,0,0,.05));
}
.vcard:hover .vplay{ opacity:1; }
.vcard .vplay i{
  width:44px; height:44px;
  border-radius:999px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-style: normal;
}

.vcard .vactions{
  position:absolute;
  right:8px; bottom:8px;
  display:flex; gap:8px;
  opacity:0;
  transition: opacity .15s ease;
}
.vcard:hover .vactions{ opacity:1; }
.viconbtn{
  width:34px; height:34px;
  border-radius:999px;
  display:grid; place-items:center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  text-decoration:none;
}

/* ===== MODAL ===== */
.vprev[hidden]{ display:none; }
.vprev{ position:fixed; inset:0; z-index:9999; }
.vprev-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.vprev-card{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%, -50%);
  width:min(980px, calc(100vw - 24px));
  border-radius:18px;
  background: rgba(20,22,35,.88);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 120px rgba(0,0,0,.45);
  overflow:hidden;
}
.vprev-x{
  position:absolute;
  right:10px; top:10px;
  width:38px; height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color:#fff;
  cursor:pointer;
  z-index:2;
}
.vprev-player{ background:#000; }
.vprev-player video{
  width:100%;
  height:auto;
  display:block;
  max-height: 62vh;
}
.vprev-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  gap:12px;
}
.vprev-title{ font-size:14px; opacity:.9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vbtn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
  font-size:13px;
}

/* HACK: Right panel eski büyük player kutusunu kapat */
.right-panel .right-list#videoList .big-player,
.right-panel .right-list#videoList .video-player,
.right-panel .right-list#videoList .player,
.right-panel .right-list#videoList .preview-player,
.right-panel .right-list#videoList video.controls,
.right-panel .right-list#videoList .video-preview,
.right-panel .right-list#videoList .video-box,
.right-panel .right-list#videoList .right-video,
.right-panel .right-list#videoList .right-player {
  display: none !important;
}

/* Mini grid görünür olsun */
#videoList .out-videos { display:block !important; min-height:140px; overflow:visible !important; }
#videoList .out-videos-grid { display:grid !important; min-height:140px; }

/* === FIX: videoList'teki eski büyük player'ı öldür === */
#videoList .media-item.video-item,
#videoList .media-overlay {
  display: none !important;
}

/* Video list boşsa boş ikon kalsın */
#videoList #videoEmpty { 
  display: flex !important; 
  min-height: 120px;
}

/* Mini grid container boşken alan kaplamasın */
#videoList .out-videos:empty { 
  display: none !important; 
}
/* FIX: Studio layout 3 kolon (Sidebar + Main + RightPanel) */
body.is-studio .layout{
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) 380px !important;
  gap: 16px !important;
  align-items: start !important;
  overflow: visible !important;
}

body.is-studio .layout > .sidebar{
  grid-column: 1 !important;
}

body.is-studio .layout > .main-panel{
  grid-column: 2 !important;
  min-width: 0 !important;
}

body.is-studio .layout > .right-panel{
  grid-column: 3 !important;
  width: 380px !important;
  min-width: 380px !important;
}
/* ✅ AUTO: Layout içinde right-panel varsa 3 kolon yap */
.layout:has(> .right-panel){
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) 380px !important;
  gap: 16px !important;
  align-items: start !important;
}

/* Kolonları sabitle */
.layout:has(> .right-panel) > .sidebar{ grid-column: 1 !important; }
.layout:has(> .right-panel) > .main-panel{ grid-column: 2 !important; min-width:0 !important; }
.layout:has(> .right-panel) > .right-panel{
  grid-column: 3 !important;
  width: 380px !important;
  min-width: 380px !important;
}

/* === FIX: Global player + video background katmanı grid’i “alta itmesin” === */

/* 1) Global player padding’i tüm layout’a basma (grid uzamasın) */
body.has-global-player .page,
body.has-global-player .layout {
  padding-bottom: 0 !important;
}
body.has-global-player .main-panel {
  padding-bottom: calc(var(--player-h, 92px) + env(safe-area-inset-bottom, 0px)) !important;
}

/* 2) Grid panelleri her zaman video/preview arka planının ÜSTÜNDE tut */
body.is-studio .page.is-active .layout {
  position: relative;
  z-index: 50;
}
body.is-studio .page.is-active .layout > aside.sidebar,
body.is-studio .page.is-active .layout > section.main-panel,
body.is-studio .page.is-active .layout > aside.right-panel {
  position: relative;
  z-index: 60;
  min-width: 0;
}

/* 3) Video/preview “background” katmanını arkaya kilitle (tıklama da çalmasın) */
body.is-studio :where(
  .video-bg, .video-background, .video-stage, .video-preview, .vbg, .vstage,
  #videoBg, #videoStage, #videoPreview, #vbg, #vstage
){
  position: absolute;
  inset: 0;
  z-index: 1 !important;
  pointer-events: none;
}

/* =========================================================
   STUDIO — HEIGHT CHAIN HARD FIX (right panel uzasın)
   ========================================================= */

html, body { height: 100% !important; }

#studioRoot,
.studioShell,
#mainWorkspace,
#twoPanelWrap {
  height: 100% !important;
  min-height: 0 !important;
}

/* iki panel sarmalı flex olmalı ki çocuklar stretch alabilsin */
#mainWorkspace,
#twoPanelWrap {
  display: flex !important;
  align-items: stretch !important;
  min-height: 0 !important;
}

/* sağ kart kolonu */
section.outputsCard.studioOutputs,
#twoPanelWrap .studioOutputs {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto;          /* width sabit kalsın, yükseklik stretch’i parent’tan alır */
  align-self: stretch !important;
  min-height: 0 !important;
}

/* iç host tabana kadar uzasın */
#rightPanelHost {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

/* footer varsa tabana it */
.studioOutputs .panelFooter,
.outputsCard .panelFooter {
  margin-top: auto !important;
}

