/* =========================================================
   MIRACLE PAINT & CONSTRUCTION - Luxury Light Architectural Design System
   British Architectural Heritage Standard & Precision Contracting
   ========================================================= */

:root {
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Luxury Light Architectural Palette */
  --miracle-canvas: #f8fafc;
  --miracle-surface: #ffffff;
  --miracle-surface-tint: #f1f5f9;
  
  --miracle-ink: #0f172a;
  --miracle-ink-dark: #020617;
  --miracle-ink-muted: #334155;
  --miracle-gray: #64748b;
  --miracle-light-gray: #f8fafc;
  --miracle-border: #e2e8f0;
  --miracle-border-subtle: #cbd5e1;

  /* Warm Architectural Bronze & Amber Gold Accents */
  --miracle-gold: #d97706;
  --miracle-gold-light: #f59e0b;
  --miracle-gold-hover: #b45309;
  --miracle-gold-subtle: #fef3c7;
  --miracle-gold-border: #fde68a;

  /* Backward Compatibility Aliases */
  --mpc-gold: var(--miracle-gold);
  --mpc-gold-light: var(--miracle-gold-light);
  --mpc-gold-hover: var(--miracle-gold-hover);
  --mpc-gold-subtle: var(--miracle-gold-subtle);
  --mpc-gold-border: var(--miracle-gold-border);

  --mpc-navy: var(--miracle-ink);
  --mpc-slate: var(--miracle-ink-muted);
  --mpc-dark: var(--miracle-ink);
  --mpc-gray: var(--miracle-gray);
  --mpc-light-gray: var(--miracle-light-gray);
  --mpc-border: var(--miracle-border);

  --background: #f8fafc;
  --foreground: #0f172a;

  /* Gradients */
  --gradient-hero: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-medium: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-gold: 0 4px 20px rgba(217, 119, 6, 0.3);
  --shadow-dock: 0 12px 35px -5px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background-color: var(--miracle-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================================================
   LIGHT THEME HARMONIZATION OVERRIDES
   Maps legacy arbitrary dark classes to refined architectural light surfaces
   ========================================================= */
.bg-\[\#08101e\],
.bg-\[\#0b1528\],
.bg-\[\#0b192c\],
.bg-\[\#070d1a\],
.bg-\[\#07101d\],
.bg-miracle-navy {
  background-color: #ffffff !important;
}

.bg-slate-950,
.bg-slate-900 {
  background-color: #f8fafc !important;
}

.bg-slate-900\/90,
.bg-slate-900\/80 {
  background-color: rgba(248, 250, 252, 0.95) !important;
}

.bg-slate-800,
.bg-slate-800\/90 {
  background-color: #f1f5f9 !important;
}

.bg-slate-700 {
  background-color: #e2e8f0 !important;
}

/* Gradients */
.from-\[\#0b1528\],
.from-\[\#08101e\],
.from-\[\#0b192c\],
.from-\[\#070d1a\] {
  --tw-gradient-from: #f8fafc !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(248, 250, 252, 0)) !important;
}

.via-\[\#0e1c35\],
.via-\[\#0b1528\] {
  --tw-gradient-stops: var(--tw-gradient-from, #f8fafc), #ffffff, var(--tw-gradient-to, rgba(255, 255, 255, 0)) !important;
}

.to-[#0b1528],
.to-[#0f172a],
.to-[#08101e] {
  --tw-gradient-to: #ffffff !important;
}

/* Ensure text inside overridden dark containers is dark */
.bg-\[\#08101e\]:not(button):not(.mpc-btn-primary):not([class*="btn-"]),
.bg-\[\#0b1528\]:not(button):not(.mpc-btn-primary):not([class*="btn-"]),
.bg-\[\#0b192c\]:not(button):not(.mpc-btn-primary):not([class*="btn-"]),
.bg-\[\#070d1a\]:not(button):not(.mpc-btn-primary):not([class*="btn-"]),
.bg-\[\#07101d\]:not(button):not(.mpc-btn-primary):not([class*="btn-"]) {
  color: #0f172a !important;
}

.bg-\[\#08101e\] .text-white:not(button):not([class*="btn-"]):not(.badge-gold),
.bg-\[\#0b1528\] .text-white:not(button):not([class*="btn-"]):not(.badge-gold),
.bg-\[\#0b192c\] .text-white:not(button):not([class*="btn-"]):not(.badge-gold),
.bg-\[\#070d1a\] .text-white:not(button):not([class*="btn-"]):not(.badge-gold),
.bg-\[\#07101d\] .text-white:not(button):not([class*="btn-"]):not(.badge-gold),
.bg-slate-900 .text-white:not(button):not([class*="btn-"]):not(.badge-gold),
.bg-slate-950 .text-white:not(button):not([class*="btn-"]):not(.badge-gold) {
  color: #0f172a !important;
}

.bg-\[\#08101e\] .text-slate-300,
.bg-\[\#0b1528\] .text-slate-300,
.bg-\[\#0b192c\] .text-slate-300,
.bg-slate-900 .text-slate-300 {
  color: #334155 !important;
}

.bg-\[\#08101e\] .text-slate-400,
.bg-\[\#0b1528\] .text-slate-400,
.bg-\[\#0b192c\] .text-slate-400,
.bg-slate-900 .text-slate-400 {
  color: #64748b !important;
}

/* =========================================================
   HIGH CONTRAST LIGHT TYPOGRAPHY & BORDERS
   ========================================================= */
.text-slate-900,
.text-slate-950,
.text-\[\#0b1528\],
.text-\[\#0b192c\] {
  color: #0f172a !important;
}

.text-slate-800 {
  color: #1e293b !important;
}

.text-slate-700 {
  color: #334155 !important;
}

.text-slate-600 {
  color: #475569 !important;
}

.text-slate-500 {
  color: #64748b !important;
}

.text-slate-400 {
  color: #64748b !important;
}

.text-amber-300,
.text-amber-400 {
  color: #d97706 !important;
}

.text-amber-500,
.text-amber-600 {
  color: #b45309 !important;
}

.border-slate-800,
.border-slate-700,
.border-slate-700\/80 {
  border-color: #e2e8f0 !important;
}

.border-amber-400,
.border-amber-500\/30,
.border-amber-500\/40 {
  border-color: rgba(217, 119, 6, 0.35) !important;
}

/* =========================================================
   MIRACLE COMPONENT SYSTEM - LUXURY LIGHT
   ========================================================= */

/* 1. Header & Navigation (Clean Frosted Glass) */
.mpc-nav {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.mpc-nav .brand-heading {
  color: #0f172a !important;
}

.mpc-nav .brand-heading span {
  color: #d97706 !important;
}

.mpc-nav-link {
  color: #334155 !important;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}
.mpc-nav-link:hover {
  color: #b45309 !important;
  background-color: #f1f5f9;
}
.mpc-nav-link.active {
  color: #92400e !important;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
}

/* Mobile Navigation Capsule Button */
.mpc-mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 38px;
}
.mpc-mobile-nav-btn:hover,
.mpc-mobile-nav-btn:active {
  background: #f8fafc !important;
  border-color: #d97706 !important;
  color: #d97706 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  transform: scale(0.97);
}
.mpc-mobile-nav-btn i {
  font-size: 0.875rem;
  color: #d97706 !important;
  transition: transform 0.3s ease;
}
.mpc-mobile-nav-btn[aria-expanded="true"] i {
  transform: rotate(90deg);
}

/* Horizontal Quick-Nav Bar for Mobile */
.mpc-mobile-quickbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 64px;
  z-index: 39;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.mpc-mobile-quickbar::-webkit-scrollbar {
  display: none;
}
.mpc-quickbar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  min-width: max-content;
}
.mpc-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.mpc-quick-chip:hover,
.mpc-quick-chip.active {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.mpc-quick-chip.highlight {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  border-color: transparent;
  font-weight: 800;
}
.mpc-quick-chip i {
  font-size: 0.625rem;
}

/* 2. Hero Sections (Luxury Light Architectural Canvas) */
.mpc-hero,
.mpc-sub-hero,
section.from-\[\#0b1528\],
section[class*="from-\[\#0b1528\]"],
section[class*="from-\[\#08101e\]"],
section[class*="from-\[\#0b192c\]"],
section.bg-gradient-to-b[class*="from-"] {
  background: radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.06) 0%, transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(15, 23, 42, 0.03) 0%, transparent 45%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
  color: #0f172a !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0 !important;
}

.mpc-hero::before,
.mpc-sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

.mpc-hero h1,
.mpc-sub-hero h1,
section[class*="from-\[\#0b1528\]"] h1 {
  color: #0f172a !important;
}

.mpc-display-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #0f172a !important;
}

.mpc-amber-gradient-text {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3. Action Buttons */
.mpc-btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1.75rem;
  border-radius: 0.875rem;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mpc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
  filter: brightness(1.04);
}

.mpc-btn-secondary {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}
.mpc-btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #d97706 !important;
  color: #d97706 !important;
  transform: translateY(-1px);
}

/* 4. Metrics & Stat Matrix */
.mpc-stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.mpc-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mpc-stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.375rem;
  color: #d97706 !important;
  line-height: 1;
}

.mpc-stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569 !important;
}

/* 5. Showcase Card */
.mpc-showcase-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: relative;
}

.mpc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fef3c7 !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}

/* 6. Footer (Clean Light Architectural Footer) */
.mpc-footer {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-top: 1px solid #e2e8f0 !important;
}

.brand-font,
.brand-heading {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Custom Utilities */
.miracle-gradient,
.mpc-gradient {
  background: var(--gradient-hero);
}

.bg-miracle-gold,
.bg-mpc-gold {
  background-color: var(--miracle-gold);
}

.text-miracle-gold,
.text-mpc-gold {
  color: var(--miracle-gold);
}

.border-miracle-gold,
.border-mpc-gold {
  border-color: var(--miracle-gold);
}

.bg-miracle-gold-subtle,
.bg-mpc-gold-subtle {
  background-color: var(--miracle-gold-subtle);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.shadow-gold {
  box-shadow: var(--shadow-gold);
}

.shadow-dock {
  box-shadow: var(--shadow-dock);
}

/* =========================================================
   RE-ENGINEERED CALCULATOR ARCHITECTURAL COMPONENTS
   New Presentation Styles - Replaces Dark Layout
   ========================================================= */

/* A. Architectural Studio Tabs (Top Service Switcher) */
.calc-studio-nav {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.4rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  overflow-x: auto;
}

.calc-studio-tab {
  flex: 1;
  min-width: 130px;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.calc-studio-tab:hover {
  background: #f8fafc;
  color: #0f172a;
}

.calc-studio-tab.active {
  background: #ffffff;
  color: #92400e;
  border-color: #fde68a;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.12);
  font-weight: 800;
  position: relative;
}

.calc-studio-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 2.5px;
  background: #d97706;
  border-radius: 9999px;
}

.calc-studio-tab i {
  font-size: 0.95rem;
  color: #d97706;
}

/* B. Modern Architectural Form Workbench */
.calc-workbench {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.calc-step-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.calc-step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.calc-step-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
}

/* C. Live Architectural Estimate Ledger (Right Column) */
.calc-ledger-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1.5rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.calc-ledger-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #f59e0b, #b45309);
}

.calc-ledger-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.calc-ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #475569;
}

.calc-ledger-item strong {
  color: #0f172a;
}

/* D. Frosted Light Mobile Dock */
.calc-light-dock {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1.25rem;
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06);
  padding: 0.85rem 1.25rem;
}

/* Inputs, Selects & Steppers */
.mpc-input,
.mpc-select,
.calc-input-box {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  background-color: #ffffff;
  color: #0f172a;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.mpc-input:focus,
.mpc-select:focus,
.calc-input-box:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stepper-btn:hover {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.stepper-btn:active {
  transform: scale(0.92);
}

/* ================= FLOATING CIRCULAR MIRACLE AI BUTTON ================= */
.floating-ai-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d97706;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.25), 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 9999;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-ai-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.35);
  background: #fef3c7;
  color: #92400e;
}

.floating-ai-btn .ai-ping-wrap {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.floating-ai-btn .ai-ping-wrap .ai-ping-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #10b981;
  opacity: 0.75;
  animation: aiPingPulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.floating-ai-btn .ai-ping-wrap .ai-ping-dot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid #ffffff;
}

@keyframes aiPingPulse {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.floating-ai-btn .ai-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.floating-ai-btn:hover .ai-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

.floating-ai-btn.has-dock {
  bottom: 105px;
}

@media (max-width: 640px) {
  .floating-ai-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    bottom: 18px;
    right: 18px;
  }
  .floating-ai-btn.has-dock {
    bottom: 92px;
    right: 16px;
  }
}
