  *,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

  :root {
    --bg: #191127;
    --surface: #23133a;
    --surface-2: #1f1232;
    --surface-3: #2a1647;
    --border: #3a1c63;
    --text: #e8e9ed;
    --text-dim: #d6d6d6;
    --text-muted: #d6d6d6;
    --accent: #883CF0;
    --accent-dim: #2a1647;
    --accent-2: #7c3aed;
    --accent-3: #c084fc;
    --danger: #fb7185;
    --warning: #fbbf24;
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Instrument Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  html { scroll-behavior: smooth }

  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ─── NOISE GRAIN ─── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
  }

  /* ─── AMBIENT GLOW ─── */
  .ambient {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
  }
  .ambient-1 { top: -200px; left: -100px; background: var(--accent); }
  .ambient-2 { bottom: -200px; right: -100px; background: var(--accent-2); }
  .ambient-3 { top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--accent-3); opacity: 0.04; }

  /* ─── LAYOUT ─── */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }

  /* ─── HEADER ─── */
  header {
    padding: 40px 0 0;
    text-align: center;
    animation: fadeDown 0.7s ease;
  }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .logo-wrap img{
	width:150px;
	vertical-align: middle;
}

  .logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
  }

  .logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(181, 110, 231, 0.2);
  }

  h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 400;
    letter-spacing: -0.02em;
  }
  h1 span { color: var(--accent); }

  .tagline {
    color: var(--text-dim);
    font-size: 15px;
    margin-top: 4px;
    letter-spacing: 0.04em;
  }

  /* ─── SEARCH BOX ─── */
  .search-section {
    margin: 36px auto 0;
    max-width: 720px;
    animation: fadeUp 0.7s ease 0.15s both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .search-box {
    position: relative;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim), 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s;
  }

  .search-box:focus-within .search-icon { color: var(--accent); }

  .search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 18px 18px 18px 50px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
  }

  .search-input::placeholder { color: var(--text-muted); }

  .search-btn {
    padding: 12px 28px;
    margin: 8px;
    background: linear-gradient(135deg, var(--accent), #b29dce);
    border: none;
    border-radius: 10px;
    color: #0a0b0f;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.3s;
    letter-spacing: 0.03em;
  }
  .search-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(179, 110, 231, 0.3);
  }

  /* ─── FILTERS ─── */
  .filters {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.7s ease 0.3s both;
  }

  .filter-chip {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
  }

  .filter-chip:hover {
    border-color: var(--accent);
    color: var(--text);
  }

  .filter-chip.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
  }

  /* ─── STATS BAR ─── */
  .stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 18px;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .stats-info {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
  }
  .stats-info strong { color: var(--accent); font-weight: 500; }

  .sort-select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
  }
  .sort-select:focus { border-color: var(--accent); }

  /* ─── RESULTS ─── */
  .results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 80px;
  }

  .result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s ease both;
  }

  .result-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    transform-origin: bottom;
  }

  .result-card:hover {
    border-color: #3a1c63;
    background: var(--surface-2);
    transform: translateX(6px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  }
  .result-card:hover::before { transform: scaleY(1); }

  @keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .result-url {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .result-url .lock { font-size: 10px; }

  .result-title {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s;
  }
  .result-card:hover .result-title { color: var(--accent); }

  .result-snippet {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .result-snippet em {
    color: var(--accent);
    font-style: normal;
    background: var(--accent-dim);
    padding: 1px 4px;
    border-radius: 3px;
  }

  .result-meta {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .meta-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
  }

  .meta-tag .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
  }
  .dot.green { background: var(--accent); }
  .dot.blue { background: var(--accent-2); }
  .dot.purple { background: var(--accent-3); }
  .dot.yellow { background: var(--warning); }

  /* ─── EXPANDED CARD ─── */
  .result-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1), margin-top 0.3s;
    margin-top: 0;
  }

  .result-card.expanded .result-expanded {
    max-height: 500px;
    margin-top: 18px;
  }

  .expanded-content {
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .expanded-stat {
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
  }

  .expanded-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }

  .expanded-stat-value {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
  }

  .relevance-bar-track {
    width: 100%;
    height: 6px;
    background: var(--surface-3);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
  }

  .relevance-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
  }

  /* ─── PAGINATION ─── */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0 60px;
  }

  .page-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
    display: grid;
    place-items: center;
  }

  .page-btn:hover {
    border-color: var(--accent);
    color: var(--text);
  }

  .page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
  }

  /* ─── LIVE TICKER ─── */
  .ticker {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    z-index: 100;
    overflow: hidden;
  }

  .ticker-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
  }

  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .ticker-item {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .ticker-item .pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease infinite;
  }

  @keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  /* ─── EMPTY STATE ─── */
  .empty-state {
    text-align: center;
    padding: 80px 20px;
  }

  .empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
  }

  .empty-state p {
    color: var(--text-muted);
    font-size: 15px;
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 640px) {
    .result-card { padding: 18px 20px; }
    .expanded-content { grid-template-columns: 1fr; }
    .stats-bar { flex-direction: column; align-items: flex-start; }
  }