:root {
  --teal: #25b5c4;
  --teal-dark: #1395a2;
  --ink: #25262a;
  --muted: #72777e;
  --line: #e1e3e5;
  --soft: #f4f5f6;
  --page: #f1f3f4;
  --rail: #242526;
  --success: #0daf55;
  --danger: #f04444;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.dupoin-logo {
  color: var(--teal);
  font-family: "Dancing Script", cursive;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  transform: skew(-3deg);
}

/* Login */
.login-page { min-height: 100vh; background: #eef0f1; }
.login-stage { min-height: 100vh; display: grid; place-items: center; padding: 42px 20px; }
.login-card {
  width: min(480px, 100%);
  min-height: 588px;
  padding: 50px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 3%);
}
.login-logo { display: inline-block; margin: 2px 0 27px 7px; font-size: 52px; }
.login-card h1 { margin: 0 0 24px 9px; font-size: 29px; letter-spacing: -.8px; }
.login-tabs { height: 51px; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid #ddd; }
.login-tabs button { height: 45px; padding: 0 11px; border: 0; background: transparent; color: #4c5055; cursor: pointer; }
.login-tabs button.active { color: var(--teal); border-bottom: 2px solid var(--teal); }
.field { position: relative; display: block; height: 57px; margin-top: 20px; padding: 7px 12px 4px; background: #f2f3f4; border-bottom: 1px solid #bfc3c6; }
.field span { display: block; color: #596069; font-size: 13px; }
.field i { color: #e63c43; font-style: normal; }
.field input { width: 100%; height: 30px; padding: 0; border: 0; outline: 0; background: transparent; color: #292b2e; font-weight: 600; }
.password-field input { padding-right: 40px; }
.password-toggle { position: absolute; right: 7px; bottom: 5px; width: 34px; height: 30px; border: 0; background: transparent; cursor: pointer; font-size: 24px; transform: rotate(180deg); }
.forgot-link { display: block; margin: 20px 0 0; text-align: right; font-size: 13px; }
.login-error { margin: 12px 0 -5px; color: #d82c38; font-size: 13px; }
.done-button { width: 100%; height: 41px; margin-top: 29px; border: 0; border-radius: 3px; background: #a6dfe3; color: white; font-weight: 700; cursor: pointer; }
.done-button:hover { background: var(--teal); }
.login-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; font-size: 13px; }
.login-footer a { color: var(--teal); }
.login-footer button { border: 0; background: transparent; cursor: pointer; }
.chat-bubble { position: fixed; right: 24px; bottom: 14px; width: 49px; height: 49px; border: 0; border-radius: 50%; background: var(--teal); box-shadow: 0 8px 25px rgb(0 0 0 / 18%); cursor: pointer; }
.chat-bubble span { display: block; width: 22px; height: 17px; margin: auto; border-radius: 4px 4px 8px 8px; background: #fff; }
.chat-bubble span::after { content: ""; display: block; width: 10px; height: 3px; margin: 9px auto 0; border-bottom: 2px solid var(--teal); }
.login-toast { position: fixed; left: 50%; bottom: 30px; padding: 10px 18px; transform: translate(-50%, 30px); border-radius: 3px; background: #252628; color: white; opacity: 0; pointer-events: none; transition: .25s ease; }
.login-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* App shell */
.app-shell { min-height: 100vh; padding-left: 58px; background: var(--page); }
.icon-rail { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 58px; background: var(--rail); border-right: 1px solid #111; overflow-y: auto; scrollbar-width: none; }
.icon-rail::-webkit-scrollbar { display: none; }
.rail-toggle, .rail-link { width: 52px; height: 58px; display: grid; place-items: center; border: 0; border-radius: 0 5px 5px 0; background: transparent; color: #c9ccce; cursor: pointer; position: relative; }
.rail-toggle { height: 53px; color: white; font-size: 25px; }
.rail-toggle::before, .rail-toggle::after, .rail-toggle span { content: ""; width: 19px; height: 2px; background: currentColor; position: absolute; left: 18px; }
.rail-toggle::before { top: 19px; }.rail-toggle span { top: 26px; }.rail-toggle::after { top: 33px; }
.rail-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-link:hover, .rail-link.active { color: var(--teal); background: #263e42; }
.rail-link::after { content: attr(data-label); position: fixed; left: 66px; padding: 7px 10px; border-radius: 3px; background: #171819; color: white; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: .15s ease; }
.rail-link:hover::after { opacity: 1; transform: none; }
.rail-spacer { height: 6px; }
.topbar { position: sticky; z-index: 30; top: 0; height: 51px; display: flex; align-items: center; gap: 18px; padding: 0 14px 0 21px; border-bottom: 1px solid var(--line); background: #fff; }
.top-logo { width: 390px; font-size: 32px; }
.account-metrics { flex: 1; display: flex; justify-content: flex-end; gap: 24px; white-space: nowrap; }
.account-metrics span { color: #555a60; }.account-metrics strong { color: #202226; font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.account-select { height: 34px; padding: 0 11px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; }
.black-button { height: 34px; padding: 0 13px; border: 0; border-radius: 3px; background: #17191c; color: white; font-weight: 700; cursor: pointer; }
.round-action { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eef0f1; cursor: pointer; font-size: 19px; }
.round-action.qr { color: var(--teal); font-size: 22px; }
.round-action small { position: absolute; top: -6px; right: -3px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 10px; background: #ef454b; color: #fff; font-size: 11px; }
.mini-avatar, .profile-avatar { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; border: 1px solid #e2e2e2; }
.mini-avatar::before, .profile-avatar::before { content: "✣"; color: #d98f88; line-height: 1; }
.mini-avatar::after, .profile-avatar::after { content: ""; position: absolute; width: 38%; height: 38%; border: 3px solid #535557; transform: rotate(45deg); }
.mini-avatar { width: 36px; height: 36px; }.mini-avatar::before { font-size: 31px; }.mini-avatar::after { border-width: 2px; }
.app-main { min-height: calc(100vh - 51px); padding: 14px 23px 34px; }
.floating-chat { position: fixed; z-index: 20; right: 16px; bottom: 13px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--teal); color: white; font-size: 21px; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }

/* Dashboard */
.dashboard { max-width: 1300px; margin: 0 auto; background: #fff; padding: 0 13px 42px; }
.dashboard-profile { min-height: 342px; padding: 72px 0 20px; border-bottom: 1px solid #f0f0f0; }
.profile-avatar { width: 108px; height: 108px; margin-bottom: 16px; }.profile-avatar::before { font-size: 92px; }
.dashboard-profile h1 { margin: 0 0 7px; font-size: 19px; }
.dashboard-profile p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.profile-badges { display: flex; gap: 9px; align-items: center; margin-top: 9px; color: var(--teal); font-size: 12px; }
.verified { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; }
.announcement { margin: 23px 0 15px; padding-top: 17px; border-top: 1px solid #f3f3f3; font-size: 13px; }
.announcement time { margin-left: 10px; color: #80858a; }
.funding-overview { display: grid; grid-template-columns: 1.45fr .7fr .7fr; gap: 22px; padding: 16px 0 14px; border-bottom: 1px solid #eee; }
.funding-methods h2, .section-heading h2 { margin: 0; font-size: 17px; }
.funding-methods p { margin: 6px 0 18px; max-width: 470px; color: var(--muted); }
.manage-link, .view-all { float: right; color: #438eff; font-size: 12px; font-weight: 400; }
.card-logos { display: flex; gap: 9px; margin-bottom: 18px; }
.card-logos span { min-width: 39px; padding: 4px 6px; border-radius: 4px; background: #1f46bc; color: white; text-align: center; font-size: 10px; font-weight: 700; }
.card-logos span:nth-child(2) { background: #222; }.card-logos span:nth-child(3) { background: #168a5c; }.card-logos span:nth-child(4) { background: #3897d4; }.card-logos span:nth-child(5) { background: #ea7339; }.card-logos span:nth-child(6) { background: #15999e; }
.fund-tabs { display: flex; gap: 30px; color: #aaa; }.fund-tabs a.active { color: #292b2e; font-weight: 600; }
.balance-stack { display: grid; align-content: center; gap: 23px; }
.balance-line { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 10px; }
.balance-line .icon { font-size: 24px; }.balance-line strong { display: block; font-size: 22px; font-weight: 500; }.balance-line span { display: block; }
.referrer { display: grid; place-items: center; align-content: center; text-align: center; }
.referrer-avatar { width: 60px; height: 60px; display: grid; place-items: center; margin: 8px; border: 3px solid #222; border-radius: 50%; font-size: 29px; }.referrer strong { display: block; }.referrer small { color: var(--muted); }
.section-heading { padding: 22px 0 15px; }
.section-heading p { margin: 12px 0 0; line-height: 1.7; }.section-heading strong { font-size: 16px; }
.account-cards { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 14px; }
.account-card { padding: 19px 14px 0; border: 1px solid #e0e1e3; border-radius: 11px; background: #fff; }
.account-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 17px; font-weight: 600; }
.tags { display: flex; gap: 8px; margin-bottom: 18px; color: #4d5156; font-size: 10px; }.tags span { padding: 2px 4px; }
.metric-row { min-height: 36px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; color: #70747a; }.metric-row strong { color: #34373a; font-size: 15px; }
.account-card-actions { display: grid; grid-template-columns: 1fr 1fr; margin: 6px -14px 0; border-top: 1px solid #eee; }.account-card-actions a { padding: 13px; text-align: center; font-weight: 600; }.account-card-actions a + a { border-left: 1px solid #eee; }
.promotions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 850px; }
.promo-card img { width: 100%; aspect-ratio: 250/141; display: block; object-fit: cover; border-radius: 8px 8px 0 0; }.promo-card h3 { margin: 14px 17px 7px; }.promo-card p { margin: 0 17px 14px; color: var(--muted); line-height: 1.5; }.promo-card footer { margin: 0 17px 15px; }.status-button { margin-top: 11px; padding: 8px 12px; border: 1px solid #555; border-radius: 3px; background: #fff; }
.copy-banner { min-height: 300px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin: 38px 0 12px; padding: 0 28px; background: #f8f8f8; overflow: hidden; }.copy-banner h2 { font-size: 28px; color: #a9abad; }.copy-banner p { max-width: 470px; color: #aeb1b4; line-height: 1.5; }.copy-banner a { display: inline-block; margin-top: 14px; font-size: 16px; }.copy-banner img { width: 100%; max-height: 300px; object-fit: contain; align-self: end; }
.market-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 29px; }.market-title { display: flex; justify-content: space-between; align-items: center; }.market-title h2 { font-size: 17px; }.news-row { display: grid; grid-template-columns: 1fr 184px; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee; }.news-row h3 { margin: 0 0 8px; }.news-row p { margin: 0; color: var(--muted); line-height: 1.55; }.news-row time { display: block; margin-top: 12px; color: #9a9da1; font-size: 11px; }.news-row img { width: 100%; height: 104px; object-fit: cover; border-radius: 6px; }.signal-row { position: relative; min-height: 96px; padding: 13px 45px 13px 19px; border-bottom: 1px solid #eee; }.signal-row h3 { margin: 0 0 6px; }.signal-row strong { color: var(--danger); font-weight: 500; }.signal-row:nth-child(3) strong { color: var(--success); }.signal-row p { margin: 7px 0 0; color: var(--muted); }.signal-row time { position: absolute; right: 4px; top: 13px; color: var(--muted); font-size: 11px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; }.help-card img { width: 100%; aspect-ratio: 386/219; object-fit: cover; border-radius: 8px; }.help-card h3 { margin: 14px 17px 6px; font-size: 17px; }.help-card p { margin: 0 17px; color: var(--muted); }
.download-panel { margin-top: 40px; border-top: 1px solid #eee; padding-top: 19px; }.platform-tabs { display: flex; width: max-content; margin: 23px 0 48px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }.platform-tabs button { padding: 7px 18px; border: 0; background: white; cursor: pointer; }.platform-tabs .active { background: #f3f4f5; }.app-download { text-align: center; color: #aaa; min-height: 230px; }.app-download img { width: 102px; height: 105px; object-fit: cover; display: block; margin: 18px auto 8px; }

/* Profile */
.profile-page, .accounts-page, .funds-page { max-width: 1480px; margin: 0 auto; background: #fff; min-height: calc(100vh - 80px); border: 1px solid #dedfe1; }
.profile-page { display: grid; grid-template-columns: 280px 1fr; }
.settings-panel { border-right: 1px solid #ddd; }.settings-panel h1 { height: 48px; margin: 0; padding: 14px; border-bottom: 1px solid #ddd; font-size: 17px; }
.setting-link { min-height: 81px; display: grid; grid-template-columns: 31px 1fr 18px; gap: 8px; padding: 17px 13px; border-bottom: 1px solid #ddd; }.setting-link.active { background: #f1f1f1; border-left: 3px solid var(--teal); }.setting-link b { display: block; margin-bottom: 4px; }.setting-link small { display: block; color: #545960; line-height: 1.25; }.setting-link .setting-icon { font-size: 20px; }.signout-link { margin-top: 6px; }
.profile-details h2 { height: 48px; margin: 0; padding: 14px; border-bottom: 1px solid #ddd; font-size: 17px; }.profile-row { min-height: 52px; display: grid; grid-template-columns: 210px 1fr 20px; align-items: center; padding: 0 20px; border-bottom: 1px solid #ddd; }.profile-row strong { justify-self: end; color: #9a9da2; font-weight: 400; text-align: right; }.profile-row .chevron { justify-self: end; }.profile-address { line-height: 1.45; }

/* Accounts */
.accounts-page { display: grid; grid-template-columns: 280px 1fr; }.account-list { border-right: 1px solid #ddd; }.account-list-title { height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; border-bottom: 1px solid #ddd; font-size: 18px; font-weight: 600; }.account-list-title button { border: 0; background: transparent; font-size: 26px; }.account-type-tabs { display: flex; gap: 25px; height: 51px; align-items: end; padding: 0 18px; border-bottom: 1px solid #ddd; }.account-type-tabs span { height: 38px; padding-top: 8px; }.account-type-tabs .active { border-bottom: 2px solid #222; }.account-list-card { display: block; margin: 10px; padding: 11px; border: 1px solid transparent; border-radius: 7px; background: #f1f2f3; }.account-list-card.active { border-color: #222; background: white; }.account-list-card b { display: block; margin-bottom: 7px; }.account-list-card strong { display: block; margin-bottom: 9px; font-size: 19px; }.account-list-card .tags { margin: 0; gap: 3px; }.account-list-card .tags span { background: #e3e5e6; border-radius: 3px; }
.account-detail-title { height: 50px; padding: 14px 16px; border-bottom: 1px solid #ddd; font-size: 18px; font-weight: 600; }.account-detail-main { padding: 20px; }.account-heading { display: flex; align-items: center; gap: 12px; }.account-heading .profile-avatar { flex: 0 0 auto; width: 56px; height: 56px; margin: 0; }.account-heading h1 { margin: 0 0 5px; font-size: 25px; font-weight: 500; }.account-heading .tags { margin: 0; }.account-heading-actions { margin-left: auto; display: flex; gap: 10px; }.account-heading-actions a, .more-button { min-width: 112px; padding: 11px 16px; border: 0; border-radius: 4px; background: #17191c; color: white; text-align: center; font-weight: 700; }.more-button { min-width: 40px; background: #e5e7e8; color: #333; }.balance-boxes { display: flex; gap: 10px; margin-top: 18px; }.balance-box { width: 200px; padding: 11px; border-radius: 6px; background: #f2f3f4; }.balance-box b { display: block; font-size: 19px; }.account-tabs { display: flex; gap: 26px; margin: 27px 0 10px; border-bottom: 1px solid #ddd; overflow-x: auto; }.account-tabs span { padding: 10px 0 12px; white-space: nowrap; }.account-tabs .active { border-bottom: 2px solid #222; }.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }.detail-line { min-height: 40px; display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 0 7px; }.detail-line:nth-child(odd) { background: #f3f4f5; }.detail-line b { text-align: right; }.summary-separator { grid-column: 1/-1; height: 19px; margin: 16px 0 0; border-top: 1px solid #ddd; }

/* Funds */
.funds-page { max-width: 952px; display: grid; grid-template-columns: 280px 1fr; }.funds-nav { border-right: 1px solid #ddd; }.funds-nav-title { height: 49px; padding: 14px; border-bottom: 1px solid #ddd; font-size: 18px; font-weight: 600; }.fund-menu { min-height: 82px; display: grid; grid-template-columns: 28px 1fr 18px; gap: 8px; align-items: start; padding: 16px 15px; border-bottom: 1px solid #ddd; }.fund-menu b { display: block; font-size: 16px; }.fund-menu small { display: block; margin-top: 3px; line-height: 1.25; }.fund-menu.active { border-left: 3px solid var(--teal); background: #f0f1f2; }.fund-menu.compact { min-height: 51px; align-items: center; }.fund-menu.compact b { font-size: 14px; font-weight: 500; }.funds-content h1 { height: 49px; margin: 0; padding: 13px 15px; border-bottom: 1px solid #ddd; font-size: 18px; }.fund-filters { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 20px; border-bottom: 1px solid #e6e6e6; background: #f5f6f7; }.fund-filters button { height: 25px; padding: 0 8px; border: 1px solid #bbb; border-radius: 5px; background: #fff; font-size: 12px; }.fund-results { min-height: 410px; }.result-count { height: 39px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid #eee; color: #777; font-size: 12px; }.result-count button { padding: 4px 8px; border: 1px solid #bbb; border-radius: 5px; background: white; }.deposit-record { min-height: 72px; display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 12px 20px; border-bottom: 1px solid #eee; }.deposit-record time { display: block; font-weight: 500; }.deposit-record small { display: block; margin-top: 4px; color: #92979d; }.deposit-record div:last-child { text-align: right; }.deposit-record strong { display: block; }.success-label { display: inline-block; margin-top: 3px; padding: 2px 4px; background: #d4f0dc; color: #0b9d42; font-size: 11px; }.empty-records { min-height: 450px; background: #fff; }

/* Placeholder */
.placeholder-page { max-width: 1100px; margin: 45px auto; padding: 50px; background: #fff; border: 1px solid #ddd; }.placeholder-page h1 { margin-top: 0; }.placeholder-page p { color: var(--muted); }.back-link { display: inline-block; margin-top: 18px; padding: 10px 15px; border-radius: 4px; background: #17191c; color: white; }

@media (max-width: 1180px) {
  .top-logo { width: auto; margin-right: auto; }
  .account-metrics span:nth-child(-n+2) { display: none; }
  .funding-overview { grid-template-columns: 1.2fr .7fr; }.referrer { display: none; }
  .account-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .app-shell { padding-left: 0; }.icon-rail { transform: translateX(-100%); transition: transform .2s ease; }.app-shell.menu-open .icon-rail { transform: none; }.topbar { padding-left: 12px; }.mobile-menu { display: block !important; }.top-logo { font-size: 27px; }.account-metrics { display: none; }.account-select, .round-action.qr { display: none; }.app-main { padding: 10px; }
  .dashboard { padding-inline: 9px; }.dashboard-profile { padding-top: 25px; min-height: 275px; }.funding-overview { grid-template-columns: 1fr; }.balance-stack { grid-template-columns: 1fr 1fr; }.account-cards, .promotions-grid, .market-grid, .help-grid { grid-template-columns: 1fr; }.copy-banner { grid-template-columns: 1fr; padding-top: 25px; }.news-row { grid-template-columns: 1fr 130px; }
  .profile-page, .accounts-page, .funds-page { grid-template-columns: 1fr; }.settings-panel, .account-list, .funds-nav { border-right: 0; border-bottom: 1px solid #ddd; }.setting-link:not(.active):not(.signout-link), .fund-menu:not(.active) { display: none; }.account-list-card:not(.active) { display: none; }.profile-row { grid-template-columns: 120px 1fr 18px; }.account-detail-main { padding: 14px; }.account-heading { flex-wrap: wrap; }.account-heading-actions { width: 100%; margin-left: 0; }.detail-grid { grid-template-columns: 1fr; }.detail-line { background: #fff !important; border-bottom: 1px solid #eee; }.balance-box { width: 50%; }.funds-page { max-width: 100%; }
}

@media (max-width: 520px) {
  .login-stage { padding: 0; align-items: stretch; }.login-card { min-height: 100vh; padding: 38px 25px; border-radius: 0; }.login-footer { align-items: flex-start; flex-direction: column; gap: 12px; }.chat-bubble { width: 43px; height: 43px; }
  .top-actions .black-button, .round-action:not(.mini-avatar) { display: none; }.topbar { gap: 9px; }.app-main { padding-inline: 0; }.dashboard-profile, .funding-overview, .section-heading, .account-cards, .promotions-grid, .copy-banner, .market-grid, .help-grid, .download-panel { margin-left: 10px; margin-right: 10px; }.balance-stack { grid-template-columns: 1fr; }.account-cards { grid-template-columns: 1fr; }.news-row { grid-template-columns: 1fr; }.news-row img { width: 100%; height: 160px; }.profile-row { grid-template-columns: 92px 1fr 16px; padding-inline: 12px; }.account-tabs { gap: 18px; }.account-heading-actions a { min-width: 0; flex: 1; }.fund-filters { overflow-x: auto; }.deposit-record { align-items: flex-start; flex-direction: column; gap: 10px; }.deposit-record div:last-child { text-align: left; }
}
