/**
 * Hepsiİndir & Medya Platformu - Modern Tema Stilleri
 */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-input: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --radius-lg: 16px;
  --radius-md: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navbar */
.navbar {
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-item-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.nav-item-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item-btn.active {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.nav-text-short,
.sub-text-short {
  display: none;
}
.nav-text-full,
.sub-text-full {
  display: inline-block;
}

/* Hero Section (Kompakt ve Ekrana Sığan Düzen) */
.hero {
  padding: 1.25rem 0 0.75rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

/* Card Common */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.25rem;
}

/* Input Group */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.25rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  outline: none;
}

.search-input::placeholder {
  color: #64748b;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Platform Pills */
.platform-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Result Box */
.result-card {
  display: none;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.15rem;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.video-thumb {
  width: 150px;
  height: 85px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.video-details {
  flex: 1;
}

.video-details h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.meta-tags {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Download Options Grid - Modern 2 Sütunlu Pro Tasarım */
.download-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.option-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.option-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #60a5fa;
}

.option-box:last-child h4 {
  color: #34d399;
}

.quality-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

/* Quality Item - Pro Card */
.quality-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  min-width: 0;
  gap: 0.35rem;
}

.quality-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.quality-item-audio:hover {
  border-color: rgba(52, 211, 153, 0.4);
}

.quality-item:active {
  transform: translateY(0);
}

.qi-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.qi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  padding: 0.18rem 0.35rem;
  border-radius: 5px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.qi-badge-video {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.qi-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.qi-title {
  font-size: 0.77rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qi-size {
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.qi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 0.25rem;
  transition: all 0.15s ease;
}

.quality-item:hover .qi-btn {
  background: var(--accent-primary, #2563eb);
  color: #ffffff;
  border-color: #3b82f6;
}

.quality-item-audio:hover .qi-btn {
  background: #059669;
  color: #ffffff;
  border-color: #10b981;
}

.btn-download-sm {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-download-sm:hover {
  background: var(--accent-primary);
  color: white;
}

/* Tabs Container */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tool Sub-Navigation */
.sub-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.sub-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.sub-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* Drag & Drop Box */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

/* Utility Forms */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  outline: none;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--accent-primary);
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* ========================================================
   RESPONSIVE & MOBİL UYUMLULUK (AKILLI TELEFON & TABLET)
   ======================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0.4rem !important;
  }

  .studio-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .navbar {
    padding: 0.2rem 0;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Mobilde 4'lü Kompakt Segment Navigasyon (Diğer Sayfalarla Birebir Aynı Tasarım) */
  .nav-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem !important;
  }

  .brand {
    justify-content: center !important;
    font-size: 0.95rem !important;
    gap: 0.4rem !important;
  }
  .brand-icon {
    width: 24px !important;
    height: 24px !important;
  }
  .brand span {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }

  .main-nav {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 4'lü Kompakt Segment Navigasyon (Mobil App Tarzı) */
  .nav-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 2px !important;
    list-style: none !important;
    gap: 3px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .nav-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    min-width: 0 !important;
  }

  .nav-item-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    padding: 4px 2px !important;
    width: 100% !important;
    border-radius: 7px !important;
    text-align: center !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
  }

  .nav-item-btn .nav-icon {
    font-size: 0.95rem !important;
    line-height: 1 !important;
  }

  .nav-text-full { display: none !important; }
  .nav-text-short { display: inline-block !important; }

  .nav-item-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
  }

  /* Alt Araç Sekmeleri (Örn: PDF Düzenle / Görselden PDF) */
  .sub-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 1rem !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .sub-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0.6rem 0.4rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .sub-text-full { display: none !important; }
  .sub-text-short { display: inline-block !important; }

  /* Hero & Başlık Alanı */
  .hero {
    padding: 0.6rem 0 0.4rem !important;
  }
  .hero-badge {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.55rem !important;
    margin-bottom: 0.35rem !important;
  }
  .hero-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.3rem !important;
  }
  .hero-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    padding: 0 0.5rem;
  }

  /* Araç Kartları & Dropzone */
  .tool-card {
    padding: 0.85rem !important;
    margin-bottom: 1rem !important;
    border-radius: 14px !important;
  }

  .dropzone {
    padding: 1.6rem 0.85rem !important;
    border-radius: 14px !important;
  }
  .dropzone-icon {
    font-size: 2.2rem !important;
    margin-bottom: 0.4rem !important;
  }
  .dropzone p {
    font-size: 0.92rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.35 !important;
  }
  .dropzone span {
    font-size: 0.74rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  .btn-primary {
    font-size: 0.86rem !important;
    padding: 0.6rem 1.15rem !important;
    border-radius: 8px !important;
  }

  /* Desteklenen Platform Hapları */
  .platform-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    margin-top: 0.65rem !important;
  }
  .platform-pill {
    font-size: 0.70rem !important;
    padding: 0.22rem 0.55rem !important;
    border-radius: 20px !important;
  }

  .search-wrapper {
    flex-direction: column;
    padding: 0.4rem;
    gap: 0.4rem;
  }
  .search-input {
    width: 100%;
    font-size: 0.92rem;
    text-align: center;
    padding: 0.6rem;
  }
  #analyzeBtn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .result-card {
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.75rem;
  }
  .video-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .video-thumb {
    width: 90px;
    height: 56px;
    min-width: 90px;
    border-radius: 6px;
    object-fit: cover;
  }
  .video-details h3 {
    font-size: 0.88rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .meta-tags {
    font-size: 0.72rem;
    gap: 0.25rem;
  }

  /* 2 SÜTUNLU MOBİL İNDİRME GRİDİ (Video & MP3 yan yana) */
  .download-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-top: 0.45rem;
  }
  .option-box {
    padding: 0.5rem 0.38rem;
    border-radius: 10px;
    min-width: 0;
  }
  .option-box h4 {
    font-size: 0.76rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .option-box h4 svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .quality-list {
    gap: 0.28rem;
  }
  .quality-item {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    padding: 0.32rem 0.38rem;
    gap: 0.25rem;
    border-radius: 6px;
  }
  .qi-main {
    gap: 0.3rem;
    min-width: 0;
  }
  .qi-badge {
    font-size: 0.62rem;
    padding: 0.14rem 0.26rem;
    min-width: 28px;
    text-align: center;
  }
  .qi-text {
    min-width: 0;
  }
  .qi-title {
    font-size: 0.71rem;
  }
  .qi-size {
    font-size: 0.61rem;
  }
  .qi-btn {
    padding: 0.25rem 0.35rem;
    margin-left: 0.15rem;
    border-radius: 5px;
  }
  .qi-btn-text {
    display: none !important;
  }
  .btn-download-sm {
    width: auto;
    justify-content: center;
    padding: 0.4rem 0.6rem;
  }
  .form-row {
    flex-direction: column;
  }

  /* PDF Modal Mobile */
  .pdf-modal-backdrop {
    padding: 0;
  }
  .pdf-modal-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .pdf-modal-header {
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .pdf-modal-title {
    max-width: 150px;
    font-size: 0.82rem;
  }
  .pdf-modal-page-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.2rem;
  }
  .pdf-modal-toolbar {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.35rem 0.45rem !important;
    gap: 0.3rem !important;
    overflow-x: visible !important;
    flex-wrap: nowrap !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .pdf-tool-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 0.3rem !important;
    flex-shrink: 0 !important;
  }
  .pdf-tool-btn {
    width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.38rem 0.15rem !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    gap: 0.2rem !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .tool-label-full {
    display: none !important;
  }
  .tool-label-short {
    display: inline !important;
  }
  .pdf-zoom-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.35rem !important;
    padding-top: 0.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    flex-shrink: 0 !important;
  }
  .pdf-zoom-controls .btn-studio-action {
    padding: 0.28rem 0.6rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
  }
  #pdfZoomVal {
    font-size: 0.78rem !important;
    min-width: 42px !important;
    text-align: center !important;
  }
  .pdf-viewer-stage {
    padding: 0.5rem;
  }
  .pdf-text-popover {
    position: fixed !important;
    bottom: 12px !important;
    left: 50% !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: min(94vw, 360px) !important;
    max-width: 94vw !important;
    z-index: 10000 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
  }
}

/* ========================================================
   STUDIO PRO WORKSPACE STYLES
   ======================================================== */
.studio-container {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.studio-topbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.studio-thumb-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
  flex-shrink: 0;
}

.studio-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-filename {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.studio-meta .format-badge {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-studio-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-studio-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.studio-download-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: pointer;
}

.studio-download-btn:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.studio-toolbar-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
  scrollbar-width: thin;
}

.studio-toolbar-tabs .studio-tab-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
  white-space: nowrap;
  border-radius: 8px;
}
.tab-text-mobile {
  display: none;
}
.tab-text-full {
  display: inline;
}

/* Two-column layout */
.studio-workspace {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas: "stage sidebar";
  gap: 1.25rem;
  align-items: start;
}

.studio-stage-wrapper {
  grid-area: stage;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.studio-sidebar {
  grid-area: sidebar;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
}

.studio-sidebar-toggle-bar {
  display: none;
}

.studio-viewport {
  background: #070c16;
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 480px;
  max-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 1rem;
}

.studio-viewport canvas {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
  touch-action: none;
}

.studio-stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.studio-stage-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sidebar */
.studio-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
}

.studio-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.studio-panel-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.studio-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.studio-panel-desc {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.studio-control-group {
  margin-bottom: 1rem;
}

.studio-slider {
  width: 100%;
  cursor: pointer;
  accent-color: #3b82f6;
}

.studio-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.studio-stat-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.studio-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.studio-stat-val {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-top: 2px;
}

.studio-stat-box.highlight-green .studio-stat-val {
  color: #34d399;
}

.studio-stat-box.highlight-blue .studio-stat-val {
  color: #60a5fa;
}

.studio-ratio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.studio-rotate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.studio-action-chip {
  padding: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.studio-action-chip.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
}

.w-100 {
  width: 100%;
}

.studio-mobile-download-wrap {
  display: none;
}

/* Tablet breakpoint (769px - 960px) */
@media (min-width: 769px) and (max-width: 960px) {
  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .studio-viewport {
    min-height: 300px;
    max-height: 45vh;
  }
}

/* ========================================================
   PDF VISUAL PAGE & TEXT EDITOR MODAL STYLES
   ======================================================== */
.pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.pdf-modal-container {
  width: 96vw;
  max-width: 1400px;
  height: 94vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal-header {
  background: #0f172a;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pdf-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-modal-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pdf-modal-page-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pdf-modal-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pdf-modal-toolbar {
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pdf-tool-buttons {
  display: flex;
  gap: 0.4rem;
}

.pdf-tool-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

.tool-label-short {
  display: none;
}

.pdf-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pdf-modal-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 330px;
  overflow: hidden;
}

.pdf-viewer-stage {
  position: relative;
  background: #070c16;
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
  background-size: 24px 24px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

.pdf-canvas-wrapper {
  position: relative;
  display: inline-block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  background: #fff;
  border-radius: 4px;
  user-select: none;
}

.pdf-canvas-wrapper canvas {
  display: block;
}

.pdf-text-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  overflow: hidden;
}

.pdf-text-item {
  position: absolute;
  color: transparent;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, outline 0.15s;
  box-sizing: border-box;
}

.pdf-text-item:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  outline: 1.5px solid #3b82f6 !important;
}

.pdf-text-item.selected {
  background: rgba(16, 185, 129, 0.3) !important;
  outline: 2px solid #10b981 !important;
}

.pdf-text-popover {
  position: absolute;
  z-index: 1000;
  width: 320px;
  background: #1e293b;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  padding: 0.85rem;
  animation: fadeIn 0.15s ease;
}

/* Biçim Kopyalama / Damlalık Sırasında Popover'ı Üstte İnce Hap Bara Küçült */
.pdf-text-popover.sampling-active {
  position: fixed !important;
  top: 14px !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: 92vw !important;
  padding: 8px 16px !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.98)) !important;
  border: 1.5px solid #00f0ff !important;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45) !important;
  z-index: 100000 !important;
  pointer-events: auto !important;
  animation: pulseSamplingBorder 1.5s infinite alternate ease-in-out !important;
}

.pdf-text-popover.sampling-active .pdf-popover-body {
  display: none !important;
}

.pdf-text-popover.sampling-active .pdf-popover-header {
  border-bottom: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}

.pdf-text-popover.sampling-active #pdfPopoverTitle {
  font-size: 0.84rem !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.pdf-text-popover.sampling-active .pdf-popover-close {
  background: rgba(239, 68, 68, 0.25) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  font-size: 0.76rem !important;
  padding: 3px 10px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdf-text-popover.sampling-active .pdf-popover-close:hover {
  background: rgba(239, 68, 68, 0.45) !important;
}

@keyframes pulseSamplingBorder {
  from { box-shadow: 0 8px 20px rgba(0, 240, 255, 0.3); border-color: #00f0ff; }
  to { box-shadow: 0 8px 35px rgba(0, 240, 255, 0.7); border-color: #38bdf8; }
}

.pdf-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.pdf-popover-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.pdf-popover-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.pdf-popover-old {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.82rem;
  max-height: 50px;
  overflow-y: auto;
  word-break: break-word;
}

.pdf-modal-sidebar {
  background: #0f172a;
  border-left: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.pdf-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem;
}

.pdf-change-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.pdf-change-item .change-texts {
  flex: 1;
  overflow: hidden;
}

.pdf-change-item .old-txt {
  color: #ef4444;
  text-decoration: line-through;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-change-item .new-txt {
  color: #34d399;
  font-weight: 600;
  font-size: 0.82rem;
  word-break: break-word;
}

/* ========================================================
   PDF SERBEST METİN & EYEDROPPER STİLLERİ
   ======================================================== */
.pdf-free-text-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 60;
}

.pdf-free-item {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 4px;
  padding: 2px 4px;
  box-sizing: border-box;
  display: inline-block;
  white-space: pre-wrap;
  line-height: 1.15;
  border: 1.5px dashed transparent;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  touch-action: none;
}

.pdf-free-item:hover,
.pdf-free-item.selected {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.pdf-free-item.dragging {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.2) !important;
  opacity: 0.92;
  cursor: grabbing !important;
  z-index: 999 !important;
}

.pdf-free-controls {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 5px;
  display: none;
  align-items: center;
  gap: 3px;
  background: #0f172a;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  white-space: nowrap;
}

.pdf-free-item:hover .pdf-free-controls,
.pdf-free-item.selected .pdf-free-controls {
  display: flex;
}

.pdf-free-control-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px 5px;
  font-size: 11px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.pdf-free-control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pdf-free-control-btn.del:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.sampling-mode,
.sampling-mode * {
  cursor: crosshair !important;
}

.sampling-mode .pdf-text-item {
  outline: 1.5px dashed #818cf8 !important;
  background: rgba(99, 102, 241, 0.18) !important;
}

.sampling-mode .pdf-text-item:hover {
  outline: 2px solid #a855f7 !important;
  background: rgba(168, 85, 247, 0.35) !important;
}

/* Silgi / Beyazlatma Modu */
.whiteout-mode,
.whiteout-mode * {
  cursor: crosshair !important;
}

.whiteout-mode .pdf-text-item {
  outline: 1.5px dashed #f43f5e !important;
  background: rgba(244, 63, 94, 0.14) !important;
}

.whiteout-mode .pdf-text-item:hover,
.whiteout-mode .pdf-text-item:active {
  outline: 2px solid #e11d48 !important;
  background: rgba(244, 63, 94, 0.32) !important;
}

.pdf-whiteout-drag-box {
  position: absolute;
  border: 2px dashed #f43f5e;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
  pointer-events: none;
  z-index: 60;
  display: none;
  border-radius: 3px;
}

.pdf-visual-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  color: #38bdf8;
  border: 1px solid #0284c7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  animation: slideDownToast 0.2s ease-out;
}

@keyframes slideDownToast {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.pdf-color-pill {
  transition: transform 0.15s, border-color 0.15s;
}

.pdf-color-pill:hover {
  transform: scale(1.18);
  border-color: #fff !important;
}

@media (max-width: 900px) {
  .pdf-modal-body {
    grid-template-columns: 1fr;
  }
  .pdf-modal-sidebar {
    display: none;
  }
}

/* ========================================================
   STUDIO ZOOM & PAN KONTROL HAPI (Masaüstü & Dokunmatik)
   ======================================================== */
.studio-zoom-floating-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2px 4px;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.studio-zoom-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}

.studio-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.studio-zoom-btn:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}

.studio-zoom-reset {
  width: auto;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

/* ========================================================
   MOBİL İÇİN ÖZEL ULTRA-PROFESYONEL DÜZEN (<768px)
   ======================================================== */
@media (max-width: 768px) {

  /* --- 1. PDF METİN DÜZENLEME PENCERESİ: ŞIK BOTTOM-SHEET (Açılıp Kapanmaz!) --- */
  .pdf-text-popover {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    z-index: 100000 !important;
    box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.95) !important;
    padding: 1rem 1rem 1.6rem !important;
    background: #0f172a !important;
    border: 1.5px solid #38bdf8 !important;
    border-bottom: none !important;
    animation: slideUpSheet 0.22s ease-out !important;
  }

  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .pdf-text-popover.sampling-active {
    position: fixed !important;
    top: 14px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 92vw !important;
    border-radius: 30px !important;
    padding: 8px 16px !important;
  }

  .pdf-popover-close {
    font-size: 1.4rem !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 50% !important;
  }

  /* Stüdyo Açıkken Sayfa Altındaki Tanıtım Metinlerini Gizle (Görsele Maksimum Alan!) */
  body.studio-open #ozellikler,
  body.studio-open #sss,
  body.studio-open footer {
    display: none !important;
  }
  body.studio-open .main-content {
    padding-bottom: 0.5rem !important;
  }

  /* --- 2. RESİM STÜDYOSU: TEK SATIR ULTRA-KOMPAKT PROFESYONEL ÜST BAR --- */
  .studio-topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.3rem 0.5rem !important;
    gap: 0.35rem !important;
    margin-bottom: 0.3rem !important;
    border-radius: 9px !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Sol: Thumbnail + Dosya Adı ve Çözünürlük (Kompakt Tek Blok) */
  .studio-topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    overflow: hidden !important;
  }

  .studio-thumb-wrapper {
    width: 24px !important;
    height: 24px !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .studio-file-info {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    line-height: 1.15 !important;
  }

  .studio-filename {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #f8fafc !important;
    margin: 0 !important;
  }

  .studio-meta {
    font-size: 0.58rem !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .studio-meta .format-badge {
    padding: 0 3px !important;
    font-size: 0.55rem !important;
    border-radius: 3px !important;
    background: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
  }

  /* Sağ: [↩️] [🔄] [💾 İndir] Tek Satırda Kompakt Butonlar */
  .studio-topbar-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .studio-topbar-right .btn-text-full {
    display: none !important; /* Mobilde yazıyı gizle, sadece ikon kalsın */
  }

  .studio-topbar-right .btn-studio-action {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
  }
  .studio-topbar-right .btn-studio-action:active {
    background: rgba(255, 255, 255, 0.22) !important;
  }

  .studio-topbar .studio-download-btn,
  .studio-topbar-right .studio-top-save-btn {
    display: inline-flex !important;
    height: 28px !important;
    padding: 0 9px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    border: none !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
    cursor: pointer !important;
  }

  /* --- 3. ARAÇ SEKME ÇUBUĞU: TEK SATIR YATAY KAYAN MODERN ŞERİT --- */
  .tab-text-full {
    display: none !important;
  }
  .tab-text-mobile {
    display: inline !important;
  }
  .studio-toolbar-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 4px !important;
    padding: 1px 0 4px !important;
    margin-bottom: 0.3rem !important;
    scrollbar-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .studio-toolbar-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .studio-toolbar-tabs .studio-tab-btn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 5px 9px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
    background: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
  }
  .studio-toolbar-tabs .studio-tab-btn .tab-icon {
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
  }
  .studio-toolbar-tabs .studio-tab-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.25)) !important;
    border-color: #10b981 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35) !important;
  }

  /* --- 4. ÇALIŞMA ALANI: 1. SIRA ARAÇ AYARLARI (YUKARIDA), 2. SIRA DEVASA GÖRSEL TUVALİ (AŞAĞIDA) --- */
  .studio-workspace {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.3rem !important;
    box-sizing: border-box !important;
  }

  /* 1. SIRA: ARAÇ AYAR PANELİ (YUKARIDA VE YER KAPLAMAYACAK ŞEKİLDE ULTRA KOMPAKT) */
  .studio-sidebar {
    order: 1 !important;
    padding: 0.3rem 0.45rem !important;
    border-radius: 9px !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    background: linear-gradient(145deg, rgba(16, 24, 40, 0.98) 0%, rgba(10, 15, 28, 0.98) 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobilde Panel Başlığı & Gizle/Aç Butonu */
  .studio-sidebar-toggle-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.15rem 0.25rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 5px !important;
    margin-bottom: 0.25rem !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .studio-toggle-title {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
  }
  .studio-toggle-btn {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }

  .studio-sidebar.is-collapsed .studio-panel {
    display: none !important;
  }
  .studio-sidebar.is-collapsed {
    padding: 0.25rem 0.45rem !important;
  }

  /* Panel İçi Kontroller (Ultra Kompakt) */
  .studio-panel-header {
    display: none !important; /* Başlık üst toggle bar'da göründüğü için dikey yer yemez */
  }

  .studio-control-group {
    margin-bottom: 0.25rem !important;
  }
  .studio-control-group label {
    font-size: 0.74rem !important;
    margin-bottom: 1px !important;
  }
  .studio-slider {
    height: 5px !important;
    margin: 2px 0 !important;
  }

  .studio-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.2rem !important;
    margin-top: 0.2rem !important;
  }
  .studio-stat-box {
    padding: 0.2rem 0.15rem !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    text-align: center !important;
  }
  .studio-stat-label {
    font-size: 0.56rem !important;
    color: #94a3b8 !important;
    margin-bottom: 0px !important;
  }
  .studio-stat-val {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
  }

  .studio-ratio-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 3px !important;
  }
  .studio-aspect-btn {
    padding: 3px 2px !important;
    font-size: 0.66rem !important;
  }

  .studio-rotate-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
    margin-bottom: 0.35rem !important;
  }
  .studio-action-chip {
    padding: 3px 2px !important;
    font-size: 0.66rem !important;
  }

  /* 2. SIRA: CANLI TUVAL ÖNİZLEME SAHNESİ (AŞAĞIDA - TÜM EKRANA YAYILAN DEVASA ALAN) */
  .studio-stage-wrapper {
    order: 2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    padding: 0.2rem !important;
    border-radius: 10px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    transition: all 0.25s ease !important;
  }

  .studio-viewport {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 64vh !important;
    min-height: 420px !important;
    max-height: 74vh !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    position: relative !important;
    background: #070c16 !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transition: height 0.25s ease !important;
  }

  /* Ayar Paneli Katlandığında Tuval Ekranın Neredeyse %100'ünü Kaplasın */
  .studio-workspace:has(.studio-sidebar.is-collapsed) .studio-viewport {
    height: 78vh !important;
    min-height: 520px !important;
    max-height: 86vh !important;
  }

  /* Tam Ekran / Odak Tuval Modu */
  .studio-workspace.canvas-maximized .studio-sidebar {
    display: none !important;
  }
  .studio-workspace.canvas-maximized .studio-viewport {
    height: 78vh !important;
    min-height: 500px !important;
    max-height: 86vh !important;
  }

  .studio-viewport canvas {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8) !important;
    transform-origin: center center !important;
    cursor: grab !important;
    touch-action: none !important;
  }

  .studio-viewport.is-panning canvas {
    cursor: grabbing !important;
  }

  /* Floating Zoom Pill: Tuvalin Sağ Altında Şık ve Minik */
  .studio-zoom-floating-bar {
    top: auto !important;
    bottom: 6px !important;
    right: 6px !important;
    padding: 2px 4px !important;
    border-radius: 12px !important;
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    transform: scale(0.85) !important;
    transform-origin: bottom right !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  }

  .studio-stage-footer {
    display: none !important;
  }

  .studio-mobile-download-wrap {
    display: none !important; /* Üst barda [💾 İndir] butonu zaten yer alıyor, dikeyde boş yer yemez */
  }
}

