/* ==========================================================================
   KUTNI SEARCH PORTAL - Elite Fintech Black & Orange UI
   Developed by Samin Sami (https://saminbhai.netlify.app)
   ========================================================================== */

:root {
  /* Core Fintech Color Tokens */
  --bg-black: #07080b;
  --bg-surface: #0e1017;
  --bg-card: rgba(16, 19, 28, 0.78);
  --bg-card-hover: rgba(22, 26, 38, 0.92);
  --bg-header: rgba(9, 11, 16, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Fintech Orange & Amber Accents */
  --orange-primary: #ff6b00;
  --orange-glow: rgba(255, 107, 0, 0.35);
  --orange-subtle: rgba(255, 107, 0, 0.12);
  --orange-hover: #ff8533;
  --orange-active: #e65c00;
  --amber-gold: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);

  /* Status Colors */
  --emerald-green: #10b981;
  --crimson-red: #ef4444;
  --neon-cyan: #06b6d4;

  /* Typography & Slate Scale */
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-dark: #334155;

  /* Fintech Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-orange: rgba(255, 107, 0, 0.3);
  --border-orange-bright: rgba(255, 107, 0, 0.75);

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 36px -8px rgba(255, 107, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(255, 107, 0, 0.35);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast: 0.15s ease;
  --trans-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-black);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Ambient Glow Background Elements */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
}

.glow-bottom {
  bottom: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-primary);
}

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

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

.text-orange { color: var(--orange-primary) !important; }
.text-amber { color: var(--amber-gold) !important; }
.text-green { color: var(--emerald-green) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ==========================================================================
   HEADER & TELEMETRY HUD
   ========================================================================== */
.fintech-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--trans-smooth);
}

.header-inner {
  max-width: 1720px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-trigger-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--trans-smooth);
}

.icon-trigger-btn:hover {
  color: var(--orange-primary);
  background: var(--orange-subtle);
  border-color: var(--border-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--orange-glow);
}

/* Brand Identity */
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lion-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(255, 107, 0, 0.45));
  transition: transform var(--trans-smooth);
}

.brand-lion-logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text-container {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-pure);
  line-height: 1.1;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Telemetry Ticker */
.fintech-telemetry-ticker {
  max-width: 1720px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-primary);
  display: inline-block;
}

.live-pulse {
  animation: fintechPulse 2s infinite ease-in-out;
}

@keyframes fintechPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.ip-badge {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--orange-subtle);
  border: 1px solid var(--border-orange);
  color: var(--text-main);
  transition: all var(--trans-fast);
}

.ip-badge:hover {
  background: var(--orange-primary);
  color: #000;
  font-weight: 600;
}

/* ==========================================================================
   MAIN LAYOUT & SEARCH ZONE
   ========================================================================== */
.main-layout {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 24px 60px;
  flex: 1;
  position: relative;
  z-index: 10;
}

/* Search Command Zone */
.search-command-zone {
  max-width: 960px;
  margin: 0 auto 36px;
}

.search-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.mode-pills {
  display: flex;
  gap: 8px;
  background: rgba(14, 16, 23, 0.85);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mode-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--trans-smooth);
}

.mode-pill.active {
  background: var(--orange-primary);
  color: #000;
  box-shadow: 0 4px 14px var(--orange-glow);
}

.mode-pill:hover:not(.active) {
  color: var(--text-pure);
  background: var(--bg-glass);
}

.quick-engines {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.engine-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: 4px;
}

.engine-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--trans-fast);
}

.engine-chip:hover {
  border-color: var(--border-orange);
  color: var(--orange-primary);
  background: var(--orange-subtle);
}

.engine-chip.active {
  border-color: var(--orange-primary);
  background: var(--orange-subtle);
  color: var(--orange-primary);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.25);
}

/* Fintech Search Input Bar */
.search-wrapper {
  position: relative;
  width: 100%;
}

.fintech-search-bar {
  display: flex;
  align-items: center;
  background: rgba(15, 18, 26, 0.92);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 8px 12px 8px 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--trans-smooth);
}

.fintech-search-bar:focus-within,
.search-wrapper.input-active .fintech-search-bar {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 4px var(--orange-glow), 0 12px 30px rgba(0, 0, 0, 0.6);
  background: rgba(18, 22, 32, 0.98);
}

.search-engine-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  background: var(--orange-subtle);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  margin-right: 12px;
}

.engine-prefix {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange-primary);
}

.search-input {
  flex: 1;
  background: transparent;
  color: var(--text-pure);
  font-size: 1.05rem;
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--trans-smooth);
}

.clear-btn {
  color: var(--text-dim);
  opacity: 0;
  pointer-events: none;
}

.search-wrapper.has-input .clear-btn,
.fintech-search-bar.has-input .clear-btn {
  opacity: 1;
  pointer-events: auto;
}

.clear-btn:hover {
  color: var(--crimson-red);
  background: rgba(239, 68, 68, 0.1);
}

.execute-btn {
  background: var(--orange-primary);
  color: #000;
  font-weight: 700;
}

.execute-btn:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 14px var(--orange-glow);
  transform: scale(1.05);
}

/* Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(14, 17, 25, 0.96);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  z-index: 50;
  overflow: hidden;
  max-height: 380px;
  display: none;
}

.search-wrapper.input-active .search-suggestions-dropdown {
  display: block;
}

.help-list {
  display: flex;
  flex-direction: column;
}

.searchSources {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.searchSources:hover, .searchSources.selected {
  background: var(--orange-subtle);
  color: var(--orange-primary);
}

.searchSources span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange-primary);
  font-size: 0.8rem;
  background: rgba(255, 107, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   WIKIPEDIA & KNOWLEDGE CARDS (from newUI)
   ========================================================================== */
.results-container {
  max-width: 1400px;
  margin: 0 auto 40px;
  background: rgba(14, 17, 26, 0.85);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.results-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-pure);
}

.close-results-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--trans-fast);
}

.close-results-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--crimson-red);
  border-color: rgba(239, 68, 68, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(20, 24, 36, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-smooth);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--orange-primary);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 160px;
  background: #000;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-title {
  padding: 14px 16px 6px;
}

.card-title h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.3;
}

.card-text {
  padding: 0 16px 16px;
  flex: 1;
}

.card-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  padding: 12px 16px;
  background: rgba(10, 12, 18, 0.5);
  border-top: 1px solid var(--border-subtle);
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-primary);
  letter-spacing: 0.05em;
}

.card-actions a:hover {
  color: var(--orange-hover);
  gap: 9px;
}

/* ==========================================================================
   CATEGORY TABS & FLUID FINTECH GRID
   ========================================================================== */
.category-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.tabs-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--trans-smooth);
}

.cat-tab:hover {
  color: var(--text-pure);
  border-color: var(--border-orange);
  background: var(--orange-subtle);
}

.cat-tab.active {
  background: var(--orange-primary);
  color: #000;
  font-weight: 700;
  border-color: var(--orange-primary);
  box-shadow: 0 4px 14px var(--orange-glow);
}

.category-meta-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.expand-collapse-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.collapse-action-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--trans-smooth);
}

.collapse-action-btn:hover {
  color: var(--orange-primary);
  border-color: var(--border-orange);
  background: var(--orange-subtle);
  box-shadow: 0 2px 10px var(--orange-glow);
}

.total-links-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-primary);
  background: var(--orange-subtle);
  border: 1px solid var(--border-orange);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Main Fintech Cards Grid Layout */
.fintech-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  list-style: none;
}

/* Responsive Grid Tier Adjustments */
@media (min-width: 1440px) {
  .fintech-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1800px) {
  .fintech-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Category Card Styling with Fluid Hover Effects */
.category-column-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 480px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--trans-smooth), border-color var(--trans-smooth), box-shadow var(--trans-smooth), background-color var(--trans-smooth), height var(--trans-smooth);
  position: relative;
  overflow: hidden;
}

.category-column-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--amber-gold));
  opacity: 0.8;
  transition: opacity var(--trans-smooth), height var(--trans-smooth);
}

.category-column-card:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: var(--border-orange-bright);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.category-column-card:hover::before {
  height: 4px;
  opacity: 1;
}

.category-column-card.is-collapsed {
  height: auto !important;
  min-height: unset;
}

.category-column-card.is-collapsed .category-links-scroll {
  display: none !important;
}

/* Category Card Header */
.category-card-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 13, 19, 0.4);
}

.cat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.card-collapse-btn:hover {
  background: var(--orange-subtle);
  color: var(--orange-primary);
  border-color: var(--border-orange);
}

.category-column-card.is-collapsed .card-collapse-btn i {
  transform: rotate(180deg);
}

.cat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--orange-subtle);
  border: 1px solid var(--border-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--orange-primary);
  color: var(--orange-primary);
}

.cat-icon-box svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cat-title-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.02em;
}

.cat-badge-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Category Links Scroll List */
.category-links-scroll {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 6px 0;
}

.menu-link.container {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  position: relative;
  transition: all var(--trans-fast);
}

.menu-link-item:hover {
  background: rgba(255, 107, 0, 0.08);
}

.drag-handle {
  font-family: var(--font-mono);
  color: var(--text-dark);
  font-size: 0.8rem;
  cursor: grab;
  margin-right: 8px;
  opacity: 0.4;
  transition: opacity var(--trans-fast);
  user-select: none;
}

.menu-link-item:hover .drag-handle {
  opacity: 1;
  color: var(--orange-primary);
}

.menu-link-item a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 450;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-link-item a label {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-link-item:hover a {
  color: var(--text-pure);
}

.menu-link-item:hover a label {
  color: var(--orange-primary);
  font-weight: 500;
}

/* Tooltip Badges */
.tooltipwrap {
  margin-left: 6px;
}

.tooltiptext {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.menu-link-item:hover .tooltiptext {
  color: var(--amber-gold);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.remove-menu-item {
  color: var(--text-dim);
  font-size: 1rem;
  margin-left: 8px;
  cursor: pointer;
  opacity: 0;
  transition: all var(--trans-fast);
}

.menu-link-item:hover .remove-menu-item {
  opacity: 1;
}

.remove-menu-item:hover {
  color: var(--crimson-red);
}

/* Hide Icons mode */
.hide-icons .cat-icon-box {
  display: none;
}

/* ==========================================================================
   DRAWERS & MODAL DIALOGS
   ========================================================================== */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 200;
  top: 0;
  background: rgba(12, 14, 21, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  overflow-x: hidden;
  transition: width var(--trans-smooth);
  display: flex;
  flex-direction: column;
}

#mySidenav {
  left: 0;
  border-right: 1px solid var(--border-subtle);
}

.custom-links-drawer, .settings-drawer {
  right: 0;
  border-left: 1px solid var(--border-subtle);
}

.drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo {
  height: 28px;
  width: auto;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-pure);
}

.closebtn {
  font-size: 1.6rem;
  color: var(--text-dim);
  line-height: 1;
  transition: color var(--trans-fast);
}

.closebtn:hover {
  color: var(--orange-primary);
}

.drawer-section-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange-primary);
  padding: 14px 20px 6px;
  text-transform: uppercase;
}

.drawer-links-container, .drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 4px;
  transition: all var(--trans-fast);
}

.drawer-link i {
  margin-right: 10px;
  font-size: 0.95rem;
}

.drawer-link:hover {
  background: var(--orange-subtle);
  color: var(--orange-primary);
}

.drawer-link.highlight-link {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--border-orange);
  font-weight: 600;
}

.drawer-link.highlight-link:hover {
  background: var(--orange-primary);
  color: #000;
}

.hotkey-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-dim);
}

/* Forms & Fintech Controls */
.fintech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--trans-smooth);
}

.fintech-btn:hover {
  border-color: var(--border-orange);
  color: var(--orange-primary);
  background: var(--orange-subtle);
  box-shadow: 0 4px 14px var(--orange-glow);
}

.fintech-btn.primary {
  background: var(--orange-primary);
  color: #000;
  border-color: var(--orange-primary);
  font-weight: 700;
}

.fintech-btn.primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 16px var(--orange-glow);
}

.fintech-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--crimson-red);
}

.fintech-btn.danger:hover {
  background: var(--crimson-red);
  color: #fff;
  border-color: var(--crimson-red);
}

.fintech-btn.full-width {
  width: 100%;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.form-group input, .fintech-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
}

.form-group input:focus, .fintech-select:focus {
  border-color: var(--orange-primary);
  background: rgba(0, 0, 0, 0.8);
}

.add-link-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
}

.add-link-form.active {
  max-height: 320px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Custom Links List */
.custom-links-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.custom-links-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.custom-links-list li:hover {
  background: var(--bg-glass);
}

.remove-custom-link {
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
}

.remove-custom-link:hover {
  color: var(--crimson-red);
}

/* Settings Items */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.setting-text {
  display: flex;
  flex-direction: column;
}

.setting-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.setting-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--orange-primary);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.settings-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.file-btn-label {
  cursor: pointer;
}

/* Global Overlay */
.overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 150;
}

/* Modals */
.fintech-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  width: 90%;
  max-width: 550px;
}

.modal-dialog {
  background: rgba(15, 18, 28, 0.98);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pure);
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-dim);
}

.modal-close:hover {
  color: var(--orange-primary);
}

.modal-body {
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-height: 400px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
}

/* Secret Vault Links */
.secret-vault-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.secret-link a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-main);
  transition: all var(--trans-fast);
}

.secret-link a:hover {
  background: var(--orange-subtle);
  border-color: var(--border-orange);
  color: var(--orange-primary);
}

/* Scratchpad Widget */
.fintech-notes-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  height: 260px;
  background: rgba(14, 17, 26, 0.96);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateY(320px);
  transition: transform var(--trans-smooth);
}

.fintech-notes-dock.active {
  transform: translateY(0);
}

.notes-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.notes-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-close {
  color: var(--text-dim);
  font-size: 1.2rem;
}

.notes-textarea {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  resize: none;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.fintech-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
}

.footer-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-credits {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.dev-link {
  color: var(--orange-primary);
  font-weight: 600;
}

.dev-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .fintech-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-lion-logo {
    height: 34px;
  }

  .fintech-telemetry-ticker {
    font-size: 0.7rem;
    gap: 10px;
    padding: 6px 16px;
  }

  .main-layout {
    padding: 20px 16px 40px;
  }

  .search-command-zone {
    margin-bottom: 24px;
  }

  .fintech-category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-column-card {
    height: 400px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .fintech-notes-dock {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 16px;
  }
}
