@import url('https://cdn-uicons.flaticon.com/2.1.0/uicons-solid-rounded/css/uicons-solid-rounded.css');

/* ==========================================================================
   CALHUB DESIGN SYSTEM — ULTRA-PREMIUM OBSIDIAN / FUTURISTIC DARK THEME
   Inspired by Xclub (D:\Test\Movia) Pure Black & White Contrast
   ========================================================================== */

:root {
  /* Surface & Base Colors */
  --bg: #09090b;
  --bg-subtle: #0e0e12;
  --surface: #121217;
  --surface-card: rgba(18, 18, 24, 0.75);
  --surface-hover: #191921;
  --surface-elevated: #1e1e28;
  
  /* High-Contrast Typography */
  --ink: #fafafa;
  --ink-secondary: #e4e4e7;
  --muted: #a1a1aa;
  --subtle: #71717a;
  
  /* Borders & Dividers */
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.22);
  --line-active: rgba(255, 255, 255, 0.4);

  /* Primary Brand (High-contrast pure white on black) */
  --brand: #ffffff;
  --brand-fg: #000000;
  --brand-muted: #d4d4d8;
  
  /* Functional Accents */
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.15);
  --danger: #ef4444;
  
  /* Curvature & Radiuses (Super Curved) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-pill: 9999px;

  /* Premium Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 28px rgba(255, 255, 255, 0.05);
  --shadow-glow-active: 0 0 35px rgba(255, 255, 255, 0.15);
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Futuristic Ambient Backdrop & Micro Matrix Grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.ambient-glow {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 550px;
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Typography & Links */
a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  opacity: 0.88;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0;
}

p {
  color: var(--ink-secondary);
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.main {
  padding-top: 28px;
  padding-bottom: 64px;
}

.muted {
  color: var(--muted);
}

.emoji {
  font-size: 1.15em;
  vertical-align: middle;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover {
  opacity: 1;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo-img {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text {
  letter-spacing: -0.03em;
  color: #ffffff;
}

/* Header Right Actions & Search Toggle */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}
.search-toggle-btn .search-icon-svg {
  width: 17px;
  height: 17px;
  fill: #ffffff;
  display: block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), fill 0.2s ease;
}
.search-toggle-btn:hover,
.search-toggle-btn.is-active {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}
.search-toggle-btn:hover .search-icon-svg,
.search-toggle-btn.is-active .search-icon-svg {
  fill: #09090b;
}

.mobile-search-drawer {
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  padding: 12px 0 16px;
}
.mobile-search-drawer.is-open {
  animation: slideDrawerDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-drawer-form {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Header Search Bar */
.search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 520px;
  margin-left: auto;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: 0 18px;
  transition: all 0.2s ease;
}
.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.search input::placeholder {
  color: var(--muted);
}

/* Remove default user-agent search decoration & cancel icons */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
}

.btn-search-submit,
.search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 42px;
  padding: 0;
  border: 1px solid #ffffff;
  background: #ffffff !important;
  color: #09090b !important;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  outline: none;
}
.btn-search-submit:hover,
.search button:hover {
  background: #f4f4f5 !important;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.45);
  transform: scale(1.02);
}
.btn-search-submit:active,
.search button:active {
  transform: scale(0.97);
  background: #e4e4e7 !important;
}

.search-icon-svg {
  width: 18px;
  height: 18px;
  fill: #09090b !important;
  color: #09090b !important;
  display: block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.search-icon-svg path {
  fill: inherit;
}
.btn-search-submit .search-icon-svg,
.search button .search-icon-svg,
.btn-search-submit .search-icon-svg path,
.search button .search-icon-svg path {
  fill: #09090b !important;
  color: #09090b !important;
}
.btn-search-submit:hover .search-icon-svg,
.search button:hover .search-icon-svg {
  transform: scale(1.15);
}

.search-toggle-btn .search-icon-svg,
.search-toggle-btn .search-icon-svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
}
.search-toggle-btn:hover .search-icon-svg,
.search-toggle-btn.is-active .search-icon-svg,
.search-toggle-btn:hover .search-icon-svg path,
.search-toggle-btn.is-active .search-icon-svg path {
  fill: #09090b !important;
  color: #09090b !important;
}

/* Category Navigation (Horizontal Pill Carousel) */
.catnav {
  background: rgba(9, 9, 11, 0.6);
  border-bottom: 1px solid var(--line);
}

.catnav-inner {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar {
  display: none;
}

.catnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.catnav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.catnav-link.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.catnav-icon {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   HERO SECTION (SPLIT TWO-COLUMN XCLUB / MOVIA DESIGN)
   ========================================================================== */

.hero-split {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0 28px;
}

.hero-col-left {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: #ffffff;
}

.text-glow {
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 24px;
}
.lede strong {
  color: #ffffff;
}

.search-hero-box {
  max-width: 100%;
  margin: 0 0 16px;
}
.search-hero-box .search-input-wrapper {
  padding: 0 20px;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}
.search-hero-box input {
  padding: 14px 0;
  font-size: 1.02rem;
}
.search-hero-box .btn-search-submit,
.search-hero-box button {
  height: 52px;
  min-width: 58px;
  padding: 0 18px;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}
.search-hero-box .search-icon-svg {
  width: 20px;
  height: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.hero-tag-label {
  font-size: 0.85rem;
  color: var(--subtle);
  font-weight: 600;
  margin-right: 4px;
}

.hero-tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.hero-tag:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* 3 Feature Pillars */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feat-icon {
  font-size: 1.15rem;
  color: #ffffff;
  margin-top: 1px;
}

.feat-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  display: block;
  line-height: 1.3;
}

.feat-desc {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Right Column: Hero Ad Frame (Curved Surface) */
.hero-col-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-ad-frame {
  width: 100%;
  max-width: 380px;
  border-radius: 36px;
  background: rgba(18, 18, 24, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), var(--shadow-glow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-ad-header {
  margin-bottom: 14px;
}

.hero-ad-body {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-stats-bar {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  flex: 1;
  text-align: center;
}

.stat-num {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   CUSTOM CURVED DROPDOWNS (REPLACES UGLY WINDOWS POPUP)
   ========================================================================== */

.custom-select-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
}

.custom-select-wrap.is-field-select {
  width: 100%;
  display: block;
}

.custom-select-trigger {
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Inline Unit Dropdown in Field Label & Outputs */
.custom-select-wrap.is-inline-unit .custom-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  color: #ffffff;
}

.custom-select-wrap.is-inline-unit .custom-select-trigger:hover,
.custom-select-wrap.is-inline-unit.is-open .custom-select-trigger {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

/* Field Select Dropdown inside Forms */
.custom-select-wrap.is-field-select .custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.custom-select-wrap.is-field-select .custom-select-trigger:hover,
.custom-select-wrap.is-field-select.is-open .custom-select-trigger {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.custom-select-arrow {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.custom-select-wrap.is-open .custom-select-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Floating Ultra-Curved Menu */
.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: rgba(18, 18, 24, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: 8px;
  display: none;
  scrollbar-width: thin;
}

.custom-select-wrap.is-inline-unit .custom-select-menu {
  right: 0;
  left: auto;
  min-width: 120px;
}

.custom-select-wrap.is-open .custom-select-menu {
  display: block;
  animation: dropFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-select-wrap.is-dropup .custom-select-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.custom-select-option.is-selected {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12) !important;
}

.custom-select-check {
  display: none;
  font-size: 0.75rem;
  color: #ffffff;
  margin-left: 8px;
}
.custom-select-option.is-selected .custom-select-check {
  display: inline-block;
}

/* ==========================================================================
   APP INSTALL / WELCOME POPUP MODAL (CENTERED MID-SCREEN)
   ========================================================================== */

.pwa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pwa-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pwa-modal {
  max-width: 440px;
  width: 100%;
  border-radius: 28px;
  padding: 32px 26px;
  text-align: center;
  position: relative;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.08);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-overlay.is-visible .pwa-modal {
  transform: scale(1) translateY(0);
}

.pwa-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}
.pwa-modal-close:hover {
  background: #ffffff;
  color: #000000;
}

.modal-logo-wrapper {
  margin: 0 auto 16px;
  display: inline-block;
  position: relative;
}

.pwa-modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: block;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.modal-feat-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-align: left !important;
}
.modal-feat-item i {
  font-size: 1.25rem !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  width: 24px !important;
  text-align: center !important;
}
.modal-feat-item div {
  flex: 1 !important;
  text-align: left !important;
}
.modal-feat-item strong {
  display: block !important;
  font-size: 0.88rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
.modal-feat-item span {
  display: block !important;
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  line-height: 1.35 !important;
}

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

.btn-modal-install {
  background: #ffffff;
  color: #000000;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-modal-install:hover {
  background: #f4f4f5;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  width: 100%;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.footer-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff !important;
  font-weight: 600;
}

/* ==========================================================================
   CARDS & GRIDS (CURVED OBSIDIAN SURFACES)
   ========================================================================== */

.section-block {
  margin: 40px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.45rem;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 16px;
}
.cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.calc-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.card:hover {
  border-color: var(--line-hover);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Category Card Styling */
.cat-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cat-icon-tile {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  transition: all 0.2s ease;
}
.cat-card:hover .cat-icon-tile {
  background: #ffffff;
  color: #000000;
  transform: scale(1.06);
}

.cat-body {
  flex: 1;
  min-width: 0;
}

.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cat-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.cat-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.cat-tag {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-arrow {
  color: var(--subtle);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.cat-card:hover .cat-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

/* Calculator Card Styling */
.calc-card {
  display: flex;
  flex-direction: column;
}

.calc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calc-icon-tile {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  transition: all 0.2s ease;
}
.calc-card:hover .calc-icon-tile {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.calc-cat-pill {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.calc-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.35;
}

.calc-short {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   BREADCRUMBS & HEADERS
   ========================================================================== */

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: #ffffff;
}
.crumbs span {
  color: var(--subtle);
}
.current-crumb {
  color: #ffffff;
  font-weight: 600;
}

/* Category Head Banner */
.cat-head {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.cat-head-icon {
  width: 64px;
  height: 64px;
  background: #ffffff;
  color: #000000;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.cat-head-info h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}
.cat-head-info .lede {
  margin: 0 0 12px;
  font-size: 1rem;
}

.cat-meta-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-count-pill, .cat-free-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-count-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cat-free-pill {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent);
}

/* ==========================================================================
   CALCULATOR PAGE & INTERACTIVE WIDGET (STATE OF THE ART)
   ========================================================================== */

.calc-layout-with-ad {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-page {
  flex: 1;
  min-width: 0;
}

.calc-header {
  margin-bottom: 20px;
}

.calc-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.calc-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

/* The Calculator Widget */
.calc-widget {
  padding: 30px;
  margin: 16px 0 32px;
  background: #111116;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.calc-widget-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.calc-widget-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s infinite ease-in-out;
}

/* Form Fields */
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field .unit {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.field input, 
.field select:not(.inline-unit), 
.field textarea {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  width: 100%;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.field input:focus, 
.field select:not(.inline-unit):focus, 
.field textarea:focus {
  outline: none;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.field select:not(.inline-unit) option {
  background: #18181f;
  color: #ffffff;
}

/* Inline Unit Dropdown inside Labels */
.inline-unit {
  padding: 3px 22px 3px 10px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 6px center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
}
.inline-unit:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}
.inline-unit:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.inline-unit option {
  background: #18181f;
  color: #ffffff;
}

/* Results Display */
.results-header {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.results {
  display: grid;
  gap: 12px;
}

.result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.res-label {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Primary Highlight Result */
.result.is-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
}
.result.is-primary .res-label {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}
.result.is-primary .res-value {
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Formula Box */
.formula {
  margin: 24px 0 0;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.formula-label {
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.formula code {
  font-family: "JetBrains Mono", monospace;
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.92rem;
}

/* Steps (Step-by-Step Mathematical Proof) */
.steps {
  margin-top: 24px;
  padding: 22px;
  background: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  line-height: 1.7;
}

.steps-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step {
  padding: 4px 0;
  color: var(--ink-secondary);
}
.step-num {
  font-weight: 700;
  color: #ffffff;
  margin-right: 8px;
}
.step-text {
  font-family: inherit;
}

/* Chart Canvas Container */
.chart-container {
  margin: 24px auto 0;
  padding: 16px;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  max-width: 600px;
}

/* Feedback Section */
.helpful {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px 24px;
}
.helpful-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}
.helpful-buttons {
  display: flex;
  gap: 10px;
}
.btn-helpful {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
}
.btn-helpful:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}
.helpful-thanks {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Content / Rich Explanations / FAQs */
.content {
  padding: 32px;
  line-height: 1.7;
}
.content h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: #ffffff;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.content h2:first-child {
  margin-top: 0;
}
.content p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
}
.content .intro {
  font-size: 1.1rem;
  color: #ffffff;
}

.example {
  background: #070709;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.92rem;
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.6;
}

.faqs {
  display: grid;
  gap: 10px;
}
.faq {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all 0.2s ease;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
}
.faq[open] {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.faq-answer {
  margin-top: 10px;
  color: var(--muted);
}
.faq-answer p {
  margin: 0;
}

/* Related Calculators */
.related {
  margin-top: 40px;
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: #f4f4f5;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  color: #000000;
  text-decoration: none;
}

/* ==========================================================================
   ADVERTISING CONTAINERS & PLACEMENTS (ADSTERRA INTEGRATION)
   ========================================================================== */

.ad-card {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: rgba(18, 18, 23, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  margin: 32px auto;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.ad-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.ad-pill-label {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-scrollable-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  max-width: 100%;
  min-height: 90px;
  scrollbar-width: thin;
}

.ad-leaderboard-wrap {
  max-width: 820px;
}

.ad-rectangle-wrap {
  max-width: 340px;
  margin: 0 auto;
}

.ad-native-wrap {
  width: 100%;
  max-width: 900px;
  min-height: 120px;
  margin: 28px auto;
  box-sizing: border-box;
}
#container-f5fe00caaffe06746c22097906783cd8 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

.ad-skyscraper-wrap {
  width: auto;
  max-width: 200px;
  min-height: 640px;
  padding: 12px 10px 16px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box;
  overflow: visible !important;
}

.ad-skyscraper-wrap .ad-pill-label {
  display: inline-block !important;
  align-self: center !important;
  margin: 0 0 10px 0 !important;
  width: auto !important;
  height: auto !important;
  max-height: 24px !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
}

.ad-skyscraper-box {
  width: 160px;
  height: 600px;
  min-height: 600px;
  max-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
}

.ad-skyscraper-box iframe {
  width: 160px !important;
  height: 600px !important;
  max-width: 160px !important;
  min-width: 160px !important;
  border: none !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Desktop-Only Ad Utility (Hidden on mobile and tablet < 992px) */
.desktop-only-ad {
  display: block;
}
@media (max-width: 991px) {
  .desktop-only-ad,
  .ad-skyscraper-wrap,
  .category-sidebar-ad,
  .calc-sidebar-ad .ad-skyscraper-wrap {
    display: none !important;
  }
}

/* Category Layout with Skyscraper Sidebar */
.category-layout-with-ad {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.category-main-col {
  flex: 1;
  min-width: 0;
}
.category-sidebar-ad {
  display: none;
}

@media (min-width: 1024px) {
  .category-layout-with-ad {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .category-sidebar-ad {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    margin: 0;
  }
  .category-sidebar-ad .ad-skyscraper-wrap {
    display: flex !important;
    margin: 0 auto;
  }
}

/* Calculator Layout and Sidebar Ad Column */
.calc-layout-with-ad {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.calc-page {
  flex: 1;
  min-width: 0;
}
.calc-sidebar-ad {
  display: block;
  width: 100%;
  margin-top: 20px;
}
.calc-sidebar-ad .ad-skyscraper-wrap {
  display: none !important;
}

@media (min-width: 992px) {
  .calc-layout-with-ad {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .calc-sidebar-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    margin-top: 0;
  }
  .calc-sidebar-ad .ad-skyscraper-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 auto;
  }
}

/* ==========================================================================
   SEARCH SUGGESTIONS (FLOATING OBSIDIAN CARD)
   ========================================================================== */

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(18, 18, 23, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.search-suggestions.is-active {
  display: block;
  animation: fadeInDown 0.15s ease;
}

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

.search-suggestion-item {
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.search-suggestion-item:last-child {
  border-bottom: none;
}
.search-suggestion-item:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.search-suggestion-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}
.search-suggestion-cat {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FOOTER & COOKIE BANNER
   ========================================================================== */

.site-footer {
  background: rgba(9, 9, 11, 0.9);
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

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

.footer-tagline {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-bottom p {
  margin: 0;
}
.copyright {
  color: var(--subtle);
}

/* Futuristic Floating Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 640px;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  padding: 16px 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-icon {
  font-size: 1.4rem;
}
.cookie-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}
.cookie-content a {
  text-decoration: underline;
  color: #ffffff;
}

.btn-cookie-accept {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-cookie-accept:hover {
  background: #f4f4f5;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   STATIC PAGES (ABOUT, LEGAL, 404)
   ========================================================================== */

.page-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: #ffffff;
}

.features-list {
  padding-left: 20px;
  margin: 16px 0;
}
.features-list li {
  margin-bottom: 12px;
  color: var(--ink-secondary);
}
.features-list strong {
  color: #ffffff;
}

.legal-date {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

/* Desktop Only Utility */
@media (min-width: 769px) {
  .mobile-only-btn,
  .search-toggle-btn,
  .mobile-search-drawer {
    display: none !important;
  }
}

/* Tablet & Mobile Layouts */
@media (max-width: 900px) {
  .hero-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    padding: 24px 0 20px !important;
    text-align: left !important;
  }

  .hero-col-left {
    width: 100% !important;
    max-width: 100% !important;
    order: 1 !important;
    text-align: left !important;
  }

  .hero-badge {
    margin-bottom: 14px;
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.6rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
  }

  .lede {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
  }

  .search-hero-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-tags {
    margin-top: 10px;
    gap: 6px;
    justify-content: flex-start;
  }

  .hero-tag {
    font-size: 0.78rem;
    padding: 4px 10px;
  }

  .hero-features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
    margin: 20px 0 0 !important;
  }

  .hero-col-right {
    width: 100% !important;
    max-width: 100% !important;
    order: 2 !important;
  }

  .hero-ad-frame {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 28px !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
  }

  .hero-ad-body {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .hero-stats-bar {
    width: 100% !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
  }

  .stat-pill {
    padding: 8px 6px !important;
  }

  .stat-num {
    font-size: 1.05rem !important;
  }

  .stat-lbl {
    font-size: 0.65rem !important;
  }
}

/* Mobile Screens (Under 768px) */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .header-inner {
    height: 60px !important;
    padding: 0 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .brand {
    font-size: 1.25rem;
    gap: 8px;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .desktop-search {
    display: none !important;
  }

  .search-toggle-btn {
    display: inline-flex !important;
    margin-left: auto !important;
  }

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

  /* Tighter, cleaner mobile page spacing */
  .main {
    padding-top: 14px !important;
    padding-bottom: 40px !important;
  }

  .crumbs {
    margin: 0 0 12px !important;
    font-size: 0.82rem !important;
  }

  .calc-header {
    margin-bottom: 14px !important;
  }

  .calc-header h1 {
    font-size: 1.75rem !important;
    margin: 0 0 6px !important;
  }

  .calc-header .lede {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .calc-header-badge {
    margin-bottom: 8px !important;
  }

  .cat-grid,
  .calc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .cat-card {
    padding: 12px 10px !important;
    border-radius: 18px !important;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .cat-icon-tile {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    border-radius: 9px !important;
  }

  .cat-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  .cat-name {
    font-size: 0.88rem !important;
  }

  .cat-count {
    font-size: 0.68rem !important;
  }

  .cat-tag,
  .cat-arrow {
    display: none !important;
  }

  .calc-card {
    padding: 12px 11px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
  }

  .calc-card-head {
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .calc-icon-tile {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .calc-cat-pill {
    font-size: 0.62rem !important;
    letter-spacing: 0.03em !important;
    max-width: 75px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .calc-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .calc-short {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    color: var(--muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .cat-head {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 16px;
  }

  .cat-meta-badges {
    justify-content: center;
  }

  .calc-widget {
    margin: 10px 0 24px !important;
    padding: 18px 14px !important;
    border-radius: var(--radius-lg);
  }

  .fields {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .field label {
    margin-bottom: 6px !important;
    font-size: 0.85rem !important;
  }

  .result.is-primary {
    padding: 18px;
  }

  .result.is-primary .res-value {
    font-size: 1.6rem;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px 16px;
  }

  .btn-cookie-accept {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

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