/* =============================================
   RANKORE - AI SEO OS - GLOBAL STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --brand: #6366f1;
  --brand-light: #818cf8;
  --accent: #10b981;
  --accent-light: #34d399;
  --surface-900: #0a0a0f;
  --surface-800: #0f0f1a;
  --surface-700: #14142a;
  --surface-600: #1a1a35;
  --surface-500: #20203f;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;
  --border: rgba(255,255,255,0.06);
  --glow: 0 0 20px rgba(99,102,241,0.15);
  --glow-strong: 0 0 40px rgba(99,102,241,0.25);
}

/* ===== SCROLLBAR ===== */
.scrollbar-thin::-webkit-scrollbar { width: 4px; height: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== SIDEBAR ===== */
.sidebar {
  background: linear-gradient(180deg, #0f0f1a 0%, #0a0a14 100%);
  box-shadow: 1px 0 20px rgba(0,0,0,0.3);
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #374151;
  padding: 0 8px;
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(99,102,241,0.08);
  color: #c7d2fe;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(16,185,129,0.1));
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow: 0 0 12px rgba(99,102,241,0.1);
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== PANELS ===== */
.panel { display: none; }
.panel.active { display: block; }

/* ===== GLASS CARDS ===== */
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.12);
}

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.stat-trend {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 500;
}

/* ===== QUICK ACTION BUTTONS ===== */
.quick-action-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.quick-action-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.15);
}

.quick-action-icon {
  font-size: 22px;
  font-weight: 700;
}

.quick-action-label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* ===== AXIS CARDS ===== */
.axis-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid;
  border-radius: 12px;
  padding: 16px;
}

.axis-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.axis-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.axis-bar {
  height: 6px;
  border-radius: 3px;
  transition: width 1s ease;
}

.axis-score {
  font-size: 11px;
  font-weight: 700;
}

/* ===== ACTIVITY ===== */
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.activity-row:last-child { border-bottom: none; }

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-time {
  margin-left: auto;
  font-size: 11px;
  color: #374151;
  white-space: nowrap;
}

/* ===== FORM ELEMENTS ===== */
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #f9fafb;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.field-input:focus {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.field-input::placeholder { color: #4b5563; }

.field-input option {
  background: #0f0f1a;
  color: #f9fafb;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-sm {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.btn-outline-sm:hover {
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
  background: rgba(99,102,241,0.06);
}

.btn-ai-sm {
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(16,185,129,0.2));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 8px;
  padding: 8px 10px;
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-ai-sm:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(16,185,129,0.3));
  box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

/* ===== ARTICLE OUTPUT ===== */
.article-output {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 16px;
  max-height: 600px;
  overflow-y: auto;
  line-height: 1.8;
}

.article-output h1 { font-size: 22px; font-weight: 800; color: #f9fafb; margin: 20px 0 10px; }
.article-output h2 { font-size: 18px; font-weight: 700; color: #e5e7eb; margin: 18px 0 8px; border-left: 3px solid #6366f1; padding-left: 10px; }
.article-output h3 { font-size: 15px; font-weight: 600; color: #d1d5db; margin: 14px 0 6px; }
.article-output p { color: #9ca3af; margin-bottom: 12px; }
.article-output ul, .article-output ol { color: #9ca3af; padding-left: 20px; margin-bottom: 12px; }
.article-output li { margin-bottom: 4px; }
.article-output table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-output th { background: rgba(99,102,241,0.15); color: #a5b4fc; font-weight: 600; padding: 8px 12px; font-size: 12px; text-align: left; border: 1px solid rgba(99,102,241,0.2); }
.article-output td { padding: 8px 12px; font-size: 12px; border: 1px solid rgba(255,255,255,0.05); color: #9ca3af; }
.article-output blockquote { border-left: 3px solid #6366f1; padding: 8px 16px; background: rgba(99,102,241,0.05); border-radius: 0 8px 8px 0; margin: 12px 0; color: #a5b4fc; font-style: italic; }
.article-output strong { color: #e5e7eb; }
.article-output .faq-section { background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.15); border-radius: 10px; padding: 16px; margin: 16px 0; }
.article-output .faq-q { font-weight: 700; color: #34d399; margin-bottom: 4px; }
.article-output .faq-a { color: #9ca3af; margin-bottom: 12px; }
.article-output .snippet-box { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); border-radius: 8px; padding: 12px; margin: 12px 0; }
.article-output .cta-box { background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(16,185,129,0.05)); border: 1px solid rgba(99,102,241,0.2); border-radius: 10px; padding: 16px; margin: 16px 0; text-align: center; }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #4b5563;
  text-align: center;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ===== EDITOR ===== */
.editor-area {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.8;
  outline: none;
  transition: border-color 0.2s ease;
  overflow-y: auto;
  max-height: 600px;
}

.editor-area:focus {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

.editor-area[placeholder]:empty:before {
  content: attr(placeholder);
  color: #374151;
  pointer-events: none;
}

.editor-area h1 { font-size: 22px; font-weight: 800; color: #f9fafb; margin: 16px 0 8px; }
.editor-area h2 { font-size: 18px; font-weight: 700; color: #e5e7eb; margin: 14px 0 6px; border-left: 3px solid #6366f1; padding-left: 10px; }
.editor-area h3 { font-size: 15px; font-weight: 600; color: #d1d5db; margin: 12px 0 4px; }
.editor-area p { margin-bottom: 10px; }
.editor-area ul, .editor-area ol { padding-left: 20px; margin-bottom: 10px; }
.editor-area blockquote { border-left: 3px solid #6366f1; padding: 8px 16px; background: rgba(99,102,241,0.05); border-radius: 0 8px 8px 0; margin: 10px 0; color: #a5b4fc; font-style: italic; }
.editor-area table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.editor-area th { background: rgba(99,102,241,0.15); color: #a5b4fc; padding: 8px; font-size: 12px; border: 1px solid rgba(99,102,241,0.2); }
.editor-area td { padding: 8px; font-size: 13px; border: 1px solid rgba(255,255,255,0.06); }

.editor-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 5px 10px;
  color: #9ca3af;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.editor-btn:hover {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border-color: rgba(99,102,241,0.3);
}

.editor-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
  align-self: center;
  display: inline-block;
}

/* ===== SCORE RING ===== */
.score-ring { filter: drop-shadow(0 0 10px rgba(99,102,241,0.3)); }
.score-ring-progress { transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1); }

/* ===== CHECKLIST ===== */
.checklist-item {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.checklist-item::before {
  content: '○';
  font-size: 14px;
  flex-shrink: 0;
}

.checklist-item.pending {
  background: rgba(255,255,255,0.02);
  color: #6b7280;
}

.checklist-item.pass {
  background: rgba(16,185,129,0.08);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.15);
}

.checklist-item.pass::before { content: '✓'; }

.checklist-item.fail {
  background: rgba(239,68,68,0.08);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.15);
}

.checklist-item.fail::before { content: '✗'; }

/* ===== SERP PREVIEW ===== */
.serp-preview {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ===== INTENT BADGE ===== */
.intent-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== KEYWORD CHIPS ===== */
.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kw-chip:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
}

.kw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
}

.kw-row:last-child { border-bottom: none; }

.kw-difficulty {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.kw-easy { background: rgba(16,185,129,0.15); color: #34d399; }
.kw-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.kw-hard { background: rgba(239,68,68,0.15); color: #f87171; }

/* ===== OUTLINE ===== */
.outline-h1 {
  background: rgba(99,102,241,0.1);
  border-left: 4px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 4px 0;
  font-weight: 700;
  color: #a5b4fc;
  font-size: 14px;
}

.outline-h2 {
  background: rgba(16,185,129,0.06);
  border-left: 3px solid #10b981;
  border-radius: 0 8px 8px 0;
  padding: 8px 14px;
  margin: 3px 0;
  margin-left: 16px;
  font-weight: 600;
  color: #34d399;
  font-size: 13px;
}

.outline-h3 {
  background: rgba(139,92,246,0.06);
  border-left: 2px solid #8b5cf6;
  border-radius: 0 6px 6px 0;
  padding: 6px 14px;
  margin: 2px 0;
  margin-left: 32px;
  color: #c4b5fd;
  font-size: 12px;
}

.outline-faq {
  background: rgba(245,158,11,0.08);
  border-left: 2px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 6px 14px;
  margin: 2px 0;
  margin-left: 32px;
  color: #fbbf24;
  font-size: 12px;
  font-style: italic;
}

.outline-snippet {
  background: rgba(236,72,153,0.06);
  border-left: 2px solid #ec4899;
  border-radius: 0 6px 6px 0;
  padding: 6px 14px;
  margin: 2px 0;
  margin-left: 32px;
  color: #f9a8d4;
  font-size: 11px;
}

/* ===== FAQ ITEMS ===== */
.faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-item:hover { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.04); }
.faq-q { font-weight: 600; color: #e5e7eb; font-size: 13px; margin-bottom: 6px; }
.faq-a { font-size: 12px; color: #9ca3af; line-height: 1.6; }

/* ===== SCHEMA OUTPUT ===== */
.schema-output {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
  width: 44px; height: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: linear-gradient(135deg, #6366f1, #10b981);
  border-color: transparent;
}

.toggle-knob {
  position: absolute;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(20px);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #34d399;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
}

.toast.error {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}

.toast.hidden { display: none; }

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

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ===== SUGGESTION ITEMS ===== */
.suggestion-item {
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  font-size: 12px;
  color: #9ca3af;
  border-left: 2px solid rgba(99,102,241,0.3);
  transition: all 0.2s ease;
}

.suggestion-item:hover {
  background: rgba(99,102,241,0.06);
  border-left-color: #6366f1;
  color: #d1d5db;
}

/* ===== SEO FEEDBACK ===== */
.seo-feedback-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11px;
}

.seo-feedback-item:last-child { border-bottom: none; }

/* ===== WP STATUS ===== */
.wp-status-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #34d399;
}

.wp-status-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #f87171;
}

/* ===== GLOW EFFECTS ===== */
.glow-brand { box-shadow: 0 0 20px rgba(99,102,241,0.3); }
.glow-accent { box-shadow: 0 0 20px rgba(16,185,129,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .xl\:col-span-1 { grid-column: span 1; }
  .xl\:col-span-2 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .panel { padding: 16px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .glass-card { border-radius: 12px; }
}

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

.panel.active { animation: fadeIn 0.3s ease; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(99,102,241,0.2); }
  50% { box-shadow: 0 0 20px rgba(99,102,241,0.4); }
}

.logo-icon { animation: pulse-glow 3s ease-in-out infinite; }

/* ===== LIGHT MODE ===== */
body.light-mode {
  background-color: #f8fafc;
  color: #0f172a;
}

body.light-mode .sidebar { background: #ffffff; border-right-color: #e2e8f0; }
body.light-mode .glass-card { background: rgba(255,255,255,0.9); border-color: #e2e8f0; }
body.light-mode .stat-card { background: #ffffff; border-color: #e2e8f0; }
body.light-mode .field-input { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
body.light-mode .field-input::placeholder { color: #94a3b8; }
body.light-mode .nav-item { color: #64748b; }
body.light-mode .nav-item:hover { background: rgba(99,102,241,0.06); color: #4338ca; }
body.light-mode .nav-item.active { color: #4338ca; }
body.light-mode .editor-area { background: #ffffff; color: #0f172a; border-color: #e2e8f0; }
body.light-mode .article-output { background: #f8fafc; }
body.light-mode .article-output p { color: #374151; }
body.light-mode .schema-output { background: #1e293b; }
body.light-mode header { background: rgba(255,255,255,0.9); border-bottom-color: #e2e8f0; }
body.light-mode .nav-section-label { color: #94a3b8; }
body.light-mode .stat-label { color: #64748b; }
body.light-mode .activity-time { color: #94a3b8; }

/* ===== RTL ===== */
body.rtl-mode {
  direction: rtl;
  text-align: right;
}

body.rtl-mode .sidebar { border-right: none; border-left: 1px solid rgba(255,255,255,0.05); }
body.rtl-mode .nav-item { flex-direction: row-reverse; }
body.rtl-mode .outline-h1 { border-left: none; border-right: 4px solid #6366f1; }
body.rtl-mode .outline-h2 { border-left: none; border-right: 3px solid #10b981; margin-left: 0; margin-right: 16px; }
body.rtl-mode .outline-h3 { border-left: none; border-right: 2px solid #8b5cf6; margin-left: 0; margin-right: 32px; }
body.rtl-mode .article-output h2 { border-left: none; border-right: 3px solid #6366f1; padding-left: 0; padding-right: 10px; }
body.rtl-mode .activity-time { margin-left: 0; margin-right: auto; }

/* ===== COMPETITOR CARD ===== */
.competitor-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 12px;
}

.competitor-rank {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99,102,241,0.1);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ===== INTENT TYPES ===== */
.intent-info { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.intent-commercial { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.intent-transactional { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.intent-navigational { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3); color: #c4b5fd; }

/* ===== LINK CARD ===== */
.link-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #9ca3af;
  transition: all 0.2s;
}

.link-card:hover {
  border-color: rgba(99,102,241,0.2);
  color: #d1d5db;
}

.link-anchor { color: #818cf8; font-weight: 500; font-size: 11px; }

/* ===== SERP MINI ===== */
.serp-result-mini {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px;
}

.serp-pos { width: 24px; height: 24px; border-radius: 6px; background: rgba(99,102,241,0.15); color: #818cf8; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ===== LIVE SEO ===== */
.seo-check-pass { color: #34d399; }
.seo-check-warn { color: #fbbf24; }
.seo-check-fail { color: #f87171; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #818cf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PILLAR PAGE ITEM ===== */
.pillar-item {
  background: rgba(255,165,0,0.05);
  border: 1px solid rgba(255,165,0,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fbbf24;
}

/* ===== GAP ITEM ===== */
.gap-item {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== OPPORTUNITY ITEM ===== */
.opportunity-item {
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   RANKORE v2 — AUTH, USERS, ARTICLE HISTORY
   ============================================= */

/* User Menu Dropdown */
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  font-family: inherit;
}

.user-menu-item:hover {
  background: rgba(99,102,241,0.08);
  color: #e5e7eb;
}

/* Article History Cards — extra spacing */
.glass-card .border-white\/4 { border-color: rgba(255,255,255,0.04); }

/* Users table */
#usersTable th, #usersTable td { vertical-align: middle; }
#usersTableBody tr:last-child td { border-bottom: none; }

/* Login Screen Glow */
#loginScreen .glass-card {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.1);
}

/* Force-change modal */
#changePassModal .glass-card {
  border-color: rgba(245,158,11,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(245,158,11,0.08);
}

/* Avatar ring */
#profileAvatarDisplay {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.3);
}

/* Sidebar collapsed */
@media (min-width: 769px) {
  .sidebar.collapsed { width: 0; overflow: hidden; }
  .sidebar.collapsed + .flex-1 { width: 100%; }
}

/* Yoast validation dots */
#yoastValidation div { padding: 2px 0; }

/* WP status */
.wp-status-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #34d399; }
.wp-status-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.2);  border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #f87171; }

/* Article modal */
#articleModal .glass-card {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

/* Role badges in table */
.role-superadmin { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }
.role-admin      { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.2); }
.role-member     { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.2); }

/* Stats hover */
.stat-card:hover .stat-value { color: #a5b4fc; }

/* Dashboard welcome */
#dashWelcomeName { color: #a5b4fc; }

/* Sidebar footer button */
#sidebar .border-t button { border-radius: 8px; }
