
:root {
  --bg-primary: #0a0715;
  --bg-secondary: #110c26;
  --bg-tertiary: #171133;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-focus: rgba(138, 43, 226, 0.4);
  
  --color-text-main: #f3f0ff;
  --color-text-muted: #9f96c0;
  
  --accent-primary: #8a2be2;      /* Purple */
  --accent-secondary: #00e5ff;    /* Cyan */
  --accent-gradient: linear-gradient(135deg, #8a2be2 0%, #00e5ff 100%);
  --accent-glow: 0 0 25px rgba(138, 43, 226, 0.35);
  
  --status-success: #00e676;
  --status-warning: #ffb300;
  --status-error: #ff1744;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 10, 35, 1) 0%, rgba(10, 7, 21, 1) 100%);
  background-attachment: fixed;
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 85px; /* Offset for sticky navbar */
}

/* -------------------------------------------------------------
   Navigation Bar (Floating & Sticky)
   ------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  z-index: 1000;
  padding: 0.75rem 2rem;
  border-radius: 16px;
  background: rgba(10, 7, 21, 0.7);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.brand-icon svg {
  fill: #fff;
  width: 18px;
  height: 18px;
}

.nav-brand span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.nav-brand span span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--color-text-main);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Mobile Hamburger Menu */
.burger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
}

.burger-line {
  width: 22px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: all 0.3s ease;
}

.mobile-nav-links {
  display: none;
  flex-direction: column;
  list-style: none;
  gap: 1.25rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 0.75rem;
  background: rgba(10, 7, 21, 0.95);
  border-radius: 12px;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  display: block;
  transition: all 0.2s ease;
}

.mobile-nav-link.active {
  color: var(--accent-secondary);
}

/* -------------------------------------------------------------
   Common Header Styling for SPA Views
   ------------------------------------------------------------- */
.view-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.view-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 40%, #c3b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.5;
}

/* -------------------------------------------------------------
   Router System (SPA Views Switcher)
   ------------------------------------------------------------- */
.router-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  position: relative;
}

.spa-view {
  display: none;
}

.spa-view.active {
  display: block;
  animation: viewFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

/* -------------------------------------------------------------
   Options & Drag/Drop Elements (Salvager Dashboard)
   ------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.options-bar {
  padding: 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.options-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.options-title svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-secondary);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: var(--accent-secondary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-secondary);
}

.checkbox-label input[type="checkbox"]:checked {
  border-color: var(--accent-secondary);
  background: rgba(0, 229, 255, 0.05);
}

.checkbox-label input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.checkbox-label:hover input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Upload Dropzone Container */
.upload-container {
  overflow: hidden;
  margin-bottom: 2rem;
}

.dropzone {
  border: 2px dashed var(--glass-border);
  border-radius: 20px;
  padding: 4.5rem 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(138, 43, 226, 0.003);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.dropzone.dragover {
  border-color: var(--accent-secondary);
  background: rgba(0, 229, 255, 0.02);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
  transform: scale(0.995);
}

.upload-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dropzone:hover .upload-icon-container {
  background: rgba(138, 43, 226, 0.05);
  border-color: var(--accent-primary);
  box-shadow: var(--accent-glow);
  transform: translateY(-5px);
}

.upload-icon-container svg {
  width: 38px;
  height: 38px;
  fill: var(--color-text-muted);
  transition: all 0.3s ease;
}

.dropzone:hover .upload-icon-container svg {
  fill: var(--color-text-main);
}

.upload-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.upload-text span {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.upload-hint {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 300;
}

#fileInput {
  display: none;
}

/* Loading Panel */
.loading-panel {
  display: none;
  padding: 3.5rem 2rem;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.shimmer-loader {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.shimmer-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent-primary), transparent);
  animation: shimmer 2.2s infinite linear;
}

.status-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  opacity: 0.5;
}

.status-step.active {
  color: var(--color-text-main);
  opacity: 1;
  font-weight: 500;
}

.status-step.completed {
  color: var(--status-success);
  opacity: 0.9;
}

.status-step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.status-step.active .status-step-icon {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary);
  background: rgba(0, 229, 255, 0.1);
}

.status-step.completed .status-step-icon {
  border-color: var(--status-success);
  background: rgba(0, 230, 118, 0.1);
}

/* -------------------------------------------------------------
   Results Display (Workspace Panels)
   ------------------------------------------------------------- */
.results-container {
  display: none; /* Block or Grid when active */
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
}

/* Left Sidebar - Diagnostics */
.sidebar-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: fit-content;
}

.panel-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-header svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-primary);
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  align-items: center;
}

.meta-label {
  color: var(--color-text-muted);
}

.meta-value {
  font-weight: 500;
  color: var(--color-text-main);
  max-width: 170px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: right;
}

.health-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.health-badge.healthy {
  background: rgba(0, 230, 118, 0.1);
  color: var(--status-success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.health-badge.damaged {
  background: rgba(255, 179, 0, 0.1);
  color: var(--status-warning);
  border: 1px solid rgba(255, 179, 0, 0.2);
}

/* Diagnostics Logs */
.diagnostic-log {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.log-item {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  word-break: break-all;
}

.log-item.info { color: var(--color-text-muted); }
.log-item.success { color: var(--status-success); }
.log-item.warn { color: var(--status-warning); }
.log-item.error { color: var(--status-error); }

/* Right Panel - Text Display Workspace */
.workspace-panel {
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
}

.workspace-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.preview-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}

/* Editor / Preview Area */
.text-editor-container {
  flex: 1;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

.text-area {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem;
  color: var(--color-text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  display: none;
}

.text-area:focus {
  background: rgba(255, 255, 255, 0.005);
}

.rendered-preview {
  width: 100%;
  height: 100%;
  padding: 2rem;
  overflow-y: auto;
  line-height: 1.7;
  font-size: 0.95rem;
  display: none;
}

.rendered-preview p {
  margin-bottom: 1.2rem;
}

.rendered-preview h1, .rendered-preview h2, .rendered-preview h3 {
  font-family: 'Outfit', sans-serif;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.rendered-preview h1 { font-size: 1.8rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.4rem; }
.rendered-preview h2 { font-size: 1.4rem; }
.rendered-preview h3 { font-size: 1.15rem; }

.rendered-preview ul, .rendered-preview ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.rendered-preview li {
  margin-bottom: 0.4rem;
}

.rendered-preview code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.rendered-preview pre {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.2rem;
}

.rendered-preview pre code {
  background: transparent;
  padding: 0;
}

/* -------------------------------------------------------------
   VIEW 2: FAQ & Help Guide Layout
   ------------------------------------------------------------- */
.help-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.015);
}

.faq-question h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-secondary);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: rgba(0, 0, 0, 0.15);
}

.faq-answer p {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.help-widget {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.help-widget h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent-secondary);
}

.help-widget p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.help-widget ul {
  list-style-position: inside;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* -------------------------------------------------------------
   VIEW 3: Privacy Policy Layout
   ------------------------------------------------------------- */
.text-content-panel {
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.text-content-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--accent-secondary);
}

.text-content-panel h3:first-of-type {
  margin-top: 0;
}

.text-content-panel p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* -------------------------------------------------------------
   VIEW 4: Sitemap Page Layout
   ------------------------------------------------------------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sitemap-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sitemap-card-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.sitemap-card-header h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-secondary);
}

.sitemap-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sitemap-card li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.sitemap-card a {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sitemap-card a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* -------------------------------------------------------------
   Footer Layout
   ------------------------------------------------------------- */
.footer {
  background: rgba(7, 5, 15, 0.9);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.trust-badges {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-secondary);
}

.footer-links-col h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--color-text-main);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  color: var(--status-success);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-success);
  animation: pulse 2s infinite;
}

/* -------------------------------------------------------------
   Animations & Responsive Utilities
   ------------------------------------------------------------- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* -------------------------------------------------------------
   Media Queries & Responsiveness
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .results-container {
    grid-template-columns: 1fr;
  }
  .help-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 75px;
  }
  .navbar {
    width: 95%;
    padding: 0.6rem 1.25rem;
  }
  .nav-links {
    display: none;
  }
  .burger-menu {
    display: flex;
  }
  .navbar.menu-open .mobile-nav-links {
    display: flex;
  }
  .navbar.menu-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .navbar.menu-open .burger-line:nth-child(2) {
    opacity: 0;
  }
  .navbar.menu-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .options-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
  .checkbox-group {
    flex-direction: column;
    gap: 0.8rem;
  }
  .workspace-panel {
    height: 480px;
  }
  .text-content-panel {
    padding: 1.5rem;
  }
}

/* -------------------------------------------------------------
   Premium Articles Section & Cards
   ------------------------------------------------------------- */
.seo-articles-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.seo-articles-section .section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.seo-articles-section h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 40%, #c3b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.article-card:hover::before {
  opacity: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
}

.article-tag {
  background: rgba(138, 43, 226, 0.15);
  color: var(--color-text-main);
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 0.25rem 0.60rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.read-time {
  color: var(--color-text-muted);
}

.article-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-text-main);
  transition: color 0.3s ease;
}

.article-card:hover h3 {
  color: var(--accent-secondary);
}

.excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.article-body {
  display: none; /* Hidden on card grid, shown inside the modal */
}

/* Card Button Link */
.btn-read-article {
  background: transparent;
  border: none;
  color: var(--accent-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  width: fit-content;
  transition: all 0.3s ease;
}

.btn-read-article svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-read-article:hover {
  color: var(--color-text-main);
  text-decoration: none;
}

.btn-read-article:hover svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   Glassmorphic Overlay Modal Reader
   ------------------------------------------------------------- */
.article-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 5, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: none; /* Toggled by JavaScript */
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.article-modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: rgba(15, 10, 35, 0.95);
  border: 1px solid var(--glass-border-focus);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(138, 43, 226, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-modal-overlay.active .article-modal-container {
  transform: translateY(0) scale(1);
}

.article-modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.article-modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.article-modal-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.article-modal-close:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(90deg);
}

.article-modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

/* Modal Typography Styles */
.article-modal-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-secondary);
}

.article-modal-body p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.article-modal-body ul, .article-modal-body ol {
  margin-left: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.article-modal-body li {
  margin-bottom: 0.5rem;
}

.article-modal-body li strong {
  color: var(--color-text-main);
}

.article-modal-body code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--accent-secondary);
}

/* Prevent Background Scroll when Modal is Open */
body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* -------------------------------------------------------------
   Responsive Styles for Articles
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .seo-articles-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
  }
  .seo-articles-section h2 {
    font-size: 1.8rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .article-card {
    padding: 1.5rem;
  }
  .article-card h3 {
    font-size: 1.15rem;
  }
  .article-modal-overlay {
    padding: 1rem;
  }
  .article-modal-container {
    max-height: 90vh;
    border-radius: 16px;
  }
  .article-modal-header {
    padding: 1.25rem 1.5rem 1rem;
    gap: 1rem;
  }
  .article-modal-header h2 {
    font-size: 1.35rem;
  }
  .article-modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
  }
  .article-modal-body h4 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
  }
}

/* -------------------------------------------------------------
   Spreadsheet to JSON & CSV Cleaner Layouts
   ------------------------------------------------------------- */
.rendered-preview table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-main);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.rendered-preview th, .rendered-preview td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.rendered-preview th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.rendered-preview tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* -------------------------------------------------------------
   API Payload JSON Diff Tool
   ------------------------------------------------------------- */
.diff-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.diff-input-card {
  display: flex;
  flex-direction: column;
  height: 350px;
  overflow: hidden;
}

.diff-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.diff-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.diff-badge.badge-valid {
  background: rgba(0, 230, 118, 0.1);
  color: var(--status-success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.diff-badge.badge-invalid {
  background: rgba(255, 23, 68, 0.1);
  color: var(--status-error);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

.diff-badge.badge-empty {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid var(--glass-border);
}

.diff-textarea {
  width: 100%;
  flex: 1;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  padding: 1.25rem;
  color: var(--color-text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.diff-textarea:focus {
  background: rgba(0, 0, 0, 0.25);
}

.diff-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 1.5rem;
}

.diff-summary-badges {
  display: flex;
  gap: 0.5rem;
}

.diff-summary-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.diff-summary-badge.add {
  background: rgba(0, 230, 118, 0.1);
  color: var(--status-success);
}

.diff-summary-badge.remove {
  background: rgba(255, 23, 68, 0.1);
  color: var(--status-error);
}

.diff-summary-badge.modify {
  background: rgba(255, 179, 0, 0.1);
  color: var(--status-warning);
}

.diff-line {
  display: flex;
  padding: 0.15rem 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 4px;
}

.diff-line.diff-add {
  background: rgba(0, 230, 118, 0.08);
  color: #a6e22e;
}

.diff-line.diff-remove {
  background: rgba(255, 23, 68, 0.08);
  color: #f92672;
}

.diff-line.diff-modify {
  background: rgba(255, 179, 0, 0.08);
  color: #e6db74;
}

.diff-line.diff-context {
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------
   Image Compressor Elements
   ------------------------------------------------------------- */
.compressor-grid select {
  font-size: 0.9rem;
}

.compressor-grid input[type="range"] {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-secondary);
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .compressor-grid {
    grid-template-columns: 1fr !important;
  }
  .diff-split-container {
    grid-template-columns: 1fr;
  }
}
