/* ==========================================================================
   TIER C UNIVERSAL MASTER BLUEPRINT - GLASSMORPHISM THEME
   Style: Modern Interactive Light Theme Glassmorphism
   Theme: Soft Slate Ice (#F8FAFC), ambient indigo/violet radial blurs (#EEF2FF to #F3E8FF)
   Accent: Electric Indigo (#4F46E5) to Royal Violet (#7C3AED) gradients
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg-slate-ice: #F8FAFC;
  --glass-surface: rgba(255, 255, 255, 0.85);
  --glass-card: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(226, 232, 240, 0.85);

  --indigo-primary: #4F46E5;
  --violet-secondary: #7C3AED;
  --gradient-cta: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-glow: rgba(99, 102, 241, 0.25);

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --emerald-success: #10B981;
  --rose-danger: #F43F5E;

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

  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(79, 70, 229, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 12px 28px -4px rgba(99, 102, 241, 0.35);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-slate-ice);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Blur Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-indigo {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238, 242, 255, 0.85) 0%, rgba(248, 250, 252, 0) 70%);
  top: -100px;
  left: -100px;
}

.glow-violet {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(243, 232, 255, 0.8) 0%, rgba(248, 250, 252, 0) 70%);
  top: 300px;
  right: -150px;
}

.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   BLOCK 1: GLOBAL NAVIGATION HEADER
   ========================================================================== */
.glass-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon-gradient {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brand-sub-badge {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--indigo-primary);
  letter-spacing: 0.06em;
}

/* Center Search Box */
.search-trigger-box {
  display: none;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 1rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.825rem;
  cursor: pointer;
  width: 360px;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .search-trigger-box {
    display: flex;
  }
}

.search-trigger-box:hover {
  background: #FFFFFF;
  border-color: var(--indigo-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-placeholder {
  flex: 1;
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn-link {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-btn-link:hover {
  color: var(--indigo-primary);
  background: #EEF2FF;
}

.theme-toggle-btn {
  background: #EEF2FF;
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--indigo-primary);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: #E0E7FF;
  border-color: var(--indigo-primary);
}

.nav-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--glass-border);
  display: inline-block;
}

.btn-signup-gradient {
  background: var(--gradient-cta);
  color: #FFFFFF;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.btn-signup-gradient:hover {
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN PAGE CONTAINER
   ========================================================================== */
.page-container {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ==========================================================================
   BLOCK 2: TOOL HERO HEADER
   ========================================================================== */
.hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.bc-link {
  color: var(--text-muted);
  text-decoration: none;
}

.bc-link:hover {
  color: var(--indigo-primary);
}

.bc-sep {
  color: var(--text-light);
}

.bc-current {
  color: var(--indigo-primary);
  font-weight: 600;
}

.hero-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  max-width: 800px;
}

.hero-icon-glowing {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-cta);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.35rem;
}

.hero-subtitle code {
  color: var(--indigo-primary);
  background: #EEF2FF;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   BLOCK 3: INTERACTIVE TOOL WORKSPACE CANVAS (PRIMARY ACTION AREA)
   ========================================================================== */
.glass-card {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.workspace-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.input-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-try-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
}

.quick-try-label {
  color: var(--text-muted);
  font-weight: 500;
}

.preset-pill {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-pill:hover {
  background: #EEF2FF;
  color: var(--indigo-primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.input-field-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

@media (min-width: 640px) {
  .input-field-bar {
    flex-direction: row;
    align-items: center;
  }
}

.input-field-bar input {
  flex: 1;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.input-field-bar input:focus {
  background: #FFFFFF;
  border-color: var(--indigo-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.options-toggle-btn {
  background: #FFFFFF;
  border: 1px solid var(--glass-border);
  color: var(--indigo-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.options-toggle-btn:hover {
  background: #EEF2FF;
  border-color: rgba(99, 102, 241, 0.3);
}

.options-drawer {
  padding-top: 1.25rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.options-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .options-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.options-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.select-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.select-field label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-main);
}

.select-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text-main);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.custom-chk {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-main);
  cursor: pointer;
}

.custom-chk input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--indigo-primary);
  cursor: pointer;
}

/* Action Trigger Bar */
.action-trigger-bar {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-cta-gradient {
  background: var(--gradient-cta);
  color: #FFFFFF;
  width: 100%;
  max-width: 380px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.btn-cta-gradient:hover {
  box-shadow: 0 16px 36px -4px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-rose-stop {
  background: #FFF1F2;
  color: var(--rose-danger);
  border: 1px solid #FFE4E6;
  width: 100%;
  max-width: 380px;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-rose-stop:hover {
  background: #FFE4E6;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-subtle);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

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

.btn-dark-code {
  background: #1E293B;
  color: #F1F5F9;
  border: 1px solid #334155;
  padding: 0.45rem 0.85rem;
  font-size: 0.775rem;
}

.btn-dark-code:hover {
  background: #334155;
}

.btn-violet-gradient {
  background: var(--gradient-cta);
  color: #FFFFFF;
  padding: 0.45rem 1rem;
  font-size: 0.775rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-violet-gradient:hover {
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

/* Error Banner */
.alert-banner-rose {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #FFF1F2;
  border: 1px solid #FFE4E6;
  color: var(--rose-danger);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* Output Panel (Result Code Viewer) */
.output-panel {
  background: #0F172A;
  border-radius: var(--radius-xl);
  border: 1px solid #1E293B;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: #F1F5F9;
  margin-top: 1rem;
}

.output-header-bar {
  padding: 1.125rem 1.5rem;
  background: #020617;
  border-bottom: 1px solid #1E293B;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.output-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.code-badge-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818CF8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-name-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.code-filename {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.status-pill-green {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.725rem;
  font-weight: 700;
}

.status-pill-crawling {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.725rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.code-url-sub {
  font-size: 0.75rem;
  color: #94A3B8;
  font-family: var(--font-mono);
}

.output-action-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-editor-canvas {
  padding: 1.25rem;
  max-height: 520px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  line-height: 1.65;
}

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

.code-table tr:hover {
  background: rgba(30, 41, 59, 0.6);
}

.line-num {
  width: 2.75rem;
  user-select: none;
  text-align: right;
  padding-right: 1.25rem;
  color: #475569;
  font-size: 0.725rem;
  border-right: 1px solid rgba(51, 65, 85, 0.7);
}

.line-content {
  padding-left: 1.25rem;
  white-space: pre;
}

.xml-meta { color: #94A3B8; font-style: italic; }
.xml-tag { color: #38BDF8; font-weight: 600; }
.xml-url { color: #34D399; text-decoration: underline; text-underline-offset: 2px; }
.xml-val { color: #FDE047; }

.output-footer-info {
  padding: 0.75rem 1.5rem;
  background: #020617;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
}

/* ==========================================================================
   BLOCK 4: EDUCATIONAL CONTENT & SEO SECTION (BELOW THE FOLD)
   ========================================================================== */
.seo-educational-block {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 1rem;
}

.seo-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.seo-h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.steps-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(79, 70, 229, 0.15);
  line-height: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 4 Feature Grid Cards */
.features-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card-glass {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.feature-card-glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feat-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-glass h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card-glass p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--indigo-primary);
}

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

.faq-answer code {
  color: var(--indigo-primary);
  background: #EEF2FF;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   BLOCK 5: RELATED TOOLS CAROUSEL & FOOTER
   ========================================================================== */
.carousel-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
}

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

.carousel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.carousel-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.c-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.carousel-track-wrapper {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  min-width: 100%;
}

.tool-card-mini {
  flex: 0 0 260px;
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tool-card-mini:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.t-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-mini h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.tool-card-mini p {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.t-link {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--indigo-primary);
  margin-top: 0.25rem;
}

/* Global Footer */
.global-footer {
  border-top: 1px solid var(--glass-border);
  background: #FFFFFF;
  margin-top: 5rem;
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.55;
}

.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

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

.footer-col a {
  text-decoration: none;
  font-size: 0.825rem;
  color: var(--text-muted);

}

.footer-col a:hover {
  color: var(--indigo-primary);
}

.footer-bottom {
  max-width: 1320px;
  margin: 3rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* History Side Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 28rem;
  height: 100%;
  background: #FFFFFF;
  box-shadow: var(--shadow-modal);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
}

.close-btn:hover {
  color: var(--text-main);
  background: #E2E8F0;
}

.drawer-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item-card {
  padding: 1.125rem;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item-card:hover {
  border-color: var(--indigo-primary);
  box-shadow: var(--shadow-card);
}

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

.history-url {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.history-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #EEF2FF;
  color: var(--indigo-primary);
  font-size: 0.725rem;
  font-weight: 700;
}

.history-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.history-load-link {
  font-weight: 700;
  color: var(--indigo-primary);
}

.drawer-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.btn-text-danger {
  background: none;
  border: none;
  color: var(--rose-danger);
  font-weight: 700;
  cursor: pointer;
}

.btn-text-danger:hover {
  text-decoration: underline;
}

/* Utilities */
.hidden { display: none !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.icon-indigo { color: var(--indigo-primary); }
.counter-badge {
  margin-left: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--indigo-primary);
  color: white;
}
