/* ==========================================================================
   Agent Robbie's AI Directory — styles.css
   Aesthetic: Sophisticated, Refined Slate Grey Palette with Occasional Orange Accent
   Header: 3-Column Lockup (Logo | Welcome Statement | Actions & Trust)
   Typography: Barlow | Elegant, Slim, Non-Heavy Font Weights (600 / 500 / 400)
   ========================================================================== */

:root {
  /* Slate Grey & Dark Navy Palette */
  --slate-950: #0B0F19;
  --slate-900: #0F172A;
  --slate-850: #131D31;
  --slate-800: #1E293B;
  --navy-900:  #131D31;
  --navy-850:  #18233A;
  --navy-800:  #1E2D4A;
  --navy-700:  #2D4268;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-150: #EDF2F7;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Tasteful Orange Accent (Only for specific indicators & active states) */
  --robbie-orange:       #F47A1F;
  --robbie-orange-hover: #E06A10;
  --robbie-orange-light: #FFF3E8;
  --orange-500:          #F47A1F;
  --orange-600:          #E06A10;

  /* Surfaces & Structural Tokens */
  --bg-page:        #F8FAFC;
  --card-bg:        #FFFFFF;
  --border-subtle:  #E2E8F0;
  --border-hover:   #94A3B8;

  --font-main:      'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card:    14px;
  --radius-pill:    9999px;
  --radius-btn:     8px;

  --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card:    0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-hover:   0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);

  --transition:     all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--slate-900);
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 0.875rem;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   EXPANDED 3-COLUMN HEADER (LOGO | WELCOME MESSAGE | ACTIONS & TRUST)
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

/* 1. Left: Official Vertical Agent Robbie Logo */
.brand-vertical-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-vertical-lockup:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-vertical-img {
  height: 94px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* 2. Center: Welcome Message beside logo */
.header-welcome-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.75rem;
}

.header-welcome-heading {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.header-welcome-text {
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

.header-welcome-text strong {
  color: var(--slate-900);
  font-weight: 600;
}

/* 3. Right: Header Actions & 100% Independent Link Under BMC */
.header-actions-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.75rem;
}

.header-actions-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.last-updated {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--border-subtle);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.bmc-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-800);
  color: var(--white);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.42rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.bmc-nav-btn:hover {
  background: var(--slate-950);
  transform: translateY(-1px);
}

.header-trust-under-bmc {
  text-align: right;
  max-width: 250px;
}

.trust-shield-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 2px;
}

.trust-shield-label svg {
  color: var(--slate-700);
}

.trust-under-bmc-desc {
  font-size: 0.725rem;
  color: var(--slate-500);
  line-height: 1.35;
  margin: 0;
}

.trust-bmc-link {
  color: var(--slate-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
}

.trust-bmc-link:hover {
  color: var(--robbie-orange);
}

/* --------------------------------------------------------------------------
   TOP NAVIGATION STRIP (SOLID NAVY BACKGROUND WITH WHITE PILLS)
   -------------------------------------------------------------------------- */
.top-nav-strip {
  background-color: #131D31 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0.85rem 0 0.75rem 0 !important;
  width: 100%;
}

.top-nav-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav-container::-webkit-scrollbar {
  display: none;
}

.top-nav-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background-color: #FFFFFF !important;
  color: #131D31 !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  flex-shrink: 0 !important;
}

.top-nav-pill:hover {
  background-color: #F8FAFC !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.top-nav-pill.active {
  background-color: #131D31 !important;
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.top-nav-pill svg {
  stroke: #131D31 !important;
  flex-shrink: 0 !important;
}

.top-nav-pill.active svg {
  stroke: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   MODALITY & TASK SELECTOR (DUAL NAVIGATION)
   -------------------------------------------------------------------------- */
.modality-bar-section {
  padding: 1.25rem 0 0.5rem;
}

.modality-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0 2px;
}

.modality-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-700);
}

.modality-hint {
  font-size: 0.725rem;
  color: var(--slate-400);
}

.modality-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.modality-chip {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--slate-50);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.modality-chip:hover {
  background: var(--slate-150);
  color: var(--slate-950);
  border-color: var(--slate-300);
}

.modality-chip.active {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.modality-chip-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  stroke: currentColor;
  flex-shrink: 0;
}

.modality-chip.active .modality-chip-icon {
  stroke: var(--orange-500);
}

/* --------------------------------------------------------------------------
   PROMINENT ECOSYSTEM TABS (SOPHISTICATED GREY & SUBTLE ORANGE ACCENT)
   -------------------------------------------------------------------------- */
.ecosystem-tabs-section {
  padding: 0.5rem 0 0.85rem;
}

.tabs-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0 2px;
}

.tabs-instruction-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
}

.tabs-hint-pill {
  font-size: 0.725rem;
  color: var(--slate-400);
  font-weight: 400;
}

.main-provider-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  background: var(--white);
  padding: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.main-tab-btn {
  font-family: var(--font-main);
  background: var(--slate-50);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-align: left;
}

.main-tab-btn:hover {
  background: var(--white);
  border-color: var(--slate-300);
  transform: translateY(-1px);
}

.main-tab-btn.active {
  background: var(--slate-900);
  border-color: var(--slate-900);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.tab-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--robbie-orange);
  opacity: 0;
  transition: var(--transition);
}

.main-tab-btn.active .tab-accent-line {
  opacity: 1;
}

.tab-top-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.tab-brand-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.tab-brand-svg {
  width: 16px;
  height: 16px;
  stroke: var(--slate-600);
  display: inline-block;
  flex-shrink: 0;
  transition: var(--transition);
}

.main-tab-btn:hover .tab-brand-svg {
  stroke: var(--slate-900);
}

/* Active Tab Color Reversal: Invert logos & stroke to pure white on navy */
.main-tab-btn.active .tab-brand-svg {
  stroke: #FFFFFF !important;
}

.main-tab-btn.active .tab-brand-icon {
  filter: brightness(0) invert(1) !important;
}

.main-tab-btn.active img[alt="Google"],
.main-tab-btn.active img[src*="google"] {
  filter: none !important;
}

.tab-title-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-tab-btn.active .tab-title-text {
  color: var(--white) !important;
}

.tab-tag-pill {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-500);
  background: var(--slate-150);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
  transition: var(--transition);
}

.main-tab-btn.active .tab-tag-pill {
  background: rgba(255, 255, 255, 0.22) !important;
  color: var(--white) !important;
}

.provider-hero {
  padding: 1.35rem 0 0.85rem;
}

.provider-hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.provider-hero-text {
  flex: 1;
}

.btn-ask-robbie-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--orange-500, #F47A1F) !important;
  color: #FFFFFF !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-ask-robbie-hero:hover {
  background-color: #E06A10 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.hero-robbie-label {
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-robbie-avatar {
  border-radius: 50%;
  display: block;
}

.hero-robbie-pulse {
  width: 6px;
  height: 6px;
  background: #F47A1F;
  border-radius: 50%;
  box-shadow: 0 0 6px #F47A1F;
  animation: pulseDot 2s infinite ease-in-out;
}

.card-modality-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--slate-100);
  border: 1px solid var(--border-subtle);
  color: var(--slate-600);
  flex-shrink: 0;
}

.card-modality-pill svg {
  stroke: currentColor;
}

.provider-hero-title {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.provider-hero-subtitle {
  font-size: 0.875rem;
  color: var(--slate-500);
  max-width: 820px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   TIER COMPARISON SECTION (ELEGANT, NON-HEAVY PRICING & TITLES)
   -------------------------------------------------------------------------- */
.tier-comparison {
  margin-bottom: 1.75rem;
}

.tier-comparison.hidden {
  display: none;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .tiers-grid[data-count="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tiers-grid[data-count="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tiers-grid[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tiers-grid[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tiers-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition);
}

.tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--slate-400);
  box-shadow: var(--shadow-hover);
}

.tier-card.popular {
  border: 1.5px solid var(--slate-800);
}

.tier-badge {
  position: absolute;
  top: -9px;
  right: 8px;
  background: var(--slate-800);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.tier-header {
  margin-bottom: 0.65rem;
}

.tier-header h3 {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Refined, Elegant Price Sizing & Weight */
.price {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.price span {
  font-size: 0.725rem;
  font-weight: 400;
  color: var(--slate-500);
}

.tier-features {
  list-style: none;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.tier-features li {
  font-size: 0.735rem;
  color: var(--slate-600);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.tier-features li::before {
  content: "✓";
  color: var(--slate-700);
  font-weight: 600;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   BUTTONS (GREY/NAVY MONOCHROME PALETTE)
   -------------------------------------------------------------------------- */
.btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  width: 100%;
}

.btn-primary {
  background: var(--slate-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--slate-950);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--slate-700);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

/* --------------------------------------------------------------------------
   CONTROLS & SEARCH BAR
   -------------------------------------------------------------------------- */
.controls-section {
  margin-bottom: 1.25rem;
}

.controls-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--slate-400);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.75rem 2.5rem 0.75rem 2.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--slate-900);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#searchInput:focus {
  border-color: var(--slate-600);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--slate-200);
  border: none;
  color: var(--slate-600);
  font-size: 0.9rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.clear-btn:hover {
  background: var(--slate-400);
  color: var(--white);
}

.clear-btn.hidden {
  display: none;
}

/* Category Filter Chips */
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  font-family: inherit;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  color: var(--slate-700);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.chip:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.chip.active {
  background: var(--slate-800);
  border-color: var(--slate-800);
  color: var(--white);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--slate-400);
}

.chip.active .chip-dot {
  background: var(--robbie-orange) !important;
}

/* --------------------------------------------------------------------------
   RESULTS META BAR
   -------------------------------------------------------------------------- */
.results-meta {
  margin-bottom: 1.25rem;
}

.meta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--slate-500);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

#sortBy {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-800);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   MAIN DIRECTORY CARDS GRID (ALL CARDS LEVEL AT TOP, EQUAL HEIGHT, ALL GREY ICONS)
   -------------------------------------------------------------------------- */
.directory-main {
  margin-bottom: 4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

/* Service Card — Standardized, Equal Height, Clean Sizing */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.line-icon-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

/* Brand Mark Container */
.brand-mark-badge {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.brand-mark-badge img,
.brand-mark-badge svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Monochrome Grey Icon Box */
.mono-line-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.mono-line-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--slate-600);
}

.badge-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--slate-100);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
}

.card-description {
  font-size: 0.8125rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  min-height: 3.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tier Indicators */
.tier-indicators {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  min-height: 22px;
}

.tier-pill {
  font-size: 0.625rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tier-pill--plus      { background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--border-subtle); }
.tier-pill--pro       { background: var(--slate-800); color: var(--white); }
.tier-pill--ultra     { background: var(--slate-900); color: var(--white); border-top: 2px solid var(--robbie-orange); }
.tier-pill--free      { background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--border-subtle); }
.tier-pill--labs      { background: var(--slate-150); color: var(--slate-800); }
.tier-pill--default   { background: var(--slate-100); color: var(--slate-700); }

/* Usage Box */
.usage-box {
  background: var(--slate-50);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1rem;
  min-height: 56px;
}

.usage-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  display: block;
  margin-bottom: 2px;
}

.usage-value {
  font-size: 0.775rem;
  font-weight: 400;
  color: var(--slate-800);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer — Perfectly Baseline Aligned with Grey Buttons */
.card-footer {
  margin-top: auto;
  display: flex;
  gap: 6px;
  width: 100%;
}

.card-footer .open-btn {
  flex: 2;
}

.card-footer .details-btn {
  flex: 1;
}

/* Empty State */
.empty-state, .coming-soon-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  max-width: 500px;
  margin: 2rem auto;
}

.empty-state.hidden, .coming-soon-state.hidden {
  display: none;
}

.empty-icon, .coming-soon-icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.empty-state h3, .coming-soon-state h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.4rem;
}

.empty-state p, .coming-soon-state p {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   DETAIL MODAL
   -------------------------------------------------------------------------- */
.modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 560px;
  width: 90%;
  margin: auto;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.20);
  position: relative;
  padding: 2rem;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--slate-100);
  border: none;
  color: var(--slate-600);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

/* --------------------------------------------------------------------------
   FOOTER & LEGAL
   -------------------------------------------------------------------------- */
.app-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 42px;
  width: auto;
  opacity: 0.85;
}

.footer-brand h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.775rem;
  color: var(--slate-400);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-200);
  margin-bottom: 0.65rem;
}

.footer-col a {
  display: block;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 2px;
}

.footer-legal {
  font-size: 0.725rem;
  line-height: 1.55;
  color: var(--slate-400);
}

.footer-legal p {
  margin-bottom: 0.4rem;
}

.footer-legal .disclaimer {
  color: var(--slate-500);
  font-size: 0.7rem;
  border-left: 2px solid var(--slate-600);
  padding-left: 8px;
  margin-top: 0.65rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .header-welcome-center, .header-actions-right {
    border-left: none;
    padding-left: 0;
  }

  .header-actions-right {
    align-items: flex-start;
  }

  .header-trust-under-bmc {
    text-align: left;
  }

  .trust-shield-label {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .main-provider-tabs {
    grid-template-columns: 1fr;
  }

  .cards-grid, .tiers-grid {
    grid-template-columns: 1fr;
  }

  .meta-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .chat-widget {
    top: auto !important;
    bottom: 20px !important;
    right: 16px !important;
  }

  .chat-drawer {
    width: calc(100vw - 32px) !important;
    right: 0 !important;
    top: auto !important;
    bottom: 54px !important;
    max-height: 75vh !important;
  }
}

/* --------------------------------------------------------------------------
   "ASK AGENT ROBBIE" CHAT DRAWER (POPUP DIALOG)
   -------------------------------------------------------------------------- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 1000;
  font-family: var(--font-main);
  pointer-events: none;
}

/* Chat Drawer — Slides In from Corner */
.chat-drawer {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 400px;
  max-width: 94vw;
  height: 560px;
  max-height: calc(100vh - 60px);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.chat-drawer.hidden {
  display: none !important;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background: var(--slate-900);
  color: var(--white);
}

.chat-header-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-800);
  padding: 1px;
}

.chat-header-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1.15;
}

.chat-header-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-400);
  display: block;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-icon-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: var(--transition);
}

.chat-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Suggestion Chips */
.chat-suggestions-bar {
  display: flex;
  gap: 6px;
  padding: 0.5rem 0.85rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-suggestions-bar::-webkit-scrollbar {
  display: none;
}

.chat-suggestion-chip {
  font-family: inherit;
  font-size: 0.675rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.chat-suggestion-chip:hover {
  background: var(--slate-150);
  color: var(--slate-900);
}

/* Messages Area */
.chat-messages-area {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.chat-bubble-bot {
  align-self: flex-start;
}

.chat-bubble-bot .bubble-content {
  background: var(--slate-100);
  color: var(--slate-900);
  border: 1px solid var(--border-subtle);
  border-radius: 14px 14px 14px 2px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.chat-bubble-user {
  align-self: flex-end;
}

.chat-bubble-user .bubble-content {
  background: var(--slate-900);
  color: var(--white);
  border-radius: 14px 14px 2px 14px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.bubble-content p {
  margin: 0 0 0.35rem 0;
}

.bubble-content p:last-child {
  margin-bottom: 0;
}

.bubble-content strong {
  font-weight: 600;
}

/* Typing / Thinking Animation Indicator */
.robbie-thinking-indicator,
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
}

.robbie-thinking-label {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-right: 4px;
}

.robbie-thinking-dot,
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--robbie-orange);
  display: inline-block;
  animation: thinkingBounce 1.2s infinite ease-in-out both;
}

.robbie-thinking-dot:nth-child(2),
.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.robbie-thinking-dot:nth-child(3),
.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes thinkingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* =========================================================================
   ROBBIE PET CHARACTER ANIMATION COMPONENT (CALM BREATHING & 30s IDLE CYCLE)
   ========================================================================= */
.robbie-pet-stage {
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 15;
}

.robbie-pet-stage .robbie-emotion-lane {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 150px;
  height: 110px;
  overflow: visible;
  pointer-events: auto;
  cursor: pointer;
}

.robbie-pet-stage .robbie-pet-character {
  position: absolute;
  right: 6px;
  bottom: -2px;
  height: 100px;
  width: auto;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transform: translateZ(0);
  transform-origin: center bottom;
  filter: drop-shadow(0 6px 6px rgba(16, 37, 65, 0.20));
  will-change: transform;
  /* Standard gentle breathing motion up and down for all static positions */
  animation: pet-gentle-breathe 2.4s ease-in-out infinite;
}

.robbie-pet-stage .robbie-pet-character img {
  display: block;
  height: 100px;
  width: auto;
  max-height: 100px;
  user-select: none;
  pointer-events: none;
}

/* Primary Pose Image with smooth crossfade opacity easing */
.robbie-pet-stage .pet-pose-primary {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.45s ease-in-out;
}

/* Waving Layer Split (Original Pivoting Arm Animation) */
.robbie-pet-stage .pet-wave-body,
.robbie-pet-stage .pet-wave-arm {
  display: none !important;
  position: absolute;
  z-index: 2;
  inset: 0;
  height: 100px;
  width: auto;
  opacity: 0;
}

.robbie-pet-stage .robbie-emotion-lane.emotion-wave .pet-pose-primary {
  opacity: 0 !important;
}

.robbie-pet-stage .robbie-emotion-lane.emotion-wave .pet-wave-body,
.robbie-pet-stage .robbie-emotion-lane.emotion-wave .pet-wave-arm {
  display: block !important;
  opacity: 1 !important;
}

.robbie-pet-stage .robbie-emotion-lane.emotion-wave .pet-wave-arm {
  z-index: 3;
  transform-origin: 52% 58%;
  animation: pet-wave-arm 480ms cubic-bezier(.36,.08,.32,1.18) 3;
}

/* Goodbye Wave */
.robbie-pet-stage .robbie-emotion-lane.is-goodbye-wave.emotion-wave .pet-wave-arm {
  animation: pet-wave-arm 480ms cubic-bezier(.36,.08,.32,1.18) 2;
}

/* Standard Gentle Vertical Breathing Motion (No Rocking / No Pivoting) */
@keyframes pet-gentle-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2.5px); }
}

@keyframes pet-wave-arm {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(12deg); }
}

/* Celebrating Pop (Vertical bounce only) */
@keyframes pet-success-bounce {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-7px) scale(1.02); }
}
.robbie-pet-stage .robbie-emotion-lane.emotion-success .robbie-pet-character {
  animation: pet-success-bounce 1s ease-in-out 2 both;
}

/* Sparkles & Hearts */
.robbie-pet-stage .pet-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--orange-500, #F47A1F);
  opacity: 0;
  transform: rotate(45deg);
}
.robbie-pet-stage .spark-one { left: 5%; top: 24%; }
.robbie-pet-stage .spark-two { right: 4%; top: 34%; }
.robbie-pet-stage .emotion-success .pet-spark { animation: pet-spark-rise 720ms ease-out 1 0.3s both; }
.robbie-pet-stage .emotion-success .spark-two { animation-delay: 0.5s; }

@keyframes pet-spark-rise {
  0% { opacity: 0; transform: translateY(6px) rotate(45deg) scale(.5); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px) rotate(135deg) scale(1.1); }
}

.robbie-pet-stage .dance-heart {
  position: absolute;
  left: 50%;
  top: 2px;
  z-index: 3;
  color: var(--orange-500, #F47A1F);
  font-size: 14px;
  opacity: 0;
}
.robbie-pet-stage .emotion-dance .dance-heart { animation: heart-rise 2.5s ease-out 1 both; }
.robbie-pet-stage .heart-one { --heart-x: -24px; --heart-y: -50px; --heart-scale: .75; }
.robbie-pet-stage .heart-two { --heart-x: -8px; --heart-y: -65px; --heart-scale: 1.05; }
.robbie-pet-stage .heart-three { --heart-x: 12px; --heart-y: -55px; --heart-scale: .9; }

@keyframes heart-rise {
  0% { opacity: 0; transform: translate(0, 4px) scale(.45); }
  30% { opacity: 1; transform: translate(0, -10px) scale(.9); }
  100% { opacity: 0; transform: translate(var(--heart-x), var(--heart-y)) scale(var(--heart-scale)); }
}

/* Input Form */
.chat-input-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border-top: 1px solid var(--border-subtle);
}

#chatInput {
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--slate-900);
  outline: none;
  background: var(--slate-50);
  transition: var(--transition);
}

#chatInput:focus {
  background: var(--white);
  border-color: var(--slate-700);
}

.chat-send-btn {
  background: var(--slate-900);
  color: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--slate-950);
  transform: scale(1.04);
}

.chat-drawer-footer {
  padding: 4px 10px;
  background: var(--slate-50);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.625rem;
  color: var(--slate-400);
  font-weight: 500;
}

/* =========================================================================
   FLOATING ACTION DOCK (PINNED TO BOTTOM VIEWPORT ON ALL PAGES)
   ========================================================================= */
.floating-action-dock,
.sticky-ask-robbie {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Floating Return to Top Button - appears smoothly when user scrolls */
.scroll-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--navy-900, #131D31);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  font-family: var(--font-main, 'Barlow', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(19, 29, 49, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scroll-to-top-btn.is-visible,
.scroll-to-top-btn.is-scrolled {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: #1B2A4A;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(19, 29, 49, 0.35);
  transform: translateY(-2px);
}

.scroll-to-top-btn:active {
  transform: translateY(0);
}

.scroll-to-top-btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.scroll-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* =========================================================================
   ASK AGENT ROBBIE BUTTONS (HERO & FLOATING DOCK) - ORANGE THEME WITH GREY SHADOWS
   ========================================================================= */

/* Hero Provider Ask Robbie Button */
.btn-ask-robbie-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: var(--orange-500, #F47A1F);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-family: var(--font-main, 'Barlow', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-ask-robbie-hero:hover {
  background: #E06A10;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.24);
  transform: translateY(-2px);
}

.btn-ask-robbie-hero:active {
  transform: translateY(0);
}

.hero-robbie-avatar {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px;
}

.hero-robbie-pulse {
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  animation: pulseWhite 2s infinite ease-in-out;
}

@keyframes pulseWhite {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Floating Ask Robbie Button */
.floating-ask-robbie-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--orange-500, #F47A1F);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-family: var(--font-main, 'Barlow', sans-serif);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.floating-ask-robbie-btn:hover {
  background: #E06A10;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.24);
  transform: translateY(-2px);
}

.floating-ask-robbie-btn:active {
  transform: translateY(0);
}

.floating-ask-robbie-btn img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px;
  flex-shrink: 0;
}

.floating-ask-robbie-dot {
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  animation: pulseWhite 2s infinite ease-in-out;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .floating-action-dock {
    bottom: 18px;
    right: 16px;
    gap: 8px;
  }
  .scroll-to-top-btn {
    padding: 8px 10px;
  }
  .scroll-to-top-btn span {
    display: none;
  }
  .floating-ask-robbie-btn {
    padding: 8px 12px;
  }
  .floating-ask-robbie-btn span.ask-text {
    display: none;
  }
}

/* ==========================================================================
   SPECIAL OFFERS & PARTNER PERKS STYLES
   ========================================================================== */
.perks-hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.perks-hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.perks-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--robbie-orange-light);
  border: 1px solid rgba(244, 122, 31, 0.25);
  border-radius: var(--radius-pill);
  color: var(--orange-600);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.perks-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.perks-hero-title span {
  color: var(--orange-500);
}

.perks-hero-subtitle {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.perks-trust-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}

.perks-trust-banner strong {
  color: var(--slate-900);
}

/* Category Filter Strip */
.perks-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2rem 0 1.5rem;
}

.perk-filter-btn {
  appearance: none;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--slate-700);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.perk-filter-btn:hover {
  border-color: var(--slate-400);
  color: var(--slate-950);
  background: var(--slate-100);
}

.perk-filter-btn.active {
  background: var(--slate-900);
  border-color: var(--slate-900);
  color: #FFFFFF;
  font-weight: 600;
}

/* Section Headings */
.perks-section-header {
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.perks-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perks-section-count {
  font-size: 0.825rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Featured Perks Grid */
.featured-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Standard Perks Grid */
.all-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

/* Perk Card Base */
.perk-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.perk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--slate-300);
}

.perk-card--featured {
  border: 2px solid rgba(244, 122, 31, 0.35);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 100%);
}

.perk-card--featured::before {
  content: "FEATURED PARTNER";
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--orange-500);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(244, 122, 31, 0.3);
}

.perk-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.perk-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perk-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--slate-100);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  object-fit: contain;
}

.perk-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
}

.perk-provider-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.perk-badge-pill {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.perk-badge-pill.badge-deal {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

.perk-badge-pill.badge-trial {
  background: #E0E7FF;
  color: #3730A3;
  border-color: #C7D2FE;
}

.perk-badge-pill.badge-discount {
  background: #D1FAE5;
  color: #065F46;
  border-color: #A7F3D0;
}

.perk-tagline {
  font-size: 0.825rem;
  color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

/* Perk Deal Highlight Box */
.perk-offer-box {
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 1.15rem;
}

.perk-offer-headline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-950);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.perk-offer-headline svg {
  color: var(--orange-500);
  flex-shrink: 0;
}

.perk-offer-details {
  font-size: 0.775rem;
  color: var(--slate-600);
  line-height: 1.4;
}

/* Coupon Box & Action Buttons */
.perk-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  padding: 4px 6px 4px 10px;
}

.coupon-code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--slate-800);
  letter-spacing: 0.05em;
}

.coupon-copy-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.coupon-copy-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.claim-perk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--slate-900);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  text-align: center;
}

.claim-perk-btn:hover {
  background: var(--orange-500);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.perk-card--featured .claim-perk-btn {
  background: var(--orange-500);
}

.perk-card--featured .claim-perk-btn:hover {
  background: var(--orange-600);
}

.perk-disclosure {
  font-size: 0.7rem;
  color: var(--slate-400);
  text-align: center;
  margin-top: 4px;
}

/* Inbound Partner Callout Card */
.partner-apply-card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--slate-900) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 2.5rem;
  margin: 3rem 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-hover);
}

.partner-apply-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.partner-apply-content p {
  font-size: 0.9rem;
  color: var(--slate-300);
  max-width: 620px;
  line-height: 1.55;
}

.partner-apply-btn {
  background: var(--orange-500);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.partner-apply-btn:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 122, 31, 0.4);
}

/* Copy Toast Notification */
.perk-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--slate-950);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.perk-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .partner-apply-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .partner-apply-content p {
    margin: 0 auto;
  }
  .perks-hero-title {
    font-size: 1.75rem;
  }
}




