* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Remove fixed overflow for mobile to allow scrolling */
@media (max-width: 1024px) {
  html, body { 
    height: auto; 
    overflow-y: auto; 
  }
}

:root {
  /* Dark Theme (Default) */
  --bg: #06060a;
  --surface: rgba(13, 13, 18, 0.7);
  --card-bg: rgba(18, 18, 24, 0.4);
  --accent: #7c3aed;
  --accent2: #a855f7;
  --text: #ffffff;
  --text-dim: #a1a1aa;
  --text-muted: #52525b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --red: #f43f5e;
  --green: #10b981;
  --cyan: #00f0ff;
  
  --sidebar-w: 260px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: backdrop-filter: blur(24px) saturate(180%) contrast(120%);
}

body.light-theme {
  --bg: #ffffff;
  --surface: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a; /* Derin Lacivert / Siyah */
  --text-dim: #334155;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --cyan: #0891b2;
}

body.light-theme .stat-card, 
body.light-theme .card, 
body.light-theme .setup-card, 
body.light-theme .report-section,
body.light-theme .demo-card,
body.light-theme .setup-actions {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .stat-value, 
body.light-theme .video-title, 
body.light-theme .brand-title, 
body.light-theme .section-label,
body.light-theme .separator span,
body.light-theme .brand-desc,
body.light-theme .nav-item,
body.light-theme .wizard-step h3,
body.light-theme .wizard-step p,
body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3,
body.light-theme h4,
body.light-theme span,
body.light-theme button:not(.btn-buy-now):not(.btn-aktive),
body.light-theme div:not(.seo-pill):not(.sidebar-logo) {
  color: var(--text) !important;
}

body.light-theme .sidebar {
  background: #fdfdfd !important;
  border-right: 1px solid #e2e8f0 !important;
}

body.light-theme .nav-item {
  color: #64748b !important;
}

body.light-theme .nav-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--accent) !important;
}

body.light-theme .nav-item.active {
  background: rgba(124, 58, 237, 0.1) !important;
  color: var(--accent) !important;
}

body.light-theme .sidebar-footer div[style*="background:rgba(255,255,255,0.03)"] {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: #e2e8f0 !important;
}

body.light-theme #sidebar-user-name {
  color: var(--text) !important;
}


body.light-theme .separator span {
  background: #ffffff !important;
}

body.light-theme .video-table thead th {
  color: var(--text) !important;
  background: #f1f5f9 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

body.light-theme .search-container {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .search-container input {
  color: var(--text) !important;
}

body.light-theme .search-container input::placeholder {
  color: #94a3b8 !important;
}

body.light-theme #server-status-pill {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
}

body.light-theme .stat-pill {
  background: #f1f5f9 !important;
  color: var(--text-dim) !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .report-modal-content {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .suggestion-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.top-performer-views {
  font-size: 11px;
  color: #fff;
  opacity: 0.8;
  font-weight: 700;
  margin-top: 4px;
}

body.light-theme .top-performer-views {
  color: var(--accent2) !important;
  opacity: 1 !important;
}



body.light-theme::before {
  background: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, #f8fafc 0px, transparent 80%);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Modern Mesh Gradient & Noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(6, 6, 10, 1) 0px, transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.hidden { display: none !important; }

/* ─── APP WRAPPER ─── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar.collapsed {
  width: 80px;
}

#sidebar-edge-toggle {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent2);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  z-index: 2000; /* Header'dan yüksek olmalı */
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.sidebar.collapsed #sidebar-edge-toggle {
  transform: translateY(-50%) rotate(180deg);
}

/* Global Pointer Forces */
button, .nav-item, .demo-card, .btn-analiz, [onclick], .copy-btn {
  cursor: pointer !important;
}

a, input, select, textarea {
  cursor: auto !important;
}

* {
  cursor: inherit;
}

body {
  cursor: auto;
}

/* Global Pointer Forces */
button, .nav-item, .demo-card, .btn-analiz, [onclick] {
  cursor: pointer !important;
}

a, input, select, textarea {
  cursor: auto !important;
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-footer div > div,
.sidebar.collapsed .sidebar-nav div[style*="text-transform: uppercase"] {
  display: none !important;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  margin: 8px 12px;
}

.sidebar-header { padding: 32px 24px; }
.sidebar-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-family: 'Outfit'; font-size: 20px; }

.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px;
  color: var(--text-muted); font-size: 14px; margin: 2px 12px; cursor: pointer; transition: var(--transition);
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item.active { color: #fff; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); }
.nav-item svg { width: 22px; height: 22px; transition: var(--transition); }

.logo-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.recent-channels-nav {
  margin-top: 40px;
  padding: 0 16px;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.user-pill-small {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.user-initial {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.user-info-small {
  overflow: hidden;
}

.user-name-small {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta-small {
  font-size: 11px;
  color: var(--text-dim);
}

/* ─── MAIN CONTAINER ─── */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  transition: var(--transition);
  height: 100vh;
  position: relative;
  background: var(--bg);
  overflow-x: hidden !important;
}

/* Sidebar Margin - Only when active */
body.sidebar-active .main-container {
  margin-left: var(--sidebar-w);
}

body.sidebar-active .sidebar.collapsed + .main-container {
  margin-left: 80px;
}

#main-content-flow {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Hide scrollbar when on landing */
body:not(.sidebar-active) .main-container,
body:not(.sidebar-active) #main-content-flow {
  overflow: hidden !important;
}

@media (max-width: 1366px) {
  :root { --sidebar-w: 240px; }
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .setup-card { padding: clamp(20px, 3.5vh, 40px); }
  .setup-wrapper { gap: clamp(20px, 4vh, 60px); }
}

/* Mobil için dikey düzeni saklıyoruz */
@media (max-width: 1024px) {
  .setup-wrapper { flex-direction: column; text-align: center; gap: 30px; }
  .setup-brand { text-align: center; }
  .main-container { margin-left: 80px; }
}

@media (max-width: 768px) {
  .main-container { margin-left: 0; padding-bottom: 80px; }
}

/* ─── LANDING VIEW ─── */
#view-landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.15), transparent 70%);
  overflow-y: auto;
  position: relative;
}

.setup-card {
  width: 100%;
  max-width: 1180px;
  background: rgba(10, 10, 15, 0.5);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 40px;
  padding: clamp(15px, 3vh, 60px) clamp(20px, 5vw, 60px);
  box-shadow: 
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(109, 40, 217, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  max-height: 94vh; /* Allow some breathing room */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ensure full scrollability on mobile */
@media (max-width: 1024px) {
  .setup-card {
    max-height: none;
    height: auto;
    margin: 20px 0;
  }
}

/* Dikeyde dar ekranlar için ölçeklendirme */
@media (max-height: 700px) {
  .brand-logo { max-height: 22vh; margin-bottom: 12px; }
  .brand-title { font-size: 28px; }
  .brand-desc { font-size: 13px; line-height: 1.4; margin-bottom: 15px; }
  .setup-card { border-radius: 24px; }
  .setup-actions { padding: 20px; }
  .landing-section { margin-bottom: 20px; }
}

/* Cam Efekti Yansıması */
.setup-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
  transition: 0.5s;
}
.setup-card:hover::before { left: 100%; }

.setup-wrapper {
  display: flex;
  gap: clamp(20px, 5vh, 80px);
  align-items: center;
  justify-content: space-between;
}

.setup-brand {
  flex: 1;
  text-align: left;
}

.brand-logo {
  width: 100%;
  max-width: clamp(140px, 15vw, 320px);
  max-height: 30vh;
  height: auto;
  object-fit: contain;
  margin-bottom: clamp(10px, 2vh, 24px);
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.brand-title {
  font-family: 'Outfit';
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.brand-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.setup-actions {
  flex: 1.2;
  background: rgba(255,255,255,0.02);
  padding: clamp(15px, 2vh, 30px);
  border-radius: 24px;
  border: 1px solid var(--border);
}

/* ─── LANDING SECTIONS ─── */
.landing-section {
  margin-bottom: 32px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.input-group input {
  margin-bottom: 0;
  flex: 1;
}

.btn-analiz {
  width: auto;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer !important; /* İmleç garantiye alındı */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-analiz::after {
  content: "";
  position: absolute;
  top: -50%; left: -60%;
  width: 20%; height: 200%;
  background: rgba(255,255,255,0.4);
  transform: rotate(30deg);
  transition: 0.5s;
  opacity: 0;
}

.btn-analiz:hover::after {
  left: 120%;
  opacity: 1;
}

.btn-analiz:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

/* ─── BASE LANDING (WILL BE OVERRIDDEN BY MEDIA QUERIES AT END) ─── */
.landing-view-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.setup-card {
  max-width: 1100px;
  width: 100%;
  border-radius: 40px;
  background: var(--surface);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border);
  margin: auto;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.setup-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding: 70px;
}

.separator {
  position: relative;
  text-align: center;
  margin: 32px 0;
}

.separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.separator span {
  position: relative;
  background: #121217;
  padding: 0 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}

.demo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.demo-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.demo-content {
  text-align: center;
}

.demo-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.demo-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.pro-card {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
  padding: 24px;
}

.btn-aktive {
  width: auto;
  background: #6d28d9;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
}

.landing-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-dim);
}

.landing-footer a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.landing-footer a:hover {
  text-decoration: underline;
}

.setup-logo h1 { font-family: 'Outfit'; font-size: 32px; background: linear-gradient(135deg, #fff, #a855f7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.app-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.main-view {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
}

.app-header {
  padding: 16px 40px;
  background: rgba(6, 6, 12, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.search-container {
  flex: 1;
  max-width: 600px;
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px;
  transition: var(--transition);
}

.search-container:focus-within {
  border-color: var(--accent2);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.search-container input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

#server-status-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  white-space: nowrap;
}

/* Sidebar Overlay */
#sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hamburger Menu Button */
#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s;
}

#mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

#view-app {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 100px;
  box-sizing: border-box;
}

/* Hard isolation for views */
#view-landing.hidden, #view-app.hidden, #view-planner.hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ─── CHANNEL HERO ─── */
.channel-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
}

.hero-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
}

.channel-avatar {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  border: 4px solid var(--surface);
  position: relative;
  z-index: 2;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.avatar-glow {
  position: absolute;
  inset: -15px;
  background: var(--accent2);
  filter: blur(40px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 1;
}

.hero-info h2 {
  font-family: 'Outfit';
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stats-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: var(--transition);
}

.stat-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent2);
}

/* ─── DASHBOARD GRID MODERN ─── */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.dashboard-main-col, .dashboard-side-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1600px) {
  .dashboard-grid {
    flex-direction: row;
    align-items: start;
  }
  .dashboard-main-col { flex: 1; }
  .dashboard-side-col { width: 400px; flex-shrink: 0; }
}

.card {
  background: var(--surface);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { border-color: var(--accent2); box-shadow: 0 40px 80px rgba(0,0,0,0.5); }

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ─── TABLES ─── */
.video-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.video-table { 
  width: 100%; 
  border-collapse: collapse; 
  text-align: left;
  min-width: 500px;
}
.video-table th { padding: 12px 16px; font-size: 11px; color: var(--text-dim); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.video-table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; }

/* ─── STATS PILLS ─── */
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04);
  padding: 8px 16px; border-radius: 30px; border: 1px solid var(--border); font-size: 13px; font-weight: 600;
}

/* ─── UTILS ─── */
.btn-primary {
  width: 100%; background: #fff; color: #000; border: none; padding: 14px; border-radius: 10px;
  font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
}

input, textarea, select {
  width: 100%; 
  background: rgba(0,0,0,0.3); 
  border: 1px solid var(--border);
  padding: 14px; 
  border-radius: 10px; 
  color: #fff; 
  margin-bottom: 20px; 
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS */
}

.seo-pill { padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 11px; }
.seo-great { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.seo-good { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.seo-low { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

body.light-theme .seo-great { color: #15803d; background: rgba(21, 128, 61, 0.1); }
body.light-theme .seo-good { color: #b45309; background: rgba(180, 83, 9, 0.1); }
body.light-theme .seo-low { color: #b91c1c; background: rgba(185, 28, 28, 0.1); }

/* Modal */
.report-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
  display: none; align-items: center; justify-content: center; z-index: 2000;
}
.report-modal-overlay.active { display: flex; }
.report-modal-content {
  background: var(--surface);
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  border-radius: 40px;
  padding: 50px;
  position: relative;
  border: 1px solid var(--border);
  backdrop-filter: blur(40px);
  overflow-y: auto;
  transition: var(--transition);
  box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

#view-planner {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  width: 100%;
}

/* Planner Specific Styles */
#view-planner {
  padding: 30px 40px;
  height: 100vh;
  position: fixed;
  inset: 0;
  z-index: 3000;
  overflow-y: auto !important;
}

@media (max-width: 768px) {
  #view-planner {
    padding: 20px 15px;
  }
}

.wizard-step h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 15px;
  font-family: 'Outfit';
}

.wizard-step p {
  color: var(--text-dim);
  margin-bottom: 30px;
  font-size: 14px;
}

.planner-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 10px;
}

@media (max-width: 480px) {
  .planner-categories-grid {
    grid-template-columns: 1fr;
  }
}

.category-btn {
  text-align: left;
  padding: 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s;
}

.category-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent2);
}

.category-label {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.planner-textarea {
  width: 100%;
  height: 150px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 30px;
  outline: none;
  font-family: inherit;
}

.planner-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 480px) {
  .planner-actions {
    flex-direction: column-reverse;
  }
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  width: auto;
  padding: 0 40px;
  height: 54px;
  font-size: 15px;
  color: var(--text);
}

.btn-primary-planner {
  flex: 1;
  padding: 0 40px;
  height: 54px;
  font-size: 15px;
  color: #fff;
}

.planner-result-card {
  padding: 40px;
  border-radius: 32px;
  background: var(--surface);
  border: 3px solid var(--accent2);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
  width: 100%;
  max-width: 1000px;
}

@media (max-width: 768px) {
  .planner-result-card {
    padding: 24px;
    border-radius: 24px;
  }
}

.result-header {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.result-section {
  margin-bottom: 40px;
}

.result-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.result-badge {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent2);
  text-transform: uppercase;
}

.result-content-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.4;
  background: rgba(0, 240, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
}

.result-content-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 16px;
}

.btn-full {
  margin-top: 40px;
  width: 100%;
  height: 60px;
  font-size: 18px;
}

@media (max-width: 480px) {
  .result-content-title { font-size: 18px; padding: 15px; }
  .result-header { font-size: 20px; }
}

.report-modal-content::-webkit-scrollbar { width: 6px; }
.report-modal-content::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 10px; }

/* Report Content Styles */
.report-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.report-section:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.3);
}

.report-title-badge {
  color: var(--accent2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ─── MODAL REFRESH & RESPONSIVENESS ─── */
.report-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(15px);
  z-index: 20000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.report-modal-overlay.active, .report-modal-overlay.open { opacity: 1; visibility: visible; pointer-events: all; }

.report-modal-content {
  background: var(--bg); border: 1px solid var(--border); border-radius: 32px;
  width: 95%; max-width: 1200px; max-height: 90vh; overflow-y: auto; padding: 40px;
  position: relative; box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  transform: translateY(30px); transition: all 0.4s ease;
}
.report-modal-overlay.active .report-modal-content { transform: translateY(0); }

@media (max-width: 768px) {
  .report-modal-content {
    width: 100%; height: 100%; max-height: 100vh; border-radius: 0; padding: 30px 20px;
    margin: 0;
  }
  .report-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ─── VIDEO TABLE INTERACTION ─── */
.video-row {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  pointer-events: auto !important;
  user-select: none;
}
.video-row:hover {
  background: rgba(168, 85, 247, 0.05) !important;
}
.video-row:active {
  transform: scale(0.99);
}

.report-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.suggestion-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.report-section {
  position: relative;
  overflow: hidden;
}

.report-section::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.05), transparent 70%);
  pointer-events: none;
}

/* Channel Hero */
.channel-hero {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(0,0,0,0));
  border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; gap: 32px; align-items: center;
}
.channel-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--border); }

/* ─── RESPONSIVENESS ─── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 80px; }
  .sidebar-logo span, .nav-item span, .sidebar-header span { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item svg { margin: 0; width: 22px; height: 22px; }
  .sidebar-footer, .sidebar-logo { display: none; }
  #sidebar-edge-toggle { display: none !important; }
}

@media (max-width: 768px) {
  .app-wrapper { flex-direction: column; }
  
  #mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

  .sidebar {
    width: 280px !important;
    height: 100vh;
    position: fixed;
    left: -280px;
    top: 0;
    bottom: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    border-right: 1px solid var(--border);
    border-top: none;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(40px);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.mobile-open {
    transform: translateX(280px);
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
  }

  .sidebar.hidden { display: none !important; }

  /* Restore sidebar elements visibility on mobile drawer */
  .sidebar-header, .sidebar-footer, .sidebar-logo { display: block; }
  .sidebar-nav { 
    display: flex;
    flex-direction: column; 
    width: 100%; 
    justify-content: flex-start;
    align-items: stretch;
    margin-top: 20px !important;
  }

  .nav-item { 
    margin: 2px 12px;
    padding: 12px 16px;
    flex-direction: row;
    gap: 12px;
    border-radius: 8px;
    background: transparent;
    justify-content: flex-start;
  }

  .nav-item span { 
    display: block !important; 
    font-size: 14px; 
    font-weight: 500;
  }

  .nav-item.active { 
    background: rgba(168, 85, 247, 0.1) !important;
    color: #fff;
    border: 1px solid rgba(168, 85, 247, 0.2);
  }

  .nav-item.hidden { display: none !important; }

  .nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .recent-channels-nav {
    display: block;
    margin-top: 30px;
  }

  .nav-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: var(--text-muted) !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin: 0 16px 15px 16px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* SIDEBAR WIDGETS (V7 Polish) */
  .sidebar-widget-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 12px 10px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar-widget-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
  }
  .widget-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    margin-top: 6px;
    color: var(--text-dim);
  }
  .widget-value { color: #fff; font-weight: 700; }
  
  .sidebar-rec-item {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-dim);
    border-left: 2px solid var(--accent2);
    padding: 4px 0 4px 12px;
    margin: 0 12px 15px 16px;
    white-space: normal;
    word-break: break-word;
  }
  .sidebar-rec-item b {
    color: #fff;
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    opacity: 0.8;
  }

  .sidebar-btn-mini {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent2);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
  }
  .sidebar-btn-mini:hover {
    background: var(--accent2);
    color: #fff;
  }

  .main-container {
    margin-left: 0 !important;
    padding-bottom: 0 !important;
    height: auto;
    min-height: 100vh;
  }
  
  body.sidebar-active .main-container {
    padding-bottom: 0;
  }
  
  .view-content, .app-header { padding: 15px; }
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 15px; }
  #server-status-pill { display: none; } /* Hide on mobile to save space */

  .search-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    gap: 12px;
    padding: 8px;
    margin: 0;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
  }

  .search-container input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 56px;
    width: 100% !important;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 16px;
    color: #fff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .search-container input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--accent2);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
  }

  .search-container input::placeholder {
    color: rgba(255, 255, 255, 0.3);
  }

  .search-container .btn-analiz {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .channel-hero { 
    flex-direction: column; 
    text-align: center; 
    gap: 20px; 
    padding: 30px 15px;
  }
  .hero-info h2 { font-size: 24px; }
  .stats-group { justify-content: center; }
  .stat-pill { font-size: 12px; padding: 6px 12px; }
  
  .card { padding: 16px; border-radius: 20px; }
  #view-app { padding: 0 8px 100px; }
  .view-content, .app-header { padding: 10px 5px; }
  .container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 !important; }
  .dashboard-grid { width: 100%; margin: 0; }
  .channel-hero { padding: 24px 16px !important; }
}
  
@media (max-width: 1100px) {
  .setup-card { max-width: 900px; padding: 40px; }
  .setup-wrapper { gap: 40px; }
}

@media (max-width: 1024px) {
  .setup-card { max-width: 100% !important; padding: 40px 20px !important; width: 100% !important; border-radius: 0; }
  .setup-wrapper { flex-direction: column; gap: 32px; text-align: center; }
  .setup-brand { text-align: center; }
  .brand-logo { max-width: 240px; margin-left: auto; margin-right: auto; }
  .setup-actions { padding: 0; width: 100% !important; }
  
  /* Plan kartlarını dikey yap */
  .grid-layout { grid-template-columns: 1fr !important; }
  
  /* Modals & Planner Full Width */
  .report-modal-content { width: 100% !important; height: 100vh !important; border-radius: 0 !important; padding: 30px 15px !important; }
  #view-planner { padding: 20px 10px !important; }
}

@media (max-width: 480px) {
  .brand-title { font-size: 28px; }
  .setup-card { padding: 30px 12px !important; }
  .input-group { flex-direction: column; gap: 12px; }
  .btn-analiz { width: 100%; padding: 16px; text-align: center; justify-content: center; }
}

/* ─── TABLES ─── */
.video-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── TOAST NOTIFICATION ─── */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--accent2); color: #fff; padding: 12px 24px; border-radius: 12px;
  font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error-active { 
  transform: translateX(-50%) translateY(0); 
  opacity: 1; 
  background: rgba(220, 38, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent2);
  color: #fff;
}

.copy-btn.success {
  background: #22c55e !important;
  color: #fff !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.copy-btn.success {
  background: #22c55e !important;
  color: white !important;
  border-color: #22c55e !important;
}

/* ─── PASSWORD VISIBILITY TOGGLE ─── */
.pass-wrapper {
  position: relative;
  width: 100%;
}

.pass-wrapper input {
  padding-right: 48px;
  margin-bottom: 0px !important;
}

.toggle-pass-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
  transition: color 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-pass-btn:hover {
  color: var(--accent2);
}

/* ─── SALES CTA CARD ─── */
.buy-cta-card {
  margin-top: 24px;
  padding: 24px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cta-text {
  font-size: 14px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
  opacity: 0.9;
}

.btn-buy-now {
  width: 100%;
  background: linear-gradient(90deg, #6221c9, #a855f7, #6221c9);
  background-size: 200% auto;
  color: #fff;
  padding: 18px;
  border-radius: 16px;
  border: none;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: shine-move 3s linear infinite, pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.3);
}

.btn-buy-now span {
  position: relative;
  z-index: 1;
}

.btn-buy-now:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
}

@keyframes shine-move {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }
  50% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.5); }
}

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

.lab-simulation-badge {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  background-size: 200% auto;
  animation: shimmer 2s linear infinite;
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
}

.growth-bar-container {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.growth-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  transition: width 1s ease-out;
}


.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.dashboard-main-col, .dashboard-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

@media (min-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: 1fr 340px;
    gap: 30px;
  }
}

.video-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  scrollbar-width: none; /* Hide scrollbar for cleaner look */
}

.video-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.video-table th, .video-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.video-table td:first-child {
  max-width: 400px;
  padding: 15px 12px;
}

.video-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  word-wrap: break-word;
  white-space: normal !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── GLOBAL UTILITIES ─── */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-title {
  font-family: 'Outfit';
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.responsive-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 640px) {
  .responsive-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── MODERN TOAST NOTIFICATIONS ─── */
#global-toast, #admin-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  color: #fff;
  padding: 14px 28px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 999999;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
}

#global-toast.active, #admin-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

#global-toast.error-active, #admin-toast.error-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(20, 10, 10, 0.95);
}

/* Light Theme Overrides for Toasts */
body.light-theme #global-toast, 
body.light-theme #admin-toast {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme #global-toast.error-active,
body.light-theme #admin-toast.error-active {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ─── MODERN MODAL SYSTEM (V8) ─── */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.report-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.report-modal-content {
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}
.report-modal-overlay.open .report-modal-content {
  transform: scale(1) translateY(0);
}

.modal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}
.modal-stat-pill {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent2);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
  content: '⚠️';
}

/* ─── MODERN SaaS RESPONSIVE RULES ─── */
@media (min-width: 1025px) {
  .landing-view-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
}

@media (max-width: 1200px) {
  .setup-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    padding: 30px !important;
    text-align: center;
  }
  .setup-brand, .setup-actions {
    width: 100% !important;
    max-width: 500px !important;
  }
  .setup-brand { margin-bottom: 40px; }
  .logo-container { margin: 0 auto 20px !important; }
}

@media (max-width: 640px) {
  .landing-view-container { 
    padding: 20px 15px !important;
    height: auto !important;
  }
  .setup-card { 
    border-radius: 28px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
  }
  .brand-title { font-size: 24px !important; margin-bottom: 12px !important; }
  .brand-desc { font-size: 14px !important; line-height: 1.6; margin-bottom: 25px !important; }
  .pro-card { padding: 20px !important; }
  .btn-aktive, .btn-buy-now { height: 50px !important; }
  .buy-cta-card { border-radius: 20px !important; padding: 20px !important; margin-top: 15px !important; }
  .section-label { font-size: 13px !important; }
  .cta-text { font-size: 13px !important; margin-bottom: 15px !important; }
}

/* ─── VIDEO TABLE MOBILE CARD RE-LAYOUT (V11) ─── */
@media (max-width: 768px) {
  .video-table-wrapper {
    overflow-x: hidden !important;
    padding: 5px;
  }
  .video-table thead {
    display: none;
  }
  .video-table, .video-table tbody, .video-table tr {
    display: block;
    width: 100%;
  }
  .video-table tr {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    margin-bottom: 16px;
    padding: 16px;
    box-sizing: border-box;
    transition: transform 0.2s;
  }
  .video-table tr:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.05);
  }
  .video-table td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
  }
  .v-info {
    margin-bottom: 14px;
    display: flex !important;
    align-items: flex-start !important;
  }
  .v-info img {
    width: 60px !important;
    height: 45px !important;
    border-radius: 10px !important;
  }
  .video-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
  }
  
  /* Stats Row in the Card */
  .v-views, .v-seo {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    gap: 6px;
    font-size: 12px !important;
    margin-top: 0;
  }
  .v-views { 
    margin-right: 20px;
    font-weight: 800 !important;
    color: #fff !important;
  }
  .v-views::before {
    content: '📊';
    font-size: 14px;
  }
  .v-seo::before {
    content: '🛡️ SEO:';
    color: var(--text-dim);
    font-weight: 400;
    margin-right: 4px;
    font-size: 11px;
  }
  .v-seo .seo-pill {
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
  }
}

/* ─── WELCOME SCREEN (MODERN START) ─── */
.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: calc(100vh - 100px);
  text-align: center;
  animation: fadeInWelcome 0.8s ease-out;
}

.welcome-icon {
  font-size: 80px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
  animation: bounceSlow 4s ease-in-out infinite;
}

.welcome-title {
  font-family: "Outfit";
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.welcome-desc {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text-dim);
  max-width: 550px;
  margin-bottom: 45px;
  line-height: 1.7;
}

.welcome-search-large {
  display: flex;
  width: 100%;
  max-width: 750px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
}

.welcome-search-large:focus-within {
  border-color: var(--accent2);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 50px 100px -20px rgba(124, 58, 237, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.welcome-search-large input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 30px;
  font-size: 20px;
  color: #fff;
  margin: 0 !important;
  font-family: inherit;
}

.welcome-search-large input:focus {
  outline: none;
}

.welcome-search-large .btn-analiz {
  padding: 0 45px;
  height: auto;
  font-size: 18px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.hide-header-search .app-header .search-container {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

@keyframes fadeInWelcome {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
  .welcome-container { padding: 40px 20px; min-height: calc(100vh - 200px); }
  .welcome-search-large { flex-direction: column; gap: 15px; padding: 15px; border-radius: 28px; }
  .welcome-search-large input { border-radius: 16px; background: rgba(0,0,0,0.2); height: 60px; font-size: 16px; }
  .welcome-search-large .btn-analiz { width: 100%; height: 60px; font-size: 16px; }
}

/* ─── FLOATING LANG SWITCHER (V3.3) ─── */
.lang-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(18, 18, 24, 0.6);
  backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.lang-floating button {
  background: none;
  border: none;
  color: var(--text-dim) !important;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.lang-floating button:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.05);
}

/* Active Language Style */
html[lang="tr"] .lang-floating button:nth-child(1),
html[lang="en"] .lang-floating button:nth-child(3) {
  background: var(--accent2) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.lang-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .lang-floating {
    top: 16px;
    right: 16px;
    padding: 4px;
  }
  .lang-floating button {
    padding: 6px 10px;
  }
}
