/* ==========================================================================
   GLOBAL SETTINGS & VARIABLES
   ========================================================================== */
:root {
  --bg-color: #060713;
  --bg-gradient-start: #080918;
  --bg-gradient-end: #03040b;
  --panel-bg: rgba(13, 16, 32, 0.65);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-border-focus: rgba(0, 240, 255, 0.4);
  
  --text-main: #e2e8f0;
  --text-muted: #8e9bb0;
  --text-dark: #0f172a;
  
  /* Neon Color Palette */
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff007f;
  --neon-purple: #9d4edd;
  --neon-green: #39ff14;
  --neon-yellow: #ffea00;
  
  /* Shadow Glows */
  --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.35);
  --glow-magenta: 0 0 15px rgba(255, 0, 127, 0.35);
  --glow-purple: 0 0 15px rgba(157, 78, 221, 0.35);
  --glow-green: 0 0 15px rgba(57, 255, 20, 0.35);
  
  --font-tech: 'Orbitron', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  background-image: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   CYBER DECORATIONS (BACKGROUND ELEMENTS)
   ========================================================================== */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(18, 24, 58, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 58, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.15;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
  top: -100px;
  right: -50px;
  animation: pulse-orb 10s infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--neon-magenta);
  bottom: -150px;
  left: -100px;
  animation: pulse-orb 14s infinite alternate-reverse;
}

@keyframes pulse-orb {
  0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
  100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.22; }
}

/* ==========================================================================
   APP LAYOUT CONTAINER
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ==========================================================================
   SIDEBAR (LEFT PANEL)
   ========================================================================== */
.sidebar {
  width: 380px;
  min-width: 380px;
  background: rgba(8, 10, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  z-index: 15;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.sidebar-header {
  padding: 25px 25px 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  font-family: var(--font-tech);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
}

.brand .highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  margin-left: 32px;
}

/* Panel Sections */
.panel-section {
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-family: var(--font-tech);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* Form inputs & UI Controls */
.input-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

input[type="url"],
input[type="text"],
input[type="password"],
textarea,
select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.02);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

select option {
  background-color: #121824;
  color: var(--text-main);
}

/* Password wrapper input */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.btn-icon {
  position: absolute;
  right: 5px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
  font-size: 14px;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--neon-cyan);
}

/* Verify WordPress section badge */
.wp-verify-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}

.badge {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-disconnected {
  background: rgba(255, 0, 127, 0.1);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 127, 0.25);
}

.status-connected {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.25);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.15);
}

/* Buttons Styles */
.btn-primary,
.btn-secondary,
.btn-next,
.btn-prev {
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-magenta) 0%, #7b2cbf 100%);
  color: white;
  border: none;
  padding: 15px 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-magenta);
}

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

/* Scanner animation line inside primary buttons */
.scanner-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: scan 2.5s infinite;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 10px 18px;
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: var(--glow-cyan);
}

.btn-secondary:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  background: transparent;
}

/* Platform selector tabs */
.platform-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
}

.platform-tab-btn:hover {
  color: var(--text-main);
}

.platform-tab-btn.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 5px rgba(0, 240, 255, 0.15);
}

/* Google Login hint text */
.google-login-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Google Sign-in Button */
.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-google-login:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

/* Google Account Card (after login) */
.google-account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.google-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.3);
  flex-shrink: 0;
}

.google-account-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.google-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.step-item.active {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.15);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-item.active .step-num {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: var(--text-dark);
  box-shadow: var(--glow-cyan);
}

.step-item.completed .step-num {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--text-dark);
  box-shadow: var(--glow-green);
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  flex-grow: 1;
}

.step-item.active .step-label {
  color: var(--text-main);
  font-weight: 600;
}

.step-arrow {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition);
}

.step-item.active .step-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--neon-cyan);
}

/* ==========================================================================
   MAIN CONTENT AREA (RIGHT PANEL)
   ========================================================================== */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Header Status Bar */
.main-header {
  height: 60px;
  min-height: 60px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(8, 10, 24, 0.5);
  backdrop-filter: blur(10px);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: var(--glow-green);
  position: relative;
}

.status-indicator.online::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--neon-green);
  border-radius: 50%;
  left: 0;
  top: 0;
  transform: scale(2.5);
  opacity: 0;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.server-info {
  font-family: var(--font-tech);
  display: flex;
  align-items: center;
  gap: 12px;
}

.separator {
  color: rgba(255, 255, 255, 0.1);
}

.highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

/* Panel cards and tab sheets */
.panels-container {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar for panels container */
.panels-container::-webkit-scrollbar {
  width: 6px;
}
.panels-container::-webkit-scrollbar-track {
  background: transparent;
}
.panels-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tab-panel {
  display: none;
  height: 100%;
  flex-direction: column;
}

.tab-panel.active {
  display: flex;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-card-header {
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-card-header h2 {
  font-family: var(--font-tech);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.panel-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-left: 32px;
}

.text-cyan { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }
.text-magenta { color: var(--neon-magenta); text-shadow: 0 0 8px rgba(255, 0, 127, 0.3); }
.text-purple { color: var(--neon-purple); text-shadow: 0 0 8px rgba(157, 78, 221, 0.3); }
.text-green { color: var(--neon-green); text-shadow: 0 0 8px rgba(57, 255, 20, 0.3); }

.panel-card-body {
  padding: 30px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Custom scrollbar for panel body */
.panel-card-body::-webkit-scrollbar {
  width: 6px;
}
.panel-card-body::-webkit-scrollbar-track {
  background: transparent;
}
.panel-card-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.panel-card-footer {
  padding: 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-next {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 12px 25px;
}
.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.btn-next:disabled {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-prev {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 12px 25px;
}
.btn-prev:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.3);
}

.glow-blue { box-shadow: var(--glow-cyan); }
.glow-magenta { box-shadow: var(--glow-magenta); }
.glow-purple { box-shadow: var(--glow-purple); }
.glow-green { box-shadow: var(--glow-green); }

/* ==========================================================================
   STEP 1 SPECIFIC STYLES (EDITOR)
   ========================================================================== */
.editor-tabs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.editor-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.editor-tab-btn.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 5px rgba(0, 240, 255, 0.1);
}

.editor-container {
  flex-grow: 1;
  position: relative;
  min-height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.editor-pane {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  overflow-y: auto;
  outline: none;
}

.editor-pane.active {
  display: block;
}

/* Rich Preview styling */
#editor-preview {
  color: var(--text-main);
  line-height: 1.7;
}

#editor-preview h1 {
  font-family: var(--font-tech);
  margin-bottom: 25px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

#editor-preview h2 {
  font-family: var(--font-tech);
  font-size: 20px;
  color: var(--neon-cyan);
  margin-top: 30px;
  margin-bottom: 15px;
}

#editor-preview p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
}

#editor-preview ul, #editor-preview ol {
  margin-left: 20px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
}

#editor-preview li {
  margin-bottom: 6px;
}

/* Source Code text editor */
.source-textarea {
  background: #090b11;
  border: none;
  border-radius: 0;
  color: #a5d6ff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  resize: none;
  line-height: 1.6;
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 250px;
  color: var(--text-muted);
  text-align: center;
  padding: 30px;
}

.empty-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
}

.empty-state p {
  font-size: 14px;
}

/* ==========================================================================
   STEP 2 SPECIFIC STYLES (PROMPTS)
   ========================================================================== */
.prompts-grid {
  display: flex;
  gap: 30px;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}

.prompts-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}

.prompts-column h3 {
  font-family: var(--font-tech);
  font-size: 14px;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompts-column h3 i {
  color: var(--neon-cyan);
}

.scroll-container {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 5px;
}

/* Scroll styling */
.scroll-container::-webkit-scrollbar {
  width: 4px;
}
.scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* Individual Prompt Cards */
.prompt-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  transition: var(--transition);
}

.prompt-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.2);
}

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

.prompt-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.prompt-placeholder {
  font-family: var(--font-tech);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.prompt-textarea {
  width: 100%;
  background: #090b11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  resize: vertical;
  line-height: 1.5;
}

.video-prompt-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-prompt-box label {
  font-size: 12px;
  color: var(--text-muted);
}

.video-prompt-box textarea {
  background: #090b11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  resize: none;
  font-size: 13px;
  line-height: 1.5;
}

.prompt-tips {
  background: rgba(0, 240, 255, 0.03);
  border-left: 2px solid var(--neon-cyan);
  padding: 10px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   STEP 3 SPECIFIC STYLES (MEDIA GENERATION)
   ========================================================================== */
.media-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 25px;
}

.media-stats {
  font-family: var(--font-tech);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-grid {
  display: flex;
  gap: 30px;
  flex-grow: 1;
  overflow: hidden;
}

.showcase-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}

.showcase-box h3 {
  font-family: var(--font-tech);
  font-size: 14px;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Media Item Card inside Showcase */
.media-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.media-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.media-preview-container {
  width: 100%;
  height: 160px;
  background: #090b11;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.media-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-preview-img:hover {
  transform: scale(1.05);
}

.media-btn-generate {
  width: 100%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 8px 15px;
  border-radius: 6px;
  font-family: var(--font-tech);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}

.media-btn-generate:hover {
  background: var(--neon-cyan);
  color: var(--text-dark);
  box-shadow: var(--glow-cyan);
}

/* Spinner and Loaders */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--neon-cyan);
  font-size: 12px;
  font-family: var(--font-tech);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 240, 255, 0.1);
  border-left-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.video-preview-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  justify-content: center;
}

.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #090b11;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   STEP 4 SPECIFIC STYLES (WORDPRESS PUBLISH)
   ========================================================================== */
.publish-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.publish-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
}

.publish-info-card h3 {
  font-family: var(--font-tech);
  font-size: 15px;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-info-card h3 i {
  color: var(--neon-cyan);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.summary-table tr:last-child td {
  border-bottom: none;
}

.summary-table td:first-child {
  color: var(--text-muted);
  width: 30%;
  font-weight: 500;
}

.summary-table td:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.publish-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.publish-actions .inline-group {
  flex-direction: row;
  align-items: center;
  gap: 15px;
  width: 100%;
  justify-content: center;
}

.publish-actions .inline-group label {
  margin: 0;
}

.btn-primary.glow-green {
  background: linear-gradient(135deg, var(--neon-green) 0%, #137547 100%);
  color: white;
  border: none;
  font-size: 15px;
  max-width: 500px;
  padding: 18px 30px;
  box-shadow: var(--glow-green);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary.glow-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
}

/* Success Card */
.success-card {
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 15px;
  animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.success-icon {
  font-size: 42px;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
}

.success-card h3 {
  font-family: var(--font-tech);
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}

.success-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.success-card a {
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   TERMINAL CONSOLE LOGS (BOTTOM PANEL)
   ========================================================================== */
.terminal-panel {
  height: 180px;
  min-height: 180px;
  margin: 0 30px 30px 30px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(5, 6, 12, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-header {
  height: 38px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-title {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.terminal-title i {
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.btn-text-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-text-clear:hover {
  color: var(--neon-magenta);
}

.terminal-body {
  flex-grow: 1;
  padding: 12px 15px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-body::-webkit-scrollbar {
  width: 4px;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.log-line {
  color: #a5d6ff;
}

.log-line.system-msg {
  color: #8b949e;
}

.log-line.info-msg {
  color: var(--neon-cyan);
}

.log-line.success-msg {
  color: var(--neon-green);
}

.log-line.error-msg {
  color: var(--neon-magenta);
  font-weight: bold;
}

/* ==========================================================================
   SILO / PILLAR STRUCTURE ENGINE STYLES
   ========================================================================== */

/* Top row: 2 columns */
.silo-top-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}

/* Left input box */
.silo-input-box {
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

/* Info cards: silo vs pillar */
.silo-info-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.silo-info-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  transition: var(--transition);
  cursor: default;
}

.silo-info-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.03);
}

.silo-info-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.silo-info-card strong {
  font-size: 12px;
  color: var(--text-main);
  display: block;
  margin-bottom: 3px;
}

.silo-info-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Right preview box */
.silo-preview-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.silo-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.silo-preview-header h3 {
  font-size: 13px;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tree view container */
.silo-tree-container {
  flex: 1;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-main);
  padding: 4px 0;
}

.silo-tree-container::-webkit-scrollbar { width: 4px; }
.silo-tree-container::-webkit-scrollbar-track { background: transparent; }
.silo-tree-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.tree-line-pillar { color: var(--neon-cyan); font-weight: 700; }
.tree-line-silo { color: var(--neon-magenta); font-weight: 600; margin-top: 6px; }
.tree-line-sub { color: var(--text-main); }
.tree-line-cluster { color: #a78bfa; }
.tree-kw { color: var(--text-muted); font-size: 10px; font-style: italic; }

/* Schedule row under preview */
.silo-preview-actions {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
  animation: fadeIn 0.3s ease;
}

.silo-schedule-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.silo-schedule-row select {
  flex: 1;
  min-width: 110px;
  padding: 9px 10px;
  font-size: 12px;
}

.silo-schedule-row button {
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 12px;
}

/* Plans section */
.silo-plans-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

.silo-plans-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.silo-plans-header h3 {
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.silo-plans-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual plan card */
.silo-plan-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 20px;
  transition: var(--transition);
  animation: fadeIn 0.3s ease;
}

.silo-plan-card:hover {
  border-color: rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.02);
}

.silo-plan-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.silo-plan-type-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-silo {
  background: rgba(255, 0, 127, 0.15);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 127, 0.3);
}

.badge-pillar {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.silo-plan-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.silo-plan-id {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  margin-top: 3px;
}

/* Progress bar */
.silo-progress-wrap {
  margin: 10px 0;
}

.silo-progress-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.silo-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), #1e40af);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.silo-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* Plan action buttons */
.silo-plan-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.silo-btn-sm {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
}

.silo-btn-sm:hover { background: rgba(255,255,255,0.04); color: var(--text-main); }
.silo-btn-sm.danger { border-color: rgba(255,0,127,0.3); color: var(--neon-magenta); }
.silo-btn-sm.danger:hover { background: rgba(255,0,127,0.08); }
.silo-btn-sm.primary { border-color: rgba(0,240,255,0.3); color: var(--neon-cyan); }
.silo-btn-sm.primary:hover { background: rgba(0,240,255,0.06); }

/* Status badges in plan card */
.status-badge-sm {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.status-scheduled { background: rgba(0,240,255,0.12); color: var(--neon-cyan); border: 1px solid rgba(0,240,255,0.25); }
.status-pending { background: rgba(255,234,0,0.1); color: var(--neon-yellow); border: 1px solid rgba(255,234,0,0.2); }
.status-done { background: rgba(57,255,20,0.1); color: var(--neon-green); border: 1px solid rgba(57,255,20,0.2); }
.status-paused { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }
.status-publishing { background: rgba(157,78,221,0.15); color: var(--neon-purple); border: 1px solid rgba(157,78,221,0.3); }

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

/* Loading spinner for silo */
.silo-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Articles List inside Plan Card */
.silo-plan-articles-list-toggle {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 12px;
  color: var(--neon-cyan);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.silo-plan-articles-list-toggle:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.silo-plan-articles-list {
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Custom scrollbar for articles list */
.silo-plan-articles-list::-webkit-scrollbar {
  width: 5px;
}
.silo-plan-articles-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
.silo-plan-articles-list::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
}

.silo-art-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 12px;
}
.silo-art-item:last-child {
  border-bottom: none;
}

.silo-art-status-icon {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.silo-art-content {
  flex: 1;
}

.silo-art-title {
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
}

.art-published-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
}
.art-published-link:hover {
  text-decoration: underline;
}

.silo-art-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.silo-art-meta code {
  background: rgba(255,255,255,0.05);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-tech);
  color: var(--text-main);
}

.silo-art-meta .art-time {
  color: var(--neon-cyan);
  font-weight: 500;
}

.art-status-published {
  background: rgba(0, 255, 128, 0.01);
}
.art-status-failed {
  background: rgba(255, 0, 128, 0.02);
}
.art-status-writing {
  background: rgba(0, 240, 255, 0.02);
}

