/* ==========================================
   GLOBAL STYLES & VARIABLES
   ========================================== */
:root {
  /* Dashboard UI Colors */
  --bg-app: #07070f;
  --bg-sidebar: rgba(15, 15, 28, 0.7);
  --border-ui: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-sub: rgba(255, 255, 255, 0.3);
  
  --primary-gradient: linear-gradient(135deg, #0066FF 0%, #00C2FF 100%);
  --btn-primary-bg: #0066FF;
  --btn-primary-hover: #0052cc;
  
  /* Brand Categories Colors (for Slides) */
  --meta-primary: #3b82f6;
  --meta-accent: #60a5fa;
  --meta-bg-start: #040818;
  --meta-bg-end: #0a1635;
  
  --google-primary: #fbbf24;
  --google-accent: #f59e0b;
  --google-bg-start: #0d0a00;
  --google-bg-end: #1a1200;
  
  --seo-primary: #22c55e;
  --seo-accent: #4ade80;
  --seo-bg-start: #020c04;
  --seo-bg-end: #041509;
  
  --content-primary: #a855f7;
  --content-accent: #c084fc;
  --content-bg-start: #06020e;
  --content-bg-end: #0e0520;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================
   APP HEADER
   ========================================== */
.app-header {
  height: 70px;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-ui);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.logo-text span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* ==========================================
   BUTTONS & INPUTS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 14px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  gap: 6px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 14px;
  transition: all 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: #0066FF;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

select.form-control option,
select.form-control optgroup {
  background-color: #0f0f1c;
  color: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.url-input-wrap {
  display: flex;
  gap: 8px;
}

.url-input-wrap .form-control {
  flex: 1;
}

.margin-top-sm { margin-top: 10px; }

/* Spinner Icon */
.icon-spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================
   APP LAYOUT
   ========================================== */
.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 70px);
  overflow: hidden;
}

/* Left Sidebar */
.sidebar-panel {
  width: 360px;
  min-width: 360px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-ui);
  padding: 24px;
  overflow-y: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00C2FF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.cat-card.active {
  background: rgba(0, 102, 255, 0.06);
  border-color: #0066FF;
}

.cat-icon {
  font-size: 20px;
}

.cat-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* RSS Box */
.rss-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.rss-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #00C2FF;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rss-loader {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #00C2FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.rss-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rss-item {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rss-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Shimmer animation */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* CENTER EDITOR AREA */
.editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(10, 15, 45, 0.3) 0%, rgba(5, 5, 10, 0) 70%);
}

.editor-toolbar {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-ui);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.toolbar-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.toolbar-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Slide Preview Container & Track */
.slide-track-container {
  flex: 1;
  padding: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 480px;
}

.slide-track {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 16px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.01);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.3));
}

.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bottom Caption / Export Panel */
.caption-export-section {
  height: 240px;
  border-top: 1px solid var(--border-ui);
  display: flex;
  background: rgba(10, 10, 20, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.caption-container {
  flex: 1;
  border-right: 1px solid var(--border-ui);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caption-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caption-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #00C2FF;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.caption-textarea {
  flex: 1;
  resize: none;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
}

.export-box {
  width: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.export-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.export-header span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* ==========================================
   CAROUSEL SLIDES STYLING (1080x1080)
   ========================================== */

/* Frame that contains controls + slide wrapper */
.slide-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Slide action buttons (delete, shift) */
.slide-actions {
  display: flex;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.slide-card-wrapper:hover .slide-actions {
  opacity: 1;
}

.slide-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.slide-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.slide-btn.bg-change {
  width: auto;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a3e635;
  border-color: rgba(163, 230, 53, 0.25);
  background: rgba(163, 230, 53, 0.08);
  white-space: nowrap;
}
.slide-btn.bg-change:hover {
  background: rgba(163, 230, 53, 0.2);
  color: #d9f99d;
  border-color: rgba(163, 230, 53, 0.5);
}

/* Slide Scaled Preview for UI */
.slide-scale-container {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: #000;
  flex-shrink: 0;
  transition: width 0.3s ease, height 0.3s ease;
}
.slide-scale-container.ratio-1-1 {
  width: 378px;
  height: 378px;
}
.slide-scale-container.ratio-4-5 {
  width: 378px;
  height: 472.5px;
}
.slide-scale-container.ratio-9-16 {
  width: 378px;
  height: 672px;
}

/* The actual 1080x[height] canvas container that will be exported */
.slide-capture-node {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  padding: 85px 95px;
  font-family: 'Inter', sans-serif;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.05);
}
.slide-capture-node.ratio-1-1 {
  width: 1080px;
  height: 1080px;
  transform: scale(0.35);
}
.slide-capture-node.ratio-4-5 {
  width: 1080px;
  height: 1350px;
  transform: scale(0.35);
  padding: 105px 95px;
}
.slide-capture-node.ratio-9-16 {
  width: 1080px;
  height: 1920px;
  transform: scale(0.35);
  padding: 180px 95px 220px 95px;
  justify-content: space-between;
}

/* Dynamic Story Layout positioning adjustments */
.slide-capture-node.ratio-9-16 .slide-logo {
  top: 100px;
  right: 95px;
}
.slide-capture-node.ratio-9-16 .slide-badge {
  bottom: 80px;
  right: 95px;
}
.slide-capture-node.ratio-9-16 .slide-swipe {
  bottom: 80px;
  left: 95px;
}

/* Grain Noise Overlay Texture for Premium look */
.slide-capture-node::after {
  content: '';
  position: absolute;
  inset: 0;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 8;
}

/* Faint Outline Watermark Typography */
.watermark-bg {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 260px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.015);
  z-index: 0;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.watermark-bg.pos-1 {
  bottom: 120px;
  left: -50px;
  transform: rotate(-10deg);
}
.watermark-bg.pos-2 {
  top: 150px;
  right: -100px;
  transform: rotate(90deg);
}

/* --- LOGO, BADGE, DOTS DECORATION --- */
.slide-logo {
  position: absolute;
  bottom: 50px; /* Logo is fixed at bottom-center */
  left: 50%;
  transform: translateX(-50%);
  height: 68px;
  z-index: 10;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  border-radius: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slide-logo img {
  height: 38px;
  display: block;
}

.slide-badge {
  position: absolute;
  bottom: 50px;
  right: 95px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  z-index: 5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.slide-badge-w {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.slide-swipe {
  position: absolute;
  bottom: 50px;
  left: 95px;
  font-size: 16px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  z-index: 5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 16px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

/* Premium Card Overlay Frame with Noise Grain Combined */
.slide-capture-node::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9;
}

.slide-capture-node::before {
  content: '+';
  position: absolute;
  font-family: monospace;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.15);
  top: 85px;
  left: 95px;
  z-index: 5;
}

/* Global editable state styles */
[contenteditable="true"] {
  outline: none;
  transition: background 0.2s;
  border-radius: 4px;
}
[contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.05);
}
[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* ==========================================
   THEME STYLE DESIGNS (BACKGROUNDS & PATTERNS)
   ========================================== */

/* --- 💼 GODIGI BRAND THEME (CORPORATE) --- */
.theme-godigi {
  background: linear-gradient(135deg, #050814 0%, #0c122c 100%);
  border: 4px solid rgba(0, 94, 255, 0.25);
  --accent-theme: #00c3ff;
  --glow-theme: rgba(0, 195, 255, 0.15);
}


.theme-godigi .dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 195, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 54px 54px;
  pointer-events: none;
  z-index: 1;
}
.theme-godigi .glow-b1 {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 94, 255, 0.25) 0%, transparent 70%);
  top: -250px;
  left: -200px;
  pointer-events: none;
  z-index: 1;
}
.theme-godigi .glow-c1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.18) 0%, transparent 70%);
  bottom: -200px;
  right: -150px;
  pointer-events: none;
  z-index: 1;
}
.theme-godigi .slide-badge {
  border-color: rgba(0, 195, 255, 0.2);
  color: #00c3ff;
}
.theme-godigi .slide-swipe {
  border-color: rgba(0, 94, 255, 0.2);
  color: #005eff;
}
.theme-godigi .slide-type-cover .cat-label {
  color: #00c3ff;
}
.theme-godigi .slide-type-cover h2 em {
  background: linear-gradient(90deg, #005eff, #00c3ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-godigi .slide-type-stat .kicker {
  color: #00c3ff;
}
.theme-godigi .slide-type-stat .big-stat {
  background: linear-gradient(90deg, #00c3ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-godigi .slide-type-checklist .title span {
  color: #00c3ff;
}
.theme-godigi .slide-type-checklist .check-row .ico {
  background: rgba(0, 195, 255, 0.08);
  border: 2px solid rgba(0, 195, 255, 0.3);
  color: #00c3ff;
}
.theme-godigi .slide-type-cta .cta-pill {
  background: linear-gradient(135deg, #005eff, #00c3ff);
  border: none;
  box-shadow: 0 16px 40px rgba(0, 195, 255, 0.4);
}

/* --- 🎭 AI DYNAMIC THEME --- */
.theme-dynamic {
  /* Dynamic style rules using CSS Custom Properties set inline by script */
  border: 4px solid var(--accent-theme, rgba(0, 195, 255, 0.25));
}
.theme-dynamic .dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--glow-theme, rgba(0, 195, 255, 0.1)) 1.5px, transparent 1.5px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}
.theme-dynamic .glow-dyn {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-theme, rgba(0, 195, 255, 0.2)) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 1;
}
.theme-dynamic .slide-badge {
  border-color: var(--accent-theme, rgba(0, 195, 255, 0.2));
  color: var(--accent-theme, #00c3ff);
}
.theme-dynamic .slide-swipe {
  border-color: var(--accent-theme, rgba(0, 195, 255, 0.15));
  color: var(--accent-theme, #00c3ff);
}
.theme-dynamic .slide-type-cover .cat-label {
  color: var(--accent-theme, #00c3ff);
}
.theme-dynamic .slide-type-cover h2 em {
  background: linear-gradient(90deg, var(--accent-theme, #00c3ff), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-dynamic .slide-type-stat .kicker {
  color: var(--accent-theme, #00c3ff);
}
.theme-dynamic .slide-type-stat .big-stat {
  background: linear-gradient(90deg, var(--accent-theme, #00c3ff), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-dynamic .slide-type-checklist .title span {
  color: var(--accent-theme, #00c3ff);
}
.theme-dynamic .slide-type-checklist .check-row .ico {
  background: var(--glow-theme, rgba(0, 195, 255, 0.08));
  border: 2px solid var(--accent-theme, rgba(0, 195, 255, 0.3));
  color: var(--accent-theme, #00c3ff);
}
.theme-dynamic .slide-type-cta .cta-pill {
  background: var(--accent-theme, #00c3ff);
  border: none;
  box-shadow: 0 16px 40px var(--glow-theme, rgba(0, 195, 255, 0.4));
}

/* --- 📝 TOAST NOTIFICATION STYLING --- */
.toast-notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(8, 12, 28, 0.95);
  border: 1.5px solid #00C2FF;
  box-shadow: 0 20px 50px rgba(0, 194, 255, 0.25);
  padding: 16px 32px;
  border-radius: 50px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- 📘 META THEME --- */
.theme-meta {
  background: linear-gradient(145deg, var(--meta-bg-start), var(--meta-bg-end));
  border: 4px solid rgba(59, 130, 246, 0.25);
}
.theme-meta .dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(96, 165, 250, 0.12) 1.5px, transparent 1.5px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
}
.theme-meta .glow-tl {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 65%);
  top: -200px;
  left: -200px;
  pointer-events: none;
  z-index: 1;
}
.theme-meta .glow-br {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 65%);
  bottom: -150px;
  right: -150px;
  pointer-events: none;
  z-index: 1;
}

/* --- 🟡 GOOGLE THEME --- */
.theme-google {
  background: linear-gradient(145deg, var(--google-bg-start), var(--google-bg-end));
  border: 4px solid rgba(251, 191, 36, 0.25);
}
.theme-google .hex-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(251, 191, 36, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(251, 191, 36, 0.03) 87.5%),
    linear-gradient(150deg, rgba(251, 191, 36, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(251, 191, 36, 0.03) 87.5%),
    linear-gradient(30deg, rgba(251, 191, 36, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(251, 191, 36, 0.03) 87.5%),
    linear-gradient(150deg, rgba(251, 191, 36, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(251, 191, 36, 0.03) 87.5%);
  background-size: 80px 140px;
  pointer-events: none;
  z-index: 1;
}
.theme-google .glow-y {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 65%);
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 1;
}

/* --- 🟢 SEO THEME --- */
.theme-seo {
  background: linear-gradient(145deg, var(--seo-bg-start), var(--seo-bg-end));
  border: 4px solid rgba(74, 222, 128, 0.25);
}
.theme-seo .grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(74, 222, 128, 0.04) 1.5px, transparent 1.5px), 
    linear-gradient(90deg, rgba(74, 222, 128, 0.04) 1.5px, transparent 1.5px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}
.theme-seo .glow-g {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, transparent 65%);
  top: -180px;
  right: -180px;
  pointer-events: none;
  z-index: 1;
}

/* --- 🟣 İÇERİK THEME --- */
.theme-content {
  background: linear-gradient(145deg, var(--content-bg-start), var(--content-bg-end));
  border: 4px solid rgba(168, 85, 247, 0.25);
}
.theme-content .glow-p1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 65%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  z-index: 1;
}
.theme-content .glow-p2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, transparent 65%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   SLIDE TEMPLATE SPECIFICS
   ========================================== */

/* --- 1. COVER SLIDE --- */
.slide-type-cover {
  justify-content: center;
  align-items: flex-start;
}
.slide-type-cover .cat-label {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 24px;
  z-index: 5;
}
.theme-meta .slide-type-cover .cat-label { color: var(--meta-primary); }
.theme-google .slide-type-cover .cat-label { color: var(--google-primary); }
.theme-seo .slide-type-cover .cat-label { color: var(--seo-primary); }
.theme-content .slide-type-cover .cat-label { color: var(--content-primary); }

.slide-type-cover .meta-icon {
  font-size: 85px;
  margin-bottom: 24px;
  z-index: 5;
  line-height: 1;
}

.slide-type-cover h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 88px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  z-index: 5;
  margin-bottom: 28px;
  white-space: pre-wrap;
  text-shadow: 
    1px 1px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #000,
    4px 4px 0px #000,
    5px 5px 0px #000,
    6px 6px 15px rgba(0, 0, 0, 0.9);
}

.slide-type-cover h2 em {
  font-style: normal;
  font-weight: 900;
}
.theme-meta .slide-type-cover h2 em {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-google .slide-type-cover h2 em {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-seo .slide-type-cover h2 em {
  background: linear-gradient(90deg, #22c55e, #4ade80, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-content .slide-type-cover h2 em {
  background: linear-gradient(90deg, #a855f7, #c084fc, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-type-cover .sub {
  font-size: 32px;
  color: #d1f2ff; /* High contrast sky blue */
  z-index: 5;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* --- 2. STAT / DATA SLIDE --- */
.slide-type-stat {
  justify-content: flex-start;
}
.slide-type-stat .kicker {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 40px;
  z-index: 5;
}
.theme-meta .slide-type-stat .kicker { color: var(--meta-accent); }
.theme-google .slide-type-stat .kicker { color: var(--google-primary); }
.theme-seo .slide-type-stat .kicker { color: var(--seo-primary); }
.theme-content .slide-type-stat .kicker { color: var(--content-accent); }

.slide-type-stat .big-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  z-index: 5;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 
    1px 1px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #000,
    4px 4px 0px #000,
    5px 5px 0px #000,
    6px 6px 15px rgba(0, 0, 0, 0.9);
}

.slide-type-stat .stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  color: #fff;
  font-weight: 700;
  z-index: 5;
  margin-bottom: 24px;
  line-height: 1.3;
}

.slide-type-stat .stat-sub {
  font-size: 28px;
  color: #d1f2ff; /* High contrast sky blue */
  z-index: 5;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* --- 3. CHECKLIST SLIDE --- */
.slide-type-checklist {
  justify-content: flex-start;
}
.slide-type-checklist .title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  z-index: 5;
  margin-bottom: 48px;
  text-shadow: 
    1px 1px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #000,
    4px 4px 0px #000,
    5px 5px 0px #000,
    6px 6px 15px rgba(0, 0, 0, 0.9);
}
.theme-meta .slide-type-checklist .title span { color: var(--meta-accent); }
.theme-google .slide-type-checklist .title span { color: var(--google-primary); }
.theme-seo .slide-type-checklist .title span { color: var(--seo-accent); }
.theme-content .slide-type-checklist .title span { color: var(--content-accent); }

.slide-type-checklist .check-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 5;
}

.slide-type-checklist .check-row {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 30px;
  color: #ffffff;
  line-height: 1.4;
  background: rgba(10, 15, 30, 0.8) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  padding: 20px 28px;
  border-radius: 16px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.slide-type-checklist .check-row .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.theme-meta .slide-type-checklist .check-row .ico {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: var(--meta-accent);
}
.theme-google .slide-type-checklist .check-row .ico {
  background: rgba(251, 191, 36, 0.1);
  border: 2px solid rgba(251, 191, 36, 0.3);
  color: var(--google-primary);
}
.theme-seo .slide-type-checklist .check-row .ico {
  background: rgba(74, 222, 128, 0.1);
  border: 2px solid rgba(74, 222, 128, 0.3);
  color: var(--seo-accent);
}
.theme-content .slide-type-checklist .check-row .ico {
  background: rgba(168, 85, 247, 0.1);
  border: 2px solid rgba(168, 85, 247, 0.3);
  color: var(--content-accent);
}

.slide-type-checklist .check-row strong {
  color: #fff;
  font-weight: 700;
}

/* --- 4. COMPARISON / TWO COLUMN SLIDE --- */
.slide-type-comparison {
  justify-content: flex-start;
}
.slide-type-comparison .col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 60px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  z-index: 5;
  margin-bottom: 40px;
  text-shadow: 
    1px 1px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #000,
    4px 4px 0px #000,
    5px 5px 0px #000,
    6px 6px 15px rgba(0, 0, 0, 0.9);
}

.slide-type-comparison .cols-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  z-index: 5;
  width: 100%;
}

.slide-type-comparison .col-box {
  border-radius: 28px;
  padding: 36px 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.slide-type-comparison .col-box.yes {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.12));
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.slide-type-comparison .col-box.no {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.03), rgba(239, 68, 68, 0.08));
  border: 2px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.05);
}

.slide-type-comparison .col-head {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 24px;
}
.slide-type-comparison .col-box.yes .col-head { color: #60a5fa; }
.slide-type-comparison .col-box.no .col-head { color: #f87171; }

.slide-type-comparison .col-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-type-comparison .col-box li {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.9); /* Higher contrast white */
  padding-left: 36px;
  position: relative;
  line-height: 1.4;
}

.slide-type-comparison .col-box.yes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: 800;
}
.slide-type-comparison .col-box.no li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 800;
}

/* --- 5. CTA SLIDE --- */
.slide-type-cta {
  justify-content: center;
  align-items: flex-start;
}

/* Gradient background for CTA cover */
.theme-meta.slide-type-cta {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
  border-color: rgba(255, 255, 255, 0.2);
}
.theme-google.slide-type-cta {
  background: linear-gradient(135deg, #92400e, #d97706, #fbbf24);
  border-color: rgba(255, 255, 255, 0.2);
}
.theme-seo.slide-type-cta {
  background: linear-gradient(135deg, #14532d, #16a34a, #22c55e);
  border-color: rgba(255, 255, 255, 0.2);
}
.theme-content.slide-type-cta {
  background: linear-gradient(135deg, #6b21a8, #9333ea, #c084fc);
  border-color: rgba(255, 255, 255, 0.2);
}

.slide-type-cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: -150px;
  right: -120px;
  z-index: 1;
}

.slide-type-cta .eyebrow {
  font-size: 26px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  margin-bottom: 30px;
  z-index: 5;
}

.slide-type-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 84px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 50px;
  z-index: 5;
  white-space: pre-wrap;
  text-shadow: 
    1px 1px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #000,
    4px 4px 0px #000,
    5px 5px 0px #000,
    6px 6px 15px rgba(0, 0, 0, 0.9);
}

.slide-type-cta .cta-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 3.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 22px 48px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 5;
  display: inline-block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.theme-meta .slide-type-cta .cta-pill {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.4);
}
.theme-google .slide-type-cta .cta-pill {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border: none;
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.4);
}
.theme-seo .slide-type-cta .cta-pill {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.4);
}
.theme-content .slide-type-cta .cta-pill {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  border: none;
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.4);
}

/* ==========================================
   MODAL DIALOG STYLES
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-box {
  background: #0f0f1c;
  border: 1px solid var(--border-ui);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-ui);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.btn-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.help-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 6px;
}

.help-text a {
  color: #00C2FF;
  text-decoration: none;
}

.help-text a:hover {
  text-decoration: underline;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-ui);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Add Slide Type Selection specific */
#modal-add-slide .modal-box {
  max-width: 680px;
}

.slide-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.slide-type-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.slide-type-card:hover {
  background: rgba(0, 102, 255, 0.05);
  border-color: #0066FF;
  transform: translateY(-2px);
}

.st-preview {
  height: 80px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.st-preview.cover { border: 1px solid rgba(0, 102, 255, 0.2); color: #0066FF; }
.st-preview.stat { border: 1px solid rgba(251, 191, 36, 0.2); color: #fbbf24; }
.st-preview.checklist { border: 1px solid rgba(74, 222, 128, 0.2); color: #22c55e; }
.st-preview.comparison { border: 1px solid rgba(168, 85, 247, 0.2); color: #a855f7; }
.st-preview.cta { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; }

.slide-type-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.slide-type-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================
   CSS BENTO GRAPHICS & MOCKUPS (Tasarım v4)
   ========================================== */

.slide-graphic-container {
  margin-top: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

/* 1. Browser Mockup */
.mockup-browser {
  width: 650px;
  height: 340px;
  background: rgba(10, 15, 30, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mockup-browser .browser-header {
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 8px;
  position: relative;
}
.mockup-browser .browser-dots {
  display: flex;
  gap: 6px;
}
.mockup-browser .browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-browser .browser-dot.red { background: #ff5f56; }
.mockup-browser .browser-dot.yellow { background: #ffbd2e; }
.mockup-browser .browser-dot.green { background: #27c93f; }

.mockup-browser .browser-address {
  flex-grow: 1;
  max-width: 400px;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
  margin-left: 20px;
}

.mockup-browser .browser-body {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  gap: 15px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 195, 255, 0.05), transparent 80%);
}

.mockup-browser .browser-sidebar {
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding-right: 15px;
}
.mockup-browser .sidebar-item {
  height: 12px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
}
.mockup-browser .sidebar-item.active {
  background: var(--accent-theme, #00c3ff);
  opacity: 0.3;
}

.mockup-browser .browser-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mockup-browser .main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mockup-browser .grid-card {
  height: 50px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mockup-browser .card-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  width: 70%;
}
.mockup-browser .card-value {
  height: 10px;
  border-radius: 3px;
  background: var(--accent-theme, #00c3ff);
  width: 40%;
}

.mockup-browser .main-chart {
  flex-grow: 1;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 15px;
  gap: 15px;
}
.mockup-browser .chart-col {
  width: 35px;
  background: linear-gradient(180deg, var(--accent-theme, #00c3ff) 0%, rgba(0, 94, 255, 0.1) 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 15px var(--glow-theme, rgba(0, 195, 255, 0.2));
  transition: height 0.5s ease;
}

/* 2. Neon Veri Grafiği Mockup */
.mockup-chart {
  width: 650px;
  height: 340px;
  background: rgba(10, 15, 30, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.mockup-chart .chart-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-theme, #00c3ff);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}
.mockup-chart .chart-grid {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding: 15px 15px 0 15px;
  position: relative;
}
.mockup-chart .chart-grid::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 33%;
  height: 1px;
  background: rgba(255,255,255,0.03);
}
.mockup-chart .chart-grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 66%;
  height: 1px;
  background: rgba(255,255,255,0.03);
}
.mockup-chart .chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mockup-chart .chart-bar-val {
  width: 50px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent-theme, #00c3ff) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 0 20px var(--glow-theme, rgba(0, 195, 255, 0.25));
}
.mockup-chart .chart-bar-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

/* 3. Mobile Mockup */
.mockup-mobile {
  width: 320px;
  height: 380px;
  background: rgba(10, 15, 30, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255,255,255,0.15);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.mockup-mobile .mobile-notch {
  width: 130px;
  height: 18px;
  background: #222;
  border-radius: 0 0 15px 15px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}
.mockup-mobile .mobile-screen {
  flex-grow: 1;
  padding: 30px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: radial-gradient(circle at 50% 10%, rgba(233, 213, 255, 0.05), transparent 70%);
}
.mockup-mobile .mobile-post {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-mobile .post-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-mobile .user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-theme, #00c3ff);
  opacity: 0.8;
}
.mockup-mobile .user-name {
  width: 80px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}
.mockup-mobile .post-img {
  height: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-theme, #00c3ff);
}
.mockup-mobile .post-actions {
  display: flex;
  gap: 10px;
}
.mockup-mobile .action-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.mockup-mobile .mobile-notification {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.mockup-mobile .notif-icon {
  font-size: 20px;
}
.mockup-mobile .notif-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-mobile .notif-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.mockup-mobile .notif-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

/* Hide logo & badge when using a GoDigi brand template pack */
.slide-mode-seo .slide-logo,
.slide-mode-seo .slide-badge,
.slide-mode-performans .slide-logo,
.slide-mode-performans .slide-badge,
.slide-mode-sosyal-medya .slide-logo,
.slide-mode-sosyal-medya .slide-badge,
.slide-mode-web-tasarim .slide-logo,
.slide-mode-web-tasarim .slide-badge,
.slide-mode-medya-planlama .slide-logo,
.slide-mode-medya-planlama .slide-badge,
.slide-mode-influencer .slide-logo,
.slide-mode-influencer .slide-badge {
  display: none !important;
}

/* Photo Frame Mockup (Bento v4.1) */
.slide-photo-frame {
  margin-top: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 5;
}
.slide-photo-frame img {
  width: 650px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--glow-theme, rgba(0, 195, 255, 0.15));
  transition: all 0.3s ease;
}

/* ============================================
   MOBILE TAB BAR (hidden on desktop)
   ============================================ */
.mobile-tab-bar {
  display: none;
}

/* ============================================
   RESPONSIVE — TABLET & MOBILE (max 900px)
   ============================================ */
@media (max-width: 900px) {

  /* --- Layout --- */
  .app-container {
    flex-direction: column;
    overflow: auto;
    height: auto;
  }

  /* --- Header --- */
  .app-header {
    padding: 10px 16px;
    height: auto;
    gap: 8px;
  }
  .logo-text {
    font-size: 14px;
  }
  .header-actions .btn span:not(.btn-icon span) {
    display: none; /* Hide "API Ayarları" text on very small screens */
  }

  /* --- Mobile Tab Bar --- */
  .mobile-tab-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 14, 26, 0.97);
    border-bottom: 1px solid var(--border-ui);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    width: 100%;
  }

  .mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
  }

  .mobile-tab .tab-icon {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(0, 195, 255, 0.06);
  }

  /* --- Panel visibility --- */
  .sidebar-panel,
  .slide-track-container,
  .export-box {
    display: none;
    width: 100%;
    min-width: unset;
    max-width: 100%;
    height: auto;
    border-right: none;
    border-top: 1px solid var(--border-ui);
  }

  .sidebar-panel.mobile-active,
  .slide-track-container.mobile-active,
  .export-box.mobile-active {
    display: flex;
    flex-direction: column;
  }

  /* --- Sidebar panel adjustments --- */
  .sidebar-panel {
    overflow-y: auto;
    max-height: calc(100dvh - 120px);
    padding: 16px;
  }

  /* --- Slide Track --- */
  .slide-track-container {
    overflow-y: auto;
    max-height: calc(100dvh - 120px);
    padding: 16px;
  }

  .slide-track {
    flex-direction: column;
    padding: 8px 0;
    gap: 24px;
    align-items: center;
    overflow: visible;
  }

  .slide-card-wrapper {
    width: 100%;
    max-width: 480px;
  }

  /* --- Slide preview scaling for mobile --- */
  .slide-scale-container.ratio-1-1 {
    width: min(360px, calc(100vw - 32px));
    height: min(360px, calc(100vw - 32px));
  }
  .slide-scale-container.ratio-4-5 {
    width: min(360px, calc(100vw - 32px));
    height: min(450px, calc((100vw - 32px) * 1.25));
  }
  .slide-scale-container.ratio-9-16 {
    width: min(280px, calc(100vw - 32px));
    height: min(497px, calc((100vw - 32px) * 1.778));
  }

  /* --- Slide action buttons --- */
  .slide-actions {
    flex-wrap: wrap;
    gap: 6px;
    opacity: 1;
    padding: 4px 0;
  }

  .slide-btn {
    min-height: 36px;
    min-width: 36px;
  }

  .slide-btn.bg-change,
  .slide-btn.copy-btn {
    font-size: 11px;
    padding: 0 10px;
  }

  /* --- Export panel --- */
  .export-box {
    width: 100%;
    padding: 16px;
    border-left: none;
    border-top: 1px solid var(--border-ui);
    max-height: none;
    overflow-y: auto;
  }

  .export-box .btn {
    min-height: 48px;
    font-size: 14px;
  }

  /* --- Caption section --- */
  .caption-export-section {
    flex-direction: column;
  }

  .caption-container {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-ui);
  }

  /* --- Form controls --- */
  .form-control,
  select.form-control,
  input.form-control,
  textarea.form-control {
    font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
  }

  /* --- Modals --- */
  .modal-overlay .modal-box {
    width: calc(100vw - 32px);
    max-height: 90dvh;
    overflow-y: auto;
    margin: 16px;
  }
}

/* ============================================
   SMALL PHONE (max 480px) extra tweaks
   ============================================ */
@media (max-width: 480px) {
  .app-header {
    padding: 8px 12px;
  }

  .logo-circle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .logo-text {
    font-size: 13px;
  }

  .slide-scale-container.ratio-1-1 {
    width: calc(100vw - 24px);
    height: calc(100vw - 24px);
  }

  .slide-scale-container.ratio-4-5 {
    width: calc(100vw - 24px);
    height: calc((100vw - 24px) * 1.25);
  }
}

/* Prompt Slide Card Container */
.prompt-slide-card {
  width: 100%;
  max-width: 720px;
  background: rgba(12, 18, 40, 0.9);
  border: 1px solid rgba(0, 195, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.psc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.psc-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #00c3ff;
  letter-spacing: 1px;
  background: rgba(0, 195, 255, 0.1);
  border: 1px solid rgba(0, 195, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.psc-actions {
  display: flex;
  gap: 6px;
}

.psc-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.psc-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.psc-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.psc-text-box, .psc-prompt-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
}

.psc-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.psc-box-header span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.psc-box-header span.prompt-title {
  color: #00c3ff;
}

.psc-copy-btn {
  background: rgba(0, 195, 255, 0.12);
  border: 1px solid rgba(0, 195, 255, 0.25);
  color: #00c3ff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.psc-copy-btn:hover {
  background: rgba(0, 195, 255, 0.3);
  color: #fff;
}

.psc-content {
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.psc-content b {
  color: #00c3ff;
  font-weight: 700;
}

.psc-prompt-text {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #a5f3fc;
  background: rgba(0, 195, 255, 0.04);
  border: 1px dashed rgba(0, 195, 255, 0.2);
  padding: 10px 12px;
  border-radius: 8px;
  word-break: break-word;
}


/* Prompt Card Box styling */
.prompt-card-box {
  width: 378px;
  background: rgba(12, 18, 40, 0.9);
  border: 1px solid rgba(0, 195, 255, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-top: 8px;
}

.prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prompt-card-header span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #00c3ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-copy-prompt {
  background: rgba(0, 195, 255, 0.15);
  border: 1px solid rgba(0, 195, 255, 0.3);
  color: #00c3ff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-prompt:hover {
  background: rgba(0, 195, 255, 0.3);
  color: #fff;
}

.prompt-card-text {
  font-family: monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 6px;
  word-break: break-word;
}


