/* ==========================================================================
   Core Variable System & Theme Configurations
   ========================================================================== */
:root {
  /* Fonts */
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-round: 50%;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #0f1626;
  --bg-card: rgba(20, 27, 45, 0.55);
  --bg-card-hover: rgba(30, 41, 67, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --primary: #a78bfa; /* Soft Lavender */
  --primary-hover: #c084fc;
  --primary-rgb: 167, 139, 250;
  
  --success: #10b981; /* Emerald */
  --success-bg: rgba(16, 185, 129, 0.15);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.15);
  
  --header-bg: rgba(9, 13, 22, 0.7);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --glow-color: rgba(167, 139, 250, 0.15);
  --orb-1-color: rgba(139, 92, 246, 0.2); /* Lavender purple orb */
  --orb-2-color: rgba(99, 102, 241, 0.15); /* Indigo supporting orb */
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --primary: #7c3aed; /* Rich Lavender/Violet */
  --primary-hover: #6d28d9;
  --primary-rgb: 124, 58, 237;
  
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.1);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.1);
  
  --header-bg: rgba(248, 250, 252, 0.8);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glow-color: rgba(124, 58, 237, 0.05);
  --orb-1-color: rgba(139, 92, 246, 0.06);
  --orb-2-color: rgba(99, 102, 241, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Smooth background transition for elements */
.glass-card, .form-control, .btn, .main-header, .theme-toggle {
  transition: background-color var(--transition-medium), border-color var(--transition-medium), color var(--transition-medium), box-shadow var(--transition-medium);
}

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

ul {
  list-style: none;
}

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

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Layout & Reusable Components
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 35px -5px rgba(0,0,0,0.1), var(--shadow-sm);
}

/* Glow Orbs */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}
.orb-1 {
  background: var(--orb-1-color);
  top: 10%;
  left: -10%;
}
.orb-2 {
  background: var(--orb-2-color);
  top: 45%;
  right: -10%;
}
.orb-3 {
  background: var(--orb-1-color);
  bottom: 5%;
  left: 20%;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button UI System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-medium);
  gap: 8px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
  opacity: 0.95;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-title);
}
.btn-text:hover {
  color: var(--primary-hover);
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
  resize: vertical;
}

/* Section Common Structure */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-tag {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  display: flex;
  align-items: center;
}
.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Menu Open Animation */
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero-section {
  padding-top: 180px;
  padding-bottom: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.badge-experience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-round);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-gstp {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: var(--radius-round);
  animation: pulse 1.5s infinite;
}

.badge-dot-green {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: var(--radius-round);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.service-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}

.service-tag-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--success-bg);
  color: var(--success);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-preview {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-preview-item {
  display: flex;
  flex-direction: column;
}
.stat-preview-item strong {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-preview-item span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-color);
}

/* Hero Right Side Graphics Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-container {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.main-hero-card {
  padding: 24px;
  transform: rotate(-1deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

.card-header-visual {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.card-header-visual span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.flex-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.circle-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
  border-radius: var(--radius-round);
}

.text-bold {
  font-weight: 700;
  font-family: var(--font-title);
}

.text-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-pill {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--success-bg);
  color: var(--success);
  padding: 4px 10px;
  border-radius: var(--radius-round);
  text-transform: uppercase;
}

.chart-visual {
  display: flex;
  align-items: flex-end;
  height: 130px;
  gap: 12px;
  margin: 32px 0 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.8));
  border-radius: 4px 4px 0 0;
  height: var(--height);
  animation: growBar 1.5s ease-out;
}

@keyframes growBar {
  from { height: 0; }
  to { height: var(--height); }
}

.chart-bar.bar-3 {
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.3), var(--primary));
}

.summary-visual {
  justify-content: space-between;
}
.num-highlight {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: max-content;
  z-index: 2;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.icon-gold { background: rgba(217,119,6,0.15); }
.icon-green { background: rgba(16,185,129,0.15); }

.badge-title {
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-title);
}
.badge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-top-right {
  top: -20px;
  right: -30px;
  animation: float-slow 8s ease-in-out infinite alternate;
}

.badge-bottom-left {
  bottom: -20px;
  left: -40px;
  animation: float-slow 7s ease-in-out infinite alternate-reverse;
}

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

/* ==========================================================================
   Stats Grid Section
   ========================================================================== */
.stats-section {
  padding: 40px 0;
  background-color: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  padding: 32px 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 8px;
}

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

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background-color: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--primary);
}

.service-icon {
  width: 28px;
  height: 28px;
}

.service-card .service-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0;
}

.service-card .service-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.service-bullets {
  margin-bottom: auto; /* Pushes the button to the bottom */
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.service-bullets li {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: var(--radius-round);
  flex-shrink: 0;
}

.btn-learn-more {
  margin-top: 32px;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-learn-more:hover .arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   Interactive Tools Section
   ========================================================================== */
.tools-section {
  background-color: var(--bg-secondary);
}

.calculator-workspace {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
}

.calc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

.calc-tab {
  flex: 1;
  padding: 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.calc-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.calc-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.calc-content {
  display: none;
  padding: 40px;
}

.calc-content.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.input-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

/* Outputs Box styling */
.calc-outputs {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .calc-outputs {
  background: #ffffff;
}

.output-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

.output-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.output-row span {
  color: var(--text-muted);
}

.output-row strong {
  font-family: var(--font-title);
  color: var(--text-primary);
}

.output-row.highlight-row {
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.25rem;
}

.output-row.highlight-row span {
  font-weight: 700;
  color: var(--text-primary);
}

.output-row.highlight-row strong {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Tax Regime Cards */
.tax-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.regime-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  text-align: center;
}

.regime-card h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.regime-value {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  word-break: break-word;
}

.regime-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  text-align: left;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.regime-card.recommended {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.04);
}

.regime-card.recommended .regime-value {
  color: var(--success);
}

.recommendation-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success);
  color: var(--text-inverse);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tax-verdict-banner {
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.tax-verdict-banner strong {
  color: var(--primary);
}

/* ==========================================================================
   Service Finder Wizard
   ========================================================================== */
.finder-section {
  background-color: var(--bg-primary);
}

.wizard-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.wizard-progress {
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-round);
  margin-bottom: 40px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  width: 0%;
  transition: width var(--transition-medium);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.wizard-step-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}

.wizard-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.wizard-option-card {
  padding: 32px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.wizard-option-card:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
  transform: translateY(-2px);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.option-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wizard-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

/* Result Box Styling */
.wizard-result-box {
  text-align: center;
  padding: 10px 0;
}

.result-confetti {
  font-size: 3rem;
  margin-bottom: 16px;
}

.result-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.result-desc {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 28px;
}

.result-bullets-box {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 480px;
  margin: 0 auto 36px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.result-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-bullets li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-bullets li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

.wizard-step[data-step="result"] .wizard-actions {
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Workflow / Methodology Timeline
   ========================================================================== */
.workflow-section {
  background-color: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

/* Timeline Vertical Line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding: 30px 40px 30px 0;
  position: relative;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding: 30px 0 30px 40px;
  margin-left: 50%;
}

.timeline-badge {
  position: absolute;
  top: 45px;
  right: -20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 5;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -20px;
  right: auto;
}

.timeline-content {
  padding: 28px;
  width: 100%;
}

.timeline-content h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-primary);
}

.testimonial-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 250px;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

.testi-rating {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testi-text {
  font-size: 1.2rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
  color: var(--text-primary);
  max-width: 650px;
}

.testi-client strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.testi-client span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  background-color: var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.slider-dots .dot.active {
  background-color: var(--primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info .contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  font-size: 1.5rem;
  padding: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.info-item strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.info-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stylised Map Visual */
.map-visual {
  height: 180px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all var(--transition-medium);
}

a.map-visual:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--primary);
}

a.map-visual:hover .pulse-marker {
  transform: scale(1.15);
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 2;
}

.pulse-marker {
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: var(--radius-round);
  position: relative;
}

.pulse-marker::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-round);
  animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.5); opacity: 0; }
}

.contact-form-container {
  padding: 40px;
}

.contact-form-container h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

.form-feedback.success {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
  background-color: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 20px;
  padding: 40px;
  z-index: 10;
  animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-header-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-header-box h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.modal-body h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 20px 0 10px;
  font-weight: 700;
}

.modal-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-body ul li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1.3fr;
  gap: 40px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.brand-pitch {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.footer-links-col h5, .footer-newsletter h5 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  max-width: 320px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.newsletter-form .form-control {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
}

.newsletter-form .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.newsletter-feedback {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Tablet Views */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats-preview {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 20px;
  }
  
  .calc-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding: 20px 0 20px 45px;
    justify-content: flex-start;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding: 20px 0 20px 45px;
  }
  
  .timeline-badge {
    left: 0 !important;
    right: auto !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Views */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  /* Mobile Navigation Hamburger drawer */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 40px 24px;
    gap: 28px;
    transition: left var(--transition-medium);
    align-items: flex-start;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-menu.open .mobile-cta {
    display: block !important;
    width: 100%;
    text-align: center;
    border: 1px solid var(--primary);
    padding: 12px 0;
    border-radius: var(--radius-sm);
    color: var(--primary) !important;
    font-weight: 600;
    margin-top: 10px;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .header-cta {
    display: none;
  }
  
  .wizard-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tax-comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-badge {
    display: none; /* Hide floating badges on smaller viewports to clean up layouts */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .calc-content {
    padding: 24px;
  }
  
  .calc-outputs {
    padding: 20px;
  }
}

/* ==========================================================================
   Advanced UI Features & Form 16 Scanner Styles
   ========================================================================== */

/* Logo Image Styling */
.logo-img {
  border-radius: 8px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.08);
}

/* Floating Background Particles */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.15;
  animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) translateX(100px) scale(1.5);
    opacity: 0;
  }
}

/* Hero typing cursor style */
.typed-cursor {
  font-weight: 300;
  color: var(--primary);
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

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

/* 3D Perspective settings on Card grid */
.services-grid {
  perspective: 1000px;
}

.service-card {
  transition: transform 0.1s ease, box-shadow var(--transition-medium);
  transform-style: preserve-3d;
}

/* Form 16 Workspace layout */
.form16-scanner-container {
  max-width: 650px;
  margin: 0 auto;
}

.scanner-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.scanner-dropzone:hover, .scanner-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.scanner-dropzone h4 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.scanner-dropzone p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.file-limits-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Scanning Laser Bar */
.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 12px 2px var(--primary);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.scanner-dropzone.scanning .scanner-laser {
  opacity: 1;
  animation: laserScan 2s infinite ease-in-out;
}

@keyframes laserScan {
  0%, 100% { top: 0%; }
  50% { top: 100%; }
}

/* Scanner loader status */
.scanner-status-box {
  padding: 30px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 24px;
  animation: fadeIn 0.4s ease-out;
}

.scanner-status-box h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.scanner-progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-round);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.scanner-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
  text-align: left;
}

.scanner-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.scanner-steps li::before {
  content: '○';
  font-weight: 800;
  color: var(--border-color);
  display: inline-block;
  width: 16px;
  flex-shrink: 0;
}

.scanner-steps li.step-completed {
  color: var(--success);
}
.scanner-steps li.step-completed::before {
  content: '✓';
  color: var(--success);
}

.scanner-steps li.step-active {
  color: var(--primary);
  font-weight: 600;
}
.scanner-steps li.step-active::before {
  content: '●';
  color: var(--primary);
  animation: pulse-out 1.2s infinite;
}

/* Form 16 Dashboard Worksheet */
.form16-dashboard {
  animation: fadeIn 0.5s ease-out;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: flex-start;
}

.dashboard-inputs {
  padding: 30px;
}

.dashboard-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.dashboard-header-title h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Responsive updates for Form 16 structures */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .logo-text {
    font-size: 1.35rem;
  }
  
  .logo-img {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   Floating Review Bubble Styles
   ========================================================================== */
.review-bubble {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 290px;
  padding: 20px;
  z-index: 1000;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideUpBubble 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: rgba(18, 18, 29, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
}

@keyframes slideUpBubble {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.review-bubble-content {
  text-align: center;
}

.review-star-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 8px;
}

.review-bubble h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.review-bubble p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.review-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.review-close-btn:hover {
  color: #fff;
}

/* Hide review bubble on smaller viewports to clean up layouts */
@media (max-width: 576px) {
  .review-bubble {
    display: none !important;
  }
}

/* ==========================================================================
   Employer Badges and Capital Gains layout styles
   ========================================================================== */
.employer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-round);
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  transition: all var(--transition-fast);
  animation: slideInBadge 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.employer-badge:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.remove-employer {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.remove-employer:hover {
  color: #ff4a5a;
}

@keyframes slideInBadge {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dashboard-section-header h5 {
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Zerodha Excel Dropzone Styles
   ========================================================================== */
.zerodha-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.zerodha-dropzone:hover,
.zerodha-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

.zerodha-dropzone .dropzone-content {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  flex-direction: row;
}

.zerodha-dropzone .excel-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  transition: transform var(--transition-fast);
}

.zerodha-dropzone:hover .excel-icon {
  transform: scale(1.05);
}

/* ==========================================================================
   Tools Hub & Modal System Styles
   ========================================================================== */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tool-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(147, 51, 234, 0.1); /* fallback opacity */
  color: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: transform var(--transition-medium);
}

.tool-card:hover .tool-icon-box {
  transform: scale(1.1);
}

.tool-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex-grow: 1;
}

/* Modal System */
.tool-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn var(--transition-fast) forwards;
}

.tool-modal-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  opacity: 0;
  animation: modalScaleUp var(--transition-medium) forwards;
}

@keyframes modalScaleUp {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.tool-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

.tool-modal-header h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  padding: 0;
}

.tool-modal-close:hover {
  color: var(--primary-light);
}

.tool-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.tool-modal-body .calc-grid {
  align-items: start;
}

.tool-modal-body .calc-outputs {
  position: relative;
  overflow: visible;
}

.tool-modal-body .output-card.glass-card {
  padding: 20px;
  overflow: visible;
}

.tool-modal-body .breakdown-row {
  padding: 4px 0;
  font-size: 0.85rem;
}

/* Specific component refinements inside Modals */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.tds-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tds-table th {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-light);
}

.tds-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tds-table tr:nth-child(even) {
  background: rgba(255,255,255,0.01);
}

.tds-table tr:hover {
  background: rgba(255,255,255,0.03);
}

/* Timeline Deadline tracker card */
.deadline-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.deadline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.deadline-item:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(5px);
}

.deadline-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.deadline-title {
  flex-grow: 1;
  font-weight: 600;
}

.deadline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Step Wizard styles */
.wizard-progress {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: width 0.3s ease;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

/* Audit Analyzer Styles */
.tool-card-featured {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), var(--bg-card));
}

.tool-card-featured:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.tool-badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.audit-stat {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.audit-stat-value {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  word-break: break-word;
}

.audit-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-flags-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-flag-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.audit-flag-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.audit-flag-item.severity-high {
  border-left: 4px solid #ff4a5a;
  background: rgba(255, 74, 90, 0.04);
}

.audit-flag-item.severity-medium {
  border-left: 4px solid #fbbf24;
  background: rgba(251, 191, 36, 0.04);
}

.audit-flag-item.severity-low {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.audit-flag-item.severity-info {
  border-left: 4px solid #60a5fa;
  background: rgba(96, 165, 250, 0.04);
}

.audit-flag-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.audit-flag-content {
  flex-grow: 1;
}

.audit-flag-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.audit-flag-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .audit-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
