:root{--bg:#090b14;--p:#121625;--line:#2a3048;--text:#f6f7ff;--muted:#929ab1;--violet:#9284ff;--cyan:#62ddea}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 90% 0,#30256a44,transparent 30%),radial-gradient(circle at 0 100%,#0b849944,transparent 30%),var(--bg);color:var(--text);font-family:Alexandria,sans-serif}.shell{width:min(1380px,calc(100% - 44px));margin:auto;padding:22px 0 60px}header{height:66px;border:1px solid var(--line);border-radius:18px;background:#111527cc;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.brand{font-size:15px;font-weight:700}.brand i,.token i,.identity i{display:inline-grid;place-items:center;width:32px;height:32px;background:linear-gradient(135deg,#d1ccff,#7665f5);color:#171629;border-radius:10px;font:20px Georgia;margin-left:9px}.brand b{color:var(--violet)}.mode-nav{display:flex;gap:8px;background:#0c0f1c;padding:5px;border-radius:12px;border:1px solid var(--line)}.mode-nav button{background:transparent;color:var(--muted);padding:8px 14px;border-radius:8px;font-size:12px;font-weight:600;transition:.2s}.mode-nav button.active{background:linear-gradient(120deg,#7869ed,#998aff);color:#fff;box-shadow:0 4px 15px #7869ed44}.network{font:11px DM Mono;color:#7ae7c1;background:#0a0e1c;padding:9px 12px;border-radius:30px;border:1px solid var(--line)}.network small{color:#77809a;margin-right:5px}button{font-family:Alexandria;border:0;cursor:pointer}header button,.builder footer button{background:linear-gradient(120deg,#7869ed,#a496ff);padding:11px 15px;border-radius:10px;color:#fff;font-weight:700;font-size:11px}.hero{min-height:360px;padding:54px 7%;display:flex;justify-content:space-between;align-items:center}.hero>div:first-child{max-width:640px}.eyebrow{font-size:11px;color:#9b91fc;font-weight:700;margin:0 0 10px}.hero h1{font-size:clamp(42px,5vw,70px);line-height:1.2;letter-spacing:-3px;margin:0}.hero h1 em{font-style:normal;color:#75dfe9}.hero p:not(.eyebrow){font-size:14px;line-height:2;color:#a8afc3;max-width:570px}.facts{display:flex;gap:17px;font-size:10px;color:#c5cada;margin-top:22px}.orbit{width:280px;height:260px;position:relative}.ring{position:absolute;inset:25px 0;border:1px solid #8c80ff55;border-radius:50%;transform:rotate(-28deg)}.coin{position:absolute;inset:72px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 30% 25%,#d1ccff,#7565ef 55%,#30266f);box-shadow:0 0 0 10px #8173ff0d,0 25px 55px #000;font:bold 27px DM Mono;letter-spacing:-2px}.orbit label{position:absolute;background:#171c30;border:1px solid var(--line);border-radius:7px;padding:7px 9px;font:10px DM Mono;color:#b9b3ff}.orbit label:first-of-type{top:20px;left:0}.orbit label:last-child{bottom:20px;right:0;color:#7ee6ec}.work{display:grid;grid-template-columns:225px minmax(420px,1fr) 280px;gap:16px;align-items:start}.steps,.builder,.preview{background:#121625dd;border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 55px #0003}.steps{padding:19px}.step-head,.preview-head{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.step-head b{font:11px DM Mono;color:#c6bfff}.steps ol{padding:14px 0;margin:0;list-style:none}.steps li{display:flex;gap:11px;padding:12px 0;color:#6d758c;cursor:pointer}.steps li i{font:11px DM Mono;font-style:normal}.steps li b,.steps li small{display:block}.steps li b{font-size:12px}.steps li small{font-size:10px;margin-top:4px}.steps li.active{color:#f5f4ff}.steps li.active i{color:#a397ff}.safe{font-size:10px;color:#939cb2;line-height:1.8;border-top:1px solid var(--line);padding-top:14px;margin:0}.safe b{color:#d8dce9}.builder{padding:28px;min-height:485px}.builder-head{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px}.builder h2{font-size:20px;margin:0}.link{background:none!important;color:#aab2c8!important;padding:0!important}.page{display:none;padding-top:25px}.page.active{display:block;animation:in .3s}.grid,.alloc{display:grid;grid-template-columns:1fr 1fr;gap:17px}label{font-size:12px;font-weight:600}.full{grid-column:1/-1}input,select{display:block;width:100%;color:#eef0f8;background:#0c1020;border:1px solid #2a3048;border-radius:9px;margin-top:8px;padding:12px;font:13px Alexandria;outline:none}input:focus,select:focus{border-color:#8d80ff}small{font-size:9px;color:#747d95;font-weight:400}.ltr{direction:ltr;text-align:left}.identity{display:flex;align-items:center;gap:10px;margin-top:22px;padding:12px;border:1px solid #343752;background:#14202d;border-radius:11px}.identity i,.token i{font:bold 15px DM Mono;border-radius:50%;margin:0}.identity span b,.identity span small,.token b,.token small{display:block}.identity em{font-size:10px;color:#6fe0b8;font-style:normal;margin-right:auto}.suffix{position:relative}.suffix input{padding-left:80px}.suffix b{position:absolute;left:12px;top:22px;font:11px DM Mono;color:#9f97ff}.allocation-title{display:flex;justify-content:space-between;font-size:12px;margin:24px 0 11px}.allocation-title b{font:11px DM Mono;color:#73e3ba}.alloc label{background:#0d1120;border:1px solid #282e44;border-radius:9px;padding:10px;font-size:11px}.alloc input{display:inline;width:35px;padding:0;margin:0 8px;background:none;border:0}.page p#warn{height:15px;color:#ee91a6;font-size:10px}.features{display:grid;gap:10px;margin-bottom:17px}.features label{display:flex;gap:11px;align-items:center;background:#0d1120;border:1px solid #282e44;border-radius:10px;padding:12px}.features input{position:absolute;opacity:0}.features i{width:30px;height:17px;border-radius:20px;background:#3c4258;position:relative;flex:none}.features i:after{content:'';position:absolute;width:11px;height:11px;border-radius:50%;background:#b4bbca;top:3px;right:3px}.features input:checked+i{background:#796cf0}.features input:checked+i:after{right:16px;background:white}.features b,.features small{display:block}.features b{font-size:12px}.features small{margin-top:4px}.review{text-align:center;padding:25px 10px}.review-box{background:#0d1120;border:1px solid var(--line);border-radius:16px;padding:24px}.review-box i{font-size:32px;color:#74e6e8;display:block;margin-bottom:10px}.review-box h3{font-size:20px;margin:0 0 8px}.review-box p{font-size:12px;color:var(--muted);margin:0 0 20px}.summary-details{display:grid;gap:10px;background:#14192b;padding:16px;border-radius:12px;border:1px solid #283049;margin-bottom:20px;text-align:right;font-size:12px}.summary-details div{display:flex;justify-content:space-between;border-bottom:1px solid #212940;padding-bottom:6px}.summary-details div:last-child{border-bottom:0;padding-bottom:0}.deploy-cta{margin-top:15px}.primary-btn{background:linear-gradient(135deg,#7869ed,#a496ff);color:#fff;font-weight:700;padding:14px 28px;border-radius:12px;font-size:14px;box-shadow:0 8px 25px #7869ed55;transition:.2s;width:100%}.primary-btn:hover{transform:translateY(-2px);box-shadow:0 12px 30px #7869ed77}.deploy-status{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#74e6e8;background:#0d1c28;padding:12px;border-radius:10px;border:1px solid #1a3f4e}.spinner{width:18px;height:18px;border:2px solid #74e6e833;border-top-color:#74e6e8;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.builder footer{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;display:flex;justify-content:space-between}.builder footer .link:disabled{opacity:.3}.preview{padding:18px}.preview-head b{color:#70e8bd;font:10px DM Mono}.token{display:flex;align-items:center;gap:10px;padding:19px 0 15px;border-bottom:1px solid var(--line)}.token b{font-size:13px}.token small{font:11px DM Mono;color:#9c95fb}.token em{margin-right:auto;font-style:normal;color:#8c94a9}.stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:15px 0}.stats span{background:#0d1120;padding:10px;border-radius:8px;font-size:9px;color:#7b8398}.stats b,.stats small{display:block;margin-top:6px}.stats b{font:12px DM Mono;color:#f3f2f8}.stats small{font:9px DM Mono;color:#958ef5}.dist{padding:14px 0;border-top:1px solid var(--line);font-size:11px}.dist>div{display:flex;justify-content:space-between}.dist section{display:flex;height:8px;margin:12px 0;overflow:hidden;border-radius:10px}.dist i{display:block;transition:.2s}.dist i:nth-child(1){width:40%;background:#897bff}.dist i:nth-child(2){width:30%;background:#5bdbeb}.dist i:nth-child(3){width:20%;background:#eec16e}.dist i:nth-child(4){width:10%;background:#eb7f98}.dist small{font-size:8px}.badges{border-top:1px solid var(--line);padding:14px 0;display:flex;flex-wrap:wrap;gap:5px}.badges span{padding:5px 7px;background:#182b39;color:#7ee0bc;border-radius:6px;font-size:9px}.badges span:last-child{color:#8d95aa;background:#1a1e2c}.cost{border-top:1px solid var(--line);padding-top:14px;font-size:10px;color:#7d859b}.cost b{display:block;margin-top:7px;font:12px DM Mono;color:#efc778}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,150px);transition:.3s;background:#e9e6ff;color:#17142d;padding:12px 18px;border-radius:9px;font-size:11px;font-weight:bold;z-index:9999}#toast.show{transform:translate(-50%,0)}.manage-shell{background:#121625dd;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 18px 55px #0003;animation:in .3s}.manage-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}.manage-header h2{margin:0;font-size:22px}.history-container select{width:280px;background:#0d1120;border:1px solid var(--line);color:var(--text);padding:10px;border-radius:10px}.contract-input-bar{margin-bottom:24px}.input-group{display:flex;gap:10px;margin-top:8px}.input-group input{margin-top:0;flex:1}.btn{padding:12px 20px;border-radius:10px;font-weight:700;font-size:12px;background:#232b43;color:var(--text);transition:.2s;border:1px solid #374160}.btn:hover{background:#2c3755}.btn.primary{background:linear-gradient(135deg,#7869ed,#a496ff);color:#fff;border:0}.btn.warning{background:#3d2f10;color:#ffda73;border:1px solid #6b521b}.btn.warning:hover{background:#4d3b14}.btn.danger{background:#3d141d;color:#ff738a;border:1px solid #6b2030}.btn.danger:hover{background:#4d1924}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:#0c1020;border:1px solid #252c45;border-radius:14px;padding:18px}.stat-label{font-size:11px;color:var(--muted);display:block;margin-bottom:8px}.stat-value{font-size:18px;font-weight:700;color:#fff;margin-bottom:4px}.monospace{font-family:'DM Mono',monospace;word-break:break-all}.badge{padding:4px 9px;border-radius:6px;font-size:11px;font-weight:bold}.badge.active{background:#11352b;color:#67e2b7;border:1px solid #1c5242}.badge.paused{background:#3c1922;color:#ff8598;border:1px solid #5a2533}.actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-bottom:24px}.action-card{background:#0d1120;border:1px solid #282e44;border-radius:16px;padding:20px;display:flex;flex-direction:column;justify-content:space-between}.action-header h4{margin:0 0 6px;font-size:14px;color:#e3e7f5}.action-header p{margin:0 0 16px;font-size:11px;color:var(--muted);line-height:1.6}.action-body{display:flex;flex-direction:column;gap:10px}.quick-links{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:18px}.link-btn{background:#101526;border:1px solid #2a324d;color:#949db5;padding:10px 16px;border-radius:10px;font-size:11px;text-decoration:none;transition:.2s;display:inline-flex;align-items:center}.link-btn:hover{color:#fff;border-color:#7869ed}.action-card.activation-card{background:linear-gradient(145deg,#0d1528,#121a36);border:1px solid #3d4a75;box-shadow:0 8px 30px #6252eb22}.activation-status-box{margin-top:8px;margin-bottom:12px}.highlight-pulse{animation:pulseGlow 2s infinite}@keyframes pulseGlow{0%,100%{box-shadow:0 0 15px #7869ed66}50%{box-shadow:0 0 25px #7869edaa}}.monadvision-box{margin-top:16px;background:#0a0e1c;border:1px solid #242c46;border-radius:12px;padding:14px}.verify-cmd{background:#05070e;border:1px solid #1a233b;padding:10px 14px;border-radius:8px;font-size:11px;color:#7ae7c1;word-break:break-all;user-select:all;margin-top:6px}.logo-picker-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.logo-opt-btn{background:#0c1020;border:1px solid #282e44;color:#a0a7bd;padding:8px 12px;border-radius:8px;font-size:11px;cursor:pointer;transition:.2s}.logo-opt-btn.active{background:linear-gradient(135deg,#7869ed,#a496ff);color:#fff;border-color:#a496ff;box-shadow:0 4px 12px #7869ed44}.logo-input-box{margin-top:10px}.logo-presets-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-top:12px}.logo-preset-item{background:#0c1020;border:1px solid #282e44;border-radius:10px;padding:10px;text-align:center;cursor:pointer;transition:.2s}.logo-preset-item img{width:42px;height:42px;object-fit:contain;margin-bottom:6px}.logo-preset-item span{display:block;font-size:10px;color:#b2b9cb}.logo-preset-item.active{border-color:#7869ed;background:#151b32;box-shadow:0 4px 15px #7869ed33}.manage-logo-preview-box{display:flex;align-items:center;gap:12px;background:#0c1020;border:1px solid #252c45;padding:12px;border-radius:12px}.manage-logo-avatar{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#d1ccff,#7665f5);color:#171629;display:grid;place-items:center;font:bold 20px Georgia;overflow:hidden}.manage-logo-avatar img{width:100%;height:100%;object-fit:cover}
/* Liquidity Engine Style (KingPulse Unique) */
.engine-liquidity-card {
  background: rgba(18, 22, 37, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(122, 231, 193, 0.2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.engine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(122, 231, 193, 0.1);
}

.engine-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.engine-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #7ae7c1, #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(122, 231, 193, 0.4));
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(122, 231, 193, 0.4)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(122, 231, 193, 0.8)); }
}

.engine-header h4 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.5px;
}
.engine-header p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #8c9bb4;
}

#engine-native-icon, .engine-node-top img, .lock-token-icon img, .engine-token-select-btn img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.engine-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.engine-network-select-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 8, 18, 0.6);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(122, 231, 193, 0.15);
}

.engine-bar-label {
  font-size: 11px;
  color: var(--muted);
}

.engine-network-select-box select {
  background: transparent;
  border: none;
  color: #7ae7c1;
  font-family: Alexandria, sans-serif;
  font-size: 11px;
  margin-top: 0;
  padding: 4px;
  outline: none;
  cursor: pointer;
}

.engine-router-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 8, 18, 0.6);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(122, 231, 193, 0.1);
}

.engine-router-box input {
  background: transparent;
  border: none;
  color: #8c9bb4;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  width: 100px;
  outline: none;
  text-align: right;
}

.engine-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ae7c1;
  box-shadow: 0 0 8px #7ae7c1;
}

.engine-body {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.engine-nodes-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.engine-node {
  width: 100%;
  background: rgba(10, 14, 28, 0.8);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(140, 155, 180, 0.15);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.engine-node.primary-node {
  border-color: rgba(122, 231, 193, 0.3);
  box-shadow: 0 0 30px rgba(122, 231, 193, 0.05);
}

.engine-node:focus-within {
  border-color: #7ae7c1;
  box-shadow: 0 0 20px rgba(122, 231, 193, 0.1);
}

.engine-node-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.engine-symbol {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.engine-input {
  width: 100%;
  background: transparent;
  border: none;
  text-align: center;
  font-size: 42px;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  color: #fff;
  outline: none;
  padding: 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.engine-input.primary-input {
  color: #7ae7c1;
  text-shadow: 0 0 20px rgba(122, 231, 193, 0.3);
}

.engine-input::placeholder {
  color: rgba(140, 155, 180, 0.3);
}

.engine-node-bottom {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #8c9bb4;
  margin-top: 16px;
}

.engine-node-bottom b {
  color: #fff;
  font-family: 'DM Mono', monospace;
}

.engine-percentage-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.engine-pct-btn {
  background: rgba(122, 231, 193, 0.1);
  border: 1px solid rgba(122, 231, 193, 0.2);
  color: #7ae7c1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.engine-pct-btn:hover {
  background: rgba(122, 231, 193, 0.2);
  transform: translateY(-2px);
}

.engine-connection {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin: -10px 0;
}

.engine-pulse-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(122, 231, 193, 0.5), transparent);
}

.engine-pulse-dot {
  width: 8px;
  height: 8px;
  background: #7ae7c1;
  border-radius: 50%;
  box-shadow: 0 0 15px #7ae7c1;
  position: absolute;
  left: -3px;
  animation: travelDot 2s infinite ease-in-out;
}

@keyframes travelDot {
  0% { top: 0; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.engine-rate-badge {
  background: rgba(6, 8, 18, 0.8);
  border: 1px solid rgba(122, 231, 193, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: #7ae7c1;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.engine-action-container {
  width: 100%;
  margin-top: 30px;
}

.engine-inject-btn {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #00b4d8, #7ae7c1);
  border: none;
  border-radius: 16px;
  padding: 20px;
  font-size: 16px;
  font-weight: 800;
  color: #060812;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(122, 231, 193, 0.3);
}

.engine-inject-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(122, 231, 193, 0.5);
}

.engine-inject-btn:disabled {
  background: #182035;
  color: #4a5a7a;
  box-shadow: none;
  cursor: not-allowed;
}

.inject-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

#inject-btn-text {
  position: relative;
  z-index: 2;
}

/* Token & LP Locker Custom Styles */
.locker-token-info-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 16, 32, 0.8);
  border: 1px solid rgba(122, 231, 193, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
}

.locker-token-info-box .info-item span {
  font-size: 11px;
  color: var(--muted);
}
.locker-token-info-box .info-item b {
  display: block;
  font-size: 14px;
  color: #7ae7c1;
  margin-top: 2px;
}

.locker-pct-btn, .locker-dur-btn {
  background: #0d1222;
  border: 1px solid #283049;
  color: #a0aabf;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.locker-pct-btn:hover, .locker-dur-btn:hover {
  border-color: #7869ed;
  color: #fff;
}

.locker-dur-btn.active {
  background: linear-gradient(135deg, #7869ed, #62ddea);
  color: #fff;
  border-color: #62ddea;
  box-shadow: 0 4px 15px rgba(120, 105, 237, 0.4);
}

.locker-summary-card {
  background: rgba(8, 12, 24, 0.9);
  border: 1px solid #252e46;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.locker-summary-card .summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.locker-summary-card .summary-line b {
  font-family: 'DM Mono', monospace;
  color: #fff;
}

.active-locks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.lock-card {
  background: rgba(14, 19, 35, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(122, 231, 193, 0.15);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s, border-color 0.3s;
}

.lock-card:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 231, 193, 0.4);
}

.lock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.lock-token-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lock-token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7869ed, #62ddea);
  color: #fff;
  display: grid;
  place-items: center;
  font: bold 14px DM Mono;
}

.lock-countdown-box {
  background: rgba(6, 9, 18, 0.9);
  border: 1px solid rgba(122, 231, 193, 0.2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin: 12px 0;
}

.lock-countdown-label {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.lock-countdown-digits {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #7ae7c1;
  letter-spacing: 1px;
}

.lock-countdown-digits.unlocked {
  color: #6fe0b8;
  animation: pulseUnlock 1.5s infinite;
}

@keyframes pulseUnlock {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.lock-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.lock-meta-row b {
  font-family: 'DM Mono', monospace;
  color: #fff;
}

.lock-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.locker-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(12, 16, 32, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Engine Token Selector Button & Modal Styles */
.engine-token-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 28, 54, 0.8);
  border: 1px solid rgba(122, 231, 193, 0.3);
  padding: 6px 14px;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.engine-token-select-btn:hover {
  background: rgba(30, 42, 78, 0.9);
  border-color: #7ae7c1;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122, 231, 193, 0.2);
}

.engine-select-arrow {
  font-size: 10px;
  color: #7ae7c1;
  margin-right: 4px;
}

.engine-address-tag {
  font-size: 10px;
  color: #7ae7c1;
  background: rgba(10, 16, 32, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(122, 231, 193, 0.15);
}

/* Modal Overlay & Content */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.8);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 99999;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.hidden {
  display: none !important;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content.glass-modal {
  width: min(500px, 94vw);
  max-height: 90vh;
  background: #0f1527;
  border: 1px solid rgba(122, 231, 193, 0.25);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(122, 231, 193, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(90vh - 80px);
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 231, 193, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(122, 231, 193, 0.3);
  border-radius: 6px;
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.wallet-modal {
  width: min(520px, 94vw) !important;
}

.wallet-transaction-modal {
  width: min(500px, 94vw) !important;
}

.wallet-transaction-modal .modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.wallet-transaction-modal .modal-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.wallet-transaction-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 10px;
}

.wallet-transaction-details > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.wallet-transaction-details span {
  color: var(--muted);
}

.wallet-transaction-details b,
.wallet-transaction-details code {
  color: var(--text);
  direction: ltr;
  overflow-wrap: anywhere;
  text-align: left;
}

.wallet-transaction-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.wallet-transaction-actions button {
  flex: 1;
  min-height: 44px;
}

.wallet-modal-body {
  padding: 16px 2px 4px;
}

.wallet-choice-list,
.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-choice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(122, 231, 193, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: right;
  cursor: pointer;
}

.wallet-choice:hover {
  border-color: rgba(122, 231, 193, 0.65);
  background: rgba(122, 231, 193, 0.08);
}

.wallet-choice strong {
  font-size: 15px;
}

.wallet-choice span,
.wallet-security-note,
.wallet-form p,
.wallet-modal .modal-header p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.wallet-modal .modal-header h2,
.wallet-form h3 {
  margin: 0;
  font-size: 17px;
}

.wallet-form label {
  color: var(--muted);
  font-size: 12px;
}

.wallet-form input:not([type="checkbox"]),
.wallet-form textarea {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(4, 7, 16, 0.65);
  color: var(--text);
  font: inherit;
}

.wallet-form textarea {
  direction: ltr;
  text-align: left;
  resize: vertical;
}

.wallet-backup-phrase {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 115, 138, 0.35);
  border-radius: 12px;
  background: rgba(255, 115, 138, 0.07);
  color: #fff;
  direction: ltr;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  text-align: center;
  user-select: all;
}

.wallet-warning {
  color: #ff9dad !important;
}

.wallet-acknowledgement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text) !important;
}

.wallet-acknowledgement input {
  margin-top: 3px;
  accent-color: #7ae7c1;
}

.wallet-form-actions {
  display: flex;
  gap: 8px;
}

.wallet-form-actions > button {
  flex: 1;
}

.wallet-text-button,
.wallet-back-button {
  align-self: flex-start;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #7ae7c1;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.wallet-modal-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.wallet-current-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(122, 231, 193, 0.18);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
}

.wallet-current-account code {
  flex: 1 1 180px;
  direction: ltr;
  overflow-wrap: anywhere;
  color: var(--text);
}

.wallet-discovered-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.wallet-discovered-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(122, 231, 193, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-align: right;
  text-decoration: none;
}

.wallet-option-button {
  width: 100%;
  font: inherit;
}

.wallet-discovered-option strong {
  color: var(--text);
  font-size: 12px;
}

.wallet-option-status {
  color: var(--muted);
  font-size: 10px;
}

.wallet-option-status.is-available {
  color: #7ae7c1;
}

.wallet-search-label {
  margin: 4px 0 -4px;
  color: var(--muted);
  font-size: 11px;
}

.wallet-search-input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(122, 231, 193, 0.2);
  border-radius: 9px;
  background: rgba(4, 7, 16, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.wallet-search-input:focus {
  border-color: rgba(122, 231, 193, 0.7);
  outline: 2px solid rgba(122, 231, 193, 0.15);
}

.wallet-search-empty {
  padding: 8px;
  text-align: center;
}

.wallet-discovered-list > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wallet-discovered-option:hover {
  border-color: rgba(122, 231, 193, 0.65);
}

.wallet-family-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-family-options section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(122, 231, 193, 0.16);
  border-radius: 12px;
}

.wallet-family-options h3 {
  margin: 0;
  font-size: 13px;
}

.wallet-family-options p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.wallet-family-options .btn {
  width: 100%;
  font-size: 11px;
}

.wallet-page {
  margin-top: 18px;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid #e7bf5840;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 95% 0, #a8792222, transparent 35%),
    linear-gradient(145deg, #121a22f2, #111625f2);
  box-shadow: 0 20px 60px #0004, inset 0 1px #fff1b80a;
}

.wallet-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: auto;
  padding-bottom: 20px;
  padding-inline: 0;
  border-bottom: 1px solid #e7bf5838;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wallet-page-header h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.wallet-page-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.wallet-page-header .eyebrow {
  margin: 0 0 6px;
  color: var(--royal-gold-light, #fff1b8);
}

.wallet-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-page-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
}

.wallet-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.wallet-page .wallet-assets-section,
.wallet-page .wallet-receive-card {
  border-color: #e7bf5830;
  background: #0d121bcc;
}

.wallet-page .wallet-section-heading h3,
.wallet-page .wallet-assets-section > h3 {
  color: #f6e7bd;
}

.info-page {
  margin-top: 18px;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid #e7bf5840;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 95% 0, #a8792218, transparent 34%),
    linear-gradient(145deg, #121a22f2, #111625f2);
  box-shadow: 0 20px 60px #0004, inset 0 1px #fff1b80a;
}

.info-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: auto;
  padding: 8px 0 22px;
  border: 0;
  border-bottom: 1px solid #e7bf5838;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.info-page-header h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.info-page-header p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.info-page-header .eyebrow {
  color: var(--royal-gold-light, #fff1b8);
}

.info-page-header img {
  flex: none;
  filter: drop-shadow(0 0 20px #e7bf5840);
}

.info-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid #ffffff12;
}

.info-page-nav a {
  padding: 9px 12px;
  border: 1px solid #e7bf5830;
  border-radius: 10px;
  color: #f3e4bc;
  font-size: 11px;
  text-decoration: none;
  background: #171b25;
  transition: border-color .2s, background .2s;
}

.info-page-nav a:hover {
  border-color: #e7bf58a0;
  background: #332a19;
}

.info-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
}

.info-card {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: #0d121bcc;
  scroll-margin-top: 20px;
}

.info-card-featured,
.info-card-wide,
.info-support-card {
  grid-column: 1 / -1;
}

.info-card-featured {
  border-color: #e7bf5840;
  background: linear-gradient(135deg, #352a172e, #0d121bcc 58%);
}

.info-card .eyebrow {
  margin-bottom: 8px;
  color: var(--royal-gold);
}

.info-card h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.5vw, 23px);
}

.info-card h3 {
  margin: 18px 0 6px;
  color: #f1d995;
  font-size: 13px;
}

.info-card p,
.info-card li {
  color: #b9c0cf;
  font-size: 12px;
  line-height: 1.95;
}

.info-card p {
  margin: 8px 0;
}

.info-card ul,
.info-card ol {
  display: grid;
  gap: 8px;
  padding-inline-start: 22px;
  margin: 12px 0 0;
}

.info-card li b {
  color: #f3e4bc;
}

.info-policy-note,
.info-callout {
  padding: 12px 14px;
  border: 1px solid #e7bf5833;
  border-radius: 10px;
  background: #332a191f;
}

.info-policy-note {
  color: #f0d99d !important;
}

.info-card a:not(.btn) {
  color: #f0d27b;
  overflow-wrap: anywhere;
}

.info-callout {
  margin-top: 16px;
  color: #d9d2bd;
  font-size: 12px;
  line-height: 1.8;
}

.info-callout b {
  color: #f3d77f;
}

.info-support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-color: #e7bf5840;
  background: linear-gradient(120deg, #382d1b38, #0d121bcc 65%);
}

.info-support-link {
  width: auto;
  max-width: 100%;
  margin-top: 12px;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 600px) {
  .wallet-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-page-header-actions > button {
    flex: 1 1 150px;
  }

  .wallet-page-grid {
    grid-template-columns: 1fr;
  }

  .info-page-header img {
    width: 48px;
    height: 48px;
  }

  .info-page-grid {
    grid-template-columns: 1fr;
  }

  .info-card-featured,
  .info-card-wide,
  .info-support-card {
    grid-column: auto;
  }

  .wallet-portfolio-token {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wallet-portfolio-balance {
    margin-inline-start: auto;
  }
}

.wallet-receive-card,
.wallet-assets-section,
.wallet-inline-panel {
  padding: 14px;
  border: 1px solid rgba(122, 231, 193, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.wallet-portfolio-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

.wallet-portfolio-summary > span,
.wallet-receive-card > p {
  color: var(--muted);
}

.wallet-portfolio-summary > strong {
  color: #7ae7c1;
}

.wallet-portfolio-summary select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 231, 193, 0.24);
  border-radius: 9px;
  background: #0b1020;
  color: var(--text);
  font: inherit;
}

.wallet-portfolio-summary code {
  direction: ltr;
  overflow-wrap: anywhere;
  color: var(--text);
}

.wallet-portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-portfolio-actions > * {
  flex: 1 1 140px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.wallet-receive-card > p {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
}

.wallet-assets-section h3 {
  margin: 0;
  font-size: 14px;
}

.wallet-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wallet-portfolio-token-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.wallet-portfolio-token {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.wallet-portfolio-token-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wallet-portfolio-token-meta strong {
  font-size: 13px;
}

.wallet-portfolio-token-meta span,
.wallet-token-remove {
  color: var(--muted);
  font-size: 10px;
}

.wallet-portfolio-balance {
  direction: ltr;
  font-size: 12px;
}

.wallet-connected-account code {
  direction: ltr;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
}

.wallet-token-remove {
  border: 0;
  background: none;
  color: #ff9dad;
  cursor: pointer;
}

.wallet-inline-panel form,
.wallet-send-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wallet-send-form {
  margin-top: 12px;
}

.wallet-inline-panel label,
.wallet-send-form label {
  color: var(--muted);
  font-size: 11px;
}

.wallet-inline-panel input,
.wallet-send-form input,
.wallet-send-form select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(4, 7, 16, 0.65);
  color: var(--text);
  font: inherit;
}

.wallet-send-form input.ltr,
.wallet-inline-panel input.ltr {
  direction: ltr;
  text-align: left;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: 0.2s;
}

.modal-close-btn:hover {
  background: #3d141d;
  color: #ff738a;
}

.tokens-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.token-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 27, 48, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.token-item-card:hover {
  background: rgba(30, 42, 75, 0.9);
  border-color: rgba(122, 231, 193, 0.4);
  transform: translateX(-2px);
}

.token-item-card.selected {
  border-color: #7ae7c1;
  background: rgba(25, 45, 70, 0.9);
  box-shadow: 0 0 15px rgba(122, 231, 193, 0.2);
}

.token-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7869ed, #62ddea);
  color: #fff;
  display: grid;
  place-items: center;
  font: bold 14px DM Mono;
  overflow: hidden;
  flex-shrink: 0;
}

.token-item-icon img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: contain;
}

.token-item-info b {
  display: block;
  font-size: 13px;
  color: #fff;
}

.token-item-info small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.token-item-right {
  text-align: left;
}

.token-item-right b {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #7ae7c1;
}

.token-item-right small {
  font-size: 9px;
  color: var(--muted);
}

/* ==========================================================
   MY LIQUIDITY POSITIONS & YIELD DASHBOARD STYLES
   ========================================================== */
.lp-positions-card {
  background: linear-gradient(145deg, rgba(14, 20, 36, 0.95), rgba(20, 32, 54, 0.9));
  border: 1px solid rgba(122, 231, 193, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lp-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-positions-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.lp-position-item {
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lp-position-item:hover {
  border-color: rgba(122, 231, 193, 0.4);
  box-shadow: 0 8px 24px rgba(122, 231, 193, 0.08);
  transform: translateY(-2px);
}

.lp-pair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.token-double-icons {
  display: flex;
  align-items: center;
}

.double-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0d1322;
  display: grid;
  place-items: center;
  font: bold 12px 'DM Mono', monospace;
  color: #fff;
  background: linear-gradient(135deg, #7869ed, #62ddea);
  overflow: hidden;
  flex-shrink: 0;
}

.double-icon.second {
  margin-right: -10px;
  background: linear-gradient(135deg, #f5b041, #ff7675);
}

.double-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: 50%;
}

.lp-pair-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-pair-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.lp-pair-address-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  transition: color 0.2s;
}

.lp-pair-address-link:hover {
  color: #7ae7c1;
}

.lp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(122, 231, 193, 0.12);
  color: #7ae7c1;
  border: 1px solid rgba(122, 231, 193, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.lp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  background: rgba(6, 8, 16, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.lp-metric-box span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.lp-metric-box b {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #fff;
}

.lp-metric-box b.highlight {
  color: #7ae7c1;
}

.lp-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-remove-lp {
  background: linear-gradient(135deg, #e17055, #d63031);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(214, 48, 49, 0.25);
}

.btn-remove-lp:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-lock-lp-link {
  background: rgba(122, 231, 193, 0.1);
  color: #7ae7c1;
  border: 1px solid rgba(122, 231, 193, 0.25);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-lock-lp-link:hover {
  background: rgba(122, 231, 193, 0.2);
  color: #fff;
}

.btn-add-more-lp {
  background: rgba(255, 255, 255, 0.06);
  color: #c8d6e5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-more-lp:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ==========================================================
   REMOVE LIQUIDITY MODAL STYLES
   ========================================================== */
.remove-liq-modal-content {
  max-width: 480px;
  width: min(480px, 94vw);
}

.remove-pair-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 8, 16, 0.6);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.remove-pair-names {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.remove-pair-badge {
  background: rgba(122, 231, 193, 0.15);
  color: #7ae7c1;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
}

.remove-amount-section {
  text-align: center;
  background: rgba(10, 14, 26, 0.7);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.remove-pct-num {
  font-family: 'DM Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: #7ae7c1;
  display: block;
  line-height: 1.1;
}

.remove-pct-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.remove-pct-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c8d6e5;
  padding: 6px;
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-pct-btn:hover {
  background: rgba(122, 231, 193, 0.15);
  color: #fff;
}

.remove-pct-btn.active {
  background: #7ae7c1;
  color: #071018;
  font-weight: 700;
  border-color: #7ae7c1;
}

.remove-slider {
  width: 100%;
  accent-color: #7ae7c1;
  cursor: pointer;
  margin-top: 6px;
}

.remove-outputs-box {
  background: rgba(6, 8, 16, 0.6);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.remove-output-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.remove-output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.remove-output-row:last-child {
  border-bottom: none;
}

.remove-output-token {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-mini-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7869ed, #62ddea);
  display: grid;
  place-items: center;
  font: bold 10px 'DM Mono', monospace;
  color: #fff;
}

.remove-output-val {
  font-size: 14px;
  font-weight: 700;
  color: #7ae7c1;
}

.remove-action-box {
  margin-top: 16px;
  position: sticky;
  bottom: 0;
  background: #0f1527;
  padding-top: 6px;
}

.remove-confirm-btn {
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
  width: 100%;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 12px;
}

.remove-confirm-btn:hover {
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  color: #0b111e;
}

/* ==========================================================
   SPA ROUTER & NAVIGATION STYLES
   ========================================================== */
.mode-nav {
  display: flex;
  gap: 6px;
  background: #0c0f1c;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.mode-nav a, .mode-nav button, .mode-nav-btn {
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: Alexandria, sans-serif;
  user-select: none;
}

.mode-nav a:hover, .mode-nav button:hover, .mode-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-nav a.active, .mode-nav button.active, .mode-nav-btn.active {
  background: linear-gradient(120deg, #7869ed, #998aff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(120, 105, 237, 0.35);
}

.section-switcher-trigger {
  position: fixed;
  z-index: 900;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(120deg, #7869ed, #998aff);
  border: 1px solid #b8adff;
  border-radius: 999px;
  box-shadow: 0 8px 28px #080a14aa, 0 4px 16px #7869ed55;
  font-size: 12px;
  font-weight: 700;
}

.section-switcher-trigger > span:first-child { font-size: 20px; line-height: 1; }
.section-switcher-trigger kbd,
.section-switcher-hint kbd,
.section-switcher-search kbd {
  padding: 3px 6px;
  border: 1px solid #ffffff40;
  border-radius: 5px;
  color: #eeeaff;
  background: #17152f55;
  font: 10px 'DM Mono', monospace;
}

.section-switcher-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: min(640px, calc(100dvh - 32px));
  padding: 18px;
  flex-direction: column;
  gap: 14px;
  color: var(--text);
  background: #101526;
  border: 1px solid #454066;
  border-radius: 18px;
  box-shadow: 0 24px 90px #000b;
}

.section-switcher-dialog[open] { display: flex; }
.section-switcher-dialog::backdrop { background: #050711bb; backdrop-filter: blur(7px); }
.section-switcher-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-switcher-heading .eyebrow { margin: 0 0 5px; }
.section-switcher-heading h2 { margin: 0; font-size: 17px; }
.section-switcher-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: #c9cce0;
  background: #ffffff0b;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 23px;
}
.section-switcher-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #090d19;
  border: 1px solid #343b56;
  border-radius: 11px;
}
.section-switcher-search:focus-within { border-color: #9284ff; }
.section-switcher-search > span { color: #aaa0ff; font-size: 19px; }
.section-switcher-search input {
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 8px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.section-switcher-search input:focus { outline: 0; border: 0; }
.section-switcher-search kbd { white-space: nowrap; }
.section-switcher-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: min(390px, 52dvh);
}
.section-switcher-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  color: #c5cadd;
  text-decoration: none;
  background: #ffffff07;
  border: 1px solid #2b3249;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.section-switcher-link:hover,
.section-switcher-link.active {
  color: #fff;
  background: #7869ed2b;
  border-color: #9183ff;
}
.section-switcher-empty,
.section-switcher-hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.section-switcher-empty { text-align: center; padding: 12px; }
.section-switcher-hint { text-align: center; }

/* Route transitions */
.route-section {
  animation: routeFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes routeFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   DEX SWAP ENGINE & INTERFACE STYLES (KingPulse Swap)
   ========================================================== */
.swap-container {
  max-width: 520px;
  margin: 18px auto 0;
  width: 100%;
}

.swap-card {
  background: rgba(18, 22, 37, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(146, 132, 255, 0.25);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(120, 105, 237, 0.1);
  position: relative;
}

.swap-settings-panel {
  max-width: 520px;
  margin: 0 auto 16px;
  background: rgba(12, 16, 30, 0.95);
  border: 1px solid rgba(146, 132, 255, 0.2);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: routeFadeIn 0.25s ease-out;
}

.swap-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.swap-settings-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.slippage-presets {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slippage-btn {
  background: #14192b;
  border: 1px solid #283049;
  color: #929ab1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slippage-btn:hover {
  border-color: var(--violet);
  color: #fff;
}

.slippage-btn.active {
  background: linear-gradient(135deg, #7869ed, #998aff);
  border-color: #998aff;
  color: #fff;
  box-shadow: 0 2px 10px rgba(120, 105, 237, 0.4);
}

.custom-slippage-wrapper {
  position: relative;
  width: 76px;
}

.custom-slippage-wrapper input {
  margin-top: 0;
  padding: 6px 20px 6px 8px;
  font-size: 11px;
  height: 31px;
  text-align: center;
  background: #0d1120;
  border: 1px solid #283049;
  border-radius: 8px;
  color: #7ae7c1;
}

.custom-slippage-wrapper span {
  position: absolute;
  left: 6px;
  top: 7px;
  font-size: 11px;
  color: var(--muted);
}

.deadline-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deadline-wrapper input {
  margin-top: 0;
  width: 65px;
  padding: 6px 10px;
  font-size: 11px;
  height: 31px;
  text-align: center;
  background: #0d1120;
  border: 1px solid #283049;
  border-radius: 8px;
}

.swap-box {
  background: #0c1020;
  border: 1px solid #222941;
  border-radius: 18px;
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.swap-box:hover, .swap-box:focus-within {
  border-color: #3f4a74;
}

.swap-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8c9bb4;
}

.swap-box-title {
  font-weight: 600;
}

.swap-balance-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-max-badge {
  background: rgba(122, 231, 193, 0.12);
  border: 1px solid rgba(122, 231, 193, 0.3);
  color: #7ae7c1;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-max-badge:hover {
  background: rgba(122, 231, 193, 0.25);
  transform: scale(1.04);
}

.swap-box-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.swap-amount-input {
  background: transparent !important;
  border: none !important;
  font-size: 26px !important;
  font-weight: 700;
  color: #fff !important;
  width: 100%;
  outline: none;
  padding: 0 !important;
  margin: 0 !important;
}

.swap-amount-input::placeholder {
  color: #434c67;
}

.token-select-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181f36;
  border: 1px solid #313b5e;
  border-radius: 24px;
  padding: 6px 14px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.token-select-pill:hover {
  background: #232d4e;
  border-color: var(--violet);
  box-shadow: 0 4px 15px rgba(120, 105, 237, 0.25);
}

.token-select-pill img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}

.arrow-down {
  font-size: 9px;
  color: #8c9bb4;
  margin-right: 2px;
}

.swap-flip-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -12px 0;
  position: relative;
  z-index: 2;
}

.swap-flip-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #14192d;
  border: 2px solid #232c49;
  color: #7ae7c1;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swap-flip-btn:hover {
  transform: rotate(180deg) scale(1.1);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 0 20px rgba(120, 105, 237, 0.5);
}

.swap-rate-bar {
  margin-top: 14px;
  background: rgba(14, 20, 38, 0.7);
  border: 1px solid rgba(122, 231, 193, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.rate-label {
  color: var(--muted);
}

.rate-value {
  color: #7ae7c1;
  font-weight: 600;
}

.swap-details-drawer {
  margin-top: 12px;
  background: #090d1a;
  border: 1px solid #1e263d;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  animation: routeFadeIn 0.2s ease-out;
}

.swap-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  color: var(--muted);
}

.detail-value {
  color: #eef0f8;
  font-weight: 600;
}

.price-impact-low {
  color: #7ae7c1;
}

.price-impact-medium {
  color: #ffda73;
}

.price-impact-high {
  color: #ff738a;
  font-weight: bold;
}

.btn-swap-execute {
  margin-top: 18px;
  padding: 16px;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.swap-status-alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.swap-status-alert.info {
  background: #0d1e2e;
  border: 1px solid #1a415e;
  color: #62ddea;
}

.swap-status-alert.error {
  background: #2b1117;
  border: 1px solid #571e28;
  color: #ff738a;
}



/* ======================================================
   KingPulse DEX Protocol Badge
   ====================================================== */
.kp-dex-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 197, 61, 0.12), rgba(255, 107, 0, 0.10));
  border: 1px solid rgba(255, 197, 61, 0.35);
  color: #ffd76b;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 197, 61, 0.10);
  animation: kp-badge-glow 3s ease-in-out infinite alternate;
}

@keyframes kp-badge-glow {
  from { box-shadow: 0 0 8px rgba(255, 197, 61, 0.08); border-color: rgba(255, 197, 61, 0.30); }
  to   { box-shadow: 0 0 18px rgba(255, 197, 61, 0.22); border-color: rgba(255, 197, 61, 0.55); }
}

/* ============================================================
   Swap Advanced UI — Market Strip, Confirm Modal, History
   ============================================================ */

/* Market Info Strip */
.swap-market-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(122,231,193,0.07) 0%, rgba(99,102,241,0.05) 100%);
  border: 1px solid rgba(122,231,193,0.18);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  animation: stripFadeIn 0.4s ease;
  position: relative;
  overflow: hidden;
}
.swap-market-strip::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122,231,193,0.04), transparent);
  animation: shimmer 3s infinite;
}
@keyframes stripFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}
.market-strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 100px;
}
.market-strip-label { font-size: 10px; color: var(--muted); }
.market-strip-value { font-size: 13px; font-weight: 600; color: #fff; transition: color 0.3s; }
.market-strip-value.price-impact-low  { color: #7ae7c1; }
.market-strip-value.price-impact-mid  { color: #f5b041; }
.market-strip-value.price-impact-high { color: #e74c3c; }

/* Pulsing live dot before market price */
#strip-market-price::before {
  content: '● ';
  color: #7ae7c1;
  font-size: 8px;
  animation: livePulse 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.btn-refresh-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s;
  margin-right: auto;
}
.btn-refresh-rate:hover { background: rgba(122,231,193,0.12); color: #7ae7c1; }
.refresh-countdown {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  min-width: 16px;
  text-align: center;
}

/* USD Value below swap boxes */
.swap-usd-value {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 16px 6px;
  font-family: 'DM Mono', monospace;
}

/* Receive box highlight */
.swap-box-receive { background: rgba(122,231,193,0.04); }
.swap-box-receive .swap-amount-input { color: #7ae7c1; }

/* Flip button animation */
@keyframes flipSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}
.swap-flip-btn.flipping { animation: flipSpin 0.4s ease; }

/* Swap Confirmation Modal */
.swap-confirm-content { max-width: 440px; }
.swap-confirm-tokens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.confirm-token-row {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 20px;
}
.confirm-token-row-receive { background: rgba(122,231,193,0.06); border-color: rgba(122,231,193,0.15); }
.confirm-token-info { display: flex; align-items: center; gap: 14px; }
.confirm-arrow { font-size: 20px; margin: 4px 0; }
.confirm-details-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.confirm-detail-row:last-child { border-bottom: none; }
.confirm-detail-row span { color: var(--muted); }
.confirm-detail-row b { color: #fff; font-weight: 600; }
.confirm-impact-warning {
  background: rgba(255,100,50,0.12);
  border: 1px solid rgba(255,100,50,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff7043;
  margin-top: 12px;
  text-align: center;
}

/* Price Impact Colors */
.price-impact-low  { color: #7ae7c1; }
.price-impact-mid  { color: #f5b041; }
.price-impact-high { color: #ff4d4d; font-weight: 700; }

/* Transaction History Panel */
.swap-history-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  margin-top: 14px;
  overflow: hidden;
}
.swap-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.btn-clear-history {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: color 0.2s;
}
.btn-clear-history:hover { color: #ff4d4d; }
.swap-history-list { padding: 4px 0; }
.swap-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.swap-history-item:last-child { border-bottom: none; }
.swap-history-item:hover { background: rgba(255,255,255,0.04); }
.history-tokens { display: flex; align-items: center; gap: 8px; }
.history-pay { color: #fff; font-weight: 600; }
.history-arrow { color: var(--muted); }
.history-receive { color: #7ae7c1; font-weight: 600; }
.history-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.history-tx-link {
  color: #62ddea;
  text-decoration: none;
  font-size: 11px;
}
.history-tx-link:hover { text-decoration: underline; }
.history-date { font-size: 10px; }

/* =========================================================
   Create Pool Banner
   ========================================================= */
.create-pool-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(122,231,193,0.10), rgba(99,102,241,0.08));
  border: 1px solid rgba(122,231,193,0.25);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  animation: stripFadeIn 0.5s ease;
}
.create-pool-title { font-weight: 700; font-size: 15px; color: #7ae7c1; margin-bottom: 6px; }
.create-pool-sub   { font-size: 12px; color: var(--muted); line-height: 1.6; }
.create-pool-tip   { font-size: 11px; color: var(--muted); margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; }

/* =========================================================
   IL Calculator
   ========================================================= */
.il-calculator-card { margin-top: 20px; }
.il-calculator-body { padding: 20px 0 0; }

.il-scenario-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.il-label        { font-size: 13px; color: var(--muted); }
.il-value-large  { font-size: 16px; font-weight: 700; color: #fff; font-family: 'DM Mono', monospace; }

.il-slider {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #e74c3c 0%, #f5b041 40%, #7ae7c1 70%, #6366f1 100%);
  outline: none;
  cursor: pointer;
  margin-bottom: 14px;
}
.il-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #7ae7c1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}
.il-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.il-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.il-preset-btn {
  padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Mono', monospace;
}
.il-preset-btn:hover { background: rgba(122,231,193,0.1); border-color: #7ae7c1; color: #7ae7c1; }
.il-preset-btn.active { background: rgba(122,231,193,0.15); border-color: #7ae7c1; color: #7ae7c1; }

.il-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .il-results-grid { grid-template-columns: 1fr; }
}
.il-result-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.il-result-label { font-size: 11px; color: var(--muted); }
.il-result-value { font-size: 18px; font-weight: 700; color: #fff; font-family: 'DM Mono', monospace; }

.il-note {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px 16px;
  line-height: 1.7;
  border-left: 3px solid rgba(122,231,193,0.3);
}

/* =============================================================
   Token Explorer
   ============================================================= */

/* Search bar */
.explorer-search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 16px;
  gap: 10px;
  width: 380px;
  max-width: 100%;
  transition: border-color 0.2s;
}
.explorer-search-wrapper:focus-within {
  border-color: rgba(122,231,193,0.4);
  background: rgba(122,231,193,0.05);
}
.explorer-search-icon { font-size: 16px; flex-shrink: 0; }
.explorer-search-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
  font-family: inherit;
  direction: rtl;
}
.explorer-search-input::placeholder { color: var(--muted); }

/* Tabs */
.explorer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.explorer-tab {
  padding: 9px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.explorer-tab:hover { background: rgba(122,231,193,0.08); color: #fff; }
.explorer-tab.active {
  background: linear-gradient(135deg, rgba(122,231,193,0.15), rgba(99,102,241,0.1));
  border-color: rgba(122,231,193,0.3);
  color: #7ae7c1;
  font-weight: 600;
}
.explorer-tab-panel { animation: stripFadeIn 0.3s ease; }

/* Loading and empty states */
.explorer-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}
.explorer-empty {
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Spinner */
.spinner-ring {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(122,231,193,0.2);
  border-top-color: #7ae7c1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Trending grid */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.trending-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.trending-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,231,193,0.03), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.trending-card:hover { border-color: rgba(122,231,193,0.25); transform: translateY(-2px); }
.trending-card:hover::before { opacity: 1; }

.trending-rank {
  font-size: 10px;
  color: var(--muted);
  min-width: 24px;
  text-align: center;
  font-family: 'DM Mono', monospace;
}
.trending-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.trending-icon img { width: 40px; height: 40px; object-fit: cover; }
.trending-icon-fallback {
  font-size: 18px;
  font-weight: 700;
  color: #7ae7c1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.trending-info {
  flex: 1;
  min-width: 0;
}
.trending-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trending-info small { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trending-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 80px;
}
.price-val { font-size: 12px; font-family: 'DM Mono', monospace; color: #fff; }
.price-change { font-size: 11px; font-family: 'DM Mono', monospace; font-weight: 600; }

.btn-swap-this {
  padding: 5px 10px;
  background: rgba(122,231,193,0.1);
  border: 1px solid rgba(122,231,193,0.2);
  border-radius: 8px;
  font-size: 11px;
  color: #7ae7c1;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-swap-this:hover { background: rgba(122,231,193,0.2); }
.token-trade-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.token-trade-button {
  padding: 6px 9px;
  border: 1px solid rgba(122,231,193,0.2);
  border-radius: 7px;
  background: rgba(122,231,193,0.08);
  color: #7ae7c1;
  font: 600 10px 'DM Mono', monospace;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.token-trade-button:hover { background: rgba(122,231,193,0.18); border-color: rgba(122,231,193,0.45); }
.token-trade-button.perps {
  background: rgba(165,180,252,0.08);
  border-color: rgba(165,180,252,0.22);
  color: #a5b4fc;
}
.token-trade-button.perps:hover { background: rgba(165,180,252,0.18); border-color: rgba(165,180,252,0.45); }

/* Token detail panel */
.explorer-detail-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  animation: stripFadeIn 0.3s ease;
}
.explorer-detail-panel:not(.hidden) { display: flex; }

.detail-header {
  background: var(--card);
  border-left: 1px solid var(--border);
  width: min(480px, 100%);
  height: 100%;
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.btn-close-detail {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-close-detail:hover { background: rgba(255,255,255,0.14); color: #fff; }

.detail-price-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.detail-price { font-size: 24px; font-weight: 700; font-family: 'DM Mono', monospace; }
.detail-change { font-size: 14px; font-weight: 600; }

.detail-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-stat span { font-size: 11px; color: var(--muted); }
.detail-stat b { font-size: 13px; font-family: 'DM Mono', monospace; }

.detail-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

.detail-alert-form h5 { margin: 0 0 10px; font-size: 14px; }
.alert-form-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }

/* Portfolio */
.portfolio-header { margin-bottom: 16px; }
.portfolio-list { display: flex; flex-direction: column; gap: 8px; }
.portfolio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color 0.2s;
}
.portfolio-item:hover { border-color: rgba(122,231,193,0.2); }
.portfolio-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.portfolio-info { flex: 1; }
.portfolio-info b { display: block; font-size: 14px; }
.portfolio-info small { font-size: 11px; color: var(--muted); }
.portfolio-balance { text-align: left; }
.portfolio-amount { display: block; font-size: 15px; font-weight: 700; font-family: 'DM Mono', monospace; color: #7ae7c1; }
.portfolio-balance small { font-size: 11px; color: var(--muted); }

/* Alerts */
.alerts-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 12px;
}
.alert-item.alert-triggered { border-color: rgba(122,231,193,0.2); opacity: 0.7; }
.alert-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert-info b { font-size: 14px; }
.alert-info span { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }
.alert-badge-active   { background: rgba(122,231,193,0.15); color: #7ae7c1; border-radius: 6px; padding: 2px 8px; font-size: 11px !important; color: #7ae7c1 !important; }
.alert-badge-triggered { background: rgba(99,102,241,0.15); border-radius: 6px; padding: 2px 8px; font-size: 11px !important; color: #a5b4fc !important; }
.btn-delete-alert { background: none; border: none; font-size: 16px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; padding: 4px; }
.btn-delete-alert:hover { opacity: 1; }

.explorer-section-title { font-size: 15px; font-weight: 700; }

.market-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.market-search, .market-sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.market-search { flex: 1 1 220px; }
.market-search input, .market-sort-label select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}
.market-search input { width: 100%; }
.market-search input::placeholder { color: var(--muted); }
.market-sort-label { flex: 0 0 auto; }
.market-sort-label select { cursor: pointer; }
.market-sort-label option { background: var(--card); color: #fff; }
.market-refresh, .market-pagination button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.market-refresh:hover, .market-pagination button:not(:disabled):hover {
  border-color: rgba(122,231,193,0.4);
  color: #7ae7c1;
}
.market-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.market-table { min-width: 930px; }
.market-head, .market-row {
  display: grid;
  grid-template-columns: 42px minmax(170px, 1.8fr) repeat(4, minmax(115px, 1fr)) 112px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}
.market-head {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.market-row {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: #fff;
  text-align: right;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease;
}
.market-row:hover { background: rgba(122,231,193,0.06); }
.market-row:focus-visible { outline: 2px solid rgba(122,231,193,0.65); outline-offset: -2px; }
.market-rank, .market-value { color: var(--muted); font-size: 12px; font-family: 'DM Mono', monospace; }
.market-value { text-align: left; direction: ltr; white-space: nowrap; }
.market-positive { color: #7ae7c1; }
.market-negative { color: #e74c3c; }
.market-asset { display: flex; align-items: center; gap: 10px; min-width: 0; }
.market-asset > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.market-asset b, .market-asset small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-asset b { font-size: 12px; }
.market-asset small { margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.market-icon, .market-icon img {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
  color: #7ae7c1;
  font-size: 12px;
  font-weight: 700;
}
.market-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.market-pagination button { min-height: 34px; }
.market-pagination button:disabled { cursor: default; opacity: 0.4; }
.market-pagination span, .market-disclaimer { color: var(--muted); font-size: 11px; }
.market-disclaimer { margin: 12px 0 0; text-align: center; }

/* =============================================================
   Security Panel — Rug-Pull Detector
   ============================================================= */
.swap-security-panel {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  animation: stripFadeIn 0.4s ease;
}

.security-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
}

.security-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.security-title { font-size: 14px; font-weight: 700; }
.security-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid currentColor;
}

.security-score-bar-wrapper { margin-bottom: 16px; }
.security-score-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.security-score-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.security-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

.security-findings { display: flex; flex-direction: column; gap: 6px; }
.security-finding {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.5;
}
.finding-ok     { background: rgba(122,231,193,0.08); color: #7ae7c1; }
.finding-warn   { background: rgba(245,176,65,0.1);   color: #f5b041; }
.finding-danger { background: rgba(231,76,60,0.1);    color: #e74c3c; }
.finding-info   { background: rgba(255,255,255,0.05); color: var(--muted); }
.finding-error  { background: rgba(231,76,60,0.15);   color: #e74c3c; font-weight:600; }

.security-warning-banner {
  margin-top: 14px;
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: #e74c3c;
  line-height: 1.6;
}

/* =============================================================
   Phase 6 — Final CSS Polish & Micro-Animations
   ============================================================= */

/* Enhanced hover effects on all action-cards */
.action-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Glowing border pulse on focused inputs */
.swap-input-panel input:focus,
.lp-input input:focus,
.input-field:focus {
  box-shadow: 0 0 0 2px rgba(122,231,193,0.2);
  transition: box-shadow 0.2s;
}

/* Bounce animation for success toasts */
@keyframes toastBounceIn {
  0%   { transform: translateX(100%) scale(0.8); opacity: 0; }
  60%  { transform: translateX(-6px) scale(1.03); opacity: 1; }
  100% { transform: translateX(0) scale(1); }
}

/* Smooth nav highlight */
.mode-nav-btn {
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.mode-nav-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, #7ae7c1, #6366f1);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s, transform 0.2s;
}
.mode-nav-btn.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Skeleton shimmer for loading placeholders */
@keyframes shimmerSlide {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 800px 100%;
  animation: shimmerSlide 1.5s infinite;
  border-radius: 8px;
}

/* Floating label effect on engine inputs */
.engine-input-wrapper { position: relative; }

/* Number input scroll prevention */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { opacity: 0.4; }

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: inherit;
}
.btn:active::after { opacity: 1; }

/* Mode nav scrollbar on mobile */
.mode-nav {
  scrollbar-width: none;
}
.mode-nav::-webkit-scrollbar { display: none; }

/* Card entrance animation when sections become visible */
.manage-shell:not(.hidden) .action-card {
  animation: cardEntrance 0.35s ease both;
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.manage-shell:not(.hidden) .action-card:nth-child(2) { animation-delay: 0.05s; }
.manage-shell:not(.hidden) .action-card:nth-child(3) { animation-delay: 0.10s; }
.manage-shell:not(.hidden) .action-card:nth-child(4) { animation-delay: 0.15s; }

/* Swap execute button pulse when ready */
#btn-execute-swap:not([disabled]) {
  animation: livePulse 2s ease-in-out infinite;
}
#btn-execute-swap[disabled] { animation: none; }

/* Price change flash */
@keyframes priceFlash {
  0%   { background: rgba(122,231,193,0.2); }
  100% { background: transparent; }
}
.price-flash { animation: priceFlash 0.6s ease; }

/* Responsive improvements */
@media (max-width: 768px) {
  .manage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .explorer-search-wrapper { width: 100%; }
  .detail-stats-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .il-results-grid { grid-template-columns: 1fr; }
  .market-toolbar { align-items: stretch; }
  .market-sort-label { justify-content: space-between; flex: 1 1 100%; }
}

/* Dark scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* =============================================================
   Analytics Section — Charts, DEX Stats, Limit Orders
   ============================================================= */

/* Chart controls bar */
.chart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.analytics-select {
  padding: 9px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  outline: none;
  cursor: pointer;
  min-width: 180px;
}
.analytics-select:focus { border-color: rgba(122,231,193,0.3); }
.analytics-select option { background: #0d1117; }

.chart-type-btns { display: flex; gap: 6px; }
.chart-type-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.chart-type-btn:hover  { background: rgba(122,231,193,0.08); color: #fff; }
.chart-type-btn.active { background: rgba(122,231,193,0.15); border-color: rgba(122,231,193,0.3); color: #7ae7c1; }

.analytics-chart-tabs { display: flex; gap: 4px; margin-right: auto; }
.analytics-chart-tab {
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  transition: all 0.15s;
}
.analytics-chart-tab:hover  { color: #fff; }
.analytics-chart-tab.active { background: rgba(122,231,193,0.12); color: #7ae7c1; border-color: rgba(122,231,193,0.25); }

/* Market stats strip */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.stats-item { font-size: 12px; color: var(--muted); white-space: nowrap; }
.stats-item b { color: rgba(255,255,255,0.6); margin-left: 4px; }

/* Chart wrapper */
.chart-wrapper {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
}
.analytics-chart-container { width: 100%; min-height: 320px; }
.chart-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--muted);
  font-size: 13px;
}

/* DEX analytics */
.dex-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .dex-stats-grid { grid-template-columns: 1fr; } }

.dex-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 20px;
}
.dex-stat-icon { font-size: 28px; }
.dex-stat-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.dex-stat-value { font-size: 20px; font-weight: 700; font-family: 'DM Mono', monospace; color: #7ae7c1; }

.dex-detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.dex-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
.dex-pairs-list { margin-top: 8px; }
.dex-pairs-header { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.dex-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
}
.dex-pair-row:last-child { border-bottom: none; }
.pair-name { color: #fff; font-family: 'DM Mono', monospace; }
.pair-tvl  { color: #7ae7c1; font-family: 'DM Mono', monospace; font-size: 11px; }

/* Limit Orders Form */
.lo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 640px) { .lo-form-grid { grid-template-columns: 1fr; } }

.lo-label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; }
.lo-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: 'DM Mono', monospace;
}
.lo-input:focus { border-color: rgba(122,231,193,0.3); }
.lo-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}
.lo-select option { background: #0d1117; }

/* Order items */
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
  transition: border-color 0.2s;
}
.order-item.status-pending   { border-left: 3px solid #7ae7c1; }
.order-item.status-triggered { border-left: 3px solid #6366f1; }
.order-item.status-cancelled { opacity: 0.5; }

.order-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.order-type-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.order-type-badge.buy  { background: rgba(122,231,193,0.15); color: #7ae7c1; }
.order-type-badge.sell { background: rgba(231,76,60,0.12);   color: #e74c3c; }
.order-info span { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }
.order-info b { font-size: 14px; }
.order-status { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* =============================================================
   Yield Farming Dashboard
   ============================================================= */
.yield-dashboard-content { margin-top: 20px; }

/* Summary grid */
.yield-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 768px) { .yield-summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .yield-summary-grid { grid-template-columns: 1fr; } }

.yield-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.yield-summary-card:hover { border-color: rgba(122,231,193,0.2); }
.yield-summary-icon { font-size: 26px; flex-shrink: 0; }
.yield-summary-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.yield-summary-value { font-size: 18px; font-weight: 700; font-family: 'DM Mono', monospace; }

/* Position cards list */
.yield-positions-list { display: flex; flex-direction: column; gap: 16px; }

.yield-position-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.yield-position-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7ae7c1, #6366f1);
  opacity: 0.6;
}
.yield-position-card:hover { border-color: rgba(122,231,193,0.2); transform: translateY(-2px); }

.yield-position-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.yield-pair-icons { font-size: 24px; }
.yield-pair-info { flex: 1; }
.yield-pair-name { font-size: 16px; display: block; }
.yield-pair-info small { font-size: 11px; color: var(--muted); }

.yield-apy-badge {
  padding: 5px 14px;
  border: 1px solid currentColor;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}

/* Position stats grid */
.yield-position-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 640px) { .yield-position-stats { grid-template-columns: repeat(2, 1fr); } }

.yield-stat-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yield-stat-item span { font-size: 11px; color: var(--muted); }
.yield-stat-item b    { font-size: 12px; font-family: 'DM Mono', monospace; }

/* Actions */
.yield-position-actions {
  display: flex;
  gap: 10px;
}
.yield-add-btn { background: linear-gradient(135deg, rgba(122,231,193,0.15), rgba(99,102,241,0.1)) !important; }

/* Keep the main header usable with the full navigation on desktop. */
@media (min-width: 769px) {
  .shell > header {
    height: auto;
    min-height: 66px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 260px) auto;
    grid-template-areas:
      "brand network wallet"
      "nav nav nav";
    gap: 12px;
  }

  .shell > header > .brand { grid-area: brand; }
  .shell > header > .mode-nav {
    grid-area: nav;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .shell > header > .mode-nav > .mode-nav-btn { flex: 0 0 auto; }
  .shell > header > .network-selector-container { grid-area: network; }
  .shell > header > .network-selector-container select {
    width: 100%;
    min-height: 42px;
    margin-top: 0;
  }
  .shell > header > .header-wallet-actions {
    grid-area: wallet;
    white-space: nowrap;
  }
}

@media (max-width: 1050px) and (min-width: 769px) {
  .work {
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  }

  .preview {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: 300px;
    padding-inline: 4%;
  }

  .orbit {
    width: 230px;
    flex: 0 0 230px;
  }
}

@media (max-width: 768px) {
  .section-switcher-trigger {
    inset-inline-end: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding-inline: 13px;
  }

  .section-switcher-trigger kbd { display: none; }
  .section-switcher-dialog { padding: 15px; border-radius: 16px; }
  .section-switcher-results { grid-template-columns: 1fr; max-height: 56dvh; }

  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 12px;
  }

  .shell > header {
    height: auto;
    min-height: 58px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-radius: 14px;
  }

  .brand {
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  .header-wallet-actions {
    justify-content: flex-end;
  }

  .header-wallet-actions #btn-add-metamask {
    display: none !important;
  }

  .shell > header #connect {
    min-height: 44px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .mode-nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  .mode-nav-btn {
    flex: 0 0 auto;
    min-height: 42px;
    scroll-snap-align: start;
  }

  .network-selector-container {
    grid-column: 1 / -1;
  }

  .network-selector-container select {
    width: 100%;
    min-height: 44px;
    margin-top: 0;
  }

  .hero {
    min-height: 0;
    padding: 38px 10px 28px;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 52px);
    letter-spacing: -1.5px;
  }

  .hero p:not(.eyebrow) {
    font-size: 13px;
  }

  .facts {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .orbit {
    width: 190px;
    height: 180px;
    flex: 0 0 190px;
    transform: scale(.82);
    transform-origin: center;
    margin-inline: -16px;
  }

  .work {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    padding: 14px;
  }

  .steps ol {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 12px 0 4px;
    overscroll-behavior-inline: contain;
  }

  .steps li {
    flex: 0 0 auto;
    padding: 6px 0;
  }

  .steps li small,
  .safe {
    display: none;
  }

  .builder,
  .manage-shell {
    padding: 18px;
  }

  .preview {
    order: 3;
  }
}

@media (max-width: 480px) {
  .shell {
    width: calc(100% - 16px);
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .shell > header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .brand i {
    width: 28px;
    height: 28px;
    margin-left: 5px;
  }

  .header-wallet-actions #connect {
    font-size: 10px;
    padding-inline: 9px;
  }

  .hero {
    display: block;
    padding-inline: 8px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .orbit {
    display: none;
  }

  .builder,
  .manage-shell {
    padding: 14px;
    border-radius: 16px;
  }

  .builder h2,
  .manage-header h2 {
    font-size: 17px;
  }

  .grid,
  .alloc {
    grid-template-columns: minmax(0, 1fr);
  }

  .full {
    grid-column: auto;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .builder footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    background: #121625f2;
  }

  .summary-details div {
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
  }

  .summary-details b {
    overflow-wrap: anywhere;
    text-align: left;
  }

  .input-group,
  .quick-links {
    flex-direction: column;
  }
}

.shell > header a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #9b91fc;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .modal-overlay {
    place-items: end center;
    padding: 0;
  }

  .modal-content.glass-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  }

  #toast {
    width: calc(100% - 24px);
    max-width: 440px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    text-align: center;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html[lang="en"] body {
  font-family: Inter, Alexandria, sans-serif;
}

html[lang="en"] .summary-details {
  text-align: left;
}

html[lang="en"] .engine-router-box input {
  text-align: left;
}

.language-switcher {
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .language-switcher {
    min-height: 42px;
    padding: 8px 10px;
  }
}

:root {
  --royal-gold: #e7bf58;
  --royal-gold-light: #fff1b8;
}

body {
  background:
    radial-gradient(circle at 90% 0, #79602b30, transparent 30%),
    radial-gradient(circle at 0 100%, #0b849933, transparent 30%),
    var(--bg);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 2px;
}

.eyebrow {
  color: var(--royal-gold);
}

.shell > header {
  border-color: #9b772c66;
  box-shadow: 0 10px 36px #0003, inset 0 1px #fff1b80c;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 18px #e7bf5833;
}

.brand b,
.hero h1 em {
  color: var(--royal-gold);
}

.mode-nav .mode-nav-btn.active {
  background: linear-gradient(120deg, #8e6a20, #e7bf58);
  box-shadow: 0 4px 16px #e7bf5838;
}

.hero .eyebrow {
  color: var(--royal-gold-light);
}

.builder-head,
.manage-header {
  border-bottom-color: #e7bf5838;
}

.hero .orbit .ring {
  border-color: #e7bf5866;
}

.hero .orbit .coin {
  background: radial-gradient(circle at 30% 25%, #fff1b8, #c7962e 58%, #4c3511);
  color: #211a0b;
  box-shadow: 0 0 0 10px #e7bf580d, 0 25px 55px #000, 0 0 34px #e7bf5833;
  font-size: 21px;
  letter-spacing: -1px;
}

.hero .orbit label:first-of-type {
  color: var(--royal-gold-light);
  border-color: #e7bf5855;
}

.hero .orbit label:last-child {
  color: #f1d995;
  border-color: #e7bf5838;
}

.primary-btn,
.btn.primary,
header button#connect {
  background: linear-gradient(120deg, #9b7426, #e7bf58);
  color: #1b1609;
  box-shadow: 0 8px 24px #e7bf5830;
}

.primary-btn:hover,
.btn.primary:hover,
header button#connect:hover {
  box-shadow: 0 10px 30px #e7bf5855;
}

.kp-dex-badge,
.official-token-hero {
  border-color: #e7bf584d;
}
