:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.12);
  --accent: #06b6d4;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-slate: #1e293b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* ========================================================================= */
/* HEADER                                                                    */
/* ========================================================================= */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 0;
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--dark);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.logo img {
  display: block;
}

.logo .highlight {
  color: var(--primary);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.header-search .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.header-search input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-page);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.header-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1100;
}

.search-dropdown.hidden {
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item:active {
  background: var(--primary-light);
}

.search-result-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-result-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  color: #1e293b;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-xl);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Active Menu Selected Indicator with Color Effect & Subtle Glow */
.nav-link.active {
  color: #ffffff !important;
  background: var(--primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* ========================================================================= */
/* HERO SECTION (Compact, zero dead space, direct display)                  */
/* ========================================================================= */
.hero-section {
  padding: clamp(0.85rem, 2vw, 1.35rem) 0 clamp(0.75rem, 1.5vw, 1rem);
  text-align: center;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.hero-title {
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 0.85rem;
  line-height: 1.45;
}

/* Horizontal scrollable category pills on mobile */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}


.pill-mobile {
  display: none;
}
.pill-desktop {
  display: inline;
}

.pill-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-xl);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* ========================================================================= */
/* MAIN CONTENT & CALCULATORS GRID                                           */
/* ========================================================================= */
.main-content {
  padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
}

.calc-section {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: var(--dark);
}

.calc-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
}

.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 100%, 280px), 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.calc-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.calc-card:active {
  transform: scale(0.99);
}

.calc-card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.calc-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.calc-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.45;
}

.calc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
}

.badge-flagship {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ========================================================================= */
/* LIVE INTERACTIVE SHOWCASE & TOOL LAYOUTS                                  */
/* ========================================================================= */
.featured-showcase {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.showcase-header {
  margin-bottom: 1.5rem;
}

.showcase-header h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--dark);
}

.showcase-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Fluid 2-column or stacked grid */
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.live-controls {
  background: #f8fafc;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--dark-slate);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

select.form-control {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px 14px;
  padding-right: 2rem;
}

.form-options {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--dark-slate);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.button-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  flex: 1;
  min-width: 140px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

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

.btn-secondary {
  background: #e2e8f0;
  color: var(--dark-slate);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* ========================================================================= */
/* RESULTS BOX & STAT CARDS                                                  */
/* ========================================================================= */
.live-results {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2vw, 1.5rem);
}

/* ========================================================================= */
/* EASY-TO-READ INTUITIVE RESULTS DASHBOARD                                 */
/* ========================================================================= */
.primary-diff-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.diff-hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c7d2fe;
  font-weight: 700;
}

.diff-hero-value {
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.diff-hero-sub {
  font-size: 0.85rem;
  color: #e0e7ff;
  margin-top: 0.2rem;
}

/* Day Composition Visualizer Bar */
.day-composition-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.day-bar-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 0.5rem;
}

.day-progress-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.bar-segment-business {
  background: #10b981;
  /* Green for working days */
  height: 100%;
  transition: width 0.3s ease;
}

.bar-segment-weekend {
  background: #f59e0b;
  /* Amber for weekend */
  height: 100%;
  transition: width 0.3s ease;
}

.bar-segment-holiday {
  background: #ef4444;
  /* Red for holiday */
  height: 100%;
  transition: width 0.3s ease;
}

.day-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Clean Holiday Tag Card */
.holiday-detect-card {
  background: #fff;
  border: 1px solid #fee2e2;
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.holiday-detect-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 0.5rem;
}

.holiday-detect-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.holiday-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background: #fef2f2;
  border-radius: 4px;
  font-size: 0.8rem;
}

.holiday-row-name {
  font-weight: 600;
  color: #7f1d1d;
}

.holiday-row-date {
  font-family: var(--font-mono);
  color: #991b1b;
  font-size: 0.75rem;
}


.res-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.res-highlight {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
}

.stat-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.stat-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

.breakdown-box {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.breakdown-box h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

.breakdown-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.825rem;
}

.breakdown-list strong {
  font-family: var(--font-mono);
  color: var(--dark);
}

/* ========================================================================= */
/* SIDE-BY-SIDE & MOBILE CALENDARS                                           */
/* ========================================================================= */
.calendars-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mini-calendar {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
  background: #fff;
  font-size: 0.72rem;
}

.mini-cal-header {
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 2px;
}

.mini-cal-head {
  color: var(--text-muted);
  font-weight: 700;
  padding: 2px 0;
  font-size: 0.68rem;
}

.mini-cal-day {
  padding: 3px 0;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.mini-cal-day.weekend {
  color: #94a3b8;
}

.mini-cal-day.target {
  background: #fef08a;
  font-weight: 800;
  color: #854d0e;
}

/* ========================================================================= */
/* COMPARISON TABLE                                                          */
/* ========================================================================= */
.comparison-section {
  margin: clamp(2rem, 4vw, 3.5rem) 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.comparison-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.comparison-header h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--dark);
}

.comparison-header p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-top: 0.35rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.comparison-table th {
  background: var(--bg-page);
  font-weight: 700;
  color: var(--dark);
}

.comparison-table td.bad {
  color: #b91c1c;
  background: #fff5f5;
  font-weight: 500;
}

.comparison-table td.good {
  color: #065f46;
  background: #f0fdf4;
  font-weight: 700;
}

/* ========================================================================= */
/* FOOTER                                                                    */
/* ========================================================================= */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 1.5rem;
  border-top: 1px solid #334155;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.25fr 2.75fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #94a3b8;
}

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

.footer-links h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.footer-links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.825rem;
  margin-bottom: 0.45rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-disclaimer-box {
  border-top: 1px solid #334155;
  padding-top: 1.75rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.disclaimer-text {
  color: #94a3b8;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.disclaimer-text strong {
  color: #cbd5e1;
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #334155;
  color: #64748b;
  font-size: 0.825rem;
}

/* ========================================================================= */
/* MOBILE AD UNITS (NON-INTRUSIVE & CONTENT-FRIENDLY)                       */
/* ========================================================================= */

/* 1. In-Feed Mobile Banner (Placed between calculators, 0 content blockage) */
.mobile-infeed-ad {
  display: none;
  margin: 1.25rem auto;
  max-width: 336px;
  width: 100%;
}

/* 2. Google AdSense Sticky Bottom Anchor (The Industry Gold Standard for Mobile) */
.mobile-sticky-anchor {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
  z-index: 9999;
  padding: 0.35rem 0.5rem;
  text-align: center;
}

.mobile-sticky-inner {
  max-width: 320px;
  height: 50px;
  margin: 0 auto;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #64748b;
  position: relative;
}

.mobile-sticky-close {
  position: absolute;
  right: -8px;
  top: -12px;
  background: #0f172a;
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-infeed-ad {
    display: flex;
  }
  .mobile-sticky-anchor {
    display: block;
  }
  /* Add safe padding to body so bottom content is never obscured */
  body {
    padding-bottom: 60px;
  }
}

/* ========================================================================= */
/* BALANCED SYMMETRICAL 3-COLUMN AD ARCHITECTURE                            */
/* Left Skyscraper (160px) | Center Main Content | Right Skyscraper (160px)  */
/* ========================================================================= */
.site-wrapper-with-gutters {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  gap: 1.25rem;
  padding: 0 1rem;
}

.ad-gutter {
  display: none;
  width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: 75px;
  height: fit-content;
}

.ad-slot-skyscraper {
  width: 160px;
  min-height: 600px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem 0.5rem;
  box-shadow: var(--shadow-xs);
}

.site-main-column {
  flex: 1;
  min-width: 0;
  max-width: 1180px;
  width: 100%;
}

/* Enable Left and Right Skyscrapers symmetrically only on wide screens (>= 1380px) */
@media (min-width: 1380px) {
  .ad-gutter {
    display: block;
  }
}

/* Center Stage Triple Grid: Controls (Left) | Results (Center) | Other Calculators (Right) */
.stage-triple-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(320px, 1.2fr) 240px;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 1180px) {
  .stage-triple-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .stage-triple-grid .inline-other-calcs {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .stage-triple-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .stage-triple-grid .inline-other-calcs {
    order: -1;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: none;
    margin-bottom: 0.25rem;
  }

  /* Compact Horizontal Tab Bar Header */
  .stage-triple-grid .inline-other-calcs-title {
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid #e2e8f0;
  }

  /* Grid Tab Format: Fits all 10 tools entirely in the same frame without scrolling */
  .stage-triple-grid .sidebar-calc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    padding: 0.2rem 0;
    overflow: visible;
  }

  @media (min-width: 480px) and (max-width: 768px) {
    .stage-triple-grid .sidebar-calc-list {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.45rem;
    }
  }

  .stage-triple-grid .sidebar-calc-item {
    width: 100%;
  }

  .stage-triple-grid .sidebar-calc-item a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
    width: 100%;
    box-sizing: border-box;
  }

  .stage-triple-grid .sidebar-calc-item a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
  }

  .stage-triple-grid .sidebar-calc-item.active a {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.25);
  }

  .stage-triple-grid .sidebar-calc-icon {
    font-size: 0.9rem;
    line-height: 1;
    flex-shrink: 0;
  }

  .stage-triple-grid .sidebar-calc-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
  }
}

/* Inline Other Calculators Widget */
.inline-other-calcs {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.inline-other-calcs-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}

.main-calc-column {
  min-width: 0;
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 75px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.sidebar-widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-widget-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sidebar-calc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-calc-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: var(--dark-slate);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sidebar-calc-item a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(3px);
}

.sidebar-calc-item.active a {
  background: var(--primary);
  color: #ffffff;
}

.sidebar-calc-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-calc-name {
  flex: 1;
}

@media (max-width: 992px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar-column {
    position: static;
  }
}

.ad-slot-frame {
  margin: 1.25rem auto;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.ad-slot-frame:hover {
  border-color: var(--primary);
  background: #f1f5f9;
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.ad-dims {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

/* Slot 1: Top Leaderboard (Under Header/Hero) */
.ad-slot-top-leaderboard {
  max-width: 970px;
  min-height: 90px;
  width: 100%;
}

/* Slot 2: Mid Content / In-Tool Divider */
.ad-slot-incontent {
  max-width: 728px;
  min-height: 90px;
  width: 100%;
  margin: 2rem auto;
}

/* Slot 3: Below Results / Pre-Footer */
.ad-slot-bottom {
  max-width: 970px;
  min-height: 120px;
  width: 100%;
  margin: 2.5rem auto 1.5rem;
}

/* Slot 4: Sidebar Sticky Unit (Desktop Only) */
.ad-slot-sidebar {
  width: 300px;
  min-height: 600px;
  /* 300x600 Half-Page high revenue unit */
  position: sticky;
  top: 80px;
}

/* Device specific visibility */
.ad-desktop-only {
  display: flex;
}

.ad-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .ad-desktop-only {
    display: none !important;
  }

  .ad-mobile-only {
    display: flex !important;
  }

  /* Mobile Slot 1: 320x100 or 300x250 Medium Rectangle */
  .ad-slot-mobile-top {
    max-width: 336px;
    min-height: 100px;
    width: 100%;
  }

  /* Mobile Slot 2: 300x250 In-Content rectangle below results */
  .ad-slot-mobile-bottom {
    max-width: 336px;
    min-height: 250px;
    width: 100%;
  }
}


/* ========================================================================= */
/* MOBILE ADAPTIVE BREAKPOINTS                                              */
/* ========================================================================= */

/* Tablets & Small Desktops (<= 992px) */
@media (max-width: 992px) {
  .live-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 0.25rem;
  }

  .nav-links {
    gap: 0.65rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.4rem;
  }

  .pill-mobile {
    display: inline;
  }
  .pill-desktop {
    display: none;
  }

  .category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.45rem;
    padding: 0.35rem 0.25rem;
    width: 100%;
    overflow-x: visible;
  }

  .pill-btn {
    flex: 0 1 auto;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }

  .stat-pills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .breakdown-list {
    grid-template-columns: 1fr;
  }

  .calendars-wrapper {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .btn {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
  }
}

/* Ultra Small Screens (<= 380px) */
@media (max-width: 380px) {
  .stat-pills-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
/* Reusable Universal Numeric Stepper Component */
.stepper-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.stepper-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  touch-action: manipulation;
  user-select: none;
}
.stepper-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.stepper-btn:active {
  transform: scale(0.95);
}
.stepper-input {
  width: 90px;
  height: 38px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: #ffffff;
  color: var(--dark);
}
.stepper-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Quick Preset Chips */
.quick-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.chip-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.chip-btn:active {
  transform: scale(0.96);
}

/* ========================================================================= */
/* 10-TOOL DIRECT NAVIGATION BAR (Google Indexing & Fast Switcher)           */
/* ========================================================================= */
.tools-subnav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 990;
}

.tools-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.4rem 0.5rem;
}

.tools-subnav-inner::-webkit-scrollbar {
  display: none;
}

.tool-sublink {
  text-decoration: none;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.tool-sublink:hover {
  color: var(--primary);
  background: #f1f5f9;
  border-color: var(--border);
}

.tool-sublink.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(79, 70, 229, 0.25);
  font-weight: 800;
}

/* ========================================================================= */
/* SMART DATE PICKER & CALCULATOR.NET INSTRUCTION BANNER & CALC BUTTON       */
/* ========================================================================= */

.calc-instruction-banner {
  background: linear-gradient(180deg, #2b5f8e 0%, #1d4b73 100%);
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.01em;
  margin-bottom: 0;
  text-align: center;
}

.calc-instruction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.calc-instruction-text {
  font-size: 0.86rem;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.calc-card-segmented {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.calc-card-segmented .calc-instruction-banner {
  border-radius: 0;
}

.calc-segmented-body {
  padding: 1.25rem 1.15rem;
  background: #fdfdfd;
  box-sizing: border-box;
}

/* Symmetrical Date Row Layout */
.calc-date-table {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.calc-date-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

.calc-date-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  margin: 0;
  display: block;
}

.calc-date-control-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

/* Smart Date Picker Container */
.sdp-container {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sdp-select,
.sdp-input {
  height: 38px;
  padding: 0.25rem 0.5rem;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: normal;
  box-sizing: border-box;
}

.sdp-select:hover,
.sdp-input:hover {
  border-color: #94a3b8;
}

.sdp-select:focus,
.sdp-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.sdp-month {
  width: 72px;
  min-width: 66px;
  max-width: 82px;
  flex: 1.2;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 10px;
  padding-right: 1.35rem;
  -webkit-appearance: none;
  appearance: none;
}

.sdp-day {
  width: 56px;
  min-width: 50px;
  max-width: 66px;
  flex: 1;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 10px;
  padding-right: 1.35rem;
  -webkit-appearance: none;
  appearance: none;
}

.sdp-year {
  width: 74px;
  min-width: 66px;
  max-width: 84px;
  flex: 1.2;
  text-align: center;
}

/* Calendar Button & Wrapper */
.sdp-cal-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  cursor: pointer;
}

.sdp-cal-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  pointer-events: none;
}

.sdp-cal-wrapper:hover .sdp-cal-btn {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.sdp-cal-icon {
  display: block;
  pointer-events: none;
}

.sdp-hidden-native-input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  z-index: 5 !important;
  pointer-events: auto !important;
}

/* Quick Preset Chips */
.quick-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.35rem;
  width: 100%;
}

.quick-preset-chips .chip-btn {
  font-size: 0.74rem;
  padding: 0.22rem 0.52rem;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.quick-preset-chips .chip-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Furnished Green Calculate Button Matching Calculator.net */
.btn-calculate {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  background: linear-gradient(180deg, #4f8728 0%, #3e6d1e 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.75rem !important;
  border: 1px solid #2f5416 !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  line-height: normal !important;
}

.btn-calculate:hover {
  background: linear-gradient(180deg, #5b992e 0%, #467923 100%) !important;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px);
}

.btn-calculate:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.btn-calc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-calc-arrow svg {
  margin-left: 2px;
}

/* Furnished Reset Button */
.btn-reset {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  color: #334155 !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.25rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s ease !important;
  line-height: normal !important;
}

.btn-reset:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.calc-action-row-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .calc-date-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .calc-date-label {
    text-align: left;
    min-width: auto;
  }

  .sdp-container {
    width: 100%;
  }

  .sdp-month {
    flex: 1.2;
    min-width: 0;
  }

  .sdp-day {
    flex: 1;
    min-width: 0;
  }

  .sdp-year {
    flex: 1.2;
    min-width: 0;
  }

  .sdp-cal-btn {
    flex-shrink: 0;
  }
}

/* ========================================================================= */
/* PROFESSIONAL ATTRACTIVE CALENDAR DROPDOWN POPUP                           */
/* ========================================================================= */

.pro-cal-popup {
  position: absolute;
  z-index: 99999;
  width: 295px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.2), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  padding: 12px 14px 10px;
  font-family: inherit;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-sizing: border-box;
}

.pro-cal-popup.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pro-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.pro-cal-nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.15s ease;
}

.pro-cal-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.pro-cal-title-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pro-cal-month-select,
.pro-cal-year-select {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
}

.pro-cal-month-select:hover,
.pro-cal-year-select:hover {
  background: #edf2f7;
  border-color: #cbd5e1;
}

.pro-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pro-cal-weekdays span.weekend {
  color: #ef4444;
}

.pro-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.pro-cal-cell {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  color: #1e293b;
  transition: all 0.12s ease;
  user-select: none;
}

.pro-cal-cell:hover:not(.other-month) {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  transform: scale(1.08);
}

.pro-cal-cell.other-month {
  color: #cbd5e1;
  cursor: pointer;
}

.pro-cal-cell.other-month:hover {
  color: #94a3b8;
  background: #f8fafc;
}

.pro-cal-cell.today {
  border: 1.5px solid #3b82f6;
  font-weight: 700;
}

.pro-cal-cell.selected {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.pro-cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.pro-cal-footer-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pro-cal-footer-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pro-cal-footer-btn.today-btn {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.pro-cal-footer-btn.today-btn:hover {
  background: #dbeafe;
}


