/* ==========================================================================
   BanglaTool — Master Stylesheet (Professional Redesign)
   Website: BanglaTool (বাংলার দরকারি সব Tools এক জায়গায়)
   Author: Asif Khan (maksoft)
   Design System: Deep Obsidian Navy, Emerald Accent, Sleek Modern Glassmorphism
   Typography: Inter + Noto Sans Bengali
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #059669;
  --border-glow: rgba(5, 150, 105, 0.18);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --brand-navy: #0f172a;
  --brand-navy-light: #1e293b;
  --brand-green: #059669;
  --brand-green-hover: #047857;
  --brand-green-light: #ecfdf5;
  --brand-amber: #d97706;
  --brand-amber-light: #fffbeb;
  --brand-red: #dc2626;
  --brand-red-light: #fef2f2;
  --brand-blue: #2563eb;
  --brand-blue-light: #eff6ff;
  --brand-purple: #7c3aed;
  --brand-purple-light: #f5f3ff;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 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.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px -2px rgba(5, 150, 105, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --font-family: 'Plus Jakarta Sans', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-primary: #070a12;
  --bg-surface: #0e1526;
  --bg-subtle: #141e33;
  --bg-muted: #1e293b;

  --border-color: #1e2b45;
  --border-subtle: #2b3b5c;
  --border-focus: #10b981;
  --border-glow: rgba(16, 185, 129, 0.28);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #070a12;

  --brand-green-light: #064e3b;
  --brand-amber-light: #78350f;
  --brand-red-light: #7f1d1d;
  --brand-blue-light: #1e3a8a;
  --brand-purple-light: #4c1d95;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 25px 2px rgba(16, 185, 129, 0.2);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT & SPONSOR RIBBON
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #ecfdf5;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 55;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-announcement-bar a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.top-announcement-bar a:hover {
  opacity: 0.9;
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.35rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(14, 21, 38, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

/* Brand Zone */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
}

[data-theme="dark"] .brand-link {
  color: #ffffff;
}

.brand-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.brand-badge {
  color: var(--brand-green);
  font-weight: 800;
}

.brand-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background-color: var(--brand-green-light);
  color: var(--brand-green);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-green);
  background-color: var(--bg-subtle);
}

.nav-link.active {
  color: var(--brand-green);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--brand-green);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-search-btn:hover {
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.kbd-shortcut {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface);
  z-index: 49;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--bg-subtle);
  color: var(--brand-green);
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-muted);
  border-color: var(--border-subtle);
}

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

.btn-outline:hover {
  background-color: var(--brand-green-light);
}

.btn-sponsor {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-sponsor:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4rem 0 3rem;
  background: radial-gradient(ellipse at 50% -10%, rgba(16, 185, 129, 0.12), transparent 70%),
              linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(ellipse at 50% -10%, rgba(16, 185, 129, 0.16), transparent 70%),
              linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-green);
  background-color: var(--brand-green-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  text-wrap: balance;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search Box */
.hero-search-wrapper {
  max-width: 660px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.4rem 0.5rem 0.4rem 1.15rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.hero-search-bar:focus-within {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-xl), 0 0 0 4px var(--border-glow);
}

.hero-search-bar svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.search-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.search-example-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.search-example-btn:hover {
  color: var(--brand-green);
  border-color: var(--brand-green);
  background-color: var(--brand-green-light);
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.section-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.section-link:hover {
  color: var(--brand-green-hover);
  text-decoration: underline;
}

/* ==========================================================================
   TOOL GRID & CARDS
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.35rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(5, 150, 105, 0.4);
}

.tool-card:hover::before {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.tool-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--brand-green-light);
  color: var(--brand-green);
  margin-bottom: 1.15rem;
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.08);
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.tool-card-action {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.tool-card:hover .tool-card-action {
  color: var(--brand-green-hover);
  gap: 0.55rem;
}

/* Bangladesh Tool Cards */
.bd-badge-card {
  border-color: rgba(5, 150, 105, 0.25);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(5, 150, 105, 0.04) 100%);
}

.bd-badge-card::after {
  content: '🇧🇩 বাংলাদেশ';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background-color: var(--brand-green-light);
  color: var(--brand-green);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ==========================================================================
   ADVERTISING & SPONSOR SLOTS (PROFESSIONAL INTEGRATION)
   ========================================================================== */
.ad-slot-wrapper {
  width: 100%;
  margin: 2.5rem auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-slot-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Horizontal Responsive Ad Container */
.ad-slot-horizontal {
  min-height: 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}

.ad-slot-horizontal iframe,
.ad-slot-horizontal div {
  max-width: 100%;
}

/* 728x90 Leaderboard Ad Container */
.ad-slot-leaderboard {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.ad-slot-leaderboard iframe {
  max-width: 100%;
}

/* 300x250 Medium Rectangle Ad */
.ad-slot-box {
  width: 300px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
}

/* 160x600 Vertical Skyscraper Ad */
.ad-slot-skyscraper {
  width: 160px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
}

/* High-Converting Sponsor Deal Card (Direct Link) */
.sponsor-deal-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(5, 150, 105, 0.06) 100%);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2rem 0;
  transition: all var(--transition-fast);
}

.sponsor-deal-card:hover {
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

.sponsor-deal-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sponsor-icon-pulse {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.sponsor-deal-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.sponsor-deal-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CALCULATOR WORKSPACE WITH MODERN SIDEBAR
   ========================================================================== */
.calc-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.25rem;
  margin: 2.5rem 0;
  align-items: start;
}

@media (max-width: 1040px) {
  .calc-page-layout {
    grid-template-columns: 1fr;
  }
}

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

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

.calc-sidebar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.calc-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.calc-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--bg-subtle);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.calc-sidebar-link:hover {
  background-color: var(--bg-surface);
  color: var(--brand-green);
  border-color: rgba(5, 150, 105, 0.3);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.calc-sidebar-link span.arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.calc-sidebar-link:hover span.arrow {
  color: var(--brand-green);
  transform: translateX(3px);
}

/* Calculator Cards */
.calc-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.calc-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.35rem;
}

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

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.input-with-unit {
  display: flex;
  align-items: stretch;
  background-color: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.input-with-unit:focus-within {
  border-color: var(--brand-green);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--border-glow);
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-with-unit .form-input {
  border: none;
  background: transparent;
  border-radius: 0;
}

.form-input:focus {
  border-color: var(--brand-green);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--border-glow);
}

.form-unit {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background-color: var(--bg-muted);
  border-left: 1px solid var(--border-color);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.unit-select {
  border: none;
  background-color: var(--bg-muted);
  padding: 0 0.85rem;
  border-left: 1px solid var(--border-color);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Results Card */
.result-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-muted);
}

.result-placeholder svg {
  margin-bottom: 1.25rem;
  opacity: 0.4;
  color: var(--brand-green);
}

.result-box-hero {
  background: linear-gradient(135deg, var(--brand-green-light) 0%, var(--bg-surface) 100%);
  border: 1.5px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.result-hero-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-green);
  margin-bottom: 0.35rem;
}

.result-hero-value {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.result-hero-badge {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--brand-green);
  color: #ffffff;
}

.result-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.metric-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-fast);
}

.metric-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-alert {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-top: 1rem;
}

.result-alert-info {
  background-color: var(--brand-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--brand-blue);
}

.result-alert-warning {
  background-color: var(--brand-amber-light);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: var(--brand-amber);
}

/* ==========================================================================
   TABLES & ACCORDIONS
   ========================================================================== */
.data-table-wrapper {
  overflow-x: auto;
  margin: 1.35rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.data-table th, .data-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

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

.data-table tbody tr:hover {
  background-color: var(--bg-subtle);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.open {
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.35rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 1rem 1rem;
}

.search-modal.open {
  display: flex;
}

.search-modal-content {
  width: 100%;
  max-width: 640px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.85rem;
}

.search-modal-header input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  color: var(--text-primary);
  outline: none;
}

.search-modal-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.65rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.search-result-item:hover, .search-result-item.highlighted {
  background-color: var(--bg-subtle);
  transform: translateX(3px);
}

.search-result-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.search-result-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.search-modal-footer {
  padding: 0.75rem 1.35rem;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 1.25rem;
}

.footer-brand-author {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-green);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Toast Message */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  animation: toastFade 0.25s ease-out;
}

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

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .main-nav, .kbd-shortcut {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .section {
    padding: 3rem 0;
  }
  .sponsor-deal-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .sponsor-deal-card .btn {
    width: 100%;
  }
}
