/* ============================================================
   TokenCheckr CSS (v10.1 True Clear Glass Isolation Build)
   ------------------------------------------------------------
   ✅ Fully transparent frosted-glass cards (no white tint)
   ✅ Isolated blur – affects cards only
   ✅ Smooth fade-in + mobile hover protection
   ✅ Perfect text contrast & depth sheen
   ============================================================ */

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(180deg, #f4f4f4 0%, #e8eaed 100%);
  overflow-x: hidden;
}

/* ============================================================
   📈 TICKER STYLES
   ============================================================ */

.ticker-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 25px;
  overflow: hidden;
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 3;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

.ticker-row {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  flex-wrap: nowrap;
  min-width: max-content;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  flex-shrink: 0;
  height: 36px;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.ticker-icon { height: 22px; width: 22px; object-fit: contain; flex-shrink: 0; }
.ticker-symbol { font-weight: 600; color: #000; }
.ticker-price { color: #000; font-size: 14px; margin-left: 6px; font-weight: 500; }
.ticker-change { font-size: 14px; margin-left: 6px; font-weight: 600; transition: color 0.3s ease; }
.ticker-change.positive { color: #0f9d58; }
.ticker-change.negative { color: #d93025; }

.registry-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.registry-text { color: #666; font-size: 13px; }
.registry-icon { height: 22px; width: 22px; object-fit: contain; flex-shrink: 0; }

.ticker-container::before,
.ticker-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.ticker-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, transparent 100%);
}
.ticker-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9) 0%, transparent 100%);
}

.ticker-container:not(:empty) {
  opacity: 1 !important;
  transition: opacity 0.3s ease-in;
}

@media (max-width: 768px) {
  .ticker-container { height: 48px; padding: 8px 15px; }
  .ticker-row { gap: 40px; }
  .ticker-item { font-size: 14px; }
  .ticker-icon, .registry-icon { height: 20px; width: 20px; }
}

/* ============================================================
   🔍 LIVE SEARCH + DROPDOWN
   ============================================================ */

.search-wrapper { position: relative; display: inline-block; width: 100%; z-index: 100000; }

#liveSearchResults {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 9999;
  display: none;
  animation: fadeInBlur 0.25s ease-in-out;
}
#liveSearchResults.active, #liveSearchResults.show { display: block !important; }

@keyframes fadeInBlur {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   🧩 TOKEN CARD (True Clear Glass — Isolated)
   ============================================================ */

.token-card {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  width: 100%;
  max-width: 420px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.4s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  opacity: 0;
  transform: translateY(6px);
  animation: cardFadeIn 0.4s ease forwards;
}

/* Light reflection overlay */
.token-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 100%);
}

/* Subtle top highlight */
.token-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.token-card:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Disable hover jump on touch devices */
@media (hover: none) {
  .token-card:hover {
    transform: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  }
}

@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   🧩 CARD CONTENT
   ============================================================ */

.token-header {
  width: 100%;
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  word-break: break-all;
}
.reg-id { display: flex; align-items: center; gap: 6px; }

.copy-icon {
  font-size: 14px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}
.copy-icon:hover { color: #000; }

.token-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 10px;
}

.token-body { width: 100%; font-size: 14px; color: #000; margin-bottom: 16px; }
.token-line { margin: 4px 0; display: flex; justify-content: space-between; align-items: center; }
.token-line strong { flex: 0 0 auto; margin-right: 8px; color: #333; }
.token-line span { flex: 1 1 auto; text-align: right; color: #000; }

.badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.badge.verified   { background: #1da1f2; color: #fff; }
.badge.caution    { background: #fff3cd; color: #946c00; }
.badge.fail       { background: #fdecea; color: #b71c1c; }
.badge.unverified { background: #e0e0e0; color: #000; }

.token-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.copy-reg-id,
.share-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  border: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.copy-reg-id { background: #000; color: #fff; }
.copy-reg-id:hover { background: rgba(0,0,0,0.85); color: #fff; }

.share-btn { background: #1da1f2; color: #fff; text-decoration: none; }
.share-btn:hover { background: #0d8de0; color: #fff; }

/* ============================================================
   📱 RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .token-card { max-width: 100%; padding: 18px; }
  .token-body { font-size: 13px; }
  .copy-reg-id, .share-btn { font-size: 12px; padding: 7px 12px; }
}

/* ============================================================
   🔔 COPY TOAST
   ============================================================ */

.copy-icon, .copy-reg-id {
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  pointer-events: all !important;
}
.copy-icon:hover, .copy-reg-id:hover { opacity: 0.7 !important; }

.copy-toast {
  position: fixed;
  pointer-events: none;
  font-family: inherit;
  text-align: center;
  opacity: 0;
  animation: fadeToast 1.5s ease forwards;
}
@keyframes fadeToast {
  0% { opacity: 0; transform: translateY(6px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}
