/* ============================================================
   uniq.down-web.com - compact header, donate card, drop zone
   v20260925. Loaded after styles.css and dwx.css; everything is
   scoped to the new .uh-* markup, so removing this file and the
   markup restores the previous look.
   ============================================================ */

:root {
  --uh-navy: #0f2a4a;
  --uh-ink: #1e293b;
  --uh-muted: #64748b;
  --uh-blue: #2563eb;
  --uh-blue-soft: #eef4ff;
  --uh-line: rgba(15, 23, 42, 0.09);
  --uh-coral: #ff7a45;
  --uh-coral-soft: #fff1ea;
}

/* ── Header: one compact row ─────────────────────────────── */
.site-header.uh {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--uh-line);
  box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.55);
}

.uh-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.uh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--uh-navy);
  text-decoration: none;
}
.uh-brand:hover { color: var(--uh-navy); text-decoration: none; }

.uh-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(140deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.7);
}
.uh-mark svg { width: 19px; height: 19px; }

.uh-name {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.uh-name small {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--uh-muted);
}

/* The family menu: the same five services on every site, the current one
   highlighted. uniq-ui.js / dw-ui.js tighten it step by step when it gets
   crowded (.uh-bar--tight, --noicons) and fold it only as a last resort. */
.uh-nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  min-width: 0;
}
.uh-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.uh-nav a i { color: var(--uh-blue); font-size: 0.85em; }
.uh-nav a:hover { background: #f1f6ff; color: #1d4ed8; text-decoration: none; }
.uh-nav a.is-active {
  background: var(--uh-blue-soft);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.uh-bar--tight { gap: 12px; }
.uh-bar--tight .uh-nav { gap: 0; }
.uh-bar--tight .uh-nav a { padding: 7px 9px; font-size: 0.84rem; }
.uh-bar--noicons .uh-nav a i { display: none; }
.uh-bar--compact .uh-nav { display: none; }
.uh-bar--compact .uh-more { display: block; }

.uh-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Dropdowns (language, other services): <details>, no library. */
.uh-dd { position: relative; }
.uh-dd > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--uh-line);
  border-radius: 10px;
  background: #fff;
  color: var(--uh-navy);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.uh-dd > summary::-webkit-details-marker { display: none; }
.uh-dd > summary:hover { border-color: #b8cbeb; background: #fbfdff; }
.uh-dd[open] > summary,
.uh-dd > summary:focus-visible {
  outline: none;
  border-color: #93b4f5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.uh-dd > summary svg { width: 16px; height: 16px; }
.uh-dd > summary .uh-chev { width: 14px; height: 14px; color: var(--uh-muted); transition: transform 0.15s ease; }
.uh-dd[open] > summary .uh-chev { transform: rotate(180deg); }
.uh-dd > summary img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.uh-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: 14px;
  box-shadow: 0 22px 44px -16px rgba(15, 23, 42, 0.35);
}
.uh-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--uh-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.uh-menu a:hover { background: #f3f7ff; color: #1d4ed8; }
.uh-menu a.is-active { background: var(--uh-blue-soft); color: #1d4ed8; }
.uh-menu a i { width: 18px; text-align: center; color: var(--uh-blue); }
.uh-menu img {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}
.uh-menu .uh-code { margin-left: auto; font-size: 0.72rem; font-weight: 800; color: var(--uh-muted); }

.uh-more { display: none; }

.uh-tools .theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border-color: var(--uh-line);
  background: #fff;
}

/* Page title: the H1 scrolls with the page instead of riding in the bar. */
.uh-title { padding-top: 22px; text-align: center; }
.uh-title h1 {
  max-width: 30ch;
  margin: 0 auto;
  color: var(--uh-navy);
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 641px) {
  .uh-title h1 { max-width: 44ch; }
}

/* The Telegram card sits right under the title and right above the banner:
   an empty message line and stacked margins left ~55 px of blank space. */
#dwAuthMessage:empty { display: none; }
.site-header.uh ~ #dw-auth-gate { margin-top: 14px; margin-bottom: 0; }
.site-header.uh ~ .site-content .banner_head { margin-top: 16px; }

@media (max-width: 959.98px) {
  .uh-nav { display: none; }
  .uh-more { display: block; }
}

@media (max-width: 640px) {
  .uh-bar { min-height: 56px; gap: 10px; }
  .uh-mark { width: 30px; height: 30px; border-radius: 9px; }
  .uh-mark svg { width: 17px; height: 17px; }
  .uh-name { font-size: 1rem; }
  .uh-tools { gap: 6px; }
  .uh-dd > summary { height: 36px; padding: 0 8px; }
  .uh-tools .theme-toggle-btn { width: 36px; height: 36px; }
  .uh-menu { min-width: 200px; }
  .uh-title { padding-top: 16px; }
  .uh-title h1 { max-width: 22ch; font-size: 1.28rem; line-height: 1.22; }
}

@media (max-width: 359.98px) {
  .uh-name small { display: none; }
}

/* ── Donate card ─────────────────────────────────────────── */
.uh-donate {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px;
  border: 1px solid #fbe0d2;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 69, 0.09) 0%, rgba(255, 122, 69, 0) 55%),
    linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
}
.uh-donate__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.uh-donate__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--uh-coral);
  background: var(--uh-coral-soft);
}
.uh-donate__icon svg { width: 20px; height: 20px; }
.uh-donate__title {
  margin: 1px 0 4px;
  color: var(--uh-navy);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}
.uh-donate__text { margin: 0; color: #475569; font-size: 0.88rem; line-height: 1.5; }

.uh-wallets { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.uh-wallet {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 8px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.uh-wallet:hover { border-color: #cddcf2; box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.35); }

.uh-net {
  display: inline-flex;
  justify-content: center;
  padding: 4px 0;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.uh-net--trc20 { background: #fdecec; color: #b42318; }
.uh-net--bep20 { background: #fdf3dc; color: #9a6700; }
.uh-net--erc20 { background: #ebedff; color: #4338ca; }
.uh-net--sol { background: #e3f7f3; color: #0f766e; }

.uh-wallet .copy-addr {
  display: block;
  min-width: 0;
  padding: 0;
  background: none;
  color: #1e3a5f;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.uh-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #d7e3f5;
  border-radius: 9px;
  background: #f7faff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.uh-copy svg { width: 15px; height: 15px; }
.uh-copy .uh-ico-done { display: none; }
.uh-copy:hover { background: var(--uh-blue-soft); border-color: #b8cbeb; }
.uh-copy.is-done { background: #ecfdf3; border-color: #a7e3bf; color: #15803d; }
.uh-copy.is-done .uh-ico-copy { display: none; }
.uh-copy.is-done .uh-ico-done { display: inline; }

@media (max-width: 480px) {
  .uh-donate { padding: 14px; }
  /* icon + title on one line, the text below at full width */
  .uh-donate__head { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 8px; }
  .uh-donate__head > div { display: contents; }
  .uh-donate__title { margin: 0; }
  .uh-donate__text { grid-column: 1 / -1; }
  .uh-wallet { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; }
  .uh-copy { padding: 0 9px; }
  .uh-copy .uh-copy__label { display: none; }
}

/* ── Drop zone ───────────────────────────────────────────── */
.drop-zone.uh-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 124px;
  padding: 18px 14px;
  border: 2px dashed #c7d6ec;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.uh-drop:hover { border-color: #7aa2ee; background: #f3f7ff; }
.uh-drop:focus-within { border-color: var(--uh-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.drop-zone.uh-drop.drag-over { border-color: #22c55e; background: rgba(34, 197, 94, 0.07); }
.uh-drop #customFile {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.uh-drop__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 12px;
  color: var(--uh-blue);
  background: #e8f0ff;
}
.uh-drop__icon svg { width: 22px; height: 22px; }
.uh-drop__cta { color: #1d4ed8; font-size: 0.98rem; font-weight: 800; }
.uh-drop__sub { color: var(--uh-muted); font-size: 0.82rem; }
.uh-drop__picked { display: none; margin-top: 2px; color: #15803d; font-size: 0.82rem; font-weight: 700; }
.uh-drop.has-files .uh-drop__picked { display: block; }

/* ── Dark theme (the site has a toggle) ──────────────────── */
[data-bs-theme="dark"] .site-header.uh {
  background: rgba(13, 17, 23, 0.9);
  border-bottom-color: rgba(48, 54, 61, 0.9);
}
[data-bs-theme="dark"] .uh-brand,
[data-bs-theme="dark"] .uh-title h1 { color: #e6edf3; }
[data-bs-theme="dark"] .uh-nav a { color: #c9d1d9; }
[data-bs-theme="dark"] .uh-nav a:hover,
[data-bs-theme="dark"] .uh-nav a.is-active { background: rgba(56, 139, 253, 0.12); color: #79c0ff; box-shadow: none; }
[data-bs-theme="dark"] .uh-dd > summary,
[data-bs-theme="dark"] .uh-tools .theme-toggle-btn {
  background: #161b22;
  border-color: #30363d;
  color: #e6edf3;
}
[data-bs-theme="dark"] .uh-menu { background: #161b22; border-color: #30363d; }
[data-bs-theme="dark"] .uh-menu a { color: #c9d1d9; }
[data-bs-theme="dark"] .uh-menu a:hover,
[data-bs-theme="dark"] .uh-menu a.is-active { background: rgba(56, 139, 253, 0.12); color: #79c0ff; }
[data-bs-theme="dark"] .uh-donate {
  background: #161b22;
  border-color: #3b2a22;
}
[data-bs-theme="dark"] .uh-donate__title { color: #e6edf3; }
[data-bs-theme="dark"] .uh-donate__text { color: #8b949e; }
[data-bs-theme="dark"] .uh-donate__icon { background: rgba(255, 122, 69, 0.14); }
[data-bs-theme="dark"] .uh-wallet { background: #0d1117; border-color: #30363d; }
[data-bs-theme="dark"] .uh-wallet .copy-addr { color: #79c0ff; }
[data-bs-theme="dark"] .uh-copy { background: #161b22; border-color: #30363d; color: #79c0ff; }
[data-bs-theme="dark"] .drop-zone.uh-drop { background: #0d1117; border-color: #30363d; }
[data-bs-theme="dark"] .uh-drop__icon { background: rgba(56, 139, 253, 0.14); color: #79c0ff; }
[data-bs-theme="dark"] .uh-drop__cta { color: #79c0ff; }
