/* ============================================
   UAITE - Free Online Tools
   Complete Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Colors */
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #38BDF8;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  --bg: #ffffff;
  --bg-alt: #F8FAFC;
  --bg-elevated: #ffffff;
  --surface: #F1F5F9;
  --surface-hover: #E2E8F0;
  
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-inverse: #ffffff;
  
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --space-xxxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

p { max-width: 65ch; }

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.mono { font-family: var(--font-mono); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

main { flex: 1; }

.py-xl { padding: var(--space-xxxl) 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: var(--space-xxl); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
}

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

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

.nav-link:hover,
.nav-link.active { color: var(--text); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.header-cta { display: flex; align-items: center; gap: var(--space-md); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--text-secondary);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.form-range {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: var(--radius-full);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

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

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: var(--space-xxxl) 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 1.125rem 1.25rem 1.125rem 3rem;
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.hero-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.hero-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xxl);
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   Tool Cards Grid (Homepage)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section-header h2 { margin-bottom: var(--space-sm); }

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.category-tab {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-tab:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

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

.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary);
  font-size: 1.5rem;
}

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ============================================
   Tools Page Grid
   ============================================ */
.tools-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.tools-header h1 { margin-bottom: var(--space-md); }

.tools-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.tool-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
}

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

.tool-card .tool-icon {
  width: 48px;
  height: 48px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.tool-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: var(--space-sm);
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.tool-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ============================================
   Tool Page Layout
   ============================================ */
.tool-page {
  padding: var(--space-xl) 0 var(--space-xxxl);
}

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

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

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

.breadcrumb svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.tool-header {
  margin-bottom: var(--space-xl);
}

.tool-header h1 { margin-bottom: var(--space-sm); }

.tool-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 100%;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

.tool-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tool-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.tool-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.tool-widget-header h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.sidebar-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.sidebar-widget h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.related-tools {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.related-tool {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.related-tool:hover {
  background: var(--surface);
  color: var(--text);
}

.related-tool svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.sidebar-widget.premium-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
}

.sidebar-widget.premium-cta h4 {
  color: white;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}

.sidebar-widget.premium-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

/* Password Generator Specific */
.password-display {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.password-field {
  flex: 1;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
}

.password-strength {
  margin-bottom: var(--space-lg);
}

.strength-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.strength-bar {
  height: 8px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  background: var(--success);
  border-radius: var(--radius-full);
  transition: width var(--transition-base), background var(--transition-base);
}

/* QR Code Output */
.qr-output {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.qr-output canvas {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.qr-placeholder {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ============================================
   Ad Containers
   ============================================ */
.ad-container {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-container p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-container.horizontal {
  min-height: 90px;
  padding: var(--space-lg);
}

.ad-container.sidebar {
  min-height: 250px;
  padding: var(--space-xl);
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  background: var(--bg-alt);
  padding: var(--space-xxxl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-item {
  text-align: center;
  padding: var(--space-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ============================================
   Premium Banner
   ============================================ */
.premium-banner {
  background: linear-gradient(135deg, var(--text) 0%, #1E293B 100%);
  padding: var(--space-xxxl) 0;
  position: relative;
  overflow: hidden;
}

.premium-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.premium-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xxl);
}

@media (max-width: 768px) {
  .premium-content {
    flex-direction: column;
    text-align: center;
  }
}

.premium-text h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.premium-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 480px;
}

.premium-features {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

.premium-feature svg { color: var(--primary); }

.premium-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.premium-cta-btn .btn {
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.premium-cta-btn .btn:hover { background: var(--primary-dark); }

.premium-cta-btn span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Pricing Page
   ============================================ */
.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xxl);
}

.pricing-header h1 { margin-bottom: var(--space-md); }

.pricing-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.pricing-card-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.pricing-card-header h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 600;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.price .amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.price .period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-card-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
}

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

.pricing-card .btn {
  width: 100%;
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: var(--space-sm);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ============================================
   About Page
   ============================================ */
.about-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xxl);
}

.about-header h1 { margin-bottom: var(--space-md); }

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: var(--space-xxl);
}

.about-section h2 {
  margin-bottom: var(--space-lg);
}

.about-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.about-section .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.about-section .feature-item {
  text-align: left;
  padding: 0;
}

.about-section .feature-icon {
  margin: 0 0 var(--space-md) 0;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.category-list {
  margin-left: var(--space-lg);
  color: var(--text-secondary);
}

.category-list li {
  margin-bottom: var(--space-sm);
  list-style: disc;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xxl);
}

.contact-header h1 { margin-bottom: var(--space-md); }

.contact-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
}

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

.contact-form-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: var(--space-sm);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.contact-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-faq h2 {
  margin-bottom: var(--space-md);
}

.contact-faq > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.faq-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.faq-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.faq-link:hover {
  background: var(--primary);
  color: white;
}

.faq-link svg {
  color: var(--primary);
}

.faq-link:hover svg {
  color: white;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: var(--space-sm);
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xxl);
}

.legal-content section {
  margin-bottom: var(--space-xxl);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.legal-content ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  list-style: disc;
}

.legal-content a {
  color: var(--primary);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text);
  color: white;
  padding: var(--space-xxxl) 0 var(--space-xl);
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  max-width: 280px;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================
   Calculator Page (Legacy Support)
   ============================================ */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .calculator-container {
    grid-template-columns: 1fr;
  }
}

.calculator-main {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.calculator-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.calculator-title { margin-bottom: var(--space-sm); }

.calculator-description {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.results-panel {
  background: linear-gradient(135deg, var(--text) 0%, #1E293B 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: white;
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.results-panel h3 {
  color: white;
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.result-item {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.result-label {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: var(--space-xs);
}

.result-value {
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
}

.result-value.highlight {
  color: var(--primary);
  font-size: 2.5rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.sidebar-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.related-tool-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.related-tool-link:hover {
  background: var(--surface);
  color: var(--text);
}

.related-tool-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

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

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .header, .footer, .sidebar, .tool-sidebar, .ad-container, .premium-banner, .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
}
