/*
Theme Name: PDF Lover
Theme URI: https://pdflover.com
Author: PDF Lover Team
Author URI: https://pdflover.com
Description: A comprehensive PDF tools WordPress theme with 50+ free PDF editing, converting, and management tools. Privacy-first with client-side processing.
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: pdf-lover
Tags: pdf-tools, pdf-editor, pdf-converter, privacy, free-tools, responsive
*/

/* ====================
   CSS VARIABLES
   ==================== */
:root {
  --primary: #6CA651;
  --primary-dark: #5a8c44;
  --primary-light: #e8f5e4;
  --background: #ffffff;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --secondary: #f5f5f5;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --destructive: #ef4444;
  --border: #e5e5e5;
  --ring: #6CA651;
  --radius: 0.625rem;
}

/* ====================
   BASE STYLES
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* ====================
   CUSTOM SCROLLBAR
   ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

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

/* ====================
   ANIMATIONS
   ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

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

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ====================
   UTILITY CLASSES
   ==================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* ====================
   BUTTONS
   ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px rgba(108, 166, 81, 0.4);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ====================
   HEADER
   ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(108, 166, 81, 0.1);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  max-height: 400px;
  overflow-y: auto;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(108, 166, 81, 0.05);
  color: var(--primary);
}

.dropdown-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

.github-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1f2937;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.github-btn:hover {
  background: #111827;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.mobile-menu.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-actions .btn {
  flex: 1;
}

/* ====================
   HERO SECTION
   ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 166, 81, 0.05) 0%, white 50%, rgba(108, 166, 81, 0.1) 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(108, 166, 81, 0.2);
  top: 80px;
  left: 40px;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(108, 166, 81, 0.15);
  bottom: 80px;
  right: 40px;
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(108, 166, 81, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 166, 81, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(108, 166, 81, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

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

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

.hero-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.hero-feature svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.hero-stat svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hero-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator-inner {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(108, 166, 81, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator-dot {
  width: 6px;
  height: 10px;
  background: var(--primary);
  border-radius: 3px;
  animation: pulse 2s infinite;
}

/* ====================
   TOOLS SECTION
   ==================== */
.tools-section {
  padding: 5rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

.section-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Bar */
.search-bar {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.search-bar svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 166, 81, 0.1);
}

.search-shortcut {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.5rem;
  background: var(--secondary);
  font-size: 0.75rem;
  color: #6b7280;
  border-radius: 4px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: var(--secondary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  background: #e5e7eb;
}

.category-tab.active {
  background: var(--primary);
  color: white;
}

.category-tab svg {
  width: 16px;
  height: 16px;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

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

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

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

/* Tool Card */
.tool-card {
  display: block;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 166, 81, 0.3);
  box-shadow: 0 20px 40px rgba(108, 166, 81, 0.15);
}

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

.tool-icon {
  width: 40px;
  height: 40px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.tool-card:hover .tool-icon {
  background: rgba(108, 166, 81, 0.2);
}

.tool-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.tool-arrow {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.tool-card:hover .tool-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.tool-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.tool-card:hover .tool-name {
  color: var(--primary);
}

.tool-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Section */
.category-section {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  width: 32px;
  height: 32px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.category-count {
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: var(--secondary);
  font-size: 0.75rem;
  color: #6b7280;
  border-radius: 9999px;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 0;
}

.no-results-icon {
  width: 64px;
  height: 64px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.no-results-icon svg {
  width: 32px;
  height: 32px;
  color: #9ca3af;
}

.no-results-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.no-results-text {
  color: #6b7280;
}

/* ====================
   FEATURES SECTION
   ==================== */
.features-section {
  padding: 5rem 0;
  background: var(--secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

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

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

.feature-card {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(108, 166, 81, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(108, 166, 81, 0.2);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ====================
   SECURITY SECTION
   ==================== */
.security-section {
  padding: 5rem 0;
  background: white;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .security-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(108, 166, 81, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.security-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

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

.security-text {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.security-feature-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.security-feature-text {
  font-size: 0.875rem;
  color: #6b7280;
}

.compliance-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compliance-card {
  padding: 1.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.compliance-card:hover {
  border-color: rgba(108, 166, 81, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.compliance-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.compliance-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.compliance-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.compliance-text {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ====================
   TESTIMONIALS SECTION
   ==================== */
.testimonials-section {
  padding: 5rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

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

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

.testimonial-card {
  padding: 1.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(108, 166, 81, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  margin-bottom: 1rem;
}

.testimonial-quote svg {
  width: 32px;
  height: 32px;
  color: rgba(108, 166, 81, 0.3);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  fill: #fbbf24;
}

.testimonial-text {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-name {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ====================
   FAQ SECTION
   ==================== */
.faq-section {
  padding: 5rem 0;
  background: var(--secondary);
}

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

.faq-item {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: #6b7280;
  line-height: 1.6;
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(108, 166, 81, 0.1) 0%, rgba(108, 166, 81, 0.05) 100%);
  border-radius: var(--radius);
}

.faq-cta svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.faq-cta-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.faq-cta-text {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* ====================
   AD SPACES
   ==================== */
.ad-section {
  padding: 1rem 0;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ad-container {
  min-height: 90px;
  background: #f8f8f8;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-label {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 10px;
  color: #999;
}

.ad-sidebar {
  position: sticky;
  top: 100px;
}

/* ====================
   FOOTER
   ==================== */
.site-footer {
  background: #111827;
  color: white;
  padding: 4rem 0 0;
}

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

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

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #1f2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-made-with {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-made-with svg {
  width: 16px;
  height: 16px;
  color: #ef4444;
  fill: #ef4444;
}

.footer-version {
  color: #6b7280;
  font-size: 0.75rem;
}

/* ====================
   TOOL PAGE
   ==================== */
.tool-page {
  padding-top: 80px;
  min-height: 100vh;
}

.tool-page-header {
  padding: 2rem 0;
  background: var(--secondary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #6b7280;
  transition: color 0.2s ease;
}

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

.breadcrumb-current {
  color: var(--foreground);
  font-weight: 500;
}

.tool-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.tool-page-description {
  font-size: 1.125rem;
  color: #6b7280;
}

.tool-page-content {
  padding: 2rem 0;
}

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

@media (min-width: 1024px) {
  .tool-page-grid {
    grid-template-columns: 1fr 300px;
  }
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover {
  background: rgba(108, 166, 81, 0.05);
  border-color: var(--primary-dark);
}

.upload-zone.dragover {
  background: rgba(108, 166, 81, 0.1);
}

.upload-icon {
  width: 80px;
  height: 80px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.upload-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.upload-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.upload-text {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* File List */
.file-list {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.file-list-title {
  font-weight: 600;
  color: var(--foreground);
}

.file-list-clear {
  font-size: 0.875rem;
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
}

.file-list-clear:hover {
  text-decoration: underline;
}

.file-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.file-item-name {
  font-weight: 500;
  color: var(--foreground);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-size {
  font-size: 0.875rem;
  color: #6b7280;
}

.file-item-remove {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.file-item-remove:hover {
  background: var(--secondary);
}

.file-item-remove svg {
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

/* Progress Bar */
.progress-bar {
  margin-top: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.progress-label {
  color: #6b7280;
}

.progress-value {
  color: var(--primary);
  font-weight: 600;
}

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Tool Actions */
.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tool-actions .btn {
  flex: 1;
}

/* Tool Info */
.tool-info {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.tool-info-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.tool-info-text {
  color: #6b7280;
  margin-bottom: 1rem;
}

.tool-info-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: #6b7280;
}

.tool-info-list li {
  margin-bottom: 0.5rem;
}

/* ====================
   CONTENT PAGES
   ==================== */
.content-page {
  padding-top: 80px;
  min-height: 100vh;
}

.content-page-header {
  text-align: center;
  padding: 3rem 0;
}

.content-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .content-page-title {
    font-size: 3rem;
  }
}

.content-page-subtitle {
  color: #6b7280;
}

.content-page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.content-page-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-page-body p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-page-body ul,
.content-page-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-page-body li {
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-page-body a {
  color: var(--primary);
  text-decoration: underline;
}

.content-page-body a:hover {
  color: var(--primary-dark);
}

.content-highlight {
  background: rgba(108, 166, 81, 0.05);
  border: 1px solid rgba(108, 166, 81, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.content-highlight p {
  margin: 0;
  color: #374151;
}

.code-block {
  background: #1f2937;
  color: #d1d5db;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 300px 1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--secondary);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.contact-info-item:hover {
  background: rgba(108, 166, 81, 0.05);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.contact-info-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-info-text {
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-form-wrapper {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 166, 81, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* 404 Page */
.not-found {
  padding-top: 120px;
  text-align: center;
}

.not-found-icon {
  width: 128px;
  height: 128px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.not-found-icon svg {
  width: 64px;
  height: 64px;
  color: var(--primary);
}

.not-found-code {
  font-size: 6rem;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.not-found-text {
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.not-found-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .not-found-actions {
    flex-direction: row;
  }
}

.not-found-tools {
  margin-top: 2rem;
}

.not-found-tools-title {
  color: #6b7280;
  margin-bottom: 1rem;
}

.not-found-tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.not-found-tool-link {
  padding: 0.5rem 1rem;
  background: var(--secondary);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s ease;
}

.not-found-tool-link:hover {
  background: rgba(108, 166, 81, 0.1);
  color: var(--primary);
}

/* ====================
   ADMIN DASHBOARD
   ==================== */
.admin-dashboard {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #1a1a2e;
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.3s ease;
}

.admin-sidebar.collapsed {
  width: 64px;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-logo img {
  height: 32px;
  width: auto;
}

.admin-logo-text {
  font-weight: 700;
}

.admin-sidebar.collapsed .admin-logo-text {
  display: none;
}

.admin-sidebar-toggle {
  padding: 0.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.admin-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-nav {
  padding: 1rem 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  color: white;
  background: var(--primary);
}

.admin-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-sidebar.collapsed .admin-nav-item span {
  display: none;
}

.admin-sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.3s ease;
}

.admin-sidebar.collapsed + .admin-main {
  margin-left: 64px;
}

.admin-header {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user-name {
  font-size: 0.875rem;
  color: #6b7280;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-user-avatar span {
  font-weight: 600;
  color: var(--primary);
}

.admin-content {
  padding: 2rem;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

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

.admin-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.admin-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 166, 81, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* Admin Card */
.admin-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.admin-card-body {
  padding: 1.5rem;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: var(--secondary);
}

.admin-table td {
  font-size: 0.875rem;
  color: var(--foreground);
}

.admin-table tr:hover td {
  background: var(--secondary);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.status-badge.active {
  background: #d1fae5;
  color: #059669;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #dc2626;
}

/* Admin Actions */
.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-action-btn {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.admin-action-btn:hover {
  background: var(--secondary);
}

.admin-action-btn svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.admin-action-btn.delete:hover {
  background: #fee2e2;
}

.admin-action-btn.delete svg {
  color: #ef4444;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.modal-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--secondary);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.modal-footer .btn {
  flex: 1;
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

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

.icon-item {
  padding: 1rem;
  background: var(--secondary);
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s ease;
}

.icon-item:hover {
  background: var(--border);
}

.icon-item svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.icon-item-name {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1023px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-sidebar.collapsed + .admin-main {
    margin-left: 0;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .ad-section,
  .admin-sidebar {
    display: none !important;
  }
  
  .tool-page,
  .content-page {
    padding-top: 0;
  }
}
