:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-secondary: #16a34a;
  --color-accent-orange: #d92d12;
  --color-bg: #050505;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text-main: #ffffff;
  --color-text-secondary: #e5e5e5;
  --color-text-muted: #a1a1aa;

  /* Gradients */
  --gradient-main: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );

  /* Card Header Gradients (Reference Style) */
  --gradient-header-meta: linear-gradient(
    to right,
    #b91c1c,
    #450a0a
  ); /* Red/Dark Red */
  --gradient-header-tiktok: linear-gradient(
    to right,
    #000000,
    #330514
  ); /* Black/Dark Pink */
  --gradient-header-proxy: linear-gradient(
    to right,
    #14532d,
    #052e16
  ); /* Green/Dark Green */

  /* Card Body Gradient */
  --gradient-card-body: linear-gradient(to bottom, #020617, #0f172a);
  --gradient-card-meta: linear-gradient(135deg, rgba(185, 28, 28, 0.2), rgba(37, 99, 235, 0.12));
  --gradient-card-tiktok: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(236, 72, 153, 0.14));
  --gradient-card-default: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(37, 99, 235, 0.1));

  --gradient-hero: linear-gradient(90deg, #2e7d32 0%, #1565c0 100%);

  /* Spacing */
  --spacing-container: 1200px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Typography */
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-hero: clamp(2.5rem, 5vw, 4rem);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  --radius-card: 24px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15), transparent 34rem),
    linear-gradient(180deg, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.86) 72%);
}

/* Texture Overlay - Optimizes Fixed Background Performance */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("/images/background-main-optimized.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (max-width: 768px) {
  body::before {
    display: none;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg); /* Creates padding effect around thumb */
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5); /* Primary color low opacity */
}

/* Firefox scrollbar support */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) var(--color-bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

button {
  font-family: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.75);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.catalog-loading {
  min-height: 18rem;
  display: grid;
  place-items: center;
  color: var(--color-text-secondary);
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted {
  color: var(--color-text-muted);
}
.text-secondary {
  color: var(--color-text-secondary);
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.uppercase {
  text-transform: uppercase;
}

/* Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: var(--text-base);
  min-height: 44px;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.btn-buy {
  background: var(--color-accent-orange);
  color: white;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(255, 59, 31, 0.4);
}

.btn-buy:hover {
  background: #bd240d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 59, 31, 0.6);
}

/* Cards & Surfaces */
.glass-panel {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  will-change: backdrop-filter; /* Optimization hint */
}

.card {
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 222, 128, 0.22);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1rem !important; /* Force override for inner spacing */
  border-radius: 12px !important; /* Less rounded pill, more squircle */
}

/* Specific Hero Badge overrides if needed */
.hero-feature-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 48px;
}

.hero-feature-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.badge-accent {
  background: var(--gradient-main);
  color: white;
  border: none;
}

.badge-featured {
  background: #b91c1c;
  color: white;
}

.badge-blue {
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  color: white;
}

/* Inputs */
.input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 1rem 1.5rem;
  padding-left: 3rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: var(--text-base);
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.input-field:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.input-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

/* New Top Navbar */
.nav-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.6rem 2.5rem 0.6rem 2.2rem;
  border-radius: 8px; /* Sleeker, squareish look */
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  min-height: 40px;
}

.nav-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.nav-search-input::placeholder {
  color: #6b7280;
}

.nav-link-item:hover {
  color: white !important;
}

.nav-btn-primary:hover {
  background: #e5e5e5 !important;
  transform: translateY(-1px);
}

/* Sections */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.section-indicator {
  width: 4px;
  height: 24px;
  background: var(--color-secondary);
  border-radius: 2px;
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes titleSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-hero-title {
  opacity: 0;
  animation: titleSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-hero-desc {
  opacity: 0;
  animation: titleSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.animate-hero-badges {
  opacity: 0;
  animation: titleSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Typing Animations */
@keyframes typingTitle {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes typingDesc {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes blinkCursor {
  from, to { border-color: transparent }
  50% { border-color: var(--color-primary); }
}

@keyframes hideCursor {
  to {
    border-color: transparent;
  }
}

.typewriter-title-wrapper {
  display: inline-block;
  overflow: visible;
  white-space: normal;
  margin: 0 auto;
  border-right: 0;
  width: auto;
}

/* Because title is centered, we wrap the H1 inner text in the wrapper above */
.hero-title-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.typewriter-desc-wrapper {
  display: inline-block;
  overflow: visible;
  white-space: normal;
  clip-path: none;
  animation: none;
}

@keyframes revealWipe {
  0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.blink-animation {
  animation: blink 2s infinite ease-in-out;
  will-change: opacity;
}

/* Mobile */
/* Testimonials */
.testimonial-card {
  background: rgba(2, 6, 23, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
  box-shadow: var(--shadow-card);
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.95), rgba(37, 99, 235, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.2rem 0.6rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.02em;
}

.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 2rem; /* Give room for shadow & scrollbar if appearing */
  margin-right: -1.5rem; /* Allow scroll past container edge nicely */
  padding-right: 1.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-snap-type: x mandatory;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.testimonials-carousel .testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

/* FAQ */
.faq-item {
  background: rgba(2, 6, 23, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-text-main);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  gap: 1rem;
  text-align: left;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  color: var(--color-text-secondary);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
  max-height: 500px;
}

/* Pulse Animation */
@keyframes buyPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 59, 31, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 59, 31, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 59, 31, 0.4);
  }
}

.btn-buy-pulse {
  animation: buyPulse 2s infinite ease-in-out;
  will-change: transform, box-shadow;
}

/* Mobile Optimizations */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.category-grid .card {
  min-height: 150px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .category-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .category-grid::-webkit-scrollbar {
    display: none;
  }
  .category-grid .card {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }
}

.grid-responsive {
  /* Reduced min-width to fit smaller screens (320px+) without breaking */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Product Page Grid */
.product-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.5rem;
  gap: 2rem;
}

@media (min-width: 900px) {
  .product-page-grid {
    grid-template-columns: 1fr 1.2fr; /* Restore side-by-side on desktop */
    padding: 2.5rem;
    gap: 3rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Navbar Mobile */
  header .nav-container {
    flex-wrap: wrap;
    height: auto !important;
    padding: 1rem;
    gap: 1rem;
  }

  header .logo {
    font-size: 1.25rem !important;
  }

  .nav-search-wrapper {
    order: 3;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100%;
  }
  
  .nav-shortcut {
    display: none !important;
  }

  .nav-links {
    gap: 1rem !important;
  }

  .nav-btn-primary {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
  }

  .nav-link-item {
    display: none !important;
  }

  .text-hero {
    font-size: clamp(2rem, 13vw, 2.7rem) !important;
    margin-top: 1rem;
  }

  .typewriter-title-wrapper {
    white-space: normal;
    border-right: 0;
    animation: titleSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: auto;
  }

  .hero-title-container {
    margin-bottom: 1rem;
  }

  .hero-copy {
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }

  #home-content {
    padding-top: 7rem;
  }

  .hero-feature-badge {
    width: 100%;
    justify-content: center;
  }

  /* Buttons */
  .btn-buy {
    font-size: 1rem !important;
    padding: 1rem !important;
  }

  /* Text Sizes */
  .section-title {
    font-size: 1.5rem !important;
  }

  .section-header {
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════════
   TAX CALCULATOR – Full Page (route: calculator-tax)
   ══════════════════════════════════════════════════════════════ */

.tc-page {
  max-width: 760px;
  margin: 2.5rem auto;
  padding-bottom: 4rem;
}

.tc-page-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text-muted);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}

.tc-back-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.tc-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tc-page-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
}

.tc-page-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}

/* Main card (wraps everything) */
.tc-card {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Section header inside card */
.tc-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 1.25rem;
}

/* Inputs */
.tc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tc-inputs .tc-field:first-child {
  grid-column: 1 / -1; /* Monthly spans full width */
}

/* Preset buttons */
.tc-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.tc-preset-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-preset-btn:hover {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.3);
  color: #4ade80;
}

.tc-preset-btn--active {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.45);
  color: #4ade80;
}

.tc-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-optional {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: none;
  color: #4b5563;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1px 6px;
}

.tc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tc-prefix {
  position: absolute;
  left: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  pointer-events: none;
  z-index: 1;
}

.tc-suffix {
  position: absolute;
  right: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  pointer-events: none;
}

.tc-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tc-input:focus {
  background: rgba(255,255,255,0.05);
  border-color: rgba(74,222,128,0.45);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.1);
}

.tc-input::placeholder { color: #374151; }

.tc-input[type="number"]::-webkit-outer-spin-button,
.tc-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.tc-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Divider */
.tc-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tc-divider::before,
.tc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* Result cards grid */
.tc-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.tc-result-card {
  border-radius: 14px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tc-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.tc-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin: 0;
}

.tc-card-value {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tc-card-sub {
  font-size: 0.7rem;
  opacity: 0.5;
  margin: 0;
}

.tc-card-red  { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.tc-card-red  .tc-card-icon { background: rgba(239,68,68,0.15); }
.tc-card-green { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2); color: #4ade80; }
.tc-card-green .tc-card-icon { background: rgba(74,222,128,0.15); }
.tc-card-blue  { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; }
.tc-card-blue  .tc-card-icon { background: rgba(59,130,246,0.15); }
.tc-card-accent { background: linear-gradient(135deg, rgba(74,222,128,0.08), rgba(59,130,246,0.08)); border: 1px solid rgba(255,255,255,0.1); color: #e5e7eb; }
.tc-card-accent .tc-card-icon { background: rgba(255,255,255,0.05); }
.tc-card-accent .tc-card-value {
  background: linear-gradient(135deg,#4ade80,#60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Comparison bars */
.tc-compare-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tc-compare-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0;
}

.tc-compare-bars { display: flex; flex-direction: column; gap: 0.75rem; }

.tc-bar-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 1rem;
}

.tc-bar-label { font-size: 0.85rem; font-weight: 500; color: #d1d5db; white-space: nowrap; }

.tc-bar-track {
  height: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.tc-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}

.tc-bar-br { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.tc-bar-us { background: linear-gradient(90deg, #4ade80, #22c55e); }

.tc-bar-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 95px;
  text-align: right;
}

/* Disclaimer */
.tc-disclaimer {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #4b5563;
  background: rgba(74,222,128,0.04);
  border: 1px solid rgba(74,222,128,0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .tc-page { margin: 1.5rem auto; }
  .tc-card { padding: 1.25rem; gap: 1.25rem; }
  .tc-inputs { grid-template-columns: 1fr; }
  .tc-inputs .tc-field:first-child { grid-column: 1; }
  .tc-results { grid-template-columns: 1fr 1fr; }
  .tc-bar-row { grid-template-columns: 110px 1fr auto; gap: 0.5rem; }
  .tc-bar-label { font-size: 0.75rem; }
  .tc-card-value { font-size: 1rem; }
  .tc-page-title { font-size: 1.4rem; }
}

@media (max-width: 400px) {
  .tc-results { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   TAX CALCULATOR – Trigger Button (Navbar)
   ══════════════════════════════════════════════════════════════ */

.tax-calc-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(74,222,128,0.15) 0%, rgba(37,99,235,0.15) 100%);
  border: 1px solid rgba(74,222,128,0.35);
  color: #4ade80;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tax-calc-trigger-btn:hover {
  background: linear-gradient(135deg, rgba(74,222,128,0.25) 0%, rgba(37,99,235,0.25) 100%);
  border-color: rgba(74,222,128,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,222,128,0.2);
}

@media (max-width: 768px) {
  .tax-calc-btn-label {
    display: none;
  }
  .tax-calc-trigger-btn {
    padding: 0.45rem 0.6rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   TAX CALCULATOR – Overlay & Modal
   ══════════════════════════════════════════════════════════════ */

.tax-calc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tax-calc-overlay--open {
  opacity: 1;
  pointer-events: all;
}

.tax-calc-overlay--open .tax-calc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tax-calc-modal {
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(74,222,128,0.08);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* ── Header ── */
.tax-calc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  background: #0a0a0f;
  z-index: 2;
  border-radius: 20px 20px 0 0;
}

.tax-calc-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tax-calc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.tax-calc-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.tax-calc-close {
  margin-left: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #9ca3af;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tax-calc-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}

/* ── Body ── */
.tax-calc-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Inputs ── */
.tax-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tax-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tax-calc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tax-calc-optional {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: none;
  color: #4b5563;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1px 6px;
}

.tax-calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tax-calc-prefix {
  position: absolute;
  left: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  pointer-events: none;
  z-index: 1;
}

.tax-calc-suffix {
  position: absolute;
  right: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  pointer-events: none;
}

.tax-calc-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tax-calc-input:focus {
  background: rgba(255,255,255,0.05);
  border-color: rgba(74,222,128,0.45);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.1);
}

.tax-calc-input::placeholder {
  color: #374151;
}

/* Remove arrows from number input */
.tax-calc-input[type="number"]::-webkit-outer-spin-button,
.tax-calc-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.tax-calc-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ── Divider ── */
.tax-calc-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tax-calc-divider::before,
.tax-calc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Result Cards ── */
.tax-calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tax-calc-result-card {
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tc-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.tc-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin: 0;
}

.tc-card-value {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tc-card-sub {
  font-size: 0.72rem;
  opacity: 0.55;
  margin: 0;
}

/* Red card – imposto */
.tc-card-red {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
}
.tc-card-red .tc-card-icon {
  background: rgba(239,68,68,0.15);
}

/* Green card – economia mensal */
.tc-card-green {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  color: #4ade80;
}
.tc-card-green .tc-card-icon {
  background: rgba(74,222,128,0.15);
}

/* Blue card – economia anual */
.tc-card-blue {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  color: #60a5fa;
}
.tc-card-blue .tc-card-icon {
  background: rgba(59,130,246,0.15);
}

/* Accent card – percentual */
.tc-card-accent {
  background: linear-gradient(135deg, rgba(74,222,128,0.08), rgba(59,130,246,0.08));
  border: 1px solid rgba(255,255,255,0.1);
  color: #e5e7eb;
}
.tc-card-accent .tc-card-icon {
  background: rgba(255,255,255,0.05);
}
.tc-card-accent .tc-card-value {
  background: linear-gradient(135deg,#4ade80,#60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Comparison Bars ── */
.tc-compare-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tc-compare-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0;
}

.tc-compare-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tc-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.tc-bar-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #d1d5db;
  white-space: nowrap;
}

.tc-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.tc-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}

.tc-bar-br {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.tc-bar-us {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.tc-bar-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 90px;
  text-align: right;
}

/* ── Disclaimer ── */
.tc-disclaimer {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #4b5563;
  background: rgba(74,222,128,0.04);
  border: 1px solid rgba(74,222,128,0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .tax-calc-results {
    grid-template-columns: 1fr;
  }
  .tc-bar-row {
    grid-template-columns: 120px 1fr auto;
    gap: 0.5rem;
  }
  .tc-bar-label {
    font-size: 0.72rem;
  }
  .tc-card-value {
    font-size: 1rem;
  }
}
