/* 
  ToolRanker Master Design System
  TinyWow-Inspired Visual Experience
*/
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eeeffe;
  --secondary: #06b6d4;
  --accent: #10b981;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary-light: #1e1b4b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Navbar */
.navbar {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-brand span {
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-trigger:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.search-bar-large {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-bar-large input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.25rem;
  font-size: 1.05rem;
  border: 2px solid var(--border);
  border-radius: 9999px;
  background-color: var(--card-bg);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all 0.25s ease;
}

.search-bar-large input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.search-bar-large i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3rem 0 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--primary);
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tool-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.tool-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
  flex-shrink: 0;
}


.tool-card:hover .tool-card-icon {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #ffffff;
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}

/* Category Specific Vibrant Tool Card Icon Themes */
.tool-card.cat-pdf-tools .tool-card-icon {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}
.tool-card.cat-pdf-tools:hover .tool-card-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.tool-card.cat-image-tools .tool-card-icon {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  color: #a855f7;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.18);
}
.tool-card.cat-image-tools:hover .tool-card-icon {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.tool-card.cat-text-tools .tool-card-icon {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}
.tool-card.cat-text-tools:hover .tool-card-icon {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.tool-card.cat-other-tools .tool-card-icon {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}
.tool-card.cat-other-tools:hover .tool-card-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
  flex-grow: 1;
}

.btn-open-tool {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.pill-btn:hover, .pill-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* VISUAL TOOL PAGE STYLING */
.tool-page-wrapper {
  padding: 1.5rem 0 3rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.tool-header-visual {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-header-illustration {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tool-header-visual h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tool-short-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Tool Workspace Area */
.tool-workspace {
  background-color: var(--card-bg);
  border: 2px stroke var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.dropzone {
  border: 2.5px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: var(--primary-light);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 1.5rem;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--secondary);
  background-color: rgba(6, 182, 212, 0.08);
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.dropzone h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dropzone p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.btn-upload {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-upload:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.tool-controls {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
}

.btn-process {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.btn-process:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.result-area {
  margin-top: 2rem;
  padding: 1.75rem;
  background-color: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: none;
}

.result-area.active {
  display: block;
}

.result-area h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download:hover {
  background-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* VISUAL HOW IT WORKS SECTION */
.visual-how-it-works {
  margin: 4rem 0;
  text-align: center;
}

.visual-how-it-works h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.step-image {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  object-fit: cover;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

/* FAQ Accordion Section */
.faq-section {
  margin: 4rem 0;
}

.faq-section h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

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

.faq-item.open .faq-answer {
  display: block;
}

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

/* Footer */
footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Ad Placement Placeholder */
.ad-slot {
  background-color: rgba(0,0,0,0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
}

.search-modal.active {
  display: flex;
}

.search-modal-box {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.search-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-modal-header input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.1rem;
  background: transparent;
  color: var(--text-main);
}

.search-modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-item {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-main);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.search-item:hover {
  background-color: var(--primary-light);
}

.search-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .tool-workspace { padding: 1.5rem; }
  .nav-links { display: none; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Other Tools Visual Form & Workspace Components */
.stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card-box {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}

.stat-card-box:hover {
  transform: translateY(-2px);
}

.stat-card-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.result-card-highlight {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
  margin-top: 1.25rem;
}

.result-card-highlight .big-val {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.result-card-highlight .sub-lbl {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 600;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Ultra-Professional Web App Component System */
.pro-app-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
}

.pro-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.pro-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  color: #4f46e5;
  background: #e0e7ff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.pro-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  margin-right: 0.4rem;
}

.pro-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: block;
}

.pro-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.pro-input-icon {
  position: absolute;
  left: 1rem;
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
}

.pro-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.pro-input:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.pro-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pro-select:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.pro-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pro-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
.pro-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; }

@media (max-width: 768px) {
  .pro-grid-2, .pro-grid-3, .pro-grid-4 { grid-template-columns: 1fr; }
}

.pro-val-badge {
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

.pro-range-slider {
  width: 100%;
  accent-color: #4f46e5;
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
}

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

.pro-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
  background: #f1f5f9;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Legal & Information Page Master Styling */
.legal-wrapper {
  padding: 2.5rem 0 4rem;
}

.legal-header {
  background: linear-gradient(135deg, var(--card-bg), var(--primary-light));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.legal-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

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

.legal-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-nav-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.legal-nav-list a:hover, .legal-nav-list a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.legal-content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.legal-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.legal-section-title:first-of-type {
  margin-top: 0;
}

.legal-section-title i {
  color: var(--primary);
  font-size: 1.25rem;
}

.legal-body {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-body p {
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.legal-body ul, .legal-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.legal-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-callout-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.legal-callout p {
  margin-bottom: 0;
  font-size: 0.93rem;
  color: var(--text-main);
}

.legal-contact-box {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.legal-contact-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.legal-contact-box p {
  color: #e0e7ff;
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.legal-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.legal-email-badge:hover {
  background: #ffffff;
  color: #312e81;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

