/* ==========================================================================
   OmniPost Studio - Modern Multi-Platform Publisher & Video SEO Theme
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(24, 32, 50, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Platform Colors */
  --color-yt: #ff0033;
  --color-yt-hover: #ff2255;
  --color-fb: #1877f2;
  --color-fb-hover: #3b8cf8;
  --color-ig: #e1306c;
  --color-ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

  /* Accents */
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.3);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ════ Ambient Background Blobs ════ */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-yt {
  width: 450px;
  height: 450px;
  background: var(--color-yt);
  top: -100px;
  left: -100px;
}

.blob-fb {
  width: 500px;
  height: 500px;
  background: var(--color-fb);
  top: 40%;
  right: -150px;
}

.blob-ig {
  width: 400px;
  height: 400px;
  background: var(--color-ig);
  bottom: -100px;
  left: 30%;
}

.blob-ai {
  width: 350px;
  height: 350px;
  background: var(--accent-purple);
  top: 10%;
  left: 50%;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

/* ════ App Container Layout ════ */
.app-layout {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px 60px;
}

/* ════ TOP NAVBAR ════ */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  gap: 16px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  font-size: 2.2rem;
  color: var(--color-yt);
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.4));
}

.brand-info h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-info h1 span {
  background: linear-gradient(135deg, #f43f5e, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.nav-platform-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  transition: all 0.3s;
}

.platform-pill i {
  font-size: 0.95rem;
}

.platform-pill.yt i { color: var(--color-yt); }
.platform-pill.fb i { color: var(--color-fb); }
.platform-pill.ig i { color: var(--color-ig); }

.platform-pill .pill-title {
  font-weight: 600;
}

.platform-pill .pill-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.platform-pill.active {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}
.platform-pill.active .pill-status {
  color: var(--accent-green);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
}

.channel-badge img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* ════ NAVIGATION TABS ════ */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(18, 24, 38, 0.5);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(244, 63, 94, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ════ GLASS CARD ════ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.card-header h2, .card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.card-header p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.red-glow { background: rgba(255, 0, 51, 0.15); color: var(--color-yt); border: 1px solid rgba(255, 0, 51, 0.3); }
.purple-glow { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.cyan-glow { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.pink-glow { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); border: 1px solid rgba(236, 72, 153, 0.3); }
.gold-glow { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.fb-glow { background: rgba(24, 119, 242, 0.15); color: var(--color-fb); border: 1px solid rgba(24, 119, 242, 0.3); }
.ig-glow { background: rgba(225, 48, 108, 0.15); color: var(--color-ig); border: 1px solid rgba(225, 48, 108, 0.3); }

/* ════ PUBLISHER GRID ════ */
.publisher-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

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

.publisher-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ════ DROPZONE ════ */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
}

.drop-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dropzone-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dropzone-empty p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.upload-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Video Preview */
.dropzone-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dropzone-preview video {
  width: 100%;
  max-height: 280px;
  border-radius: var(--radius-sm);
  background: #000;
  outline: none;
}

.video-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

/* Thumbnail Section */
.thumbnail-section {
  margin-top: 18px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.thumb-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thumb-dropzone {
  flex: 1;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.thumb-dropzone:hover {
  border-color: var(--accent-cyan);
}

.thumb-dropzone img {
  max-height: 80px;
  border-radius: 4px;
}

/* ════ PLATFORM OPTIONS LIST ════ */
.platforms-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-option {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s;
}

.platform-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.platform-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-title-group strong {
  font-size: 1rem;
}

.platform-title-group .subtext {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.yt-circle { background: rgba(255, 0, 51, 0.15); color: var(--color-yt); }
.fb-circle { background: rgba(24, 119, 242, 0.15); color: var(--color-fb); }
.ig-circle { background: rgba(225, 48, 108, 0.15); color: var(--color-ig); }

/* Switch Slider */
.switch-container {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.platform-subsettings {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.setting-row label {
  color: var(--text-secondary);
}

.setting-info {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ════ FORMS & METADATA CARD ════ */
.form-group {
  margin-bottom: 18px;
}

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

.label-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.counter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-input, .form-textarea, .form-input-sm {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all 0.2s;
}

.form-input-sm {
  padding: 6px 10px;
  font-size: 0.82rem;
  width: auto;
}

.form-textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-input:focus, .form-textarea:focus, .form-input-sm:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.input-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.input-action-btn.primary-btn {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

/* Quick templates bar */
.quick-templates {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* ════ LIVE SEO SCORE METER ════ */
.seo-score-widget {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.score-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.score-dial {
  display: flex;
  align-items: baseline;
  background: rgba(99, 102, 241, 0.15);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.score-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-purple);
}

.score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-text-details h3 {
  font-size: 0.98rem;
  font-weight: 700;
}

.score-text-details p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.score-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  transition: width 0.4s ease;
}

.score-quick-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-row.pass i { color: var(--accent-green); }
.checklist-row.warning i { color: var(--accent-gold); }
.checklist-row.fail i { color: var(--accent-red); }
.checklist-row.info i { color: var(--accent-cyan); }

/* ════ BUTTONS ════ */
.btn, .btn-huge, .btn-sm, .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-huge {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.3);
}

.btn-huge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
}

.primary-gradient {
  background: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 100%);
  color: #fff;
}

.primary-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.primary-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.w-100 { width: 100%; }

.publish-action-bar {
  margin-top: 10px;
}

.security-note {
  text-align: center;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ════ SEO TOOLS TAB ════ */
.seo-studio-header {
  margin-bottom: 24px;
}

.seo-studio-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .seo-tools-grid {
    grid-template-columns: 1fr;
  }
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-group.half {
  flex: 1;
}

.seo-results-box, .tags-output-area, .competitor-results-box, .suggestions-list-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
  min-height: 180px;
  max-height: 380px;
  overflow-y: auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 140px;
  color: var(--text-muted);
  text-align: center;
  gap: 8px;
}

.empty-state i {
  font-size: 2rem;
  opacity: 0.5;
}

/* Title Item Result */
.title-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.title-result-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.title-content {
  flex: 1;
}

.title-text {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.title-tags {
  display: flex;
  gap: 6px;
  font-size: 0.72rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.badge-tag.score {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-weight: 700;
}

.badge-tag.aspect-badge {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
}

/* Tag Chips */
.tag-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  font-size: 0.78rem;
}

/* ════ SETTINGS TAB ════ */
.settings-header, .history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.help-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.help-text code {
  color: var(--accent-cyan);
}

.guide-box, .note-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.guide-box h4 {
  color: var(--text-primary);
  margin-bottom: 6px;
}

.guide-box ol {
  padding-left: 18px;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.test-result-text {
  font-size: 0.8rem;
  font-weight: 600;
}

.test-result-text.success { color: var(--accent-green); }
.test-result-text.error { color: var(--accent-red); }

/* ════ HISTORY LIST ════ */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  gap: 16px;
  flex-wrap: wrap;
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.history-item-info h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.history-item-info p {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.history-item-links {
  display: flex;
  gap: 8px;
}

.platform-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.platform-link-btn.yt { background: rgba(255, 0, 51, 0.15); color: var(--color-yt); }
.platform-link-btn.fb { background: rgba(24, 119, 242, 0.15); color: var(--color-fb); }
.platform-link-btn.ig { background: rgba(225, 48, 108, 0.15); color: var(--color-ig); }

/* ════ MODAL: UPLOAD PROGRESS ════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: #111625;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 24px;
  animation: scaleUp 0.25s ease-out;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
}

.modal-title-group p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform-progress-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.prog-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.prog-bar {
  height: 100%;
  width: 100%;
  border-radius: var(--radius-full);
  animation: indeterminate 2s infinite ease-in-out;
}

.prog-bar.yt-bar { background: var(--color-yt); }
.prog-bar.fb-bar { background: var(--color-fb); }
.prog-bar.ig-bar { background: var(--color-ig); }

@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.prog-link {
  margin-top: 10px;
  font-size: 0.82rem;
}

.prog-link a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.prog-link a:hover {
  text-decoration: underline;
}

.upload-summary-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.upload-summary-box h4 {
  color: var(--accent-green);
  font-size: 1rem;
  margin-bottom: 4px;
}

.upload-summary-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.modal-footer {
  margin-top: 20px;
}

/* ════ TOAST NOTIFICATION ════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #182032;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  color: var(--text-primary);
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
.toast.info { border-left: 4px solid var(--accent-cyan); }

/* Helpers */
.hidden { display: none !important; }
.console-box {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #10b981;
  min-height: 120px;
  max-height: 300px;
  overflow-y: auto;
}
/* Channels Grid for Multi-Account */
.channels-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.channel-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.channel-account-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 0, 51, 0.4);
}

.channel-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-card-left img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 51, 0.4);
}

.channel-card-left h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #fff;
}

.channel-card-left p {
  font-size: 0.74rem;
  color: var(--text-secondary);
}
