.lr-container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

.lr-main{
  padding-top:20px;
  padding-bottom:110px;
}

.lr-main-grid{
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

.lr-column-left{
  width:100%;
  max-width:720px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.lr-btn{
  border-radius:999px;
  padding:12px 18px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.3px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#fff;
  transition:transform .14s ease,background .2s ease,box-shadow .2s ease,border-color .2s ease,filter .2s ease;
  will-change:transform;
}

.lr-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.1);
  box-shadow:0 10px 28px rgba(0,0,0,.4);
  filter:brightness(1.05);
}

.lr-btn:active{
  transform:scale(.97);
}

.lr-btn-primary{
  background:linear-gradient(135deg,#e50914,#ff0033);
  border:1px solid rgba(229,9,20,.6);
}

.lr-btn-primary:hover{
  background:linear-gradient(135deg,#ff2345,#e50914);
  box-shadow:0 0 20px rgba(229,9,20,.3),0 10px 28px rgba(0,0,0,.4);
}

.lr-btn-block{
  width:100%;
}

.lr-btn-pending{
  opacity:.85;
  cursor:wait!important;
}

.lr-card{
  background:rgba(7,7,12,.78);
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  padding:22px;
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  position:relative;
  overflow:hidden;
  animation:lrFadeIn .4s ease forwards;
  opacity:0;
  transform:translateY(10px);
}

@keyframes lrFadeIn{
  to{opacity:1;transform:translateY(0)}
}

.lr-card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.lr-card-header h2{
  font-size:19px;
  font-weight:900;
  margin:0;
}

.lr-card-subtitle{
  font-size:12px;
  color:rgba(255,255,255,.65);
}

.lr-card-body{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.lr-split-card {
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}

.lr-settings-btn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  transition:all .15s ease;
}

.lr-settings-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.12);
  border-color:rgba(229,9,20,.4);
}

.lr-field-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.lr-field-label-row{
  display:flex;
  justify-content:space-between;
  font-size:12px;
}

.lr-field-label{
  font-weight:700;
}

.lr-field-balance{
  font-size:11px;
  color:rgba(255,255,255,.65);
}

.lr-field-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
}

.lr-balance-icon {
  width: 14px;
  height: 14px;
  opacity: .7;
}

.lr-token-input-row{
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  min-height:62px;
  transition:border-color .2s ease,box-shadow .2s ease;
  overflow:hidden;
}

.lr-token-input-row:focus-within{
  border-color:rgba(229,9,20,.5);
  box-shadow:0 0 0 3px rgba(229,9,20,.15);
}

.lr-token-input-row .lr-token-select{
  order:0;
  flex:0 0 auto;
  max-width:200px;
  min-width:140px;
  white-space:nowrap;
}

.lr-token-input-row .lr-input{
  order:1;
  flex:1 1 auto;
  min-width:0;
  width:100%;
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
}

.lr-input{
  border:0;
  background:transparent;
  color:#fff;
  font-size:20px;
  font-weight:800;
  outline:none;
  text-align:right;
}

.lr-input::placeholder{
  color:rgba(255,255,255,.3);
}

.lr-token-select{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:9px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  transition:all .15s ease;
  overflow:hidden;
}

.lr-token-select:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.13);
}

.lr-token-select #from-token-symbol,
.lr-token-select #to-token-symbol{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.lr-token-logo{
  width:22px;
  height:22px;
  border-radius:999px;
  object-fit:contain;
  flex:0 0 22px;
}

.lr-balance-actions{
  display:flex;
  justify-content:flex-end;
  gap:2px;
}

.lr-balance-actions button {
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 42px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
  transition: all .15s ease;
  min-width: 46px;
}

.lr-balance-actions button:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.14);
}

.lr-swap-toggle-row{
  display:flex;
  justify-content:center;
}

.lr-swap-toggle{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.6);
  color:#fff;
  font-size:17px;
  cursor:pointer;
  transition:all .15s ease;
  box-shadow:0 12px 30px rgba(0,0,0,.5);
}

.lr-swap-toggle:hover{
  transform:translateY(-1px) rotate(180deg);
  background:rgba(255,255,255,.14);
}

.lr-swap-meta{
  margin-top:4px;
  padding:14px;
  border-radius:18px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.1);
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:12px;
}

.lr-swap-meta-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.lr-meta-label{
  color:rgba(255,255,255,.6);
}

.lr-meta-value{
  font-weight:800;
}

.lr-status-text{
  font-size:12px;
  min-height:18px;
  color:rgba(255,255,255,.75);
}

.lr-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:400;
}

.lr-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.82);
}

.lr-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: rgba(7, 7, 12, .95);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .75);
  overflow: hidden;
}

@keyframes lrModalIn{
  from{opacity:0;transform:scale(.95)}
  to{opacity:1;transform:scale(1)}
}

.lr-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.lr-modal-header h3{
  margin:0;
  font-size:15px;
  font-weight:900;
}

.lr-modal-close{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  transition:.15s ease;
}

.lr-modal-close:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 13px;
}

.confirm-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.confirm-actions button {
  flex: 1;
}

.lr-token-search{
  margin-bottom:10px;
}

.lr-input-search{
  width:100%;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.4);
  color:#fff;
  font-size:12px;
  outline:none;
  text-align:left;
}

.lr-input-search::placeholder{
  text-align:left;
}

.lr-token-list-wrapper {
  flex: 1;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 4px;
}

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

.lr-token-list-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  cursor:pointer;
  transition:.15s ease;
}

.lr-token-list-item:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.12);
  border-color:rgba(229,9,20,.3);
}

.lr-token-list-wrapper::-webkit-scrollbar{
  width:6px;
}

.lr-token-list-wrapper::-webkit-scrollbar-track{
  background:transparent;
}

.lr-token-list-wrapper::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.2);
  border-radius:10px;
}

.lr-token-list-wrapper::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.35);
}

.lr-toast-container{
  position:fixed;
  right:22px;
  bottom:130px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:500;
}

.lr-hidden{
  display:none!important;
}

.lr-wallet-options{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:8px;
}

.lr-wallet-option{
  display:flex;
  align-items:center;
  gap:2px;
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  color:#fff;
  font-size:13px;
  font-weight:800;
  transition:.18s ease;
  min-height:54px;
}

.lr-wallet-option:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
  border-color:rgba(229,9,20,.35);
}

.lr-wallet-logo{
  width:36px;
  height:36px;
  max-width:36px;
  max-height:36px;
  min-width:36px;
  min-height:36px;
  border-radius:10px;
  object-fit:contain;
  flex:0 0 36px;
  background:rgba(255,255,255,.06);
  padding:6px;
}

@media(max-width:420px){
  .lr-wallet-logo{
    width:30px;
    height:30px;
    max-width:30px;
    max-height:30px;
    min-width:30px;
    min-height:30px;
  }

  .lr-wallet-option{
    padding:14px;
  }
}

.lr-modal-header h3{
  font-size:16px;
  font-weight:900;
  letter-spacing:.2px;
}

.lr-slippage-row {
  margin-bottom: 10px;
}

.lr-slippage-label {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  display: block;
}

.lr-slippage-chips {
  margin-top: 4px;
}

#settings-modal .lr-helper-text {
  margin-top: 14px;
  line-height: 1.5;
}

.lr-slipbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
  max-width: 100%;
}

.lr-slipseg {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .2px;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.lr-slipseg:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .70);
}

.lr-slipseg-active {
  background: rgba(255, 255, 255, .70);
  color: rgba(0, 0, 0, .86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.lr-slipcustom {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .30);
  min-width: 0;
  width: 92px;
  flex: 0 0 92px;
}

.lr-slipcustom-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  text-align: left;
}

.lr-slipcustom-input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.lr-slipcustom-suffix {
  color: rgba(255, 255, 255, .70);
  font-size: 12.5px;
  font-weight: 900;
  flex: 0 0 auto;
}

@media(max-width:420px) {
  .lr-slipbar {
    gap: 5px;
    padding: 7px;
  }
  
  .lr-slipseg {
    font-size: 12px;
    padding: 7px 8px;
  }
  
  .lr-slipcustom {
    width: 84px;
    flex: 0 0 84px;
    padding: 7px 9px;
    gap: 7px;
  }
  
  .lr-slipcustom-input,
  .lr-slipcustom-suffix {
    font-size: 12px;
  }
}

.lr-helper-text,
.lr-wallet-helper,
.lr-modal-body .lr-helper-text{
  color:rgba(255,255,255,.45);
  font-size:11.5px;
  line-height:1.45;
  padding:4px;
}

.lr-usd-row{
  display:flex;
  align-items:center;
  margin-top:8px;
  font-size:12px;
  color:rgba(255,255,255,.55);
}

.lr-usd-spacer{
  flex:1;
}

.lr-usd-val{
  text-align:right;
  font-weight:700;
}

.lr-amount-wrap{
  position:relative;
}

.lr-usd-inside{
  position:absolute;
  right:18px;
  bottom:5px;
  font-size:11px;
  opacity:.65;
  pointer-events:none;
  white-space:nowrap;
}

.lr-input-amount{
  padding-bottom:3px;
}

@media (max-width:420px){
  .lr-slippage-chip{
    padding:9px 10px;
    min-width:58px;
    font-size:11.5px;
    border-radius:13px;
  }
  
  .lr-slippage-custom{
    padding:9px 10px;
    border-radius:14px;
  }
  
  .lr-input-slippage{
    font-size:12.5px;
  }
}

@media(max-width:980px){
  .lr-container{
    padding:0 16px;
  }

  .lr-main{
    padding-bottom:50px;
  }

  .lr-column-left{
    max-width:580px;
    margin:0 auto;
  }

  .lr-card{
    padding:18px;
    border-radius:22px;
  }

  .lr-input{
    font-size:17px;
  }

  .lr-token-input-row .lr-token-select{
    max-width:170px;
    min-width:130px;
  }
}

@media(max-width:420px){
  .lr-input{
    font-size:16px;
  }

  .lr-token-input-row .lr-token-select{
    max-width:160px;
    min-width:120px;
    padding:8px 10px;
  }

  .lr-token-select{
    font-size:12px;
    padding:8px 10px;
  }

  .lr-balance-actions button{
    font-size:10.5px;
    padding:5px 9px;
  }
}

@media(prefers-reduced-motion:reduce){
  .lr-card,
  .lr-modal-content,
  .lr-btn,
  .lr-token-select,
  .lr-swap-toggle,
  .lr-token-list-item{
    animation:none;
    transition:none;
  }
}

#token-modal .lr-modal-content {
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#token-modal .lr-modal-header {
  flex: 0 0 auto;
}

#token-modal .lr-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#token-modal .lr-token-search {
  flex: 0 0 auto;
}

#token-modal .lr-token-list-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  height: 360px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.lr-modal {
  z-index: 2000;
}

body.lr-modal-open {
  overflow: hidden;
}

body.lr-modal-open .db-app {
  pointer-events: none;
}

body.lr-modal-open .lr-modal,
body.lr-modal-open .lr-modal * {
  pointer-events: auto;
}

#lr-toast-container {
  position: fixed;
  z-index: 3000;
  pointer-events: auto;
}

body.lr-modal-open #lr-toast-container {
  pointer-events: auto;
}

body.lr-modal-open .db-app {
  pointer-events: none;
}

body.lr-modal-open .lr-modal,
body.lr-modal-open .lr-modal * {
  pointer-events: auto;
}

#lr-toast-portal {
  position: fixed;
  right: 22px;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2147483647;
  pointer-events: none;
  isolation: isolate;
  transform: translateZ(0);
}

#lr-toast-portal>div {
  pointer-events: auto;
}

.db-sidebar {
  display: none !important;
}

.db-shell {
  display: block !important;
}

.db-main {
  width: 100% !important;
  margin-left: 0 !important;
}

.db-container {
  max-width: 1100px;
  margin: 0 auto;
}

.db-main {
  padding-top: 6px !important;
}

.lr-main {
  padding-top: 18px !important;
}

body.lr-modal-open {
  overflow: hidden;
}

body.lr-modal-open .db-app {
  pointer-events: none;
}

body.lr-modal-open .lr-modal,
body.lr-modal-open .lr-modal * {
  pointer-events: auto;
}

body.lr-ui-lock {
  overflow: hidden;
  touch-action: none;
}

body.lr-ui-lock .db-bottom-nav,
body.lr-ui-lock .db-header {
  pointer-events: none;
  opacity: .45;
  filter: grayscale(.25);
}

body.lr-ui-lock .lr-modal,
body.lr-ui-lock .lr-modal * {
  pointer-events: auto;
}

body.lr-ui-guard .db-bottom-nav,
body.lr-ui-guard .db-header {
  pointer-events: none;
}

#lr-ui-shield {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: transparent;
  pointer-events: auto;
}

body.lr-ui-lock {
  overflow: hidden;
  touch-action: none;
}

body.lr-ui-lock .db-bottom-nav,
body.lr-ui-lock .db-header {
  pointer-events: none;
}