/* FormTools - Global Style System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Font System */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Light Theme Color System (Peach Gradient System) */
  --bg-primary: #fffcfb; /* Soft Peach Mist */
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffebe5; /* Pale Warm Peach Dust */
  
  --text-primary: #1c0d0a; /* Warm Charcoal Black */
  --text-secondary: #4a342f; /* Deep Warm Slate */
  --text-muted: #826c67; /* Soft Cocoa Gray */
  
  --primary-500: #e25c34; /* Premium Deep Coral Peach */
  --primary-600: #c94620;
  --primary-700: #b03310;
  
  --accent-500: #ff8a65; /* Vibrant Sunset Peach */
  --accent-600: #ff7043;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --border-color: rgba(226, 92, 52, 0.12);
  --border-focus: rgba(226, 92, 52, 0.4);
  
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(226, 92, 52, 0.08);
  --card-shadow: 0 10px 30px -10px rgba(74, 52, 47, 0.08);
  --glow-shadow: 0 0 25px rgba(226, 92, 52, 0.12);
  
  --nav-bg: rgba(255, 255, 255, 0.9);
  
  --gradient-primary: linear-gradient(135deg, #e25c34 0%, #ff8a65 100%);
  --gradient-glow: linear-gradient(135deg, rgba(226, 92, 52, 0.1) 0%, rgba(255, 138, 101, 0.1) 100%);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides (Warm Obsidian & Luminous Terracotta) */
[data-theme="dark"] {
  --bg-primary: #0d0908; /* Luxury Deep Obsidian Peach */
  --bg-secondary: #17110f; /* Premium warm volcanic slab */
  --bg-tertiary: #241a17; /* Dark cocoa accent */
  
  --text-primary: #fff2ee;
  --text-secondary: #ebdcd6;
  --text-muted: #a3918a;
  
  --primary-500: #e25c34; /* Warm Deep Peach */
  --primary-600: #f4511e;
  --primary-700: #ff7043;
  
  --accent-500: #ff8a65; /* Bright Dynamic Coral */
  --accent-600: #ffab91;
  
  --border-color: rgba(226, 92, 52, 0.18); /* Terracotta Borders */
  --border-focus: rgba(226, 92, 52, 0.6);
  
  --card-bg: rgba(23, 17, 15, 0.85);
  --card-border: rgba(226, 92, 52, 0.2);
  --card-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.6);
  --glow-shadow: 0 0 30px rgba(226, 92, 52, 0.25);
  
  --nav-bg: rgba(13, 9, 8, 0.92);
  
  --gradient-primary: linear-gradient(135deg, #e25c34 0%, #ff8a65 100%);
  --gradient-glow: linear-gradient(135deg, rgba(226, 92, 52, 0.2) 0%, rgba(255, 138, 101, 0.2) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

img {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Premium Layout Core */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  stroke: var(--primary-500);
  fill: none;
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

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

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-primary);
  transition: transform var(--transition-normal);
}

[data-theme="dark"] .theme-toggle-btn svg {
  transform: rotate(360deg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 72px);
  background-color: var(--bg-secondary);
  z-index: 99;
  padding: 40px 24px;
  transition: left var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav.open {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

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

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.btn-icon {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  filter: blur(150px);
  border-radius: var(--radius-full);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px auto;
}

/* Live Search Container */
.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px 10px 6px 20px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
}

.search-bar:focus-within {
  border-color: var(--primary-500);
  box-shadow: var(--glow-shadow);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  font-size: 16px;
  padding: 10px 0;
  color: var(--text-primary);
}

.search-bar svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
  fill: none;
  margin-right: 12px;
}

/* Stats Badges */
.stats-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-badge {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--card-shadow);
}

.stat-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

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

/* Category Filter Bar */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.tool-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-500);
  box-shadow: var(--glow-shadow), 0 20px 40px -15px rgba(0,0,0,0.1);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.tool-icon {
  background: var(--gradient-glow);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-500);
  fill: none;
}

.tool-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tool-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-card:hover .tool-link {
  color: var(--accent-600);
}

/* AdSense Banner Styles */
.adsense-placeholder {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  padding: 15px;
  text-align: center;
  border-radius: var(--radius-md);
  margin: 30px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  overflow: hidden;
}

.adsense-placeholder::before {
  content: 'ADVERTISEMENT';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.adsense-placeholder.top-banner {
  max-width: 728px;
  margin: 20px auto 40px auto;
  height: 90px;
}

.adsense-placeholder.sidebar-ad {
  min-height: 250px;
  width: 100%;
}

.adsense-placeholder.in-content {
  width: 100%;
  min-height: 120px;
}

/* Tool Interactive Layout */
.tool-header-section {
  padding: 40px 0 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.tool-header-section h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.tool-header-section p {
  color: var(--text-secondary);
  font-size: 16px;
}

.tool-workspace-container {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

.tool-settings-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: fit-content;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-ctrl, .select-ctrl {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  width: 100%;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.input-ctrl:focus, .select-ctrl:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--border-focus);
}

/* Aspect Lock Switch */
.switch-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .3s;
  border-radius: var(--radius-full);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-500);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Range Sliders */
.range-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.range-ctrl {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  outline: none;
}

.range-ctrl::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-500);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

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

/* Interactive Canvas / Preview Workspace */
.tool-preview-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  position: relative;
}

.drag-drop-zone {
  border: 2px dashed var(--primary-500);
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--gradient-glow);
  transition: all var(--transition-normal);
  padding: 40px;
  text-align: center;
}

.drag-drop-zone:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--accent-500);
}

.drag-drop-zone svg {
  width: 64px;
  height: 64px;
  stroke: var(--primary-500);
  fill: none;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

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

.drag-drop-zone h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.drag-drop-zone p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.hidden-file-input {
  display: none;
}

/* Main Workspace with canvas */
.workspace-active-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.canvas-container {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-image: linear-gradient(45deg, var(--bg-tertiary) 25%, transparent 25%),
                    linear-gradient(-45deg, var(--bg-tertiary) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, var(--bg-tertiary) 75%),
                    linear-gradient(-45deg, transparent 75%, var(--bg-tertiary) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.canvas-container canvas {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  max-width: 100%;
  height: auto;
}

.preview-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* Rich SEO Content Section */
.seo-content-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.seo-rich-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.seo-rich-text h2 {
  font-size: 26px;
  color: var(--text-primary);
  margin: 32px 0 16px 0;
}

.seo-rich-text h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 24px 0 12px 0;
}

.seo-rich-text p {
  margin-bottom: 16px;
}

.seo-rich-text ul, .seo-rich-text ol {
  margin: 0 0 20px 24px;
}

.seo-rich-text li {
  margin-bottom: 8px;
}

/* Accordion FAQs */
.faq-accordion {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-trigger {
  padding: 18px 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  transition: transform var(--transition-normal);
}

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

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
  stroke: var(--primary-500);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content p {
  padding: 0 24px 20px 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Premium Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

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

.footer-brand {
  grid-column: span 2;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Presets Container Styles */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.preset-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.preset-chip:hover, .preset-chip.active {
  background: var(--primary-500);
  color: white;
  border-color: transparent;
}

/* Responsive Rules */
@media(max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }
  .tool-workspace-container {
    grid-template-columns: 1fr;
  }
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .navbar {
    height: 64px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 15px;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .preview-actions {
    flex-direction: column;
  }
  .preview-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   RESUME & COVER LETTER WORKSTATION LAYOUTS & TEMPLATES (16)
   ========================================================================== */

.resume-preview-sheet {
  background: #ffffff !important;
  color: #1e293b !important;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
  text-align: left;
  width: 100%;
  max-width: 800px;
  min-height: 900px;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

/* Template 1: Simple */
.resume-preview-sheet.template-simple {
  font-family: 'Georgia', serif;
  border-top: 4px solid var(--primary-500);
}
.resume-preview-sheet.template-simple h1 { font-size: 26px; font-weight: 500; text-align: center; margin-bottom: 5px; }
.resume-preview-sheet.template-simple h2 { font-size: 14px; text-transform: uppercase; border-bottom: 1px solid #ccc; padding-bottom: 3px; margin-top: 15px; color: var(--primary-500); }

/* Template 2: Creative */
.resume-preview-sheet.template-creative {
  border-left: 12px solid var(--accent-500);
}
.resume-preview-sheet.template-creative h1 { font-family: var(--font-heading); font-size: 28px; color: var(--primary-500); }
.resume-preview-sheet.template-creative h2 { font-family: var(--font-heading); color: var(--accent-500); font-size: 15px; margin-top: 15px; background: rgba(220, 38, 38, 0.05); padding: 4px 8px; border-radius: 4px; }

/* Template 3: Modern */
.resume-preview-sheet.template-modern h1 { font-size: 32px; font-weight: 800; text-transform: uppercase; background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.resume-preview-sheet.template-modern h2 { border-bottom: 2px solid var(--accent-500); color: var(--primary-500); font-size: 16px; margin-top: 15px; }

/* Template 4: Professional */
.resume-preview-sheet.template-professional {
  border: 1px solid var(--primary-500);
  border-top: 8px solid var(--primary-500);
}
.resume-preview-sheet.template-professional h1 { font-size: 24px; color: var(--primary-500); border-bottom: 2px double var(--primary-500); padding-bottom: 6px; }
.resume-preview-sheet.template-professional h2 { color: var(--primary-500); font-size: 14px; text-transform: uppercase; margin-top: 15px; }

/* Template 5: Balanced */
.resume-preview-sheet.template-balanced {
  text-align: center;
}
.resume-preview-sheet.template-balanced .section-block { text-align: left; }
.resume-preview-sheet.template-balanced h1 { font-size: 28px; border-bottom: 1px dashed var(--primary-500); padding-bottom: 8px; }
.resume-preview-sheet.template-balanced h2 { font-size: 15px; text-align: center; color: var(--accent-500); margin-top: 15px; }

/* Template 6: Specialist */
.resume-preview-sheet.template-specialist {
  background-color: #fafbfc !important;
}
.resume-preview-sheet.template-specialist h1 { font-size: 26px; font-weight: 700; color: #111827; }
.resume-preview-sheet.template-specialist h2 { color: var(--primary-500); font-size: 14px; border-bottom: 2px solid var(--primary-500); padding-bottom: 2px; margin-top: 15px; }

/* Template 7: Corporate */
.resume-preview-sheet.template-corporate {
  border-top: 10px solid #111827;
}
.resume-preview-sheet.template-corporate h1 { font-size: 26px; font-weight: 800; color: #111827; text-align: left; }
.resume-preview-sheet.template-corporate h2 { font-size: 14px; font-weight: 700; border-bottom: 2px solid #374151; padding-bottom: 4px; color: #374151; margin-top: 15px; }

/* Template 8: Executive */
.resume-preview-sheet.template-executive {
  border-top: 6px solid var(--primary-500);
  border-bottom: 6px solid var(--accent-500);
}
.resume-preview-sheet.template-executive h1 { font-size: 28px; text-align: center; font-weight: 700; color: var(--primary-500); letter-spacing: 1px; }
.resume-preview-sheet.template-executive h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--primary-500); border-bottom: 1px solid var(--primary-500); padding-bottom: 4px; margin-top: 15px; }

/* Template 9: Visionary */
.resume-preview-sheet.template-visionary {
  background: linear-gradient(to bottom, #ffffff 80%, #f9fafb 100%) !important;
}
.resume-preview-sheet.template-visionary h1 { font-size: 30px; font-weight: 800; color: var(--primary-500); }
.resume-preview-sheet.template-visionary h2 { font-size: 15px; color: var(--accent-500); border-bottom: 1px solid var(--accent-500); margin-top: 15px; }

/* Template 10: Clear */
.resume-preview-sheet.template-clear h1 { font-size: 24px; font-weight: 300; letter-spacing: 2px; text-align: center; }
.resume-preview-sheet.template-clear h2 { font-size: 13px; font-weight: 400; text-transform: uppercase; border-bottom: 1px solid #e5e7eb; padding-bottom: 4px; margin-top: 15px; text-align: center; letter-spacing: 1px; }

/* Template 11: Essential */
.resume-preview-sheet.template-essential {
  padding: 24px;
}
.resume-preview-sheet.template-essential h1 { font-size: 22px; font-weight: 700; }
.resume-preview-sheet.template-essential h2 { font-size: 13px; border-bottom: 1px solid #000; padding-bottom: 2px; margin-top: 10px; font-weight: 700; }

/* Template 12: Polished */
.resume-preview-sheet.template-polished h1 { font-size: 28px; font-family: 'Times New Roman', serif; font-weight: 700; border-bottom: 1px solid #475569; padding-bottom: 5px; }
.resume-preview-sheet.template-polished h2 { font-size: 14px; font-family: 'Times New Roman', serif; font-weight: 700; color: #475569; margin-top: 15px; text-transform: uppercase; }

/* Template 13: Elegant */
.resume-preview-sheet.template-elegant {
  font-family: 'Baskerville', serif;
}
.resume-preview-sheet.template-elegant h1 { font-size: 30px; font-weight: normal; font-style: italic; text-align: center; }
.resume-preview-sheet.template-elegant h2 { font-size: 14px; border-bottom: 1px solid #111827; padding-bottom: 2px; font-style: italic; margin-top: 15px; }

/* Template 14: Authority */
.resume-preview-sheet.template-authority {
  border-top: 12px solid var(--primary-500);
}
.resume-preview-sheet.template-authority h1 { font-size: 28px; font-weight: 900; color: var(--primary-500); text-transform: uppercase; }
.resume-preview-sheet.template-authority h2 { font-size: 15px; font-weight: 800; border-bottom: 3px solid var(--primary-500); padding-bottom: 4px; color: var(--primary-500); margin-top: 15px; text-transform: uppercase; }

/* Template 15: Halftone */
.resume-preview-sheet.template-halftone {
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px) !important;
  background-size: 10px 10px !important;
}
.resume-preview-sheet.template-halftone h1 { font-size: 28px; font-weight: 800; color: #111827; text-shadow: 1px 1px 0px #fff, 2px 2px 0px var(--accent-500); }
.resume-preview-sheet.template-halftone h2 { font-size: 14px; border-bottom: 2px dashed var(--accent-500); padding-bottom: 4px; margin-top: 15px; }

/* Template 16: Statement */
.resume-preview-sheet.template-statement {
  background-color: #fcfcfc !important;
}
.resume-preview-sheet.template-statement h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.resume-preview-sheet.template-statement h2 { font-size: 14px; font-weight: 800; background: #000; color: #fff; padding: 4px 8px; display: inline-block; margin-top: 15px; }


/* Premium Footer Grid System & Social Icons styling */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.footer-support-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  min-width: 250px;
  box-shadow: var(--card-shadow);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-500);
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary-500);
  border-radius: var(--radius-full);
}

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

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.footer-col ul li a:hover {
  color: var(--primary-500);
  transform: translateX(4px);
}

.footer-col ul li a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 24px;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: #ffffff !important;
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--glow-shadow);
  border-color: transparent;
}

.social-icon svg {
  transition: transform var(--transition-normal);
}

.social-icon:hover svg {
  transform: scale(1.15) rotate(8deg);
}

/* Luxury Transitions and hover effects for the entire website */
.tool-card, .drag-drop-zone, .settings-sidebar, .card, .btn {
  transition: all var(--transition-normal);
}

.tool-card:hover, .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow), var(--glow-shadow);
  border-color: var(--primary-500);
}

/* Beautiful Peach-glow pulse button animation */
@keyframes peachPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 92, 52, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(226, 92, 52, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 92, 52, 0);
  }
}

.btn-primary:hover {
  animation: peachPulse 1.5s infinite;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 92, 52, 0.3);
}

/* Micro-interaction on theme toggler */
.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  background: var(--bg-tertiary);
  color: var(--primary-500);
}

/* Interactive Accordion bounce transition */
.faq-item {
  transition: border-color var(--transition-normal), background var(--transition-normal);
}

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

/* Custom Fade-in-up entrance animation for pages */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive grid limits for mobile sizes */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

