/* Add funds — reached from the header's "Add funds" button. Centered
   cryptocurrency top-up card with a selectable coin grid, same palette
   as transfer-money.css and the rest of the logged-in area. */
:root{
  --blue-dark:#0f3d28;
  --blue-mid:#1f7a52;
  --blue-bright:#27935f;
  --accent-orange:#f39c1f;
  --action-green:#2fae76;
  --action-green-dark:#1f8a5c;
  --surface-soft:#eef6f2;
  --surface-border:#dfeae5;
  --surface-border-hover:#c9e2d8;
  --danger:#e0455a;
  --danger-soft:#fdecee;
  --danger-border:#f3c6cc;
}

html,body{height:100%;}
body{background:#eef5f2;display:flex;flex-direction:column;min-height:100vh;}

.af-layout{
  flex:1 0 auto;
  max-width:640px;
  margin:0 auto;
  padding:40px 16px 70px;
  width:100%;
}

.af-breadcrumb{
  text-align:center;
  font-size:13px;
  font-weight:500;
  color:#9fc7b4;
  margin:0 0 6px;
}
.af-breadcrumb a{color:#9fc7b4;text-decoration:none;}
.af-breadcrumb a:hover{color:var(--blue-mid);}

.af-title{
  font-family:var(--font-heading);
  text-align:center;
  font-size:34px;
  font-weight:700;
  color:var(--blue-dark);
  margin:0 0 26px;
}

.af-tabs[hidden]{display:none;}
.af-tabs{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.af-tab{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #d7e6df;
  border-radius:999px;
  padding:8px 16px;
  box-shadow:none;
  outline:none;
  font-weight:500;
  font-size:14px;
  background:#fff;
  color:var(--blue-mid);
  cursor:pointer;
  font-family:inherit;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.af-tab-icon{width:18px;height:18px;flex-shrink:0;}
.af-tab-icon-img{height:34px;width:auto;flex-shrink:0;object-fit:contain;}
.af-tab:hover,
.af-tab:focus,
.af-tab:focus-visible{border-color:var(--accent-orange);color:var(--accent-orange);box-shadow:none;outline:none;}
.af-tab:active{transform:scale(.96);}
.af-tab.active{
  background:var(--accent-orange);
  border-color:var(--accent-orange);
  color:#fff;
}
.af-tab.active:hover{color:#fff;}

.af-card{
  background:#fff;
  border-radius:24px;
  padding:36px 34px;
  box-shadow:0 10px 30px -12px rgba(15,31,61,.2);
}
@media (prefers-reduced-motion:no-preference){
  .af-card{animation:af-card-in .5s ease-out;}
}
@keyframes af-card-in{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}

.af-panel{display:none;}
.af-panel.active{display:block;}

.af-subview{display:none;}
.af-subview.active{display:block;}

.af-wallet-back{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:0;
  margin-bottom:18px;
  border:none;
  background:none;
  box-shadow:none;
  outline:none;
  color:var(--action-green);
  font-weight:500;
  font-size:14px;
  cursor:pointer;
  font-family:inherit;
}
.af-wallet-back svg{width:16px;height:16px;}

.af-amount-note{
  text-align:center;
  font-family:var(--font-heading);
  font-size:13px;
  font-weight:700;
  color:var(--blue-dark);
  background:var(--surface-soft);
  border:1px solid var(--surface-border);
  border-radius:999px;
  padding:8px 16px;
  margin:0 0 16px;
}

.af-wallet-search{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:12px;
  padding:12px 16px;
  margin-bottom:16px;
  color:#7a988a;
  transition:border-color .15s ease;
}
.af-wallet-search:focus-within{border-color:var(--action-green);}
.af-wallet-search svg{width:18px;height:18px;flex:0 0 auto;}
.af-wallet-search-input{
  flex:1;
  min-width:0;
  border:none;
  background:none;
  outline:none;
  box-shadow:none;
  font-size:14px;
  font-weight:400;
  color:var(--blue-dark);
  font-family:inherit;
}
.af-wallet-search-input::placeholder{color:#9fbdae;font-weight:400;}

.af-wallet-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  max-height:360px;
  overflow-y:auto;
  padding-right:8px;
  scrollbar-width:thin;
  scrollbar-color:var(--blue-bright) transparent;
}
.af-wallet-list::-webkit-scrollbar{width:5px;}
.af-wallet-list::-webkit-scrollbar-track{background:transparent;}
.af-wallet-list::-webkit-scrollbar-thumb{background:var(--blue-bright);border-radius:4px;}

.af-wallet-token{
  appearance:none;
  -webkit-appearance:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--surface-border);
  background:#fff;
  box-shadow:none;
  outline:none;
  cursor:pointer;
  font-weight:500;
  font-size:14px;
  color:var(--blue-dark);
  font-family:inherit;
  text-align:left;
  min-width:0;
}
.af-wallet-token span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.af-wallet-token.hidden{display:none;}
.af-wallet-token-icon{width:26px;height:26px;flex:0 0 auto;border-radius:50%;}
.af-wallet-token-icon svg{width:100%;height:100%;display:block;}

.af-bank-wordmark{height:26px;width:auto;max-width:100%;display:block;}
.af-bank-title-logo{height:36px;width:auto;max-width:220px;display:inline-block;vertical-align:middle;}

.af-rate-card{
  position:relative;
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:16px;
  padding:26px 20px 20px;
  margin:22px 0 20px;
}
.af-rate-badge{
  position:absolute;
  top:0;
  left:50%;
  transform:translate(-50%,-50%);
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:999px;
  padding:4px 14px;
  font-family:var(--font-heading);
  font-size:11.5px;
  font-weight:600;
  color:var(--blue-mid);
}
.af-rate-live-dot{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--blue-bright);
  margin-right:5px;
}
@media (prefers-reduced-motion:no-preference){
  .af-rate-live-dot{animation:af-live-pulse 1.6s ease-in-out infinite;}
}
@keyframes af-live-pulse{
  0%,100%{opacity:1;}
  50%{opacity:.35;}
}
.af-rate-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
}
.af-rate-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.af-rate-label{font-family:var(--font-heading);font-size:12px;font-weight:600;color:#7a988a;}
.af-rate-value{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14.5px;
  font-weight:700;
  color:var(--blue-dark);
}
.af-rate-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--blue-bright);
  color:#fff;
  font-size:13px;
  font-weight:700;
  border:2px solid #fff;
  box-shadow:0 2px 6px -1px rgba(0,0,0,.25);
  overflow:hidden;
}
.af-rate-num svg{width:100%;height:100%;display:block;}
.af-rate-num--alt{background:#3E73C4;}
.af-rate-eq{font-size:16px;font-weight:400;color:#9fbdae;}

.af-network-label{
  display:block;
  font-family:var(--font-heading);
  font-size:12.5px;
  font-weight:600;
  color:var(--blue-mid);
  margin-bottom:6px;
}
.af-network-select{position:relative;}
.af-network-trigger{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 18px;
  border-radius:14px;
  border:1px solid var(--surface-border);
  background:#fff;
  box-shadow:none;
  outline:none;
  font-size:14px;
  font-weight:500;
  color:var(--blue-dark);
  font-family:inherit;
  cursor:pointer;
  text-align:left;
  transition:border-color .15s ease;
}
.af-network-trigger:hover,
.af-network-trigger[aria-expanded="true"]{border-color:var(--action-green);}
.af-network-trigger[data-placeholder="true"]{color:#9fbdae;}
.af-network-trigger .af-select-chevron{transition:transform .15s ease;}
.af-network-trigger[aria-expanded="true"] .af-select-chevron{transform:rotate(180deg);}
.af-select-chevron{
  flex:0 0 auto;
  width:18px;
  height:18px;
  color:#7a988a;
  pointer-events:none;
}

.af-network-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:14px;
  box-shadow:0 14px 32px -14px rgba(15,31,61,.3);
  padding:6px;
  max-height:220px;
  overflow-y:auto;
  z-index:30;
  display:none;
}
.af-network-menu.open{display:block;}
.af-network-item{
  appearance:none;
  -webkit-appearance:none;
  display:block;
  width:100%;
  text-align:left;
  padding:11px 13px;
  border-radius:10px;
  border:none;
  background:none;
  box-shadow:none;
  outline:none;
  font-size:14px;
  font-weight:500;
  color:var(--blue-dark);
  cursor:pointer;
  font-family:inherit;
}
.af-network-item:hover{background:var(--surface-soft);}
.af-network-item.active{background:var(--surface-soft);color:var(--blue-mid);}

.af-qr-wrap{display:flex;justify-content:center;margin:20px 0 22px;}
.af-qr-box{
  position:relative;
  width:200px;
  height:200px;
  padding:12px;
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:18px;
  box-shadow:0 6px 18px -10px rgba(15,31,61,.2);
}
.af-qr-box img{width:100%;height:100%;display:block;border-radius:6px;}
.af-qr-badge{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:36px;
  height:36px;
  border-radius:50%;
  background:#fff;
  border:3px solid #fff;
  box-shadow:0 2px 6px -1px rgba(0,0,0,.3);
  overflow:hidden;
}
.af-qr-badge svg{width:100%;height:100%;display:block;}

.af-deposit-block{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
}
.af-deposit-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:14px;
  box-shadow:0 1px 3px rgba(15,31,61,.05);
  transition:border-color .15s ease,box-shadow .15s ease;
}
.af-deposit-row:hover{border-color:var(--surface-border-hover);box-shadow:0 4px 12px -6px rgba(15,31,61,.1);}
.af-deposit-col{display:flex;flex-direction:column;gap:3px;min-width:0;}
.af-deposit-col--inline{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap;row-gap:2px;}
.af-deposit-col--inline .af-deposit-label{white-space:nowrap;letter-spacing:.01em;}
.af-deposit-col--inline .af-deposit-address{letter-spacing:.03em;}
.af-deposit-label{font-family:var(--font-heading);font-size:12px;font-weight:600;color:#7a988a;}
.af-deposit-label--chevron::after{content:"›";margin-left:4px;color:#9fbdae;}
.af-deposit-value{font-size:16px;font-weight:700;color:var(--blue-dark);}
.af-deposit-sub{font-size:12.5px;font-weight:400;color:#3a7a5b;}
.af-deposit-contract{display:flex;align-items:center;gap:6px;margin-top:4px;flex-wrap:wrap;}
.af-deposit-contract[hidden]{display:none;}
.af-deposit-contract .af-deposit-label{font-family:var(--font-heading);font-size:12px;}
.af-deposit-contract-value{
  font-size:12px;
  font-weight:700;
  color:#3a7a5b;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  border-bottom:1px dotted #9fbdae;
  word-break:break-all;
  min-width:0;
}
.af-deposit-address{
  font-size:13.5px;
  font-weight:700;
  color:var(--blue-dark);
  word-break:break-all;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.af-deposit-address-accent{color:var(--action-green);}
#bankDetailHolderRow .af-deposit-label{color:var(--blue-dark);}
#bankDetailHolderRow .af-deposit-address{color:var(--blue-dark);}
#bankDetailRibRow .af-deposit-label{color:var(--blue-dark);}
#bankDetailRibRow .af-deposit-address{color:var(--blue-dark);}
#bankDetailCodeRow .af-deposit-label{color:var(--blue-dark);}
#bankDetailCodeRow .af-deposit-address{color:var(--blue-dark);}
#bankDetailPhoneRow .af-deposit-label{color:var(--blue-dark);}
#bankDetailPhoneRow .af-deposit-address{color:var(--blue-dark);}
.af-deposit-address--code{
  letter-spacing:.08em;
  color:#1e7a4c;
}
.af-deposit-divider{display:none;}
.af-deposit-action{
  position:relative;
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:none;
  background:none;
  outline:none;
  color:var(--blue-mid);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:color .15s ease,transform .15s ease;
}
.af-deposit-action svg{width:18px;height:18px;}
.af-deposit-action:hover{color:var(--action-green);transform:translateY(-1px);}
.af-copy-action:hover{transform:none;}

.af-copy-toast{
  position:absolute;
  top:50%;
  left:100%;
  margin-left:10px;
  transform:translateY(-50%) translateX(-6px);
  background:var(--blue-dark);
  color:#fff;
  font-size:12px;
  font-weight:600;
  padding:6px 10px;
  border-radius:8px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
  box-shadow:0 4px 12px -4px rgba(15,31,61,.35);
  z-index:5;
}
.af-copy-toast::before{
  content:"";
  position:absolute;
  top:50%;
  right:100%;
  transform:translateY(-50%);
  border:5px solid transparent;
  border-right-color:var(--blue-dark);
}
.af-copy-toast.show{opacity:1;transform:translateY(-50%) translateX(0);}
.af-deposit-warning{
  margin:0 0 18px;
  font-size:13px;
  font-weight:400;
  line-height:1.6;
  color:var(--danger);
}
.af-deposit-warning strong{font-weight:700;}
.af-deposit-warning--action{
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:14px;
  padding:13px 16px;
  color:var(--blue-dark);
  font-weight:500;
  box-shadow:0 1px 3px rgba(15,31,61,.04);
}
.af-deposit-warning--action strong{color:var(--blue-mid);}
.af-warning-code{color:var(--action-green);font-weight:700;}

.af-card h2{
  font-family:var(--font-heading);
  margin:0 0 10px;
  font-size:20px;
  font-weight:700;
  color:var(--blue-dark);
  text-align:center;
}
.af-desc{
  margin:0 0 22px;
  font-size:14px;
  line-height:1.6;
  color:#3a7a5b;
  font-weight:400;
  text-align:center;
}
.af-desc--left{text-align:left;margin-bottom:8px;}
.af-desc--strong{color:var(--blue-dark);font-weight:400;margin-bottom:20px;}

.af-coin-grid{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  margin-bottom:20px;
}
.af-coin-option{
  position:relative;
  width:40px;
  height:40px;
  flex:0 0 auto;
  border-radius:50%;
  margin-left:-12px;
  border:2px solid #fff;
  box-shadow:0 2px 6px -2px rgba(0,0,0,.4);
}
.af-coin-option:first-child{margin-left:0;}
.af-coin-option svg{width:100%;height:100%;display:block;border-radius:50%;}

.af-service-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.af-service-chip{
  appearance:none;
  -webkit-appearance:none;
  -webkit-tap-highlight-color:transparent;
  outline:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:44px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid var(--surface-border);
  background:#fff;
  box-shadow:0 2px 6px -2px rgba(15,31,61,.15);
  cursor:pointer;
  font-family:inherit;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.af-service-chip:hover{border-color:var(--action-green);box-shadow:0 8px 18px -10px rgba(31,138,92,.35);transform:translateY(-1px);}
.af-service-chip:active,
.af-service-chip:focus,
.af-service-chip:focus-visible{background:#fff;transform:translateY(0);outline:none;box-shadow:0 2px 6px -2px rgba(15,31,61,.15);}
.af-service-chip.active{border-color:var(--action-green);background:var(--surface-soft);}
#bankList .af-service-chip:hover{border-color:var(--surface-border);box-shadow:0 2px 6px -2px rgba(15,31,61,.15);transform:none;}
#bankList .af-service-chip.active{border-color:var(--surface-border);background:#fff;}
#bankList .af-service-chip{position:relative;}
.af-bank-check{
  position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;
  background:var(--action-green);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px -1px rgba(15,31,61,.3);
  opacity:0;transform:scale(.5);
  transition:opacity .15s ease,transform .15s ease;
  pointer-events:none;
}
.af-bank-check svg{width:11px;height:11px;}
.af-service-chip.active .af-bank-check{opacity:1;transform:scale(1);}
.af-service-word{
  display:inline-flex;
  align-items:flex-start;
  font-size:18px;
  font-weight:500;
  letter-spacing:.3px;
}
.af-service-word-dark{color:#333;}
.af-service-word-blue{color:#00AEEF;}
.af-service-word-tm{
  font-size:8px;
  font-weight:500;
  color:#333;
  margin-left:1px;
}

.af-min{
  text-align:center;
  font-size:12.5px;
  color:#7a988a;
  font-weight:400;
  margin-bottom:14px;
}

.af-field{margin-bottom:16px;}
.af-field label{
  display:block;
  font-family:var(--font-heading);
  font-size:12.5px;
  font-weight:600;
  color:var(--blue-mid);
  margin-bottom:6px;
}
.af-input{
  width:100%;
  padding:16px 18px;
  border-radius:14px;
  border:1px solid var(--surface-border);
  background:#fff;
  box-shadow:none;
  outline:none;
  font-size:16px;
  font-weight:700;
  color:var(--blue-dark);
  font-family:inherit;
  transition:border-color .15s ease;
}
.af-input::placeholder{color:#9fbdae;font-weight:400;}
.af-input:focus{
  outline:none;
  box-shadow:none;
  border-color:var(--action-green);
}
.af-input.af-invalid{border-color:var(--danger);background:var(--danger-soft);}
.af-field-error{font-size:12.5px;font-weight:400;color:var(--danger);margin:6px 0 0;}

.af-presets{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:24px;
}

.af-commission{
  background:#fff;
  border:1px solid var(--surface-border);
  border-radius:12px;
  padding:12px 16px;
  margin-bottom:18px;
}
.af-commission-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13.5px;
  font-weight:700;
  color:var(--blue-mid);
}
.af-commission-row + .af-commission-row{margin-top:6px;}
.af-commission-divider{border:none;border-top:1px solid var(--surface-border);margin:10px 0;}
.af-commission-row span:first-child{font-weight:400;}
.af-commission-value{color:var(--blue-dark);}
.af-commission-row:last-child .af-commission-value{color:var(--blue-bright);}
.af-preset{
  appearance:none;
  -webkit-appearance:none;
  padding:12px 0;
  border-radius:12px;
  border:1px solid var(--surface-border);
  background:#fff;
  box-shadow:none;
  outline:none;
  font-weight:600;
  color:var(--blue-dark);
  cursor:pointer;
  font-size:14px;
  font-family:inherit;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
.af-preset:hover,
.af-preset:focus,
.af-preset:focus-visible{background:var(--action-green);border-color:var(--action-green);color:#fff;box-shadow:none;outline:none;}
.af-preset.active{background:var(--action-green);border-color:var(--action-green);color:#fff;}

.af-submit{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  padding:16px;
  border:none;
  border-radius:14px;
  background:linear-gradient(180deg,var(--action-green),var(--action-green-dark));
  box-shadow:0 10px 24px -10px rgba(31,138,92,.55);
  outline:none;
  color:#fff;
  font-weight:600;
  font-size:16px;
  cursor:pointer;
  font-family:inherit;
  transition:box-shadow .15s ease,transform .15s ease,filter .15s ease;
}
.af-submit:hover{filter:brightness(1.06);box-shadow:0 14px 28px -10px rgba(31,138,92,.6);transform:translateY(-1px);}
.af-submit:active{transform:translateY(0);box-shadow:0 6px 14px -8px rgba(31,138,92,.5);filter:brightness(1);}
.af-submit:focus,
.af-submit:focus-visible{outline:none;}
.af-submit:disabled{background:var(--surface-border);color:#9fbdae;cursor:not-allowed;box-shadow:none;transform:none;filter:none;}

.af-static-link{
  appearance:none;
  -webkit-appearance:none;
  display:block;
  text-align:center;
  margin-top:16px;
  font-size:13.5px;
  font-weight:600;
  color:var(--blue-mid);
  text-decoration:underline;
  background:none;
  border:none;
  box-shadow:none;
  outline:none;
  cursor:pointer;
  width:100%;
  font-family:inherit;
}
.af-static-link:focus,
.af-static-link:focus-visible{box-shadow:none;outline:none;}

.af-note{
  text-align:center;
  font-size:12.5px;
  color:#9fbdae;
  font-weight:400;
  margin-top:14px;
}
.af-note a{color:var(--action-green);}

.af-upload-section{margin-bottom:18px;}

.af-upload{
  border:2px dashed var(--surface-border);
  border-radius:16px;
  padding:26px 16px;
  text-align:center;
  cursor:pointer;
  background:#fff;
  margin-bottom:6px;
  transition:border-color .15s ease,background-color .15s ease;
}
.af-upload:hover{border-color:var(--action-green);background:#fafefc;}
.af-upload.af-invalid{border-color:var(--danger);background:var(--danger-soft);}
.af-upload-icon-circle{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue-mid);
  margin:0 auto 10px;
}
.af-upload-icon-circle svg{width:44px;height:44px;}
.af-upload-title{font-size:14px;font-weight:400;color:#3a7a5b;margin:0 0 4px;}
.af-upload-title strong{color:var(--blue-mid);font-weight:700;}
.af-upload-sub{font-size:12px;font-weight:400;color:#9fbdae;margin:0;}

.af-upload-preview{display:none;align-items:center;gap:14px;text-align:left;}
.af-upload-preview.active{display:flex;}
.af-upload-preview img{
  width:64px;
  height:64px;
  object-fit:contain;
  background:#fff;
  border-radius:10px;
  border:1px solid var(--surface-border);
  flex:0 0 auto;
  cursor:pointer;
  transition:border-color .15s ease;
}
.af-upload-preview img:hover{border-color:var(--action-green);}
.af-upload-preview-info{flex:1;min-width:0;}
.af-upload-preview-name{
  font-size:13px;
  font-weight:500;
  color:var(--blue-dark);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.af-upload-preview-size{font-size:12px;font-weight:400;color:#7a988a;}
.af-upload-remove{
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 auto;
  padding:8px 14px;
  border-radius:10px;
  border:1px solid var(--surface-border);
  background:#fff;
  box-shadow:none;
  outline:none;
  font-size:12.5px;
  font-weight:600;
  color:var(--danger);
  cursor:pointer;
  font-family:inherit;
}
.af-upload-remove:hover{background:var(--danger-soft);}
.af-upload-error{font-size:12.5px;font-weight:400;color:var(--danger);margin:6px 0 0;}

.af-detail-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-bottom:18px;
}
.af-detail-topbar .af-wallet-back{margin-bottom:0;}
.af-detail-topbar .af-session-timer{margin-bottom:0;margin-left:auto;}

.af-session-timer[hidden]{display:none;}
.af-session-timer{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  font-size:13px;
  font-weight:500;
  color:var(--blue-mid);
  transition:color .2s ease;
}
.af-session-timer svg{width:16px;height:16px;flex:0 0 auto;}
.af-session-timer strong{font-family:var(--font-heading);color:var(--blue-dark);font-weight:700;}
.af-session-timer--warning{color:var(--danger);}
.af-session-timer--warning strong{color:var(--danger);}
@media (prefers-reduced-motion:no-preference){
  .af-session-timer--warning{animation:af-timer-pulse 1s ease-in-out infinite;}
}
@keyframes af-timer-pulse{
  0%,100%{opacity:1;}
  50%{opacity:.55;}
}

.af-reason-overlay{
  position:fixed;
  inset:0;
  background:rgba(11,27,61,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:110;
}
.af-reason-overlay.open{display:flex;}
.af-reason-modal{
  position:relative;
  width:100%;
  max-width:420px;
  background:#fff;
  border-radius:22px;
  padding:34px 28px 28px;
  text-align:center;
  box-shadow:0 20px 50px -16px rgba(0,0,0,.4);
}
.af-reason-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--surface-soft);
  border:1px solid var(--surface-border);
  color:var(--blue-mid);
  margin:0 auto 14px;
}
.af-reason-icon svg{width:24px;height:24px;}

.af-bank-success{text-align:center;padding:8px 0 0;}
.af-success-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--surface-soft);
  border:1px solid var(--surface-border);
  color:var(--action-green);
  margin:0 auto 16px;
}
.af-success-icon svg{width:26px;height:26px;}

.af-reason-modal h2{
  font-family:var(--font-heading);
  margin:0 0 8px;
  font-size:19px;
  font-weight:700;
  color:var(--blue-dark);
}
.af-reason-sub{
  margin:0 0 20px;
  font-size:13.5px;
  line-height:1.6;
  color:#3a7a5b;
  font-weight:400;
}
.af-reason-options{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.af-reason-option{
  appearance:none;
  -webkit-appearance:none;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--surface-border);
  background:#fff;
  box-shadow:none;
  outline:none;
  font-size:14px;
  font-weight:500;
  color:var(--blue-dark);
  cursor:pointer;
  font-family:inherit;
  text-align:left;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.af-reason-option:hover{border-color:var(--action-green);background:#fff;box-shadow:0 4px 12px -6px rgba(15,31,61,.18);}
.af-reason-option.active{background:var(--action-green);border-color:var(--action-green);color:#fff;box-shadow:0 6px 16px -8px rgba(31,138,92,.5);}
.af-reason-note{margin:0;font-size:12px;font-weight:400;color:#9fbdae;}

@media (max-width:560px){
  .af-title{font-size:26px;}
  .af-card{padding:26px 20px;border-radius:20px;}
  .af-presets{grid-template-columns:repeat(3,1fr);}
  .af-coin-grid{grid-template-columns:repeat(3,1fr);}

  /* The "Copied" toast pops out to the right of the copy button
     (left:100%), which is fine on desktop but the button usually sits
     at the right edge of a full-width row here — on a phone that pushes
     the toast straight off the viewport instead of just off the card.
     Flip it to float above the button and centered instead, which never
     needs more horizontal room than the button itself has. */
  .af-copy-toast{
    left:50%;
    top:auto;
    bottom:calc(100% + 8px);
    margin-left:0;
    transform:translateX(-50%) translateY(4px);
  }
  .af-copy-toast::before{
    top:100%;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    border-right-color:transparent;
    border-top-color:var(--blue-dark);
  }
  .af-copy-toast.show{transform:translateX(-50%) translateY(0);}
}

@media (max-width:400px){
  .af-layout{padding:32px 12px 60px;}
  .af-card{padding:22px 14px;}
  .af-qr-box{width:168px;height:168px;}
  .af-service-chip{padding:0 12px;height:40px;}
  .af-network-trigger{padding:14px 14px;}
  .af-input{padding:14px 14px;}
}
