/* ============================================
   PetVetCostCalc.com - Enhanced Design System
   Color Palette:
   - Primary Blue: #2563EB (trust, professionalism)
   - Accent Orange: #F97316 (CTAs, action items)
   - Success Green: #10B981 (health, positive results)
   - Neutral: #F8FAFC (background), #1E293B (text)
   - Ad Background: #FFFBF5 (warm, non-intrusive)
   ============================================ */

/* CSS Variables for theming */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --primary: #60A5FA;
  --primary-dark: #3B82F6;
  --primary-light: #1E3A5F;
  --accent: #FB923C;
  --accent-dark: #F97316;
  --success: #34D399;
  --success-light: #064E3B;
  --bg: #0F172A;
  --bg-card: #1E293B;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.logo span {
  color: #FED7AA;
}

/* Theme Toggle */
.theme-toggle {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(20deg);
}

/* Navigation */
nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

nav a:hover, nav a.active {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* ============================================
   Calculator Boxes
   ============================================ */
.content-section {
  padding: 3rem 0;
}

.calculator-box {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.calculator-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
  opacity: 0;
  transition: var(--transition);
}

.calculator-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.calculator-box:hover::before {
  opacity: 1;
}

.calculator-box h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calculator-box h2::before {
  content: '🧮';
  font-size: 1.5rem;
}

/* Form Styles */
.calc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
}

.calc-field label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-field input,
.calc-field select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Calculate Button */
.calc-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.calc-btn:active {
  transform: translateY(0);
}

/* Result Box */
.calc-result {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--success-light);
  border-radius: var(--radius-sm);
  border-left: none;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-result.show {
  display: block;
}

.calc-result h3 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.calc-result .result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.5rem 0;
}

.calc-result .result-breakdown {
  margin-top: 1rem;
}

.calc-result .result-breakdown div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-result .result-breakdown div:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   Chart Container
   ============================================ */
.chart-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  position: relative;
  height: 300px;
}

/* ============================================
   Social Share Buttons
   ============================================ */
.social-share {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  align-items: center;
}

.social-share span {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.linkedin {
  background: #0A66C2;
  color: white;
}

.share-btn.email {
  background: var(--text-secondary);
  color: white;
}

.share-btn.copy-link {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
  cursor: pointer;
}

/* ============================================
   Action Buttons (Print, PDF, Save)
   ============================================ */
.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}

.action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.action-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.action-btn.primary:hover {
  background: var(--primary-dark);
}

/* ============================================
   Cost Saving Tips
   ============================================ */
.tips-section {
  background: linear-gradient(135deg, var(--success-light) 0%, #FEF3C7 100%);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--success);
}

.tips-section h3 {
  color: var(--success);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tips-section ul {
  list-style: none;
  padding: 0;
}

.tips-section li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tips-section li:last-child {
  border-bottom: none;
}

.tips-section li::before {
  content: '💡';
  position: absolute;
  left: 0;
}

/* ============================================
   Sortable Table
   ============================================ */
.sortable-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sortable-table thead {
  background: var(--primary);
  color: white;
}

.sortable-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  position: relative;
}

.sortable-table th:hover {
  background: var(--primary-dark);
}

.sortable-table th.sorted::after {
  content: ' ↑';
  font-size: 0.8rem;
}

.sortable-table th.sorted.desc::after {
  content: ' ↓';
}

.sortable-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sortable-table tbody tr:hover {
  background: var(--primary-light);
}

.sortable-table td {
  padding: 0.875rem 1rem;
  color: var(--text);
}

.sortable-table .cost-high {
  color: var(--danger);
  font-weight: 600;
}

.sortable-table .cost-low {
  color: var(--success);
  font-weight: 600;
}

/* ============================================
   Bill Upload Zone
   ============================================ */
.upload-zone {
  border: 3px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg);
  transition: var(--transition);
  cursor: pointer;
  margin: 1.5rem 0;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.upload-zone p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.upload-zone .upload-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.upload-zone:hover .upload-btn {
  background: var(--primary-dark);
}

/* ============================================
   Ad Containers (Anti-AdBlock Structure)
   ============================================ */
  background: #FFFBF5;
  border: 1px solid #FEEBC8;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

  content: 'Advertisement';
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 0.7rem;
  color: #A0AEC0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

  display: block;
  width: 100%;
  min-height: 90px;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--primary-light);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 1rem 1.25rem;
  max-height: 500px;
  border-top: 1px solid var(--border);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--text);
}

/* ============================================
   Original Content Section
   ============================================ */
.original-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.original-content h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-light);
}

.original-content h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.original-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

.original-content ul, .original-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.original-content li {
  margin-bottom: 0.5rem;
}

/* ============================================
   State Table
   ============================================ */
.state-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.state-table th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.state-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}

.state-table tr:last-child td {
  border-bottom: none;
}

.state-table tr:hover {
  background: var(--primary-light);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #FED7AA;
  font-weight: 700;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ============================================
   Disclaimer
   ============================================ */
.disclaimer-box {
  background: #FEF3C7;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.disclaimer-box strong {
  color: var(--warning);
}

/* ============================================
   Floating Action Bar (Print / Share / Back to top)
   ============================================ */
.fab-bar {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9000;
}

.fab-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.fab-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.fab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

.fab-btn:active {
  transform: translateY(0);
}

.fab-btn.fab-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

.fab-btn.fab-accent:hover {
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.45);
}

.fab-btn::after {
  content: attr(data-label);
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.pv-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  z-index: 9999;
  max-width: calc(100% - 2rem);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pv-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .fab-bar {
    right: 1rem;
    bottom: 1rem;
    gap: 0.6rem;
  }
  .fab-btn {
    width: 48px;
    height: 48px;
  }
  .fab-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .action-buttons, nav, .theme-toggle, .upload-zone,
  .breadcrumb, script, .chart-container,
  .fab-bar, .pv-toast {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .calculator-box {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .calc-result {
    display: block !important;
    background: #f9f9f9 !important;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .calculator-box {
    padding: 1.25rem;
  }
  
  .calc-row {
    grid-template-columns: 1fr;
  }
  
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
  }
  
  nav.open {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .social-share, .action-buttons {
    flex-direction: column;
  }
  
  .share-btn, .action-btn {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: 2.5rem 0;
  }
  
  .content-section {
    padding: 2rem 0;
  }
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
  font-weight: 600;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-sm { font-size: 0.9rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Tool Card Grid */
.tool-card {
  display: block;
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #2563eb;
}
.tool-card h4 {
  color: #2563eb;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.tool-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background: var(--card-bg, #fff);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  top: 100%;
  left: 0;
}
.nav-dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--text-color, #1e3a5f);
  font-size: 0.9rem;
}
.dropdown-content a:hover {
  background: #f0fdf4;
  color: #059669;
}

/* Google official standard: hide blank space when no ads, show when ads present */
/* Hide unfilled ads - including outer container */

/* Show filled ads normally */

/* Show ad wrapper when ads are filled */
