:root {
  --bg-color: #07090e;
  --bg-surface: #0e121d;
  --card-border: rgba(255, 255, 255, 0.08);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  --accent: #6366f1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --danger: #f43f5e;
}

/* La section du bas de la page d'acceuil */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

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

/* Défilement fluide */

/* 1. Prise en charge standard (Firefox) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-surface);
  scroll-behavior: smooth;
}

/* 2. Largeur & rails (Navigateurs WebKit : Chrome, Edge, Safari, Brave) */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

/* 3. Poignée (Thumb) stylisée & animée */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent), #a855f7);
  background-size: 100% 300%;
  border-radius: 999px;
  border: 2px solid var(--bg-color);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scrollThumbShift 8s ease infinite alternate;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #67e8f9, var(--primary), var(--accent));
  border-width: 1px;
  box-shadow: 
    0 0 14px var(--primary-glow),
    0 0 4px var(--primary);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #fff, var(--primary));
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
}

::-webkit-scrollbar-button {
  display: none;
}

@keyframes scrollThumbShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}



/* On supprime les marges extérieures pour éviter les trous, mais on garde le padding du header */
header,
.navbar {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Le ticker et le main n'ont pas de marges résiduelles */
.market-ticker,
main,
.main-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

/* Restaure un espacement élégant et aéré pour la barre de navigation */
.navbar {
  padding: 1.25rem 2.5rem !important;
}

/* Décor d'arrière-plan partagé par les pages */
.glow-bg {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-bg.top-left {
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.35;
}

.glow-bg.top-right {
  top: 10%;
  right: -100px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: 0.25;
}

.glow-bg.bottom-center {
  bottom: 15%;
  left: 30%;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  opacity: 0.15;
}

/* Décor d'arrière-plan pour la page d'accueil */

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.85rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--card-border);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  white-space: nowrap;
}

.nav-links a {
  margin: 0 0.55rem;
}

@keyframes scrollProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), #a855f7);
  transform-origin: left;
  transform: scaleX(0);
  animation: scrollProgress auto linear;
  animation-timeline: scroll();
  z-index: 9999;
  box-shadow: 0 0 10px var(--primary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-symbol img {
  height: 28px;
  width: auto;
  vertical-align: middle;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-main);
}

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

/* Boutons */
.btn-ghost {
  color: var(--text-main);
  text-decoration: none;
  margin-right: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.user-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.user-profile-link:hover,
.user-profile-link:focus-visible {
  color: var(--text-main);
}

.user-avatar {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
}

.user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--primary-glow);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.22);
  
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.65), 
              0 0 8px rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
  filter: brightness(0.95);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-large {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
}

/* Ticker boursier */
/* Ticker boursier : aéré et centré verticalement */
.market-ticker {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 18%, transparent 82%, rgba(99, 102, 241, 0.08)),
    rgba(14, 18, 29, 0.94);
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0 !important; /* Ajusté : ni trop écrasé, ni trop épais */
  position: sticky;
  top: 72px;
  z-index: 30;
}
.market-ticker::before,
.market-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 11rem;
  z-index: 2;
  pointer-events: none;
}
.market-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(14, 18, 29, 0.98), transparent);
}
.market-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(14, 18, 29, 0.98), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: scrollTicker 18s linear infinite;
  animation-play-state: running;
  will-change: transform;
}
.ticker-group {
  display: flex;
  flex-shrink: 0;
}
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}
.ticker-item {
  position: relative;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 1.2rem;
  padding: 0 2rem;
  letter-spacing: 0.01em;
}
.ticker-item .sym { font-weight: 700; color: var(--text-main); }
.ticker-item .val { color: var(--text-muted); }
.ticker-item .trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  letter-spacing: 0;
}
.ticker-item .trend::before {
  font-size: 0.9rem;
  line-height: 1;
}
.ticker-item .trend.up {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}
.ticker-item .trend.up::before {
  content: "\2197";
}
.ticker-item .trend.down {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.2);
}
.ticker-item .trend.down::before {
  content: "\2198";
}

@media (max-width: 980px) {
  .market-ticker {
    position: relative;
    top: auto;
  }
}

/* Footer centré */
footer {
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 8%;
  background: #04060a;
  position: relative;
  z-index: 10;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 650px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .navbar {
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1rem 1.25rem !important;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .user-profile-link {
    margin-right: 0;
  }

  /* --- SWITCH MODE SOMBRE / CLAIR --- */
.theme-switch-container {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-slider .icon-sun {
  color: #fbbf24;
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.theme-slider .icon-moon {
  color: #38bdf8;
  width: 14px;
  height: 14px;
  opacity: 1;
  transition: opacity 0.2s;
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #f8fafc;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .theme-slider {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

input:checked + .theme-slider:before {
  transform: translateX(24px);
  background-color: #0f172a;
}

input:checked + .theme-slider .icon-sun {
  opacity: 1;
}

input:checked + .theme-slider .icon-moon {
  opacity: 0.5;
}

/* --- PANNEAU DE RECHERCHE --- */
.nav-search-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.nav-search-btn:hover {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.1);
}

.desjardins-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 16, 28, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px 0 40px;
}

.desjardins-search-panel.active {
  transform: translateY(0);
}

.search-panel-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.search-field-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-radius: 40px;
  padding: 8px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.search-field-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 1.25rem;
  font-family: inherit;
  padding-right: 40px;
}

.btn-clear-input {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.btn-clear-input.visible {
  display: block;
}

.search-icon-inside {
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-panel {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close-panel:hover {
  color: #38bdf8;
}

.search-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.popular-searches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item, .result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.popular-item:hover, .result-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  transform: translateX(4px);
}

.popular-item svg, .result-item svg {
  color: #64748b;
}

.popular-item:hover svg, .result-item:hover svg {
  color: #38bdf8;
}

.result-item-badge {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(51, 65, 85, 0.6);
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 6px;
}

@media (max-width: 700px) {
  .user-profile-name,
  .nav-actions > .btn-ghost {
    display: none;
  }

  .navbar {
    gap: 0.5rem;
  }

  .nav-search-btn {
    margin-right: 0;
  }
}

/* --- STYLES GLOBAUX MODE CLAIR --- */
html.light-mode,
html.light-mode body {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
}

html.light-mode .glow-bg {
  opacity: 0.15;
}

html.light-mode .navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

html.light-mode .logo {
  color: #0f172a !important;
}

html.light-mode .nav-links a {
  color: #475569;
}

html.light-mode .nav-links a:hover {
  color: #0284c7;
}

html.light-mode .nav-search-btn {
  color: #64748b;
}

html.light-mode .nav-search-btn:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
}

html.light-mode .user-profile-name {
  color: #64748b !important;
}

html.light-mode .btn-ghost {
  color: #475569;
  border-color: #cbd5e1;
}

html.light-mode .btn-ghost:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.light-mode .market-ticker {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

html.light-mode .ticker-item {
  color: #334155;
}

html.light-mode .desjardins-search-panel {
  background: rgba(248, 250, 252, 0.98);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

html.light-mode .search-field-box {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

html.light-mode .search-field-box input {
  color: #0f172a;
}

html.light-mode .popular-item, html.light-mode .result-item {
  color: #334155;
}

html.light-mode .popular-item:hover, html.light-mode .result-item:hover {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

/* --- SWITCH MODE SOMBRE / CLAIR --- */
.theme-switch-container {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-slider .icon-sun {
  color: #fbbf24;
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.theme-slider .icon-moon {
  color: #38bdf8;
  width: 14px;
  height: 14px;
  opacity: 1;
  transition: opacity 0.2s;
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #f8fafc;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .theme-slider {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

input:checked + .theme-slider:before {
  transform: translateX(24px);
  background-color: #0f172a;
}

input:checked + .theme-slider .icon-sun {
  opacity: 1;
}

input:checked + .theme-slider .icon-moon {
  opacity: 0.5;
}

/* --- STYLES LIGHT MODE (VARIABLES & OVERRIDES) --- */
html.light-mode {
  background-color: #f1f5f9;
  color: #0f172a;
}

html.light-mode body {
  background-color: #f1f5f9;
  color: #1e293b;
}

html.light-mode .glow-bg {
  opacity: 0.15;
}

html.light-mode .navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

html.light-mode .logo {
  color: #0f172a !important;
}

html.light-mode .nav-links a {
  color: #475569;
}

html.light-mode .nav-links a:hover {
  color: #0284c7;
}

html.light-mode .nav-search-btn {
  color: #64748b;
}

html.light-mode .nav-search-btn:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
}

html.light-mode .user-profile-name {
  color: #64748b !important;
}

html.light-mode .btn-ghost {
  color: #475569;
  border-color: #cbd5e1;
}

html.light-mode .btn-ghost:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.light-mode .market-ticker {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

html.light-mode .ticker-item {
  color: #334155;
}

html.light-mode .desjardins-search-panel {
  background: rgba(248, 250, 252, 0.98);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

html.light-mode .search-field-box {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

html.light-mode .search-field-box input {
  color: #0f172a;
}

html.light-mode .popular-item, html.light-mode .result-item {
  color: #334155;
}

html.light-mode .popular-item:hover, html.light-mode .result-item:hover {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

/* Bouton Loupe dans la Navbar */
.nav-search-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.nav-search-btn:hover {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.1);
}

/* Panneau Dropdown Déroulant Style Desjardins (Dark Glow) */
.desjardins-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 16, 28, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px 0 40px;
}

.desjardins-search-panel.active {
  transform: translateY(0);
}

.search-panel-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.search-field-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-radius: 40px;
  padding: 8px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.search-field-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 1.25rem;
  font-family: inherit;
  padding-right: 40px;
}

.btn-clear-input {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.btn-clear-input.visible {
  display: block;
}

.search-icon-inside {
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-panel {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close-panel:hover {
  color: #38bdf8;
}

.search-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.popular-searches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item, .result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.popular-item:hover, .result-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  transform: translateX(4px);
}

.popular-item svg, .result-item svg {
  color: #64748b;
}

.popular-item:hover svg, .result-item:hover svg {
  color: #38bdf8;
}

.result-item-badge {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(51, 65, 85, 0.6);
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 6px;
}
}
