.defi-content,.profile-content {
  --teal-edge:#12423c;
  --teal-surface:linear-gradient(135deg,#071412,#050908 75%);
  background:radial-gradient(ellipse 70% 120px at 60% 0,#041a25aa,transparent);
}
.dashboard-hero { isolation:isolate; min-height:114px; align-items:start; padding:13px 0 20px; }
.dashboard-hero div { max-width:78%; }
.dashboard-hero h1 { font-size:clamp(29px,8vw,37px); }
.dashboard-hero p { position:relative; max-width:35ch; line-height:1.38; color:#b6c1cb; }
.dashboard-hero img {
  position:absolute; z-index:0; inset:auto -9px 1px auto; width:47%; max-height:none;
  mask-image:radial-gradient(ellipse at 59% 53%,#000 50%,transparent 94%);
}
.defi-tabs{gap:0; margin:0 0 13px; border:1px solid var(--teal-edge);border-radius:9px;background:#060f0e}
.defi-tabs .tab{border:1px solid transparent;border-radius:8px;background:none;font-size:13px;font-weight:400}
.defi-tabs .tab.active{border-color:#00e8d2;background:#05231f;box-shadow:inset 0 0 14px #00d9bf35;color:white}
.defi-content .defi-amount,.defi-content .defi-summary,.profile-content .profile-card,.profile-content .profile-group{
 border:1px solid var(--teal-edge);background:var(--teal-surface);
}
.defi-amount { min-height:110px; padding:12px; }
.defi-amount > .row:first-child { margin-bottom:8px; font-size:13px; }
.defi-amount small,.defi-value small { color:#b5c0cf; }
.defi-amount [data-max] { padding:2px 5px;border-color:#687079;border-radius:4px;margin-left:3px;font-size:9px; }
.defi-amount .btn { min-width:46%;justify-content:flex-start;text-align:left;border-color:#151b1c;border-radius:15px;background:#101616;font-weight:500;padding:6px; }
.defi-amount .btn small { margin-top:3px; }
.defi-amount .coin { width:clamp(29px,9vw,45px);height:clamp(29px,9vw,45px); }
.defi-value { display:grid;justify-items:end;min-width:0; }
.defi-value .swap-value { min-width:0;width:100%;padding:0; }
.defi-value small { margin-top:4px; }
.defi-swap { position:relative;z-index:1;margin:-24px auto -16px;background:#061310;width:36px;height:36px;border-color:#148b7c; }
.defi-swap .nx-icon { transform:rotate(90deg);filter:brightness(.85) sepia(1) saturate(5) hue-rotate(112deg); }
.defi-content .btn.accent { background:linear-gradient(100deg,#05daca,#00ecd5);border-color:#00d7c4;border-radius:9px;min-height:42px;margin-bottom:13px; }
.defi-content .defi-summary { padding-block:4px; }
.defi-summary .line { font-size:11px;min-height:30px; }
.defi-summary .line b { font-weight:500;text-align:right; }
.defi-summary .nx-icon { margin-right:6px; }
.defi-sheet { background:radial-gradient(ellipse at top,#191c1e,#101213 75%);padding-bottom:clamp(19px,7vh,52px); }
.defi-sheet h2 { font-size:clamp(15px,4.55vw,21px); }
.defi-picker .field { background:#171c1e;border-color:#292e31;margin-top:12px; }
.defi-picker .list li { border:1px solid #232829;border-radius:11px;background:#151819;margin-bottom:5px;padding:8px; }
.defi-picker .list li.is-selected { border-color:#f2f4f7;background:#232629; }
.defi-picker .list li .row::after { content:"";width:14px;height:14px;flex:none;border:1px solid #859299;border-radius:50%; }
.defi-picker .list li.is-selected .row::after { border-color:#f2f4f7;background:radial-gradient(circle,#f2f4f7 50%,transparent 54%); }
.defi-picker .list .coin { width:38px;height:38px; }
.defi-picker .list b { font-size:12px;font-weight:500; }
.defi-picker .list small { margin-top:3px; }
.defi-picker .token-fiat { text-align:right; }
.defi-review-amounts { margin-top:9px; }
.defi-review-amounts .line b { display:flex;align-items:center;gap:4px; }
.defi-review .defi-summary { background:#101415; }
.defi-review [data-exchange] { margin-bottom:0; }
.profile-content .dashboard-hero { min-height:121px; }
.profile-content .dashboard-hero p { max-width:25ch; }
.profile-content .profile-card { padding:0;overflow:hidden;margin-bottom:12px; }
.profile-identity { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px; }
.profile-portrait { overflow:hidden;border:1px solid #00cbd3;border-radius:50%;width:clamp(57px,23vw,109px);aspect-ratio:1;display:grid;place-items:center;background:#0b211e; }
.profile-portrait img { display:block;width:100%;height:100%;object-fit:cover; }
.profile-portrait .nx-icon { width:37px;height:37px; }
.profile-identity h2 { font-size:clamp(16px,4.8vw,23px); }
.profile-identity p { margin-top:3px;color:#bcc7d1; }
.profile-wallet { display:flex;align-items:center;gap:5px;margin-top:6px;padding:5px 8px;border:1px solid #2f393a;border-radius:20px;color:#e8eeee;background:#0b1211;font-size:11px; }
.profile-row i,.profile-metrics i,.profile-chevron::before { width:7px;height:7px;border-right:1px solid #c7cfd1;border-top:1px solid #c7cfd1;transform:rotate(45deg); }
.profile-chevron { display:grid;place-items:center;border:0;background:none;padding:8px;color:inherit; }
.profile-chevron::before { content:""; }
.profile-metrics { display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--teal-edge); }
.profile-metrics > * { position:relative;min-width:0;padding:11px 12px; }
.profile-metrics > a { border-left:1px solid var(--teal-edge); }
.profile-metrics small { font-size:12px;color:#c6ced4; }
.profile-metrics strong { display:block;font-size:clamp(14px,4.4vw,22px);margin-top:3px; }
.profile-metrics p { font-size:11px;margin-top:1px; }
.profile-metrics i { position:absolute;right:12px;top:46%; }
.profile-content .profile-group { padding:0 11px;margin-bottom:12px; }
.profile-row { width:100%;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:9px;text-align:left;padding:10px 3px;border:0;border-bottom:1px solid #112421;background:none;color:#f0f3f5; }
.profile-row:last-child { border-bottom:0; }
.profile-row > .nx-icon { width:23px;height:23px; }
.profile-row small { color:#b5bfc9;margin-top:3px; }
.profile-content .profile-logout { min-height:40px;border-color:#e84152;color:#ff5363;background:#180b0c; }
.profile-logout .nx-icon { filter:brightness(.75) sepia(1) saturate(8) hue-rotate(310deg); }
.profile-content .icon-link { text-align:center;margin:9px 0; }
.defi-review .defi-review-amounts { position:relative;display:grid;gap:5px;padding:0;border:0;background:none; }
.defi-review-amounts .line {
  position:relative;min-height:56px;padding:8px 9px 8px 54px;
  border:1px solid #24292b;border-radius:9px;background:#151819;
}
.defi-review-amounts .line b .coin { position:absolute;left:9px;top:50%;transform:translateY(-50%);width:36px;height:36px; }
.defi-review-amounts::after {
  content:"↓";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  display:grid;place-items:center;width:23px;height:23px;border:1px solid #5e636b;
  border-radius:50%;background:#16181c;color:#f5f6fa;font-size:13px;pointer-events:none;
}
.defi-route { display:inline-flex;gap:6px;align-items:center; }
.defi-route .coin { width:22px;height:22px; }

/* Exchange dashboard */
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .app { background:#030405; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content { background:none; padding-inline:4%; }
.defi-content .defi-hero {
  min-height:clamp(118px,37vw,178px);
  padding:clamp(12px,3.4vw,16px) 5px 24px;
}
.defi-hero div { max-width:56%; }
.defi-hero h1 { font-size:clamp(25px,7.1vw,34px); line-height:1; }
.defi-hero p { font-size:clamp(11px,3vw,14.5px); line-height:1.3; color:#c2c9d5; margin-top:8px; }
.defi-hero img {
  inset:auto -4.35% max(-24px,-5vw) auto;
  width:108.7%;
  height:clamp(156px,50vw,240px);
  object-fit:cover;
  object-position:right center;
  mix-blend-mode:lighten;
  mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 80%,transparent 90%);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-tabs {
  margin:0 0 clamp(12px,4.1vw,20px);
  border-color:#60656e;
  border-radius:clamp(11px,3vw,15px);
  background:linear-gradient(135deg,#0d0f12,#15171a);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-tabs .tab {
  min-height:clamp(32px,8.5vw,41px);
  border-radius:inherit;
  font-size:clamp(13px,3.15vw,15px);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-tabs .tab.active {
  border-color:#e0e4ee;
  background:linear-gradient(#4e535c,#353a41 52%,#42474e);
  box-shadow:inset 0 0 11px #e2ebfc99,0 0 6px #d6e2ff44;
}
.defi-exchange-card,
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary {
  border:1px solid #757b85;
  border-radius:clamp(13px,3.5vw,17px);
  background:linear-gradient(145deg,#1b2026,#080a0c 50%,#111418);
}
.defi-exchange-card { padding:clamp(9px,3.5vw,17px); }
.defi-exchange-card .defi-amount { min-height:0; padding:0; border:0; background:none; }
.defi-exchange-card .defi-amount > .row { gap:6px; }
.defi-exchange-card .defi-amount > .row:first-child { margin-bottom:clamp(8px,2.8vw,14px); font-size:clamp(12px,3.2vw,15px); }
.defi-exchange-card .defi-amount small { font-size:clamp(9px,2.6vw,13px); color:#cad0db; }
.defi-exchange-card .defi-amount [data-max] { font-size:inherit; background:#14171b; border-radius:6px; }
.defi-exchange-card .defi-amount .btn {
  width:max-content;
  min-width:43%;
  flex-shrink:0;
  gap:clamp(4px,1.7vw,8px);
  min-height:clamp(40px,12vw,58px);
  padding:5px;
  background:linear-gradient(135deg,#181d21,#151719);
  border-color:#282b31;
  border-radius:clamp(10px,3.6vw,17px);
  font-size:clamp(10px,3vw,14px);
}
.defi-exchange-card .defi-amount .btn > span:nth-child(2) { white-space:nowrap; }
.defi-exchange-card .defi-amount .coin { flex:none; }
.defi-token-chevron {
  width:7px;
  height:7px;
  margin:0 5px 3px auto;
  flex:none;
  border-right:1.5px solid;
  border-bottom:1.5px solid;
  transform:rotate(45deg);
}
.defi-exchange-card .swap-value { font-size:clamp(20px,5.7vw,28px); font-weight:750; line-height:1.1; }
.defi-separator { position:relative; display:grid; place-items:center; height:clamp(31px,9vw,43px); }
.defi-separator::before { content:""; position:absolute; inset:50% 0 auto; height:1px; background:#8a909a; }
.defi-separator .defi-swap {
  margin:0;
  width:clamp(30px,8.15vw,39px);
  height:clamp(30px,8.15vw,39px);
  border-radius:35%;
  border-color:#828994;
  background:linear-gradient(135deg,#252a31,#101216);
}
.defi-separator .nx-icon { filter:none; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) #exchange > .btn.accent {
  min-height:clamp(39px,11vw,53px);
  margin:clamp(12px,3.7vw,18px) 0 clamp(12px,3.4vw,16px);
  border:1px solid #f5f6fa;
  border-radius:clamp(11px,3vw,15px);
  background:linear-gradient(110deg,#e3e5eb,#d8dbe3 65%,#e9ebef);
  color:#050607;
  box-shadow:0 0 14px #aebcd32c;
  font-size:clamp(14px,3.7vw,18px);
  font-weight:750;
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary {
  padding:6px clamp(9px,3vw,14px);
  background:
    radial-gradient(ellipse at top right,#a5b4cc65,transparent 20%),
    radial-gradient(ellipse at bottom left,#8c9db34d,transparent 21%),
    linear-gradient(145deg,#13181d,#080a0c 53%,#0e1115);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .line { min-height:clamp(33px,10vw,48px); font-size:clamp(10px,2.75vw,13.2px); gap:6px; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .line b { font-weight:700; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-label { color:#edf0f4; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-icon {
  width:clamp(15px,4vw,19px);
  height:clamp(15px,4vw,19px);
  margin:0 clamp(9px,3.8vw,18px) 0 6px;
  position:relative;
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-label { position:relative; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-label::before {
  position:absolute;
  content:"";
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:clamp(27px,7.5vw,36px);
  aspect-ratio:1;
  border-radius:28%;
  background:linear-gradient(140deg,#31363d,#181b1f 56%);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-route .coin { width:clamp(17px,5.65vw,27px); height:clamp(17px,5.65vw,27px); }

body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-tabs .tab,
.defi-exchange-card .defi-amount [data-max] { color:#fff; }
.defi-separator .nx-icon { width:18px; height:18px; }

body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content { padding-bottom:clamp(6px,1.3dvh,14px); }
.defi-content .defi-hero { min-height:min(clamp(118px,37vw,178px),max(102px,18dvh)); }
.defi-hero img { height:min(clamp(156px,50vw,240px),max(145px,25dvh)); }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-tabs { margin-bottom:clamp(8px,1.7dvh,20px); }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-tabs .tab { min-height:clamp(30px,5dvh,41px); }
.defi-exchange-card { padding-block:clamp(7px,1.5dvh,16px); }
.defi-exchange-card .defi-amount > .row:first-child { margin-bottom:clamp(5px,1.25dvh,12px); }
.defi-exchange-card .defi-amount .btn { min-height:min(clamp(40px,12vw,58px),max(36px,7.4dvh)); }
.defi-exchange-card .defi-amount .coin { width:min(clamp(29px,9vw,45px),max(26px,5.4dvh)); height:auto; aspect-ratio:1; }
.defi-separator { height:clamp(29px,5.25dvh,43px); }
.defi-separator .defi-swap { width:clamp(27px,4.9dvh,38px); height:clamp(27px,4.9dvh,38px); }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) #exchange > .btn.accent {
  min-height:clamp(35px,6.2dvh,53px);
  margin-block:clamp(8px,1.55dvh,18px);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .line { min-height:clamp(29px,5.45dvh,48px); }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-label::before { width:clamp(24px,4.5dvh,36px); }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content.content-reveal,
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content > .content-reveal { animation:none; }

body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .line { border:0; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-label {
  --summary-icon-size:clamp(17px,4.5vw,21px);
  --summary-icon-tile:clamp(24px,4.5dvh,36px);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-icon {
  width:var(--summary-icon-size);
  height:var(--summary-icon-size);
  margin-left:calc((var(--summary-icon-tile) - var(--summary-icon-size)) / 2);
  margin-right:calc((var(--summary-icon-tile) - var(--summary-icon-size)) / 2 + 10px);
}
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-content .defi-summary .nx-label::before { width:var(--summary-icon-tile); }

.defi-hero img { pointer-events:none; }
body:is([data-screen="30"],[data-screen="31"],[data-screen="32"],[data-screen="33"]) .defi-tabs { position:relative; touch-action:manipulation; }
.defi-content :is(#exchange,#history)[hidden] { display:none; }

.defi-history { padding:0 4px 10px; }

.defi-picker-overlay > .defi-picker {
  max-height:90dvh;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-bottom:calc(12px + env(safe-area-inset-bottom));
}
.defi-picker .list { margin-bottom:0; padding-bottom:0; }
.defi-picker .list li:last-child { margin-bottom:0; }

.defi-review-overlay .defi-review .defi-summary {
  border-color:#5e636b;
  background:#101214;
}
.defi-review-overlay .defi-review [data-exchange] {
  border-color:#f5f6fa;
  background:#f3f4f6;
  color:#101114;
}
.defi-review-overlay .defi-review [data-exchange] .nx-icon { filter:brightness(0); }

.defi-success {
  position:relative;
  isolation:isolate;
  display:grid;
  justify-items:center;
  overflow:hidden;
  margin-bottom:8px;
  padding:clamp(12px,3.4vw,16px) clamp(14px,3.9vw,19px) clamp(14px,3.8vw,18px);
  border:1px solid #878f9b;
  border-radius:clamp(19px,5.25vw,25px);
  background:radial-gradient(ellipse at 50% 0,#15191e,#050607 63%,#101318);
  text-align:center;
}
.defi-content :is(.defi-success,.defi-exchange-card,#exchange > a)[hidden] { display:none; }
.defi-success-grip {
  width:9.8%;
  height:4px;
  border-radius:20px;
  background:#bec9da;
  margin-bottom:clamp(16px,4.9vw,24px);
}
.defi-success h2 {
  z-index:1;
  font-size:clamp(17px,5.5vw,26px);
  line-height:1.12;
}
.defi-success p {
  z-index:1;
  margin:clamp(7px,2.3vw,11px) 0 0;
  color:#cbd6e4;
  font-size:clamp(12px,3.3vw,16px);
  font-variant-numeric:tabular-nums;
}
.defi-success img {
  width:calc(100% + 2 * clamp(14px,3.9vw,19px));
  max-width:none;
  height:auto;
  margin-top:clamp(-26px,-5vw,-15px);
  margin-bottom:clamp(-17px,-3.5vw,-10px);
}
.defi-success .btn.primary {
  position:relative;
  margin:0;
  min-height:clamp(35px,9.6vw,46px);
  border-radius:clamp(12px,3.8vw,18px);
  border-color:#fff;
  background:linear-gradient(#fff,#e9edf5,#f8faff);
  color:#060708;
  font-size:clamp(13px,3.4vw,16px);
  font-weight:750;
}
.defi-success .btn.primary:focus:not(:focus-visible) { outline:none; }
.defi-review-overlay .close {
  display:grid;
  place-items:center;
  padding:0;
}
.defi-review-overlay .close svg { display:block; }
.defi-success:not([hidden]) + .defi-summary { display:none; }

/* Signed-in profile */
body[data-screen="35"] .app { background:#030405; }
.app > .top + .profile-dashboard { padding:2px 4% 18px; background:none; }
.profile-dashboard .profile-hero {
  min-height:clamp(94px,28.6vw,137px);
  padding:clamp(5px,1.5vw,8px) 5px 24px;
}
.profile-dashboard .profile-hero h1 {
  font-size:clamp(24px,6.8vw,33px);
  line-height:1.05;
}
.profile-dashboard .profile-hero p {
  margin-top:6px;
  font-size:clamp(11px,2.95vw,14px);
  color:#d2dbe3;
}
.profile-dashboard .profile-hero img {
  inset:auto -4.35% 0 auto;
  width:108.7%;
  height:auto;
  aspect-ratio:auto;
  mix-blend-mode:normal;
  mask-image:linear-gradient(#000 88%,transparent);
}
.profile-dashboard :is(.profile-card,.profile-group) {
  border:1px solid #8a9099;
  border-radius:clamp(11px,3vw,15px);
  background:radial-gradient(ellipse at 60% 0,#1d2228,#08090a 63%,#13171b);
}
.profile-dashboard .profile-card {
  position:relative;
  isolation:isolate;
  padding:clamp(10px,2.5vw,13px) clamp(10px,3.7vw,18px);
  margin:0 0 clamp(10px,2.9vw,14px);
}
.profile-dashboard .profile-card::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:auto 0 0 auto;
  width:55%;
  height:40%;
  background:url("/assets/profile-waves.png") right bottom / 145% auto no-repeat;
  mask-image:linear-gradient(to top,#000,transparent),linear-gradient(to left,#000 40%,transparent);
  mask-composite:intersect;
}
.profile-dashboard .profile-identity { padding:0 0 clamp(8px,2.4vw,12px); gap:clamp(8px,3.2vw,15px); }
.profile-dashboard .profile-portrait {
  width:clamp(60px,21vw,101px);
  border-color:#f2f6fb;
  background:#1b2027;
  box-shadow:0 0 10px #dce8ff80;
}
.profile-dashboard .profile-identity h2 { font-size:clamp(16px,4.6vw,22px); line-height:1.1; }
.profile-dashboard .profile-identity p { font-size:clamp(11px,3vw,14px); color:#d2dbe3; }
.profile-dashboard .profile-wallet {
  border-color:#494d52;
  background:#16181c;
  white-space:nowrap;
  padding:4px 7px;
  font-size:clamp(9px,2.6vw,12px);
}
.profile-dashboard .profile-metrics {
  border-top-color:#45484d;
  padding-top:clamp(7px,2.2vw,11px);
}
.profile-dashboard .profile-metrics > * { padding:0; }
.profile-dashboard .profile-metrics > a { padding-left:clamp(10px,4.4vw,21px); border-left-color:#45484d; }
.profile-dashboard .profile-metrics i { right:2px; }
.profile-dashboard .profile-metrics small, .profile-dashboard .profile-metrics p { color:#d2dbe3; font-size:clamp(10px,2.65vw,13px); }
.profile-dashboard .profile-metrics strong { font-size:clamp(14px,4.2vw,21px); white-space:nowrap; }
.profile-dashboard .profile-group {
  padding:2px clamp(10px,3.55vw,17px);
  margin-bottom:clamp(16px,5.7vw,27px);
}
.profile-dashboard .profile-row {
  grid-template-columns:clamp(29px,8.6vw,41px) minmax(0,1fr) 8px;
  gap:clamp(8px,3vw,14px);
  padding:clamp(6px,1.85vw,9px) 2px;
  border-bottom-color:#303338;
  font-size:clamp(12px,3.25vw,16px);
}
.profile-dashboard .profile-row small { font-size:clamp(10px,2.6vw,13px); color:#d2dbe3; margin-top:1px; }
.profile-row-icon {
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1.08;
  border-radius:24%;
  background:linear-gradient(145deg,#303337,#151617);
}
.profile-row-icon .nx-icon { width:55%; height:auto; aspect-ratio:1; }
.profile-dashboard [data-profile-entry="2"] .profile-row-icon::after {
  content:"";
  position:absolute;
  top:20%;
  right:20%;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#0ce5e2;
}
.profile-dashboard .profile-logout {
  min-height:clamp(37px,10.2vw,49px);
  border-color:#ff657b;
  border-radius:clamp(10px,2.8vw,14px);
  background:linear-gradient(#160e12,#140b0e 62%,#491623);
  box-shadow:inset 0 0 9px #ff7b9a35,0 3px 10px #ff47602b;
  color:#ff5169;
  font-size:clamp(12px,3.25vw,16px);
}

.profile-dashboard .profile-logout .nx-icon { filter:brightness(0) saturate(100%) invert(41%) sepia(85%) saturate(1825%) hue-rotate(317deg) brightness(106%); }

.profile-subpage { color:#f5f6fa; }
.profile-subheading { padding:10px 4px 18px; }
.profile-subheading .back { display:inline-block; margin-bottom:12px; color:#d5dce5; }
.profile-subheading h1 { font-size:clamp(24px,6.8vw,34px); line-height:1.1; }
.profile-subheading p, .profile-subpanel p { margin-top:7px; color:#c2c9d3; line-height:1.45; }
.profile-subpanel {
  margin-bottom:12px;
  padding:clamp(12px,4vw,19px);
  border:1px solid #626971;
  border-radius:14px;
  background:radial-gradient(ellipse at 65% 0,#1a1e24,#08090b 75%);
}
.profile-subpanel h2 { font-size:clamp(15px,4.7vw,22px); }
.profile-subpanel > .btn { margin-top:12px; }
.profile-sublist { margin:5px 0 0; }
.profile-sublist > :is(div,label) {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:42px;
  padding:8px 0;
  border-bottom:1px solid #303338;
}
.profile-sublist > :last-child { border-bottom:0; }
.profile-sublist dd { margin:0; color:#b8c0cc; text-align:right; }
.profile-sublist input { width:17px; height:17px; accent-color:#f0f2f6; flex:none; }
.profile-account-identity { display:flex; align-items:center; gap:14px; }
.profile-faq details { padding:11px 0; border-bottom:1px solid #303338; }
.profile-faq details:last-child { border-bottom:0; }
.profile-faq summary { cursor:pointer; }
.profile-faq details a { display:inline-block; margin-top:8px; text-decoration:underline; }

.app > .top + .profile-overview {
  padding:clamp(12px,3vw,23px) 4.3% calc(78px + env(safe-area-inset-bottom));
}
.profile-overview { color:#f5f6f7; }
.profile-welcome {
  position:relative;
  isolation:isolate;
  padding:0 5px;
  margin-bottom:clamp(14px,4.7vw,23px);
}
.profile-welcome::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:20% -4.7% 4%;
  background:url("/assets/profile-waves.png") center bottom / 100% auto no-repeat;
  opacity:.58;
  mask-image:linear-gradient(to bottom,transparent,#000 35%,#000 54%,transparent 95%);
}
.profile-welcome-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:clamp(9px,3.4vw,16px); }
.profile-welcome-head .profile-portrait {
  width:clamp(56px,18vw,86px);
  border:1.5px solid #898d91;
  background:#151617;
  box-shadow:0 0 9px #ffffff25;
}
.profile-welcome-head p { color:#afb2b7; font-size:clamp(11px,3.1vw,15px); }
.profile-welcome-head h1 { margin:4px 0; font-size:clamp(18px,5vw,24px); line-height:1.1; }
.profile-edit {
  position:relative;
  display:grid;
  place-items:center;
  width:clamp(31px,8.8vw,42px);
  aspect-ratio:1;
  align-self:center;
  border:1px solid #515458;
  border-radius:35%;
  background:#131517;
  color:inherit;
  padding:0;
}
.profile-edit .nx-icon { width:53%; height:auto; aspect-ratio:1; }
.profile-overview-balance { margin-top:clamp(12px,4vw,19px); }
.profile-overview-balance p { color:#b3b6bb; font-size:clamp(11px,3.15vw,15px); }
.profile-overview-balance > div { display:flex; align-items:center; gap:9px; margin:2px 0; }
.profile-overview-balance strong { font-size:clamp(21px,6vw,29px); }
.profile-overview-balance button { display:grid; place-items:center; border:0; color:inherit; background:none; padding:5px; }
.profile-overview-balance button .nx-icon { width:19px; height:19px; }
.profile-balance-caption span, .profile-credit { color:#9bea18; }
.profile-balance-caption span { margin-left:8px; }
.profile-quick-actions {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(5px,1.9vw,9px);
}
.profile-quick-actions a {
  display:grid;
  place-items:center;
  place-content:center;
  gap:3px;
  min-height:clamp(48px,14.2vw,68px);
  border:1px solid #424548;
  border-radius:clamp(10px,3.3vw,16px);
  background:linear-gradient(140deg,#16181a,#101112);
  text-align:center;
  font-size:clamp(9px,2.65vw,13px);
  white-space:nowrap;
}
.profile-quick-actions a:nth-child(3) { border-color:#9a9da2; background:linear-gradient(140deg,#303438,#1b1e21); }
.profile-quick-actions .nx-icon { width:clamp(17px,4.7vw,23px); height:clamp(17px,4.7vw,23px); }
.profile-overview .home-node-carousel { margin-top:clamp(15px,5vw,24px); }
.profile-overview .home-node-carousel > header, .profile-transactions > header { margin-bottom:clamp(8px,2.5vw,12px); }
.profile-overview .home-node-carousel h2, .profile-transactions h2 { font-size:clamp(13px,3.85vw,19px); }
.profile-overview .home-node-carousel > header a, .profile-transactions header a { font-size:clamp(9px,2.6vw,13px); white-space:nowrap; }
.profile-overview .home-node-card { min-height:clamp(83px,26.9vw,129px); border-color:#484b4f; background:linear-gradient(135deg,#141618,#0e1012); }
.profile-overview .home-node-card h3 { font-size:clamp(9px,3vw,14px); }
.profile-overview .home-node-specs { color:#eef0f3; }
.profile-popular-tag { display:inline-flex; align-items:center; gap:5px; padding:0; background:none; }
.profile-popular-tag::before { content:""; width:6px; aspect-ratio:1; border-radius:50%; background:#16d733; }
.profile-transactions { margin-top:clamp(9px,3.2vw,15px); }
.profile-transactions > header { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.profile-transaction-list {
  list-style:none;
  margin:0;
  padding:3px clamp(7px,3vw,14px);
  border:1px solid #45494e;
  border-radius:clamp(10px,2.8vw,14px);
  background:radial-gradient(ellipse at 72% 110%,#252a30,transparent 54%),#101214;
}
.profile-transaction-list li {
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:clamp(6px,3.3vw,16px);
  min-height:clamp(41px,10.6vw,52px);
  border-bottom:1px solid #292b2e;
  font-size:clamp(10px,2.8vw,14px);
}
.profile-transaction-list li:last-child { border-bottom:0; }
.profile-transaction-list small { display:block; margin-top:2px; color:#bfc2c8; font-size:clamp(8px,2.3vw,11px); }
[data-profile-withdrawal] .withdrawal-status-rejected { color:#ff646c; }
[data-profile-withdrawal] .withdrawal-status-paid { color:#40efb9; }
[data-profile-withdrawal] .withdrawal-status-processing { color:#ffd166; }
.profile-transaction-icon { display:grid; place-items:center; width:clamp(22px,7vw,34px); aspect-ratio:1; border-radius:24%; background:linear-gradient(135deg,#2d3033,#181a1c); }
.profile-overview-bottom {
  position:fixed;
  z-index:5;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:min(100%,480px);
  display:grid;
  grid-template-columns:.8fr 1.27fr;
  gap:clamp(7px,2.7vw,13px);
  padding:10px clamp(14px,4.3vw,21px) calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid #ffffff12;
  background:#08090bc2;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.profile-overview-bottom .btn {
  min-height:clamp(34px,9.2vw,44px);
  padding:5px;
  border-color:#54575c;
  border-radius:clamp(10px,3.1vw,15px);
  background:#121416;
  font-size:clamp(9px,2.9vw,14px);
  white-space:nowrap;
}
.profile-overview-bottom .profile-logout { border-color:#ff4d53; color:#ff555e; background:#221316; }
.profile-overview .profile-portrait { border:0; }
.profile-quick-actions .nx-icon { width:clamp(20px,5.7vw,27px); height:clamp(20px,5.7vw,27px); }
.profile-quick-actions .nx-add {
  background:
    linear-gradient(currentColor,currentColor) center / 73% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1.5px 73% no-repeat;
}
.profile-overview-bottom .profile-logout .nx-icon { filter:brightness(0) saturate(100%) invert(41%) sepia(85%) saturate(1825%) hue-rotate(317deg) brightness(106%); }

.profile-welcome-head h1 { overflow-wrap:anywhere; }
.profile-funds-dialog {
  inset:auto 0 0;
  width:min(100%,480px);
  max-width:none;
  max-height:94dvh;
  margin:0 auto;
  padding:0;
  border:0;
  border-radius:26px 26px 0 0;
  background:#0d1011;
}
body:has(.profile-funds-dialog[open]) { overflow:hidden; }
.profile-edit-dialog {
  --edit-inset:clamp(14px,4.7vw,24px);
  width:min(87%,420px);
  max-height:calc(100dvh - 24px);
  padding:clamp(14px,4vw,21px) var(--edit-inset) clamp(14px,3.7vw,19px);
  border:1px solid #69717a;
  border-radius:clamp(15px,4vw,21px);
  background:radial-gradient(ellipse at 65% 0,#252c34,transparent 24%),#101316;
  box-shadow:inset 0 1px 9px #bfdaff35;
}
.profile-edit-dialog::backdrop { background:#0009; backdrop-filter:blur(3px); }
.profile-edit-dialog form { display:grid; }
.profile-edit-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.profile-edit-heading h2 { font-size:clamp(15px,4.2vw,21px); line-height:1.12; }
.profile-edit-close {
  display:grid;
  place-items:center;
  flex:none;
  width:clamp(26px,7vw,34px);
  aspect-ratio:1;
  min-height:0;
  padding:0;
  border-radius:31%;
  border-color:#444c54;
  background:linear-gradient(135deg,#272e34,#171b1f);
  color:#fff;
}
.profile-edit-wave {
  aspect-ratio:2 / 1;
  margin:4px calc(-1 * var(--edit-inset)) 0;
  background:url("/assets/deploy-wave-transparent.webp") center top / contain no-repeat;
  mask-image:linear-gradient(#000 70%,transparent);
}
.profile-edit-dialog label { font-size:clamp(12px,3vw,15px); margin-bottom:4px; }
.profile-edit-dialog .field {
  width:100%;
  min-height:clamp(36px,9.4vw,47px);
  margin:0 0 clamp(11px,3.3vw,17px);
  padding:5px clamp(10px,3vw,16px);
  border:1px solid #626a74;
  border-radius:8px;
  background:#12161a;
  font-size:16px;
}
.profile-edit-upload {
  position:relative;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:5px;
  min-height:clamp(72px,22vw,109px);
  padding:8px;
  border:1px dashed #bdc3cb;
  border-radius:10px;
  text-align:center;
}
.profile-edit-upload .nx-icon { width:21px; height:21px; }
.profile-edit-upload strong { font-size:clamp(12px,3vw,15px); }
.profile-edit-upload [data-profile-file-name] { max-width:100%; overflow-wrap:anywhere; color:#a1aab5; font-size:clamp(10px,2.5vw,13px); }
.profile-edit-upload input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.profile-edit-upload:focus-within { outline:1px solid #f5f6fa; }
[data-profile-edit-status]:empty { display:none; }
.profile-edit-dialog .profile-edit-save {
  margin:clamp(20px,6.9vw,34px) 0 0;
  min-height:clamp(34px,9vw,45px);
  border-radius:clamp(10px,2.5vw,13px);
  background:linear-gradient(#f5f7fb,#e2e6ef,#f5f7fb);
  color:#08090a;
  font-size:clamp(13px,3.4vw,17px);
}

body.profile-edit-open {
  position:fixed;
  inset:0;
  width:100%;
  overflow:hidden;
}
body.profile-edit-open .app > .profile-overview { overflow:hidden; }

.swap-history-list { list-style:none; margin:0; padding:0; }
.swap-history-list li {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:clamp(5px,3vw,14px);
  min-height:clamp(49px,15vw,72px);
  align-items:center;
  border-bottom:1px solid #4a4d51;
}
.swap-history-list li:last-child { border-bottom:0; }
.swap-history-icon {
  display:grid;
  place-items:center;
  width:clamp(27px,8.8vw,42px);
  aspect-ratio:1;
  border-radius:24%;
  background:linear-gradient(135deg,#292b2d,#151618);
}
.swap-history-icon .nx-icon { width:56%; height:auto; aspect-ratio:1; }
.swap-history-list strong { font-size:clamp(12px,3.65vw,18px); line-height:1.1; }
.swap-history-list small { display:block; color:#d1d5db; font-size:clamp(8px,2.55vw,13px); margin-top:2px; }
.swap-history-pair {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(4px,2.3vw,11px);
  font-size:clamp(9px,2.9vw,14px);
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.swap-history-token { display:inline-flex; align-items:center; gap:clamp(3px,1.2vw,6px); white-space:nowrap; }
.swap-history-token .coin { flex:none; width:clamp(15px,5.7vw,27px); height:auto; aspect-ratio:1; }
.swap-history-arrow { font-size:1.28em; font-weight:400; }
.profile-transaction-list .swap-history-pair { gap:clamp(3px,1.4vw,7px); font-size:clamp(8px,2.65vw,13px); }
.profile-transaction-list .swap-history-token .coin { width:clamp(13px,4.2vw,20px); }

[data-profile-exchange] .profile-credit { justify-self:end; }
[data-profile-exchange] .swap-history-list li > :last-child { justify-self:end; }

#exchange > a[aria-disabled="true"] {
  opacity: .46;
  pointer-events: none;
}
[data-basic-available] { color: #2be2ba; }
.basic-node-heading .basic-node-completed { color: #e7eaef; }

.profile-welcome-head .profile-portrait,
.profile-account-identity .profile-portrait {
  border-radius: 22%;
}
.profile-history-empty {
  display: grid;
  justify-items: center;
  gap: clamp(6px, 2vw, 10px);
  padding: clamp(14px, 4.7vw, 23px) 12px;
  border: 1px solid #4c4e52;
  border-radius: clamp(11px, 3vw, 15px);
  background: radial-gradient(ellipse at bottom right, #24272d, #14161a 60%, #101114);
  text-align: center;
}
.profile-history-empty-icon {
  display: grid;
  width: clamp(42px, 13vw, 65px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #303236;
  border-radius: 28%;
  background: linear-gradient(145deg,#22252a,#17181b);
  color: #b8bbc0;
}
.profile-history-empty-icon svg { width: 52%; }
.profile-history-empty strong { font-size: clamp(13px, 3.25vw, 17px); }
.profile-history-empty p { color: #acafb5; font-size: clamp(11px, 2.8vw, 14px); line-height: 1.35; }
.profile-transactions [hidden] { display: none; }

.defi-content:has(> .defi-history:not([hidden]) > .defi-history-empty) {
  display: flex;
  flex-direction: column;
}
.defi-history:has(> .defi-history-empty):not([hidden]) {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 170px;
  padding: 20px 8px;
}
.defi-history-empty { text-align: center; }
.defi-history-empty h2 {
  margin: 0;
  color: #f5f6f8;
  font-size: clamp(17px, 5.1vw, 25px);
  line-height: 1.2;
}
.defi-history-empty p {
  margin: clamp(8px, 2.6vw, 13px) 0 0;
  color: #acb3bf;
  font-size: clamp(12px, 3.55vw, 17px);
  line-height: 1.35;
}
