/* =================================== */
/* search.css */
/* =================================== */

/* Search Bar */
  .ze-search-wrap {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
  }

  .ze-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    pointer-events: none;
  }

  .ze-wrap .ze-search-input,
  .ze-wrap input.ze-search-input {
    width: 100% !important;
    padding: 14px 20px 14px 52px !important;
    border-radius: 80px !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(255,255,255,0.08) !important;
    color: #FFFFFF !important;
    font-family: 'Dinpro', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: border-color 0.2s, background 0.2s !important;
  }

  .ze-wrap .ze-search-input::placeholder {
    color: rgba(255,255,255,0.45);
  }

  .ze-wrap .ze-search-input:focus {
    border-color: #00E5AA !important;
    background: rgba(255,255,255,0.08) !important;
  }

  .ze-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #FFFFFF;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
  }

  .ze-search-clear.ze-visible {
    display: flex;
  }

  
/* Algolia Search Dropdown */
  .ze-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    max-width: 680px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    padding: 8px 0;
  }
  .ze-search-dropdown.ze-visible { display: block; }

  .ze-search-dropdown::-webkit-scrollbar { width: 6px; }
  .ze-search-dropdown::-webkit-scrollbar-track { background: transparent; }
  .ze-search-dropdown::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

  .ze-sd-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .ze-sd-item:hover { background: rgba(0,180,130,0.06); }

  .ze-sd-icon-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .ze-sd-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #F0F1F5;
    border: 1px solid rgba(0,0,0,0.06);
  }
  .ze-sd-icon-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bitstream Swiss 721', sans-serif;
    font-weight: 900;
    font-size: 14px;
    color: #FFFFFF;
  }
  .ze-sd-flag {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    background: #FFFFFF;
  }

  .ze-sd-info {
    flex: 1;
    min-width: 0;
  }
  .ze-sd-symbol {
    font-weight: 700;
    font-size: 15px;
    color: #1A1A2E;
    line-height: 1.3;
  }
  .ze-sd-name {
    font-size: 13px;
    color: rgba(0,0,0,0.5);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }
  .ze-sd-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .ze-sd-badge-stock { background: rgba(0,180,130,0.1); color: #007A5A; }
  .ze-sd-badge-etf { background: rgba(123,97,255,0.1); color: #5B47B0; }

  .ze-sd-empty {
    text-align: center;
    padding: 32px 20px;
    color: rgba(0,0,0,0.4);
    font-size: 14px;
  }
