/* ============================================================
   1. ROOT VARIABLES & THEMES
   ============================================================ */
:root {
  /* 🌟 THE FOXIX PREMIUM ORANGE BRAND PALETTE */
  --primary-color: #ff7300;
  /* Core Fierce Thunder Orange */
  --primary-dark: #cc5c00;
  /* Deep Shadow Amber Hover */
  --primary-light: #ff8c33;
  /* Balanced Soft Bright Accent */
  --secondary-color: #ff9c26;
  /* Light Sun Secondary Accent */
  --accent-color: #ffa842;
  /* Radiant Highlight Tone */

  /* Default Light Mode Base Surfaces */
  --bg-primary: #fdf0e0;
  /* Soft Premium Bone White background */
  --bg-secondary: #fef5ec;
  /* Structural card background layer */
  --bg-tertiary: #e5e7eb;
  /* Tool inner wells / blocks */
  --text-primary: #0f172a;
  /* Deep slate charcoal text (super crisp) */
  --text-secondary: #475569;
  /* Classy slate secondary text descriptions */
  --text-tertiary: #94a3b8;
  /* Subtle utility details / placeholders */
  --border-color: #e2e8f0;
  /* Clean hairline separation borders */

  /* Glass Panels - Light Mode Accent Tones */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 115, 0, 0.08);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(255, 115, 0, 0.06);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);

  /* Spacing (Untouched) */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius (Untouched) */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions (Untouched) */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Font (Untouched) */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
}

/* 🌙 Premium Space Dark Mode Override */
body.dark-mode {
  --bg-primary: #0b0f17;
  /* High-end Deep Cyber Space Black */
  --bg-secondary: #09101F;
  /* Sleek card containers panels */
  --bg-tertiary: #1e293b;
  /* Focused dark active tabs / inner fields */
  --text-primary: #f8fafc;
  /* Clear high-contrast clean ice white */
  --text-secondary: #94a3b8;
  /* Clean soft description details text */
  --text-tertiary: #64748b;
  /* Understated muted tags / shortcuts labels */
  --border-color: #1e293b;
  /* Midnight slate element divider borders */

  /* Glass Panels - Dark Mode Accent Glows */
  --glass-bg: rgba(11, 15, 23, 0.8);
  --glass-border: rgba(255, 115, 0, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   2. GLOBAL STYLES
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* Prevent layout shift on scrollbar */
html {
  overflow-y: scroll;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 115, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 115, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-card {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
}

.btn-card:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#sub-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-block;
  text-align: center;
}

/* ============================================================
   5. NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-img {
  height: 40px;
  /* Sets a perfect, clean size inside the navbar */
  width: auto;
  /* Maintains your logo's exact aspect ratio */
  object-fit: contain;
  display: block;
}

.logo-icon {
  font-size: var(--font-size-2xl);
}

.nav-links {
  display: flex;
  gap: var(--spacing-2xl);
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-xl);
  transition: transform var(--transition-normal);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

.tool-search {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  width: 200px;
  transition: all var(--transition-normal);
}

.tool-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: var(--spacing-xs);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

/* ============================================================
   HERO
============================================================ */

.page-shell {
  max-width: 1300px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.hero-panel {
  width: 100%;
  padding: 40px;
  margin-bottom: 35px;
}

.tool-header {
  text-align: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  max-width: 800px;
  margin: auto;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ============================================================
   WORKSPACE
============================================================ */

.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.editor-pane {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  border-bottom: 1px solid var(--border-color);
}

.pane-header h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pane-header p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.pane-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.mode-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 25px 0;
}

.mode-selector-wrapper label {
  font-weight: 600;
}

.glass-select {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.glass-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.textarea-container {
  padding: 25px;
  flex: 1;
  position: relative;
}

textarea {
  width: 100%;
  min-height: 420px;
  border-radius: 22px;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 20px;
  resize: none;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1rem;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 115, 0, 0.1);
}

textarea::placeholder {
  color: var(--text-tertiary);
}

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

.stats {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.primary-btn {
  border: none;
  padding: 14px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.output-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-badge {
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.stat-badge.success {
  color: var(--success);
}

.stat-badge.info {
  color: var(--primary-color);
}

/* ============================================================
   LOADER
============================================================ */

.loading-overlay {
  position: absolute;
  inset: 25px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.hidden {
  display: none !important;
}

.loader {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.dot {
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: bounce 1.3s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: .15s;
}

.dot:nth-child(3) {
  animation-delay: .3s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.loader-text {
  color: white;
  font-weight: 500;
}

/* ============================================================
   6. PREMIUM SIDEBAR UTILITY ELEMENTS
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-top: 30px;
}

.premium-card {
  /* 🌐 Uses your dynamic container colors */
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.6s ease-out;
  /* 🌐 Switches hairline colors seamlessly */
  border: 2px solid var(--border-color);
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: white;
}

.premium-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.merge-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.merge-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.explore-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}

.explore-btn:hover {
  transform: translateY(-2px);
}

.features-list {
  list-style: none;
  margin-top: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.features-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.features-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  font-size: var(--font-size-lg);
}

.features-list li a {
  /* 🌐 Dynamic link shift */
  color: var(--text-secondary);
  text-decoration: underline dotted;
}

.features-list li a:hover {
  font-weight: bold;
  transform: translateY(-2px);
}

.features-list li:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

/* ============================================================
   10. FAQ SECTION
   ============================================================ */

.faq {
  padding: var(--spacing-3xl) 0;
  background-color: var(--bg-secondary);
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-lg);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: transform var(--transition-normal);
}

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

.faq-answer {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  margin-bottom: 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
}

/* ============================================================
   11. BLOG SECTION
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header p {
  text-align: center;
  color: var(--text-secondary);
}

.blog {
  padding: var(--spacing-3xl) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--spacing-3xl);
  width: 100%;
  margin-top: var(--spacing-xl);
  /* 🌐 Fix: Prevents the left box from stretching vertically */
  align-items: start;
}

.blog-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  transition: all var(--transition-normal);
  cursor: pointer;

  /* 🌐 Fix: Structural Sizing Locks */
  width: 100%;
  /* Allows it to completely fill its 350px grid track */
  max-width: 350px;
  /* Hard-locks its horizontal growth ceiling */
  height: auto;
  /* Snaps its height perfectly around its text content */
}

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

.blog-image {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
}

.blog-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.blog-card p {
  margin-bottom: var(--spacing-lg);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.blog-date {
  font-weight: 500;
}

.blog-category {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ============================================================
   MAIN BLOG CONTAINER
   ============================================================ */

.main-blog {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  transition: all var(--transition-normal);

  width: 100%;

  /* Scrollable Blog */
  height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

.main-blog::-webkit-scrollbar {
  width: 8px;
}

.main-blog::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

.main-blog::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.main-blog::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============================================================
   BLOG TYPOGRAPHY
   ============================================================ */

.main-blog h2 {
  margin-bottom: 25px;
  line-height: 1.4;
}

.main-blog h3 {
  margin-top: 35px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.main-blog h4 {
  margin-top: 25px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.main-blog p {
  margin-bottom: 18px;
  line-height: 1.9;
}

.main-blog ul {
  margin: 18px 0 25px 30px;
}

.main-blog li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.main-blog strong {
  color: var(--text-primary);
}

.main-blog a {
  color: var(--primary-color);
}

.main-blog a:hover {
  color: var(--primary-dark);
}

/* ============================================================
   12. NEWSLETTER SECTION
   ============================================================ */

.newsletter {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.newsletter-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-2xl);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.newsletter-form input {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
}

.newsletter-form button {
  padding: var(--spacing-md) var(--spacing-2xl);
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.form-message {
  font-size: var(--font-size-sm);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.form-message.show {
  opacity: 1;
}

/* ============================================================
   13. FOOTER
   ============================================================ */

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-section h4 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.footer-section p {
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-md);
}

.footer-section a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Ensure the link container handles the inline SVG properly */
.social-links a.insta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Match the exact vector stroke to your white text color */
.insta-icon {
  width: 18px;
  /* Micro-adjusted to match the visual height of text icons */
  height: 18px;
  stroke: currentColor;
  /* Automatically forces the SVG color to match 'white' from your parent class */
  transition: transform var(--transition-normal);
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-2xl);
}

.footer-bottom p {
  margin: var(--spacing-md) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ============================================================
   TOAST
============================================================ */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 22px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 992px) {

  .workspace,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    min-height: auto;
  }
}

@media (max-width: 768px) {

  .main-blog {
    height: 400px;
    max-height: 400px;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
  }

  .main-blog h2 {
    font-size: 1.5rem;
  }

  .main-blog h3 {
    font-size: 1.3rem;
  }

  .main-blog h4 {
    font-size: 1.1rem;
  }

  .main-blog p {
    line-height: 1.8;
  }

  .main-blog ul {
    margin-left: 22px;
  }

  .nav-links,
  .tool-search {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: none;
  }

  .hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
  }

  .hero-panel,
  .editor-pane {
    padding: 0;
  }

  .pane-header,
  .pane-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    flex-direction: column;
  }

  textarea {
    min-height: 260px;
  }
}