/* ==========================================
   DESIGN SYSTEM: 01NET.AI (Clean White & Red)
   ========================================== */

:root {
  /* Color Palette (Light Mode Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  
  --text-primary: #111827;
  --text-secondary: #374151; /* Enhanced contrast for readability */
  --text-muted: #6b7280; /* Enhanced contrast for readability */
  
  --red-primary: #dc2626;
  --red-hover: #b91c1c;
  --red-light: #fef2f2;
  --red-border: #fca5a5;
  
  --border-color: #e5e7eb;
  --border-dark: #d1d5db;
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans);
  
  /* Layout */
  --container-max-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Overrides */
.dark {
  --bg-primary: #0f172a; /* Slate 900 */
  --bg-secondary: #1e293b; /* Slate 800 */
  --bg-tertiary: #334155; /* Slate 700 */
  
  --text-primary: #f8fafc; /* Slate 50 */
  --text-secondary: #cbd5e1; /* Slate 300 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  --red-primary: #ef4444; /* Red 500 */
  --red-hover: #dc2626; /* Red 600 */
  --red-light: rgba(239, 68, 68, 0.1);
  --red-border: #f87171;
  
  --border-color: #334155;
  --border-dark: #475569;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75; /* Improved readability line-height */
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

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

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.top-bar {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-size: 12px;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trending {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-badge {
  background-color: var(--red-primary);
  color: #ffffff;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
}

.trending-text {
  color: var(--bg-secondary);
}

.date-today {
  color: var(--text-muted);
}

/* Header */
.main-header {
  background-color: var(--bg-primary);
  border-bottom: 2px solid var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -1px;
}

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

.logo-black {
  color: var(--text-primary);
}

.logo-white {
  color: var(--bg-primary);
}

.header-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 16px;
  margin-right: auto;
  border-left: 1px solid var(--border-color);
  padding-left: 16px;
}

/* Hero Presentation Section */
.hero-presentation {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-left-content h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-left-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.hero-right-image {
  display: flex;
  justify-content: center;
}

.hero-display-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

/* Ad Containers */
.ad-container {
  max-width: var(--container-max-width);
  margin: 24px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-align: center;
  width: 100%;
}

.ad-slot-fallback {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-dark);
  width: 100%;
  padding: 16px;
  text-align: center;
  border-radius: 4px;
}

.fallback-banner-link {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
}

.fallback-banner-link:hover {
  color: var(--red-primary);
}

.fallback-bold {
  font-weight: 700;
  color: var(--red-primary);
}

/* Hide fallback if Google AdSense code successfully populates */
ins.adsbygoogle[data-ad-status="filled"] ~ .ad-slot-fallback {
  display: none !important;
}

/* Layout Grid */
.main-content {
  padding: 24px 0;
}

.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* Tab Navigation */
.tool-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
  margin-bottom: 24px;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: all 0.15s;
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.tab-btn:hover {
  color: var(--red-primary);
  background-color: var(--bg-secondary);
}

.tab-btn.active {
  color: var(--red-primary);
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  border-bottom: 2px solid var(--bg-primary);
  margin-bottom: -1px;
  box-shadow: 0 -2px 0 var(--red-primary);
}

.tab-btn.active svg {
  color: var(--red-primary);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tool Card */
.tool-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.tool-card h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-intro-text {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 14px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
}

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

.textarea-input {
  height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Sliders */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-header span {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-primary);
  background-color: var(--red-light);
  padding: 2px 6px;
  border-radius: 2px;
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
  margin: 10px 0;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red-primary);
  cursor: pointer;
  transition: transform 0.1s;
}

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

/* Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
  background-color: var(--bg-secondary);
  padding: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  cursor: pointer;
}

/* Drop Zone for file upload */
.drop-zone {
  border: 2px dashed var(--border-dark);
  border-radius: 4px;
  padding: 40px 20px;
  text-align: center;
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--red-primary);
  background-color: var(--red-light);
}

.drop-icon {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.drop-zone:hover .drop-icon {
  color: var(--red-primary);
}

.browse-link {
  color: var(--red-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Image Previews */
.image-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.preview-box {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px;
  background-color: var(--bg-secondary);
  text-align: center;
}

.preview-box h4 {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 2px;
  overflow: hidden;
}

.img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.img-size-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
}

/* Password Display & Strength */
.password-display-wrapper {
  display: flex;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
}

.password-display-wrapper input {
  flex-grow: 1;
  border: none;
  padding: 14px;
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  outline: none;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  text-align: center;
}

.btn-copy-input {
  background-color: var(--bg-tertiary);
  border: none;
  width: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.1s;
}

.btn-copy-input:hover {
  background-color: var(--red-light);
  color: var(--red-primary);
}

.strength-bar-wrapper {
  margin-top: 12px;
}

.strength-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

#strength-text {
  font-weight: 700;
}

.strength-meter {
  height: 6px;
  width: 100%;
  background-color: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

#strength-indicator {
  height: 100%;
  width: 0;
  background-color: var(--red-primary);
  transition: width 0.3s, background-color 0.3s;
}

/* Outputs */
.output-box {
  margin-top: 24px;
  border: 1px solid var(--red-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--red-light);
}

.output-header {
  background-color: var(--red-primary);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.1s;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.3);
}

.output-content {
  padding: 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
}

/* Prompt Library Section */
.prompt-library {
  padding: 56px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.prompt-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prompt-lib-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.prompt-lib-card:hover {
  border-color: var(--red-primary);
}

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

.badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.badge-red {
  background-color: var(--red-light);
  color: var(--red-primary);
  border: 1px solid var(--red-border);
}

.btn-copy-sm {
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 2px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-copy-sm:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background-color: var(--red-light);
}

.btn-copy-sm svg {
  width: 10px;
  height: 10px;
}

.prompt-lib-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.prompt-lib-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Tools Directory Section */
.directory-section-wrapper {
  padding: 56px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-dark);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.filter-btn.active {
  background-color: var(--red-primary);
  border-color: var(--red-primary);
  color: #ffffff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.tool-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  border-color: var(--red-primary);
  box-shadow: 0 4px 12px rgba(220, 38, 37, 0.04);
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tool-icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
}

.tool-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.tool-name-desc h3 {
  font-size: 15.5px;
  font-weight: 700;
}

.tool-cat {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.score-badge {
  background-color: var(--red-light);
  color: var(--red-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-heading);
  border: 1px solid var(--red-border);
}

.tool-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.pricing-info {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
}

/* AI Glossary Section */
.ai-glossary {
  padding: 56px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.glossary-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.glossary-card:hover {
  border-color: var(--red-primary);
}

.glossary-card h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--red-primary);
}

.glossary-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Practical Detailed Guides (SEO Content) */
.practical-guides {
  padding: 56px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.guides-detailed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-detail-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.guide-header-accent {
  height: 4px;
  background-color: var(--red-primary);
  width: 100%;
}

.guide-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide-detail-text {
  font-style: italic;
  border-left: 3px solid var(--border-dark);
  padding-left: 12px;
  margin-top: 4px;
  color: var(--text-secondary);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 56px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease-in-out;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--red-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
  background-color: var(--bg-primary);
}

.faq-item.active .faq-answer {
  max-height: 250px; /* Bounded height for transition */
  padding: 0 24px 20px 24px;
  border-top: 1px solid var(--bg-secondary);
}

.faq-answer p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-red {
  background-color: var(--red-primary);
  color: #ffffff;
}

.btn-red:hover {
  background-color: var(--red-hover);
  color: #ffffff;
}

.btn-outline {
  background: none;
  border: 1px solid var(--red-primary);
  color: var(--red-primary);
}

.btn-outline:hover {
  background-color: var(--red-light);
}

.btn-block {
  width: 100%;
  padding: 14px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11.5px;
}

.icon-sm {
  width: 12px;
  height: 12px;
}

/* Sidebar & Partners */
.panel-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 4px;
}

.partner-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partner-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.partner-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.partner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.partner-name {
  font-weight: 700;
  font-size: 14px;
}

.partner-badge {
  font-size: 9px;
  background-color: var(--red-light);
  color: var(--red-primary);
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  border: 1px solid var(--red-border);
}

.partner-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.partner-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.partner-btn svg {
  width: 12px;
  height: 12px;
}

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

/* Footer */
.main-footer {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  padding: 48px 0 0 0;
  margin-top: 48px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-footer {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

.footer-left p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-links-group a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links-group a:hover {
  color: var(--red-primary);
}

.footer-bottom {
  background-color: #0b0f19;
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
}

.footer-brand-credit {
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================== */

@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-right-image {
    order: -1;
  }
  
  .prompt-library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .guides-detailed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }
  
  .header-tagline {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
    margin-top: 4px;
  }
  
  .tool-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex-grow: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .prompt-library-grid {
    grid-template-columns: 1fr;
  }
  
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  
  .image-preview-row {
    grid-template-columns: 1fr;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar {
    display: none;
  }
}

/* Text Analyzer Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 8px;
  text-align: center;
  transition: border-color 0.15s;
}

.stat-item:hover {
  border-color: var(--red-border);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--red-primary);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-badge {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.keyword-badge:hover {
  border-color: var(--red-border);
  background-color: var(--red-light);
}

.keyword-badge-val {
  color: var(--red-primary);
  font-weight: 700;
  font-size: 11px;
  background-color: var(--red-light);
  padding: 1px 5px;
  border-radius: 9999px;
}

.keyword-placeholder {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
}

/* QR Code Generator Styles */
.qr-tool-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: flex-start;
}

.qr-tool-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
}

.qr-tool-preview-box h4 {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.qr-canvas-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-dark);
  padding: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  max-width: 100%;
}

.qr-canvas-wrapper canvas {
  max-width: 100%;
  height: auto !important;
}

.color-input-box {
  padding: 4px 8px;
  height: 42px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .qr-tool-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.partner-banner-link-img {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: transform 0.15s ease-in-out;
}

.partner-banner-link-img:hover {
  transform: scale(1.02);
}

.partner-promo-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Language Switcher Styles */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.15s;
  outline: none;
}

.lang-btn.active {
  color: var(--red-primary);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Dark Mode Switcher Button */
.dark-mode-toggle {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.dark-mode-toggle:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background-color: var(--red-light);
  transform: translateY(-2px);
}
.dark-mode-toggle svg {
  width: 18px;
  height: 18px;
}

/* Tool & Element Elevation / Interactions */
.tool-card, .panel-card, .prompt-lib-card, .glossary-card, .guide-detail-card, .ad-slot-fallback {
  transition: var(--transition-smooth) !important;
}
.tool-card:hover, .panel-card:hover, .prompt-lib-card:hover, .glossary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.08);
  border-color: var(--red-primary) !important;
}

/* Active highlight accent on hover for tool cards */
.tool-card {
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--red-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}
.tool-card:hover::before {
  transform: scaleY(1);
}

/* AI Model Status Dashboard Styles */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.status-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  transition: var(--transition-smooth);
}
.status-item:hover {
  border-color: var(--red-primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.status-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-ok {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-ok .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.status-warn {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-warn .status-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.status-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}
.metric-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Newsletter Input Validation & Styling */
.newsletter-input-group {
  position: relative;
}
.newsletter-error-text {
  color: var(--red-primary);
  font-size: 11px;
  margin-top: 4px;
  font-weight: 600;
}
.input-error {
  border-color: var(--red-primary) !important;
  background-color: var(--red-light) !important;
}

/* Success Confirmation Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: modal-fade-in 0.3s forwards;
}
@keyframes modal-fade-in {
  to { opacity: 1; }
}
.modal-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.9);
  animation: modal-zoom-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes modal-zoom-in {
  to { transform: scale(1); }
}
.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-icon-success {
  width: 48px;
  height: 48px;
  color: #10b981;
}
.modal-card p {
  font-size: 13.5px;
  color: var(--text-secondary) !important;
  line-height: 1.6;
}

/* General improvements for readability & dark mode contrast */
.hero-presentation p, .tool-intro-text, .prompt-lib-desc, .glossary-card p, .guide-card-body p, .faq-answer p {
  color: var(--text-secondary);
}
.logo-white {
  color: var(--text-primary) !important;
}
.dark .logo-footer .logo-white {
  color: #ffffff !important;
}
.dark .logo-footer .logo-red {
  color: var(--red-primary) !important;
}
.dark .partner-banner-link-img {
  background-color: #ffffff;
}

/* Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--red-primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Animations & Transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Floating animation applied to partner banners for visual density */
.partner-banner-link-img {
  animation: float 5s ease-in-out infinite;
}

.partner-banner-link-img:hover {
  animation-play-state: paused;
  transform: scale(1.02);
}

/* Custom styling for specific inputs inside sidebar widgets */
#sidebar-tokens-input {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
}

#sidebar-tokens-input:focus {
  border-color: var(--red-primary);
}

/* Custom fade animation for library cards onload */
.prompt-lib-card, .glossary-card, .tool-card {
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.prompt-lib-card:nth-child(1) { animation-delay: 0.05s; }
.prompt-lib-card:nth-child(2) { animation-delay: 0.1s; }
.prompt-lib-card:nth-child(3) { animation-delay: 0.15s; }
.prompt-lib-card:nth-child(4) { animation-delay: 0.2s; }
.prompt-lib-card:nth-child(5) { animation-delay: 0.25s; }
.prompt-lib-card:nth-child(6) { animation-delay: 0.3s; }
.prompt-lib-card:nth-child(7) { animation-delay: 0.35s; }
.prompt-lib-card:nth-child(8) { animation-delay: 0.4s; }
.prompt-lib-card:nth-child(9) { animation-delay: 0.45s; }
.prompt-lib-card:nth-child(10) { animation-delay: 0.5s; }
.prompt-lib-card:nth-child(11) { animation-delay: 0.55s; }
.prompt-lib-card:nth-child(12) { animation-delay: 0.6s; }

/* Carousel Widget Styling */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 4px;
}

.carousel-track {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
}

.carousel-slide {
  min-width: 100%;
  display: none;
  flex-direction: column;
}

.carousel-slide.active {
  display: flex;
  animation: fadeInSlide 0.4s ease-in-out forwards;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.carousel-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dark .carousel-control-btn {
  background-color: rgba(30, 41, 59, 0.95);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.carousel-control-btn:hover {
  background-color: var(--red-primary);
  color: #ffffff;
  border-color: var(--red-primary);
}

.carousel-control-btn.prev {
  left: 6px;
}

.carousel-control-btn.next {
  right: 6px;
}

.carousel-control-btn svg {
  width: 14px;
  height: 14px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  background-color: var(--border-dark);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--red-primary);
  transform: scale(1.3);
}
