/* Home-only presentation layer. No authentication, balance, or navigation state lives here. */
body.ddb-home-ui-active {
  background: #020507 !important;
}

#ddbHomeUi {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  width: min(100vw, 520px);
  height: 100dvh;
  margin: auto;
  overflow: hidden;
  color: #f6fbff;
  background:
    radial-gradient(circle at 88% 11%, rgba(0, 242, 234, .14), transparent 23%),
    radial-gradient(circle at 9% 50%, rgba(255, 0, 80, .12), transparent 25%),
    #020507;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.ddb-home-ui-active #ddbHomeUi { display: block; }

.ddb-home {
  --home-cyan: #00f2ea;
  --home-pink: #ff0050;
  --home-panel: rgba(14, 20, 29, .96);
  --home-panel-2: #101925;
  --home-border: rgba(181, 213, 229, .12);
  --home-muted: #8290a1;
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(109px + env(safe-area-inset-bottom));
  background: transparent;
  scrollbar-width: none;
}

.ddb-home::-webkit-scrollbar { display: none; }
.ddb-home[data-theme="light"] {
  --home-panel: rgba(255, 255, 255, .96);
  --home-panel-2: #f3f6f8;
  --home-border: rgba(28, 45, 63, .11);
  --home-muted: #687686;
  color: #14202d;
  background:
    radial-gradient(circle at 88% 11%, rgba(0, 242, 234, .16), transparent 22%),
    radial-gradient(circle at 8% 50%, rgba(255, 0, 80, .1), transparent 25%),
    #f7fbfc;
}

.ddb-home *, .ddb-home *::before, .ddb-home *::after { box-sizing: border-box; }
.ddb-home button { font: inherit; }
.ddb-home button:focus-visible { outline: 2px solid var(--home-cyan); outline-offset: 3px; }

.ddb-home-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.ddb-home-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.ddb-home-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgba(0, 242, 234, .5); border-radius: 50%; color: #06141a; background: linear-gradient(135deg, #00f2ea, #78e3ff); box-shadow: 0 0 0 3px rgba(0, 242, 234, .08); font-size: 14px; font-weight: 800; }
.ddb-home-identity-copy { min-width: 0; }
.ddb-home-name { overflow: hidden; max-width: 135px; color: inherit; font-size: 14px; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ddb-home-id { overflow: hidden; margin-top: 3px; color: var(--home-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ddb-home-vip { display: inline-flex; margin-left: 5px; padding: 1px 5px; border: 1px solid rgba(255, 198, 77, .5); border-radius: 999px; color: #ffd56e; font-size: 9px; font-weight: 800; vertical-align: 1px; }
.ddb-home-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ddb-home-tool { display: inline-flex; height: 29px; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border: 1px solid var(--home-border); border-radius: 999px; color: inherit; background: rgba(255, 255, 255, .035); font-size: 10px; white-space: nowrap; }
.ddb-home-tool--theme {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border-color: rgba(181, 213, 229, .24);
  color: #dffcff;
  background: rgba(7, 15, 22, .84);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 234, .04), 0 5px 14px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ddb-home-theme-icon { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.ddb-home-tool--theme:hover, .ddb-home-tool--theme:focus-visible {
  border-color: rgba(0, 242, 234, .72);
  color: var(--home-cyan);
  background: rgba(0, 242, 234, .1);
  box-shadow: 0 0 0 3px rgba(0, 242, 234, .08), 0 7px 18px rgba(0, 242, 234, .16);
}
.ddb-home-tool--theme:active { transform: scale(.94); }
.ddb-home[data-theme="light"] .ddb-home-tool--theme {
  border-color: rgba(0, 143, 150, .28);
  color: #078f96;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(8, 196, 201, .05), 0 4px 12px rgba(21, 40, 57, .1);
}
.ddb-home[data-theme="light"] .ddb-home-tool--theme:hover, .ddb-home[data-theme="light"] .ddb-home-tool--theme:focus-visible {
  border-color: rgba(0, 143, 150, .62);
  color: #007f85;
  background: #efffff;
  box-shadow: 0 0 0 3px rgba(8, 196, 201, .1), 0 7px 18px rgba(8, 143, 150, .15);
}
.ddb-home-tool--language { border-color: rgba(255,255,255,.14); background: rgba(8,12,19,.72); cursor: pointer; font-size: 10px; line-height: 1; transition: border-color .18s ease, background .18s ease, color .18s ease; }
/* The locale abbreviation is a direct text node of this generated button. */
#ddbHomeUi .ddb-home-header .ddb-home-tools > button.ddb-home-tool--language { font-size: 10px !important; }
.ddb-home-tool--language:hover, .ddb-home-tool--language[aria-expanded="true"] { border-color: rgba(0,242,234,.58); color: #fff; background: rgba(12,31,39,.96); }
.ddb-home[data-theme="light"] .ddb-home-tool { background: rgba(255, 255, 255, .82); box-shadow: 0 2px 7px rgba(21, 40, 57, .06); }
.ddb-home[data-theme="light"] .ddb-home-tool--language { border-color: rgba(40,52,70,.14); background: #fff; color: #293648; }
.ddb-home[data-theme="light"] .ddb-home-tool--language:hover, .ddb-home[data-theme="light"] .ddb-home-tool--language[aria-expanded="true"] { border-color: rgba(0,182,180,.58); background: #f7ffff; color: #14202d; }
.ddb-home-status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--home-cyan); box-shadow: 0 0 7px var(--home-cyan); }

.ddb-home-language-popup { position: absolute; z-index: 8; inset: 0; display: none; }
.ddb-home-language-popup.is-open { display: block; }
.ddb-home-language-menu { position: absolute; top: 58px; right: 16px; width: min(224px, calc(100% - 32px)); max-height: min(65dvh, 460px); overflow-y: auto; border: 1px solid rgba(181,213,229,.16); border-radius: 14px; color: #edf2f8; background: #111824; box-shadow: 0 18px 36px rgba(0,0,0,.34); }
.ddb-home-language-title { padding: 11px 13px 8px; border-bottom: 1px solid rgba(181,213,229,.12); color: #f7fbff; font-size: 13px; font-weight: 750; line-height: 1.2; }
.ddb-home-language-options { padding: 4px; }
.ddb-home-language-option { display: flex; width: 100%; min-height: 34px; align-items: center; padding: 0 9px; border: 0; border-radius: 8px; color: #e9eef6; background: transparent; cursor: pointer; font-size: 12px; line-height: 1.2; text-align: left; }
.ddb-home-language-option:hover, .ddb-home-language-option:focus-visible { color: #f8ffff; background: rgba(0,242,234,.14); outline: none; }
.ddb-home-language-option.is-active { color: var(--home-cyan); background: rgba(0,242,234,.16); font-weight: 750; }
.ddb-home[data-theme="light"] .ddb-home-language-menu { border-color: rgba(40,52,70,.14); color: #263447; background: #fff; box-shadow: 0 18px 36px rgba(19,32,50,.18); }
.ddb-home[data-theme="light"] .ddb-home-language-title { border-color: rgba(40,52,70,.11); color: #1d2735; }
.ddb-home[data-theme="light"] .ddb-home-language-option { color: #344357; }
.ddb-home[data-theme="light"] .ddb-home-language-option:hover, .ddb-home[data-theme="light"] .ddb-home-language-option:focus-visible { color: #14202d; background: rgba(0,184,181,.1); }
.ddb-home[data-theme="light"] .ddb-home-language-option.is-active { color: #007f7b; background: rgba(0,184,181,.13); }

.ddb-home-notice { display: flex; align-items: center; gap: 7px; min-height: 27px; margin: 12px -16px 14px; padding: 0 16px; color: #c3eff0; background: linear-gradient(90deg, rgba(0, 242, 234, .18), rgba(0, 242, 234, .05)); font-size: 11px; }
.ddb-home-notice-mark { display: inline-flex; width: 13px; height: 13px; align-items: center; justify-content: center; color: var(--home-cyan); }
.ddb-home-notice-mark svg { display: block; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.ddb-home-notice-stream { position: relative; height: 20px; flex: 1; overflow: hidden; }
.ddb-home-notice-activity { position: absolute; top: 0; right: 0; left: 0; display: flex; height: 20px; min-width: 0; align-items: center; gap: 5px; color: #c3eff0; font-size: 10px; line-height: 20px; white-space: nowrap; transform: translateY(0); opacity: 1; transition: transform .42s ease, opacity .42s ease; }
.ddb-home-notice-activity.is-entering { transform: translateY(115%); opacity: 0; }
.ddb-home-notice-activity.is-leaving { transform: translateY(-115%); opacity: 0; }
.ddb-home-notice-user { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.ddb-home-notice-amount { flex: 0 0 auto; color: var(--home-cyan); font-size: 10px; font-weight: 800; }
.ddb-home-notice-time, .ddb-home-notice-demo { flex: 0 0 auto; color: var(--home-muted); font-size: 9px; }
.ddb-home-notice-demo::before { content: "•"; margin-right: 3px; }

.ddb-home-banner { position: relative; min-height: 125px; overflow: hidden; border: 1px solid var(--home-border); border-radius: 21px; background: #182230; box-shadow: 0 13px 24px rgba(0, 0, 0, .2); }
.ddb-home-banner::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(3, 7, 12, .77), rgba(3, 7, 12, .05) 72%), linear-gradient(0deg, rgba(3, 7, 12, .52), transparent 55%); }
.ddb-home-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ddb-home-banner-copy { position: relative; z-index: 1; display: flex; height: 125px; flex-direction: column; justify-content: flex-end; padding: 15px; }
.ddb-home-banner-kicker { color: var(--home-cyan); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ddb-home-banner-title { max-width: 82%; margin-top: 4px; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.15; }
.ddb-home-banner-dots { position: absolute; z-index: 2; right: 15px; bottom: 15px; display: flex; gap: 5px; }
.ddb-home-banner-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.48); }
.ddb-home-banner-dots i:first-child { width: 16px; border-radius: 9px; background: var(--home-cyan); }

.ddb-home-card { border: 1px solid var(--home-border); border-radius: 22px; background: var(--home-panel); box-shadow: 0 14px 26px rgba(0, 0, 0, .16); }
.ddb-home-assets { margin-top: 15px; padding: 17px 16px 16px; }
.ddb-home-assets-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ddb-home-label { color: var(--home-muted); font-size: 11px; }
.ddb-home-verified { display: inline-flex; margin-left: 7px; padding: 2px 5px; border-radius: 4px; color: #52f3eb; background: rgba(0, 242, 234, .11); font-size: 9px; font-weight: 800; }
.ddb-home-wallet-icon { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(0, 242, 234, .2); border-radius: 10px; color: var(--home-cyan); background: rgba(0, 242, 234, .06); font-size: 17px; }
.ddb-home-balance { margin: 7px 0 15px; color: inherit; font-size: clamp(27px, 8vw, 34px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.ddb-home-balance::before { content: "$"; margin-right: 5px; color: var(--home-cyan); font-size: .47em; vertical-align: .22em; }
.ddb-home-earnings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ddb-home-earnings-item { min-height: 62px; padding: 11px; border: 1px solid var(--home-border); border-radius: 13px; background: var(--home-panel-2); }
.ddb-home-earnings-title { overflow: hidden; color: var(--home-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ddb-home-earnings-value { margin-top: 6px; color: var(--home-cyan); font-size: 15px; font-weight: 800; line-height: 1; }
.ddb-home-earnings-value::before { content: "+$"; margin-right: 2px; color: #5fe9bc; font-size: .77em; }

.ddb-home-grab { position: relative; display: flex; width: 100%; min-height: 61px; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(100deg, #39728e, #00d8d1 53%, #00bdb8); box-shadow: 0 12px 25px rgba(0, 224, 214, .24); cursor: pointer; overflow: hidden; }
.ddb-home-grab::before { position: absolute; inset: 0; content: ""; background: linear-gradient(115deg, transparent 15%, rgba(255,255,255,.28) 44%, transparent 68%); transform: translateX(-100%); transition: transform .45s ease; }
.ddb-home-grab:hover::before { transform: translateX(100%); }
.ddb-home-grab-copy { position: relative; display: block; font-size: 16px; font-weight: 850; letter-spacing: .01em; }
.ddb-home-grab-copy small { display: block; margin-top: 2px; color: rgba(255,255,255,.84); font-size: 9px; font-weight: 600; }
.ddb-home-grab-bolt { position: relative; font-size: 19px; line-height: 1; }

.ddb-home-shortcuts { display: flex; justify-content: center; gap: 54px; margin: 18px auto; }
.ddb-home-shortcut { display: flex; width: 104px; min-height: 72px; align-items: center; flex-direction: column; justify-content: center; gap: 7px; border: 0; border-radius: 14px; color: inherit; background: transparent; cursor: pointer; }
.ddb-home-shortcut-icon { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid var(--home-border); border-radius: 12px; color: var(--home-cyan); background: var(--home-panel); font-size: 20px; }
.ddb-home-shortcut:nth-child(2) .ddb-home-shortcut-icon { color: var(--home-pink); }
.ddb-home-shortcut span:last-child { color: var(--home-muted); font-size: 10px; font-weight: 650; }

.ddb-home-activity { padding: 16px; }
.ddb-home-section-title { display: flex; align-items: center; justify-content: space-between; color: inherit; font-size: 15px; font-weight: 800; }
.ddb-home-live { display: inline-flex; align-items: center; gap: 5px; color: var(--home-cyan); font-size: 10px; font-weight: 700; }
.ddb-home-live::before { width: 6px; height: 6px; border-radius: 50%; content: ""; background: var(--home-cyan); }
.ddb-home-empty { display: flex; min-height: 54px; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 0 0; border-top: 1px solid var(--home-border); color: var(--home-muted); font-size: 11px; }
.ddb-home-empty-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--home-cyan); background: rgba(0, 242, 234, .08); }
.ddb-home-live-meta { display: inline-flex; align-items: center; gap: 7px; }
.ddb-home-live-demo { color: var(--home-muted); font-size: 9px; font-weight: 650; }
.ddb-home-live-stream { height: 144px; margin-top: 10px; overflow: hidden; border-top: 1px solid var(--home-border); }
.ddb-home-live-track { will-change: transform; transition: transform .42s ease; }
.ddb-home-live-track.is-rolling { transform: translateY(-48px); }
.ddb-home-live-row { display: flex; height: 48px; min-width: 0; align-items: center; gap: 9px; border-bottom: 1px solid var(--home-border); }
.ddb-home-live-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #14b8b4, #3277d8); font-size: 12px; font-weight: 800; }
.ddb-home-live-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.ddb-home-live-message { display: flex; min-width: 0; align-items: center; gap: 4px; color: var(--home-muted); font-size: 10px; line-height: 1.1; white-space: nowrap; }
.ddb-home-live-message strong { overflow: hidden; color: inherit; font-size: 11px; font-weight: 750; text-overflow: ellipsis; }
.ddb-home-live-message span { overflow: hidden; text-overflow: ellipsis; }
.ddb-home-live-time { color: var(--home-muted); font-size: 9px; line-height: 1; }
.ddb-home-live-amount { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 3px; color: var(--home-muted); font-size: 9px; line-height: 1; }
.ddb-home-live-amount strong { color: var(--home-cyan); font-size: 12px; font-weight: 800; }

.ddb-home-nav { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; display: grid; height: calc(76px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); align-items: start; padding: 9px 10px env(safe-area-inset-bottom); border-top: 1px solid var(--home-border); background: color-mix(in srgb, var(--home-panel) 96%, transparent); backdrop-filter: blur(16px); }
.ddb-home-nav-item { display: flex; min-width: 0; align-items: center; flex-direction: column; gap: 4px; border: 0; color: var(--home-muted); background: transparent; cursor: pointer; font-size: 9px; font-weight: 650; }
#ddbHomeUi .ddb-home .ddb-home-nav > .ddb-home-nav-item { font-size: 13px !important; line-height: 1.1; }
.ddb-home-nav-icon { display: grid; height: 21px; place-items: center; font-size: 18px; line-height: 1; }
.ddb-home-nav-item > span:last-child { white-space: nowrap; }
.ddb-home-nav-item.is-active { color: var(--home-cyan); }
.ddb-home-nav-item--grab { position: relative; margin-top: -30px; color: #fff; }
.ddb-home-nav-item--grab .ddb-home-nav-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(0, 242, 234, .8); border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 45%, #153e4a, #06141b 65%); box-shadow: 0 0 0 5px rgba(255, 0, 80, .15), 0 0 26px rgba(0, 242, 234, .34); font-size: 25px; }
.ddb-home-nav-item--grab span:last-child { margin-top: 2px; }

/* Reference navigation: one quiet dark bar with a single cyan active language. */
.ddb-home-nav {
  height: calc(76px + env(safe-area-inset-bottom));
  padding: 9px 10px env(safe-area-inset-bottom);
  border-top: 1px solid var(--home-border);
  border-radius: 0;
  background: var(--home-panel);
  backdrop-filter: none;
}
.ddb-home-nav-item { gap: 5px; color: var(--home-muted); font-size: 13px !important; font-weight: 600; line-height: 1.1; }
.ddb-home-nav-icon { width: 24px; height: 24px; }
.ddb-home-nav-icon .ddb-bottom-nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.ddb-home-nav-item.is-active { color: var(--home-cyan); font-weight: 700; }
.ddb-home-nav-item--grab { margin-top: -27px; color: #f1f8ff; }
.ddb-home-nav-item--grab .ddb-home-nav-icon { width: 55px; height: 55px; border: 2px solid var(--home-cyan); background: var(--home-panel-2); box-shadow: 0 0 0 4px var(--home-panel), 0 0 18px rgba(0, 242, 234, .32); }
.ddb-home-nav-item--grab .ddb-home-nav-icon .ddb-bottom-nav-icon { width: 29px; height: 29px; stroke-width: 1.7; }
.ddb-home-nav-item--grab span:last-child { margin-top: 2px; }

@media (max-width: 374px) {
  .ddb-home { padding-right: 12px; padding-left: 12px; }
  .ddb-home-notice { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
  .ddb-home-name { max-width: 92px; }
  .ddb-home-tool { padding: 0 6px; }
  .ddb-home-tools { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .ddb-home-grab::before { transition: none; }
}
