*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg-grad-start: #e0e7ff;
  --bg-grad-end: #f8fafc;
  --page-bg: #eef2ff;
  --brand-indigo: #6366f1;
  --brand-blue: #3b82f6;
  --brand-green: #10b981;
  --brand-purple: #7c3aed;
  --brand-purple-dark: #6d28d9;
  --brand-orange: #f59e0b;
  --brand-orange-dark: #d97706;
  --text-primary: #1f2937;
  --text-secondary: #64748b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --ring-color: #c7d2fe;
  --content-top-gap: 1.5rem;
  --content-bottom-gap: 2rem;
  --measure: 60ch;
  --lh-text: 1.6;
  --lh-heading: 1.25;
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --btn-radius: 12px;
  --btn-padding-sm: 8px 16px;
  --btn-padding-md: 12px 20px;
  --btn-padding-lg: 16px 24px;
  --btn-font-weight: var(--font-weight-semibold);
  --btn-transition: all 0.2s var(--ease-smooth);
  --btn-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --btn-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --btn-transform-hover: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: var(--btn-padding-md);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--btn-font-weight);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  min-height: 44px;
  user-select: none;
}

.btn:hover {
  transform: var(--btn-transform-hover);
  box-shadow: var(--btn-shadow-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--btn-shadow);
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-indigo) 0%, var(--brand-blue) 100%);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
  background: #f8fafc;
  color: var(--brand-indigo);
  border-color: #e2e8f0;
}

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

.btn-success {
  background: linear-gradient(90deg, var(--brand-purple) 0%, var(--brand-purple-dark) 100%);
  color: #fff;
}

.btn-success:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--brand-indigo);
  border-color: var(--brand-indigo);
}

.btn-outline:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: var(--btn-padding-sm);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--btn-padding-lg);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

.btn-icon-only {
  padding: 12px;
  min-width: 44px;
}

#page-content:empty {
  display: block;
  height: var(--content-bottom-gap);
}

body {
  height: 100%;
  margin: 0;
  padding: 0 !important;
  display: block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--page-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  line-height: var(--lh-text);
  letter-spacing: -0.003em;
  color: var(--text-primary);
}

form {
  max-width: 900px;
  width: 90%;
}

.container {
  max-width: 900px;
  width: min(900px, 90vw);
  min-width: 320px;
  min-height: 60vh;
  margin: var(--content-top-gap) auto var(--content-bottom-gap) auto !important;
  box-sizing: border-box;
  padding: 0 clamp(1em, 3vw, 2em) clamp(1em, 3vw, 2em) clamp(1em, 3vw, 2em);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

/* Single, clean rule for consistent top margins across all page types */
.container,
.pricing-page,
.info-page,
.contact-page {
  margin: var(--content-top-gap) auto var(--content-bottom-gap) auto !important;
}

/* Override any conflicting rules with maximum specificity */
html body .container,
html body .pricing-page,
html body .info-page,
html body .contact-page {
  margin-top: var(--content-top-gap) !important;
}


.container h1 {
  margin-top: 1.2em;
  margin-bottom: 0.7em;
}

.container #result {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: #1a237e;
  font-size: clamp(var(--font-size-3xl), 2.2vw + 1rem, var(--font-size-4xl));
  font-weight: var(--font-weight-extrabold);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.description {
  text-align: center;
  margin-bottom: 1em;
  color: #64748b;
  font-size: var(--font-size-lg);
  line-height: var(--lh-text);
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.description strong {
  color: #1e40af;
  font-weight: 600;
}

p {
  margin: 0 0 0.85em 0;
}

a {
  text-underline-offset: 3px;
}

.text-xs {
  font-size: var(--font-size-xs);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

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

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

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

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold);
}


#address-form label[for="address"] {
  margin-bottom: 0 !important;
}

#address-form .field-hint {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  line-height: 1.35;
}

#address-form small {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  line-height: 1.35;
}

.trust-signal {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25em 1.5em;
  margin: 1.5em auto 2em auto;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.info-subcard {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25em 1.5em;
  margin: 1em 0 1.2em 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.info-subcard .section-title {
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  position: static;
}

.info-subcard .section-title::after {
  display: none;
}

.info-subcard .page-list {
  margin-bottom: 0;
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  font-size: 0.95em;
  color: #475569;
  line-height: 1.5;
}

.trust-icon {
  font-size: 1.2em;
  opacity: 0.9;
  flex-shrink: 0;
}

.trust-text {
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .trust-signal {
    max-width: 800px;
    padding: 1.5em 2.5em;
  }
  .trust-content {
    gap: 1.2em;
    font-size: 1.1em;
  }
  .trust-icon {
    font-size: 1.6em;
  }
}

.steps-preview::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0 0%, #6366f1 50%, #e2e8f0 100%);
  opacity: 0.3;
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  padding: 1rem 0.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
  transform: translateY(-8px);
}

.step-icon-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  position: relative;
}

.step:hover .step-icon-wrapper {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
}

.step-number-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand-indigo);
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.step:hover .step-number-badge {
  background: #10b981;
  transform: scale(1.1) rotate(-5deg);
}

.step-content h3 {
  margin: 0.75rem 0 0.3rem 0;
  color: #1a237e;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.step-content p {
  margin: 0 auto;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 500;
  max-width: 180px;
}

#city-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 2em auto 2.5em auto;
  padding: 2em 2em;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border: 1px solid #e6f0ff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.address-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

#city-form .address-form-header {
  justify-content: flex-start;
}

.compare-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.compare-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.compare-btn:active {
  transform: translateY(0);
}

.compare-btn svg {
  flex-shrink: 0;
}

.comparison-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.comparison-modal[style*="display: flex"] {
  transition: none !important;
}

.comparison-modal[style*="display: flex"] .comparison-content {
  transition: none !important;
}

.comparison-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.comparison-form {
  padding: 2rem;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.comparison-description {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.address-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.address-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.address-input-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.address-input-group label svg {
  color: #6b7280;
  flex-shrink: 0;
}

.address-input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafafa;
  color: #374151;
}

.address-input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #ffffff;
  transform: translateY(-1px);
}

.address-input-group input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.comparison-actions {
  text-align: center;
}

.premium-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 1.25rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.premium-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.premium-btn:hover::before {
  left: 100%;
}

.premium-btn:active {
  transform: translateY(-1px);
}

.premium-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.comparison-results {
  padding: 2rem;
  border-top: 1px solid #e5e7eb;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.comparison-table {
  background: white;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th {
  background: #f8fafc;
  color: #1f2937;
  font-weight: 700;
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: inherit;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-family: inherit;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .address-cell {
  font-weight: 600;
  color: #1f2937;
  min-width: 200px;
  width: 25%;
  font-size: 0.95rem;
  line-height: 1.4;
}

.comparison-table .metric-cell {
  text-align: center;
  min-width: 120px;
  width: 12.5%;
}

.comparison-table .metric-value {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.3;
}

.comparison-table .metric-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.comparison-table .price-value {
  color: #059669;
  font-weight: 700;
}

.comparison-table .price-value.na-value {
  color: #6b7280;
  font-weight: 500;
}

.comparison-table .average-price {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 700;
  color: #1e293b;
}

.comparison-table .average-price .metric-value {
  color: #1e293b !important;
  font-weight: 700 !important;
}

.pdf-download-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  text-decoration: none;
}

.pdf-download-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.pdf-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.pdf-download-btn svg {
  margin-right: 8px;
}

.comparison-table .score-value {
  color: #3b82f6;
  font-weight: 700;
}

.comparison-table .noise-value {
  color: #dc2626;
  font-weight: 700;
}

.comparison-table .energy-value {
  color: #059669;
  font-weight: 700;
  font-size: 1.1rem;
}

.comparison-table .energy-value.na-value {
  color: #6b7280;
  font-weight: 500;
}

.comparison-table .property-detail {
  font-size: 0.875rem;
  color: #4b5563;
}

@media (min-width: 768px) {
  .trust-signal {
    max-width: 700px;
    padding: 1.2em 2em;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  .trust-content {
    gap: 1em;
    font-size: 1.05em;
  }
  .trust-icon {
    font-size: 1.4em;
  }
  .property-type-column {
    display: none !important;
  }
}

.price-comparison-table .metric-cell.best-value {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%) !important;
  border: 1px solid #16a34a !important;
  border-radius: 6px !important;
  position: relative !important;
  font-weight: 600 !important;
  color: #14532d !important;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1), 0 1px 2px rgba(34, 197, 94, 0.06) !important;
  margin: 2px !important;
  transition: all 0.2s ease !important;
}

.price-comparison-table .metric-cell.best-value:hover {
  box-shadow: 0 4px 6px rgba(34, 197, 94, 0.15), 0 2px 4px rgba(34, 197, 94, 0.1) !important;
  transform: translateY(-1px) !important;
}

.price-comparison-table .metric-cell.best-value::before {
  content: "✓" !important;
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  background: #16a34a !important;
  color: white !important;
  border-radius: 50% !important;
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: bold !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  z-index: 10 !important;
  border: 2px solid white !important;
}

.price-comparison-table .metric-cell.best-value .energy-value {
  color: #14532d !important;
  font-weight: 700 !important;
}

.comparison-table .metric-value.na-value {
  color: #6b7280;
  font-weight: 500;
  font-style: italic;
}

.metric-item.best-value {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%) !important;
  border: 1px solid #16a34a !important;
  position: relative !important;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1), 0 1px 2px rgba(34, 197, 94, 0.06) !important;
  transition: all 0.2s ease !important;
}

.metric-item.best-value:hover {
  box-shadow: 0 4px 6px rgba(34, 197, 94, 0.15), 0 2px 4px rgba(34, 197, 94, 0.1) !important;
  transform: translateY(-1px) !important;
}

.metric-item.best-value::before {
  content: "✓" !important;
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  background: #16a34a !important;
  color: white !important;
  border-radius: 50% !important;
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: bold !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  z-index: 10 !important;
  border: 2px solid white !important;
}

.metric-item.best-value .metric-value {
  color: #14532d !important;
  font-weight: 700 !important;
}

.comparison-table tr:hover {
  background-color: #f9fafb;
}

.comparison-table tr:hover .metric-value {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.address-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.dropdown-item {
  padding: 0.875rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background-color: #f0f9ff;
  color: #1e40af;
  transform: translateX(4px);
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.autocomplete-wrapper {
  position: relative;
}

.address-dropdown:not(:empty) {
  display: block !important;
}

#city-form label {
  margin-bottom: 6px;
}

#city-form input[type="text"] {
  margin-bottom: 0;
}

#city-form button {
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"] {
  width: 100%;
  padding: 1em 1.2em;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 1.1em;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
  background: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

small {
  color: #7b8190;
  margin-bottom: 2px;
  margin-top: 2px;
  font-size: 0.97rem;
  display: block;
  font-style: italic;
  padding-left: 2px;
  opacity: 0.85;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  min-height: 56px;
  padding: var(--btn-padding-lg);
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, #6366f1 0%, #5b21b6 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: var(--btn-font-weight);
  line-height: 1;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  margin-bottom: 1.5em;
  user-select: none;
}

button[type="submit"]:hover {
  transform: var(--btn-transform-hover);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}

#purchase-city-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  min-height: 56px;
  padding: var(--btn-padding-lg);
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, #6366f1 0%, #5b21b6 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: var(--btn-font-weight);
  line-height: 1;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  user-select: none;
}

#purchase-city-btn:hover:not(:disabled) {
  transform: var(--btn-transform-hover);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

#purchase-city-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

#purchase-city-btn:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}

#purchase-city-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

#copy-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--btn-radius);
  background: #f8fafc;
  color: var(--brand-indigo);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  user-select: none;
}

#copy-link-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: var(--btn-transform-hover);
  box-shadow: var(--btn-shadow-hover);
}

#copy-link-btn:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow);
}

#copy-link-btn:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}

#copy-link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  transform: none;
  box-shadow: var(--btn-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  min-height: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: var(--btn-transform-hover);
  box-shadow: var(--btn-shadow-hover);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}

.brand-logo {
  display: none;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

@media (min-width: 1001px) {
  .brand-logo {
    display: none !important;
  }
}

.social-proof {
  min-height: 150px;
}

#addresses-checked {
  display: inline-block;
  min-width: 6ch;
}

.logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(220deg) brightness(0.7) contrast(1.2) !important;
  -webkit-filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(220deg) brightness(0.7) contrast(1.2) !important;
  background-color: #1e40af;
  -webkit-mask: url('../img/logowoonprijs.png') no-repeat center;
  mask: url('../img/logowoonprijs.png') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.brand-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e40af;
  letter-spacing: -0.01em;
}

.home-link-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e40af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-link-with-icon:hover {
  color: #1d4ed8;
}

.home-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e40af;
}

@media (max-width: 428px) {
  .brand-logo {
    display: none !important;
  }
  .home-link-with-icon .home-text {
    font-size: 1rem;
  }
}

#city-form .button-container button {
  flex: 1;
  min-width: 0;
}

@media (max-width: 300px) {
  #address-form .button-container {
    flex-direction: column;
    gap: 10px;
  }
  #address-form .button-container #copy-link-btn {
    width: 100%;
  }
}

#search-count-note {
  margin: 8px 0 0 0 !important;
  text-align: left !important;
  font-style: italic !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
  padding: 0 !important;
  width: 100% !important;
  order: 3 !important;
  flex-basis: 100% !important;
}

button[type="submit"].disabled {
  background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--btn-shadow);
  opacity: 0.7;
}

button[type="submit"].disabled:hover {
  background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
  transform: none;
  box-shadow: var(--btn-shadow);
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.validation-message {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.validation-message.valid {
  background: #f5f3ff;
  color: #581c87;
  border: 1px solid #c4b5fd;
}

.validation-message.invalid {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.validation-message.loading {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

input[type="text"].valid {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

input[type="text"].invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

input[type="text"].loading {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

#result {
  margin-top: 16px;
  text-align: center;
  font-size: 1.08rem;
  color: #2c3e50;
  min-height: 28px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 12px auto;
}

#result.hint-active {
  position: relative;
  z-index: 30;
  pointer-events: none;
}

#result:empty {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.kadaster-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: #1a237e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.kadaster-link:hover {
  background: #3949ab;
}

.info-links {
  margin: 18px 0 0 0;
  padding: 0 0 0 18px;
  font-size: 1.01rem;
}

.info-links li {
  margin-bottom: 6px;
}

.info-links a {
  color: #1a237e;
  text-decoration: underline;
  transition: color 0.2s;
}

.info-links a:hover {
  color: #3949ab;
}

.property-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.property-image {
  max-width: 180px;
  max-height: 140px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60, 80, 180, 0.10);
  object-fit: cover;
  background: #f4f7fe;
  transition: all var(--transition-normal) var(--ease-smooth);
  transform-origin: center;
}

.property-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(60, 80, 180, 0.20);
}

.property-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  max-width: 100%;
  border: 1px solid #e1e5e9;
}

.property-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 26px;
  letter-spacing: 0.5px;
}

.property-image-container {
  margin-bottom: 30px;
  text-align: center;
}

.property-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}

.price-estimation {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5em;
  margin-bottom: 1em;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.price-estimation:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(59, 130, 246, 0.22);
}

.price-estimation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.price-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  margin-bottom: 1em;
  position: relative;
}

.price-title>span:nth-child(2) {
  text-align: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: clamp(1rem, 2.8vw, 1.15rem) !important;
  font-weight: 700 !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: 70% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 549px) {
  .price-title>span:nth-child(2) {
    white-space: normal !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }
}

@media (min-width: 550px) {
  .price-title>span:nth-child(2) {
    white-space: nowrap !important;
  }
}

.source-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  padding: 0.4em 0.8em !important;
  border-radius: 8px !important;
  font-size: 0.75em !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.tile-link-btn svg {
  width: 26px !important;
  height: 26px !important;
  display: block;
}

.tile-link-btn svg path {
  stroke-width: 3.0 !important;
}

.tile-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.4) !important;
}

.price-estimation[style*="f59e42"] {
  background: linear-gradient(135deg, #f59e42 0%, #fbbf24 100%) !important;
  box-shadow: 0 8px 32px rgba(245, 158, 66, 0.15);
}

.confidence-interval {
  font-size: 1.1em;
  opacity: 0.9;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.property-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.property-table tr:last-child {
  border-bottom: none;
}

.property-key {
  padding: 18px 24px;
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
  border-right: 1px solid #e9ecef;
  width: 35%;
  vertical-align: top;
  font-size: 1.05em;
}

.property-value {
  padding: 18px 24px;
  color: #212529;
  font-weight: 500;
  font-size: 1.05em;
  line-height: 1.4;
}

.bag-id {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9em;
  text-align: center;
  margin-top: 20px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.coordinates-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.coordinates-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.coordinates-link::after {
  content: ' ↗';
  font-size: 0.8em;
}

.property-list {
  margin: 0 0 0 12px;
  padding: 0;
  list-style: disc inside;
  color: #374151;
  font-size: 1.04rem;
}

.property-null {
  opacity: 0.5;
}

.property-table tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.property-table tr:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  background: #e3eaff;
}

@media (max-width: 1200px) {
  #result {
    max-width: 1000px;
  }
  .price-amount {
    font-size: 2.4em;
  }
}

.data-section {
  margin-bottom: 30px;
}

.section-title::after {
  display: none;
}

.info-card ul.page-list {
  margin: 0 0 18px 0;
}

.info-card li {
  margin: 0 0 6px 0;
}

.cbs-info {
  position: relative;
  font-weight: 700;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
  top: -1px;
}

.cbs-info::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 130%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  padding: 8px 10px;
  border-radius: 6px;
  width: 230px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.cbs-info:focus::after {
  opacity: 1;
}

.price-estimation.woz-price {
  display: none;
}

.credit-warning {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.credit-warning p {
  margin: 5px 0;
  font-weight: 500;
}

.credit-warning p:first-child {
  font-weight: 600;
  font-size: 1.1em;
}

.source-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.source-info p {
  margin: 5px 0;
  font-size: 0.95em;
  color: #374151;
}

.source-link {
  color: #1a237e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.source-link:hover {
  color: #3949ab;
  text-decoration: underline;
}

.original-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.view-original-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.view-original-btn:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.property-value pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: #495057;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.property-details {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
  padding: 2.5em 2em 2em 2em;
  margin: 2.5em 0 2.5em 0;
  max-width: 1050px;
}

.details-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 1em;
  text-align: center;
}

.property-details table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0 0.7em;
  font-size: 1.1em;
}

.property-details td {
  padding: 0.7em 1em;
  border-radius: 8px;
}

.property-details tr td:first-child {
  color: #6366f1;
  font-weight: 600;
  background: #f1f5ff;
  width: 40%;
}

.property-details tr td:last-child {
  color: #22223b;
  background: #f8fafc;
  font-weight: 500;
}

@media (max-width: 1300px) {
  .container {
    max-width: 98vw !important;
    padding: 0 1.5em;
  }
}

@media (max-width: 400px) {
  .pricing-page {
    padding: 0.5em 0.8em;
    font-size: 0.95em;
  }
  .details-title {
    font-size: 0.95em;
  }
  .price-amount {
    font-size: 0.9em;
  }
}

.loading-card {
  background: white;
  border-radius: 16px;
  padding: 2.5em;
  margin: 2em auto;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

.loading-image {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto;
  animation: bounce 2s infinite;
}

.loading-text-container {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: center;
}

.loading-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.02em;
}

.loading-subtitle {
  font-size: 1em;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

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

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

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

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #6366f1;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@media (min-width: 800px) and (max-width: 1300px) {
  .loading-card {
    margin: 2em auto 4em auto !important;
  }
  #result {
    padding-bottom: 2em !important;
  }
}

@media (min-width: 700px) and (max-width: 1300px) {
  .property-details {
    margin-bottom: 2rem;
  }
  #result {
    padding-bottom: 2rem;
  }
  .container {
    padding-bottom: 2rem;
  }
}

.vertical-spacer {
  height: 0.08em;
  width: 100%;
  display: block;
}

.field-hint {
  margin-top: 0;
  margin-bottom: 4px;
  color: #64748b;
  font-size: .9em;
  line-height: 1.35;
}

label[for="address"] {
  margin-bottom: 2px;
}

.field-hint .hint-strong {
  font-weight: 700;
  color: #475569;
}

.autocomplete-wrapper.show-hint .autocomplete-dropdown {
  top: 100%;
}

#city-input {
  padding: 0.9em 1em;
  border-radius: 12px;
  font-size: 1.05em;
  margin-bottom: 12px;
}

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

#facts-tile {
  animation: factsFadeIn 0.3s ease-out;
}

#fact-text {
  transition: opacity 0.2s ease;
}

.autocomplete-suggestion {
  padding: 0.7em 1em;
  cursor: pointer;
  border-bottom: 1px solid #f1f5ff;
  transition: background-color 140ms ease, color 140ms ease;
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

.autocomplete-suggestion:hover {
  background: #f1f5ff;
  color: #22223b;
}

.site-header {
  background: rgba(238, 242, 255, 0.9);
  border-bottom: 1.5px solid #cbd5e1;
  padding: 0.6em 0.2em;
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 56px;
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 2px 16px 0 rgba(99, 102, 241, 0.04);
  width: 100%;
  max-width: 100%;
  display: block;
}

.site-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: none;
  color: #374151;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  min-height: 40px;
  min-width: 40px;
}

.footer-nav {
  display: flex;
  gap: 0.5em;
  justify-content: flex-start;
  align-items: center;
}

.footer-nav button {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}

.footer-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s, box-shadow .18s;
}

.footer-nav a:focus {
  background: rgba(30, 64, 175, 0.05);
  color: #1e40af;
}

.footer-nav a.is-active {
  background: #e0e7ff;
  box-shadow: inset 0 0 0 2px #c7d2fe;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-block;
  }
  .footer-nav {
    display: none;
  }
  .site-header {
    padding: 0.5em 0;
  }
  .site-header .header-inner {
    padding: 0 8px;
  }
  .site-header.open .footer-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--page-bg);
    border-bottom: 1px solid #cbd5e1;
    padding: 10px 12px 12px 12px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 49;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .site-header.open .footer-nav {
    min-width: 300px;
    right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 0;
  }
  .site-header.open .footer-nav button {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  .site-header.open .footer-nav button:hover {
    background: #f1f5f9;
    transform: translateX(4px);
  }
}

.site-header .lang-select-container {
  position: static;
  top: auto;
  right: auto;
  background: transparent;
  box-shadow: none;
  margin: 0;
}

.site-header #lang-select {
  margin: 0;
}

.site-header .auth-btn {
  margin: 0 0 0 8px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0;
  padding: var(--btn-padding-md);
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1.08em;
  font-weight: var(--btn-font-weight);
  text-decoration: none;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  min-height: 44px;
  user-select: none;
}

.back-home-btn:focus {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  transform: var(--btn-transform-hover);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin-top: 0.5em;
  width: 100%;
  box-sizing: border-box;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.contact-form .form-group.full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  font-weight: 700;
  color: #283593;
  margin-bottom: 10px;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1.1em 1.2em;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  font-size: 1.05em;
  box-sizing: border-box;
  background: #fafafa;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 2px #c7d2fe;
  outline: none;
}

.contact-form textarea {
  max-width: 100%;
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form button[type="submit"] {
  margin-top: 0.7em;
}

.contact-success {
  text-align: center;
  padding: 2.5em 1.5em 2em 1.5em;
  background: #f1f5ff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
  margin-top: 2em;
}

.contact-success h2 {
  margin-bottom: 0.7em;
}

.info-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
  padding: 2.5em 2.5em 2em 2.5em;
  width: 100%;
  margin: 0 auto 2em auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.page-title {
  line-height: var(--lh-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 0.5em;
  text-align: center;
  margin-top: 0;
}

.page-text {
  max-width: 42rem;
  line-height: 1.5;
  margin-top: 0.6rem;
  color: #64748b;
  font-size: 1.08rem;
  margin-bottom: 1.2em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page-list {
  margin-bottom: 1.2em;
  font-size: 1.05em;
  color: #1f2937;
  padding-left: 1.2em;
}

.contact-email-link {
  color: var(--brand-purple);
  text-decoration: underline;
  font-weight: 600;
}

.contact-email-link:hover {
  color: var(--brand-purple-dark);
}

.contact-telegram-link {
  color: #0088cc;
  text-decoration: underline;
  font-weight: 600;
}

.contact-telegram-link:hover {
  color: #006699;
}

.lang-select-container {
  position: fixed;
  top: 24px;
  right: 36px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.07);
  padding: 0.1em 0.3em;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
}

#lang-select {
  padding: 0.4em 1em;
  border-radius: 8px;
  font-size: 1em;
  border: 1.2px solid #c7d2fe;
  background: #f8fafc;
  color: #283593;
  font-weight: 600;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
  min-width: 80px;
}

#lang-select option {
  font-size: 1em;
  padding: 0.5em;
}

.user-account-container {
  position: relative;
  margin-left: 8px;
  display: none;
}

.user-profile-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pro-badge {
  background: var(--brand-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.3);
}

.user-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.user-avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  border-color: #a5b4fc;
}

.user-avatar-btn:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.user-avatar-letter {
  line-height: 1;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown-header {
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
}

.user-email {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 4px;
  word-break: break-all;
}

.user-subscription-status {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-subscription-status.premium {
  color: var(--brand-purple);
  font-weight: 600;
}

.user-subscription-status.premium::before {
  content: "";
}

.user-subscription-status.free::before {
  content: "";
}

.user-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
}

.user-dropdown-item {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  text-align: left;
}

.user-dropdown-item:hover {
  background: #f9fafb;
}

.user-dropdown-item:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: -2px;
}

.auth-btn {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
  min-height: 36px;
  user-select: none;
}

.auth-btn:hover {
  filter: brightness(1.05);
  transform: var(--btn-transform-hover);
}

.auth-btn:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.pro-badge {
  display: none;
  background: var(--brand-purple);
  color: #fff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75em;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.3);
}

#lang-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #c7d2fe;
}

.footer-support-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--btn-padding-md);
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, #38bdf8 0%, var(--brand-indigo) 100%);
  color: #fff;
  font-size: 1.08em;
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  margin: 0;
  min-height: 40px;
  user-select: none;
}

.footer-support-btn:focus {
  background: linear-gradient(90deg, var(--brand-indigo) 0%, #38bdf8 100%);
  color: #e0f2f1;
  transform: var(--btn-transform-hover);
  box-shadow: var(--btn-shadow-hover);
}

.footer-get-updates-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--btn-padding-md);
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, #fbbf24 0%, var(--brand-indigo) 100%);
  color: #fff;
  font-size: 1.08em;
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  margin-left: 0.5em;
  min-height: 40px;
  user-select: none;
}

.footer-get-updates-btn:focus {
  background: linear-gradient(90deg, var(--brand-indigo) 0%, #fbbf24 100%);
  color: #e0f2f1;
  transform: var(--btn-transform-hover);
  box-shadow: var(--btn-shadow-hover);
}

.tile-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: var(--btn-radius);
  background: transparent;
  border: 1px solid transparent;
  transition: var(--btn-transition);
  gap: 0.5em;
  padding: 0;
  color: rgba(255, 255, 255, 1);
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  margin: 0;
  backdrop-filter: blur(10px);
  user-select: none;
}

.tile-link-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.tile-link-btn .icon {
  font-size: 1em;
  margin: 0;
  line-height: 1;
  display: inline-block;
}

.tile-link-btn:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: var(--btn-transform-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

textarea::placeholder {
  color: #94a3b8;
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring-color);
}

.contact-send-btn:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  max-height: 220px;
  overflow-y: auto;
  font-size: 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pricing-page {
  max-width: 900px;
  width: 90%;
  min-width: 350px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
  border: none;
  padding: 2em 2em 1.5em 2em;
  box-sizing: border-box;
}

.pricing-header h2 {
  color: var(--brand-indigo);
  margin: 0 0 .25em 0;
  font-weight: 800;
}

.pricing-header p {
  margin: 0 0 1.2em 0;
  color: var(--text-secondary);
  font-size: 1.05em;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25em 1.25em 1.1em 1.25em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.plan-card.plan-premium {
  border-width: 2px;
  border-color: var(--brand-indigo);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--brand-indigo);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .8em;
  font-weight: 700;
}

.plan-title {
  margin: 0 0 0.25em 0;
  font-size: 1.15em;
  font-weight: 800;
  color: #111827;
}

.plan-subtitle {
  margin: 0;
  opacity: .8;
  color: #374151;
}

.pricing-features {
  margin: 1em 0;
  padding-left: 1.2em;
  color: #1f2937;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 1em 0;
}

.price-amount {
  font-size: 1.8em;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.35em 0 0.45em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.price-period {
  opacity: .8;
}

.pricing-cta {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.pricing-cta.primary {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
}

.pricing-cta.outline {
  background: #f3f4f6;
  color: var(--brand-purple-dark);
  border-color: var(--brand-purple);
}

.pricing-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.pricing-cta.outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.free-trial-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.plan-note {
  opacity: .8;
  font-size: .9em;
  margin-top: .75em;
}

.pricing-note {
  opacity: .75;
  font-size: .9em;
  margin-top: 1.25em;
}

.noise-features-highlight {
  position: relative;
  overflow: hidden;
}

.noise-features-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.noise-features-highlight>div {
  position: relative;
  z-index: 1;
}

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

.noise-features-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
  transition: all 0.3s ease;
}

.back-link-btn {
  margin-top: 1.25em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#pricing-back-btn-outer {
  margin-bottom: 120px;
}

@media (max-width: 800px) {
  .container {
    max-width: 99vw !important;
    padding: 0 1em 1em 1em;
    margin: var(--content-top-gap) 1em var(--content-bottom-gap) 1em;
    border-radius: 14px;
  }
  .property-details {
    padding: 1em 1em 1em 1em;
    margin: 1.2em 0 1.2em 0;
    max-width: 99vw;
    border-radius: 14px;
  }
  .price-title {
    font-size: 1.1em;
  }
  .price-amount {
    font-size: 1.6em;
  }
  .details-title {
    font-size: 1.1em;
  }
  .property-details table {
    font-size: 1em;
  }
  .pricing-page {
    max-width: 99vw !important;
    padding: 0 1em 1em 1em;
    margin: var(--content-top-gap) 1em var(--content-bottom-gap) 1em;
    border-radius: 14px;
  }
}

@media (max-width: 600px) {
  #address-form .button-container {
    gap: 8px;
  }
  #address-form .button-container button[type="submit"] {
    flex: 1;
    min-width: 120px;
  }
  #address-form .button-container #copy-link-btn {
    flex-shrink: 0;
    min-width: 44px;
  }
  .container {
    max-width: 100vw !important;
    margin: var(--content-top-gap) 1em var(--content-bottom-gap) 1em;
    padding: 0 1em 0.5em 1em;
    border-radius: 12px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .description {
    font-size: 0.98rem;
    padding: 8px 2vw;
  }
  #result {
    font-size: 0.98rem;
    padding: 8px 2vw;
  }
  #city-form {
    padding: 1.5em 1.2em;
    margin: 1.5em auto 2em auto;
  }
  #address {
    padding: 0.8em 0.9em;
    font-size: 1rem;
  }
  button[type="submit"] {
    min-height: 52px;
    font-size: 1.1em;
  }
  .property-details {
    padding: 0.7em 1em 0.7em 1em;
    margin: 0.7em 0 0.7em 0;
    max-width: 100vw;
    border-radius: 12px;
  }
  .price-title {
    font-size: 1em;
  }
  .price-amount {
    font-size: 2em;
  }
  .details-title {
    font-size: 1em;
  }
  .property-details table {
    font-size: 0.95em;
  }
  .loading-card {
    padding: 2em 1.5em;
    margin: 1.5em auto;
  }
  .loading-title {
    font-size: 1.2em;
  }
  .loading-subtitle {
    font-size: 0.9em;
  }
  .loading-image {
    width: 80px;
    height: 80px;
  }
  .vertical-spacer {
    height: 0.05em;
  }
  .contact-form {
    gap: 0.7em;
  }
  .contact-success {
    padding: 1.2em 0.5em 1em 0.5em;
  }
  .info-card {
    padding: 1.1em 0.7em 1em 0.7em;
    max-width: 98vw;
  }
  .page-title {
    font-size: 1.3rem;
  }
  .info-page .info-card {
    max-width: 98vw;
    width: 98vw;
    padding: 1.1em 0.7em 1em 0.7em;
  }
  .lang-select-container {
    top: 10px;
    right: 10px;
    padding: 0.05em 0.1em;
    border-radius: 7px;
  }
  #lang-select {
    font-size: 0.98em;
    padding: 0.3em 0.7em;
  }
  :root {
    --content-top-gap: 1rem;
  }
  .pricing-page {
    max-width: calc(100vw - 2em) !important;
    width: calc(100vw - 2em) !important;
    padding: 1.5em 1.2em 1.2em 1.2em;
    border-radius: 16px;
    margin: var(--content-top-gap) 1em var(--content-bottom-gap) 1em;
    box-sizing: border-box;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-card {
    padding: 1.8em 1.4em 1.5em 1.4em;
    border-radius: 16px;
    margin: 0 0.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  .plan-title {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    text-align: center;
  }
  .plan-subtitle {
    font-size: 0.95em;
    margin-bottom: 1.5em;
    text-align: center;
    opacity: 0.8;
  }
  .pricing-features {
    margin: 1.5em 0;
    padding-left: 1.2em;
    font-size: 0.95em;
    line-height: 1.6;
  }
  .pricing-features li {
    margin-bottom: 0.6em;
    position: relative;
  }
  .pricing-features li::marker {
    color: #6366f1;
  }
  .price-row {
    margin: 1.5em 0 1.2em 0;
    justify-content: center;
  }
  .price-period {
    font-size: 1em;
  }
  .pricing-cta {
    height: 56px;
    font-size: 1.1em;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
  }
  .pricing-cta:active {
    transform: translateY(1px);
  }
  .free-trial-badge {
    font-size: 0.85em !important;
    padding: 6px 10px !important;
    margin: 0.6em 0 !important;
  }
  .plan-badge {
    top: -8px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.75em;
  }
  .pricing-trust {
    flex-direction: column !important;
    gap: 8px !important;
    margin: 12px 0 20px 0 !important;
    font-size: 0.9em !important;
  }
  .pricing-trust span {
    display: block !important;
  }
  .pricing-trust span[style*="opacity:.6"] {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .pricing-page {
    max-width: calc(100vw - 1em) !important;
    width: calc(100vw - 1em) !important;
    padding: 1.2em 0.8em 0.8em 0.8em !important;
    margin: var(--content-top-gap) 0.5em var(--content-bottom-gap) 0.5em !important;
  }
  .plan-card {
    padding: 1.4em 1em 1.2em 1em;
    margin: 0 0.2em;
  }
  .plan-title {
    font-size: 1.15em;
  }
  .pricing-features {
    font-size: 0.85em;
    padding-left: 0.6em;
  }
  .price-amount {
    font-size: 1.6em;
  }
  .pricing-cta {
    height: 48px;
    font-size: 0.95em;
  }
}

#woz-history-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#funda-research-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.funda-info-btn {
  transition: all 0.2s ease !important;
  min-width: 20px !important;
  min-height: 20px !important;
}

.funda-info-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3) !important;
}

.funda-info-btn:active {
  transform: scale(0.95) !important;
}

.funda-analysis-tile ul li::before {
  content: "•";
  color: rgba(255, 255, 255, 0.7);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.contact-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  min-height: 56px;
  padding: var(--btn-padding-lg);
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, #667eea 0%, #5eaefd 100%);
  color: #fff;
  font-size: 1.15em;
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  user-select: none;
}

.contact-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--btn-shadow);
}

.contact-send-btn:hover:enabled {
  transform: var(--btn-transform-hover);
  box-shadow: 0 4px 16px rgba(94, 174, 253, 0.25);
}

.hidden {
  display: none;
}

.ai-chat {
  margin: 1.5em auto 0 auto;
  max-width: 800px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ai-chat-header {
  padding: 16px 18px 10px 18px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.ai-chat-title {
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 8px;
}

.ai-chat-subtitle {
  font-size: 0.95em;
  color: #64748b;
}

.ai-chip {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #1f2937;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
}

.ai-chip:hover {
  background: #eaf1ff;
}

.ai-chat-messages {
  height: 400px;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat-hint {
  margin: auto;
  color: #6b7280;
  font-style: italic;
  text-align: center;
}

.ai-chat-tip {
  text-align: right;
  font-size: 12px;
  color: #6b7280;
  margin: 6px 16px 12px 16px;
}

.ai-chat-tip a {
  color: #6366f1;
  text-decoration: underline;
}

.service-feedback {
  margin: 10px auto 8px auto;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.service-feedback-title {
  font-size: 0.95rem;
  color: #334155;
}

.service-feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: var(--btn-radius);
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  min-height: 36px;
  user-select: none;
}

.fb-btn:hover {
  transform: var(--btn-transform-hover);
  box-shadow: var(--btn-shadow-hover);
  border-color: #cbd5e1;
}

.fb-thanks {
  color: #64748b;
  font-size: 0.9rem;
}

.ai-chat.expanded .ai-chat-messages {
  height: 600px;
  max-height: 800px;
}

.ai-msg {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 85%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.ai-msg.user {
  align-self: flex-end;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.ai-msg.assistant {
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.ai-msg.assistant.typing {
  opacity: 0.8;
  font-style: italic;
  position: relative;
}

.thinking-dots {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 16px;
  margin-left: 8px;
  vertical-align: baseline;
}

.thinking-dots::before {
  left: 0;
  animation-delay: -0.32s;
}

.thinking-dots::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b7280;
  animation: thinkingPulse 1.4s ease-in-out infinite both;
  left: 8px;
  animation-delay: -0.16s;
}

.thinking-dots .dot {
  position: absolute;
  top: 8px;
  left: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b7280;
  animation: thinkingPulse 1.4s ease-in-out infinite both;
  animation-delay: 0s;
}

@keyframes thinkingPulse {
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.thinking-text {
  animation: thinkingFade 2s ease-in-out infinite;
}

@keyframes thinkingFade {
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef2f7;
  padding: 16px;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.ai-chat-form input[type="text"]#ai-chat-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  height: 56px;
  line-height: normal;
  font-size: 1rem;
  margin: 0 !important;
  box-sizing: border-box;
  background: #ffffff;
}

.ai-chat-form input[type="text"]#ai-chat-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px var(--ring-color);
  background: #ffffff;
}

.ai-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0 24px;
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, var(--brand-indigo) 0%, var(--brand-blue) 100%);
  color: #fff;
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
  width: auto;
  height: 56px;
  min-width: 90px;
  margin: 0 !important;
  user-select: none;
  white-space: nowrap;
}

.ai-chat-send:hover {
  transform: var(--btn-transform-hover);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.ai-chat-form.is-sending .ai-chat-send {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 700px) {
  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }
  .container {
    width: 98vw;
    padding: 0 1em 1em 1em;
  }
  .price-estimation {
    margin-bottom: 1rem;
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.5rem);
  }
  .price-estimation .price-title {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5em;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .source-badge {
    font-size: 0.7em !important;
    padding: 0.3em 0.6em !important;
  }
  .price-estimation+.price-estimation {
    margin-top: 1.5rem;
  }
  h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }
  .description {
    font-size: clamp(1rem, 2.5vw, 1.1em);
  }
  .price-estimation .price-title>span:nth-child(2) {
    flex: 1 !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  .price-estimation .price-title .tile-link-btn {
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  #pricing-back-btn-outer {
    margin-bottom: 90px;
  }
  .ai-chat {
    border-radius: 12px;
  }
  .ai-chat-messages {
    height: 40vh;
    max-height: 50vh;
  }
  .ai-chat.expanded .ai-chat-messages {
    height: 60vh;
    max-height: 85vh;
  }
  .ai-chat-form {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .ai-chat-form .ai-chat-send {
    width: auto;
  }
}

@keyframes shakeWithPause {
  0% {
    transform: translateX(0);
  }
  2% {
    transform: translateX(1px);
  }
  4% {
    transform: translateX(-1px);
  }
  6% {
    transform: translateX(1px);
  }
  8% {
    transform: translateX(-1px);
  }
  10% {
    transform: translateX(1px);
  }
  12% {
    transform: translateX(-1px);
  }
  14% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

.ai-button {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ai-button {
    animation: none;
  }
}

.noise-tile {
  position: relative;
}

.limit-card {
  background: #fff8f6;
  border: 1px solid #fbd5d5;
  color: #991b1b;
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .limit-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }
  .limit-card .limit-cta {
    width: 100%;
    margin-top: 8px;
  }
}

.limit-card .limit-title {
  font-weight: 800;
  line-height: 1.35;
}

.limit-card .limit-cta {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%) !important;
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.limit-card .limit-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.limit-card .limit-cta:hover::before {
  left: 100%;
}

.limit-card .limit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4), 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.limit-card .limit-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.limit-card.stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.steps-preview {
  display: grid;
  justify-content: space-between;
  gap: 20px;
  margin: 2em auto 2.5em auto;
  max-width: 900px;
  padding: 0 1em;
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .property-card {
    max-width: 98vw;
    min-width: unset;
    padding: 18px 4vw 14px 4vw;
  }
  .property-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
  .property-table {
    font-size: 0.98rem;
  }
  .property-value {
    font-size: 0.98rem;
    padding-right: 6px;
    padding-left: 4px;
  }
  .steps-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .steps-preview {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.info-page {
  min-height: 70vh;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  background: none;
  width: 100% !important;
  max-width: none !important;
}

#page-content {
  flex: 0 0 auto;
  padding-top: 0;
  overflow: visible !important;
}

.info-page .info-card {
  max-width: 900px !important;
  width: 90% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

.info-page .address-form {
  overflow: visible !important;
  position: relative !important;
}

.info-page .autocomplete-wrapper {
  overflow: visible !important;
  position: relative !important;
  z-index: 100 !important;
  transform: none !important;
  perspective: none !important;
  filter: none !important;
}

.info-page #address-dropdown.autocomplete-dropdown {
  z-index: 10000 !important;
  position: absolute !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.info-page #address-dropdown.autocomplete-dropdown:not(:empty) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#page-content .info-page {
  overflow: visible !important;
  max-width: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 0 !important;
}

.blog-articles-container {
  margin-top: 2em;
}

.blog-article-page {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.blog-article-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-article-page:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.blog-article-page:hover::before {
  opacity: 1;
}

.blog-article-header-page {
  margin-bottom: 20px;
}

.blog-article-category-badge-page {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.blog-article-title-page {
  margin: 0 0 16px 0;
  color: #0f172a;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.blog-article-meta-page {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
  flex-wrap: wrap;
}

.blog-article-read-time-page {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.blog-article-excerpt-page {
  color: #475569;
  line-height: 1.7;
  margin: 0 0 24px 0;
  font-size: 1.05rem;
  font-weight: 400;
}

.blog-internal-links {
  background: #f8fafc;
  border-left: 4px solid #6366f1;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.blog-internal-links h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.blog-internal-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-internal-links li {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.blog-internal-links li:last-child {
  border-bottom: none;
}

.blog-internal-links a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.blog-internal-links a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.blog-article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.blog-social-buttons-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-btn-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: var(--btn-radius);
  background: #fff;
  color: #374151;
  font-size: 16px;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: var(--btn-shadow);
  min-width: 40px;
  height: 40px;
  user-select: none;
}

.social-btn-inline img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s;
}

.social-btn-inline:hover img {
  filter: grayscale(0%);
}

.social-btn-inline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: var(--btn-transform-hover);
  box-shadow: var(--btn-shadow-hover);
}

.social-btn-inline.twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
  background: #f0f9ff;
}

.social-btn-inline.linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
  background: #f0f9ff;
}

.social-btn-inline.facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: #f0f9ff;
}

.social-btn-inline.copy-link:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #f0f9ff;
}

.blog-article-content-page {
  color: #1e293b;
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.blog-article-content-page h3 {
  color: #1e293b;
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.blog-article-content-page p {
  margin: 0 0 16px 0;
  color: #374151;
}

.blog-article-content-page ul {
  margin: 16px 0;
  padding-left: 24px;
}

.blog-article-content-page li {
  margin: 8px 0;
  color: #374151;
}

.blog-article-content-page strong {
  color: #1e293b;
  font-weight: 600;
}

.blog-article-toggle-page {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--btn-radius);
  background: linear-gradient(135deg, var(--brand-blue) 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  user-select: none;
}

.blog-article-toggle-page:hover {
  transform: var(--btn-transform-hover);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.blog-article-toggle-page .toggle-icon {
  transition: transform 0.3s ease;
}

.blog-citations {
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.blog-citations h4 {
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 8px;
}

.blog-citations ul {
  margin: 0;
  padding-left: 20px;
}

.blog-citations li {
  margin: 12px 0;
  color: #374151;
  line-height: 1.6;
}

.blog-citations a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-citations a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.blog-citations strong {
  color: #1e293b;
  font-weight: 600;
}

.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}

.blog-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.blog-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  width: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 36px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

.blog-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.blog-modal-title h2 {
  margin: 0 0 8px 0;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.blog-modal-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
}

.blog-modal-close {
  background: none;
  border: 1px solid transparent;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.blog-modal-close:hover {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
  transform: scale(1.05);
}

.blog-articles {
  padding: 36px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.blog-article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.blog-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-article:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.blog-article:hover::before {
  opacity: 1;
}

.blog-article-header {
  margin-bottom: 20px;
}

.blog-article-category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.blog-article-title {
  margin: 0 0 16px 0;
  color: #0f172a;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.blog-article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
  flex-wrap: wrap;
}

.blog-article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #64748b;
}

.article-date {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.8rem;
}

.article-category {
  background: #3b82f6;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.language-selector:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.language-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.language-text {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
  color: #1e293b;
}

.language-option:hover {
  background-color: #f1f5f9;
}

.language-option:first-child {
  border-radius: 8px 8px 0 0;
}

.language-option:last-child {
  border-radius: 0 0 8px 8px;
}

.blog-article-meta svg {
  opacity: 0.7;
}

.blog-article-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-article-excerpt {
  color: #475569;
  line-height: 1.7;
  margin: 0 0 24px 0;
  font-size: 1.05rem;
  font-weight: 400;
}

.blog-article-read-more {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.blog-article-read-more svg {
  transition: transform 0.2s ease;
}

.blog-article-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.blog-article-read-more:hover svg {
  transform: translateX(4px);
}

.blog-full-article {
  padding: 0;
}

.blog-back-to-list {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 32px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-back-to-list:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(-2px);
}

.blog-article-content {
  color: #1e293b;
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-lead {
  font-size: 1.2rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 32px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.blog-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.blog-feature-item {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-feature-item h4 {
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.blog-feature-item p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.blog-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.blog-stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

.blog-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 8px;
}

.blog-stat-label {
  font-size: 0.875rem;
  color: #0c4a6e;
  font-weight: 600;
  line-height: 1.4;
}

.blog-process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.blog-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.blog-step-number {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.blog-step-content h4 {
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.blog-step-content p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.blog-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.blog-tech-item {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-tech-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.blog-tech-item h4 {
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.blog-tech-item p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.blog-insight-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  position: relative;
}

.blog-insight-box h4 {
  color: #92400e;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-insight-box p {
  color: #78350f;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.blog-article-content h2 {
  color: #1e293b;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 32px 0 16px 0;
  line-height: 1.3;
}

.blog-article-content h3 {
  color: #1e293b;
  font-size: 1.375rem;
  font-weight: 600;
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

.blog-article-content p {
  margin: 0 0 16px 0;
  color: #374151;
}

.blog-article-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.blog-article-content li {
  margin: 8px 0;
  color: #374151;
}

.blog-article-content strong {
  color: #1e293b;
  font-weight: 600;
}

.blog-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-article-footer-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-article-footer-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.blog-article-footer-meta .blog-article-category {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.blog-share-btn {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-share-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

@media (max-width: 430px) {
  .metric-item {
    padding: 0.75rem 0.5rem;
    min-height: 70px;
  }
  .metric-label {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }
  .metric-value {
    font-size: 1rem;
    min-height: 1.5rem;
  }
  .metric-item.price .metric-value {
    font-size: 1rem;
  }
  .metric-item.energy .metric-value {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    min-height: 1.5rem;
  }
}

.price-comparison-table {
  margin-bottom: 2rem;
}

.price-comparison-table h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.price-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.price-comparison-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #374151;
  font-weight: 700;
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.price-comparison-table tr:hover {
  background-color: #f9fafb;
}

.price-comparison-table tr:hover .metric-value {
  transform: translateY(-1px);
}

.price-comparison-table .best-value {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid #22c55e;
  border-radius: 8px;
  position: relative;
  font-weight: 700;
  color: #166534;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.price-comparison-table .best-value::before {
  content: "★";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-comparison-table .best-value .energy-value {
  color: #166534;
  font-weight: 800;
}

.card-section {
  margin-bottom: 1.5rem;
}

.card-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0.5em 0 12px 0;
  padding: 0 0 8px 0;
  border-bottom: 2px solid #e9ecef;
  position: relative;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 769px) {
  .comparison-cards {
    display: none;
  }
  .desktop-only {
    display: block !important;
  }
}

.site-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 50px 0 30px;
  border-bottom: 1px solid #475569;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.025em;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 16px 0;
  letter-spacing: 0.025em;
}

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

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-section a:hover {
  color: #3b82f6;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.875rem;
}

.footer-copyright {
  color: #94a3b8;
}

.footer-copyright p {
  margin: 0;
}

.footer-attribution {
  color: #94a3b8;
}

.footer-attribution p {
  margin: 0;
}

.footer-attribution a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-attribution a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.footer-attribution .genai-link {
  color: #ffffff !important;
  font-weight: 600;
}

.footer-attribution .genai-link:hover {
  color: #f1f5f9 !important;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (min-width: 320px) {
  body[data-page="home"] .container {
    min-height: 70vh;
  }
}

#city-form input {
  min-height: 40px;
}

#city-form .button-container {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  min-height: 48px;
}

.trustpilot-section {
  min-height: 72px;
}

.auth-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.auth-modal.show {
  display: flex !important;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.28),
    0 12px 24px rgba(59, 80, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 420px;
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  animation: authModalIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  z-index: 10001;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes authModalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.auth-modal-branding {
  background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-purple) 100%);
  padding: 28px 28px 24px 28px;
  border-radius: 23px 23px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.auth-modal-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-modal-logo-icon {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 10px;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-modal-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  font-family: inherit;
}

.auth-modal-tagline {
  font-size: 0.82rem;
  color: rgba(186, 205, 255, 0.92);
  letter-spacing: 0.01em;
  text-align: center;
  margin-top: 2px;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0 24px;
}

.auth-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  font-family: inherit;
}

.auth-modal-close {
  background: rgba(107, 114, 128, 0.1);
  border: none;
  font-size: 1.2rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.auth-modal-close:hover {
  background: rgba(17, 24, 39, 0.1);
  color: #111827;
  transform: rotate(90deg);
}

.auth-modal-body {
  padding: 16px 24px 24px 24px;
}

.auth-provider-selection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.97rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 54px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.auth-provider-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.auth-provider-btn:active::after {
  width: 400px;
  height: 400px;
  opacity: 1;
  transition: 0s;
}

.auth-provider-btn:hover {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.auth-provider-btn.google-btn:hover {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.2);
}

.auth-provider-btn.apple-btn {
  color: #000000;
}

.auth-provider-btn.apple-btn:hover {
  border-color: #9ca3af;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.auth-provider-btn.email-btn:hover {
  border-color: #a5b4fc;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0ff 100%);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.18);
}

.auth-provider-btn svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  width: 100%;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 8px;
}

.auth-provider-btn {
  margin-bottom: 12px;
}

.auth-terms-agreement {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}

.auth-terms-agreement p {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
}

.auth-terms-agreement a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.auth-terms-agreement a:hover {
  color: #3730a3;
  text-decoration: underline;
}

.auth-email-form {
  margin-top: 16px;
}

.auth-explanation {
  margin-bottom: 12px;
  margin-top: 0;
}

.auth-explanation p {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  background: #f8faff;
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
}

.auth-form-tabs {
  display: flex;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 20px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
  font-family: inherit;
}

.auth-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.auth-tab:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.03);
}

.auth-forms-stack {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.auth-form-group label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-form-group input {
  margin: 0;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.97rem;
  transition: all 0.22s ease;
  box-sizing: border-box;
  background: white;
  color: #111827;
  font-family: inherit;
}

.auth-form-group input::placeholder {
  color: #c4c9d4;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  background: white;
}

.auth-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-blue) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-sizing: border-box;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  font-family: inherit;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.45);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-forgot-btn {
  background: none;
  border: none;
  color: var(--brand-indigo);
  font-size: 0.875rem;
  cursor: pointer;
  text-align: center;
  padding: 8px;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.auth-forgot-btn:hover {
  color: #4338ca;
  text-decoration: underline;
}

.auth-error {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 12px;
  border-left: 3px solid #ef4444;
}

.auth-success {
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #16a34a;
  font-size: 0.875rem;
  margin-top: 12px;
  border-left: 3px solid #22c55e;
}

@media (max-width: 375px) {
  .auth-modal {
    padding: 5px !important;
  }
  .auth-modal-content {
    max-height: calc(100vh - 10px);
    border-radius: 16px;
  }
  .auth-modal-header h2 {
    font-size: 1.05rem;
  }
  .auth-modal-brand-name {
    font-size: 1.2rem;
  }
  .auth-provider-btn {
    padding: 13px 14px;
    font-size: 0.93rem;
    min-height: 50px;
  }
}

.woz-blur {
  filter: blur(5px) grayscale(40%);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  position: relative;
}

.woz-blur-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
  font-weight: 600;
  color: #222;
}

.woz-cell-wrap {
  position: relative;
}

.address-count-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5em auto;
  padding: 12px 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: fit-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.address-count-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
  width: 100%;
  text-align: center;
}

.address-count-number {
  display: inline-block;
  color: #1e40af;
  font-weight: 600;
  font-size: 1.2em;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
  vertical-align: baseline;
}

#addresses-text {
  font-size: 0.7em;
  color: #374151;
  font-weight: 500;
  opacity: 0.9;
  margin-left: 0px;
  vertical-align: baseline;
  display: inline;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .steps-preview {
    flex-direction: column;
    gap: 0.75rem;
    margin: 1em auto 1.5em auto;
    padding: 0 0.5rem;
  }
  .steps-preview::before {
    display: none;
  }
  .step {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.25rem;
    gap: 1.25rem;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  }
  .step:hover {
    transform: translateX(8px);
    background: white;
  }
  .step-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    flex-shrink: 0;
  }
  .step-content {
    flex: 1;
  }
  .step-content h3 {
    margin-top: 0;
    font-size: 1rem;
  }
  .step-content p {
    max-width: none;
    font-size: 0.85rem;
  }
  .comparison-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  .comparison-header {
    padding: 1rem 1.5rem;
  }
  .comparison-form {
    padding: 1.5rem;
  }
  .comparison-table {
    overflow-x: auto;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
    overflow: visible;
  }
  .comparison-table table {
    min-width: 1000px;
    display: none;
  }
  .header-inner {
    padding: 0.5rem 0.75rem;
  }
  .header-left {
    gap: 0.5rem;
  }
  .menu-toggle {
    padding: 0.4rem;
  }
  .price-title {
    gap: 0.3em !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .price-title>span:first-child {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .price-title>span:nth-child(2) {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .tile-link-btn {
    flex-shrink: 0 !important;
    margin-left: 0.5em !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    padding: 0.4em 0.6em;
    font-size: 0.8em;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
  }
  .source-badge {
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    padding: 0.3em 0.6em;
    font-size: 0.7em;
    height: 28px;
  }
  .tile-link-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
  .price-estimation {
    padding: 25px 20px;
    border-radius: 14px;
  }
  .price-amount {
    font-size: 1.8em;
  }
  #result {
    max-width: 100%;
    padding: 0 15px;
  }
  .property-card {
    padding: 20px 15px;
  }
  .property-table {
    font-size: 0.95em;
  }
  .property-value {
    padding: 12px 16px;
  }
  .property-main-image {
    max-height: 250px;
  }
  #facts-tile {
    margin: 1rem 0;
    padding: 1rem;
  }
  #facts-tile h3 {
    font-size: 1.3rem !important;
  }
  #fact-content {
    min-height: 60px !important;
    padding: 1rem !important;
  }
  .site-header .header-actions {
    gap: 6px;
  }
  .leefbaarometer-tile .price-title {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 0.3em !important;
  }
  .leefbaarometer-tile .price-title>span:nth-child(2) {
    position: static !important;
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 0 !important;
  }
  .cbs-tile .price-title {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 0.3em !important;
  }
  .cbs-tile .price-title>span:nth-child(2) {
    position: static !important;
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 0 !important;
  }
  .tile-link-btn .icon {
    font-size: 0.9em;
  }
  .funda-info-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
  }
  .funda-tooltip {
    max-width: calc(100vw - 60px) !important;
    min-width: 280px !important;
    font-size: 12px !important;
    padding: 12px 16px !important;
  }
  .blog-article-page {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 12px !important;
  }
  .blog-article-title-page {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .blog-article-meta-page {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.8rem;
  }
  .blog-article-content-page {
    padding: 1rem !important;
    font-size: 0.95rem;
  }
  .blog-article-content-page h3 {
    font-size: 1.05rem !important;
  }
  .blog-article-toggle-page {
    width: 100%;
    justify-content: center;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
  }
  .blog-article-actions {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .blog-social-buttons-inline {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .social-btn-inline {
    width: 48px;
    height: 48px;
    padding: 12px;
  }
  .blog-modal-content {
    width: 95vw;
    max-height: 95vh;
    margin: 20px;
  }
  .blog-modal-header {
    padding: 24px 28px;
  }
  .blog-modal-title h2 {
    font-size: 1.75rem;
  }
  .blog-articles {
    padding: 28px;
    max-height: calc(95vh - 120px);
  }
  .blog-article {
    padding: 24px;
    margin-bottom: 24px;
  }
  .blog-article-title {
    font-size: 1.375rem;
  }
  .blog-article-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .blog-tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-article-content h2 {
    font-size: 1.75rem;
  }
  .blog-article-content h3 {
    font-size: 1.375rem;
  }
  .blog-article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .comparison-cards {
    display: block;
  }
  .comparison-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  .comparison-card:last-child {
    margin-bottom: 0;
  }
  .card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
  }
  .card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
  }
  .card-address {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
  }
  .card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
  }
  .metric-item {
    text-align: center;
    padding: 1rem 0.75rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
  }
  .metric-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    flex-shrink: 0;
  }
  .metric-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    line-height: 1.2;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    text-align: center;
  }
  .metric-item.price .metric-value {
    color: #059669;
    font-size: 1.1rem;
    font-weight: 800;
    min-height: 2rem;
  }
  .metric-item.energy .metric-value {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #93c5fd;
    min-height: 2rem;
    width: fit-content;
    margin: 0 auto;
  }
  .metric-item.property .metric-value {
    color: #6b7280;
    font-size: 0.875rem;
  }
  .metric-value.na-value {
    color: #6b7280 !important;
    font-weight: 600;
  }
  .metric-item.full-width {
    grid-column: 1 / -1;
  }
  .price-comparison-table {
    margin-bottom: 1.5rem;
  }
  .price-comparison-table h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  .price-comparison-table table {
    font-size: 0.875rem;
  }
  .price-comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  .card-section {
    margin-bottom: 1.25rem;
  }
  .comparison-table h3 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .comparison-cards .card-section h4.section-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  .desktop-only {
    display: none !important;
  }
  .price-estimation div[style*="justify-content:space-between"]>span:last-child {
    text-align: right !important;
  }
  .site-footer {
    margin-top: 60px;
  }
  .footer-content {
    padding: 0 16px;
  }
  .footer-main {
    padding: 40px 0 24px;
    gap: 32px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px 0;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .ai-research-subtext {
    font-size: 0.75em !important;
    line-height: 1.1 !important;
  }
  .woz-abs-change {
    display: none !important;
  }
  .address-count-badge {
    padding: 10px 16px;
    gap: 0;
  }
  .address-count-text {
    font-size: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .container {
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    padding: 0 1rem 1.25rem 1rem;
    margin: 0.75rem auto 1.25rem auto !important;
  }
  h1 {
    font-size: clamp(1.5rem, 5vw + 0.5rem, 2rem);
    overflow-wrap: break-word;
    word-break: break-word;
    margin-top: 0.75em;
    margin-bottom: 0.5em;
  }
  .description {
    font-size: 1rem;
    margin-bottom: 0.75em;
  }
  #city-form {
    padding: 1.25rem 1rem;
    margin: 1.25em auto 1.75em auto;
    border-radius: 14px;
  }
  .trust-signal {
    padding: 0.9em 1rem;
    margin: 1em auto 1.25em auto;
    border-radius: 12px;
  }
  .trust-content {
    font-size: 0.875rem;
    gap: 0.5em;
  }
  .info-page {
    padding: 0 !important;
  }
  .info-page .info-card {
    width: 100% !important;
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
  }
  .page-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .page-text {
    font-size: 0.95rem;
  }
  .blog-articles-container {
    padding: 0;
  }
  .blog-article-excerpt-page {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .blog-article-category-badge-page {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .nav-item a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .social-proof {
    min-height: auto;
  }
  footer {
    padding: 1.5rem 1rem !important;
  }
  .footer-link {
    font-size: 0.875rem;
  }
  body {
    overflow-x: hidden;
  }
  table {
    max-width: 100%;
  }
}

.funda-row {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 480px) {
  .price-title {
    gap: 0.3em !important;
    justify-content: flex-start !important;
    font-size: 0.9em;
  }
  .price-title>span:nth-child(2) {
    font-size: 1.05em !important;
    text-align: center !important;
    flex: 1 !important;
  }
  .source-badge {
    font-size: 0.65em !important;
    padding: 0.25em 0.5em !important;
    margin-left: 0 !important;
    text-align: left !important;
    height: 26px;
  }
  .price-title>div:first-child {
    justify-content: flex-start !important;
    gap: 0.3em !important;
  }
  .tile-link-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    padding: 0.3em 0.5em;
    font-size: 0.75em;
    min-width: 32px;
    min-height: 32px;
  }
  .tile-link-btn svg {
    width: 22px !important;
    height: 22px !important;
  }
  .price-estimation {
    padding: 1em;
    border-radius: 8px;
    margin-left: 0.5em;
    margin-right: 0.5em;
  }
  .price-amount {
    font-size: 1.8em;
  }
  .container {
    width: 100vw;
    border-radius: 10px;
    margin: 0 !important;
    padding: 0 0.75rem 1rem 0.75rem;
  }
  .price-estimation+.price-estimation {
    margin-top: 1rem;
  }
  .price-estimation .price-title {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.25em !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .price-estimation .price-title>span:nth-child(2) {
    flex: 1 !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  .price-estimation .price-title .tile-link-btn {
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .tile-link-btn .icon {
    font-size: 0.85em;
  }
  .pricing-page {
    max-width: calc(100vw - 1.5em) !important;
    width: calc(100vw - 1.5em) !important;
    padding: 1.3em 1em 1em 1em !important;
    margin: var(--content-top-gap) 0.75em var(--content-bottom-gap) 0.75em !important;
  }
  .plan-card {
    padding: 1.6em 1.2em 1.3em 1.2em;
    margin: 0 0.3em;
  }
  .plan-title {
    font-size: 1.2em;
  }
  .plan-subtitle {
    font-size: 0.9em;
  }
  .pricing-features {
    font-size: 0.9em;
    padding-left: 0.8em;
  }
  .pricing-cta {
    height: 50px;
    font-size: 1em;
  }
  .plan-badge {
    top: -6px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7em;
  }
  .pricing-trust {
    font-size: 0.85em !important;
    margin: 10px 0 16px 0 !important;
  }
  .free-trial-badge {
    font-size: 0.8em !important;
    padding: 5px 8px !important;
    margin: 0.5em 0 !important;
  }
  .funda-tooltip {
    max-width: calc(100vw - 40px) !important;
    min-width: 250px !important;
    font-size: 13px !important;
    padding: 14px 18px !important;
  }
  .blog-article-page {
    padding: 0.875rem !important;
    margin-bottom: 16px;
  }
  .blog-article-title-page {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }
  .blog-article-content-page {
    padding: 16px;
  }
  .blog-article-actions {
    gap: 20px;
  }
  .blog-article-toggle-page {
    padding: 18px 20px;
    font-size: 1rem;
  }
  .blog-social-buttons-inline {
    gap: 16px;
  }
  .blog-share-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  .blog-modal-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .blog-modal-header {
    padding: 16px 20px;
  }
  .blog-articles {
    padding: 20px;
    max-height: calc(100vh - 80px);
  }
  .blog-article {
    padding: 16px;
    margin-bottom: 16px;
  }
  .blog-article-title {
    font-size: 1.125rem;
  }
  .blog-article-read-more {
    width: 100%;
    justify-content: center;
  }
  .footer-main {
    padding: 32px 0 20px;
  }
  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .footer-section a {
    font-size: 0.85rem;
  }
  .footer-description {
    font-size: 0.9rem;
  }
  .ai-research-subtext {
    font-size: 0.7em !important;
    line-height: 1.05 !important;
  }
  .auth-modal {
    padding: 10px !important;
  }
  .auth-modal-content {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 20px);
    margin: 0;
    border-radius: 20px;
  }
  .auth-modal-branding {
    padding: 22px 20px 18px 20px;
    border-radius: 19px 19px 0 0;
  }
  .auth-modal-header {
    padding: 16px 18px 0 18px;
  }
  .auth-modal-body {
    padding: 12px 18px 20px 18px;
  }
  .auth-provider-btn {
    padding: 14px 16px;
    font-size: 0.97rem;
    border-radius: 12px;
  }
  .auth-form-group input {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .auth-submit-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
  h1 {
    font-size: clamp(1.35rem, 5vw + 0.25rem, 1.75rem);
  }
  #city-form {
    padding: 1rem 0.875rem;
    border-radius: 12px;
  }
  .info-page .info-card {
    padding: 1rem 0.875rem !important;
  }
  .page-title {
    font-size: 1.35rem;
  }
  .steps-preview {
    gap: 1em;
  }
  .step {
    gap: 0.75em;
  }
  .step-number {
    width: 2em;
    height: 2em;
    font-size: 1em;
  }
  .funda-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
    margin-bottom: 0.8em !important;
  }
  .funda-row>div:first-child {
    align-self: flex-start;
  }
  #funda-research-btn {
    width: 100% !important;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 14px !important;
  }
}

.invoices-list table th {
  font-size: 0.85rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  padding: 12px 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.invoices-list table td {
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 16px 8px;
}

.btn-invoice-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--brand-indigo);
  transition: all 0.2s ease;
}

.btn-invoice-download:hover {
  background: var(--brand-indigo);
  color: white;
  transform: translateY(-1px);
}

.missing-invoices-hint p {
  line-height: 1.6;
}

@media (max-width: 640px) {
  .invoices-list table td:nth-child(1) {
    font-size: 0.8rem;
  }
}

.school-extended-info-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.school-extended-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ea580c !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: -0.01em !important;
  font-family: 'Inter', sans-serif !important;
}

.school-extended-search-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
  background: #f8fafc !important;
}

@media (max-width: 540px) {
  .school-extended-info-container {
    flex-direction: column !important;
    text-align: center !important;
    padding: 16px 12px !important;
  }
  .school-extended-info-text {
    min-width: unset !important;
    width: 100% !important;
    margin-bottom: 4px !important;
  }
  .school-extended-search-btn {
    width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 12px 16px !important;
  }
}



/* --- Layout Fixes for Address Form --- */
#address-form .button-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
}

#address-form #submit-btn {
  flex: 1 !important;
  width: auto !important;
  margin-bottom: 0 !important;
  min-height: 56px !important;
}

#address-form #copy-link-btn {
  width: 56px !important;
  height: 56px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  margin: 0 !important;
}

@media (max-width: 480px) {
  #address-form .button-container {
    gap: 8px !important;
  }
}

@media (max-width: 768px) {
}

/* --- Final Address Form Card Fix --- */

@media (max-width: 768px) {
}

/* --- Language Selector Fix --- */
.language-selector {
  width: auto !important;
  min-width: unset !important;
  display: inline-flex !important;
  padding: 6px 12px !important;
  height: 40px !important;
  justify-content: center !important;
}

.site-header .lang-select-container {
  width: auto !important;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- UI Professionalism Fix --- */
.language-selector {
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: unset !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.language-icon {
  width: 14px !important;
  height: 14px !important;
  margin-right: 6px !important;
}

.language-text {
  font-size: 0.825rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}


#example-pdf-section {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 850px !important;
}

/* --- Absolute Centering for Address Form --- */
#address-form {
  display: block !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #f0f7ff !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 24px !important;
  padding: 2rem 2.5rem !important;
  margin: 2rem 0 3.5rem 0 !important;
  max-width: 850px !important;
  width: 95% !important;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12), 0 8px 10px -6px rgba(99, 102, 241, 0.1) !important;
  box-sizing: border-box !important;
}

#example-pdf-section {
  display: block !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: 850px !important;
  width: 95% !important;
  margin: 1.5rem 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  #address-form {
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
    width: 98% !important;
    margin: 1rem 0 2rem 0 !important;
  }
}

/* Missing Feedback Form Styling */
.missing-feedback-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.missing-feedback-input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.missing-feedback-input:focus {
  border-color: #6366f1;
}

.missing-feedback-submit {
  padding: 0 24px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  height: 50px;
  width: auto;
  white-space: nowrap;
}

.missing-feedback-submit:hover {
  background: #4f46e5;
}

@media (max-width: 480px) {
  .missing-feedback-form {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
}
