:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0b0b;
  color: #f5f5f5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #1d1814 0, #0b0b0b 35%); }
button, input, select { font: inherit; }
.shell { width: min(860px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 50px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.eyebrow { color: #d15c22; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 2px 0 0; font-size: 34px; }
.badge { border: 1px solid #383838; background: #151515; border-radius: 999px; padding: 8px 12px; color: #aaa; font-size: 13px; }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.wallet-card, .bridge-card, .status-card { background: rgba(19,19,19,.92); border: 1px solid #2d2d2d; border-radius: 18px; }
.wallet-card { padding: 16px; }
.wallet-title { font-weight: 700; margin-bottom: 5px; }
.wallet-address { color: #9d9d9d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; margin-bottom: 12px; }
.bridge-card { padding: 10px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #0d0d0d; padding: 4px; border-radius: 13px; }
.tab { border: 0; background: transparent; color: #888; padding: 11px; border-radius: 10px; cursor: pointer; }
.tab.active { background: #222; color: #fff; }
.panel { display: none; padding: 16px 6px 6px; }
.panel.active { display: block; }
label { display: block; font-size: 13px; color: #aaa; margin: 12px 0 7px; }
input, select { width: 100%; background: #0c0c0c; color: #fff; border: 1px solid #303030; border-radius: 12px; padding: 13px 14px; outline: none; }
input:focus, select:focus { border-color: #d15c22; }

.network-select {
  border: 2px solid #d15c22;
  cursor: pointer;
}

.network-select:hover,
.network-select:focus {
  border-color: #d15c22;
}
.amount-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn { border: 1px solid #3a3a3a; background: #202020; color: #fff; border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.btn.primary { background: #d15c22; border-color: #d15c22; }
.btn:disabled { opacity: .5; cursor: wait; }
.full { width: 100%; margin-top: 14px; padding: 14px; font-weight: 700; }
.mini { border: 1px solid #333; background: #181818; color: #bbb; border-radius: 10px; padding: 0 12px; cursor: pointer; }
.hint { margin-top: 6px; color: #777; font-size: 12px; }
.preview { white-space: pre-line; margin-top: 16px; padding: 12px; border-radius: 12px; background: #0c0c0c; border: 1px dashed #2e2e2e; color: #aaa; font-size: 13px; line-height: 1.5; }
.status-card { margin-top: 12px; padding: 14px; }
.status-head { display: flex; justify-content: space-between; align-items: center; }
#statusLog { min-height: 110px; max-height: 260px; overflow: auto; white-space: pre-wrap; color: #aaa; font-size: 12px; line-height: 1.5; margin-bottom: 0; }
footer { color: #666; font-size: 12px; text-align: center; margin-top: 18px; }
@media (max-width: 640px) {
  .wallets { grid-template-columns: 1fr; }
  .top { align-items: flex-start; }
  .badge { font-size: 11px; }
}


.minter-auth {
  display: grid;
  gap: 8px;
}

.minter-auth .btn {
  width: 100%;
}

#withdrawBalance,
#withdrawFee {
  margin-top: 7px;
}


/* MinterConnect modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 430px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 18px;
}

.modal-close {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-card input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
}


/* MINTER CONNECT MODAL WALLET STYLE START */

#minterConnectModal {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(20, 20, 24, 0.62);
}

#minterConnectModal .modal-card {
  position: relative;

  width: min(
    calc(100vw - 32px),
    420px
  );

  max-width: 420px;

  padding:
    18px
    18px
    20px;

  border:
    1px solid
    rgba(0, 0, 0, 0.06);

  border-radius: 28px;

  background: #ffffff;

  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, 0.22);

  overflow: hidden;
}

#minterConnectModal .modal-head {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  margin: 0 0 20px;

  padding: 0 48px;

  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;

  color: #141414;

  text-align: center;
}

#minterConnectModal .modal-close {
  position: absolute;

  top: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 0;
  border-radius: 14px;

  background: #f3f3f4;

  color: #313136;

  font-family:
    Arial,
    sans-serif;

  font-size: 25px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

#minterConnectModal .modal-close:hover {
  background: #e9e9eb;
}

#minterConnectModal .modal-close:active {
  transform: scale(0.96);
}

#minterConnectForm {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin: 0;
}

#minterConnectModal #minterSecret {
  display: block;

  width: 100%;
  min-height: 112px;
  height: auto;

  margin: 0;
  padding: 15px 17px;

  box-sizing: border-box;

  border:
    1px solid
    #dedee2;

  border-radius: 16px;

  outline: none;

  background: #f7f7f8;

  color: #151517;

  font: inherit;
  font-size: 15px;
  line-height: 1.5;

  resize: none;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

#minterConnectModal #minterSecret::placeholder {
  color: #929297;
}

#minterConnectModal #minterSecret:hover {
  background: #f4f4f5;
}

#minterConnectModal #minterSecret:focus {
  border-color: #9b9ba1;

  background: #ffffff;

  box-shadow:
    0 0 0 3px
    rgba(0, 0, 0, 0.06);
}

#minterConnectModal #confirmMinterConnect {
  width: 100%;
  height: 52px;

  margin: 0;

  border-radius: 16px;

  font-size: 15px;
  font-weight: 650;
}

#minterConnectModal #confirmMinterConnect:disabled {
  cursor: default;
  opacity: 0.55;
}

@media (max-width: 520px) {
  #minterConnectModal {
    padding: 12px;
  }

  #minterConnectModal .modal-card {
    width: 100%;

    padding:
      16px
      16px
      18px;

    border-radius: 24px;
  }
}

/* MINTER CONNECT MODAL WALLET STYLE END */



.use-connected-wallet {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #d15c22;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.use-connected-wallet:hover,
.use-connected-wallet:focus {
  text-decoration: none;
}
